configure revision da2e2ef6
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for xdm 1.1.13.
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.13'
626PACKAGE_STRING='xdm 1.1.13'
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
714XDM_LIBS
715XDM_CFLAGS
716SHELL_CMD
717WTMP_FILE
718SET_WTMP_FILE_FALSE
719SET_WTMP_FILE_TRUE
720UTMP_FILE
721SET_UTMP_FILE_FALSE
722SET_UTMP_FILE_TRUE
723SERVERSTYPE
724DEFAULTVT
725XDMPIDDIR
726XDMLOGDIR
727XDMSCRIPTDIR
728XDMCONFIGDIR
729XDMLIBDIR
730HAS_KERBEROS_FIVE_FALSE
731HAS_KERBEROS_FIVE_TRUE
732DEV_RANDOM
733SU
734USE_SYSTEMD_DAEMON_FALSE
735USE_SYSTEMD_DAEMON_TRUE
736SYSTEMD_DAEMON_LIBS
737SYSTEMD_DAEMON_CFLAGS
738HAVE_SYSTEMD_FALSE
739HAVE_SYSTEMD_TRUE
740systemdsystemunitdir
741HAS_SECURE_RPC_FALSE
742HAS_SECURE_RPC_TRUE
743HAVE_ARC4RANDOM_FALSE
744HAVE_ARC4RANDOM_TRUE
745HAVE_ARC4RANDOM
746HAVE_MKTEMP_COMMAND_FALSE
747HAVE_MKTEMP_COMMAND_TRUE
748MKTEMP_COMMAND
749LINT_FALSE
750LINT_TRUE
751LINT_FLAGS
752LINT
753TRADITIONALCPPFLAGS
754RAWCPPFLAGS
755RAWCPP
756CPP
757MAN_SUBSTS
758XORG_MAN_PAGE
759ADMIN_MAN_DIR
760DRIVER_MAN_DIR
761MISC_MAN_DIR
762FILE_MAN_DIR
763LIB_MAN_DIR
764APP_MAN_DIR
765ADMIN_MAN_SUFFIX
766DRIVER_MAN_SUFFIX
767MISC_MAN_SUFFIX
768FILE_MAN_SUFFIX
769LIB_MAN_SUFFIX
770APP_MAN_SUFFIX
771INSTALL_CMD
772PKG_CONFIG_LIBDIR
773PKG_CONFIG_PATH
774PKG_CONFIG
775CHANGELOG_CMD
776STRICT_CFLAGS
777CWARNFLAGS
778BASE_CFLAGS
779LT_SYS_LIBRARY_PATH
780OTOOL64
781OTOOL
782LIPO
783NMEDIT
784DSYMUTIL
785MANIFEST_TOOL
786RANLIB
787ac_ct_AR
788AR
789DLLTOOL
790OBJDUMP
791FILECMD
792LN_S
793NM
794ac_ct_DUMPBIN
795DUMPBIN
796LD
797FGREP
798EGREP
799GREP
800SED
801host_os
802host_vendor
803host_cpu
804host
805build_os
806build_vendor
807build_cpu
808build
809LIBTOOL
810AM_BACKSLASH
811AM_DEFAULT_VERBOSITY
812AM_DEFAULT_V
813AM_V
814CSCOPE
815ETAGS
816CTAGS
817am__fastdepCC_FALSE
818am__fastdepCC_TRUE
819CCDEPMODE
820am__nodep
821AMDEPBACKSLASH
822AMDEP_FALSE
823AMDEP_TRUE
824am__include
825DEPDIR
826am__untar
827am__tar
828AMTAR
829am__leading_dot
830SET_MAKE
831AWK
832mkdir_p
833MKDIR_P
834INSTALL_STRIP_PROGRAM
835STRIP
836install_sh
837MAKEINFO
838AUTOHEADER
839AUTOMAKE
840AUTOCONF
841ACLOCAL
842VERSION
843PACKAGE
844CYGPATH_W
845am__isrc
846INSTALL_DATA
847INSTALL_SCRIPT
848INSTALL_PROGRAM
849OBJEXT
850EXEEXT
851ac_ct_CC
852CPPFLAGS
853LDFLAGS
854CFLAGS
855CC
856target_alias
857host_alias
858build_alias
859LIBS
860ECHO_T
861ECHO_N
862ECHO_C
863DEFS
864mandir
865localedir
866libdir
867psdir
868pdfdir
869dvidir
870htmldir
871infodir
872docdir
873oldincludedir
874includedir
875runstatedir
876localstatedir
877sharedstatedir
878sysconfdir
879datadir
880datarootdir
881libexecdir
882sbindir
883bindir
884program_transform_name
885prefix
886exec_prefix
887PACKAGE_URL
888PACKAGE_BUGREPORT
889PACKAGE_STRING
890PACKAGE_VERSION
891PACKAGE_TARNAME
892PACKAGE_NAME
893PATH_SEPARATOR
894SHELL
895am__quote'
896ac_subst_files=''
897ac_user_opts='
898enable_option_checking
899enable_dependency_tracking
900enable_silent_rules
901enable_static
902enable_shared
903with_pic
904enable_fast_install
905with_aix_soname
906with_gnu_ld
907with_sysroot
908enable_libtool_lock
909enable_selective_werror
910enable_strict_compilation
911with_lint
912enable_unix_transport
913enable_tcp_transport
914enable_ipv6
915enable_local_transport
916enable_secure_rpc
917with_pam
918with_selinux
919with_systemdsystemunitdir
920with_systemd_daemon
921with_random_device
922with_xdmlibdir
923with_xdmconfigdir
924with_xdmscriptdir
925with_logdir
926with_piddir
927with_default_vt
928with_config_type
929with_utmp_file
930with_wtmp_file
931with_xft
932enable_xpm_logos
933with_color_pixmap
934with_bw_pixmap
935with_pixmapdir
936enable_xdm_auth
937enable_xdmshell
938with_xrdb
939with_default_session
940with_authdir
941with_appdefaultdir
942'
943      ac_precious_vars='build_alias
944host_alias
945target_alias
946CC
947CFLAGS
948LDFLAGS
949LIBS
950CPPFLAGS
951LT_SYS_LIBRARY_PATH
952PKG_CONFIG
953PKG_CONFIG_PATH
954PKG_CONFIG_LIBDIR
955CPP
956LINT
957LINT_FLAGS
958SYSTEMD_DAEMON_CFLAGS
959SYSTEMD_DAEMON_LIBS
960XDM_CFLAGS
961XDM_LIBS
962XINERAMA_CFLAGS
963XINERAMA_LIBS
964XFT_CFLAGS
965XFT_LIBS
966XPM_CFLAGS
967XPM_LIBS
968XDM_TOOLKIT_CFLAGS
969XDM_TOOLKIT_LIBS
970DMCP_CFLAGS
971DMCP_LIBS
972XLIB_CFLAGS
973XLIB_LIBS
974AUTH_CFLAGS
975AUTH_LIBS
976XDMGREET_CFLAGS
977XDMGREET_LIBS
978XT_CFLAGS
979XT_LIBS
980APPDEFS_CFLAGS
981APPDEFS_LIBS'
982
983
984# Initialize some variables set by options.
985ac_init_help=
986ac_init_version=false
987ac_unrecognized_opts=
988ac_unrecognized_sep=
989# The variables have the same names as the options, with
990# dashes changed to underlines.
991cache_file=/dev/null
992exec_prefix=NONE
993no_create=
994no_recursion=
995prefix=NONE
996program_prefix=NONE
997program_suffix=NONE
998program_transform_name=s,x,x,
999silent=
1000site=
1001srcdir=
1002verbose=
1003x_includes=NONE
1004x_libraries=NONE
1005
1006# Installation directory options.
1007# These are left unexpanded so users can "make install exec_prefix=/foo"
1008# and all the variables that are supposed to be based on exec_prefix
1009# by default will actually change.
1010# Use braces instead of parens because sh, perl, etc. also accept them.
1011# (The list follows the same order as the GNU Coding Standards.)
1012bindir='${exec_prefix}/bin'
1013sbindir='${exec_prefix}/sbin'
1014libexecdir='${exec_prefix}/libexec'
1015datarootdir='${prefix}/share'
1016datadir='${datarootdir}'
1017sysconfdir='${prefix}/etc'
1018sharedstatedir='${prefix}/com'
1019localstatedir='${prefix}/var'
1020runstatedir='${localstatedir}/run'
1021includedir='${prefix}/include'
1022oldincludedir='/usr/include'
1023docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1024infodir='${datarootdir}/info'
1025htmldir='${docdir}'
1026dvidir='${docdir}'
1027pdfdir='${docdir}'
1028psdir='${docdir}'
1029libdir='${exec_prefix}/lib'
1030localedir='${datarootdir}/locale'
1031mandir='${datarootdir}/man'
1032
1033ac_prev=
1034ac_dashdash=
1035for ac_option
1036do
1037  # If the previous option needs an argument, assign it.
1038  if test -n "$ac_prev"; then
1039    eval $ac_prev=\$ac_option
1040    ac_prev=
1041    continue
1042  fi
1043
1044  case $ac_option in
1045  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1046  *=)   ac_optarg= ;;
1047  *)    ac_optarg=yes ;;
1048  esac
1049
1050  case $ac_dashdash$ac_option in
1051  --)
1052    ac_dashdash=yes ;;
1053
1054  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1055    ac_prev=bindir ;;
1056  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1057    bindir=$ac_optarg ;;
1058
1059  -build | --build | --buil | --bui | --bu)
1060    ac_prev=build_alias ;;
1061  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1062    build_alias=$ac_optarg ;;
1063
1064  -cache-file | --cache-file | --cache-fil | --cache-fi \
1065  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1066    ac_prev=cache_file ;;
1067  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1068  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1069    cache_file=$ac_optarg ;;
1070
1071  --config-cache | -C)
1072    cache_file=config.cache ;;
1073
1074  -datadir | --datadir | --datadi | --datad)
1075    ac_prev=datadir ;;
1076  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1077    datadir=$ac_optarg ;;
1078
1079  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1080  | --dataroo | --dataro | --datar)
1081    ac_prev=datarootdir ;;
1082  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1083  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1084    datarootdir=$ac_optarg ;;
1085
1086  -disable-* | --disable-*)
1087    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1088    # Reject names that are not valid shell variable names.
1089    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1090      as_fn_error $? "invalid feature name: \`$ac_useropt'"
1091    ac_useropt_orig=$ac_useropt
1092    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1093    case $ac_user_opts in
1094      *"
1095"enable_$ac_useropt"
1096"*) ;;
1097      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1098	 ac_unrecognized_sep=', ';;
1099    esac
1100    eval enable_$ac_useropt=no ;;
1101
1102  -docdir | --docdir | --docdi | --doc | --do)
1103    ac_prev=docdir ;;
1104  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1105    docdir=$ac_optarg ;;
1106
1107  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1108    ac_prev=dvidir ;;
1109  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1110    dvidir=$ac_optarg ;;
1111
1112  -enable-* | --enable-*)
1113    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1114    # Reject names that are not valid shell variable names.
1115    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1116      as_fn_error $? "invalid feature name: \`$ac_useropt'"
1117    ac_useropt_orig=$ac_useropt
1118    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1119    case $ac_user_opts in
1120      *"
1121"enable_$ac_useropt"
1122"*) ;;
1123      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1124	 ac_unrecognized_sep=', ';;
1125    esac
1126    eval enable_$ac_useropt=\$ac_optarg ;;
1127
1128  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1129  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1130  | --exec | --exe | --ex)
1131    ac_prev=exec_prefix ;;
1132  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1133  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1134  | --exec=* | --exe=* | --ex=*)
1135    exec_prefix=$ac_optarg ;;
1136
1137  -gas | --gas | --ga | --g)
1138    # Obsolete; use --with-gas.
1139    with_gas=yes ;;
1140
1141  -help | --help | --hel | --he | -h)
1142    ac_init_help=long ;;
1143  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1144    ac_init_help=recursive ;;
1145  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1146    ac_init_help=short ;;
1147
1148  -host | --host | --hos | --ho)
1149    ac_prev=host_alias ;;
1150  -host=* | --host=* | --hos=* | --ho=*)
1151    host_alias=$ac_optarg ;;
1152
1153  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1154    ac_prev=htmldir ;;
1155  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1156  | --ht=*)
1157    htmldir=$ac_optarg ;;
1158
1159  -includedir | --includedir | --includedi | --included | --include \
1160  | --includ | --inclu | --incl | --inc)
1161    ac_prev=includedir ;;
1162  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1163  | --includ=* | --inclu=* | --incl=* | --inc=*)
1164    includedir=$ac_optarg ;;
1165
1166  -infodir | --infodir | --infodi | --infod | --info | --inf)
1167    ac_prev=infodir ;;
1168  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1169    infodir=$ac_optarg ;;
1170
1171  -libdir | --libdir | --libdi | --libd)
1172    ac_prev=libdir ;;
1173  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1174    libdir=$ac_optarg ;;
1175
1176  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1177  | --libexe | --libex | --libe)
1178    ac_prev=libexecdir ;;
1179  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1180  | --libexe=* | --libex=* | --libe=*)
1181    libexecdir=$ac_optarg ;;
1182
1183  -localedir | --localedir | --localedi | --localed | --locale)
1184    ac_prev=localedir ;;
1185  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1186    localedir=$ac_optarg ;;
1187
1188  -localstatedir | --localstatedir | --localstatedi | --localstated \
1189  | --localstate | --localstat | --localsta | --localst | --locals)
1190    ac_prev=localstatedir ;;
1191  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1192  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1193    localstatedir=$ac_optarg ;;
1194
1195  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1196    ac_prev=mandir ;;
1197  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1198    mandir=$ac_optarg ;;
1199
1200  -nfp | --nfp | --nf)
1201    # Obsolete; use --without-fp.
1202    with_fp=no ;;
1203
1204  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1205  | --no-cr | --no-c | -n)
1206    no_create=yes ;;
1207
1208  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1209  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1210    no_recursion=yes ;;
1211
1212  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1213  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1214  | --oldin | --oldi | --old | --ol | --o)
1215    ac_prev=oldincludedir ;;
1216  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1217  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1218  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1219    oldincludedir=$ac_optarg ;;
1220
1221  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1222    ac_prev=prefix ;;
1223  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1224    prefix=$ac_optarg ;;
1225
1226  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1227  | --program-pre | --program-pr | --program-p)
1228    ac_prev=program_prefix ;;
1229  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1230  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1231    program_prefix=$ac_optarg ;;
1232
1233  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1234  | --program-suf | --program-su | --program-s)
1235    ac_prev=program_suffix ;;
1236  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1237  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1238    program_suffix=$ac_optarg ;;
1239
1240  -program-transform-name | --program-transform-name \
1241  | --program-transform-nam | --program-transform-na \
1242  | --program-transform-n | --program-transform- \
1243  | --program-transform | --program-transfor \
1244  | --program-transfo | --program-transf \
1245  | --program-trans | --program-tran \
1246  | --progr-tra | --program-tr | --program-t)
1247    ac_prev=program_transform_name ;;
1248  -program-transform-name=* | --program-transform-name=* \
1249  | --program-transform-nam=* | --program-transform-na=* \
1250  | --program-transform-n=* | --program-transform-=* \
1251  | --program-transform=* | --program-transfor=* \
1252  | --program-transfo=* | --program-transf=* \
1253  | --program-trans=* | --program-tran=* \
1254  | --progr-tra=* | --program-tr=* | --program-t=*)
1255    program_transform_name=$ac_optarg ;;
1256
1257  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1258    ac_prev=pdfdir ;;
1259  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1260    pdfdir=$ac_optarg ;;
1261
1262  -psdir | --psdir | --psdi | --psd | --ps)
1263    ac_prev=psdir ;;
1264  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1265    psdir=$ac_optarg ;;
1266
1267  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1268  | -silent | --silent | --silen | --sile | --sil)
1269    silent=yes ;;
1270
1271  -runstatedir | --runstatedir | --runstatedi | --runstated \
1272  | --runstate | --runstat | --runsta | --runst | --runs \
1273  | --run | --ru | --r)
1274    ac_prev=runstatedir ;;
1275  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1276  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1277  | --run=* | --ru=* | --r=*)
1278    runstatedir=$ac_optarg ;;
1279
1280  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1281    ac_prev=sbindir ;;
1282  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1283  | --sbi=* | --sb=*)
1284    sbindir=$ac_optarg ;;
1285
1286  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1287  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1288  | --sharedst | --shareds | --shared | --share | --shar \
1289  | --sha | --sh)
1290    ac_prev=sharedstatedir ;;
1291  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1292  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1293  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1294  | --sha=* | --sh=*)
1295    sharedstatedir=$ac_optarg ;;
1296
1297  -site | --site | --sit)
1298    ac_prev=site ;;
1299  -site=* | --site=* | --sit=*)
1300    site=$ac_optarg ;;
1301
1302  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1303    ac_prev=srcdir ;;
1304  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1305    srcdir=$ac_optarg ;;
1306
1307  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1308  | --syscon | --sysco | --sysc | --sys | --sy)
1309    ac_prev=sysconfdir ;;
1310  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1311  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1312    sysconfdir=$ac_optarg ;;
1313
1314  -target | --target | --targe | --targ | --tar | --ta | --t)
1315    ac_prev=target_alias ;;
1316  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1317    target_alias=$ac_optarg ;;
1318
1319  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1320    verbose=yes ;;
1321
1322  -version | --version | --versio | --versi | --vers | -V)
1323    ac_init_version=: ;;
1324
1325  -with-* | --with-*)
1326    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1327    # Reject names that are not valid shell variable names.
1328    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1329      as_fn_error $? "invalid package name: \`$ac_useropt'"
1330    ac_useropt_orig=$ac_useropt
1331    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1332    case $ac_user_opts in
1333      *"
1334"with_$ac_useropt"
1335"*) ;;
1336      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1337	 ac_unrecognized_sep=', ';;
1338    esac
1339    eval with_$ac_useropt=\$ac_optarg ;;
1340
1341  -without-* | --without-*)
1342    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1343    # Reject names that are not valid shell variable names.
1344    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1345      as_fn_error $? "invalid package name: \`$ac_useropt'"
1346    ac_useropt_orig=$ac_useropt
1347    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1348    case $ac_user_opts in
1349      *"
1350"with_$ac_useropt"
1351"*) ;;
1352      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1353	 ac_unrecognized_sep=', ';;
1354    esac
1355    eval with_$ac_useropt=no ;;
1356
1357  --x)
1358    # Obsolete; use --with-x.
1359    with_x=yes ;;
1360
1361  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1362  | --x-incl | --x-inc | --x-in | --x-i)
1363    ac_prev=x_includes ;;
1364  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1365  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1366    x_includes=$ac_optarg ;;
1367
1368  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1369  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1370    ac_prev=x_libraries ;;
1371  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1372  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1373    x_libraries=$ac_optarg ;;
1374
1375  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1376Try \`$0 --help' for more information"
1377    ;;
1378
1379  *=*)
1380    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1381    # Reject names that are not valid shell variable names.
1382    case $ac_envvar in #(
1383      '' | [0-9]* | *[!_$as_cr_alnum]* )
1384      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1385    esac
1386    eval $ac_envvar=\$ac_optarg
1387    export $ac_envvar ;;
1388
1389  *)
1390    # FIXME: should be removed in autoconf 3.0.
1391    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1392    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1393      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1394    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1395    ;;
1396
1397  esac
1398done
1399
1400if test -n "$ac_prev"; then
1401  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1402  as_fn_error $? "missing argument to $ac_option"
1403fi
1404
1405if test -n "$ac_unrecognized_opts"; then
1406  case $enable_option_checking in
1407    no) ;;
1408    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1409    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1410  esac
1411fi
1412
1413# Check all directory arguments for consistency.
1414for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1415		datadir sysconfdir sharedstatedir localstatedir includedir \
1416		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1417		libdir localedir mandir runstatedir
1418do
1419  eval ac_val=\$$ac_var
1420  # Remove trailing slashes.
1421  case $ac_val in
1422    */ )
1423      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1424      eval $ac_var=\$ac_val;;
1425  esac
1426  # Be sure to have absolute directory names.
1427  case $ac_val in
1428    [\\/$]* | ?:[\\/]* )  continue;;
1429    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1430  esac
1431  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1432done
1433
1434# There might be people who depend on the old broken behavior: `$host'
1435# used to hold the argument of --host etc.
1436# FIXME: To remove some day.
1437build=$build_alias
1438host=$host_alias
1439target=$target_alias
1440
1441# FIXME: To remove some day.
1442if test "x$host_alias" != x; then
1443  if test "x$build_alias" = x; then
1444    cross_compiling=maybe
1445  elif test "x$build_alias" != "x$host_alias"; then
1446    cross_compiling=yes
1447  fi
1448fi
1449
1450ac_tool_prefix=
1451test -n "$host_alias" && ac_tool_prefix=$host_alias-
1452
1453test "$silent" = yes && exec 6>/dev/null
1454
1455
1456ac_pwd=`pwd` && test -n "$ac_pwd" &&
1457ac_ls_di=`ls -di .` &&
1458ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1459  as_fn_error $? "working directory cannot be determined"
1460test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1461  as_fn_error $? "pwd does not report name of working directory"
1462
1463
1464# Find the source files, if location was not specified.
1465if test -z "$srcdir"; then
1466  ac_srcdir_defaulted=yes
1467  # Try the directory containing this script, then the parent directory.
1468  ac_confdir=`$as_dirname -- "$as_myself" ||
1469$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1470	 X"$as_myself" : 'X\(//\)[^/]' \| \
1471	 X"$as_myself" : 'X\(//\)$' \| \
1472	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1473printf "%s\n" X"$as_myself" |
1474    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1475	    s//\1/
1476	    q
1477	  }
1478	  /^X\(\/\/\)[^/].*/{
1479	    s//\1/
1480	    q
1481	  }
1482	  /^X\(\/\/\)$/{
1483	    s//\1/
1484	    q
1485	  }
1486	  /^X\(\/\).*/{
1487	    s//\1/
1488	    q
1489	  }
1490	  s/.*/./; q'`
1491  srcdir=$ac_confdir
1492  if test ! -r "$srcdir/$ac_unique_file"; then
1493    srcdir=..
1494  fi
1495else
1496  ac_srcdir_defaulted=no
1497fi
1498if test ! -r "$srcdir/$ac_unique_file"; then
1499  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1500  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1501fi
1502ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1503ac_abs_confdir=`(
1504	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1505	pwd)`
1506# When building in place, set srcdir=.
1507if test "$ac_abs_confdir" = "$ac_pwd"; then
1508  srcdir=.
1509fi
1510# Remove unnecessary trailing slashes from srcdir.
1511# Double slashes in file names in object file debugging info
1512# mess up M-x gdb in Emacs.
1513case $srcdir in
1514*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1515esac
1516for ac_var in $ac_precious_vars; do
1517  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1518  eval ac_env_${ac_var}_value=\$${ac_var}
1519  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1520  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1521done
1522
1523#
1524# Report the --help message.
1525#
1526if test "$ac_init_help" = "long"; then
1527  # Omit some internal or obsolete options to make the list less imposing.
1528  # This message is too long to be a string in the A/UX 3.1 sh.
1529  cat <<_ACEOF
1530\`configure' configures xdm 1.1.13 to adapt to many kinds of systems.
1531
1532Usage: $0 [OPTION]... [VAR=VALUE]...
1533
1534To assign environment variables (e.g., CC, CFLAGS...), specify them as
1535VAR=VALUE.  See below for descriptions of some of the useful variables.
1536
1537Defaults for the options are specified in brackets.
1538
1539Configuration:
1540  -h, --help              display this help and exit
1541      --help=short        display options specific to this package
1542      --help=recursive    display the short help of all the included packages
1543  -V, --version           display version information and exit
1544  -q, --quiet, --silent   do not print \`checking ...' messages
1545      --cache-file=FILE   cache test results in FILE [disabled]
1546  -C, --config-cache      alias for \`--cache-file=config.cache'
1547  -n, --no-create         do not create output files
1548      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1549
1550Installation directories:
1551  --prefix=PREFIX         install architecture-independent files in PREFIX
1552                          [$ac_default_prefix]
1553  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1554                          [PREFIX]
1555
1556By default, \`make install' will install all the files in
1557\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1558an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1559for instance \`--prefix=\$HOME'.
1560
1561For better control, use the options below.
1562
1563Fine tuning of the installation directories:
1564  --bindir=DIR            user executables [EPREFIX/bin]
1565  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1566  --libexecdir=DIR        program executables [EPREFIX/libexec]
1567  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1568  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1569  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1570  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1571  --libdir=DIR            object code libraries [EPREFIX/lib]
1572  --includedir=DIR        C header files [PREFIX/include]
1573  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1574  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1575  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1576  --infodir=DIR           info documentation [DATAROOTDIR/info]
1577  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1578  --mandir=DIR            man documentation [DATAROOTDIR/man]
1579  --docdir=DIR            documentation root [DATAROOTDIR/doc/xdm]
1580  --htmldir=DIR           html documentation [DOCDIR]
1581  --dvidir=DIR            dvi documentation [DOCDIR]
1582  --pdfdir=DIR            pdf documentation [DOCDIR]
1583  --psdir=DIR             ps documentation [DOCDIR]
1584_ACEOF
1585
1586  cat <<\_ACEOF
1587
1588Program names:
1589  --program-prefix=PREFIX            prepend PREFIX to installed program names
1590  --program-suffix=SUFFIX            append SUFFIX to installed program names
1591  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1592
1593System types:
1594  --build=BUILD     configure for building on BUILD [guessed]
1595  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1596_ACEOF
1597fi
1598
1599if test -n "$ac_init_help"; then
1600  case $ac_init_help in
1601     short | recursive ) echo "Configuration of xdm 1.1.13:";;
1602   esac
1603  cat <<\_ACEOF
1604
1605Optional Features:
1606  --disable-option-checking  ignore unrecognized --enable/--with options
1607  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1608  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1609  --enable-dependency-tracking
1610                          do not reject slow dependency extractors
1611  --disable-dependency-tracking
1612                          speeds up one-time build
1613  --enable-silent-rules   less verbose build output (undo: "make V=1")
1614  --disable-silent-rules  verbose build output (undo: "make V=0")
1615  --enable-static[=PKGS]  build static libraries [default=no]
1616  --enable-shared[=PKGS]  build shared libraries [default=yes]
1617  --enable-fast-install[=PKGS]
1618                          optimize for fast installation [default=yes]
1619  --disable-libtool-lock  avoid locking (might break parallel builds)
1620  --disable-selective-werror
1621                          Turn off selective compiler errors. (default:
1622                          enabled)
1623  --enable-strict-compilation
1624                          Enable all warnings from compiler and make them
1625                          errors (default: disabled)
1626  --enable-unix-transport Enable UNIX domain socket transport
1627  --enable-tcp-transport  Enable TCP socket transport
1628  --enable-ipv6           Enable IPv6 support
1629  --enable-local-transport
1630                          Enable os-specific local transport
1631  --enable-secure-rpc     Enable Secure RPC
1632  --enable-xpm-logos      Display xpm logos in greeter (default is YES)
1633  --enable-xdm-auth       Support XDM-AUTHENTICATION-1 and XDM-AUTHORIZATION-1
1634                          (default: auto)
1635  --enable-xdmshell       Install xdmshell (default: disabled)
1636
1637Optional Packages:
1638  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1639  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1640  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1641                          both]
1642  --with-aix-soname=aix|svr4|both
1643                          shared library versioning (aka "SONAME") variant to
1644                          provide on AIX, [default=aix].
1645  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1646  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1647                          compiler's sysroot if not specified).
1648  --with-lint             Use a lint-style source code checker (default:
1649                          disabled)
1650  --with-pam              Use PAM for authentication (default is autodetected)
1651  --with-selinux          Add support for SELinux (default is no support)
1652  --with-systemdsystemunitdir=DIR
1653                          Directory for systemd service files (default from
1654                          the System and Service Manager)
1655  --with-systemd-daemon   Add support for systemd startup notification
1656                          (default is autodetected)
1657  --with-random-device\=<pathname>\
1658                          Use <pathname> as a source of randomness (default is
1659                          auto-detected)
1660  --with-xdmlibdir=<pathname>
1661                          specify directory for xdm scripts and modules
1662                          (default=${libdir}/X11/xdm)
1663  --with-xdmconfigdir=<pathname>
1664                          specify directory for xdm config files (default is
1665                          same as xdmlibdir)
1666  --with-xdmscriptdir=<pathname>
1667                          specify directory for xdm scripts (default is same
1668                          as xdmlibdir)
1669  --with-logdir=<pathname>
1670                          specify directory for xdm log files
1671                          (default=/var/log)
1672  --with-piddir=<pathname>
1673                          specify directory for xdm pid files
1674                          (default=/var/run)
1675  --with-default-vt=<vtname>
1676                          specify default vt to start xdm on (default=none)
1677  --with-config-type={ws|fs}
1678                          default config file type to use - workstation (ws)
1679                          or fileserver (fs) (default=ws)
1680  --with-utmp-file=<pathname>
1681                          specify file to pass to sessreg -u for current
1682                          logins
1683  --without-utmp-file     specify passing "none" to sessreg -u to not record
1684                          logins in utmp
1685  --with-wtmp-file=<pathname>
1686                          specify file to pass to sessreg -w for login history
1687  --without-wtmp-file     specify passing "none" to sessreg -w to not record
1688                          logins in wtmp
1689  --with-xft              Use Xft to draw text (default is YES if installed)
1690  --with-color-pixmap=<filename>
1691                          specify xpm file to use as color logo
1692                          (default=xorg.xpm)
1693  --with-bw-pixmap=<filename>
1694                          specify xpm file to use as black-and-white logo
1695                          (default=xorg-bw.xpm)
1696  --with-pixmapdir=<pathname>
1697                          specify directory for xpm files
1698                          (default=xdmlibdir/pixmaps)
1699  --with-xrdb=path        Use path for xrdb (default: bindir/xrdb)
1700  --with-default-session=command
1701                          Use command for default session (default:
1702                          bindir/xterm -ls)
1703  --with-authdir=<pathname>
1704                          specify directory for X auth files
1705                          (default=/var/lib/xdm)
1706  --with-appdefaultdir=<pathname>
1707                          specify directory for app-defaults files (default is
1708                          autodetected)
1709
1710Some influential environment variables:
1711  CC          C compiler command
1712  CFLAGS      C compiler flags
1713  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1714              nonstandard directory <lib dir>
1715  LIBS        libraries to pass to the linker, e.g. -l<library>
1716  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1717              you have headers in a nonstandard directory <include dir>
1718  LT_SYS_LIBRARY_PATH
1719              User-defined run-time library search path.
1720  PKG_CONFIG  path to pkg-config utility
1721  PKG_CONFIG_PATH
1722              directories to add to pkg-config's search path
1723  PKG_CONFIG_LIBDIR
1724              path overriding pkg-config's built-in search path
1725  CPP         C preprocessor
1726  LINT        Path to a lint-style command
1727  LINT_FLAGS  Flags for the lint-style command
1728  SYSTEMD_DAEMON_CFLAGS
1729              C compiler flags for SYSTEMD_DAEMON, overriding pkg-config
1730  SYSTEMD_DAEMON_LIBS
1731              linker flags for SYSTEMD_DAEMON, overriding pkg-config
1732  XDM_CFLAGS  C compiler flags for XDM, overriding pkg-config
1733  XDM_LIBS    linker flags for XDM, overriding pkg-config
1734  XINERAMA_CFLAGS
1735              C compiler flags for XINERAMA, overriding pkg-config
1736  XINERAMA_LIBS
1737              linker flags for XINERAMA, overriding pkg-config
1738  XFT_CFLAGS  C compiler flags for XFT, overriding pkg-config
1739  XFT_LIBS    linker flags for XFT, overriding pkg-config
1740  XPM_CFLAGS  C compiler flags for XPM, overriding pkg-config
1741  XPM_LIBS    linker flags for XPM, overriding pkg-config
1742  XDM_TOOLKIT_CFLAGS
1743              C compiler flags for XDM_TOOLKIT, overriding pkg-config
1744  XDM_TOOLKIT_LIBS
1745              linker flags for XDM_TOOLKIT, overriding pkg-config
1746  DMCP_CFLAGS C compiler flags for DMCP, overriding pkg-config
1747  DMCP_LIBS   linker flags for DMCP, overriding pkg-config
1748  XLIB_CFLAGS C compiler flags for XLIB, overriding pkg-config
1749  XLIB_LIBS   linker flags for XLIB, overriding pkg-config
1750  AUTH_CFLAGS C compiler flags for AUTH, overriding pkg-config
1751  AUTH_LIBS   linker flags for AUTH, overriding pkg-config
1752  XDMGREET_CFLAGS
1753              C compiler flags for XDMGREET, overriding pkg-config
1754  XDMGREET_LIBS
1755              linker flags for XDMGREET, overriding pkg-config
1756  XT_CFLAGS   C compiler flags for XT, overriding pkg-config
1757  XT_LIBS     linker flags for XT, overriding pkg-config
1758  APPDEFS_CFLAGS
1759              C compiler flags for APPDEFS, overriding pkg-config
1760  APPDEFS_LIBS
1761              linker flags for APPDEFS, overriding pkg-config
1762
1763Use these variables to override the choices made by `configure' or to help
1764it to find libraries and programs with nonstandard names/locations.
1765
1766Report bugs to <https://gitlab.freedesktop.org/xorg/app/xdm/issues>.
1767_ACEOF
1768ac_status=$?
1769fi
1770
1771if test "$ac_init_help" = "recursive"; then
1772  # If there are subdirs, report their specific --help.
1773  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1774    test -d "$ac_dir" ||
1775      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1776      continue
1777    ac_builddir=.
1778
1779case "$ac_dir" in
1780.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1781*)
1782  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1783  # A ".." for each directory in $ac_dir_suffix.
1784  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1785  case $ac_top_builddir_sub in
1786  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1787  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1788  esac ;;
1789esac
1790ac_abs_top_builddir=$ac_pwd
1791ac_abs_builddir=$ac_pwd$ac_dir_suffix
1792# for backward compatibility:
1793ac_top_builddir=$ac_top_build_prefix
1794
1795case $srcdir in
1796  .)  # We are building in place.
1797    ac_srcdir=.
1798    ac_top_srcdir=$ac_top_builddir_sub
1799    ac_abs_top_srcdir=$ac_pwd ;;
1800  [\\/]* | ?:[\\/]* )  # Absolute name.
1801    ac_srcdir=$srcdir$ac_dir_suffix;
1802    ac_top_srcdir=$srcdir
1803    ac_abs_top_srcdir=$srcdir ;;
1804  *) # Relative name.
1805    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1806    ac_top_srcdir=$ac_top_build_prefix$srcdir
1807    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1808esac
1809ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1810
1811    cd "$ac_dir" || { ac_status=$?; continue; }
1812    # Check for configure.gnu first; this name is used for a wrapper for
1813    # Metaconfig's "Configure" on case-insensitive file systems.
1814    if test -f "$ac_srcdir/configure.gnu"; then
1815      echo &&
1816      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1817    elif test -f "$ac_srcdir/configure"; then
1818      echo &&
1819      $SHELL "$ac_srcdir/configure" --help=recursive
1820    else
1821      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1822    fi || ac_status=$?
1823    cd "$ac_pwd" || { ac_status=$?; break; }
1824  done
1825fi
1826
1827test -n "$ac_init_help" && exit $ac_status
1828if $ac_init_version; then
1829  cat <<\_ACEOF
1830xdm configure 1.1.13
1831generated by GNU Autoconf 2.71
1832
1833Copyright (C) 2021 Free Software Foundation, Inc.
1834This configure script is free software; the Free Software Foundation
1835gives unlimited permission to copy, distribute and modify it.
1836_ACEOF
1837  exit
1838fi
1839
1840## ------------------------ ##
1841## Autoconf initialization. ##
1842## ------------------------ ##
1843
1844# ac_fn_c_try_compile LINENO
1845# --------------------------
1846# Try to compile conftest.$ac_ext, and return whether this succeeded.
1847ac_fn_c_try_compile ()
1848{
1849  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1850  rm -f conftest.$ac_objext conftest.beam
1851  if { { ac_try="$ac_compile"
1852case "(($ac_try" in
1853  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1854  *) ac_try_echo=$ac_try;;
1855esac
1856eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1857printf "%s\n" "$ac_try_echo"; } >&5
1858  (eval "$ac_compile") 2>conftest.err
1859  ac_status=$?
1860  if test -s conftest.err; then
1861    grep -v '^ *+' conftest.err >conftest.er1
1862    cat conftest.er1 >&5
1863    mv -f conftest.er1 conftest.err
1864  fi
1865  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1866  test $ac_status = 0; } && {
1867	 test -z "$ac_c_werror_flag" ||
1868	 test ! -s conftest.err
1869       } && test -s conftest.$ac_objext
1870then :
1871  ac_retval=0
1872else $as_nop
1873  printf "%s\n" "$as_me: failed program was:" >&5
1874sed 's/^/| /' conftest.$ac_ext >&5
1875
1876	ac_retval=1
1877fi
1878  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1879  as_fn_set_status $ac_retval
1880
1881} # ac_fn_c_try_compile
1882
1883# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1884# -------------------------------------------------------
1885# Tests whether HEADER exists and can be compiled using the include files in
1886# INCLUDES, setting the cache variable VAR accordingly.
1887ac_fn_c_check_header_compile ()
1888{
1889  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1890  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1891printf %s "checking for $2... " >&6; }
1892if eval test \${$3+y}
1893then :
1894  printf %s "(cached) " >&6
1895else $as_nop
1896  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1897/* end confdefs.h.  */
1898$4
1899#include <$2>
1900_ACEOF
1901if ac_fn_c_try_compile "$LINENO"
1902then :
1903  eval "$3=yes"
1904else $as_nop
1905  eval "$3=no"
1906fi
1907rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1908fi
1909eval ac_res=\$$3
1910	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1911printf "%s\n" "$ac_res" >&6; }
1912  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1913
1914} # ac_fn_c_check_header_compile
1915
1916# ac_fn_c_try_link LINENO
1917# -----------------------
1918# Try to link conftest.$ac_ext, and return whether this succeeded.
1919ac_fn_c_try_link ()
1920{
1921  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1922  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1923  if { { ac_try="$ac_link"
1924case "(($ac_try" in
1925  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1926  *) ac_try_echo=$ac_try;;
1927esac
1928eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1929printf "%s\n" "$ac_try_echo"; } >&5
1930  (eval "$ac_link") 2>conftest.err
1931  ac_status=$?
1932  if test -s conftest.err; then
1933    grep -v '^ *+' conftest.err >conftest.er1
1934    cat conftest.er1 >&5
1935    mv -f conftest.er1 conftest.err
1936  fi
1937  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1938  test $ac_status = 0; } && {
1939	 test -z "$ac_c_werror_flag" ||
1940	 test ! -s conftest.err
1941       } && test -s conftest$ac_exeext && {
1942	 test "$cross_compiling" = yes ||
1943	 test -x conftest$ac_exeext
1944       }
1945then :
1946  ac_retval=0
1947else $as_nop
1948  printf "%s\n" "$as_me: failed program was:" >&5
1949sed 's/^/| /' conftest.$ac_ext >&5
1950
1951	ac_retval=1
1952fi
1953  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1954  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1955  # interfere with the next link command; also delete a directory that is
1956  # left behind by Apple's compiler.  We do this before executing the actions.
1957  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1958  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1959  as_fn_set_status $ac_retval
1960
1961} # ac_fn_c_try_link
1962
1963# ac_fn_c_check_func LINENO FUNC VAR
1964# ----------------------------------
1965# Tests whether FUNC exists, setting the cache variable VAR accordingly
1966ac_fn_c_check_func ()
1967{
1968  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1969  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1970printf %s "checking for $2... " >&6; }
1971if eval test \${$3+y}
1972then :
1973  printf %s "(cached) " >&6
1974else $as_nop
1975  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1976/* end confdefs.h.  */
1977/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1978   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1979#define $2 innocuous_$2
1980
1981/* System header to define __stub macros and hopefully few prototypes,
1982   which can conflict with char $2 (); below.  */
1983
1984#include <limits.h>
1985#undef $2
1986
1987/* Override any GCC internal prototype to avoid an error.
1988   Use char because int might match the return type of a GCC
1989   builtin and then its argument prototype would still apply.  */
1990#ifdef __cplusplus
1991extern "C"
1992#endif
1993char $2 ();
1994/* The GNU C library defines this for functions which it implements
1995    to always fail with ENOSYS.  Some functions are actually named
1996    something starting with __ and the normal name is an alias.  */
1997#if defined __stub_$2 || defined __stub___$2
1998choke me
1999#endif
2000
2001int
2002main (void)
2003{
2004return $2 ();
2005  ;
2006  return 0;
2007}
2008_ACEOF
2009if ac_fn_c_try_link "$LINENO"
2010then :
2011  eval "$3=yes"
2012else $as_nop
2013  eval "$3=no"
2014fi
2015rm -f core conftest.err conftest.$ac_objext conftest.beam \
2016    conftest$ac_exeext conftest.$ac_ext
2017fi
2018eval ac_res=\$$3
2019	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2020printf "%s\n" "$ac_res" >&6; }
2021  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2022
2023} # ac_fn_c_check_func
2024
2025# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2026# ------------------------------------------------------------------
2027# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2028# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2029ac_fn_check_decl ()
2030{
2031  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2032  as_decl_name=`echo $2|sed 's/ *(.*//'`
2033  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2034printf %s "checking whether $as_decl_name is declared... " >&6; }
2035if eval test \${$3+y}
2036then :
2037  printf %s "(cached) " >&6
2038else $as_nop
2039  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2040  eval ac_save_FLAGS=\$$6
2041  as_fn_append $6 " $5"
2042  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2043/* end confdefs.h.  */
2044$4
2045int
2046main (void)
2047{
2048#ifndef $as_decl_name
2049#ifdef __cplusplus
2050  (void) $as_decl_use;
2051#else
2052  (void) $as_decl_name;
2053#endif
2054#endif
2055
2056  ;
2057  return 0;
2058}
2059_ACEOF
2060if ac_fn_c_try_compile "$LINENO"
2061then :
2062  eval "$3=yes"
2063else $as_nop
2064  eval "$3=no"
2065fi
2066rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2067  eval $6=\$ac_save_FLAGS
2068
2069fi
2070eval ac_res=\$$3
2071	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2072printf "%s\n" "$ac_res" >&6; }
2073  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2074
2075} # ac_fn_check_decl
2076
2077# ac_fn_c_try_cpp LINENO
2078# ----------------------
2079# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2080ac_fn_c_try_cpp ()
2081{
2082  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2083  if { { ac_try="$ac_cpp conftest.$ac_ext"
2084case "(($ac_try" in
2085  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2086  *) ac_try_echo=$ac_try;;
2087esac
2088eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2089printf "%s\n" "$ac_try_echo"; } >&5
2090  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2091  ac_status=$?
2092  if test -s conftest.err; then
2093    grep -v '^ *+' conftest.err >conftest.er1
2094    cat conftest.er1 >&5
2095    mv -f conftest.er1 conftest.err
2096  fi
2097  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2098  test $ac_status = 0; } > conftest.i && {
2099	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2100	 test ! -s conftest.err
2101       }
2102then :
2103  ac_retval=0
2104else $as_nop
2105  printf "%s\n" "$as_me: failed program was:" >&5
2106sed 's/^/| /' conftest.$ac_ext >&5
2107
2108    ac_retval=1
2109fi
2110  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2111  as_fn_set_status $ac_retval
2112
2113} # ac_fn_c_try_cpp
2114
2115# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2116# -------------------------------------------
2117# Tests whether TYPE exists after having included INCLUDES, setting cache
2118# variable VAR accordingly.
2119ac_fn_c_check_type ()
2120{
2121  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2122  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2123printf %s "checking for $2... " >&6; }
2124if eval test \${$3+y}
2125then :
2126  printf %s "(cached) " >&6
2127else $as_nop
2128  eval "$3=no"
2129  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2130/* end confdefs.h.  */
2131$4
2132int
2133main (void)
2134{
2135if (sizeof ($2))
2136	 return 0;
2137  ;
2138  return 0;
2139}
2140_ACEOF
2141if ac_fn_c_try_compile "$LINENO"
2142then :
2143  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2144/* end confdefs.h.  */
2145$4
2146int
2147main (void)
2148{
2149if (sizeof (($2)))
2150	    return 0;
2151  ;
2152  return 0;
2153}
2154_ACEOF
2155if ac_fn_c_try_compile "$LINENO"
2156then :
2157
2158else $as_nop
2159  eval "$3=yes"
2160fi
2161rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2162fi
2163rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2164fi
2165eval ac_res=\$$3
2166	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2167printf "%s\n" "$ac_res" >&6; }
2168  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2169
2170} # ac_fn_c_check_type
2171
2172# ac_fn_c_try_run LINENO
2173# ----------------------
2174# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2175# executables *can* be run.
2176ac_fn_c_try_run ()
2177{
2178  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2179  if { { ac_try="$ac_link"
2180case "(($ac_try" in
2181  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2182  *) ac_try_echo=$ac_try;;
2183esac
2184eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2185printf "%s\n" "$ac_try_echo"; } >&5
2186  (eval "$ac_link") 2>&5
2187  ac_status=$?
2188  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2189  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2190  { { case "(($ac_try" in
2191  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2192  *) ac_try_echo=$ac_try;;
2193esac
2194eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2195printf "%s\n" "$ac_try_echo"; } >&5
2196  (eval "$ac_try") 2>&5
2197  ac_status=$?
2198  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2199  test $ac_status = 0; }; }
2200then :
2201  ac_retval=0
2202else $as_nop
2203  printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2204       printf "%s\n" "$as_me: failed program was:" >&5
2205sed 's/^/| /' conftest.$ac_ext >&5
2206
2207       ac_retval=$ac_status
2208fi
2209  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2210  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2211  as_fn_set_status $ac_retval
2212
2213} # ac_fn_c_try_run
2214
2215# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2216# ----------------------------------------------------
2217# Tries to find if the field MEMBER exists in type AGGR, after including
2218# INCLUDES, setting cache variable VAR accordingly.
2219ac_fn_c_check_member ()
2220{
2221  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2222  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2223printf %s "checking for $2.$3... " >&6; }
2224if eval test \${$4+y}
2225then :
2226  printf %s "(cached) " >&6
2227else $as_nop
2228  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2229/* end confdefs.h.  */
2230$5
2231int
2232main (void)
2233{
2234static $2 ac_aggr;
2235if (ac_aggr.$3)
2236return 0;
2237  ;
2238  return 0;
2239}
2240_ACEOF
2241if ac_fn_c_try_compile "$LINENO"
2242then :
2243  eval "$4=yes"
2244else $as_nop
2245  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2246/* end confdefs.h.  */
2247$5
2248int
2249main (void)
2250{
2251static $2 ac_aggr;
2252if (sizeof ac_aggr.$3)
2253return 0;
2254  ;
2255  return 0;
2256}
2257_ACEOF
2258if ac_fn_c_try_compile "$LINENO"
2259then :
2260  eval "$4=yes"
2261else $as_nop
2262  eval "$4=no"
2263fi
2264rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2265fi
2266rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2267fi
2268eval ac_res=\$$4
2269	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2270printf "%s\n" "$ac_res" >&6; }
2271  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2272
2273} # ac_fn_c_check_member
2274ac_configure_args_raw=
2275for ac_arg
2276do
2277  case $ac_arg in
2278  *\'*)
2279    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2280  esac
2281  as_fn_append ac_configure_args_raw " '$ac_arg'"
2282done
2283
2284case $ac_configure_args_raw in
2285  *$as_nl*)
2286    ac_safe_unquote= ;;
2287  *)
2288    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
2289    ac_unsafe_a="$ac_unsafe_z#~"
2290    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2291    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2292esac
2293
2294cat >config.log <<_ACEOF
2295This file contains any messages produced by compilers while
2296running configure, to aid debugging if configure makes a mistake.
2297
2298It was created by xdm $as_me 1.1.13, which was
2299generated by GNU Autoconf 2.71.  Invocation command line was
2300
2301  $ $0$ac_configure_args_raw
2302
2303_ACEOF
2304exec 5>>config.log
2305{
2306cat <<_ASUNAME
2307## --------- ##
2308## Platform. ##
2309## --------- ##
2310
2311hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2312uname -m = `(uname -m) 2>/dev/null || echo unknown`
2313uname -r = `(uname -r) 2>/dev/null || echo unknown`
2314uname -s = `(uname -s) 2>/dev/null || echo unknown`
2315uname -v = `(uname -v) 2>/dev/null || echo unknown`
2316
2317/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2318/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2319
2320/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2321/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2322/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2323/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2324/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2325/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2326/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2327
2328_ASUNAME
2329
2330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2331for as_dir in $PATH
2332do
2333  IFS=$as_save_IFS
2334  case $as_dir in #(((
2335    '') as_dir=./ ;;
2336    */) ;;
2337    *) as_dir=$as_dir/ ;;
2338  esac
2339    printf "%s\n" "PATH: $as_dir"
2340  done
2341IFS=$as_save_IFS
2342
2343} >&5
2344
2345cat >&5 <<_ACEOF
2346
2347
2348## ----------- ##
2349## Core tests. ##
2350## ----------- ##
2351
2352_ACEOF
2353
2354
2355# Keep a trace of the command line.
2356# Strip out --no-create and --no-recursion so they do not pile up.
2357# Strip out --silent because we don't want to record it for future runs.
2358# Also quote any args containing shell meta-characters.
2359# Make two passes to allow for proper duplicate-argument suppression.
2360ac_configure_args=
2361ac_configure_args0=
2362ac_configure_args1=
2363ac_must_keep_next=false
2364for ac_pass in 1 2
2365do
2366  for ac_arg
2367  do
2368    case $ac_arg in
2369    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2370    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2371    | -silent | --silent | --silen | --sile | --sil)
2372      continue ;;
2373    *\'*)
2374      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2375    esac
2376    case $ac_pass in
2377    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2378    2)
2379      as_fn_append ac_configure_args1 " '$ac_arg'"
2380      if test $ac_must_keep_next = true; then
2381	ac_must_keep_next=false # Got value, back to normal.
2382      else
2383	case $ac_arg in
2384	  *=* | --config-cache | -C | -disable-* | --disable-* \
2385	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2386	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2387	  | -with-* | --with-* | -without-* | --without-* | --x)
2388	    case "$ac_configure_args0 " in
2389	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2390	    esac
2391	    ;;
2392	  -* ) ac_must_keep_next=true ;;
2393	esac
2394      fi
2395      as_fn_append ac_configure_args " '$ac_arg'"
2396      ;;
2397    esac
2398  done
2399done
2400{ ac_configure_args0=; unset ac_configure_args0;}
2401{ ac_configure_args1=; unset ac_configure_args1;}
2402
2403# When interrupted or exit'd, cleanup temporary files, and complete
2404# config.log.  We remove comments because anyway the quotes in there
2405# would cause problems or look ugly.
2406# WARNING: Use '\'' to represent an apostrophe within the trap.
2407# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2408trap 'exit_status=$?
2409  # Sanitize IFS.
2410  IFS=" ""	$as_nl"
2411  # Save into config.log some information that might help in debugging.
2412  {
2413    echo
2414
2415    printf "%s\n" "## ---------------- ##
2416## Cache variables. ##
2417## ---------------- ##"
2418    echo
2419    # The following way of writing the cache mishandles newlines in values,
2420(
2421  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2422    eval ac_val=\$$ac_var
2423    case $ac_val in #(
2424    *${as_nl}*)
2425      case $ac_var in #(
2426      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2427printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2428      esac
2429      case $ac_var in #(
2430      _ | IFS | as_nl) ;; #(
2431      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2432      *) { eval $ac_var=; unset $ac_var;} ;;
2433      esac ;;
2434    esac
2435  done
2436  (set) 2>&1 |
2437    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2438    *${as_nl}ac_space=\ *)
2439      sed -n \
2440	"s/'\''/'\''\\\\'\'''\''/g;
2441	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2442      ;; #(
2443    *)
2444      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2445      ;;
2446    esac |
2447    sort
2448)
2449    echo
2450
2451    printf "%s\n" "## ----------------- ##
2452## Output variables. ##
2453## ----------------- ##"
2454    echo
2455    for ac_var in $ac_subst_vars
2456    do
2457      eval ac_val=\$$ac_var
2458      case $ac_val in
2459      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2460      esac
2461      printf "%s\n" "$ac_var='\''$ac_val'\''"
2462    done | sort
2463    echo
2464
2465    if test -n "$ac_subst_files"; then
2466      printf "%s\n" "## ------------------- ##
2467## File substitutions. ##
2468## ------------------- ##"
2469      echo
2470      for ac_var in $ac_subst_files
2471      do
2472	eval ac_val=\$$ac_var
2473	case $ac_val in
2474	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2475	esac
2476	printf "%s\n" "$ac_var='\''$ac_val'\''"
2477      done | sort
2478      echo
2479    fi
2480
2481    if test -s confdefs.h; then
2482      printf "%s\n" "## ----------- ##
2483## confdefs.h. ##
2484## ----------- ##"
2485      echo
2486      cat confdefs.h
2487      echo
2488    fi
2489    test "$ac_signal" != 0 &&
2490      printf "%s\n" "$as_me: caught signal $ac_signal"
2491    printf "%s\n" "$as_me: exit $exit_status"
2492  } >&5
2493  rm -f core *.core core.conftest.* &&
2494    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2495    exit $exit_status
2496' 0
2497for ac_signal in 1 2 13 15; do
2498  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2499done
2500ac_signal=0
2501
2502# confdefs.h avoids OS command line length limits that DEFS can exceed.
2503rm -f -r conftest* confdefs.h
2504
2505printf "%s\n" "/* confdefs.h */" > confdefs.h
2506
2507# Predefined preprocessor variables.
2508
2509printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2510
2511printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2512
2513printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2514
2515printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2516
2517printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2518
2519printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2520
2521
2522# Let the site file select an alternate cache file if it wants to.
2523# Prefer an explicitly selected file to automatically selected ones.
2524if test -n "$CONFIG_SITE"; then
2525  ac_site_files="$CONFIG_SITE"
2526elif test "x$prefix" != xNONE; then
2527  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2528else
2529  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2530fi
2531
2532for ac_site_file in $ac_site_files
2533do
2534  case $ac_site_file in #(
2535  */*) :
2536     ;; #(
2537  *) :
2538    ac_site_file=./$ac_site_file ;;
2539esac
2540  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2541    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2542printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2543    sed 's/^/| /' "$ac_site_file" >&5
2544    . "$ac_site_file" \
2545      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2546printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2547as_fn_error $? "failed to load site script $ac_site_file
2548See \`config.log' for more details" "$LINENO" 5; }
2549  fi
2550done
2551
2552if test -r "$cache_file"; then
2553  # Some versions of bash will fail to source /dev/null (special files
2554  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2555  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2556    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2557printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2558    case $cache_file in
2559      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2560      *)                      . "./$cache_file";;
2561    esac
2562  fi
2563else
2564  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2565printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2566  >$cache_file
2567fi
2568
2569as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2570# Test code for whether the C compiler supports C89 (global declarations)
2571ac_c_conftest_c89_globals='
2572/* Does the compiler advertise C89 conformance?
2573   Do not test the value of __STDC__, because some compilers set it to 0
2574   while being otherwise adequately conformant. */
2575#if !defined __STDC__
2576# error "Compiler does not advertise C89 conformance"
2577#endif
2578
2579#include <stddef.h>
2580#include <stdarg.h>
2581struct stat;
2582/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2583struct buf { int x; };
2584struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2585static char *e (p, i)
2586     char **p;
2587     int i;
2588{
2589  return p[i];
2590}
2591static char *f (char * (*g) (char **, int), char **p, ...)
2592{
2593  char *s;
2594  va_list v;
2595  va_start (v,p);
2596  s = g (p, va_arg (v,int));
2597  va_end (v);
2598  return s;
2599}
2600
2601/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2602   function prototypes and stuff, but not \xHH hex character constants.
2603   These do not provoke an error unfortunately, instead are silently treated
2604   as an "x".  The following induces an error, until -std is added to get
2605   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2606   array size at least.  It is necessary to write \x00 == 0 to get something
2607   that is true only with -std.  */
2608int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2609
2610/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2611   inside strings and character constants.  */
2612#define FOO(x) '\''x'\''
2613int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2614
2615int test (int i, double x);
2616struct s1 {int (*f) (int a);};
2617struct s2 {int (*f) (double a);};
2618int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2619               int, int);'
2620
2621# Test code for whether the C compiler supports C89 (body of main).
2622ac_c_conftest_c89_main='
2623ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2624'
2625
2626# Test code for whether the C compiler supports C99 (global declarations)
2627ac_c_conftest_c99_globals='
2628// Does the compiler advertise C99 conformance?
2629#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2630# error "Compiler does not advertise C99 conformance"
2631#endif
2632
2633#include <stdbool.h>
2634extern int puts (const char *);
2635extern int printf (const char *, ...);
2636extern int dprintf (int, const char *, ...);
2637extern void *malloc (size_t);
2638
2639// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2640// dprintf is used instead of fprintf to avoid needing to declare
2641// FILE and stderr.
2642#define debug(...) dprintf (2, __VA_ARGS__)
2643#define showlist(...) puts (#__VA_ARGS__)
2644#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2645static void
2646test_varargs_macros (void)
2647{
2648  int x = 1234;
2649  int y = 5678;
2650  debug ("Flag");
2651  debug ("X = %d\n", x);
2652  showlist (The first, second, and third items.);
2653  report (x>y, "x is %d but y is %d", x, y);
2654}
2655
2656// Check long long types.
2657#define BIG64 18446744073709551615ull
2658#define BIG32 4294967295ul
2659#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2660#if !BIG_OK
2661  #error "your preprocessor is broken"
2662#endif
2663#if BIG_OK
2664#else
2665  #error "your preprocessor is broken"
2666#endif
2667static long long int bignum = -9223372036854775807LL;
2668static unsigned long long int ubignum = BIG64;
2669
2670struct incomplete_array
2671{
2672  int datasize;
2673  double data[];
2674};
2675
2676struct named_init {
2677  int number;
2678  const wchar_t *name;
2679  double average;
2680};
2681
2682typedef const char *ccp;
2683
2684static inline int
2685test_restrict (ccp restrict text)
2686{
2687  // See if C++-style comments work.
2688  // Iterate through items via the restricted pointer.
2689  // Also check for declarations in for loops.
2690  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2691    continue;
2692  return 0;
2693}
2694
2695// Check varargs and va_copy.
2696static bool
2697test_varargs (const char *format, ...)
2698{
2699  va_list args;
2700  va_start (args, format);
2701  va_list args_copy;
2702  va_copy (args_copy, args);
2703
2704  const char *str = "";
2705  int number = 0;
2706  float fnumber = 0;
2707
2708  while (*format)
2709    {
2710      switch (*format++)
2711	{
2712	case '\''s'\'': // string
2713	  str = va_arg (args_copy, const char *);
2714	  break;
2715	case '\''d'\'': // int
2716	  number = va_arg (args_copy, int);
2717	  break;
2718	case '\''f'\'': // float
2719	  fnumber = va_arg (args_copy, double);
2720	  break;
2721	default:
2722	  break;
2723	}
2724    }
2725  va_end (args_copy);
2726  va_end (args);
2727
2728  return *str && number && fnumber;
2729}
2730'
2731
2732# Test code for whether the C compiler supports C99 (body of main).
2733ac_c_conftest_c99_main='
2734  // Check bool.
2735  _Bool success = false;
2736  success |= (argc != 0);
2737
2738  // Check restrict.
2739  if (test_restrict ("String literal") == 0)
2740    success = true;
2741  char *restrict newvar = "Another string";
2742
2743  // Check varargs.
2744  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2745  test_varargs_macros ();
2746
2747  // Check flexible array members.
2748  struct incomplete_array *ia =
2749    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2750  ia->datasize = 10;
2751  for (int i = 0; i < ia->datasize; ++i)
2752    ia->data[i] = i * 1.234;
2753
2754  // Check named initializers.
2755  struct named_init ni = {
2756    .number = 34,
2757    .name = L"Test wide string",
2758    .average = 543.34343,
2759  };
2760
2761  ni.number = 58;
2762
2763  int dynamic_array[ni.number];
2764  dynamic_array[0] = argv[0][0];
2765  dynamic_array[ni.number - 1] = 543;
2766
2767  // work around unused variable warnings
2768  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2769	 || dynamic_array[ni.number - 1] != 543);
2770'
2771
2772# Test code for whether the C compiler supports C11 (global declarations)
2773ac_c_conftest_c11_globals='
2774// Does the compiler advertise C11 conformance?
2775#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2776# error "Compiler does not advertise C11 conformance"
2777#endif
2778
2779// Check _Alignas.
2780char _Alignas (double) aligned_as_double;
2781char _Alignas (0) no_special_alignment;
2782extern char aligned_as_int;
2783char _Alignas (0) _Alignas (int) aligned_as_int;
2784
2785// Check _Alignof.
2786enum
2787{
2788  int_alignment = _Alignof (int),
2789  int_array_alignment = _Alignof (int[100]),
2790  char_alignment = _Alignof (char)
2791};
2792_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2793
2794// Check _Noreturn.
2795int _Noreturn does_not_return (void) { for (;;) continue; }
2796
2797// Check _Static_assert.
2798struct test_static_assert
2799{
2800  int x;
2801  _Static_assert (sizeof (int) <= sizeof (long int),
2802                  "_Static_assert does not work in struct");
2803  long int y;
2804};
2805
2806// Check UTF-8 literals.
2807#define u8 syntax error!
2808char const utf8_literal[] = u8"happens to be ASCII" "another string";
2809
2810// Check duplicate typedefs.
2811typedef long *long_ptr;
2812typedef long int *long_ptr;
2813typedef long_ptr long_ptr;
2814
2815// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2816struct anonymous
2817{
2818  union {
2819    struct { int i; int j; };
2820    struct { int k; long int l; } w;
2821  };
2822  int m;
2823} v1;
2824'
2825
2826# Test code for whether the C compiler supports C11 (body of main).
2827ac_c_conftest_c11_main='
2828  _Static_assert ((offsetof (struct anonymous, i)
2829		   == offsetof (struct anonymous, w.k)),
2830		  "Anonymous union alignment botch");
2831  v1.i = 2;
2832  v1.w.k = 5;
2833  ok |= v1.i != 5;
2834'
2835
2836# Test code for whether the C compiler supports C11 (complete).
2837ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2838${ac_c_conftest_c99_globals}
2839${ac_c_conftest_c11_globals}
2840
2841int
2842main (int argc, char **argv)
2843{
2844  int ok = 0;
2845  ${ac_c_conftest_c89_main}
2846  ${ac_c_conftest_c99_main}
2847  ${ac_c_conftest_c11_main}
2848  return ok;
2849}
2850"
2851
2852# Test code for whether the C compiler supports C99 (complete).
2853ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2854${ac_c_conftest_c99_globals}
2855
2856int
2857main (int argc, char **argv)
2858{
2859  int ok = 0;
2860  ${ac_c_conftest_c89_main}
2861  ${ac_c_conftest_c99_main}
2862  return ok;
2863}
2864"
2865
2866# Test code for whether the C compiler supports C89 (complete).
2867ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2868
2869int
2870main (int argc, char **argv)
2871{
2872  int ok = 0;
2873  ${ac_c_conftest_c89_main}
2874  return ok;
2875}
2876"
2877
2878as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2879as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2880as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2881as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2882as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2883as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2884as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2885as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2886as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2887as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2888as_fn_append ac_header_c_list " vfork.h vfork_h HAVE_VFORK_H"
2889as_fn_append ac_func_c_list " fork HAVE_FORK"
2890as_fn_append ac_func_c_list " vfork HAVE_VFORK"
2891
2892# Auxiliary files required by this configure script.
2893ac_aux_files="config.guess config.sub ltmain.sh missing install-sh compile"
2894
2895# Locations in which to look for auxiliary files.
2896ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2897
2898# Search for a directory containing all of the required auxiliary files,
2899# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2900# If we don't find one directory that contains all the files we need,
2901# we report the set of missing files from the *first* directory in
2902# $ac_aux_dir_candidates and give up.
2903ac_missing_aux_files=""
2904ac_first_candidate=:
2905printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2907as_found=false
2908for as_dir in $ac_aux_dir_candidates
2909do
2910  IFS=$as_save_IFS
2911  case $as_dir in #(((
2912    '') as_dir=./ ;;
2913    */) ;;
2914    *) as_dir=$as_dir/ ;;
2915  esac
2916  as_found=:
2917
2918  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2919  ac_aux_dir_found=yes
2920  ac_install_sh=
2921  for ac_aux in $ac_aux_files
2922  do
2923    # As a special case, if "install-sh" is required, that requirement
2924    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2925    # and $ac_install_sh is set appropriately for whichever one is found.
2926    if test x"$ac_aux" = x"install-sh"
2927    then
2928      if test -f "${as_dir}install-sh"; then
2929        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2930        ac_install_sh="${as_dir}install-sh -c"
2931      elif test -f "${as_dir}install.sh"; then
2932        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2933        ac_install_sh="${as_dir}install.sh -c"
2934      elif test -f "${as_dir}shtool"; then
2935        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2936        ac_install_sh="${as_dir}shtool install -c"
2937      else
2938        ac_aux_dir_found=no
2939        if $ac_first_candidate; then
2940          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2941        else
2942          break
2943        fi
2944      fi
2945    else
2946      if test -f "${as_dir}${ac_aux}"; then
2947        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2948      else
2949        ac_aux_dir_found=no
2950        if $ac_first_candidate; then
2951          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2952        else
2953          break
2954        fi
2955      fi
2956    fi
2957  done
2958  if test "$ac_aux_dir_found" = yes; then
2959    ac_aux_dir="$as_dir"
2960    break
2961  fi
2962  ac_first_candidate=false
2963
2964  as_found=false
2965done
2966IFS=$as_save_IFS
2967if $as_found
2968then :
2969
2970else $as_nop
2971  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2972fi
2973
2974
2975# These three variables are undocumented and unsupported,
2976# and are intended to be withdrawn in a future Autoconf release.
2977# They can cause serious problems if a builder's source tree is in a directory
2978# whose full name contains unusual characters.
2979if test -f "${ac_aux_dir}config.guess"; then
2980  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2981fi
2982if test -f "${ac_aux_dir}config.sub"; then
2983  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2984fi
2985if test -f "$ac_aux_dir/configure"; then
2986  ac_configure="$SHELL ${ac_aux_dir}configure"
2987fi
2988
2989# Check that the precious variables saved in the cache have kept the same
2990# value.
2991ac_cache_corrupted=false
2992for ac_var in $ac_precious_vars; do
2993  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2994  eval ac_new_set=\$ac_env_${ac_var}_set
2995  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2996  eval ac_new_val=\$ac_env_${ac_var}_value
2997  case $ac_old_set,$ac_new_set in
2998    set,)
2999      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3000printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3001      ac_cache_corrupted=: ;;
3002    ,set)
3003      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3004printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3005      ac_cache_corrupted=: ;;
3006    ,);;
3007    *)
3008      if test "x$ac_old_val" != "x$ac_new_val"; then
3009	# differences in whitespace do not lead to failure.
3010	ac_old_val_w=`echo x $ac_old_val`
3011	ac_new_val_w=`echo x $ac_new_val`
3012	if test "$ac_old_val_w" != "$ac_new_val_w"; then
3013	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3014printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3015	  ac_cache_corrupted=:
3016	else
3017	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3018printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3019	  eval $ac_var=\$ac_old_val
3020	fi
3021	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3022printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
3023	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3024printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
3025      fi;;
3026  esac
3027  # Pass precious variables to config.status.
3028  if test "$ac_new_set" = set; then
3029    case $ac_new_val in
3030    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3031    *) ac_arg=$ac_var=$ac_new_val ;;
3032    esac
3033    case " $ac_configure_args " in
3034      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3035      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3036    esac
3037  fi
3038done
3039if $ac_cache_corrupted; then
3040  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3041printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3042  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3043printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3044  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3045	    and start over" "$LINENO" 5
3046fi
3047## -------------------- ##
3048## Main body of script. ##
3049## -------------------- ##
3050
3051ac_ext=c
3052ac_cpp='$CPP $CPPFLAGS'
3053ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3054ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3055ac_compiler_gnu=$ac_cv_c_compiler_gnu
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069# Expand $ac_aux_dir to an absolute path.
3070am_aux_dir=`cd "$ac_aux_dir" && pwd`
3071
3072ac_ext=c
3073ac_cpp='$CPP $CPPFLAGS'
3074ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3075ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3076ac_compiler_gnu=$ac_cv_c_compiler_gnu
3077if test -n "$ac_tool_prefix"; then
3078  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3079set dummy ${ac_tool_prefix}gcc; ac_word=$2
3080{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3081printf %s "checking for $ac_word... " >&6; }
3082if test ${ac_cv_prog_CC+y}
3083then :
3084  printf %s "(cached) " >&6
3085else $as_nop
3086  if test -n "$CC"; then
3087  ac_cv_prog_CC="$CC" # Let the user override the test.
3088else
3089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3090for as_dir in $PATH
3091do
3092  IFS=$as_save_IFS
3093  case $as_dir in #(((
3094    '') as_dir=./ ;;
3095    */) ;;
3096    *) as_dir=$as_dir/ ;;
3097  esac
3098    for ac_exec_ext in '' $ac_executable_extensions; do
3099  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3100    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3101    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3102    break 2
3103  fi
3104done
3105  done
3106IFS=$as_save_IFS
3107
3108fi
3109fi
3110CC=$ac_cv_prog_CC
3111if test -n "$CC"; then
3112  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3113printf "%s\n" "$CC" >&6; }
3114else
3115  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3116printf "%s\n" "no" >&6; }
3117fi
3118
3119
3120fi
3121if test -z "$ac_cv_prog_CC"; then
3122  ac_ct_CC=$CC
3123  # Extract the first word of "gcc", so it can be a program name with args.
3124set dummy gcc; ac_word=$2
3125{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3126printf %s "checking for $ac_word... " >&6; }
3127if test ${ac_cv_prog_ac_ct_CC+y}
3128then :
3129  printf %s "(cached) " >&6
3130else $as_nop
3131  if test -n "$ac_ct_CC"; then
3132  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3133else
3134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3135for as_dir in $PATH
3136do
3137  IFS=$as_save_IFS
3138  case $as_dir in #(((
3139    '') as_dir=./ ;;
3140    */) ;;
3141    *) as_dir=$as_dir/ ;;
3142  esac
3143    for ac_exec_ext in '' $ac_executable_extensions; do
3144  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3145    ac_cv_prog_ac_ct_CC="gcc"
3146    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3147    break 2
3148  fi
3149done
3150  done
3151IFS=$as_save_IFS
3152
3153fi
3154fi
3155ac_ct_CC=$ac_cv_prog_ac_ct_CC
3156if test -n "$ac_ct_CC"; then
3157  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3158printf "%s\n" "$ac_ct_CC" >&6; }
3159else
3160  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3161printf "%s\n" "no" >&6; }
3162fi
3163
3164  if test "x$ac_ct_CC" = x; then
3165    CC=""
3166  else
3167    case $cross_compiling:$ac_tool_warned in
3168yes:)
3169{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3170printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3171ac_tool_warned=yes ;;
3172esac
3173    CC=$ac_ct_CC
3174  fi
3175else
3176  CC="$ac_cv_prog_CC"
3177fi
3178
3179if test -z "$CC"; then
3180          if test -n "$ac_tool_prefix"; then
3181    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3182set dummy ${ac_tool_prefix}cc; ac_word=$2
3183{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3184printf %s "checking for $ac_word... " >&6; }
3185if test ${ac_cv_prog_CC+y}
3186then :
3187  printf %s "(cached) " >&6
3188else $as_nop
3189  if test -n "$CC"; then
3190  ac_cv_prog_CC="$CC" # Let the user override the test.
3191else
3192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3193for as_dir in $PATH
3194do
3195  IFS=$as_save_IFS
3196  case $as_dir in #(((
3197    '') as_dir=./ ;;
3198    */) ;;
3199    *) as_dir=$as_dir/ ;;
3200  esac
3201    for ac_exec_ext in '' $ac_executable_extensions; do
3202  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3203    ac_cv_prog_CC="${ac_tool_prefix}cc"
3204    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3205    break 2
3206  fi
3207done
3208  done
3209IFS=$as_save_IFS
3210
3211fi
3212fi
3213CC=$ac_cv_prog_CC
3214if test -n "$CC"; then
3215  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3216printf "%s\n" "$CC" >&6; }
3217else
3218  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3219printf "%s\n" "no" >&6; }
3220fi
3221
3222
3223  fi
3224fi
3225if test -z "$CC"; then
3226  # Extract the first word of "cc", so it can be a program name with args.
3227set dummy cc; ac_word=$2
3228{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3229printf %s "checking for $ac_word... " >&6; }
3230if test ${ac_cv_prog_CC+y}
3231then :
3232  printf %s "(cached) " >&6
3233else $as_nop
3234  if test -n "$CC"; then
3235  ac_cv_prog_CC="$CC" # Let the user override the test.
3236else
3237  ac_prog_rejected=no
3238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3239for as_dir in $PATH
3240do
3241  IFS=$as_save_IFS
3242  case $as_dir in #(((
3243    '') as_dir=./ ;;
3244    */) ;;
3245    *) as_dir=$as_dir/ ;;
3246  esac
3247    for ac_exec_ext in '' $ac_executable_extensions; do
3248  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3249    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3250       ac_prog_rejected=yes
3251       continue
3252     fi
3253    ac_cv_prog_CC="cc"
3254    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3255    break 2
3256  fi
3257done
3258  done
3259IFS=$as_save_IFS
3260
3261if test $ac_prog_rejected = yes; then
3262  # We found a bogon in the path, so make sure we never use it.
3263  set dummy $ac_cv_prog_CC
3264  shift
3265  if test $# != 0; then
3266    # We chose a different compiler from the bogus one.
3267    # However, it has the same basename, so the bogon will be chosen
3268    # first if we set CC to just the basename; use the full file name.
3269    shift
3270    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3271  fi
3272fi
3273fi
3274fi
3275CC=$ac_cv_prog_CC
3276if test -n "$CC"; then
3277  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3278printf "%s\n" "$CC" >&6; }
3279else
3280  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3281printf "%s\n" "no" >&6; }
3282fi
3283
3284
3285fi
3286if test -z "$CC"; then
3287  if test -n "$ac_tool_prefix"; then
3288  for ac_prog in cl.exe
3289  do
3290    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3291set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3292{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3293printf %s "checking for $ac_word... " >&6; }
3294if test ${ac_cv_prog_CC+y}
3295then :
3296  printf %s "(cached) " >&6
3297else $as_nop
3298  if test -n "$CC"; then
3299  ac_cv_prog_CC="$CC" # Let the user override the test.
3300else
3301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3302for as_dir in $PATH
3303do
3304  IFS=$as_save_IFS
3305  case $as_dir in #(((
3306    '') as_dir=./ ;;
3307    */) ;;
3308    *) as_dir=$as_dir/ ;;
3309  esac
3310    for ac_exec_ext in '' $ac_executable_extensions; do
3311  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3312    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3313    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3314    break 2
3315  fi
3316done
3317  done
3318IFS=$as_save_IFS
3319
3320fi
3321fi
3322CC=$ac_cv_prog_CC
3323if test -n "$CC"; then
3324  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3325printf "%s\n" "$CC" >&6; }
3326else
3327  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3328printf "%s\n" "no" >&6; }
3329fi
3330
3331
3332    test -n "$CC" && break
3333  done
3334fi
3335if test -z "$CC"; then
3336  ac_ct_CC=$CC
3337  for ac_prog in cl.exe
3338do
3339  # Extract the first word of "$ac_prog", so it can be a program name with args.
3340set dummy $ac_prog; ac_word=$2
3341{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3342printf %s "checking for $ac_word... " >&6; }
3343if test ${ac_cv_prog_ac_ct_CC+y}
3344then :
3345  printf %s "(cached) " >&6
3346else $as_nop
3347  if test -n "$ac_ct_CC"; then
3348  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3349else
3350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3351for as_dir in $PATH
3352do
3353  IFS=$as_save_IFS
3354  case $as_dir in #(((
3355    '') as_dir=./ ;;
3356    */) ;;
3357    *) as_dir=$as_dir/ ;;
3358  esac
3359    for ac_exec_ext in '' $ac_executable_extensions; do
3360  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3361    ac_cv_prog_ac_ct_CC="$ac_prog"
3362    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3363    break 2
3364  fi
3365done
3366  done
3367IFS=$as_save_IFS
3368
3369fi
3370fi
3371ac_ct_CC=$ac_cv_prog_ac_ct_CC
3372if test -n "$ac_ct_CC"; then
3373  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3374printf "%s\n" "$ac_ct_CC" >&6; }
3375else
3376  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3377printf "%s\n" "no" >&6; }
3378fi
3379
3380
3381  test -n "$ac_ct_CC" && break
3382done
3383
3384  if test "x$ac_ct_CC" = x; then
3385    CC=""
3386  else
3387    case $cross_compiling:$ac_tool_warned in
3388yes:)
3389{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3390printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3391ac_tool_warned=yes ;;
3392esac
3393    CC=$ac_ct_CC
3394  fi
3395fi
3396
3397fi
3398if test -z "$CC"; then
3399  if test -n "$ac_tool_prefix"; then
3400  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3401set dummy ${ac_tool_prefix}clang; ac_word=$2
3402{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3403printf %s "checking for $ac_word... " >&6; }
3404if test ${ac_cv_prog_CC+y}
3405then :
3406  printf %s "(cached) " >&6
3407else $as_nop
3408  if test -n "$CC"; then
3409  ac_cv_prog_CC="$CC" # Let the user override the test.
3410else
3411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3412for as_dir in $PATH
3413do
3414  IFS=$as_save_IFS
3415  case $as_dir in #(((
3416    '') as_dir=./ ;;
3417    */) ;;
3418    *) as_dir=$as_dir/ ;;
3419  esac
3420    for ac_exec_ext in '' $ac_executable_extensions; do
3421  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3422    ac_cv_prog_CC="${ac_tool_prefix}clang"
3423    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3424    break 2
3425  fi
3426done
3427  done
3428IFS=$as_save_IFS
3429
3430fi
3431fi
3432CC=$ac_cv_prog_CC
3433if test -n "$CC"; then
3434  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3435printf "%s\n" "$CC" >&6; }
3436else
3437  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3438printf "%s\n" "no" >&6; }
3439fi
3440
3441
3442fi
3443if test -z "$ac_cv_prog_CC"; then
3444  ac_ct_CC=$CC
3445  # Extract the first word of "clang", so it can be a program name with args.
3446set dummy clang; ac_word=$2
3447{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3448printf %s "checking for $ac_word... " >&6; }
3449if test ${ac_cv_prog_ac_ct_CC+y}
3450then :
3451  printf %s "(cached) " >&6
3452else $as_nop
3453  if test -n "$ac_ct_CC"; then
3454  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3455else
3456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3457for as_dir in $PATH
3458do
3459  IFS=$as_save_IFS
3460  case $as_dir in #(((
3461    '') as_dir=./ ;;
3462    */) ;;
3463    *) as_dir=$as_dir/ ;;
3464  esac
3465    for ac_exec_ext in '' $ac_executable_extensions; do
3466  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3467    ac_cv_prog_ac_ct_CC="clang"
3468    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3469    break 2
3470  fi
3471done
3472  done
3473IFS=$as_save_IFS
3474
3475fi
3476fi
3477ac_ct_CC=$ac_cv_prog_ac_ct_CC
3478if test -n "$ac_ct_CC"; then
3479  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3480printf "%s\n" "$ac_ct_CC" >&6; }
3481else
3482  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3483printf "%s\n" "no" >&6; }
3484fi
3485
3486  if test "x$ac_ct_CC" = x; then
3487    CC=""
3488  else
3489    case $cross_compiling:$ac_tool_warned in
3490yes:)
3491{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3492printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3493ac_tool_warned=yes ;;
3494esac
3495    CC=$ac_ct_CC
3496  fi
3497else
3498  CC="$ac_cv_prog_CC"
3499fi
3500
3501fi
3502
3503
3504test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3505printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3506as_fn_error $? "no acceptable C compiler found in \$PATH
3507See \`config.log' for more details" "$LINENO" 5; }
3508
3509# Provide some information about the compiler.
3510printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3511set X $ac_compile
3512ac_compiler=$2
3513for ac_option in --version -v -V -qversion -version; do
3514  { { ac_try="$ac_compiler $ac_option >&5"
3515case "(($ac_try" in
3516  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3517  *) ac_try_echo=$ac_try;;
3518esac
3519eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3520printf "%s\n" "$ac_try_echo"; } >&5
3521  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3522  ac_status=$?
3523  if test -s conftest.err; then
3524    sed '10a\
3525... rest of stderr output deleted ...
3526         10q' conftest.err >conftest.er1
3527    cat conftest.er1 >&5
3528  fi
3529  rm -f conftest.er1 conftest.err
3530  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3531  test $ac_status = 0; }
3532done
3533
3534cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3535/* end confdefs.h.  */
3536
3537int
3538main (void)
3539{
3540
3541  ;
3542  return 0;
3543}
3544_ACEOF
3545ac_clean_files_save=$ac_clean_files
3546ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3547# Try to create an executable without -o first, disregard a.out.
3548# It will help us diagnose broken compilers, and finding out an intuition
3549# of exeext.
3550{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3551printf %s "checking whether the C compiler works... " >&6; }
3552ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3553
3554# The possible output files:
3555ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3556
3557ac_rmfiles=
3558for ac_file in $ac_files
3559do
3560  case $ac_file in
3561    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3562    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3563  esac
3564done
3565rm -f $ac_rmfiles
3566
3567if { { ac_try="$ac_link_default"
3568case "(($ac_try" in
3569  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3570  *) ac_try_echo=$ac_try;;
3571esac
3572eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3573printf "%s\n" "$ac_try_echo"; } >&5
3574  (eval "$ac_link_default") 2>&5
3575  ac_status=$?
3576  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3577  test $ac_status = 0; }
3578then :
3579  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3580# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3581# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3582# so that the user can short-circuit this test for compilers unknown to
3583# Autoconf.
3584for ac_file in $ac_files ''
3585do
3586  test -f "$ac_file" || continue
3587  case $ac_file in
3588    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3589	;;
3590    [ab].out )
3591	# We found the default executable, but exeext='' is most
3592	# certainly right.
3593	break;;
3594    *.* )
3595	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3596	then :; else
3597	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3598	fi
3599	# We set ac_cv_exeext here because the later test for it is not
3600	# safe: cross compilers may not add the suffix if given an `-o'
3601	# argument, so we may need to know it at that point already.
3602	# Even if this section looks crufty: it has the advantage of
3603	# actually working.
3604	break;;
3605    * )
3606	break;;
3607  esac
3608done
3609test "$ac_cv_exeext" = no && ac_cv_exeext=
3610
3611else $as_nop
3612  ac_file=''
3613fi
3614if test -z "$ac_file"
3615then :
3616  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3617printf "%s\n" "no" >&6; }
3618printf "%s\n" "$as_me: failed program was:" >&5
3619sed 's/^/| /' conftest.$ac_ext >&5
3620
3621{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3622printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3623as_fn_error 77 "C compiler cannot create executables
3624See \`config.log' for more details" "$LINENO" 5; }
3625else $as_nop
3626  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3627printf "%s\n" "yes" >&6; }
3628fi
3629{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3630printf %s "checking for C compiler default output file name... " >&6; }
3631{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3632printf "%s\n" "$ac_file" >&6; }
3633ac_exeext=$ac_cv_exeext
3634
3635rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3636ac_clean_files=$ac_clean_files_save
3637{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3638printf %s "checking for suffix of executables... " >&6; }
3639if { { ac_try="$ac_link"
3640case "(($ac_try" in
3641  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3642  *) ac_try_echo=$ac_try;;
3643esac
3644eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3645printf "%s\n" "$ac_try_echo"; } >&5
3646  (eval "$ac_link") 2>&5
3647  ac_status=$?
3648  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3649  test $ac_status = 0; }
3650then :
3651  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3652# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3653# work properly (i.e., refer to `conftest.exe'), while it won't with
3654# `rm'.
3655for ac_file in conftest.exe conftest conftest.*; do
3656  test -f "$ac_file" || continue
3657  case $ac_file in
3658    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3659    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3660	  break;;
3661    * ) break;;
3662  esac
3663done
3664else $as_nop
3665  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3666printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3667as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3668See \`config.log' for more details" "$LINENO" 5; }
3669fi
3670rm -f conftest conftest$ac_cv_exeext
3671{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3672printf "%s\n" "$ac_cv_exeext" >&6; }
3673
3674rm -f conftest.$ac_ext
3675EXEEXT=$ac_cv_exeext
3676ac_exeext=$EXEEXT
3677cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3678/* end confdefs.h.  */
3679#include <stdio.h>
3680int
3681main (void)
3682{
3683FILE *f = fopen ("conftest.out", "w");
3684 return ferror (f) || fclose (f) != 0;
3685
3686  ;
3687  return 0;
3688}
3689_ACEOF
3690ac_clean_files="$ac_clean_files conftest.out"
3691# Check that the compiler produces executables we can run.  If not, either
3692# the compiler is broken, or we cross compile.
3693{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3694printf %s "checking whether we are cross compiling... " >&6; }
3695if test "$cross_compiling" != yes; then
3696  { { ac_try="$ac_link"
3697case "(($ac_try" in
3698  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3699  *) ac_try_echo=$ac_try;;
3700esac
3701eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3702printf "%s\n" "$ac_try_echo"; } >&5
3703  (eval "$ac_link") 2>&5
3704  ac_status=$?
3705  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3706  test $ac_status = 0; }
3707  if { ac_try='./conftest$ac_cv_exeext'
3708  { { case "(($ac_try" in
3709  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3710  *) ac_try_echo=$ac_try;;
3711esac
3712eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3713printf "%s\n" "$ac_try_echo"; } >&5
3714  (eval "$ac_try") 2>&5
3715  ac_status=$?
3716  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3717  test $ac_status = 0; }; }; then
3718    cross_compiling=no
3719  else
3720    if test "$cross_compiling" = maybe; then
3721	cross_compiling=yes
3722    else
3723	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3724printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3725as_fn_error 77 "cannot run C compiled programs.
3726If you meant to cross compile, use \`--host'.
3727See \`config.log' for more details" "$LINENO" 5; }
3728    fi
3729  fi
3730fi
3731{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3732printf "%s\n" "$cross_compiling" >&6; }
3733
3734rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3735ac_clean_files=$ac_clean_files_save
3736{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3737printf %s "checking for suffix of object files... " >&6; }
3738if test ${ac_cv_objext+y}
3739then :
3740  printf %s "(cached) " >&6
3741else $as_nop
3742  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3743/* end confdefs.h.  */
3744
3745int
3746main (void)
3747{
3748
3749  ;
3750  return 0;
3751}
3752_ACEOF
3753rm -f conftest.o conftest.obj
3754if { { ac_try="$ac_compile"
3755case "(($ac_try" in
3756  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3757  *) ac_try_echo=$ac_try;;
3758esac
3759eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3760printf "%s\n" "$ac_try_echo"; } >&5
3761  (eval "$ac_compile") 2>&5
3762  ac_status=$?
3763  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3764  test $ac_status = 0; }
3765then :
3766  for ac_file in conftest.o conftest.obj conftest.*; do
3767  test -f "$ac_file" || continue;
3768  case $ac_file in
3769    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3770    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3771       break;;
3772  esac
3773done
3774else $as_nop
3775  printf "%s\n" "$as_me: failed program was:" >&5
3776sed 's/^/| /' conftest.$ac_ext >&5
3777
3778{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3779printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3780as_fn_error $? "cannot compute suffix of object files: cannot compile
3781See \`config.log' for more details" "$LINENO" 5; }
3782fi
3783rm -f conftest.$ac_cv_objext conftest.$ac_ext
3784fi
3785{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3786printf "%s\n" "$ac_cv_objext" >&6; }
3787OBJEXT=$ac_cv_objext
3788ac_objext=$OBJEXT
3789{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3790printf %s "checking whether the compiler supports GNU C... " >&6; }
3791if test ${ac_cv_c_compiler_gnu+y}
3792then :
3793  printf %s "(cached) " >&6
3794else $as_nop
3795  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3796/* end confdefs.h.  */
3797
3798int
3799main (void)
3800{
3801#ifndef __GNUC__
3802       choke me
3803#endif
3804
3805  ;
3806  return 0;
3807}
3808_ACEOF
3809if ac_fn_c_try_compile "$LINENO"
3810then :
3811  ac_compiler_gnu=yes
3812else $as_nop
3813  ac_compiler_gnu=no
3814fi
3815rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3816ac_cv_c_compiler_gnu=$ac_compiler_gnu
3817
3818fi
3819{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3820printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3821ac_compiler_gnu=$ac_cv_c_compiler_gnu
3822
3823if test $ac_compiler_gnu = yes; then
3824  GCC=yes
3825else
3826  GCC=
3827fi
3828ac_test_CFLAGS=${CFLAGS+y}
3829ac_save_CFLAGS=$CFLAGS
3830{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3831printf %s "checking whether $CC accepts -g... " >&6; }
3832if test ${ac_cv_prog_cc_g+y}
3833then :
3834  printf %s "(cached) " >&6
3835else $as_nop
3836  ac_save_c_werror_flag=$ac_c_werror_flag
3837   ac_c_werror_flag=yes
3838   ac_cv_prog_cc_g=no
3839   CFLAGS="-g"
3840   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3841/* end confdefs.h.  */
3842
3843int
3844main (void)
3845{
3846
3847  ;
3848  return 0;
3849}
3850_ACEOF
3851if ac_fn_c_try_compile "$LINENO"
3852then :
3853  ac_cv_prog_cc_g=yes
3854else $as_nop
3855  CFLAGS=""
3856      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3857/* end confdefs.h.  */
3858
3859int
3860main (void)
3861{
3862
3863  ;
3864  return 0;
3865}
3866_ACEOF
3867if ac_fn_c_try_compile "$LINENO"
3868then :
3869
3870else $as_nop
3871  ac_c_werror_flag=$ac_save_c_werror_flag
3872	 CFLAGS="-g"
3873	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3874/* end confdefs.h.  */
3875
3876int
3877main (void)
3878{
3879
3880  ;
3881  return 0;
3882}
3883_ACEOF
3884if ac_fn_c_try_compile "$LINENO"
3885then :
3886  ac_cv_prog_cc_g=yes
3887fi
3888rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3889fi
3890rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3891fi
3892rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3893   ac_c_werror_flag=$ac_save_c_werror_flag
3894fi
3895{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3896printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3897if test $ac_test_CFLAGS; then
3898  CFLAGS=$ac_save_CFLAGS
3899elif test $ac_cv_prog_cc_g = yes; then
3900  if test "$GCC" = yes; then
3901    CFLAGS="-g -O2"
3902  else
3903    CFLAGS="-g"
3904  fi
3905else
3906  if test "$GCC" = yes; then
3907    CFLAGS="-O2"
3908  else
3909    CFLAGS=
3910  fi
3911fi
3912ac_prog_cc_stdc=no
3913if test x$ac_prog_cc_stdc = xno
3914then :
3915  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3916printf %s "checking for $CC option to enable C11 features... " >&6; }
3917if test ${ac_cv_prog_cc_c11+y}
3918then :
3919  printf %s "(cached) " >&6
3920else $as_nop
3921  ac_cv_prog_cc_c11=no
3922ac_save_CC=$CC
3923cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3924/* end confdefs.h.  */
3925$ac_c_conftest_c11_program
3926_ACEOF
3927for ac_arg in '' -std=gnu11
3928do
3929  CC="$ac_save_CC $ac_arg"
3930  if ac_fn_c_try_compile "$LINENO"
3931then :
3932  ac_cv_prog_cc_c11=$ac_arg
3933fi
3934rm -f core conftest.err conftest.$ac_objext conftest.beam
3935  test "x$ac_cv_prog_cc_c11" != "xno" && break
3936done
3937rm -f conftest.$ac_ext
3938CC=$ac_save_CC
3939fi
3940
3941if test "x$ac_cv_prog_cc_c11" = xno
3942then :
3943  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3944printf "%s\n" "unsupported" >&6; }
3945else $as_nop
3946  if test "x$ac_cv_prog_cc_c11" = x
3947then :
3948  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3949printf "%s\n" "none needed" >&6; }
3950else $as_nop
3951  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3952printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3953     CC="$CC $ac_cv_prog_cc_c11"
3954fi
3955  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3956  ac_prog_cc_stdc=c11
3957fi
3958fi
3959if test x$ac_prog_cc_stdc = xno
3960then :
3961  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3962printf %s "checking for $CC option to enable C99 features... " >&6; }
3963if test ${ac_cv_prog_cc_c99+y}
3964then :
3965  printf %s "(cached) " >&6
3966else $as_nop
3967  ac_cv_prog_cc_c99=no
3968ac_save_CC=$CC
3969cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3970/* end confdefs.h.  */
3971$ac_c_conftest_c99_program
3972_ACEOF
3973for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3974do
3975  CC="$ac_save_CC $ac_arg"
3976  if ac_fn_c_try_compile "$LINENO"
3977then :
3978  ac_cv_prog_cc_c99=$ac_arg
3979fi
3980rm -f core conftest.err conftest.$ac_objext conftest.beam
3981  test "x$ac_cv_prog_cc_c99" != "xno" && break
3982done
3983rm -f conftest.$ac_ext
3984CC=$ac_save_CC
3985fi
3986
3987if test "x$ac_cv_prog_cc_c99" = xno
3988then :
3989  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3990printf "%s\n" "unsupported" >&6; }
3991else $as_nop
3992  if test "x$ac_cv_prog_cc_c99" = x
3993then :
3994  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3995printf "%s\n" "none needed" >&6; }
3996else $as_nop
3997  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3998printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3999     CC="$CC $ac_cv_prog_cc_c99"
4000fi
4001  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4002  ac_prog_cc_stdc=c99
4003fi
4004fi
4005if test x$ac_prog_cc_stdc = xno
4006then :
4007  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4008printf %s "checking for $CC option to enable C89 features... " >&6; }
4009if test ${ac_cv_prog_cc_c89+y}
4010then :
4011  printf %s "(cached) " >&6
4012else $as_nop
4013  ac_cv_prog_cc_c89=no
4014ac_save_CC=$CC
4015cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4016/* end confdefs.h.  */
4017$ac_c_conftest_c89_program
4018_ACEOF
4019for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4020do
4021  CC="$ac_save_CC $ac_arg"
4022  if ac_fn_c_try_compile "$LINENO"
4023then :
4024  ac_cv_prog_cc_c89=$ac_arg
4025fi
4026rm -f core conftest.err conftest.$ac_objext conftest.beam
4027  test "x$ac_cv_prog_cc_c89" != "xno" && break
4028done
4029rm -f conftest.$ac_ext
4030CC=$ac_save_CC
4031fi
4032
4033if test "x$ac_cv_prog_cc_c89" = xno
4034then :
4035  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4036printf "%s\n" "unsupported" >&6; }
4037else $as_nop
4038  if test "x$ac_cv_prog_cc_c89" = x
4039then :
4040  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4041printf "%s\n" "none needed" >&6; }
4042else $as_nop
4043  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4044printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4045     CC="$CC $ac_cv_prog_cc_c89"
4046fi
4047  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4048  ac_prog_cc_stdc=c89
4049fi
4050fi
4051
4052ac_ext=c
4053ac_cpp='$CPP $CPPFLAGS'
4054ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4055ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4056ac_compiler_gnu=$ac_cv_c_compiler_gnu
4057
4058
4059  ac_ext=c
4060ac_cpp='$CPP $CPPFLAGS'
4061ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4062ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4063ac_compiler_gnu=$ac_cv_c_compiler_gnu
4064{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4065printf %s "checking whether $CC understands -c and -o together... " >&6; }
4066if test ${am_cv_prog_cc_c_o+y}
4067then :
4068  printf %s "(cached) " >&6
4069else $as_nop
4070  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4071/* end confdefs.h.  */
4072
4073int
4074main (void)
4075{
4076
4077  ;
4078  return 0;
4079}
4080_ACEOF
4081  # Make sure it works both with $CC and with simple cc.
4082  # Following AC_PROG_CC_C_O, we do the test twice because some
4083  # compilers refuse to overwrite an existing .o file with -o,
4084  # though they will create one.
4085  am_cv_prog_cc_c_o=yes
4086  for am_i in 1 2; do
4087    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4088   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4089   ac_status=$?
4090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091   (exit $ac_status); } \
4092         && test -f conftest2.$ac_objext; then
4093      : OK
4094    else
4095      am_cv_prog_cc_c_o=no
4096      break
4097    fi
4098  done
4099  rm -f core conftest*
4100  unset am_i
4101fi
4102{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4103printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4104if test "$am_cv_prog_cc_c_o" != yes; then
4105   # Losing compiler, so override with the script.
4106   # FIXME: It is wrong to rewrite CC.
4107   # But if we don't then we get into trouble of one sort or another.
4108   # A longer-term fix would be to have automake use am__CC in this case,
4109   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4110   CC="$am_aux_dir/compile $CC"
4111fi
4112ac_ext=c
4113ac_cpp='$CPP $CPPFLAGS'
4114ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4115ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4116ac_compiler_gnu=$ac_cv_c_compiler_gnu
4117
4118
4119
4120ac_header= ac_cache=
4121for ac_item in $ac_header_c_list
4122do
4123  if test $ac_cache; then
4124    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4125    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4126      printf "%s\n" "#define $ac_item 1" >> confdefs.h
4127    fi
4128    ac_header= ac_cache=
4129  elif test $ac_header; then
4130    ac_cache=$ac_item
4131  else
4132    ac_header=$ac_item
4133  fi
4134done
4135
4136
4137
4138
4139
4140
4141
4142
4143if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4144then :
4145
4146printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4147
4148fi
4149
4150
4151
4152
4153
4154
4155  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4156printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4157if test ${ac_cv_safe_to_define___extensions__+y}
4158then :
4159  printf %s "(cached) " >&6
4160else $as_nop
4161  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4162/* end confdefs.h.  */
4163
4164#         define __EXTENSIONS__ 1
4165          $ac_includes_default
4166int
4167main (void)
4168{
4169
4170  ;
4171  return 0;
4172}
4173_ACEOF
4174if ac_fn_c_try_compile "$LINENO"
4175then :
4176  ac_cv_safe_to_define___extensions__=yes
4177else $as_nop
4178  ac_cv_safe_to_define___extensions__=no
4179fi
4180rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4181fi
4182{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4183printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4184
4185  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4186printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4187if test ${ac_cv_should_define__xopen_source+y}
4188then :
4189  printf %s "(cached) " >&6
4190else $as_nop
4191  ac_cv_should_define__xopen_source=no
4192    if test $ac_cv_header_wchar_h = yes
4193then :
4194  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4195/* end confdefs.h.  */
4196
4197          #include <wchar.h>
4198          mbstate_t x;
4199int
4200main (void)
4201{
4202
4203  ;
4204  return 0;
4205}
4206_ACEOF
4207if ac_fn_c_try_compile "$LINENO"
4208then :
4209
4210else $as_nop
4211  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4212/* end confdefs.h.  */
4213
4214            #define _XOPEN_SOURCE 500
4215            #include <wchar.h>
4216            mbstate_t x;
4217int
4218main (void)
4219{
4220
4221  ;
4222  return 0;
4223}
4224_ACEOF
4225if ac_fn_c_try_compile "$LINENO"
4226then :
4227  ac_cv_should_define__xopen_source=yes
4228fi
4229rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4230fi
4231rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4232fi
4233fi
4234{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4235printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
4236
4237  printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
4238
4239  printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4240
4241  printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
4242
4243  printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4244
4245  printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4246
4247  printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
4248
4249  printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4250
4251  printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4252
4253  printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4254
4255  printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4256
4257  printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4258
4259  printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4260
4261  printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4262
4263  printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4264
4265  printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
4266
4267  if test $ac_cv_header_minix_config_h = yes
4268then :
4269  MINIX=yes
4270    printf "%s\n" "#define _MINIX 1" >>confdefs.h
4271
4272    printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
4273
4274    printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
4275
4276else $as_nop
4277  MINIX=
4278fi
4279  if test $ac_cv_safe_to_define___extensions__ = yes
4280then :
4281  printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
4282
4283fi
4284  if test $ac_cv_should_define__xopen_source = yes
4285then :
4286  printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
4287
4288fi
4289
4290
4291
4292ac_config_headers="$ac_config_headers config.h"
4293
4294
4295# Initialize Automake
4296am__api_version='1.16'
4297
4298
4299  # Find a good install program.  We prefer a C program (faster),
4300# so one script is as good as another.  But avoid the broken or
4301# incompatible versions:
4302# SysV /etc/install, /usr/sbin/install
4303# SunOS /usr/etc/install
4304# IRIX /sbin/install
4305# AIX /bin/install
4306# AmigaOS /C/install, which installs bootblocks on floppy discs
4307# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4308# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4309# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4310# OS/2's system install, which has a completely different semantic
4311# ./install, which can be erroneously created by make from ./install.sh.
4312# Reject install programs that cannot install multiple files.
4313{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4314printf %s "checking for a BSD-compatible install... " >&6; }
4315if test -z "$INSTALL"; then
4316if test ${ac_cv_path_install+y}
4317then :
4318  printf %s "(cached) " >&6
4319else $as_nop
4320  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4321for as_dir in $PATH
4322do
4323  IFS=$as_save_IFS
4324  case $as_dir in #(((
4325    '') as_dir=./ ;;
4326    */) ;;
4327    *) as_dir=$as_dir/ ;;
4328  esac
4329    # Account for fact that we put trailing slashes in our PATH walk.
4330case $as_dir in #((
4331  ./ | /[cC]/* | \
4332  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4333  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4334  /usr/ucb/* ) ;;
4335  *)
4336    # OSF1 and SCO ODT 3.0 have their own names for install.
4337    # Don't use installbsd from OSF since it installs stuff as root
4338    # by default.
4339    for ac_prog in ginstall scoinst install; do
4340      for ac_exec_ext in '' $ac_executable_extensions; do
4341	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
4342	  if test $ac_prog = install &&
4343	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4344	    # AIX install.  It has an incompatible calling convention.
4345	    :
4346	  elif test $ac_prog = install &&
4347	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4348	    # program-specific install script used by HP pwplus--don't use.
4349	    :
4350	  else
4351	    rm -rf conftest.one conftest.two conftest.dir
4352	    echo one > conftest.one
4353	    echo two > conftest.two
4354	    mkdir conftest.dir
4355	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
4356	      test -s conftest.one && test -s conftest.two &&
4357	      test -s conftest.dir/conftest.one &&
4358	      test -s conftest.dir/conftest.two
4359	    then
4360	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
4361	      break 3
4362	    fi
4363	  fi
4364	fi
4365      done
4366    done
4367    ;;
4368esac
4369
4370  done
4371IFS=$as_save_IFS
4372
4373rm -rf conftest.one conftest.two conftest.dir
4374
4375fi
4376  if test ${ac_cv_path_install+y}; then
4377    INSTALL=$ac_cv_path_install
4378  else
4379    # As a last resort, use the slow shell script.  Don't cache a
4380    # value for INSTALL within a source directory, because that will
4381    # break other packages using the cache if that directory is
4382    # removed, or if the value is a relative name.
4383    INSTALL=$ac_install_sh
4384  fi
4385fi
4386{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4387printf "%s\n" "$INSTALL" >&6; }
4388
4389# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4390# It thinks the first close brace ends the variable substitution.
4391test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4392
4393test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4394
4395test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4396
4397{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4398printf %s "checking whether build environment is sane... " >&6; }
4399# Reject unsafe characters in $srcdir or the absolute working directory
4400# name.  Accept space and tab only in the latter.
4401am_lf='
4402'
4403case `pwd` in
4404  *[\\\"\#\$\&\'\`$am_lf]*)
4405    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4406esac
4407case $srcdir in
4408  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
4409    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4410esac
4411
4412# Do 'set' in a subshell so we don't clobber the current shell's
4413# arguments.  Must try -L first in case configure is actually a
4414# symlink; some systems play weird games with the mod time of symlinks
4415# (eg FreeBSD returns the mod time of the symlink's containing
4416# directory).
4417if (
4418   am_has_slept=no
4419   for am_try in 1 2; do
4420     echo "timestamp, slept: $am_has_slept" > conftest.file
4421     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4422     if test "$*" = "X"; then
4423	# -L didn't work.
4424	set X `ls -t "$srcdir/configure" conftest.file`
4425     fi
4426     if test "$*" != "X $srcdir/configure conftest.file" \
4427	&& test "$*" != "X conftest.file $srcdir/configure"; then
4428
4429	# If neither matched, then we have a broken ls.  This can happen
4430	# if, for instance, CONFIG_SHELL is bash and it inherits a
4431	# broken ls alias from the environment.  This has actually
4432	# happened.  Such a system could not be considered "sane".
4433	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
4434  alias in your environment" "$LINENO" 5
4435     fi
4436     if test "$2" = conftest.file || test $am_try -eq 2; then
4437       break
4438     fi
4439     # Just in case.
4440     sleep 1
4441     am_has_slept=yes
4442   done
4443   test "$2" = conftest.file
4444   )
4445then
4446   # Ok.
4447   :
4448else
4449   as_fn_error $? "newly created file is older than distributed files!
4450Check your system clock" "$LINENO" 5
4451fi
4452{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4453printf "%s\n" "yes" >&6; }
4454# If we didn't sleep, we still need to ensure time stamps of config.status and
4455# generated files are strictly newer.
4456am_sleep_pid=
4457if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4458  ( sleep 1 ) &
4459  am_sleep_pid=$!
4460fi
4461
4462rm -f conftest.file
4463
4464test "$program_prefix" != NONE &&
4465  program_transform_name="s&^&$program_prefix&;$program_transform_name"
4466# Use a double $ so make ignores it.
4467test "$program_suffix" != NONE &&
4468  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4469# Double any \ or $.
4470# By default was `s,x,x', remove it if useless.
4471ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4472program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
4473
4474
4475  if test x"${MISSING+set}" != xset; then
4476  MISSING="\${SHELL} '$am_aux_dir/missing'"
4477fi
4478# Use eval to expand $SHELL
4479if eval "$MISSING --is-lightweight"; then
4480  am_missing_run="$MISSING "
4481else
4482  am_missing_run=
4483  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4484printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4485fi
4486
4487if test x"${install_sh+set}" != xset; then
4488  case $am_aux_dir in
4489  *\ * | *\	*)
4490    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4491  *)
4492    install_sh="\${SHELL} $am_aux_dir/install-sh"
4493  esac
4494fi
4495
4496# Installed binaries are usually stripped using 'strip' when the user
4497# run "make install-strip".  However 'strip' might not be the right
4498# tool to use in cross-compilation environments, therefore Automake
4499# will honor the 'STRIP' environment variable to overrule this program.
4500if test "$cross_compiling" != no; then
4501  if test -n "$ac_tool_prefix"; then
4502  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4503set dummy ${ac_tool_prefix}strip; ac_word=$2
4504{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4505printf %s "checking for $ac_word... " >&6; }
4506if test ${ac_cv_prog_STRIP+y}
4507then :
4508  printf %s "(cached) " >&6
4509else $as_nop
4510  if test -n "$STRIP"; then
4511  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4512else
4513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4514for as_dir in $PATH
4515do
4516  IFS=$as_save_IFS
4517  case $as_dir in #(((
4518    '') as_dir=./ ;;
4519    */) ;;
4520    *) as_dir=$as_dir/ ;;
4521  esac
4522    for ac_exec_ext in '' $ac_executable_extensions; do
4523  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4524    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4525    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4526    break 2
4527  fi
4528done
4529  done
4530IFS=$as_save_IFS
4531
4532fi
4533fi
4534STRIP=$ac_cv_prog_STRIP
4535if test -n "$STRIP"; then
4536  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4537printf "%s\n" "$STRIP" >&6; }
4538else
4539  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4540printf "%s\n" "no" >&6; }
4541fi
4542
4543
4544fi
4545if test -z "$ac_cv_prog_STRIP"; then
4546  ac_ct_STRIP=$STRIP
4547  # Extract the first word of "strip", so it can be a program name with args.
4548set dummy strip; ac_word=$2
4549{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4550printf %s "checking for $ac_word... " >&6; }
4551if test ${ac_cv_prog_ac_ct_STRIP+y}
4552then :
4553  printf %s "(cached) " >&6
4554else $as_nop
4555  if test -n "$ac_ct_STRIP"; then
4556  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4557else
4558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4559for as_dir in $PATH
4560do
4561  IFS=$as_save_IFS
4562  case $as_dir in #(((
4563    '') as_dir=./ ;;
4564    */) ;;
4565    *) as_dir=$as_dir/ ;;
4566  esac
4567    for ac_exec_ext in '' $ac_executable_extensions; do
4568  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4569    ac_cv_prog_ac_ct_STRIP="strip"
4570    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4571    break 2
4572  fi
4573done
4574  done
4575IFS=$as_save_IFS
4576
4577fi
4578fi
4579ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4580if test -n "$ac_ct_STRIP"; then
4581  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4582printf "%s\n" "$ac_ct_STRIP" >&6; }
4583else
4584  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4585printf "%s\n" "no" >&6; }
4586fi
4587
4588  if test "x$ac_ct_STRIP" = x; then
4589    STRIP=":"
4590  else
4591    case $cross_compiling:$ac_tool_warned in
4592yes:)
4593{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4594printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4595ac_tool_warned=yes ;;
4596esac
4597    STRIP=$ac_ct_STRIP
4598  fi
4599else
4600  STRIP="$ac_cv_prog_STRIP"
4601fi
4602
4603fi
4604INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4605
4606
4607  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4608printf %s "checking for a race-free mkdir -p... " >&6; }
4609if test -z "$MKDIR_P"; then
4610  if test ${ac_cv_path_mkdir+y}
4611then :
4612  printf %s "(cached) " >&6
4613else $as_nop
4614  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4615for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4616do
4617  IFS=$as_save_IFS
4618  case $as_dir in #(((
4619    '') as_dir=./ ;;
4620    */) ;;
4621    *) as_dir=$as_dir/ ;;
4622  esac
4623    for ac_prog in mkdir gmkdir; do
4624	 for ac_exec_ext in '' $ac_executable_extensions; do
4625	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4626	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4627	     'mkdir ('*'coreutils) '* | \
4628	     'BusyBox '* | \
4629	     'mkdir (fileutils) '4.1*)
4630	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4631	       break 3;;
4632	   esac
4633	 done
4634       done
4635  done
4636IFS=$as_save_IFS
4637
4638fi
4639
4640  test -d ./--version && rmdir ./--version
4641  if test ${ac_cv_path_mkdir+y}; then
4642    MKDIR_P="$ac_cv_path_mkdir -p"
4643  else
4644    # As a last resort, use the slow shell script.  Don't cache a
4645    # value for MKDIR_P within a source directory, because that will
4646    # break other packages using the cache if that directory is
4647    # removed, or if the value is a relative name.
4648    MKDIR_P="$ac_install_sh -d"
4649  fi
4650fi
4651{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4652printf "%s\n" "$MKDIR_P" >&6; }
4653
4654for ac_prog in gawk mawk nawk awk
4655do
4656  # Extract the first word of "$ac_prog", so it can be a program name with args.
4657set dummy $ac_prog; ac_word=$2
4658{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4659printf %s "checking for $ac_word... " >&6; }
4660if test ${ac_cv_prog_AWK+y}
4661then :
4662  printf %s "(cached) " >&6
4663else $as_nop
4664  if test -n "$AWK"; then
4665  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4666else
4667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4668for as_dir in $PATH
4669do
4670  IFS=$as_save_IFS
4671  case $as_dir in #(((
4672    '') as_dir=./ ;;
4673    */) ;;
4674    *) as_dir=$as_dir/ ;;
4675  esac
4676    for ac_exec_ext in '' $ac_executable_extensions; do
4677  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4678    ac_cv_prog_AWK="$ac_prog"
4679    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4680    break 2
4681  fi
4682done
4683  done
4684IFS=$as_save_IFS
4685
4686fi
4687fi
4688AWK=$ac_cv_prog_AWK
4689if test -n "$AWK"; then
4690  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4691printf "%s\n" "$AWK" >&6; }
4692else
4693  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4694printf "%s\n" "no" >&6; }
4695fi
4696
4697
4698  test -n "$AWK" && break
4699done
4700
4701{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4702printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4703set x ${MAKE-make}
4704ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4705if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4706then :
4707  printf %s "(cached) " >&6
4708else $as_nop
4709  cat >conftest.make <<\_ACEOF
4710SHELL = /bin/sh
4711all:
4712	@echo '@@@%%%=$(MAKE)=@@@%%%'
4713_ACEOF
4714# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4715case `${MAKE-make} -f conftest.make 2>/dev/null` in
4716  *@@@%%%=?*=@@@%%%*)
4717    eval ac_cv_prog_make_${ac_make}_set=yes;;
4718  *)
4719    eval ac_cv_prog_make_${ac_make}_set=no;;
4720esac
4721rm -f conftest.make
4722fi
4723if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4724  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4725printf "%s\n" "yes" >&6; }
4726  SET_MAKE=
4727else
4728  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4729printf "%s\n" "no" >&6; }
4730  SET_MAKE="MAKE=${MAKE-make}"
4731fi
4732
4733rm -rf .tst 2>/dev/null
4734mkdir .tst 2>/dev/null
4735if test -d .tst; then
4736  am__leading_dot=.
4737else
4738  am__leading_dot=_
4739fi
4740rmdir .tst 2>/dev/null
4741
4742DEPDIR="${am__leading_dot}deps"
4743
4744ac_config_commands="$ac_config_commands depfiles"
4745
4746{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4747printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4748cat > confinc.mk << 'END'
4749am__doit:
4750	@echo this is the am__doit target >confinc.out
4751.PHONY: am__doit
4752END
4753am__include="#"
4754am__quote=
4755# BSD make does it like this.
4756echo '.include "confinc.mk" # ignored' > confmf.BSD
4757# Other make implementations (GNU, Solaris 10, AIX) do it like this.
4758echo 'include confinc.mk # ignored' > confmf.GNU
4759_am_result=no
4760for s in GNU BSD; do
4761  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4762   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4763   ac_status=$?
4764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765   (exit $ac_status); }
4766  case $?:`cat confinc.out 2>/dev/null` in #(
4767  '0:this is the am__doit target') :
4768    case $s in #(
4769  BSD) :
4770    am__include='.include' am__quote='"' ;; #(
4771  *) :
4772    am__include='include' am__quote='' ;;
4773esac ;; #(
4774  *) :
4775     ;;
4776esac
4777  if test "$am__include" != "#"; then
4778    _am_result="yes ($s style)"
4779    break
4780  fi
4781done
4782rm -f confinc.* confmf.*
4783{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4784printf "%s\n" "${_am_result}" >&6; }
4785
4786# Check whether --enable-dependency-tracking was given.
4787if test ${enable_dependency_tracking+y}
4788then :
4789  enableval=$enable_dependency_tracking;
4790fi
4791
4792if test "x$enable_dependency_tracking" != xno; then
4793  am_depcomp="$ac_aux_dir/depcomp"
4794  AMDEPBACKSLASH='\'
4795  am__nodep='_no'
4796fi
4797 if test "x$enable_dependency_tracking" != xno; then
4798  AMDEP_TRUE=
4799  AMDEP_FALSE='#'
4800else
4801  AMDEP_TRUE='#'
4802  AMDEP_FALSE=
4803fi
4804
4805
4806# Check whether --enable-silent-rules was given.
4807if test ${enable_silent_rules+y}
4808then :
4809  enableval=$enable_silent_rules;
4810fi
4811
4812case $enable_silent_rules in # (((
4813  yes) AM_DEFAULT_VERBOSITY=0;;
4814   no) AM_DEFAULT_VERBOSITY=1;;
4815    *) AM_DEFAULT_VERBOSITY=1;;
4816esac
4817am_make=${MAKE-make}
4818{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4819printf %s "checking whether $am_make supports nested variables... " >&6; }
4820if test ${am_cv_make_support_nested_variables+y}
4821then :
4822  printf %s "(cached) " >&6
4823else $as_nop
4824  if printf "%s\n" 'TRUE=$(BAR$(V))
4825BAR0=false
4826BAR1=true
4827V=1
4828am__doit:
4829	@$(TRUE)
4830.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4831  am_cv_make_support_nested_variables=yes
4832else
4833  am_cv_make_support_nested_variables=no
4834fi
4835fi
4836{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4837printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4838if test $am_cv_make_support_nested_variables = yes; then
4839    AM_V='$(V)'
4840  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4841else
4842  AM_V=$AM_DEFAULT_VERBOSITY
4843  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4844fi
4845AM_BACKSLASH='\'
4846
4847if test "`cd $srcdir && pwd`" != "`pwd`"; then
4848  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4849  # is not polluted with repeated "-I."
4850  am__isrc=' -I$(srcdir)'
4851  # test to see if srcdir already configured
4852  if test -f $srcdir/config.status; then
4853    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4854  fi
4855fi
4856
4857# test whether we have cygpath
4858if test -z "$CYGPATH_W"; then
4859  if (cygpath --version) >/dev/null 2>/dev/null; then
4860    CYGPATH_W='cygpath -w'
4861  else
4862    CYGPATH_W=echo
4863  fi
4864fi
4865
4866
4867# Define the identity of the package.
4868 PACKAGE='xdm'
4869 VERSION='1.1.13'
4870
4871
4872printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4873
4874
4875printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4876
4877# Some tools Automake needs.
4878
4879ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4880
4881
4882AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4883
4884
4885AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4886
4887
4888AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4889
4890
4891MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4892
4893# For better backward compatibility.  To be removed once Automake 1.9.x
4894# dies out for good.  For more background, see:
4895# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4896# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4897mkdir_p='$(MKDIR_P)'
4898
4899# We need awk for the "check" target (and possibly the TAP driver).  The
4900# system "awk" is bad on some platforms.
4901# Always define AMTAR for backward compatibility.  Yes, it's still used
4902# in the wild :-(  We should find a proper way to deprecate it ...
4903AMTAR='$${TAR-tar}'
4904
4905
4906# We'll loop over all known methods to create a tar archive until one works.
4907_am_tools='gnutar  pax cpio none'
4908
4909am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4910
4911
4912
4913
4914
4915depcc="$CC"   am_compiler_list=
4916
4917{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4918printf %s "checking dependency style of $depcc... " >&6; }
4919if test ${am_cv_CC_dependencies_compiler_type+y}
4920then :
4921  printf %s "(cached) " >&6
4922else $as_nop
4923  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4924  # We make a subdir and do the tests there.  Otherwise we can end up
4925  # making bogus files that we don't know about and never remove.  For
4926  # instance it was reported that on HP-UX the gcc test will end up
4927  # making a dummy file named 'D' -- because '-MD' means "put the output
4928  # in D".
4929  rm -rf conftest.dir
4930  mkdir conftest.dir
4931  # Copy depcomp to subdir because otherwise we won't find it if we're
4932  # using a relative directory.
4933  cp "$am_depcomp" conftest.dir
4934  cd conftest.dir
4935  # We will build objects and dependencies in a subdirectory because
4936  # it helps to detect inapplicable dependency modes.  For instance
4937  # both Tru64's cc and ICC support -MD to output dependencies as a
4938  # side effect of compilation, but ICC will put the dependencies in
4939  # the current directory while Tru64 will put them in the object
4940  # directory.
4941  mkdir sub
4942
4943  am_cv_CC_dependencies_compiler_type=none
4944  if test "$am_compiler_list" = ""; then
4945     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4946  fi
4947  am__universal=false
4948  case " $depcc " in #(
4949     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4950     esac
4951
4952  for depmode in $am_compiler_list; do
4953    # Setup a source with many dependencies, because some compilers
4954    # like to wrap large dependency lists on column 80 (with \), and
4955    # we should not choose a depcomp mode which is confused by this.
4956    #
4957    # We need to recreate these files for each test, as the compiler may
4958    # overwrite some of them when testing with obscure command lines.
4959    # This happens at least with the AIX C compiler.
4960    : > sub/conftest.c
4961    for i in 1 2 3 4 5 6; do
4962      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4963      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4964      # Solaris 10 /bin/sh.
4965      echo '/* dummy */' > sub/conftst$i.h
4966    done
4967    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4968
4969    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4970    # mode.  It turns out that the SunPro C++ compiler does not properly
4971    # handle '-M -o', and we need to detect this.  Also, some Intel
4972    # versions had trouble with output in subdirs.
4973    am__obj=sub/conftest.${OBJEXT-o}
4974    am__minus_obj="-o $am__obj"
4975    case $depmode in
4976    gcc)
4977      # This depmode causes a compiler race in universal mode.
4978      test "$am__universal" = false || continue
4979      ;;
4980    nosideeffect)
4981      # After this tag, mechanisms are not by side-effect, so they'll
4982      # only be used when explicitly requested.
4983      if test "x$enable_dependency_tracking" = xyes; then
4984	continue
4985      else
4986	break
4987      fi
4988      ;;
4989    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4990      # This compiler won't grok '-c -o', but also, the minuso test has
4991      # not run yet.  These depmodes are late enough in the game, and
4992      # so weak that their functioning should not be impacted.
4993      am__obj=conftest.${OBJEXT-o}
4994      am__minus_obj=
4995      ;;
4996    none) break ;;
4997    esac
4998    if depmode=$depmode \
4999       source=sub/conftest.c object=$am__obj \
5000       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5001       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5002         >/dev/null 2>conftest.err &&
5003       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5004       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5005       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5006       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5007      # icc doesn't choke on unknown options, it will just issue warnings
5008      # or remarks (even with -Werror).  So we grep stderr for any message
5009      # that says an option was ignored or not supported.
5010      # When given -MP, icc 7.0 and 7.1 complain thusly:
5011      #   icc: Command line warning: ignoring option '-M'; no argument required
5012      # The diagnosis changed in icc 8.0:
5013      #   icc: Command line remark: option '-MP' not supported
5014      if (grep 'ignoring option' conftest.err ||
5015          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5016        am_cv_CC_dependencies_compiler_type=$depmode
5017        break
5018      fi
5019    fi
5020  done
5021
5022  cd ..
5023  rm -rf conftest.dir
5024else
5025  am_cv_CC_dependencies_compiler_type=none
5026fi
5027
5028fi
5029{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5030printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5031CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5032
5033 if
5034  test "x$enable_dependency_tracking" != xno \
5035  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5036  am__fastdepCC_TRUE=
5037  am__fastdepCC_FALSE='#'
5038else
5039  am__fastdepCC_TRUE='#'
5040  am__fastdepCC_FALSE=
5041fi
5042
5043
5044# Variables for tags utilities; see am/tags.am
5045if test -z "$CTAGS"; then
5046  CTAGS=ctags
5047fi
5048
5049if test -z "$ETAGS"; then
5050  ETAGS=etags
5051fi
5052
5053if test -z "$CSCOPE"; then
5054  CSCOPE=cscope
5055fi
5056
5057
5058
5059# POSIX will say in a future version that running "rm -f" with no argument
5060# is OK; and we want to be able to make that assumption in our Makefile
5061# recipes.  So use an aggressive probe to check that the usage we want is
5062# actually supported "in the wild" to an acceptable degree.
5063# See automake bug#10828.
5064# To make any issue more visible, cause the running configure to be aborted
5065# by default if the 'rm' program in use doesn't match our expectations; the
5066# user can still override this though.
5067if rm -f && rm -fr && rm -rf; then : OK; else
5068  cat >&2 <<'END'
5069Oops!
5070
5071Your 'rm' program seems unable to run without file operands specified
5072on the command line, even when the '-f' option is present.  This is contrary
5073to the behaviour of most rm programs out there, and not conforming with
5074the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
5075
5076Please tell bug-automake@gnu.org about your system, including the value
5077of your $PATH and any error possibly output before this message.  This
5078can help us improve future automake versions.
5079
5080END
5081  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
5082    echo 'Configuration will proceed anyway, since you have set the' >&2
5083    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
5084    echo >&2
5085  else
5086    cat >&2 <<'END'
5087Aborting the configuration process, to ensure you take notice of the issue.
5088
5089You can download and install GNU coreutils to get an 'rm' implementation
5090that behaves properly: <https://www.gnu.org/software/coreutils/>.
5091
5092If you want to complete the configuration process using your problematic
5093'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
5094to "yes", and re-run configure.
5095
5096END
5097    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
5098  fi
5099fi
5100
5101
5102# Initialize libtool
5103# Check whether --enable-static was given.
5104if test ${enable_static+y}
5105then :
5106  enableval=$enable_static; p=${PACKAGE-default}
5107    case $enableval in
5108    yes) enable_static=yes ;;
5109    no) enable_static=no ;;
5110    *)
5111     enable_static=no
5112      # Look at the argument we got.  We use all the common list separators.
5113      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
5114      for pkg in $enableval; do
5115	IFS=$lt_save_ifs
5116	if test "X$pkg" = "X$p"; then
5117	  enable_static=yes
5118	fi
5119      done
5120      IFS=$lt_save_ifs
5121      ;;
5122    esac
5123else $as_nop
5124  enable_static=no
5125fi
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135enable_dlopen=yes
5136
5137
5138
5139case `pwd` in
5140  *\ * | *\	*)
5141    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5142printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5143esac
5144
5145
5146
5147macro_version='2.4.7'
5148macro_revision='2.4.7'
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163ltmain=$ac_aux_dir/ltmain.sh
5164
5165
5166
5167  # Make sure we can run config.sub.
5168$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5169  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5170
5171{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5172printf %s "checking build system type... " >&6; }
5173if test ${ac_cv_build+y}
5174then :
5175  printf %s "(cached) " >&6
5176else $as_nop
5177  ac_build_alias=$build_alias
5178test "x$ac_build_alias" = x &&
5179  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
5180test "x$ac_build_alias" = x &&
5181  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5182ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5183  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5184
5185fi
5186{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5187printf "%s\n" "$ac_cv_build" >&6; }
5188case $ac_cv_build in
5189*-*-*) ;;
5190*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5191esac
5192build=$ac_cv_build
5193ac_save_IFS=$IFS; IFS='-'
5194set x $ac_cv_build
5195shift
5196build_cpu=$1
5197build_vendor=$2
5198shift; shift
5199# Remember, the first character of IFS is used to create $*,
5200# except with old shells:
5201build_os=$*
5202IFS=$ac_save_IFS
5203case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5204
5205
5206{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5207printf %s "checking host system type... " >&6; }
5208if test ${ac_cv_host+y}
5209then :
5210  printf %s "(cached) " >&6
5211else $as_nop
5212  if test "x$host_alias" = x; then
5213  ac_cv_host=$ac_cv_build
5214else
5215  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5216    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5217fi
5218
5219fi
5220{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5221printf "%s\n" "$ac_cv_host" >&6; }
5222case $ac_cv_host in
5223*-*-*) ;;
5224*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5225esac
5226host=$ac_cv_host
5227ac_save_IFS=$IFS; IFS='-'
5228set x $ac_cv_host
5229shift
5230host_cpu=$1
5231host_vendor=$2
5232shift; shift
5233# Remember, the first character of IFS is used to create $*,
5234# except with old shells:
5235host_os=$*
5236IFS=$ac_save_IFS
5237case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5238
5239
5240# Backslashify metacharacters that are still active within
5241# double-quoted strings.
5242sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5243
5244# Same as above, but do not quote variable references.
5245double_quote_subst='s/\(["`\\]\)/\\\1/g'
5246
5247# Sed substitution to delay expansion of an escaped shell variable in a
5248# double_quote_subst'ed string.
5249delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5250
5251# Sed substitution to delay expansion of an escaped single quote.
5252delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5253
5254# Sed substitution to avoid accidental globbing in evaled expressions
5255no_glob_subst='s/\*/\\\*/g'
5256
5257ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5258ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5259ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5260
5261{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5262printf %s "checking how to print strings... " >&6; }
5263# Test print first, because it will be a builtin if present.
5264if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5265   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5266  ECHO='print -r --'
5267elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5268  ECHO='printf %s\n'
5269else
5270  # Use this function as a fallback that always works.
5271  func_fallback_echo ()
5272  {
5273    eval 'cat <<_LTECHO_EOF
5274$1
5275_LTECHO_EOF'
5276  }
5277  ECHO='func_fallback_echo'
5278fi
5279
5280# func_echo_all arg...
5281# Invoke $ECHO with all args, space-separated.
5282func_echo_all ()
5283{
5284    $ECHO ""
5285}
5286
5287case $ECHO in
5288  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5289printf "%s\n" "printf" >&6; } ;;
5290  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5291printf "%s\n" "print -r" >&6; } ;;
5292  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5293printf "%s\n" "cat" >&6; } ;;
5294esac
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5310printf %s "checking for a sed that does not truncate output... " >&6; }
5311if test ${ac_cv_path_SED+y}
5312then :
5313  printf %s "(cached) " >&6
5314else $as_nop
5315            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5316     for ac_i in 1 2 3 4 5 6 7; do
5317       ac_script="$ac_script$as_nl$ac_script"
5318     done
5319     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5320     { ac_script=; unset ac_script;}
5321     if test -z "$SED"; then
5322  ac_path_SED_found=false
5323  # Loop through the user's path and test for each of PROGNAME-LIST
5324  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5325for as_dir in $PATH
5326do
5327  IFS=$as_save_IFS
5328  case $as_dir in #(((
5329    '') as_dir=./ ;;
5330    */) ;;
5331    *) as_dir=$as_dir/ ;;
5332  esac
5333    for ac_prog in sed gsed
5334   do
5335    for ac_exec_ext in '' $ac_executable_extensions; do
5336      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5337      as_fn_executable_p "$ac_path_SED" || continue
5338# Check for GNU ac_path_SED and select it if it is found.
5339  # Check for GNU $ac_path_SED
5340case `"$ac_path_SED" --version 2>&1` in
5341*GNU*)
5342  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5343*)
5344  ac_count=0
5345  printf %s 0123456789 >"conftest.in"
5346  while :
5347  do
5348    cat "conftest.in" "conftest.in" >"conftest.tmp"
5349    mv "conftest.tmp" "conftest.in"
5350    cp "conftest.in" "conftest.nl"
5351    printf "%s\n" '' >> "conftest.nl"
5352    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5353    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5354    as_fn_arith $ac_count + 1 && ac_count=$as_val
5355    if test $ac_count -gt ${ac_path_SED_max-0}; then
5356      # Best one so far, save it but keep looking for a better one
5357      ac_cv_path_SED="$ac_path_SED"
5358      ac_path_SED_max=$ac_count
5359    fi
5360    # 10*(2^10) chars as input seems more than enough
5361    test $ac_count -gt 10 && break
5362  done
5363  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5364esac
5365
5366      $ac_path_SED_found && break 3
5367    done
5368  done
5369  done
5370IFS=$as_save_IFS
5371  if test -z "$ac_cv_path_SED"; then
5372    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5373  fi
5374else
5375  ac_cv_path_SED=$SED
5376fi
5377
5378fi
5379{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5380printf "%s\n" "$ac_cv_path_SED" >&6; }
5381 SED="$ac_cv_path_SED"
5382  rm -f conftest.sed
5383
5384test -z "$SED" && SED=sed
5385Xsed="$SED -e 1s/^X//"
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5398printf %s "checking for grep that handles long lines and -e... " >&6; }
5399if test ${ac_cv_path_GREP+y}
5400then :
5401  printf %s "(cached) " >&6
5402else $as_nop
5403  if test -z "$GREP"; then
5404  ac_path_GREP_found=false
5405  # Loop through the user's path and test for each of PROGNAME-LIST
5406  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5407for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5408do
5409  IFS=$as_save_IFS
5410  case $as_dir in #(((
5411    '') as_dir=./ ;;
5412    */) ;;
5413    *) as_dir=$as_dir/ ;;
5414  esac
5415    for ac_prog in grep ggrep
5416   do
5417    for ac_exec_ext in '' $ac_executable_extensions; do
5418      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5419      as_fn_executable_p "$ac_path_GREP" || continue
5420# Check for GNU ac_path_GREP and select it if it is found.
5421  # Check for GNU $ac_path_GREP
5422case `"$ac_path_GREP" --version 2>&1` in
5423*GNU*)
5424  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5425*)
5426  ac_count=0
5427  printf %s 0123456789 >"conftest.in"
5428  while :
5429  do
5430    cat "conftest.in" "conftest.in" >"conftest.tmp"
5431    mv "conftest.tmp" "conftest.in"
5432    cp "conftest.in" "conftest.nl"
5433    printf "%s\n" 'GREP' >> "conftest.nl"
5434    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5435    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5436    as_fn_arith $ac_count + 1 && ac_count=$as_val
5437    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5438      # Best one so far, save it but keep looking for a better one
5439      ac_cv_path_GREP="$ac_path_GREP"
5440      ac_path_GREP_max=$ac_count
5441    fi
5442    # 10*(2^10) chars as input seems more than enough
5443    test $ac_count -gt 10 && break
5444  done
5445  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5446esac
5447
5448      $ac_path_GREP_found && break 3
5449    done
5450  done
5451  done
5452IFS=$as_save_IFS
5453  if test -z "$ac_cv_path_GREP"; then
5454    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5455  fi
5456else
5457  ac_cv_path_GREP=$GREP
5458fi
5459
5460fi
5461{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5462printf "%s\n" "$ac_cv_path_GREP" >&6; }
5463 GREP="$ac_cv_path_GREP"
5464
5465
5466{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5467printf %s "checking for egrep... " >&6; }
5468if test ${ac_cv_path_EGREP+y}
5469then :
5470  printf %s "(cached) " >&6
5471else $as_nop
5472  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5473   then ac_cv_path_EGREP="$GREP -E"
5474   else
5475     if test -z "$EGREP"; then
5476  ac_path_EGREP_found=false
5477  # Loop through the user's path and test for each of PROGNAME-LIST
5478  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5479for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5480do
5481  IFS=$as_save_IFS
5482  case $as_dir in #(((
5483    '') as_dir=./ ;;
5484    */) ;;
5485    *) as_dir=$as_dir/ ;;
5486  esac
5487    for ac_prog in egrep
5488   do
5489    for ac_exec_ext in '' $ac_executable_extensions; do
5490      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5491      as_fn_executable_p "$ac_path_EGREP" || continue
5492# Check for GNU ac_path_EGREP and select it if it is found.
5493  # Check for GNU $ac_path_EGREP
5494case `"$ac_path_EGREP" --version 2>&1` in
5495*GNU*)
5496  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5497*)
5498  ac_count=0
5499  printf %s 0123456789 >"conftest.in"
5500  while :
5501  do
5502    cat "conftest.in" "conftest.in" >"conftest.tmp"
5503    mv "conftest.tmp" "conftest.in"
5504    cp "conftest.in" "conftest.nl"
5505    printf "%s\n" 'EGREP' >> "conftest.nl"
5506    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5507    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5508    as_fn_arith $ac_count + 1 && ac_count=$as_val
5509    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5510      # Best one so far, save it but keep looking for a better one
5511      ac_cv_path_EGREP="$ac_path_EGREP"
5512      ac_path_EGREP_max=$ac_count
5513    fi
5514    # 10*(2^10) chars as input seems more than enough
5515    test $ac_count -gt 10 && break
5516  done
5517  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5518esac
5519
5520      $ac_path_EGREP_found && break 3
5521    done
5522  done
5523  done
5524IFS=$as_save_IFS
5525  if test -z "$ac_cv_path_EGREP"; then
5526    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5527  fi
5528else
5529  ac_cv_path_EGREP=$EGREP
5530fi
5531
5532   fi
5533fi
5534{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5535printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5536 EGREP="$ac_cv_path_EGREP"
5537
5538
5539{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5540printf %s "checking for fgrep... " >&6; }
5541if test ${ac_cv_path_FGREP+y}
5542then :
5543  printf %s "(cached) " >&6
5544else $as_nop
5545  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5546   then ac_cv_path_FGREP="$GREP -F"
5547   else
5548     if test -z "$FGREP"; then
5549  ac_path_FGREP_found=false
5550  # Loop through the user's path and test for each of PROGNAME-LIST
5551  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5552for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5553do
5554  IFS=$as_save_IFS
5555  case $as_dir in #(((
5556    '') as_dir=./ ;;
5557    */) ;;
5558    *) as_dir=$as_dir/ ;;
5559  esac
5560    for ac_prog in fgrep
5561   do
5562    for ac_exec_ext in '' $ac_executable_extensions; do
5563      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5564      as_fn_executable_p "$ac_path_FGREP" || continue
5565# Check for GNU ac_path_FGREP and select it if it is found.
5566  # Check for GNU $ac_path_FGREP
5567case `"$ac_path_FGREP" --version 2>&1` in
5568*GNU*)
5569  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5570*)
5571  ac_count=0
5572  printf %s 0123456789 >"conftest.in"
5573  while :
5574  do
5575    cat "conftest.in" "conftest.in" >"conftest.tmp"
5576    mv "conftest.tmp" "conftest.in"
5577    cp "conftest.in" "conftest.nl"
5578    printf "%s\n" 'FGREP' >> "conftest.nl"
5579    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5580    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5581    as_fn_arith $ac_count + 1 && ac_count=$as_val
5582    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5583      # Best one so far, save it but keep looking for a better one
5584      ac_cv_path_FGREP="$ac_path_FGREP"
5585      ac_path_FGREP_max=$ac_count
5586    fi
5587    # 10*(2^10) chars as input seems more than enough
5588    test $ac_count -gt 10 && break
5589  done
5590  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5591esac
5592
5593      $ac_path_FGREP_found && break 3
5594    done
5595  done
5596  done
5597IFS=$as_save_IFS
5598  if test -z "$ac_cv_path_FGREP"; then
5599    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5600  fi
5601else
5602  ac_cv_path_FGREP=$FGREP
5603fi
5604
5605   fi
5606fi
5607{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5608printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5609 FGREP="$ac_cv_path_FGREP"
5610
5611
5612test -z "$GREP" && GREP=grep
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632# Check whether --with-gnu-ld was given.
5633if test ${with_gnu_ld+y}
5634then :
5635  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5636else $as_nop
5637  with_gnu_ld=no
5638fi
5639
5640ac_prog=ld
5641if test yes = "$GCC"; then
5642  # Check if gcc -print-prog-name=ld gives a path.
5643  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5644printf %s "checking for ld used by $CC... " >&6; }
5645  case $host in
5646  *-*-mingw*)
5647    # gcc leaves a trailing carriage return, which upsets mingw
5648    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5649  *)
5650    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5651  esac
5652  case $ac_prog in
5653    # Accept absolute paths.
5654    [\\/]* | ?:[\\/]*)
5655      re_direlt='/[^/][^/]*/\.\./'
5656      # Canonicalize the pathname of ld
5657      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5658      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5659	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5660      done
5661      test -z "$LD" && LD=$ac_prog
5662      ;;
5663  "")
5664    # If it fails, then pretend we aren't using GCC.
5665    ac_prog=ld
5666    ;;
5667  *)
5668    # If it is relative, then search for the first ld in PATH.
5669    with_gnu_ld=unknown
5670    ;;
5671  esac
5672elif test yes = "$with_gnu_ld"; then
5673  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5674printf %s "checking for GNU ld... " >&6; }
5675else
5676  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5677printf %s "checking for non-GNU ld... " >&6; }
5678fi
5679if test ${lt_cv_path_LD+y}
5680then :
5681  printf %s "(cached) " >&6
5682else $as_nop
5683  if test -z "$LD"; then
5684  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5685  for ac_dir in $PATH; do
5686    IFS=$lt_save_ifs
5687    test -z "$ac_dir" && ac_dir=.
5688    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5689      lt_cv_path_LD=$ac_dir/$ac_prog
5690      # Check to see if the program is GNU ld.  I'd rather use --version,
5691      # but apparently some variants of GNU ld only accept -v.
5692      # Break only if it was the GNU/non-GNU ld that we prefer.
5693      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5694      *GNU* | *'with BFD'*)
5695	test no != "$with_gnu_ld" && break
5696	;;
5697      *)
5698	test yes != "$with_gnu_ld" && break
5699	;;
5700      esac
5701    fi
5702  done
5703  IFS=$lt_save_ifs
5704else
5705  lt_cv_path_LD=$LD # Let the user override the test with a path.
5706fi
5707fi
5708
5709LD=$lt_cv_path_LD
5710if test -n "$LD"; then
5711  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5712printf "%s\n" "$LD" >&6; }
5713else
5714  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5715printf "%s\n" "no" >&6; }
5716fi
5717test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5718{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5719printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5720if test ${lt_cv_prog_gnu_ld+y}
5721then :
5722  printf %s "(cached) " >&6
5723else $as_nop
5724  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5725case `$LD -v 2>&1 </dev/null` in
5726*GNU* | *'with BFD'*)
5727  lt_cv_prog_gnu_ld=yes
5728  ;;
5729*)
5730  lt_cv_prog_gnu_ld=no
5731  ;;
5732esac
5733fi
5734{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5735printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5736with_gnu_ld=$lt_cv_prog_gnu_ld
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5747printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5748if test ${lt_cv_path_NM+y}
5749then :
5750  printf %s "(cached) " >&6
5751else $as_nop
5752  if test -n "$NM"; then
5753  # Let the user override the test.
5754  lt_cv_path_NM=$NM
5755else
5756  lt_nm_to_check=${ac_tool_prefix}nm
5757  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5758    lt_nm_to_check="$lt_nm_to_check nm"
5759  fi
5760  for lt_tmp_nm in $lt_nm_to_check; do
5761    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5762    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5763      IFS=$lt_save_ifs
5764      test -z "$ac_dir" && ac_dir=.
5765      tmp_nm=$ac_dir/$lt_tmp_nm
5766      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5767	# Check to see if the nm accepts a BSD-compat flag.
5768	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5769	#   nm: unknown option "B" ignored
5770	# Tru64's nm complains that /dev/null is an invalid object file
5771	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5772	case $build_os in
5773	mingw*) lt_bad_file=conftest.nm/nofile ;;
5774	*) lt_bad_file=/dev/null ;;
5775	esac
5776	case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5777	*$lt_bad_file* | *'Invalid file or object type'*)
5778	  lt_cv_path_NM="$tmp_nm -B"
5779	  break 2
5780	  ;;
5781	*)
5782	  case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5783	  */dev/null*)
5784	    lt_cv_path_NM="$tmp_nm -p"
5785	    break 2
5786	    ;;
5787	  *)
5788	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5789	    continue # so that we can try to find one that supports BSD flags
5790	    ;;
5791	  esac
5792	  ;;
5793	esac
5794      fi
5795    done
5796    IFS=$lt_save_ifs
5797  done
5798  : ${lt_cv_path_NM=no}
5799fi
5800fi
5801{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5802printf "%s\n" "$lt_cv_path_NM" >&6; }
5803if test no != "$lt_cv_path_NM"; then
5804  NM=$lt_cv_path_NM
5805else
5806  # Didn't find any BSD compatible name lister, look for dumpbin.
5807  if test -n "$DUMPBIN"; then :
5808    # Let the user override the test.
5809  else
5810    if test -n "$ac_tool_prefix"; then
5811  for ac_prog in dumpbin "link -dump"
5812  do
5813    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5814set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5815{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5816printf %s "checking for $ac_word... " >&6; }
5817if test ${ac_cv_prog_DUMPBIN+y}
5818then :
5819  printf %s "(cached) " >&6
5820else $as_nop
5821  if test -n "$DUMPBIN"; then
5822  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5823else
5824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5825for as_dir in $PATH
5826do
5827  IFS=$as_save_IFS
5828  case $as_dir in #(((
5829    '') as_dir=./ ;;
5830    */) ;;
5831    *) as_dir=$as_dir/ ;;
5832  esac
5833    for ac_exec_ext in '' $ac_executable_extensions; do
5834  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5835    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5836    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5837    break 2
5838  fi
5839done
5840  done
5841IFS=$as_save_IFS
5842
5843fi
5844fi
5845DUMPBIN=$ac_cv_prog_DUMPBIN
5846if test -n "$DUMPBIN"; then
5847  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5848printf "%s\n" "$DUMPBIN" >&6; }
5849else
5850  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5851printf "%s\n" "no" >&6; }
5852fi
5853
5854
5855    test -n "$DUMPBIN" && break
5856  done
5857fi
5858if test -z "$DUMPBIN"; then
5859  ac_ct_DUMPBIN=$DUMPBIN
5860  for ac_prog in dumpbin "link -dump"
5861do
5862  # Extract the first word of "$ac_prog", so it can be a program name with args.
5863set dummy $ac_prog; ac_word=$2
5864{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5865printf %s "checking for $ac_word... " >&6; }
5866if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5867then :
5868  printf %s "(cached) " >&6
5869else $as_nop
5870  if test -n "$ac_ct_DUMPBIN"; then
5871  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5872else
5873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5874for as_dir in $PATH
5875do
5876  IFS=$as_save_IFS
5877  case $as_dir in #(((
5878    '') as_dir=./ ;;
5879    */) ;;
5880    *) as_dir=$as_dir/ ;;
5881  esac
5882    for ac_exec_ext in '' $ac_executable_extensions; do
5883  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5884    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5885    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5886    break 2
5887  fi
5888done
5889  done
5890IFS=$as_save_IFS
5891
5892fi
5893fi
5894ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5895if test -n "$ac_ct_DUMPBIN"; then
5896  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5897printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5898else
5899  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5900printf "%s\n" "no" >&6; }
5901fi
5902
5903
5904  test -n "$ac_ct_DUMPBIN" && break
5905done
5906
5907  if test "x$ac_ct_DUMPBIN" = x; then
5908    DUMPBIN=":"
5909  else
5910    case $cross_compiling:$ac_tool_warned in
5911yes:)
5912{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5913printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5914ac_tool_warned=yes ;;
5915esac
5916    DUMPBIN=$ac_ct_DUMPBIN
5917  fi
5918fi
5919
5920    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5921    *COFF*)
5922      DUMPBIN="$DUMPBIN -symbols -headers"
5923      ;;
5924    *)
5925      DUMPBIN=:
5926      ;;
5927    esac
5928  fi
5929
5930  if test : != "$DUMPBIN"; then
5931    NM=$DUMPBIN
5932  fi
5933fi
5934test -z "$NM" && NM=nm
5935
5936
5937
5938
5939
5940
5941{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5942printf %s "checking the name lister ($NM) interface... " >&6; }
5943if test ${lt_cv_nm_interface+y}
5944then :
5945  printf %s "(cached) " >&6
5946else $as_nop
5947  lt_cv_nm_interface="BSD nm"
5948  echo "int some_variable = 0;" > conftest.$ac_ext
5949  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5950  (eval "$ac_compile" 2>conftest.err)
5951  cat conftest.err >&5
5952  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5953  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5954  cat conftest.err >&5
5955  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5956  cat conftest.out >&5
5957  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5958    lt_cv_nm_interface="MS dumpbin"
5959  fi
5960  rm -f conftest*
5961fi
5962{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5963printf "%s\n" "$lt_cv_nm_interface" >&6; }
5964
5965{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5966printf %s "checking whether ln -s works... " >&6; }
5967LN_S=$as_ln_s
5968if test "$LN_S" = "ln -s"; then
5969  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5970printf "%s\n" "yes" >&6; }
5971else
5972  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5973printf "%s\n" "no, using $LN_S" >&6; }
5974fi
5975
5976# find the maximum length of command line arguments
5977{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5978printf %s "checking the maximum length of command line arguments... " >&6; }
5979if test ${lt_cv_sys_max_cmd_len+y}
5980then :
5981  printf %s "(cached) " >&6
5982else $as_nop
5983    i=0
5984  teststring=ABCD
5985
5986  case $build_os in
5987  msdosdjgpp*)
5988    # On DJGPP, this test can blow up pretty badly due to problems in libc
5989    # (any single argument exceeding 2000 bytes causes a buffer overrun
5990    # during glob expansion).  Even if it were fixed, the result of this
5991    # check would be larger than it should be.
5992    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5993    ;;
5994
5995  gnu*)
5996    # Under GNU Hurd, this test is not required because there is
5997    # no limit to the length of command line arguments.
5998    # Libtool will interpret -1 as no limit whatsoever
5999    lt_cv_sys_max_cmd_len=-1;
6000    ;;
6001
6002  cygwin* | mingw* | cegcc*)
6003    # On Win9x/ME, this test blows up -- it succeeds, but takes
6004    # about 5 minutes as the teststring grows exponentially.
6005    # Worse, since 9x/ME are not pre-emptively multitasking,
6006    # you end up with a "frozen" computer, even though with patience
6007    # the test eventually succeeds (with a max line length of 256k).
6008    # Instead, let's just punt: use the minimum linelength reported by
6009    # all of the supported platforms: 8192 (on NT/2K/XP).
6010    lt_cv_sys_max_cmd_len=8192;
6011    ;;
6012
6013  mint*)
6014    # On MiNT this can take a long time and run out of memory.
6015    lt_cv_sys_max_cmd_len=8192;
6016    ;;
6017
6018  amigaos*)
6019    # On AmigaOS with pdksh, this test takes hours, literally.
6020    # So we just punt and use a minimum line length of 8192.
6021    lt_cv_sys_max_cmd_len=8192;
6022    ;;
6023
6024  bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
6025    # This has been around since 386BSD, at least.  Likely further.
6026    if test -x /sbin/sysctl; then
6027      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6028    elif test -x /usr/sbin/sysctl; then
6029      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6030    else
6031      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6032    fi
6033    # And add a safety zone
6034    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6035    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6036    ;;
6037
6038  interix*)
6039    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6040    lt_cv_sys_max_cmd_len=196608
6041    ;;
6042
6043  os2*)
6044    # The test takes a long time on OS/2.
6045    lt_cv_sys_max_cmd_len=8192
6046    ;;
6047
6048  osf*)
6049    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6050    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6051    # nice to cause kernel panics so lets avoid the loop below.
6052    # First set a reasonable default.
6053    lt_cv_sys_max_cmd_len=16384
6054    #
6055    if test -x /sbin/sysconfig; then
6056      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6057        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6058      esac
6059    fi
6060    ;;
6061  sco3.2v5*)
6062    lt_cv_sys_max_cmd_len=102400
6063    ;;
6064  sysv5* | sco5v6* | sysv4.2uw2*)
6065    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6066    if test -n "$kargmax"; then
6067      lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[	 ]//'`
6068    else
6069      lt_cv_sys_max_cmd_len=32768
6070    fi
6071    ;;
6072  *)
6073    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6074    if test -n "$lt_cv_sys_max_cmd_len" && \
6075       test undefined != "$lt_cv_sys_max_cmd_len"; then
6076      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6077      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6078    else
6079      # Make teststring a little bigger before we do anything with it.
6080      # a 1K string should be a reasonable start.
6081      for i in 1 2 3 4 5 6 7 8; do
6082        teststring=$teststring$teststring
6083      done
6084      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6085      # If test is not a shell built-in, we'll probably end up computing a
6086      # maximum length that is only half of the actual maximum length, but
6087      # we can't tell.
6088      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6089	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6090	      test 17 != "$i" # 1/2 MB should be enough
6091      do
6092        i=`expr $i + 1`
6093        teststring=$teststring$teststring
6094      done
6095      # Only check the string length outside the loop.
6096      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6097      teststring=
6098      # Add a significant safety factor because C++ compilers can tack on
6099      # massive amounts of additional arguments before passing them to the
6100      # linker.  It appears as though 1/2 is a usable value.
6101      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6102    fi
6103    ;;
6104  esac
6105
6106fi
6107
6108if test -n "$lt_cv_sys_max_cmd_len"; then
6109  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6110printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6111else
6112  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6113printf "%s\n" "none" >&6; }
6114fi
6115max_cmd_len=$lt_cv_sys_max_cmd_len
6116
6117
6118
6119
6120
6121
6122: ${CP="cp -f"}
6123: ${MV="mv -f"}
6124: ${RM="rm -f"}
6125
6126if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6127  lt_unset=unset
6128else
6129  lt_unset=false
6130fi
6131
6132
6133
6134
6135
6136# test EBCDIC or ASCII
6137case `echo X|tr X '\101'` in
6138 A) # ASCII based system
6139    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6140  lt_SP2NL='tr \040 \012'
6141  lt_NL2SP='tr \015\012 \040\040'
6142  ;;
6143 *) # EBCDIC based system
6144  lt_SP2NL='tr \100 \n'
6145  lt_NL2SP='tr \r\n \100\100'
6146  ;;
6147esac
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6158printf %s "checking how to convert $build file names to $host format... " >&6; }
6159if test ${lt_cv_to_host_file_cmd+y}
6160then :
6161  printf %s "(cached) " >&6
6162else $as_nop
6163  case $host in
6164  *-*-mingw* )
6165    case $build in
6166      *-*-mingw* ) # actually msys
6167        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6168        ;;
6169      *-*-cygwin* )
6170        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6171        ;;
6172      * ) # otherwise, assume *nix
6173        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6174        ;;
6175    esac
6176    ;;
6177  *-*-cygwin* )
6178    case $build in
6179      *-*-mingw* ) # actually msys
6180        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6181        ;;
6182      *-*-cygwin* )
6183        lt_cv_to_host_file_cmd=func_convert_file_noop
6184        ;;
6185      * ) # otherwise, assume *nix
6186        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6187        ;;
6188    esac
6189    ;;
6190  * ) # unhandled hosts (and "normal" native builds)
6191    lt_cv_to_host_file_cmd=func_convert_file_noop
6192    ;;
6193esac
6194
6195fi
6196
6197to_host_file_cmd=$lt_cv_to_host_file_cmd
6198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6199printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6200
6201
6202
6203
6204
6205{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6206printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6207if test ${lt_cv_to_tool_file_cmd+y}
6208then :
6209  printf %s "(cached) " >&6
6210else $as_nop
6211  #assume ordinary cross tools, or native build.
6212lt_cv_to_tool_file_cmd=func_convert_file_noop
6213case $host in
6214  *-*-mingw* )
6215    case $build in
6216      *-*-mingw* ) # actually msys
6217        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6218        ;;
6219    esac
6220    ;;
6221esac
6222
6223fi
6224
6225to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6226{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6227printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6228
6229
6230
6231
6232
6233{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6234printf %s "checking for $LD option to reload object files... " >&6; }
6235if test ${lt_cv_ld_reload_flag+y}
6236then :
6237  printf %s "(cached) " >&6
6238else $as_nop
6239  lt_cv_ld_reload_flag='-r'
6240fi
6241{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6242printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6243reload_flag=$lt_cv_ld_reload_flag
6244case $reload_flag in
6245"" | " "*) ;;
6246*) reload_flag=" $reload_flag" ;;
6247esac
6248reload_cmds='$LD$reload_flag -o $output$reload_objs'
6249case $host_os in
6250  cygwin* | mingw* | pw32* | cegcc*)
6251    if test yes != "$GCC"; then
6252      reload_cmds=false
6253    fi
6254    ;;
6255  darwin*)
6256    if test yes = "$GCC"; then
6257      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6258    else
6259      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6260    fi
6261    ;;
6262esac
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272if test -n "$ac_tool_prefix"; then
6273  # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
6274set dummy ${ac_tool_prefix}file; ac_word=$2
6275{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6276printf %s "checking for $ac_word... " >&6; }
6277if test ${ac_cv_prog_FILECMD+y}
6278then :
6279  printf %s "(cached) " >&6
6280else $as_nop
6281  if test -n "$FILECMD"; then
6282  ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6283else
6284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6285for as_dir in $PATH
6286do
6287  IFS=$as_save_IFS
6288  case $as_dir in #(((
6289    '') as_dir=./ ;;
6290    */) ;;
6291    *) as_dir=$as_dir/ ;;
6292  esac
6293    for ac_exec_ext in '' $ac_executable_extensions; do
6294  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6295    ac_cv_prog_FILECMD="${ac_tool_prefix}file"
6296    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6297    break 2
6298  fi
6299done
6300  done
6301IFS=$as_save_IFS
6302
6303fi
6304fi
6305FILECMD=$ac_cv_prog_FILECMD
6306if test -n "$FILECMD"; then
6307  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6308printf "%s\n" "$FILECMD" >&6; }
6309else
6310  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6311printf "%s\n" "no" >&6; }
6312fi
6313
6314
6315fi
6316if test -z "$ac_cv_prog_FILECMD"; then
6317  ac_ct_FILECMD=$FILECMD
6318  # Extract the first word of "file", so it can be a program name with args.
6319set dummy file; ac_word=$2
6320{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6321printf %s "checking for $ac_word... " >&6; }
6322if test ${ac_cv_prog_ac_ct_FILECMD+y}
6323then :
6324  printf %s "(cached) " >&6
6325else $as_nop
6326  if test -n "$ac_ct_FILECMD"; then
6327  ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
6328else
6329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6330for as_dir in $PATH
6331do
6332  IFS=$as_save_IFS
6333  case $as_dir in #(((
6334    '') as_dir=./ ;;
6335    */) ;;
6336    *) as_dir=$as_dir/ ;;
6337  esac
6338    for ac_exec_ext in '' $ac_executable_extensions; do
6339  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6340    ac_cv_prog_ac_ct_FILECMD="file"
6341    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6342    break 2
6343  fi
6344done
6345  done
6346IFS=$as_save_IFS
6347
6348fi
6349fi
6350ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
6351if test -n "$ac_ct_FILECMD"; then
6352  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
6353printf "%s\n" "$ac_ct_FILECMD" >&6; }
6354else
6355  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6356printf "%s\n" "no" >&6; }
6357fi
6358
6359  if test "x$ac_ct_FILECMD" = x; then
6360    FILECMD=":"
6361  else
6362    case $cross_compiling:$ac_tool_warned in
6363yes:)
6364{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6365printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6366ac_tool_warned=yes ;;
6367esac
6368    FILECMD=$ac_ct_FILECMD
6369  fi
6370else
6371  FILECMD="$ac_cv_prog_FILECMD"
6372fi
6373
6374
6375
6376
6377
6378
6379
6380if test -n "$ac_tool_prefix"; then
6381  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6382set dummy ${ac_tool_prefix}objdump; ac_word=$2
6383{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6384printf %s "checking for $ac_word... " >&6; }
6385if test ${ac_cv_prog_OBJDUMP+y}
6386then :
6387  printf %s "(cached) " >&6
6388else $as_nop
6389  if test -n "$OBJDUMP"; then
6390  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6391else
6392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6393for as_dir in $PATH
6394do
6395  IFS=$as_save_IFS
6396  case $as_dir in #(((
6397    '') as_dir=./ ;;
6398    */) ;;
6399    *) as_dir=$as_dir/ ;;
6400  esac
6401    for ac_exec_ext in '' $ac_executable_extensions; do
6402  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6403    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6404    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6405    break 2
6406  fi
6407done
6408  done
6409IFS=$as_save_IFS
6410
6411fi
6412fi
6413OBJDUMP=$ac_cv_prog_OBJDUMP
6414if test -n "$OBJDUMP"; then
6415  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6416printf "%s\n" "$OBJDUMP" >&6; }
6417else
6418  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6419printf "%s\n" "no" >&6; }
6420fi
6421
6422
6423fi
6424if test -z "$ac_cv_prog_OBJDUMP"; then
6425  ac_ct_OBJDUMP=$OBJDUMP
6426  # Extract the first word of "objdump", so it can be a program name with args.
6427set dummy objdump; ac_word=$2
6428{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6429printf %s "checking for $ac_word... " >&6; }
6430if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6431then :
6432  printf %s "(cached) " >&6
6433else $as_nop
6434  if test -n "$ac_ct_OBJDUMP"; then
6435  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6436else
6437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6438for as_dir in $PATH
6439do
6440  IFS=$as_save_IFS
6441  case $as_dir in #(((
6442    '') as_dir=./ ;;
6443    */) ;;
6444    *) as_dir=$as_dir/ ;;
6445  esac
6446    for ac_exec_ext in '' $ac_executable_extensions; do
6447  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6448    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6449    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6450    break 2
6451  fi
6452done
6453  done
6454IFS=$as_save_IFS
6455
6456fi
6457fi
6458ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6459if test -n "$ac_ct_OBJDUMP"; then
6460  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6461printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6462else
6463  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6464printf "%s\n" "no" >&6; }
6465fi
6466
6467  if test "x$ac_ct_OBJDUMP" = x; then
6468    OBJDUMP="false"
6469  else
6470    case $cross_compiling:$ac_tool_warned in
6471yes:)
6472{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6473printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6474ac_tool_warned=yes ;;
6475esac
6476    OBJDUMP=$ac_ct_OBJDUMP
6477  fi
6478else
6479  OBJDUMP="$ac_cv_prog_OBJDUMP"
6480fi
6481
6482test -z "$OBJDUMP" && OBJDUMP=objdump
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6493printf %s "checking how to recognize dependent libraries... " >&6; }
6494if test ${lt_cv_deplibs_check_method+y}
6495then :
6496  printf %s "(cached) " >&6
6497else $as_nop
6498  lt_cv_file_magic_cmd='$MAGIC_CMD'
6499lt_cv_file_magic_test_file=
6500lt_cv_deplibs_check_method='unknown'
6501# Need to set the preceding variable on all platforms that support
6502# interlibrary dependencies.
6503# 'none' -- dependencies not supported.
6504# 'unknown' -- same as none, but documents that we really don't know.
6505# 'pass_all' -- all dependencies passed with no checks.
6506# 'test_compile' -- check by making test program.
6507# 'file_magic [[regex]]' -- check by looking for files in library path
6508# that responds to the $file_magic_cmd with a given extended regex.
6509# If you have 'file' or equivalent on your system and you're not sure
6510# whether 'pass_all' will *always* work, you probably want this one.
6511
6512case $host_os in
6513aix[4-9]*)
6514  lt_cv_deplibs_check_method=pass_all
6515  ;;
6516
6517beos*)
6518  lt_cv_deplibs_check_method=pass_all
6519  ;;
6520
6521bsdi[45]*)
6522  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6523  lt_cv_file_magic_cmd='$FILECMD -L'
6524  lt_cv_file_magic_test_file=/shlib/libc.so
6525  ;;
6526
6527cygwin*)
6528  # func_win32_libid is a shell function defined in ltmain.sh
6529  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6530  lt_cv_file_magic_cmd='func_win32_libid'
6531  ;;
6532
6533mingw* | pw32*)
6534  # Base MSYS/MinGW do not provide the 'file' command needed by
6535  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6536  # unless we find 'file', for example because we are cross-compiling.
6537  if ( file / ) >/dev/null 2>&1; then
6538    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6539    lt_cv_file_magic_cmd='func_win32_libid'
6540  else
6541    # Keep this pattern in sync with the one in func_win32_libid.
6542    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6543    lt_cv_file_magic_cmd='$OBJDUMP -f'
6544  fi
6545  ;;
6546
6547cegcc*)
6548  # use the weaker test based on 'objdump'. See mingw*.
6549  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6550  lt_cv_file_magic_cmd='$OBJDUMP -f'
6551  ;;
6552
6553darwin* | rhapsody*)
6554  lt_cv_deplibs_check_method=pass_all
6555  ;;
6556
6557freebsd* | dragonfly* | midnightbsd*)
6558  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6559    case $host_cpu in
6560    i*86 )
6561      # Not sure whether the presence of OpenBSD here was a mistake.
6562      # Let's accept both of them until this is cleared up.
6563      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6564      lt_cv_file_magic_cmd=$FILECMD
6565      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6566      ;;
6567    esac
6568  else
6569    lt_cv_deplibs_check_method=pass_all
6570  fi
6571  ;;
6572
6573haiku*)
6574  lt_cv_deplibs_check_method=pass_all
6575  ;;
6576
6577hpux10.20* | hpux11*)
6578  lt_cv_file_magic_cmd=$FILECMD
6579  case $host_cpu in
6580  ia64*)
6581    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6582    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6583    ;;
6584  hppa*64*)
6585    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]'
6586    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6587    ;;
6588  *)
6589    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6590    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6591    ;;
6592  esac
6593  ;;
6594
6595interix[3-9]*)
6596  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6597  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6598  ;;
6599
6600irix5* | irix6* | nonstopux*)
6601  case $LD in
6602  *-32|*"-32 ") libmagic=32-bit;;
6603  *-n32|*"-n32 ") libmagic=N32;;
6604  *-64|*"-64 ") libmagic=64-bit;;
6605  *) libmagic=never-match;;
6606  esac
6607  lt_cv_deplibs_check_method=pass_all
6608  ;;
6609
6610# This must be glibc/ELF.
6611linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6612  lt_cv_deplibs_check_method=pass_all
6613  ;;
6614
6615netbsd*)
6616  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6617    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6618  else
6619    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6620  fi
6621  ;;
6622
6623newos6*)
6624  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6625  lt_cv_file_magic_cmd=$FILECMD
6626  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6627  ;;
6628
6629*nto* | *qnx*)
6630  lt_cv_deplibs_check_method=pass_all
6631  ;;
6632
6633openbsd* | bitrig*)
6634  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6635    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6636  else
6637    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6638  fi
6639  ;;
6640
6641osf3* | osf4* | osf5*)
6642  lt_cv_deplibs_check_method=pass_all
6643  ;;
6644
6645rdos*)
6646  lt_cv_deplibs_check_method=pass_all
6647  ;;
6648
6649solaris*)
6650  lt_cv_deplibs_check_method=pass_all
6651  ;;
6652
6653sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6654  lt_cv_deplibs_check_method=pass_all
6655  ;;
6656
6657sysv4 | sysv4.3*)
6658  case $host_vendor in
6659  motorola)
6660    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]'
6661    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6662    ;;
6663  ncr)
6664    lt_cv_deplibs_check_method=pass_all
6665    ;;
6666  sequent)
6667    lt_cv_file_magic_cmd='/bin/file'
6668    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6669    ;;
6670  sni)
6671    lt_cv_file_magic_cmd='/bin/file'
6672    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6673    lt_cv_file_magic_test_file=/lib/libc.so
6674    ;;
6675  siemens)
6676    lt_cv_deplibs_check_method=pass_all
6677    ;;
6678  pc)
6679    lt_cv_deplibs_check_method=pass_all
6680    ;;
6681  esac
6682  ;;
6683
6684tpf*)
6685  lt_cv_deplibs_check_method=pass_all
6686  ;;
6687os2*)
6688  lt_cv_deplibs_check_method=pass_all
6689  ;;
6690esac
6691
6692fi
6693{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6694printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6695
6696file_magic_glob=
6697want_nocaseglob=no
6698if test "$build" = "$host"; then
6699  case $host_os in
6700  mingw* | pw32*)
6701    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6702      want_nocaseglob=yes
6703    else
6704      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6705    fi
6706    ;;
6707  esac
6708fi
6709
6710file_magic_cmd=$lt_cv_file_magic_cmd
6711deplibs_check_method=$lt_cv_deplibs_check_method
6712test -z "$deplibs_check_method" && deplibs_check_method=unknown
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735if test -n "$ac_tool_prefix"; then
6736  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6737set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6738{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6739printf %s "checking for $ac_word... " >&6; }
6740if test ${ac_cv_prog_DLLTOOL+y}
6741then :
6742  printf %s "(cached) " >&6
6743else $as_nop
6744  if test -n "$DLLTOOL"; then
6745  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6746else
6747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6748for as_dir in $PATH
6749do
6750  IFS=$as_save_IFS
6751  case $as_dir in #(((
6752    '') as_dir=./ ;;
6753    */) ;;
6754    *) as_dir=$as_dir/ ;;
6755  esac
6756    for ac_exec_ext in '' $ac_executable_extensions; do
6757  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6758    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6759    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6760    break 2
6761  fi
6762done
6763  done
6764IFS=$as_save_IFS
6765
6766fi
6767fi
6768DLLTOOL=$ac_cv_prog_DLLTOOL
6769if test -n "$DLLTOOL"; then
6770  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6771printf "%s\n" "$DLLTOOL" >&6; }
6772else
6773  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6774printf "%s\n" "no" >&6; }
6775fi
6776
6777
6778fi
6779if test -z "$ac_cv_prog_DLLTOOL"; then
6780  ac_ct_DLLTOOL=$DLLTOOL
6781  # Extract the first word of "dlltool", so it can be a program name with args.
6782set dummy dlltool; ac_word=$2
6783{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6784printf %s "checking for $ac_word... " >&6; }
6785if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6786then :
6787  printf %s "(cached) " >&6
6788else $as_nop
6789  if test -n "$ac_ct_DLLTOOL"; then
6790  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6791else
6792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6793for as_dir in $PATH
6794do
6795  IFS=$as_save_IFS
6796  case $as_dir in #(((
6797    '') as_dir=./ ;;
6798    */) ;;
6799    *) as_dir=$as_dir/ ;;
6800  esac
6801    for ac_exec_ext in '' $ac_executable_extensions; do
6802  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6803    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6804    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6805    break 2
6806  fi
6807done
6808  done
6809IFS=$as_save_IFS
6810
6811fi
6812fi
6813ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6814if test -n "$ac_ct_DLLTOOL"; then
6815  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6816printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6817else
6818  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6819printf "%s\n" "no" >&6; }
6820fi
6821
6822  if test "x$ac_ct_DLLTOOL" = x; then
6823    DLLTOOL="false"
6824  else
6825    case $cross_compiling:$ac_tool_warned in
6826yes:)
6827{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6828printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6829ac_tool_warned=yes ;;
6830esac
6831    DLLTOOL=$ac_ct_DLLTOOL
6832  fi
6833else
6834  DLLTOOL="$ac_cv_prog_DLLTOOL"
6835fi
6836
6837test -z "$DLLTOOL" && DLLTOOL=dlltool
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6849printf %s "checking how to associate runtime and link libraries... " >&6; }
6850if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6851then :
6852  printf %s "(cached) " >&6
6853else $as_nop
6854  lt_cv_sharedlib_from_linklib_cmd='unknown'
6855
6856case $host_os in
6857cygwin* | mingw* | pw32* | cegcc*)
6858  # two different shell functions defined in ltmain.sh;
6859  # decide which one to use based on capabilities of $DLLTOOL
6860  case `$DLLTOOL --help 2>&1` in
6861  *--identify-strict*)
6862    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6863    ;;
6864  *)
6865    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6866    ;;
6867  esac
6868  ;;
6869*)
6870  # fallback: assume linklib IS sharedlib
6871  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6872  ;;
6873esac
6874
6875fi
6876{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6877printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6878sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6879test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6880
6881
6882
6883
6884
6885
6886
6887if test -n "$ac_tool_prefix"; then
6888  for ac_prog in ar
6889  do
6890    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6891set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6892{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6893printf %s "checking for $ac_word... " >&6; }
6894if test ${ac_cv_prog_AR+y}
6895then :
6896  printf %s "(cached) " >&6
6897else $as_nop
6898  if test -n "$AR"; then
6899  ac_cv_prog_AR="$AR" # Let the user override the test.
6900else
6901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6902for as_dir in $PATH
6903do
6904  IFS=$as_save_IFS
6905  case $as_dir in #(((
6906    '') as_dir=./ ;;
6907    */) ;;
6908    *) as_dir=$as_dir/ ;;
6909  esac
6910    for ac_exec_ext in '' $ac_executable_extensions; do
6911  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6912    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6913    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6914    break 2
6915  fi
6916done
6917  done
6918IFS=$as_save_IFS
6919
6920fi
6921fi
6922AR=$ac_cv_prog_AR
6923if test -n "$AR"; then
6924  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6925printf "%s\n" "$AR" >&6; }
6926else
6927  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6928printf "%s\n" "no" >&6; }
6929fi
6930
6931
6932    test -n "$AR" && break
6933  done
6934fi
6935if test -z "$AR"; then
6936  ac_ct_AR=$AR
6937  for ac_prog in ar
6938do
6939  # Extract the first word of "$ac_prog", so it can be a program name with args.
6940set dummy $ac_prog; ac_word=$2
6941{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6942printf %s "checking for $ac_word... " >&6; }
6943if test ${ac_cv_prog_ac_ct_AR+y}
6944then :
6945  printf %s "(cached) " >&6
6946else $as_nop
6947  if test -n "$ac_ct_AR"; then
6948  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6949else
6950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6951for as_dir in $PATH
6952do
6953  IFS=$as_save_IFS
6954  case $as_dir in #(((
6955    '') as_dir=./ ;;
6956    */) ;;
6957    *) as_dir=$as_dir/ ;;
6958  esac
6959    for ac_exec_ext in '' $ac_executable_extensions; do
6960  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6961    ac_cv_prog_ac_ct_AR="$ac_prog"
6962    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6963    break 2
6964  fi
6965done
6966  done
6967IFS=$as_save_IFS
6968
6969fi
6970fi
6971ac_ct_AR=$ac_cv_prog_ac_ct_AR
6972if test -n "$ac_ct_AR"; then
6973  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6974printf "%s\n" "$ac_ct_AR" >&6; }
6975else
6976  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6977printf "%s\n" "no" >&6; }
6978fi
6979
6980
6981  test -n "$ac_ct_AR" && break
6982done
6983
6984  if test "x$ac_ct_AR" = x; then
6985    AR="false"
6986  else
6987    case $cross_compiling:$ac_tool_warned in
6988yes:)
6989{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6990printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6991ac_tool_warned=yes ;;
6992esac
6993    AR=$ac_ct_AR
6994  fi
6995fi
6996
6997: ${AR=ar}
6998
6999
7000
7001
7002
7003
7004# Use ARFLAGS variable as AR's operation code to sync the variable naming with
7005# Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
7006# higher priority because thats what people were doing historically (setting
7007# ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
7008# variable obsoleted/removed.
7009
7010test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
7011lt_ar_flags=$AR_FLAGS
7012
7013
7014
7015
7016
7017
7018# Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
7019# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
7020
7021
7022
7023
7024
7025
7026{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7027printf %s "checking for archiver @FILE support... " >&6; }
7028if test ${lt_cv_ar_at_file+y}
7029then :
7030  printf %s "(cached) " >&6
7031else $as_nop
7032  lt_cv_ar_at_file=no
7033   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7034/* end confdefs.h.  */
7035
7036int
7037main (void)
7038{
7039
7040  ;
7041  return 0;
7042}
7043_ACEOF
7044if ac_fn_c_try_compile "$LINENO"
7045then :
7046  echo conftest.$ac_objext > conftest.lst
7047      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7048      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7049  (eval $lt_ar_try) 2>&5
7050  ac_status=$?
7051  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7052  test $ac_status = 0; }
7053      if test 0 -eq "$ac_status"; then
7054	# Ensure the archiver fails upon bogus file names.
7055	rm -f conftest.$ac_objext libconftest.a
7056	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7057  (eval $lt_ar_try) 2>&5
7058  ac_status=$?
7059  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7060  test $ac_status = 0; }
7061	if test 0 -ne "$ac_status"; then
7062          lt_cv_ar_at_file=@
7063        fi
7064      fi
7065      rm -f conftest.* libconftest.a
7066
7067fi
7068rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7069
7070fi
7071{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7072printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7073
7074if test no = "$lt_cv_ar_at_file"; then
7075  archiver_list_spec=
7076else
7077  archiver_list_spec=$lt_cv_ar_at_file
7078fi
7079
7080
7081
7082
7083
7084
7085
7086if test -n "$ac_tool_prefix"; then
7087  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7088set dummy ${ac_tool_prefix}strip; ac_word=$2
7089{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7090printf %s "checking for $ac_word... " >&6; }
7091if test ${ac_cv_prog_STRIP+y}
7092then :
7093  printf %s "(cached) " >&6
7094else $as_nop
7095  if test -n "$STRIP"; then
7096  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7097else
7098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7099for as_dir in $PATH
7100do
7101  IFS=$as_save_IFS
7102  case $as_dir in #(((
7103    '') as_dir=./ ;;
7104    */) ;;
7105    *) as_dir=$as_dir/ ;;
7106  esac
7107    for ac_exec_ext in '' $ac_executable_extensions; do
7108  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7109    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7110    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7111    break 2
7112  fi
7113done
7114  done
7115IFS=$as_save_IFS
7116
7117fi
7118fi
7119STRIP=$ac_cv_prog_STRIP
7120if test -n "$STRIP"; then
7121  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7122printf "%s\n" "$STRIP" >&6; }
7123else
7124  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7125printf "%s\n" "no" >&6; }
7126fi
7127
7128
7129fi
7130if test -z "$ac_cv_prog_STRIP"; then
7131  ac_ct_STRIP=$STRIP
7132  # Extract the first word of "strip", so it can be a program name with args.
7133set dummy strip; ac_word=$2
7134{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7135printf %s "checking for $ac_word... " >&6; }
7136if test ${ac_cv_prog_ac_ct_STRIP+y}
7137then :
7138  printf %s "(cached) " >&6
7139else $as_nop
7140  if test -n "$ac_ct_STRIP"; then
7141  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7142else
7143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7144for as_dir in $PATH
7145do
7146  IFS=$as_save_IFS
7147  case $as_dir in #(((
7148    '') as_dir=./ ;;
7149    */) ;;
7150    *) as_dir=$as_dir/ ;;
7151  esac
7152    for ac_exec_ext in '' $ac_executable_extensions; do
7153  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7154    ac_cv_prog_ac_ct_STRIP="strip"
7155    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7156    break 2
7157  fi
7158done
7159  done
7160IFS=$as_save_IFS
7161
7162fi
7163fi
7164ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7165if test -n "$ac_ct_STRIP"; then
7166  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7167printf "%s\n" "$ac_ct_STRIP" >&6; }
7168else
7169  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7170printf "%s\n" "no" >&6; }
7171fi
7172
7173  if test "x$ac_ct_STRIP" = x; then
7174    STRIP=":"
7175  else
7176    case $cross_compiling:$ac_tool_warned in
7177yes:)
7178{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7179printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7180ac_tool_warned=yes ;;
7181esac
7182    STRIP=$ac_ct_STRIP
7183  fi
7184else
7185  STRIP="$ac_cv_prog_STRIP"
7186fi
7187
7188test -z "$STRIP" && STRIP=:
7189
7190
7191
7192
7193
7194
7195if test -n "$ac_tool_prefix"; then
7196  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7197set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7199printf %s "checking for $ac_word... " >&6; }
7200if test ${ac_cv_prog_RANLIB+y}
7201then :
7202  printf %s "(cached) " >&6
7203else $as_nop
7204  if test -n "$RANLIB"; then
7205  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7206else
7207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7208for as_dir in $PATH
7209do
7210  IFS=$as_save_IFS
7211  case $as_dir in #(((
7212    '') as_dir=./ ;;
7213    */) ;;
7214    *) as_dir=$as_dir/ ;;
7215  esac
7216    for ac_exec_ext in '' $ac_executable_extensions; do
7217  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7218    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7219    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7220    break 2
7221  fi
7222done
7223  done
7224IFS=$as_save_IFS
7225
7226fi
7227fi
7228RANLIB=$ac_cv_prog_RANLIB
7229if test -n "$RANLIB"; then
7230  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7231printf "%s\n" "$RANLIB" >&6; }
7232else
7233  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7234printf "%s\n" "no" >&6; }
7235fi
7236
7237
7238fi
7239if test -z "$ac_cv_prog_RANLIB"; then
7240  ac_ct_RANLIB=$RANLIB
7241  # Extract the first word of "ranlib", so it can be a program name with args.
7242set dummy ranlib; ac_word=$2
7243{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7244printf %s "checking for $ac_word... " >&6; }
7245if test ${ac_cv_prog_ac_ct_RANLIB+y}
7246then :
7247  printf %s "(cached) " >&6
7248else $as_nop
7249  if test -n "$ac_ct_RANLIB"; then
7250  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7251else
7252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7253for as_dir in $PATH
7254do
7255  IFS=$as_save_IFS
7256  case $as_dir in #(((
7257    '') as_dir=./ ;;
7258    */) ;;
7259    *) as_dir=$as_dir/ ;;
7260  esac
7261    for ac_exec_ext in '' $ac_executable_extensions; do
7262  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7263    ac_cv_prog_ac_ct_RANLIB="ranlib"
7264    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7265    break 2
7266  fi
7267done
7268  done
7269IFS=$as_save_IFS
7270
7271fi
7272fi
7273ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7274if test -n "$ac_ct_RANLIB"; then
7275  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7276printf "%s\n" "$ac_ct_RANLIB" >&6; }
7277else
7278  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7279printf "%s\n" "no" >&6; }
7280fi
7281
7282  if test "x$ac_ct_RANLIB" = x; then
7283    RANLIB=":"
7284  else
7285    case $cross_compiling:$ac_tool_warned in
7286yes:)
7287{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7288printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7289ac_tool_warned=yes ;;
7290esac
7291    RANLIB=$ac_ct_RANLIB
7292  fi
7293else
7294  RANLIB="$ac_cv_prog_RANLIB"
7295fi
7296
7297test -z "$RANLIB" && RANLIB=:
7298
7299
7300
7301
7302
7303
7304# Determine commands to create old-style static archives.
7305old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7306old_postinstall_cmds='chmod 644 $oldlib'
7307old_postuninstall_cmds=
7308
7309if test -n "$RANLIB"; then
7310  case $host_os in
7311  bitrig* | openbsd*)
7312    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7313    ;;
7314  *)
7315    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7316    ;;
7317  esac
7318  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7319fi
7320
7321case $host_os in
7322  darwin*)
7323    lock_old_archive_extraction=yes ;;
7324  *)
7325    lock_old_archive_extraction=no ;;
7326esac
7327
7328
7329
7330
7331
7332
7333
7334
7335
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# If no C compiler was specified, use CC.
7367LTCC=${LTCC-"$CC"}
7368
7369# If no C compiler flags were specified, use CFLAGS.
7370LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7371
7372# Allow CC to be a program name with arguments.
7373compiler=$CC
7374
7375
7376# Check for command to grab the raw symbol name followed by C symbol from nm.
7377{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7378printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7379if test ${lt_cv_sys_global_symbol_pipe+y}
7380then :
7381  printf %s "(cached) " >&6
7382else $as_nop
7383
7384# These are sane defaults that work on at least a few old systems.
7385# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7386
7387# Character class describing NM global symbol codes.
7388symcode='[BCDEGRST]'
7389
7390# Regexp to match symbols that can be accessed directly from C.
7391sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7392
7393# Define system-specific variables.
7394case $host_os in
7395aix*)
7396  symcode='[BCDT]'
7397  ;;
7398cygwin* | mingw* | pw32* | cegcc*)
7399  symcode='[ABCDGISTW]'
7400  ;;
7401hpux*)
7402  if test ia64 = "$host_cpu"; then
7403    symcode='[ABCDEGRST]'
7404  fi
7405  ;;
7406irix* | nonstopux*)
7407  symcode='[BCDEGRST]'
7408  ;;
7409osf*)
7410  symcode='[BCDEGQRST]'
7411  ;;
7412solaris*)
7413  symcode='[BDRT]'
7414  ;;
7415sco3.2v5*)
7416  symcode='[DT]'
7417  ;;
7418sysv4.2uw2*)
7419  symcode='[DT]'
7420  ;;
7421sysv5* | sco5v6* | unixware* | OpenUNIX*)
7422  symcode='[ABDT]'
7423  ;;
7424sysv4)
7425  symcode='[DFNSTU]'
7426  ;;
7427esac
7428
7429# If we're using GNU nm, then use its standard symbol codes.
7430case `$NM -V 2>&1` in
7431*GNU* | *'with BFD'*)
7432  symcode='[ABCDGIRSTW]' ;;
7433esac
7434
7435if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7436  # Gets list of data symbols to import.
7437  lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7438  # Adjust the below global symbol transforms to fixup imported variables.
7439  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7440  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
7441  lt_c_name_lib_hook="\
7442  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
7443  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
7444else
7445  # Disable hooks by default.
7446  lt_cv_sys_global_symbol_to_import=
7447  lt_cdecl_hook=
7448  lt_c_name_hook=
7449  lt_c_name_lib_hook=
7450fi
7451
7452# Transform an extracted symbol line into a proper C declaration.
7453# Some systems (esp. on ia64) link data and code symbols differently,
7454# so use this general approach.
7455lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7456$lt_cdecl_hook\
7457" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7458" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7459
7460# Transform an extracted symbol line into symbol name and symbol address
7461lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7462$lt_c_name_hook\
7463" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7464" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7465
7466# Transform an extracted symbol line into symbol name with lib prefix and
7467# symbol address.
7468lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7469$lt_c_name_lib_hook\
7470" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7471" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7472" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7473
7474# Handle CRLF in mingw tool chain
7475opt_cr=
7476case $build_os in
7477mingw*)
7478  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7479  ;;
7480esac
7481
7482# Try without a prefix underscore, then with it.
7483for ac_symprfx in "" "_"; do
7484
7485  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7486  symxfrm="\\1 $ac_symprfx\\2 \\2"
7487
7488  # Write the raw and C identifiers.
7489  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7490    # Fake it for dumpbin and say T for any non-static function,
7491    # D for any global variable and I for any imported variable.
7492    # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7493    # which start with @ or ?.
7494    lt_cv_sys_global_symbol_pipe="$AWK '"\
7495"     {last_section=section; section=\$ 3};"\
7496"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7497"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7498"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7499"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7500"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7501"     \$ 0!~/External *\|/{next};"\
7502"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7503"     {if(hide[section]) next};"\
7504"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7505"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7506"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7507"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7508"     ' prfx=^$ac_symprfx"
7509  else
7510    lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7511  fi
7512  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7513
7514  # Check to see that the pipe works correctly.
7515  pipe_works=no
7516
7517  rm -f conftest*
7518  cat > conftest.$ac_ext <<_LT_EOF
7519#ifdef __cplusplus
7520extern "C" {
7521#endif
7522char nm_test_var;
7523void nm_test_func(void);
7524void nm_test_func(void){}
7525#ifdef __cplusplus
7526}
7527#endif
7528int main(){nm_test_var='a';nm_test_func();return(0);}
7529_LT_EOF
7530
7531  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7532  (eval $ac_compile) 2>&5
7533  ac_status=$?
7534  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7535  test $ac_status = 0; }; then
7536    # Now try to grab the symbols.
7537    nlist=conftest.nm
7538    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7539  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7540  ac_status=$?
7541  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7542  test $ac_status = 0; } && test -s "$nlist"; then
7543      # Try sorting and uniquifying the output.
7544      if sort "$nlist" | uniq > "$nlist"T; then
7545	mv -f "$nlist"T "$nlist"
7546      else
7547	rm -f "$nlist"T
7548      fi
7549
7550      # Make sure that we snagged all the symbols we need.
7551      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7552	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7553	  cat <<_LT_EOF > conftest.$ac_ext
7554/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7555#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7556/* DATA imports from DLLs on WIN32 can't be const, because runtime
7557   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7558# define LT_DLSYM_CONST
7559#elif defined __osf__
7560/* This system does not cope well with relocations in const data.  */
7561# define LT_DLSYM_CONST
7562#else
7563# define LT_DLSYM_CONST const
7564#endif
7565
7566#ifdef __cplusplus
7567extern "C" {
7568#endif
7569
7570_LT_EOF
7571	  # Now generate the symbol file.
7572	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7573
7574	  cat <<_LT_EOF >> conftest.$ac_ext
7575
7576/* The mapping between symbol names and symbols.  */
7577LT_DLSYM_CONST struct {
7578  const char *name;
7579  void       *address;
7580}
7581lt__PROGRAM__LTX_preloaded_symbols[] =
7582{
7583  { "@PROGRAM@", (void *) 0 },
7584_LT_EOF
7585	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7586	  cat <<\_LT_EOF >> conftest.$ac_ext
7587  {0, (void *) 0}
7588};
7589
7590/* This works around a problem in FreeBSD linker */
7591#ifdef FREEBSD_WORKAROUND
7592static const void *lt_preloaded_setup() {
7593  return lt__PROGRAM__LTX_preloaded_symbols;
7594}
7595#endif
7596
7597#ifdef __cplusplus
7598}
7599#endif
7600_LT_EOF
7601	  # Now try linking the two files.
7602	  mv conftest.$ac_objext conftstm.$ac_objext
7603	  lt_globsym_save_LIBS=$LIBS
7604	  lt_globsym_save_CFLAGS=$CFLAGS
7605	  LIBS=conftstm.$ac_objext
7606	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7607	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7608  (eval $ac_link) 2>&5
7609  ac_status=$?
7610  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7611  test $ac_status = 0; } && test -s conftest$ac_exeext; then
7612	    pipe_works=yes
7613	  fi
7614	  LIBS=$lt_globsym_save_LIBS
7615	  CFLAGS=$lt_globsym_save_CFLAGS
7616	else
7617	  echo "cannot find nm_test_func in $nlist" >&5
7618	fi
7619      else
7620	echo "cannot find nm_test_var in $nlist" >&5
7621      fi
7622    else
7623      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7624    fi
7625  else
7626    echo "$progname: failed program was:" >&5
7627    cat conftest.$ac_ext >&5
7628  fi
7629  rm -rf conftest* conftst*
7630
7631  # Do not use the global_symbol_pipe unless it works.
7632  if test yes = "$pipe_works"; then
7633    break
7634  else
7635    lt_cv_sys_global_symbol_pipe=
7636  fi
7637done
7638
7639fi
7640
7641if test -z "$lt_cv_sys_global_symbol_pipe"; then
7642  lt_cv_sys_global_symbol_to_cdecl=
7643fi
7644if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7645  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7646printf "%s\n" "failed" >&6; }
7647else
7648  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7649printf "%s\n" "ok" >&6; }
7650fi
7651
7652# Response file support.
7653if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7654  nm_file_list_spec='@'
7655elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7656  nm_file_list_spec='@'
7657fi
7658
7659
7660
7661
7662
7663
7664
7665
7666
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{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7696printf %s "checking for sysroot... " >&6; }
7697
7698# Check whether --with-sysroot was given.
7699if test ${with_sysroot+y}
7700then :
7701  withval=$with_sysroot;
7702else $as_nop
7703  with_sysroot=no
7704fi
7705
7706
7707lt_sysroot=
7708case $with_sysroot in #(
7709 yes)
7710   if test yes = "$GCC"; then
7711     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7712   fi
7713   ;; #(
7714 /*)
7715   lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7716   ;; #(
7717 no|'')
7718   ;; #(
7719 *)
7720   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7721printf "%s\n" "$with_sysroot" >&6; }
7722   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7723   ;;
7724esac
7725
7726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7727printf "%s\n" "${lt_sysroot:-no}" >&6; }
7728
7729
7730
7731
7732
7733{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7734printf %s "checking for a working dd... " >&6; }
7735if test ${ac_cv_path_lt_DD+y}
7736then :
7737  printf %s "(cached) " >&6
7738else $as_nop
7739  printf 0123456789abcdef0123456789abcdef >conftest.i
7740cat conftest.i conftest.i >conftest2.i
7741: ${lt_DD:=$DD}
7742if test -z "$lt_DD"; then
7743  ac_path_lt_DD_found=false
7744  # Loop through the user's path and test for each of PROGNAME-LIST
7745  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7746for as_dir in $PATH
7747do
7748  IFS=$as_save_IFS
7749  case $as_dir in #(((
7750    '') as_dir=./ ;;
7751    */) ;;
7752    *) as_dir=$as_dir/ ;;
7753  esac
7754    for ac_prog in dd
7755   do
7756    for ac_exec_ext in '' $ac_executable_extensions; do
7757      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7758      as_fn_executable_p "$ac_path_lt_DD" || continue
7759if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7760  cmp -s conftest.i conftest.out \
7761  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7762fi
7763      $ac_path_lt_DD_found && break 3
7764    done
7765  done
7766  done
7767IFS=$as_save_IFS
7768  if test -z "$ac_cv_path_lt_DD"; then
7769    :
7770  fi
7771else
7772  ac_cv_path_lt_DD=$lt_DD
7773fi
7774
7775rm -f conftest.i conftest2.i conftest.out
7776fi
7777{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7778printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7779
7780
7781{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7782printf %s "checking how to truncate binary pipes... " >&6; }
7783if test ${lt_cv_truncate_bin+y}
7784then :
7785  printf %s "(cached) " >&6
7786else $as_nop
7787  printf 0123456789abcdef0123456789abcdef >conftest.i
7788cat conftest.i conftest.i >conftest2.i
7789lt_cv_truncate_bin=
7790if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7791  cmp -s conftest.i conftest.out \
7792  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7793fi
7794rm -f conftest.i conftest2.i conftest.out
7795test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7796fi
7797{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7798printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7799
7800
7801
7802
7803
7804
7805
7806# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7807func_cc_basename ()
7808{
7809    for cc_temp in $*""; do
7810      case $cc_temp in
7811        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7812        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7813        \-*) ;;
7814        *) break;;
7815      esac
7816    done
7817    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7818}
7819
7820# Check whether --enable-libtool-lock was given.
7821if test ${enable_libtool_lock+y}
7822then :
7823  enableval=$enable_libtool_lock;
7824fi
7825
7826test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7827
7828# Some flags need to be propagated to the compiler or linker for good
7829# libtool support.
7830case $host in
7831ia64-*-hpux*)
7832  # Find out what ABI is being produced by ac_compile, and set mode
7833  # options accordingly.
7834  echo 'int i;' > conftest.$ac_ext
7835  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7836  (eval $ac_compile) 2>&5
7837  ac_status=$?
7838  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7839  test $ac_status = 0; }; then
7840    case `$FILECMD conftest.$ac_objext` in
7841      *ELF-32*)
7842	HPUX_IA64_MODE=32
7843	;;
7844      *ELF-64*)
7845	HPUX_IA64_MODE=64
7846	;;
7847    esac
7848  fi
7849  rm -rf conftest*
7850  ;;
7851*-*-irix6*)
7852  # Find out what ABI is being produced by ac_compile, and set linker
7853  # options accordingly.
7854  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7855  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7856  (eval $ac_compile) 2>&5
7857  ac_status=$?
7858  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7859  test $ac_status = 0; }; then
7860    if test yes = "$lt_cv_prog_gnu_ld"; then
7861      case `$FILECMD conftest.$ac_objext` in
7862	*32-bit*)
7863	  LD="${LD-ld} -melf32bsmip"
7864	  ;;
7865	*N32*)
7866	  LD="${LD-ld} -melf32bmipn32"
7867	  ;;
7868	*64-bit*)
7869	  LD="${LD-ld} -melf64bmip"
7870	;;
7871      esac
7872    else
7873      case `$FILECMD conftest.$ac_objext` in
7874	*32-bit*)
7875	  LD="${LD-ld} -32"
7876	  ;;
7877	*N32*)
7878	  LD="${LD-ld} -n32"
7879	  ;;
7880	*64-bit*)
7881	  LD="${LD-ld} -64"
7882	  ;;
7883      esac
7884    fi
7885  fi
7886  rm -rf conftest*
7887  ;;
7888
7889mips64*-*linux*)
7890  # Find out what ABI is being produced by ac_compile, and set linker
7891  # options accordingly.
7892  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7893  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7894  (eval $ac_compile) 2>&5
7895  ac_status=$?
7896  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7897  test $ac_status = 0; }; then
7898    emul=elf
7899    case `$FILECMD conftest.$ac_objext` in
7900      *32-bit*)
7901	emul="${emul}32"
7902	;;
7903      *64-bit*)
7904	emul="${emul}64"
7905	;;
7906    esac
7907    case `$FILECMD conftest.$ac_objext` in
7908      *MSB*)
7909	emul="${emul}btsmip"
7910	;;
7911      *LSB*)
7912	emul="${emul}ltsmip"
7913	;;
7914    esac
7915    case `$FILECMD conftest.$ac_objext` in
7916      *N32*)
7917	emul="${emul}n32"
7918	;;
7919    esac
7920    LD="${LD-ld} -m $emul"
7921  fi
7922  rm -rf conftest*
7923  ;;
7924
7925x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7926s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7927  # Find out what ABI is being produced by ac_compile, and set linker
7928  # options accordingly.  Note that the listed cases only cover the
7929  # situations where additional linker options are needed (such as when
7930  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7931  # vice versa); the common cases where no linker options are needed do
7932  # not appear in the list.
7933  echo 'int i;' > conftest.$ac_ext
7934  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7935  (eval $ac_compile) 2>&5
7936  ac_status=$?
7937  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7938  test $ac_status = 0; }; then
7939    case `$FILECMD conftest.o` in
7940      *32-bit*)
7941	case $host in
7942	  x86_64-*kfreebsd*-gnu)
7943	    LD="${LD-ld} -m elf_i386_fbsd"
7944	    ;;
7945	  x86_64-*linux*)
7946	    case `$FILECMD conftest.o` in
7947	      *x86-64*)
7948		LD="${LD-ld} -m elf32_x86_64"
7949		;;
7950	      *)
7951		LD="${LD-ld} -m elf_i386"
7952		;;
7953	    esac
7954	    ;;
7955	  powerpc64le-*linux*)
7956	    LD="${LD-ld} -m elf32lppclinux"
7957	    ;;
7958	  powerpc64-*linux*)
7959	    LD="${LD-ld} -m elf32ppclinux"
7960	    ;;
7961	  s390x-*linux*)
7962	    LD="${LD-ld} -m elf_s390"
7963	    ;;
7964	  sparc64-*linux*)
7965	    LD="${LD-ld} -m elf32_sparc"
7966	    ;;
7967	esac
7968	;;
7969      *64-bit*)
7970	case $host in
7971	  x86_64-*kfreebsd*-gnu)
7972	    LD="${LD-ld} -m elf_x86_64_fbsd"
7973	    ;;
7974	  x86_64-*linux*)
7975	    LD="${LD-ld} -m elf_x86_64"
7976	    ;;
7977	  powerpcle-*linux*)
7978	    LD="${LD-ld} -m elf64lppc"
7979	    ;;
7980	  powerpc-*linux*)
7981	    LD="${LD-ld} -m elf64ppc"
7982	    ;;
7983	  s390*-*linux*|s390*-*tpf*)
7984	    LD="${LD-ld} -m elf64_s390"
7985	    ;;
7986	  sparc*-*linux*)
7987	    LD="${LD-ld} -m elf64_sparc"
7988	    ;;
7989	esac
7990	;;
7991    esac
7992  fi
7993  rm -rf conftest*
7994  ;;
7995
7996*-*-sco3.2v5*)
7997  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7998  SAVE_CFLAGS=$CFLAGS
7999  CFLAGS="$CFLAGS -belf"
8000  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8001printf %s "checking whether the C compiler needs -belf... " >&6; }
8002if test ${lt_cv_cc_needs_belf+y}
8003then :
8004  printf %s "(cached) " >&6
8005else $as_nop
8006  ac_ext=c
8007ac_cpp='$CPP $CPPFLAGS'
8008ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8009ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8010ac_compiler_gnu=$ac_cv_c_compiler_gnu
8011
8012     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8013/* end confdefs.h.  */
8014
8015int
8016main (void)
8017{
8018
8019  ;
8020  return 0;
8021}
8022_ACEOF
8023if ac_fn_c_try_link "$LINENO"
8024then :
8025  lt_cv_cc_needs_belf=yes
8026else $as_nop
8027  lt_cv_cc_needs_belf=no
8028fi
8029rm -f core conftest.err conftest.$ac_objext conftest.beam \
8030    conftest$ac_exeext conftest.$ac_ext
8031     ac_ext=c
8032ac_cpp='$CPP $CPPFLAGS'
8033ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8034ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8035ac_compiler_gnu=$ac_cv_c_compiler_gnu
8036
8037fi
8038{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8039printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
8040  if test yes != "$lt_cv_cc_needs_belf"; then
8041    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8042    CFLAGS=$SAVE_CFLAGS
8043  fi
8044  ;;
8045*-*solaris*)
8046  # Find out what ABI is being produced by ac_compile, and set linker
8047  # options accordingly.
8048  echo 'int i;' > conftest.$ac_ext
8049  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8050  (eval $ac_compile) 2>&5
8051  ac_status=$?
8052  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8053  test $ac_status = 0; }; then
8054    case `$FILECMD conftest.o` in
8055    *64-bit*)
8056      case $lt_cv_prog_gnu_ld in
8057      yes*)
8058        case $host in
8059        i?86-*-solaris*|x86_64-*-solaris*)
8060          LD="${LD-ld} -m elf_x86_64"
8061          ;;
8062        sparc*-*-solaris*)
8063          LD="${LD-ld} -m elf64_sparc"
8064          ;;
8065        esac
8066        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8067        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8068          LD=${LD-ld}_sol2
8069        fi
8070        ;;
8071      *)
8072	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8073	  LD="${LD-ld} -64"
8074	fi
8075	;;
8076      esac
8077      ;;
8078    esac
8079  fi
8080  rm -rf conftest*
8081  ;;
8082esac
8083
8084need_locks=$enable_libtool_lock
8085
8086if test -n "$ac_tool_prefix"; then
8087  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8088set dummy ${ac_tool_prefix}mt; ac_word=$2
8089{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8090printf %s "checking for $ac_word... " >&6; }
8091if test ${ac_cv_prog_MANIFEST_TOOL+y}
8092then :
8093  printf %s "(cached) " >&6
8094else $as_nop
8095  if test -n "$MANIFEST_TOOL"; then
8096  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8097else
8098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8099for as_dir in $PATH
8100do
8101  IFS=$as_save_IFS
8102  case $as_dir in #(((
8103    '') as_dir=./ ;;
8104    */) ;;
8105    *) as_dir=$as_dir/ ;;
8106  esac
8107    for ac_exec_ext in '' $ac_executable_extensions; do
8108  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8109    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8110    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8111    break 2
8112  fi
8113done
8114  done
8115IFS=$as_save_IFS
8116
8117fi
8118fi
8119MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8120if test -n "$MANIFEST_TOOL"; then
8121  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8122printf "%s\n" "$MANIFEST_TOOL" >&6; }
8123else
8124  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8125printf "%s\n" "no" >&6; }
8126fi
8127
8128
8129fi
8130if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8131  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8132  # Extract the first word of "mt", so it can be a program name with args.
8133set dummy mt; ac_word=$2
8134{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8135printf %s "checking for $ac_word... " >&6; }
8136if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8137then :
8138  printf %s "(cached) " >&6
8139else $as_nop
8140  if test -n "$ac_ct_MANIFEST_TOOL"; then
8141  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8142else
8143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8144for as_dir in $PATH
8145do
8146  IFS=$as_save_IFS
8147  case $as_dir in #(((
8148    '') as_dir=./ ;;
8149    */) ;;
8150    *) as_dir=$as_dir/ ;;
8151  esac
8152    for ac_exec_ext in '' $ac_executable_extensions; do
8153  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8154    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8155    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8156    break 2
8157  fi
8158done
8159  done
8160IFS=$as_save_IFS
8161
8162fi
8163fi
8164ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8165if test -n "$ac_ct_MANIFEST_TOOL"; then
8166  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8167printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8168else
8169  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8170printf "%s\n" "no" >&6; }
8171fi
8172
8173  if test "x$ac_ct_MANIFEST_TOOL" = x; then
8174    MANIFEST_TOOL=":"
8175  else
8176    case $cross_compiling:$ac_tool_warned in
8177yes:)
8178{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8179printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8180ac_tool_warned=yes ;;
8181esac
8182    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8183  fi
8184else
8185  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8186fi
8187
8188test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8189{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8190printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8191if test ${lt_cv_path_mainfest_tool+y}
8192then :
8193  printf %s "(cached) " >&6
8194else $as_nop
8195  lt_cv_path_mainfest_tool=no
8196  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8197  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8198  cat conftest.err >&5
8199  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8200    lt_cv_path_mainfest_tool=yes
8201  fi
8202  rm -f conftest*
8203fi
8204{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8205printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
8206if test yes != "$lt_cv_path_mainfest_tool"; then
8207  MANIFEST_TOOL=:
8208fi
8209
8210
8211
8212
8213
8214
8215  case $host_os in
8216    rhapsody* | darwin*)
8217    if test -n "$ac_tool_prefix"; then
8218  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8219set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8220{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8221printf %s "checking for $ac_word... " >&6; }
8222if test ${ac_cv_prog_DSYMUTIL+y}
8223then :
8224  printf %s "(cached) " >&6
8225else $as_nop
8226  if test -n "$DSYMUTIL"; then
8227  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8228else
8229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8230for as_dir in $PATH
8231do
8232  IFS=$as_save_IFS
8233  case $as_dir in #(((
8234    '') as_dir=./ ;;
8235    */) ;;
8236    *) as_dir=$as_dir/ ;;
8237  esac
8238    for ac_exec_ext in '' $ac_executable_extensions; do
8239  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8240    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8241    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8242    break 2
8243  fi
8244done
8245  done
8246IFS=$as_save_IFS
8247
8248fi
8249fi
8250DSYMUTIL=$ac_cv_prog_DSYMUTIL
8251if test -n "$DSYMUTIL"; then
8252  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8253printf "%s\n" "$DSYMUTIL" >&6; }
8254else
8255  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8256printf "%s\n" "no" >&6; }
8257fi
8258
8259
8260fi
8261if test -z "$ac_cv_prog_DSYMUTIL"; then
8262  ac_ct_DSYMUTIL=$DSYMUTIL
8263  # Extract the first word of "dsymutil", so it can be a program name with args.
8264set dummy dsymutil; ac_word=$2
8265{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8266printf %s "checking for $ac_word... " >&6; }
8267if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8268then :
8269  printf %s "(cached) " >&6
8270else $as_nop
8271  if test -n "$ac_ct_DSYMUTIL"; then
8272  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8273else
8274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8275for as_dir in $PATH
8276do
8277  IFS=$as_save_IFS
8278  case $as_dir in #(((
8279    '') as_dir=./ ;;
8280    */) ;;
8281    *) as_dir=$as_dir/ ;;
8282  esac
8283    for ac_exec_ext in '' $ac_executable_extensions; do
8284  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8285    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8286    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8287    break 2
8288  fi
8289done
8290  done
8291IFS=$as_save_IFS
8292
8293fi
8294fi
8295ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8296if test -n "$ac_ct_DSYMUTIL"; then
8297  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8298printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8299else
8300  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8301printf "%s\n" "no" >&6; }
8302fi
8303
8304  if test "x$ac_ct_DSYMUTIL" = x; then
8305    DSYMUTIL=":"
8306  else
8307    case $cross_compiling:$ac_tool_warned in
8308yes:)
8309{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8310printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8311ac_tool_warned=yes ;;
8312esac
8313    DSYMUTIL=$ac_ct_DSYMUTIL
8314  fi
8315else
8316  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8317fi
8318
8319    if test -n "$ac_tool_prefix"; then
8320  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8321set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8322{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8323printf %s "checking for $ac_word... " >&6; }
8324if test ${ac_cv_prog_NMEDIT+y}
8325then :
8326  printf %s "(cached) " >&6
8327else $as_nop
8328  if test -n "$NMEDIT"; then
8329  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8330else
8331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8332for as_dir in $PATH
8333do
8334  IFS=$as_save_IFS
8335  case $as_dir in #(((
8336    '') as_dir=./ ;;
8337    */) ;;
8338    *) as_dir=$as_dir/ ;;
8339  esac
8340    for ac_exec_ext in '' $ac_executable_extensions; do
8341  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8342    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8343    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8344    break 2
8345  fi
8346done
8347  done
8348IFS=$as_save_IFS
8349
8350fi
8351fi
8352NMEDIT=$ac_cv_prog_NMEDIT
8353if test -n "$NMEDIT"; then
8354  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8355printf "%s\n" "$NMEDIT" >&6; }
8356else
8357  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8358printf "%s\n" "no" >&6; }
8359fi
8360
8361
8362fi
8363if test -z "$ac_cv_prog_NMEDIT"; then
8364  ac_ct_NMEDIT=$NMEDIT
8365  # Extract the first word of "nmedit", so it can be a program name with args.
8366set dummy nmedit; ac_word=$2
8367{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8368printf %s "checking for $ac_word... " >&6; }
8369if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8370then :
8371  printf %s "(cached) " >&6
8372else $as_nop
8373  if test -n "$ac_ct_NMEDIT"; then
8374  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8375else
8376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8377for as_dir in $PATH
8378do
8379  IFS=$as_save_IFS
8380  case $as_dir in #(((
8381    '') as_dir=./ ;;
8382    */) ;;
8383    *) as_dir=$as_dir/ ;;
8384  esac
8385    for ac_exec_ext in '' $ac_executable_extensions; do
8386  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8387    ac_cv_prog_ac_ct_NMEDIT="nmedit"
8388    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8389    break 2
8390  fi
8391done
8392  done
8393IFS=$as_save_IFS
8394
8395fi
8396fi
8397ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8398if test -n "$ac_ct_NMEDIT"; then
8399  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8400printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8401else
8402  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8403printf "%s\n" "no" >&6; }
8404fi
8405
8406  if test "x$ac_ct_NMEDIT" = x; then
8407    NMEDIT=":"
8408  else
8409    case $cross_compiling:$ac_tool_warned in
8410yes:)
8411{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8412printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8413ac_tool_warned=yes ;;
8414esac
8415    NMEDIT=$ac_ct_NMEDIT
8416  fi
8417else
8418  NMEDIT="$ac_cv_prog_NMEDIT"
8419fi
8420
8421    if test -n "$ac_tool_prefix"; then
8422  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8423set dummy ${ac_tool_prefix}lipo; ac_word=$2
8424{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8425printf %s "checking for $ac_word... " >&6; }
8426if test ${ac_cv_prog_LIPO+y}
8427then :
8428  printf %s "(cached) " >&6
8429else $as_nop
8430  if test -n "$LIPO"; then
8431  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8432else
8433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8434for as_dir in $PATH
8435do
8436  IFS=$as_save_IFS
8437  case $as_dir in #(((
8438    '') as_dir=./ ;;
8439    */) ;;
8440    *) as_dir=$as_dir/ ;;
8441  esac
8442    for ac_exec_ext in '' $ac_executable_extensions; do
8443  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8444    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8445    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8446    break 2
8447  fi
8448done
8449  done
8450IFS=$as_save_IFS
8451
8452fi
8453fi
8454LIPO=$ac_cv_prog_LIPO
8455if test -n "$LIPO"; then
8456  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8457printf "%s\n" "$LIPO" >&6; }
8458else
8459  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8460printf "%s\n" "no" >&6; }
8461fi
8462
8463
8464fi
8465if test -z "$ac_cv_prog_LIPO"; then
8466  ac_ct_LIPO=$LIPO
8467  # Extract the first word of "lipo", so it can be a program name with args.
8468set dummy lipo; ac_word=$2
8469{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8470printf %s "checking for $ac_word... " >&6; }
8471if test ${ac_cv_prog_ac_ct_LIPO+y}
8472then :
8473  printf %s "(cached) " >&6
8474else $as_nop
8475  if test -n "$ac_ct_LIPO"; then
8476  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8477else
8478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8479for as_dir in $PATH
8480do
8481  IFS=$as_save_IFS
8482  case $as_dir in #(((
8483    '') as_dir=./ ;;
8484    */) ;;
8485    *) as_dir=$as_dir/ ;;
8486  esac
8487    for ac_exec_ext in '' $ac_executable_extensions; do
8488  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8489    ac_cv_prog_ac_ct_LIPO="lipo"
8490    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8491    break 2
8492  fi
8493done
8494  done
8495IFS=$as_save_IFS
8496
8497fi
8498fi
8499ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8500if test -n "$ac_ct_LIPO"; then
8501  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8502printf "%s\n" "$ac_ct_LIPO" >&6; }
8503else
8504  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8505printf "%s\n" "no" >&6; }
8506fi
8507
8508  if test "x$ac_ct_LIPO" = x; then
8509    LIPO=":"
8510  else
8511    case $cross_compiling:$ac_tool_warned in
8512yes:)
8513{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8514printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8515ac_tool_warned=yes ;;
8516esac
8517    LIPO=$ac_ct_LIPO
8518  fi
8519else
8520  LIPO="$ac_cv_prog_LIPO"
8521fi
8522
8523    if test -n "$ac_tool_prefix"; then
8524  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8525set dummy ${ac_tool_prefix}otool; ac_word=$2
8526{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8527printf %s "checking for $ac_word... " >&6; }
8528if test ${ac_cv_prog_OTOOL+y}
8529then :
8530  printf %s "(cached) " >&6
8531else $as_nop
8532  if test -n "$OTOOL"; then
8533  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8534else
8535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8536for as_dir in $PATH
8537do
8538  IFS=$as_save_IFS
8539  case $as_dir in #(((
8540    '') as_dir=./ ;;
8541    */) ;;
8542    *) as_dir=$as_dir/ ;;
8543  esac
8544    for ac_exec_ext in '' $ac_executable_extensions; do
8545  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8546    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8547    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8548    break 2
8549  fi
8550done
8551  done
8552IFS=$as_save_IFS
8553
8554fi
8555fi
8556OTOOL=$ac_cv_prog_OTOOL
8557if test -n "$OTOOL"; then
8558  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8559printf "%s\n" "$OTOOL" >&6; }
8560else
8561  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8562printf "%s\n" "no" >&6; }
8563fi
8564
8565
8566fi
8567if test -z "$ac_cv_prog_OTOOL"; then
8568  ac_ct_OTOOL=$OTOOL
8569  # Extract the first word of "otool", so it can be a program name with args.
8570set dummy otool; ac_word=$2
8571{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8572printf %s "checking for $ac_word... " >&6; }
8573if test ${ac_cv_prog_ac_ct_OTOOL+y}
8574then :
8575  printf %s "(cached) " >&6
8576else $as_nop
8577  if test -n "$ac_ct_OTOOL"; then
8578  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8579else
8580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8581for as_dir in $PATH
8582do
8583  IFS=$as_save_IFS
8584  case $as_dir in #(((
8585    '') as_dir=./ ;;
8586    */) ;;
8587    *) as_dir=$as_dir/ ;;
8588  esac
8589    for ac_exec_ext in '' $ac_executable_extensions; do
8590  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8591    ac_cv_prog_ac_ct_OTOOL="otool"
8592    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8593    break 2
8594  fi
8595done
8596  done
8597IFS=$as_save_IFS
8598
8599fi
8600fi
8601ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8602if test -n "$ac_ct_OTOOL"; then
8603  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8604printf "%s\n" "$ac_ct_OTOOL" >&6; }
8605else
8606  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8607printf "%s\n" "no" >&6; }
8608fi
8609
8610  if test "x$ac_ct_OTOOL" = x; then
8611    OTOOL=":"
8612  else
8613    case $cross_compiling:$ac_tool_warned in
8614yes:)
8615{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8616printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8617ac_tool_warned=yes ;;
8618esac
8619    OTOOL=$ac_ct_OTOOL
8620  fi
8621else
8622  OTOOL="$ac_cv_prog_OTOOL"
8623fi
8624
8625    if test -n "$ac_tool_prefix"; then
8626  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8627set dummy ${ac_tool_prefix}otool64; ac_word=$2
8628{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8629printf %s "checking for $ac_word... " >&6; }
8630if test ${ac_cv_prog_OTOOL64+y}
8631then :
8632  printf %s "(cached) " >&6
8633else $as_nop
8634  if test -n "$OTOOL64"; then
8635  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8636else
8637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8638for as_dir in $PATH
8639do
8640  IFS=$as_save_IFS
8641  case $as_dir in #(((
8642    '') as_dir=./ ;;
8643    */) ;;
8644    *) as_dir=$as_dir/ ;;
8645  esac
8646    for ac_exec_ext in '' $ac_executable_extensions; do
8647  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8648    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8649    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8650    break 2
8651  fi
8652done
8653  done
8654IFS=$as_save_IFS
8655
8656fi
8657fi
8658OTOOL64=$ac_cv_prog_OTOOL64
8659if test -n "$OTOOL64"; then
8660  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8661printf "%s\n" "$OTOOL64" >&6; }
8662else
8663  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8664printf "%s\n" "no" >&6; }
8665fi
8666
8667
8668fi
8669if test -z "$ac_cv_prog_OTOOL64"; then
8670  ac_ct_OTOOL64=$OTOOL64
8671  # Extract the first word of "otool64", so it can be a program name with args.
8672set dummy otool64; ac_word=$2
8673{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8674printf %s "checking for $ac_word... " >&6; }
8675if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8676then :
8677  printf %s "(cached) " >&6
8678else $as_nop
8679  if test -n "$ac_ct_OTOOL64"; then
8680  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8681else
8682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8683for as_dir in $PATH
8684do
8685  IFS=$as_save_IFS
8686  case $as_dir in #(((
8687    '') as_dir=./ ;;
8688    */) ;;
8689    *) as_dir=$as_dir/ ;;
8690  esac
8691    for ac_exec_ext in '' $ac_executable_extensions; do
8692  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8693    ac_cv_prog_ac_ct_OTOOL64="otool64"
8694    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8695    break 2
8696  fi
8697done
8698  done
8699IFS=$as_save_IFS
8700
8701fi
8702fi
8703ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8704if test -n "$ac_ct_OTOOL64"; then
8705  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8706printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8707else
8708  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8709printf "%s\n" "no" >&6; }
8710fi
8711
8712  if test "x$ac_ct_OTOOL64" = x; then
8713    OTOOL64=":"
8714  else
8715    case $cross_compiling:$ac_tool_warned in
8716yes:)
8717{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8718printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8719ac_tool_warned=yes ;;
8720esac
8721    OTOOL64=$ac_ct_OTOOL64
8722  fi
8723else
8724  OTOOL64="$ac_cv_prog_OTOOL64"
8725fi
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8754printf %s "checking for -single_module linker flag... " >&6; }
8755if test ${lt_cv_apple_cc_single_mod+y}
8756then :
8757  printf %s "(cached) " >&6
8758else $as_nop
8759  lt_cv_apple_cc_single_mod=no
8760      if test -z "$LT_MULTI_MODULE"; then
8761	# By default we will add the -single_module flag. You can override
8762	# by either setting the environment variable LT_MULTI_MODULE
8763	# non-empty at configure time, or by adding -multi_module to the
8764	# link flags.
8765	rm -rf libconftest.dylib*
8766	echo "int foo(void){return 1;}" > conftest.c
8767	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8768-dynamiclib -Wl,-single_module conftest.c" >&5
8769	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8770	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8771        _lt_result=$?
8772	# If there is a non-empty error log, and "single_module"
8773	# appears in it, assume the flag caused a linker warning
8774        if test -s conftest.err && $GREP single_module conftest.err; then
8775	  cat conftest.err >&5
8776	# Otherwise, if the output was created with a 0 exit code from
8777	# the compiler, it worked.
8778	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8779	  lt_cv_apple_cc_single_mod=yes
8780	else
8781	  cat conftest.err >&5
8782	fi
8783	rm -rf libconftest.dylib*
8784	rm -f conftest.*
8785      fi
8786fi
8787{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8788printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8789
8790    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8791printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8792if test ${lt_cv_ld_exported_symbols_list+y}
8793then :
8794  printf %s "(cached) " >&6
8795else $as_nop
8796  lt_cv_ld_exported_symbols_list=no
8797      save_LDFLAGS=$LDFLAGS
8798      echo "_main" > conftest.sym
8799      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8800      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8801/* end confdefs.h.  */
8802
8803int
8804main (void)
8805{
8806
8807  ;
8808  return 0;
8809}
8810_ACEOF
8811if ac_fn_c_try_link "$LINENO"
8812then :
8813  lt_cv_ld_exported_symbols_list=yes
8814else $as_nop
8815  lt_cv_ld_exported_symbols_list=no
8816fi
8817rm -f core conftest.err conftest.$ac_objext conftest.beam \
8818    conftest$ac_exeext conftest.$ac_ext
8819	LDFLAGS=$save_LDFLAGS
8820
8821fi
8822{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8823printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8824
8825    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8826printf %s "checking for -force_load linker flag... " >&6; }
8827if test ${lt_cv_ld_force_load+y}
8828then :
8829  printf %s "(cached) " >&6
8830else $as_nop
8831  lt_cv_ld_force_load=no
8832      cat > conftest.c << _LT_EOF
8833int forced_loaded() { return 2;}
8834_LT_EOF
8835      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8836      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8837      echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8838      $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8839      echo "$RANLIB libconftest.a" >&5
8840      $RANLIB libconftest.a 2>&5
8841      cat > conftest.c << _LT_EOF
8842int main() { return 0;}
8843_LT_EOF
8844      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8845      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8846      _lt_result=$?
8847      if test -s conftest.err && $GREP force_load conftest.err; then
8848	cat conftest.err >&5
8849      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8850	lt_cv_ld_force_load=yes
8851      else
8852	cat conftest.err >&5
8853      fi
8854        rm -f conftest.err libconftest.a conftest conftest.c
8855        rm -rf conftest.dSYM
8856
8857fi
8858{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8859printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8860    case $host_os in
8861    rhapsody* | darwin1.[012])
8862      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8863    darwin1.*)
8864      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8865    darwin*)
8866      case $MACOSX_DEPLOYMENT_TARGET,$host in
8867        10.[012],*|,*powerpc*-darwin[5-8]*)
8868          _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8869        *)
8870          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8871      esac
8872    ;;
8873  esac
8874    if test yes = "$lt_cv_apple_cc_single_mod"; then
8875      _lt_dar_single_mod='$single_module'
8876    fi
8877    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8878      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8879    else
8880      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8881    fi
8882    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8883      _lt_dsymutil='~$DSYMUTIL $lib || :'
8884    else
8885      _lt_dsymutil=
8886    fi
8887    ;;
8888  esac
8889
8890# func_munge_path_list VARIABLE PATH
8891# -----------------------------------
8892# VARIABLE is name of variable containing _space_ separated list of
8893# directories to be munged by the contents of PATH, which is string
8894# having a format:
8895# "DIR[:DIR]:"
8896#       string "DIR[ DIR]" will be prepended to VARIABLE
8897# ":DIR[:DIR]"
8898#       string "DIR[ DIR]" will be appended to VARIABLE
8899# "DIRP[:DIRP]::[DIRA:]DIRA"
8900#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8901#       "DIRA[ DIRA]" will be appended to VARIABLE
8902# "DIR[:DIR]"
8903#       VARIABLE will be replaced by "DIR[ DIR]"
8904func_munge_path_list ()
8905{
8906    case x$2 in
8907    x)
8908        ;;
8909    *:)
8910        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8911        ;;
8912    x:*)
8913        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8914        ;;
8915    *::*)
8916        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8917        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8918        ;;
8919    *)
8920        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8921        ;;
8922    esac
8923}
8924
8925ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8926"
8927if test "x$ac_cv_header_dlfcn_h" = xyes
8928then :
8929  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8930
8931fi
8932
8933
8934
8935
8936
8937# Set options
8938
8939
8940
8941
8942  enable_win32_dll=no
8943
8944
8945            # Check whether --enable-shared was given.
8946if test ${enable_shared+y}
8947then :
8948  enableval=$enable_shared; p=${PACKAGE-default}
8949    case $enableval in
8950    yes) enable_shared=yes ;;
8951    no) enable_shared=no ;;
8952    *)
8953      enable_shared=no
8954      # Look at the argument we got.  We use all the common list separators.
8955      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8956      for pkg in $enableval; do
8957	IFS=$lt_save_ifs
8958	if test "X$pkg" = "X$p"; then
8959	  enable_shared=yes
8960	fi
8961      done
8962      IFS=$lt_save_ifs
8963      ;;
8964    esac
8965else $as_nop
8966  enable_shared=yes
8967fi
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979# Check whether --with-pic was given.
8980if test ${with_pic+y}
8981then :
8982  withval=$with_pic; lt_p=${PACKAGE-default}
8983    case $withval in
8984    yes|no) pic_mode=$withval ;;
8985    *)
8986      pic_mode=default
8987      # Look at the argument we got.  We use all the common list separators.
8988      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8989      for lt_pkg in $withval; do
8990	IFS=$lt_save_ifs
8991	if test "X$lt_pkg" = "X$lt_p"; then
8992	  pic_mode=yes
8993	fi
8994      done
8995      IFS=$lt_save_ifs
8996      ;;
8997    esac
8998else $as_nop
8999  pic_mode=default
9000fi
9001
9002
9003
9004
9005
9006
9007
9008
9009  # Check whether --enable-fast-install was given.
9010if test ${enable_fast_install+y}
9011then :
9012  enableval=$enable_fast_install; p=${PACKAGE-default}
9013    case $enableval in
9014    yes) enable_fast_install=yes ;;
9015    no) enable_fast_install=no ;;
9016    *)
9017      enable_fast_install=no
9018      # Look at the argument we got.  We use all the common list separators.
9019      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9020      for pkg in $enableval; do
9021	IFS=$lt_save_ifs
9022	if test "X$pkg" = "X$p"; then
9023	  enable_fast_install=yes
9024	fi
9025      done
9026      IFS=$lt_save_ifs
9027      ;;
9028    esac
9029else $as_nop
9030  enable_fast_install=yes
9031fi
9032
9033
9034
9035
9036
9037
9038
9039
9040  shared_archive_member_spec=
9041case $host,$enable_shared in
9042power*-*-aix[5-9]*,yes)
9043  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9044printf %s "checking which variant of shared library versioning to provide... " >&6; }
9045
9046# Check whether --with-aix-soname was given.
9047if test ${with_aix_soname+y}
9048then :
9049  withval=$with_aix_soname; case $withval in
9050    aix|svr4|both)
9051      ;;
9052    *)
9053      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9054      ;;
9055    esac
9056    lt_cv_with_aix_soname=$with_aix_soname
9057else $as_nop
9058  if test ${lt_cv_with_aix_soname+y}
9059then :
9060  printf %s "(cached) " >&6
9061else $as_nop
9062  lt_cv_with_aix_soname=aix
9063fi
9064
9065    with_aix_soname=$lt_cv_with_aix_soname
9066fi
9067
9068  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9069printf "%s\n" "$with_aix_soname" >&6; }
9070  if test aix != "$with_aix_soname"; then
9071    # For the AIX way of multilib, we name the shared archive member
9072    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9073    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9074    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9075    # the AIX toolchain works better with OBJECT_MODE set (default 32).
9076    if test 64 = "${OBJECT_MODE-32}"; then
9077      shared_archive_member_spec=shr_64
9078    else
9079      shared_archive_member_spec=shr
9080    fi
9081  fi
9082  ;;
9083*)
9084  with_aix_soname=aix
9085  ;;
9086esac
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097# This can be used to rebuild libtool when needed
9098LIBTOOL_DEPS=$ltmain
9099
9100# Always use our own libtool.
9101LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132test -z "$LN_S" && LN_S="ln -s"
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147if test -n "${ZSH_VERSION+set}"; then
9148   setopt NO_GLOB_SUBST
9149fi
9150
9151{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9152printf %s "checking for objdir... " >&6; }
9153if test ${lt_cv_objdir+y}
9154then :
9155  printf %s "(cached) " >&6
9156else $as_nop
9157  rm -f .libs 2>/dev/null
9158mkdir .libs 2>/dev/null
9159if test -d .libs; then
9160  lt_cv_objdir=.libs
9161else
9162  # MS-DOS does not allow filenames that begin with a dot.
9163  lt_cv_objdir=_libs
9164fi
9165rmdir .libs 2>/dev/null
9166fi
9167{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9168printf "%s\n" "$lt_cv_objdir" >&6; }
9169objdir=$lt_cv_objdir
9170
9171
9172
9173
9174
9175printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9176
9177
9178
9179
9180case $host_os in
9181aix3*)
9182  # AIX sometimes has problems with the GCC collect2 program.  For some
9183  # reason, if we set the COLLECT_NAMES environment variable, the problems
9184  # vanish in a puff of smoke.
9185  if test set != "${COLLECT_NAMES+set}"; then
9186    COLLECT_NAMES=
9187    export COLLECT_NAMES
9188  fi
9189  ;;
9190esac
9191
9192# Global variables:
9193ofile=libtool
9194can_build_shared=yes
9195
9196# All known linkers require a '.a' archive for static linking (except MSVC and
9197# ICC, which need '.lib').
9198libext=a
9199
9200with_gnu_ld=$lt_cv_prog_gnu_ld
9201
9202old_CC=$CC
9203old_CFLAGS=$CFLAGS
9204
9205# Set sane defaults for various variables
9206test -z "$CC" && CC=cc
9207test -z "$LTCC" && LTCC=$CC
9208test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9209test -z "$LD" && LD=ld
9210test -z "$ac_objext" && ac_objext=o
9211
9212func_cc_basename $compiler
9213cc_basename=$func_cc_basename_result
9214
9215
9216# Only perform the check for file, if the check method requires it
9217test -z "$MAGIC_CMD" && MAGIC_CMD=file
9218case $deplibs_check_method in
9219file_magic*)
9220  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9221    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9222printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9223if test ${lt_cv_path_MAGIC_CMD+y}
9224then :
9225  printf %s "(cached) " >&6
9226else $as_nop
9227  case $MAGIC_CMD in
9228[\\/*] |  ?:[\\/]*)
9229  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9230  ;;
9231*)
9232  lt_save_MAGIC_CMD=$MAGIC_CMD
9233  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9234  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9235  for ac_dir in $ac_dummy; do
9236    IFS=$lt_save_ifs
9237    test -z "$ac_dir" && ac_dir=.
9238    if test -f "$ac_dir/${ac_tool_prefix}file"; then
9239      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9240      if test -n "$file_magic_test_file"; then
9241	case $deplibs_check_method in
9242	"file_magic "*)
9243	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9244	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9245	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9246	    $EGREP "$file_magic_regex" > /dev/null; then
9247	    :
9248	  else
9249	    cat <<_LT_EOF 1>&2
9250
9251*** Warning: the command libtool uses to detect shared libraries,
9252*** $file_magic_cmd, produces output that libtool cannot recognize.
9253*** The result is that libtool may fail to recognize shared libraries
9254*** as such.  This will affect the creation of libtool libraries that
9255*** depend on shared libraries, but programs linked with such libtool
9256*** libraries will work regardless of this problem.  Nevertheless, you
9257*** may want to report the problem to your system manager and/or to
9258*** bug-libtool@gnu.org
9259
9260_LT_EOF
9261	  fi ;;
9262	esac
9263      fi
9264      break
9265    fi
9266  done
9267  IFS=$lt_save_ifs
9268  MAGIC_CMD=$lt_save_MAGIC_CMD
9269  ;;
9270esac
9271fi
9272
9273MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9274if test -n "$MAGIC_CMD"; then
9275  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9276printf "%s\n" "$MAGIC_CMD" >&6; }
9277else
9278  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9279printf "%s\n" "no" >&6; }
9280fi
9281
9282
9283
9284
9285
9286if test -z "$lt_cv_path_MAGIC_CMD"; then
9287  if test -n "$ac_tool_prefix"; then
9288    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9289printf %s "checking for file... " >&6; }
9290if test ${lt_cv_path_MAGIC_CMD+y}
9291then :
9292  printf %s "(cached) " >&6
9293else $as_nop
9294  case $MAGIC_CMD in
9295[\\/*] |  ?:[\\/]*)
9296  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9297  ;;
9298*)
9299  lt_save_MAGIC_CMD=$MAGIC_CMD
9300  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9301  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9302  for ac_dir in $ac_dummy; do
9303    IFS=$lt_save_ifs
9304    test -z "$ac_dir" && ac_dir=.
9305    if test -f "$ac_dir/file"; then
9306      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9307      if test -n "$file_magic_test_file"; then
9308	case $deplibs_check_method in
9309	"file_magic "*)
9310	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9311	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9312	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9313	    $EGREP "$file_magic_regex" > /dev/null; then
9314	    :
9315	  else
9316	    cat <<_LT_EOF 1>&2
9317
9318*** Warning: the command libtool uses to detect shared libraries,
9319*** $file_magic_cmd, produces output that libtool cannot recognize.
9320*** The result is that libtool may fail to recognize shared libraries
9321*** as such.  This will affect the creation of libtool libraries that
9322*** depend on shared libraries, but programs linked with such libtool
9323*** libraries will work regardless of this problem.  Nevertheless, you
9324*** may want to report the problem to your system manager and/or to
9325*** bug-libtool@gnu.org
9326
9327_LT_EOF
9328	  fi ;;
9329	esac
9330      fi
9331      break
9332    fi
9333  done
9334  IFS=$lt_save_ifs
9335  MAGIC_CMD=$lt_save_MAGIC_CMD
9336  ;;
9337esac
9338fi
9339
9340MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9341if test -n "$MAGIC_CMD"; then
9342  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9343printf "%s\n" "$MAGIC_CMD" >&6; }
9344else
9345  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9346printf "%s\n" "no" >&6; }
9347fi
9348
9349
9350  else
9351    MAGIC_CMD=:
9352  fi
9353fi
9354
9355  fi
9356  ;;
9357esac
9358
9359# Use C for the default configuration in the libtool script
9360
9361lt_save_CC=$CC
9362ac_ext=c
9363ac_cpp='$CPP $CPPFLAGS'
9364ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9365ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9366ac_compiler_gnu=$ac_cv_c_compiler_gnu
9367
9368
9369# Source file extension for C test sources.
9370ac_ext=c
9371
9372# Object file extension for compiled C test sources.
9373objext=o
9374objext=$objext
9375
9376# Code to be used in simple compile tests
9377lt_simple_compile_test_code="int some_variable = 0;"
9378
9379# Code to be used in simple link tests
9380lt_simple_link_test_code='int main(){return(0);}'
9381
9382
9383
9384
9385
9386
9387
9388# If no C compiler was specified, use CC.
9389LTCC=${LTCC-"$CC"}
9390
9391# If no C compiler flags were specified, use CFLAGS.
9392LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9393
9394# Allow CC to be a program name with arguments.
9395compiler=$CC
9396
9397# Save the default compiler, since it gets overwritten when the other
9398# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9399compiler_DEFAULT=$CC
9400
9401# save warnings/boilerplate of simple test code
9402ac_outfile=conftest.$ac_objext
9403echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9404eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9405_lt_compiler_boilerplate=`cat conftest.err`
9406$RM conftest*
9407
9408ac_outfile=conftest.$ac_objext
9409echo "$lt_simple_link_test_code" >conftest.$ac_ext
9410eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9411_lt_linker_boilerplate=`cat conftest.err`
9412$RM -r conftest*
9413
9414
9415## CAVEAT EMPTOR:
9416## There is no encapsulation within the following macros, do not change
9417## the running order or otherwise move them around unless you know exactly
9418## what you are doing...
9419if test -n "$compiler"; then
9420
9421lt_prog_compiler_no_builtin_flag=
9422
9423if test yes = "$GCC"; then
9424  case $cc_basename in
9425  nvcc*)
9426    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9427  *)
9428    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9429  esac
9430
9431  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9432printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9433if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9434then :
9435  printf %s "(cached) " >&6
9436else $as_nop
9437  lt_cv_prog_compiler_rtti_exceptions=no
9438   ac_outfile=conftest.$ac_objext
9439   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9440   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9441   # Insert the option either (1) after the last *FLAGS variable, or
9442   # (2) before a word containing "conftest.", or (3) at the end.
9443   # Note that $ac_compile itself does not contain backslashes and begins
9444   # with a dollar sign (not a hyphen), so the echo should work correctly.
9445   # The option is referenced via a variable to avoid confusing sed.
9446   lt_compile=`echo "$ac_compile" | $SED \
9447   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9448   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9449   -e 's:$: $lt_compiler_flag:'`
9450   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9451   (eval "$lt_compile" 2>conftest.err)
9452   ac_status=$?
9453   cat conftest.err >&5
9454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9455   if (exit $ac_status) && test -s "$ac_outfile"; then
9456     # The compiler can only warn and ignore the option if not recognized
9457     # So say no if there are warnings other than the usual output.
9458     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9459     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9460     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9461       lt_cv_prog_compiler_rtti_exceptions=yes
9462     fi
9463   fi
9464   $RM conftest*
9465
9466fi
9467{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9468printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9469
9470if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9471    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9472else
9473    :
9474fi
9475
9476fi
9477
9478
9479
9480
9481
9482
9483  lt_prog_compiler_wl=
9484lt_prog_compiler_pic=
9485lt_prog_compiler_static=
9486
9487
9488  if test yes = "$GCC"; then
9489    lt_prog_compiler_wl='-Wl,'
9490    lt_prog_compiler_static='-static'
9491
9492    case $host_os in
9493      aix*)
9494      # All AIX code is PIC.
9495      if test ia64 = "$host_cpu"; then
9496	# AIX 5 now supports IA64 processor
9497	lt_prog_compiler_static='-Bstatic'
9498      fi
9499      lt_prog_compiler_pic='-fPIC'
9500      ;;
9501
9502    amigaos*)
9503      case $host_cpu in
9504      powerpc)
9505            # see comment about AmigaOS4 .so support
9506            lt_prog_compiler_pic='-fPIC'
9507        ;;
9508      m68k)
9509            # FIXME: we need at least 68020 code to build shared libraries, but
9510            # adding the '-m68020' flag to GCC prevents building anything better,
9511            # like '-m68040'.
9512            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9513        ;;
9514      esac
9515      ;;
9516
9517    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9518      # PIC is the default for these OSes.
9519      ;;
9520
9521    mingw* | cygwin* | pw32* | os2* | cegcc*)
9522      # This hack is so that the source file can tell whether it is being
9523      # built for inclusion in a dll (and should export symbols for example).
9524      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9525      # (--disable-auto-import) libraries
9526      lt_prog_compiler_pic='-DDLL_EXPORT'
9527      case $host_os in
9528      os2*)
9529	lt_prog_compiler_static='$wl-static'
9530	;;
9531      esac
9532      ;;
9533
9534    darwin* | rhapsody*)
9535      # PIC is the default on this platform
9536      # Common symbols not allowed in MH_DYLIB files
9537      lt_prog_compiler_pic='-fno-common'
9538      ;;
9539
9540    haiku*)
9541      # PIC is the default for Haiku.
9542      # The "-static" flag exists, but is broken.
9543      lt_prog_compiler_static=
9544      ;;
9545
9546    hpux*)
9547      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9548      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9549      # sets the default TLS model and affects inlining.
9550      case $host_cpu in
9551      hppa*64*)
9552	# +Z the default
9553	;;
9554      *)
9555	lt_prog_compiler_pic='-fPIC'
9556	;;
9557      esac
9558      ;;
9559
9560    interix[3-9]*)
9561      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9562      # Instead, we relocate shared libraries at runtime.
9563      ;;
9564
9565    msdosdjgpp*)
9566      # Just because we use GCC doesn't mean we suddenly get shared libraries
9567      # on systems that don't support them.
9568      lt_prog_compiler_can_build_shared=no
9569      enable_shared=no
9570      ;;
9571
9572    *nto* | *qnx*)
9573      # QNX uses GNU C++, but need to define -shared option too, otherwise
9574      # it will coredump.
9575      lt_prog_compiler_pic='-fPIC -shared'
9576      ;;
9577
9578    sysv4*MP*)
9579      if test -d /usr/nec; then
9580	lt_prog_compiler_pic=-Kconform_pic
9581      fi
9582      ;;
9583
9584    *)
9585      lt_prog_compiler_pic='-fPIC'
9586      ;;
9587    esac
9588
9589    case $cc_basename in
9590    nvcc*) # Cuda Compiler Driver 2.2
9591      lt_prog_compiler_wl='-Xlinker '
9592      if test -n "$lt_prog_compiler_pic"; then
9593        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9594      fi
9595      ;;
9596    esac
9597  else
9598    # PORTME Check for flag to pass linker flags through the system compiler.
9599    case $host_os in
9600    aix*)
9601      lt_prog_compiler_wl='-Wl,'
9602      if test ia64 = "$host_cpu"; then
9603	# AIX 5 now supports IA64 processor
9604	lt_prog_compiler_static='-Bstatic'
9605      else
9606	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9607      fi
9608      ;;
9609
9610    darwin* | rhapsody*)
9611      # PIC is the default on this platform
9612      # Common symbols not allowed in MH_DYLIB files
9613      lt_prog_compiler_pic='-fno-common'
9614      case $cc_basename in
9615      nagfor*)
9616        # NAG Fortran compiler
9617        lt_prog_compiler_wl='-Wl,-Wl,,'
9618        lt_prog_compiler_pic='-PIC'
9619        lt_prog_compiler_static='-Bstatic'
9620        ;;
9621      esac
9622      ;;
9623
9624    mingw* | cygwin* | pw32* | os2* | cegcc*)
9625      # This hack is so that the source file can tell whether it is being
9626      # built for inclusion in a dll (and should export symbols for example).
9627      lt_prog_compiler_pic='-DDLL_EXPORT'
9628      case $host_os in
9629      os2*)
9630	lt_prog_compiler_static='$wl-static'
9631	;;
9632      esac
9633      ;;
9634
9635    hpux9* | hpux10* | hpux11*)
9636      lt_prog_compiler_wl='-Wl,'
9637      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9638      # not for PA HP-UX.
9639      case $host_cpu in
9640      hppa*64*|ia64*)
9641	# +Z the default
9642	;;
9643      *)
9644	lt_prog_compiler_pic='+Z'
9645	;;
9646      esac
9647      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9648      lt_prog_compiler_static='$wl-a ${wl}archive'
9649      ;;
9650
9651    irix5* | irix6* | nonstopux*)
9652      lt_prog_compiler_wl='-Wl,'
9653      # PIC (with -KPIC) is the default.
9654      lt_prog_compiler_static='-non_shared'
9655      ;;
9656
9657    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9658      case $cc_basename in
9659      # old Intel for x86_64, which still supported -KPIC.
9660      ecc*)
9661	lt_prog_compiler_wl='-Wl,'
9662	lt_prog_compiler_pic='-KPIC'
9663	lt_prog_compiler_static='-static'
9664        ;;
9665      # icc used to be incompatible with GCC.
9666      # ICC 10 doesn't accept -KPIC any more.
9667      icc* | ifort*)
9668	lt_prog_compiler_wl='-Wl,'
9669	lt_prog_compiler_pic='-fPIC'
9670	lt_prog_compiler_static='-static'
9671        ;;
9672      # Lahey Fortran 8.1.
9673      lf95*)
9674	lt_prog_compiler_wl='-Wl,'
9675	lt_prog_compiler_pic='--shared'
9676	lt_prog_compiler_static='--static'
9677	;;
9678      nagfor*)
9679	# NAG Fortran compiler
9680	lt_prog_compiler_wl='-Wl,-Wl,,'
9681	lt_prog_compiler_pic='-PIC'
9682	lt_prog_compiler_static='-Bstatic'
9683	;;
9684      tcc*)
9685	# Fabrice Bellard et al's Tiny C Compiler
9686	lt_prog_compiler_wl='-Wl,'
9687	lt_prog_compiler_pic='-fPIC'
9688	lt_prog_compiler_static='-static'
9689	;;
9690      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9691        # Portland Group compilers (*not* the Pentium gcc compiler,
9692	# which looks to be a dead project)
9693	lt_prog_compiler_wl='-Wl,'
9694	lt_prog_compiler_pic='-fpic'
9695	lt_prog_compiler_static='-Bstatic'
9696        ;;
9697      ccc*)
9698        lt_prog_compiler_wl='-Wl,'
9699        # All Alpha code is PIC.
9700        lt_prog_compiler_static='-non_shared'
9701        ;;
9702      xl* | bgxl* | bgf* | mpixl*)
9703	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9704	lt_prog_compiler_wl='-Wl,'
9705	lt_prog_compiler_pic='-qpic'
9706	lt_prog_compiler_static='-qstaticlink'
9707	;;
9708      *)
9709	case `$CC -V 2>&1 | $SED 5q` in
9710	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9711	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9712	  lt_prog_compiler_pic='-KPIC'
9713	  lt_prog_compiler_static='-Bstatic'
9714	  lt_prog_compiler_wl=''
9715	  ;;
9716	*Sun\ F* | *Sun*Fortran*)
9717	  lt_prog_compiler_pic='-KPIC'
9718	  lt_prog_compiler_static='-Bstatic'
9719	  lt_prog_compiler_wl='-Qoption ld '
9720	  ;;
9721	*Sun\ C*)
9722	  # Sun C 5.9
9723	  lt_prog_compiler_pic='-KPIC'
9724	  lt_prog_compiler_static='-Bstatic'
9725	  lt_prog_compiler_wl='-Wl,'
9726	  ;;
9727        *Intel*\ [CF]*Compiler*)
9728	  lt_prog_compiler_wl='-Wl,'
9729	  lt_prog_compiler_pic='-fPIC'
9730	  lt_prog_compiler_static='-static'
9731	  ;;
9732	*Portland\ Group*)
9733	  lt_prog_compiler_wl='-Wl,'
9734	  lt_prog_compiler_pic='-fpic'
9735	  lt_prog_compiler_static='-Bstatic'
9736	  ;;
9737	esac
9738	;;
9739      esac
9740      ;;
9741
9742    newsos6)
9743      lt_prog_compiler_pic='-KPIC'
9744      lt_prog_compiler_static='-Bstatic'
9745      ;;
9746
9747    *nto* | *qnx*)
9748      # QNX uses GNU C++, but need to define -shared option too, otherwise
9749      # it will coredump.
9750      lt_prog_compiler_pic='-fPIC -shared'
9751      ;;
9752
9753    osf3* | osf4* | osf5*)
9754      lt_prog_compiler_wl='-Wl,'
9755      # All OSF/1 code is PIC.
9756      lt_prog_compiler_static='-non_shared'
9757      ;;
9758
9759    rdos*)
9760      lt_prog_compiler_static='-non_shared'
9761      ;;
9762
9763    solaris*)
9764      lt_prog_compiler_pic='-KPIC'
9765      lt_prog_compiler_static='-Bstatic'
9766      case $cc_basename in
9767      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9768	lt_prog_compiler_wl='-Qoption ld ';;
9769      *)
9770	lt_prog_compiler_wl='-Wl,';;
9771      esac
9772      ;;
9773
9774    sunos4*)
9775      lt_prog_compiler_wl='-Qoption ld '
9776      lt_prog_compiler_pic='-PIC'
9777      lt_prog_compiler_static='-Bstatic'
9778      ;;
9779
9780    sysv4 | sysv4.2uw2* | sysv4.3*)
9781      lt_prog_compiler_wl='-Wl,'
9782      lt_prog_compiler_pic='-KPIC'
9783      lt_prog_compiler_static='-Bstatic'
9784      ;;
9785
9786    sysv4*MP*)
9787      if test -d /usr/nec; then
9788	lt_prog_compiler_pic='-Kconform_pic'
9789	lt_prog_compiler_static='-Bstatic'
9790      fi
9791      ;;
9792
9793    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9794      lt_prog_compiler_wl='-Wl,'
9795      lt_prog_compiler_pic='-KPIC'
9796      lt_prog_compiler_static='-Bstatic'
9797      ;;
9798
9799    unicos*)
9800      lt_prog_compiler_wl='-Wl,'
9801      lt_prog_compiler_can_build_shared=no
9802      ;;
9803
9804    uts4*)
9805      lt_prog_compiler_pic='-pic'
9806      lt_prog_compiler_static='-Bstatic'
9807      ;;
9808
9809    *)
9810      lt_prog_compiler_can_build_shared=no
9811      ;;
9812    esac
9813  fi
9814
9815case $host_os in
9816  # For platforms that do not support PIC, -DPIC is meaningless:
9817  *djgpp*)
9818    lt_prog_compiler_pic=
9819    ;;
9820  *)
9821    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9822    ;;
9823esac
9824
9825{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9826printf %s "checking for $compiler option to produce PIC... " >&6; }
9827if test ${lt_cv_prog_compiler_pic+y}
9828then :
9829  printf %s "(cached) " >&6
9830else $as_nop
9831  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9832fi
9833{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9834printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9835lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9836
9837#
9838# Check to make sure the PIC flag actually works.
9839#
9840if test -n "$lt_prog_compiler_pic"; then
9841  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9842printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9843if test ${lt_cv_prog_compiler_pic_works+y}
9844then :
9845  printf %s "(cached) " >&6
9846else $as_nop
9847  lt_cv_prog_compiler_pic_works=no
9848   ac_outfile=conftest.$ac_objext
9849   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9850   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9851   # Insert the option either (1) after the last *FLAGS variable, or
9852   # (2) before a word containing "conftest.", or (3) at the end.
9853   # Note that $ac_compile itself does not contain backslashes and begins
9854   # with a dollar sign (not a hyphen), so the echo should work correctly.
9855   # The option is referenced via a variable to avoid confusing sed.
9856   lt_compile=`echo "$ac_compile" | $SED \
9857   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9858   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9859   -e 's:$: $lt_compiler_flag:'`
9860   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9861   (eval "$lt_compile" 2>conftest.err)
9862   ac_status=$?
9863   cat conftest.err >&5
9864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865   if (exit $ac_status) && test -s "$ac_outfile"; then
9866     # The compiler can only warn and ignore the option if not recognized
9867     # So say no if there are warnings other than the usual output.
9868     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9869     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9870     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9871       lt_cv_prog_compiler_pic_works=yes
9872     fi
9873   fi
9874   $RM conftest*
9875
9876fi
9877{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9878printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9879
9880if test yes = "$lt_cv_prog_compiler_pic_works"; then
9881    case $lt_prog_compiler_pic in
9882     "" | " "*) ;;
9883     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9884     esac
9885else
9886    lt_prog_compiler_pic=
9887     lt_prog_compiler_can_build_shared=no
9888fi
9889
9890fi
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902#
9903# Check to make sure the static flag actually works.
9904#
9905wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9906{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9907printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9908if test ${lt_cv_prog_compiler_static_works+y}
9909then :
9910  printf %s "(cached) " >&6
9911else $as_nop
9912  lt_cv_prog_compiler_static_works=no
9913   save_LDFLAGS=$LDFLAGS
9914   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9915   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9916   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9917     # The linker can only warn and ignore the option if not recognized
9918     # So say no if there are warnings
9919     if test -s conftest.err; then
9920       # Append any errors to the config.log.
9921       cat conftest.err 1>&5
9922       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9923       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9924       if diff conftest.exp conftest.er2 >/dev/null; then
9925         lt_cv_prog_compiler_static_works=yes
9926       fi
9927     else
9928       lt_cv_prog_compiler_static_works=yes
9929     fi
9930   fi
9931   $RM -r conftest*
9932   LDFLAGS=$save_LDFLAGS
9933
9934fi
9935{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9936printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9937
9938if test yes = "$lt_cv_prog_compiler_static_works"; then
9939    :
9940else
9941    lt_prog_compiler_static=
9942fi
9943
9944
9945
9946
9947
9948
9949
9950  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9951printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9952if test ${lt_cv_prog_compiler_c_o+y}
9953then :
9954  printf %s "(cached) " >&6
9955else $as_nop
9956  lt_cv_prog_compiler_c_o=no
9957   $RM -r conftest 2>/dev/null
9958   mkdir conftest
9959   cd conftest
9960   mkdir out
9961   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9962
9963   lt_compiler_flag="-o out/conftest2.$ac_objext"
9964   # Insert the option either (1) after the last *FLAGS variable, or
9965   # (2) before a word containing "conftest.", or (3) at the end.
9966   # Note that $ac_compile itself does not contain backslashes and begins
9967   # with a dollar sign (not a hyphen), so the echo should work correctly.
9968   lt_compile=`echo "$ac_compile" | $SED \
9969   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9970   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9971   -e 's:$: $lt_compiler_flag:'`
9972   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9973   (eval "$lt_compile" 2>out/conftest.err)
9974   ac_status=$?
9975   cat out/conftest.err >&5
9976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9978   then
9979     # The compiler can only warn and ignore the option if not recognized
9980     # So say no if there are warnings
9981     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9982     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9983     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9984       lt_cv_prog_compiler_c_o=yes
9985     fi
9986   fi
9987   chmod u+w . 2>&5
9988   $RM conftest*
9989   # SGI C++ compiler will create directory out/ii_files/ for
9990   # template instantiation
9991   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9992   $RM out/* && rmdir out
9993   cd ..
9994   $RM -r conftest
9995   $RM conftest*
9996
9997fi
9998{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9999printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10000
10001
10002
10003
10004
10005
10006  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10007printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10008if test ${lt_cv_prog_compiler_c_o+y}
10009then :
10010  printf %s "(cached) " >&6
10011else $as_nop
10012  lt_cv_prog_compiler_c_o=no
10013   $RM -r conftest 2>/dev/null
10014   mkdir conftest
10015   cd conftest
10016   mkdir out
10017   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10018
10019   lt_compiler_flag="-o out/conftest2.$ac_objext"
10020   # Insert the option either (1) after the last *FLAGS variable, or
10021   # (2) before a word containing "conftest.", or (3) at the end.
10022   # Note that $ac_compile itself does not contain backslashes and begins
10023   # with a dollar sign (not a hyphen), so the echo should work correctly.
10024   lt_compile=`echo "$ac_compile" | $SED \
10025   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10026   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10027   -e 's:$: $lt_compiler_flag:'`
10028   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10029   (eval "$lt_compile" 2>out/conftest.err)
10030   ac_status=$?
10031   cat out/conftest.err >&5
10032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10034   then
10035     # The compiler can only warn and ignore the option if not recognized
10036     # So say no if there are warnings
10037     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10038     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10039     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10040       lt_cv_prog_compiler_c_o=yes
10041     fi
10042   fi
10043   chmod u+w . 2>&5
10044   $RM conftest*
10045   # SGI C++ compiler will create directory out/ii_files/ for
10046   # template instantiation
10047   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10048   $RM out/* && rmdir out
10049   cd ..
10050   $RM -r conftest
10051   $RM conftest*
10052
10053fi
10054{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10055printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10056
10057
10058
10059
10060hard_links=nottested
10061if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10062  # do not overwrite the value of need_locks provided by the user
10063  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10064printf %s "checking if we can lock with hard links... " >&6; }
10065  hard_links=yes
10066  $RM conftest*
10067  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10068  touch conftest.a
10069  ln conftest.a conftest.b 2>&5 || hard_links=no
10070  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10071  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10072printf "%s\n" "$hard_links" >&6; }
10073  if test no = "$hard_links"; then
10074    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10075printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10076    need_locks=warn
10077  fi
10078else
10079  need_locks=no
10080fi
10081
10082
10083
10084
10085
10086
10087  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10088printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10089
10090  runpath_var=
10091  allow_undefined_flag=
10092  always_export_symbols=no
10093  archive_cmds=
10094  archive_expsym_cmds=
10095  compiler_needs_object=no
10096  enable_shared_with_static_runtimes=no
10097  export_dynamic_flag_spec=
10098  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10099  hardcode_automatic=no
10100  hardcode_direct=no
10101  hardcode_direct_absolute=no
10102  hardcode_libdir_flag_spec=
10103  hardcode_libdir_separator=
10104  hardcode_minus_L=no
10105  hardcode_shlibpath_var=unsupported
10106  inherit_rpath=no
10107  link_all_deplibs=unknown
10108  module_cmds=
10109  module_expsym_cmds=
10110  old_archive_from_new_cmds=
10111  old_archive_from_expsyms_cmds=
10112  thread_safe_flag_spec=
10113  whole_archive_flag_spec=
10114  # include_expsyms should be a list of space-separated symbols to be *always*
10115  # included in the symbol list
10116  include_expsyms=
10117  # exclude_expsyms can be an extended regexp of symbols to exclude
10118  # it will be wrapped by ' (' and ')$', so one must not match beginning or
10119  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10120  # as well as any symbol that contains 'd'.
10121  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10122  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10123  # platforms (ab)use it in PIC code, but their linkers get confused if
10124  # the symbol is explicitly referenced.  Since portable code cannot
10125  # rely on this symbol name, it's probably fine to never include it in
10126  # preloaded symbol tables.
10127  # Exclude shared library initialization/finalization symbols.
10128  extract_expsyms_cmds=
10129
10130  case $host_os in
10131  cygwin* | mingw* | pw32* | cegcc*)
10132    # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
10133    # When not using gcc, we currently assume that we are using
10134    # Microsoft Visual C++ or Intel C++ Compiler.
10135    if test yes != "$GCC"; then
10136      with_gnu_ld=no
10137    fi
10138    ;;
10139  interix*)
10140    # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
10141    with_gnu_ld=yes
10142    ;;
10143  openbsd* | bitrig*)
10144    with_gnu_ld=no
10145    ;;
10146  esac
10147
10148  ld_shlibs=yes
10149
10150  # On some targets, GNU ld is compatible enough with the native linker
10151  # that we're better off using the native interface for both.
10152  lt_use_gnu_ld_interface=no
10153  if test yes = "$with_gnu_ld"; then
10154    case $host_os in
10155      aix*)
10156	# The AIX port of GNU ld has always aspired to compatibility
10157	# with the native linker.  However, as the warning in the GNU ld
10158	# block says, versions before 2.19.5* couldn't really create working
10159	# shared libraries, regardless of the interface used.
10160	case `$LD -v 2>&1` in
10161	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10162	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10163	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10164	  *)
10165	    lt_use_gnu_ld_interface=yes
10166	    ;;
10167	esac
10168	;;
10169      *)
10170	lt_use_gnu_ld_interface=yes
10171	;;
10172    esac
10173  fi
10174
10175  if test yes = "$lt_use_gnu_ld_interface"; then
10176    # If archive_cmds runs LD, not CC, wlarc should be empty
10177    wlarc='$wl'
10178
10179    # Set some defaults for GNU ld with shared library support. These
10180    # are reset later if shared libraries are not supported. Putting them
10181    # here allows them to be overridden if necessary.
10182    runpath_var=LD_RUN_PATH
10183    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10184    export_dynamic_flag_spec='$wl--export-dynamic'
10185    # ancient GNU ld didn't support --whole-archive et. al.
10186    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10187      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10188    else
10189      whole_archive_flag_spec=
10190    fi
10191    supports_anon_versioning=no
10192    case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
10193      *GNU\ gold*) supports_anon_versioning=yes ;;
10194      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10195      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10196      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10197      *\ 2.11.*) ;; # other 2.11 versions
10198      *) supports_anon_versioning=yes ;;
10199    esac
10200
10201    # See if GNU ld supports shared libraries.
10202    case $host_os in
10203    aix[3-9]*)
10204      # On AIX/PPC, the GNU linker is very broken
10205      if test ia64 != "$host_cpu"; then
10206	ld_shlibs=no
10207	cat <<_LT_EOF 1>&2
10208
10209*** Warning: the GNU linker, at least up to release 2.19, is reported
10210*** to be unable to reliably create shared libraries on AIX.
10211*** Therefore, libtool is disabling shared libraries support.  If you
10212*** really care for shared libraries, you may want to install binutils
10213*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10214*** You will then need to restart the configuration process.
10215
10216_LT_EOF
10217      fi
10218      ;;
10219
10220    amigaos*)
10221      case $host_cpu in
10222      powerpc)
10223            # see comment about AmigaOS4 .so support
10224            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10225            archive_expsym_cmds=''
10226        ;;
10227      m68k)
10228            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)'
10229            hardcode_libdir_flag_spec='-L$libdir'
10230            hardcode_minus_L=yes
10231        ;;
10232      esac
10233      ;;
10234
10235    beos*)
10236      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10237	allow_undefined_flag=unsupported
10238	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10239	# support --undefined.  This deserves some investigation.  FIXME
10240	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10241      else
10242	ld_shlibs=no
10243      fi
10244      ;;
10245
10246    cygwin* | mingw* | pw32* | cegcc*)
10247      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10248      # as there is no search path for DLLs.
10249      hardcode_libdir_flag_spec='-L$libdir'
10250      export_dynamic_flag_spec='$wl--export-all-symbols'
10251      allow_undefined_flag=unsupported
10252      always_export_symbols=no
10253      enable_shared_with_static_runtimes=yes
10254      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'
10255      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10256
10257      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10258        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10259	# If the export-symbols file already is a .def file, use it as
10260	# is; otherwise, prepend EXPORTS...
10261	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10262          cp $export_symbols $output_objdir/$soname.def;
10263        else
10264          echo EXPORTS > $output_objdir/$soname.def;
10265          cat $export_symbols >> $output_objdir/$soname.def;
10266        fi~
10267        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10268      else
10269	ld_shlibs=no
10270      fi
10271      ;;
10272
10273    haiku*)
10274      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10275      link_all_deplibs=yes
10276      ;;
10277
10278    os2*)
10279      hardcode_libdir_flag_spec='-L$libdir'
10280      hardcode_minus_L=yes
10281      allow_undefined_flag=unsupported
10282      shrext_cmds=.dll
10283      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10284	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10285	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10286	$ECHO EXPORTS >> $output_objdir/$libname.def~
10287	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10288	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10289	emximp -o $lib $output_objdir/$libname.def'
10290      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10291	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10292	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10293	$ECHO EXPORTS >> $output_objdir/$libname.def~
10294	prefix_cmds="$SED"~
10295	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10296	  prefix_cmds="$prefix_cmds -e 1d";
10297	fi~
10298	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10299	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10300	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10301	emximp -o $lib $output_objdir/$libname.def'
10302      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10303      enable_shared_with_static_runtimes=yes
10304      file_list_spec='@'
10305      ;;
10306
10307    interix[3-9]*)
10308      hardcode_direct=no
10309      hardcode_shlibpath_var=no
10310      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10311      export_dynamic_flag_spec='$wl-E'
10312      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10313      # Instead, shared libraries are loaded at an image base (0x10000000 by
10314      # default) and relocated if they conflict, which is a slow very memory
10315      # consuming and fragmenting process.  To avoid this, we pick a random,
10316      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10317      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10318      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10319      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'
10320      ;;
10321
10322    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10323      tmp_diet=no
10324      if test linux-dietlibc = "$host_os"; then
10325	case $cc_basename in
10326	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
10327	esac
10328      fi
10329      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10330	 && test no = "$tmp_diet"
10331      then
10332	tmp_addflag=' $pic_flag'
10333	tmp_sharedflag='-shared'
10334	case $cc_basename,$host_cpu in
10335        pgcc*)				# Portland Group C compiler
10336	  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'
10337	  tmp_addflag=' $pic_flag'
10338	  ;;
10339	pgf77* | pgf90* | pgf95* | pgfortran*)
10340					# Portland Group f77 and f90 compilers
10341	  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'
10342	  tmp_addflag=' $pic_flag -Mnomain' ;;
10343	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
10344	  tmp_addflag=' -i_dynamic' ;;
10345	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10346	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10347	ifc* | ifort*)			# Intel Fortran compiler
10348	  tmp_addflag=' -nofor_main' ;;
10349	lf95*)				# Lahey Fortran 8.1
10350	  whole_archive_flag_spec=
10351	  tmp_sharedflag='--shared' ;;
10352        nagfor*)                        # NAGFOR 5.3
10353          tmp_sharedflag='-Wl,-shared' ;;
10354	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10355	  tmp_sharedflag='-qmkshrobj'
10356	  tmp_addflag= ;;
10357	nvcc*)	# Cuda Compiler Driver 2.2
10358	  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'
10359	  compiler_needs_object=yes
10360	  ;;
10361	esac
10362	case `$CC -V 2>&1 | $SED 5q` in
10363	*Sun\ C*)			# Sun C 5.9
10364	  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'
10365	  compiler_needs_object=yes
10366	  tmp_sharedflag='-G' ;;
10367	*Sun\ F*)			# Sun Fortran 8.3
10368	  tmp_sharedflag='-G' ;;
10369	esac
10370	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10371
10372        if test yes = "$supports_anon_versioning"; then
10373          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10374            cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10375            echo "local: *; };" >> $output_objdir/$libname.ver~
10376            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10377        fi
10378
10379	case $cc_basename in
10380	tcc*)
10381	  export_dynamic_flag_spec='-rdynamic'
10382	  ;;
10383	xlf* | bgf* | bgxlf* | mpixlf*)
10384	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10385	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10386	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10387	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10388	  if test yes = "$supports_anon_versioning"; then
10389	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10390              cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10391              echo "local: *; };" >> $output_objdir/$libname.ver~
10392              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10393	  fi
10394	  ;;
10395	esac
10396      else
10397        ld_shlibs=no
10398      fi
10399      ;;
10400
10401    netbsd*)
10402      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10403	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10404	wlarc=
10405      else
10406	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10407	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10408      fi
10409      ;;
10410
10411    solaris*)
10412      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10413	ld_shlibs=no
10414	cat <<_LT_EOF 1>&2
10415
10416*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10417*** create shared libraries on Solaris systems.  Therefore, libtool
10418*** is disabling shared libraries support.  We urge you to upgrade GNU
10419*** binutils to release 2.9.1 or newer.  Another option is to modify
10420*** your PATH or compiler configuration so that the native linker is
10421*** used, and then restart.
10422
10423_LT_EOF
10424      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10425	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10426	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10427      else
10428	ld_shlibs=no
10429      fi
10430      ;;
10431
10432    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10433      case `$LD -v 2>&1` in
10434        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10435	ld_shlibs=no
10436	cat <<_LT_EOF 1>&2
10437
10438*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10439*** reliably create shared libraries on SCO systems.  Therefore, libtool
10440*** is disabling shared libraries support.  We urge you to upgrade GNU
10441*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10442*** your PATH or compiler configuration so that the native linker is
10443*** used, and then restart.
10444
10445_LT_EOF
10446	;;
10447	*)
10448	  # For security reasons, it is highly recommended that you always
10449	  # use absolute paths for naming shared libraries, and exclude the
10450	  # DT_RUNPATH tag from executables and libraries.  But doing so
10451	  # requires that you compile everything twice, which is a pain.
10452	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10453	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10454	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10455	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10456	  else
10457	    ld_shlibs=no
10458	  fi
10459	;;
10460      esac
10461      ;;
10462
10463    sunos4*)
10464      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10465      wlarc=
10466      hardcode_direct=yes
10467      hardcode_shlibpath_var=no
10468      ;;
10469
10470    *)
10471      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10472	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10473	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10474      else
10475	ld_shlibs=no
10476      fi
10477      ;;
10478    esac
10479
10480    if test no = "$ld_shlibs"; then
10481      runpath_var=
10482      hardcode_libdir_flag_spec=
10483      export_dynamic_flag_spec=
10484      whole_archive_flag_spec=
10485    fi
10486  else
10487    # PORTME fill in a description of your system's linker (not GNU ld)
10488    case $host_os in
10489    aix3*)
10490      allow_undefined_flag=unsupported
10491      always_export_symbols=yes
10492      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'
10493      # Note: this linker hardcodes the directories in LIBPATH if there
10494      # are no directories specified by -L.
10495      hardcode_minus_L=yes
10496      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10497	# Neither direct hardcoding nor static linking is supported with a
10498	# broken collect2.
10499	hardcode_direct=unsupported
10500      fi
10501      ;;
10502
10503    aix[4-9]*)
10504      if test ia64 = "$host_cpu"; then
10505	# On IA64, the linker does run time linking by default, so we don't
10506	# have to do anything special.
10507	aix_use_runtimelinking=no
10508	exp_sym_flag='-Bexport'
10509	no_entry_flag=
10510      else
10511	# If we're using GNU nm, then we don't want the "-C" option.
10512	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
10513	# Without the "-l" option, or with the "-B" option, AIX nm treats
10514	# weak defined symbols like other global defined symbols, whereas
10515	# GNU nm marks them as "W".
10516	# While the 'weak' keyword is ignored in the Export File, we need
10517	# it in the Import File for the 'aix-soname' feature, so we have
10518	# to replace the "-B" option with "-P" for AIX nm.
10519	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10520	  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'
10521	else
10522	  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'
10523	fi
10524	aix_use_runtimelinking=no
10525
10526	# Test if we are trying to use run time linking or normal
10527	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10528	# have runtime linking enabled, and use it for executables.
10529	# For shared libraries, we enable/disable runtime linking
10530	# depending on the kind of the shared library created -
10531	# when "with_aix_soname,aix_use_runtimelinking" is:
10532	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10533	# "aix,yes"  lib.so          shared, rtl:yes, for executables
10534	#            lib.a           static archive
10535	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
10536	#            lib.a(lib.so.V) shared, rtl:no,  for executables
10537	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10538	#            lib.a(lib.so.V) shared, rtl:no
10539	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10540	#            lib.a           static archive
10541	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10542	  for ld_flag in $LDFLAGS; do
10543	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10544	    aix_use_runtimelinking=yes
10545	    break
10546	  fi
10547	  done
10548	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10549	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
10550	    # so we don't have lib.a shared libs to link our executables.
10551	    # We have to force runtime linking in this case.
10552	    aix_use_runtimelinking=yes
10553	    LDFLAGS="$LDFLAGS -Wl,-brtl"
10554	  fi
10555	  ;;
10556	esac
10557
10558	exp_sym_flag='-bexport'
10559	no_entry_flag='-bnoentry'
10560      fi
10561
10562      # When large executables or shared objects are built, AIX ld can
10563      # have problems creating the table of contents.  If linking a library
10564      # or program results in "error TOC overflow" add -mminimal-toc to
10565      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10566      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10567
10568      archive_cmds=''
10569      hardcode_direct=yes
10570      hardcode_direct_absolute=yes
10571      hardcode_libdir_separator=':'
10572      link_all_deplibs=yes
10573      file_list_spec='$wl-f,'
10574      case $with_aix_soname,$aix_use_runtimelinking in
10575      aix,*) ;; # traditional, no import file
10576      svr4,* | *,yes) # use import file
10577	# The Import File defines what to hardcode.
10578	hardcode_direct=no
10579	hardcode_direct_absolute=no
10580	;;
10581      esac
10582
10583      if test yes = "$GCC"; then
10584	case $host_os in aix4.[012]|aix4.[012].*)
10585	# We only want to do this on AIX 4.2 and lower, the check
10586	# below for broken collect2 doesn't work under 4.3+
10587	  collect2name=`$CC -print-prog-name=collect2`
10588	  if test -f "$collect2name" &&
10589	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10590	  then
10591	  # We have reworked collect2
10592	  :
10593	  else
10594	  # We have old collect2
10595	  hardcode_direct=unsupported
10596	  # It fails to find uninstalled libraries when the uninstalled
10597	  # path is not listed in the libpath.  Setting hardcode_minus_L
10598	  # to unsupported forces relinking
10599	  hardcode_minus_L=yes
10600	  hardcode_libdir_flag_spec='-L$libdir'
10601	  hardcode_libdir_separator=
10602	  fi
10603	  ;;
10604	esac
10605	shared_flag='-shared'
10606	if test yes = "$aix_use_runtimelinking"; then
10607	  shared_flag="$shared_flag "'$wl-G'
10608	fi
10609	# Need to ensure runtime linking is disabled for the traditional
10610	# shared library, or the linker may eventually find shared libraries
10611	# /with/ Import File - we do not want to mix them.
10612	shared_flag_aix='-shared'
10613	shared_flag_svr4='-shared $wl-G'
10614      else
10615	# not using gcc
10616	if test ia64 = "$host_cpu"; then
10617	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10618	# chokes on -Wl,-G. The following line is correct:
10619	  shared_flag='-G'
10620	else
10621	  if test yes = "$aix_use_runtimelinking"; then
10622	    shared_flag='$wl-G'
10623	  else
10624	    shared_flag='$wl-bM:SRE'
10625	  fi
10626	  shared_flag_aix='$wl-bM:SRE'
10627	  shared_flag_svr4='$wl-G'
10628	fi
10629      fi
10630
10631      export_dynamic_flag_spec='$wl-bexpall'
10632      # It seems that -bexpall does not export symbols beginning with
10633      # underscore (_), so it is better to generate a list of symbols to export.
10634      always_export_symbols=yes
10635      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10636	# Warning - without using the other runtime loading flags (-brtl),
10637	# -berok will link without error, but may produce a broken library.
10638	allow_undefined_flag='-berok'
10639        # Determine the default libpath from the value encoded in an
10640        # empty executable.
10641        if test set = "${lt_cv_aix_libpath+set}"; then
10642  aix_libpath=$lt_cv_aix_libpath
10643else
10644  if test ${lt_cv_aix_libpath_+y}
10645then :
10646  printf %s "(cached) " >&6
10647else $as_nop
10648  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10649/* end confdefs.h.  */
10650
10651int
10652main (void)
10653{
10654
10655  ;
10656  return 0;
10657}
10658_ACEOF
10659if ac_fn_c_try_link "$LINENO"
10660then :
10661
10662  lt_aix_libpath_sed='
10663      /Import File Strings/,/^$/ {
10664	  /^0/ {
10665	      s/^0  *\([^ ]*\) *$/\1/
10666	      p
10667	  }
10668      }'
10669  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10670  # Check for a 64-bit object if we didn't find anything.
10671  if test -z "$lt_cv_aix_libpath_"; then
10672    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10673  fi
10674fi
10675rm -f core conftest.err conftest.$ac_objext conftest.beam \
10676    conftest$ac_exeext conftest.$ac_ext
10677  if test -z "$lt_cv_aix_libpath_"; then
10678    lt_cv_aix_libpath_=/usr/lib:/lib
10679  fi
10680
10681fi
10682
10683  aix_libpath=$lt_cv_aix_libpath_
10684fi
10685
10686        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10687        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
10688      else
10689	if test ia64 = "$host_cpu"; then
10690	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10691	  allow_undefined_flag="-z nodefs"
10692	  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"
10693	else
10694	 # Determine the default libpath from the value encoded in an
10695	 # empty executable.
10696	 if test set = "${lt_cv_aix_libpath+set}"; then
10697  aix_libpath=$lt_cv_aix_libpath
10698else
10699  if test ${lt_cv_aix_libpath_+y}
10700then :
10701  printf %s "(cached) " >&6
10702else $as_nop
10703  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10704/* end confdefs.h.  */
10705
10706int
10707main (void)
10708{
10709
10710  ;
10711  return 0;
10712}
10713_ACEOF
10714if ac_fn_c_try_link "$LINENO"
10715then :
10716
10717  lt_aix_libpath_sed='
10718      /Import File Strings/,/^$/ {
10719	  /^0/ {
10720	      s/^0  *\([^ ]*\) *$/\1/
10721	      p
10722	  }
10723      }'
10724  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10725  # Check for a 64-bit object if we didn't find anything.
10726  if test -z "$lt_cv_aix_libpath_"; then
10727    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10728  fi
10729fi
10730rm -f core conftest.err conftest.$ac_objext conftest.beam \
10731    conftest$ac_exeext conftest.$ac_ext
10732  if test -z "$lt_cv_aix_libpath_"; then
10733    lt_cv_aix_libpath_=/usr/lib:/lib
10734  fi
10735
10736fi
10737
10738  aix_libpath=$lt_cv_aix_libpath_
10739fi
10740
10741	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10742	  # Warning - without using the other run time loading flags,
10743	  # -berok will link without error, but may produce a broken library.
10744	  no_undefined_flag=' $wl-bernotok'
10745	  allow_undefined_flag=' $wl-berok'
10746	  if test yes = "$with_gnu_ld"; then
10747	    # We only use this code for GNU lds that support --whole-archive.
10748	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10749	  else
10750	    # Exported symbols can be pulled into shared objects from archives
10751	    whole_archive_flag_spec='$convenience'
10752	  fi
10753	  archive_cmds_need_lc=yes
10754	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10755	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10756	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10757	  if test svr4 != "$with_aix_soname"; then
10758	    # This is similar to how AIX traditionally builds its shared libraries.
10759	    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'
10760	  fi
10761	  if test aix != "$with_aix_soname"; then
10762	    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'
10763	  else
10764	    # used by -dlpreopen to get the symbols
10765	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10766	  fi
10767	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10768	fi
10769      fi
10770      ;;
10771
10772    amigaos*)
10773      case $host_cpu in
10774      powerpc)
10775            # see comment about AmigaOS4 .so support
10776            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10777            archive_expsym_cmds=''
10778        ;;
10779      m68k)
10780            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)'
10781            hardcode_libdir_flag_spec='-L$libdir'
10782            hardcode_minus_L=yes
10783        ;;
10784      esac
10785      ;;
10786
10787    bsdi[45]*)
10788      export_dynamic_flag_spec=-rdynamic
10789      ;;
10790
10791    cygwin* | mingw* | pw32* | cegcc*)
10792      # When not using gcc, we currently assume that we are using
10793      # Microsoft Visual C++ or Intel C++ Compiler.
10794      # hardcode_libdir_flag_spec is actually meaningless, as there is
10795      # no search path for DLLs.
10796      case $cc_basename in
10797      cl* | icl*)
10798	# Native MSVC or ICC
10799	hardcode_libdir_flag_spec=' '
10800	allow_undefined_flag=unsupported
10801	always_export_symbols=yes
10802	file_list_spec='@'
10803	# Tell ltmain to make .lib files, not .a files.
10804	libext=lib
10805	# Tell ltmain to make .dll files, not .so files.
10806	shrext_cmds=.dll
10807	# FIXME: Setting linknames here is a bad hack.
10808	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10809	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10810            cp "$export_symbols" "$output_objdir/$soname.def";
10811            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10812          else
10813            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10814          fi~
10815          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10816          linknames='
10817	# The linker will not automatically build a static lib if we build a DLL.
10818	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10819	enable_shared_with_static_runtimes=yes
10820	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10821	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10822	# Don't use ranlib
10823	old_postinstall_cmds='chmod 644 $oldlib'
10824	postlink_cmds='lt_outputfile="@OUTPUT@"~
10825          lt_tool_outputfile="@TOOL_OUTPUT@"~
10826          case $lt_outputfile in
10827            *.exe|*.EXE) ;;
10828            *)
10829              lt_outputfile=$lt_outputfile.exe
10830              lt_tool_outputfile=$lt_tool_outputfile.exe
10831              ;;
10832          esac~
10833          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10834            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10835            $RM "$lt_outputfile.manifest";
10836          fi'
10837	;;
10838      *)
10839	# Assume MSVC and ICC wrapper
10840	hardcode_libdir_flag_spec=' '
10841	allow_undefined_flag=unsupported
10842	# Tell ltmain to make .lib files, not .a files.
10843	libext=lib
10844	# Tell ltmain to make .dll files, not .so files.
10845	shrext_cmds=.dll
10846	# FIXME: Setting linknames here is a bad hack.
10847	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10848	# The linker will automatically build a .lib file if we build a DLL.
10849	old_archive_from_new_cmds='true'
10850	# FIXME: Should let the user specify the lib program.
10851	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10852	enable_shared_with_static_runtimes=yes
10853	;;
10854      esac
10855      ;;
10856
10857    darwin* | rhapsody*)
10858
10859
10860  archive_cmds_need_lc=no
10861  hardcode_direct=no
10862  hardcode_automatic=yes
10863  hardcode_shlibpath_var=unsupported
10864  if test yes = "$lt_cv_ld_force_load"; then
10865    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\"`'
10866
10867  else
10868    whole_archive_flag_spec=''
10869  fi
10870  link_all_deplibs=yes
10871  allow_undefined_flag=$_lt_dar_allow_undefined
10872  case $cc_basename in
10873     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10874     *) _lt_dar_can_shared=$GCC ;;
10875  esac
10876  if test yes = "$_lt_dar_can_shared"; then
10877    output_verbose_link_cmd=func_echo_all
10878    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10879    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10880    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"
10881    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"
10882
10883  else
10884  ld_shlibs=no
10885  fi
10886
10887      ;;
10888
10889    dgux*)
10890      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10891      hardcode_libdir_flag_spec='-L$libdir'
10892      hardcode_shlibpath_var=no
10893      ;;
10894
10895    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10896    # support.  Future versions do this automatically, but an explicit c++rt0.o
10897    # does not break anything, and helps significantly (at the cost of a little
10898    # extra space).
10899    freebsd2.2*)
10900      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10901      hardcode_libdir_flag_spec='-R$libdir'
10902      hardcode_direct=yes
10903      hardcode_shlibpath_var=no
10904      ;;
10905
10906    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10907    freebsd2.*)
10908      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10909      hardcode_direct=yes
10910      hardcode_minus_L=yes
10911      hardcode_shlibpath_var=no
10912      ;;
10913
10914    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10915    freebsd* | dragonfly* | midnightbsd*)
10916      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10917      hardcode_libdir_flag_spec='-R$libdir'
10918      hardcode_direct=yes
10919      hardcode_shlibpath_var=no
10920      ;;
10921
10922    hpux9*)
10923      if test yes = "$GCC"; then
10924	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'
10925      else
10926	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'
10927      fi
10928      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10929      hardcode_libdir_separator=:
10930      hardcode_direct=yes
10931
10932      # hardcode_minus_L: Not really in the search PATH,
10933      # but as the default location of the library.
10934      hardcode_minus_L=yes
10935      export_dynamic_flag_spec='$wl-E'
10936      ;;
10937
10938    hpux10*)
10939      if test yes,no = "$GCC,$with_gnu_ld"; then
10940	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10941      else
10942	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10943      fi
10944      if test no = "$with_gnu_ld"; then
10945	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10946	hardcode_libdir_separator=:
10947	hardcode_direct=yes
10948	hardcode_direct_absolute=yes
10949	export_dynamic_flag_spec='$wl-E'
10950	# hardcode_minus_L: Not really in the search PATH,
10951	# but as the default location of the library.
10952	hardcode_minus_L=yes
10953      fi
10954      ;;
10955
10956    hpux11*)
10957      if test yes,no = "$GCC,$with_gnu_ld"; then
10958	case $host_cpu in
10959	hppa*64*)
10960	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10961	  ;;
10962	ia64*)
10963	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10964	  ;;
10965	*)
10966	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10967	  ;;
10968	esac
10969      else
10970	case $host_cpu in
10971	hppa*64*)
10972	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10973	  ;;
10974	ia64*)
10975	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10976	  ;;
10977	*)
10978
10979	  # Older versions of the 11.00 compiler do not understand -b yet
10980	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10981	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10982printf %s "checking if $CC understands -b... " >&6; }
10983if test ${lt_cv_prog_compiler__b+y}
10984then :
10985  printf %s "(cached) " >&6
10986else $as_nop
10987  lt_cv_prog_compiler__b=no
10988   save_LDFLAGS=$LDFLAGS
10989   LDFLAGS="$LDFLAGS -b"
10990   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10991   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10992     # The linker can only warn and ignore the option if not recognized
10993     # So say no if there are warnings
10994     if test -s conftest.err; then
10995       # Append any errors to the config.log.
10996       cat conftest.err 1>&5
10997       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10998       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10999       if diff conftest.exp conftest.er2 >/dev/null; then
11000         lt_cv_prog_compiler__b=yes
11001       fi
11002     else
11003       lt_cv_prog_compiler__b=yes
11004     fi
11005   fi
11006   $RM -r conftest*
11007   LDFLAGS=$save_LDFLAGS
11008
11009fi
11010{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11011printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
11012
11013if test yes = "$lt_cv_prog_compiler__b"; then
11014    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11015else
11016    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11017fi
11018
11019	  ;;
11020	esac
11021      fi
11022      if test no = "$with_gnu_ld"; then
11023	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11024	hardcode_libdir_separator=:
11025
11026	case $host_cpu in
11027	hppa*64*|ia64*)
11028	  hardcode_direct=no
11029	  hardcode_shlibpath_var=no
11030	  ;;
11031	*)
11032	  hardcode_direct=yes
11033	  hardcode_direct_absolute=yes
11034	  export_dynamic_flag_spec='$wl-E'
11035
11036	  # hardcode_minus_L: Not really in the search PATH,
11037	  # but as the default location of the library.
11038	  hardcode_minus_L=yes
11039	  ;;
11040	esac
11041      fi
11042      ;;
11043
11044    irix5* | irix6* | nonstopux*)
11045      if test yes = "$GCC"; then
11046	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'
11047	# Try to use the -exported_symbol ld option, if it does not
11048	# work, assume that -exports_file does not work either and
11049	# implicitly export all symbols.
11050	# This should be the same for all languages, so no per-tag cache variable.
11051	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11052printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11053if test ${lt_cv_irix_exported_symbol+y}
11054then :
11055  printf %s "(cached) " >&6
11056else $as_nop
11057  save_LDFLAGS=$LDFLAGS
11058	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11059	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11060/* end confdefs.h.  */
11061int foo (void) { return 0; }
11062_ACEOF
11063if ac_fn_c_try_link "$LINENO"
11064then :
11065  lt_cv_irix_exported_symbol=yes
11066else $as_nop
11067  lt_cv_irix_exported_symbol=no
11068fi
11069rm -f core conftest.err conftest.$ac_objext conftest.beam \
11070    conftest$ac_exeext conftest.$ac_ext
11071           LDFLAGS=$save_LDFLAGS
11072fi
11073{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11074printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
11075	if test yes = "$lt_cv_irix_exported_symbol"; then
11076          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'
11077	fi
11078      else
11079	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'
11080	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'
11081      fi
11082      archive_cmds_need_lc='no'
11083      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11084      hardcode_libdir_separator=:
11085      inherit_rpath=yes
11086      link_all_deplibs=yes
11087      ;;
11088
11089    linux*)
11090      case $cc_basename in
11091      tcc*)
11092	# Fabrice Bellard et al's Tiny C Compiler
11093	ld_shlibs=yes
11094	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11095	;;
11096      esac
11097      ;;
11098
11099    netbsd*)
11100      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11101	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11102      else
11103	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11104      fi
11105      hardcode_libdir_flag_spec='-R$libdir'
11106      hardcode_direct=yes
11107      hardcode_shlibpath_var=no
11108      ;;
11109
11110    newsos6)
11111      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11112      hardcode_direct=yes
11113      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11114      hardcode_libdir_separator=:
11115      hardcode_shlibpath_var=no
11116      ;;
11117
11118    *nto* | *qnx*)
11119      ;;
11120
11121    openbsd* | bitrig*)
11122      if test -f /usr/libexec/ld.so; then
11123	hardcode_direct=yes
11124	hardcode_shlibpath_var=no
11125	hardcode_direct_absolute=yes
11126	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11127	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11128	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11129	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11130	  export_dynamic_flag_spec='$wl-E'
11131	else
11132	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11133	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11134	fi
11135      else
11136	ld_shlibs=no
11137      fi
11138      ;;
11139
11140    os2*)
11141      hardcode_libdir_flag_spec='-L$libdir'
11142      hardcode_minus_L=yes
11143      allow_undefined_flag=unsupported
11144      shrext_cmds=.dll
11145      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11146	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11147	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11148	$ECHO EXPORTS >> $output_objdir/$libname.def~
11149	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11150	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11151	emximp -o $lib $output_objdir/$libname.def'
11152      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11153	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11154	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11155	$ECHO EXPORTS >> $output_objdir/$libname.def~
11156	prefix_cmds="$SED"~
11157	if test EXPORTS = "`$SED 1q $export_symbols`"; then
11158	  prefix_cmds="$prefix_cmds -e 1d";
11159	fi~
11160	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11161	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11162	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11163	emximp -o $lib $output_objdir/$libname.def'
11164      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11165      enable_shared_with_static_runtimes=yes
11166      file_list_spec='@'
11167      ;;
11168
11169    osf3*)
11170      if test yes = "$GCC"; then
11171	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11172	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'
11173      else
11174	allow_undefined_flag=' -expect_unresolved \*'
11175	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'
11176      fi
11177      archive_cmds_need_lc='no'
11178      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11179      hardcode_libdir_separator=:
11180      ;;
11181
11182    osf4* | osf5*)	# as osf3* with the addition of -msym flag
11183      if test yes = "$GCC"; then
11184	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11185	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'
11186	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11187      else
11188	allow_undefined_flag=' -expect_unresolved \*'
11189	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'
11190	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~
11191          $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'
11192
11193	# Both c and cxx compiler support -rpath directly
11194	hardcode_libdir_flag_spec='-rpath $libdir'
11195      fi
11196      archive_cmds_need_lc='no'
11197      hardcode_libdir_separator=:
11198      ;;
11199
11200    solaris*)
11201      no_undefined_flag=' -z defs'
11202      if test yes = "$GCC"; then
11203	wlarc='$wl'
11204	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11205	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11206          $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'
11207      else
11208	case `$CC -V 2>&1` in
11209	*"Compilers 5.0"*)
11210	  wlarc=''
11211	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11212	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11213            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11214	  ;;
11215	*)
11216	  wlarc='$wl'
11217	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11218	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11219            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11220	  ;;
11221	esac
11222      fi
11223      hardcode_libdir_flag_spec='-R$libdir'
11224      hardcode_shlibpath_var=no
11225      case $host_os in
11226      solaris2.[0-5] | solaris2.[0-5].*) ;;
11227      *)
11228	# The compiler driver will combine and reorder linker options,
11229	# but understands '-z linker_flag'.  GCC discards it without '$wl',
11230	# but is careful enough not to reorder.
11231	# Supported since Solaris 2.6 (maybe 2.5.1?)
11232	if test yes = "$GCC"; then
11233	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11234	else
11235	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11236	fi
11237	;;
11238      esac
11239      link_all_deplibs=yes
11240      ;;
11241
11242    sunos4*)
11243      if test sequent = "$host_vendor"; then
11244	# Use $CC to link under sequent, because it throws in some extra .o
11245	# files that make .init and .fini sections work.
11246	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11247      else
11248	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11249      fi
11250      hardcode_libdir_flag_spec='-L$libdir'
11251      hardcode_direct=yes
11252      hardcode_minus_L=yes
11253      hardcode_shlibpath_var=no
11254      ;;
11255
11256    sysv4)
11257      case $host_vendor in
11258	sni)
11259	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11260	  hardcode_direct=yes # is this really true???
11261	;;
11262	siemens)
11263	  ## LD is ld it makes a PLAMLIB
11264	  ## CC just makes a GrossModule.
11265	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11266	  reload_cmds='$CC -r -o $output$reload_objs'
11267	  hardcode_direct=no
11268        ;;
11269	motorola)
11270	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11271	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11272	;;
11273      esac
11274      runpath_var='LD_RUN_PATH'
11275      hardcode_shlibpath_var=no
11276      ;;
11277
11278    sysv4.3*)
11279      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11280      hardcode_shlibpath_var=no
11281      export_dynamic_flag_spec='-Bexport'
11282      ;;
11283
11284    sysv4*MP*)
11285      if test -d /usr/nec; then
11286	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11287	hardcode_shlibpath_var=no
11288	runpath_var=LD_RUN_PATH
11289	hardcode_runpath_var=yes
11290	ld_shlibs=yes
11291      fi
11292      ;;
11293
11294    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11295      no_undefined_flag='$wl-z,text'
11296      archive_cmds_need_lc=no
11297      hardcode_shlibpath_var=no
11298      runpath_var='LD_RUN_PATH'
11299
11300      if test yes = "$GCC"; then
11301	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11302	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11303      else
11304	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11305	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11306      fi
11307      ;;
11308
11309    sysv5* | sco3.2v5* | sco5v6*)
11310      # Note: We CANNOT use -z defs as we might desire, because we do not
11311      # link with -lc, and that would cause any symbols used from libc to
11312      # always be unresolved, which means just about no library would
11313      # ever link correctly.  If we're not using GNU ld we use -z text
11314      # though, which does catch some bad symbols but isn't as heavy-handed
11315      # as -z defs.
11316      no_undefined_flag='$wl-z,text'
11317      allow_undefined_flag='$wl-z,nodefs'
11318      archive_cmds_need_lc=no
11319      hardcode_shlibpath_var=no
11320      hardcode_libdir_flag_spec='$wl-R,$libdir'
11321      hardcode_libdir_separator=':'
11322      link_all_deplibs=yes
11323      export_dynamic_flag_spec='$wl-Bexport'
11324      runpath_var='LD_RUN_PATH'
11325
11326      if test yes = "$GCC"; then
11327	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11328	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11329      else
11330	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11331	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11332      fi
11333      ;;
11334
11335    uts4*)
11336      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11337      hardcode_libdir_flag_spec='-L$libdir'
11338      hardcode_shlibpath_var=no
11339      ;;
11340
11341    *)
11342      ld_shlibs=no
11343      ;;
11344    esac
11345
11346    if test sni = "$host_vendor"; then
11347      case $host in
11348      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11349	export_dynamic_flag_spec='$wl-Blargedynsym'
11350	;;
11351      esac
11352    fi
11353  fi
11354
11355{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11356printf "%s\n" "$ld_shlibs" >&6; }
11357test no = "$ld_shlibs" && can_build_shared=no
11358
11359with_gnu_ld=$with_gnu_ld
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375#
11376# Do we need to explicitly link libc?
11377#
11378case "x$archive_cmds_need_lc" in
11379x|xyes)
11380  # Assume -lc should be added
11381  archive_cmds_need_lc=yes
11382
11383  if test yes,yes = "$GCC,$enable_shared"; then
11384    case $archive_cmds in
11385    *'~'*)
11386      # FIXME: we may have to deal with multi-command sequences.
11387      ;;
11388    '$CC '*)
11389      # Test whether the compiler implicitly links with -lc since on some
11390      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11391      # to ld, don't add -lc before -lgcc.
11392      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11393printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11394if test ${lt_cv_archive_cmds_need_lc+y}
11395then :
11396  printf %s "(cached) " >&6
11397else $as_nop
11398  $RM conftest*
11399	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11400
11401	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11402  (eval $ac_compile) 2>&5
11403  ac_status=$?
11404  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11405  test $ac_status = 0; } 2>conftest.err; then
11406	  soname=conftest
11407	  lib=conftest
11408	  libobjs=conftest.$ac_objext
11409	  deplibs=
11410	  wl=$lt_prog_compiler_wl
11411	  pic_flag=$lt_prog_compiler_pic
11412	  compiler_flags=-v
11413	  linker_flags=-v
11414	  verstring=
11415	  output_objdir=.
11416	  libname=conftest
11417	  lt_save_allow_undefined_flag=$allow_undefined_flag
11418	  allow_undefined_flag=
11419	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11420  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11421  ac_status=$?
11422  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11423  test $ac_status = 0; }
11424	  then
11425	    lt_cv_archive_cmds_need_lc=no
11426	  else
11427	    lt_cv_archive_cmds_need_lc=yes
11428	  fi
11429	  allow_undefined_flag=$lt_save_allow_undefined_flag
11430	else
11431	  cat conftest.err 1>&5
11432	fi
11433	$RM conftest*
11434
11435fi
11436{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11437printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11438      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11439      ;;
11440    esac
11441  fi
11442  ;;
11443esac
11444
11445
11446
11447
11448
11449
11450
11451
11452
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  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11597printf %s "checking dynamic linker characteristics... " >&6; }
11598
11599if test yes = "$GCC"; then
11600  case $host_os in
11601    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11602    *) lt_awk_arg='/^libraries:/' ;;
11603  esac
11604  case $host_os in
11605    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11606    *) lt_sed_strip_eq='s|=/|/|g' ;;
11607  esac
11608  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11609  case $lt_search_path_spec in
11610  *\;*)
11611    # if the path contains ";" then we assume it to be the separator
11612    # otherwise default to the standard path separator (i.e. ":") - it is
11613    # assumed that no part of a normal pathname contains ";" but that should
11614    # okay in the real world where ";" in dirpaths is itself problematic.
11615    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11616    ;;
11617  *)
11618    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11619    ;;
11620  esac
11621  # Ok, now we have the path, separated by spaces, we can step through it
11622  # and add multilib dir if necessary...
11623  lt_tmp_lt_search_path_spec=
11624  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11625  # ...but if some path component already ends with the multilib dir we assume
11626  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11627  case "$lt_multi_os_dir; $lt_search_path_spec " in
11628  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11629    lt_multi_os_dir=
11630    ;;
11631  esac
11632  for lt_sys_path in $lt_search_path_spec; do
11633    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11634      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11635    elif test -n "$lt_multi_os_dir"; then
11636      test -d "$lt_sys_path" && \
11637	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11638    fi
11639  done
11640  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11641BEGIN {RS = " "; FS = "/|\n";} {
11642  lt_foo = "";
11643  lt_count = 0;
11644  for (lt_i = NF; lt_i > 0; lt_i--) {
11645    if ($lt_i != "" && $lt_i != ".") {
11646      if ($lt_i == "..") {
11647        lt_count++;
11648      } else {
11649        if (lt_count == 0) {
11650          lt_foo = "/" $lt_i lt_foo;
11651        } else {
11652          lt_count--;
11653        }
11654      }
11655    }
11656  }
11657  if (lt_foo != "") { lt_freq[lt_foo]++; }
11658  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11659}'`
11660  # AWK program above erroneously prepends '/' to C:/dos/paths
11661  # for these hosts.
11662  case $host_os in
11663    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11664      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11665  esac
11666  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11667else
11668  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11669fi
11670library_names_spec=
11671libname_spec='lib$name'
11672soname_spec=
11673shrext_cmds=.so
11674postinstall_cmds=
11675postuninstall_cmds=
11676finish_cmds=
11677finish_eval=
11678shlibpath_var=
11679shlibpath_overrides_runpath=unknown
11680version_type=none
11681dynamic_linker="$host_os ld.so"
11682sys_lib_dlsearch_path_spec="/lib /usr/lib"
11683need_lib_prefix=unknown
11684hardcode_into_libs=no
11685
11686# when you set need_version to no, make sure it does not cause -set_version
11687# flags to be left without arguments
11688need_version=unknown
11689
11690
11691
11692case $host_os in
11693aix3*)
11694  version_type=linux # correct to gnu/linux during the next big refactor
11695  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11696  shlibpath_var=LIBPATH
11697
11698  # AIX 3 has no versioning support, so we append a major version to the name.
11699  soname_spec='$libname$release$shared_ext$major'
11700  ;;
11701
11702aix[4-9]*)
11703  version_type=linux # correct to gnu/linux during the next big refactor
11704  need_lib_prefix=no
11705  need_version=no
11706  hardcode_into_libs=yes
11707  if test ia64 = "$host_cpu"; then
11708    # AIX 5 supports IA64
11709    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11710    shlibpath_var=LD_LIBRARY_PATH
11711  else
11712    # With GCC up to 2.95.x, collect2 would create an import file
11713    # for dependence libraries.  The import file would start with
11714    # the line '#! .'.  This would cause the generated library to
11715    # depend on '.', always an invalid library.  This was fixed in
11716    # development snapshots of GCC prior to 3.0.
11717    case $host_os in
11718      aix4 | aix4.[01] | aix4.[01].*)
11719      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11720	   echo ' yes '
11721	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11722	:
11723      else
11724	can_build_shared=no
11725      fi
11726      ;;
11727    esac
11728    # Using Import Files as archive members, it is possible to support
11729    # filename-based versioning of shared library archives on AIX. While
11730    # this would work for both with and without runtime linking, it will
11731    # prevent static linking of such archives. So we do filename-based
11732    # shared library versioning with .so extension only, which is used
11733    # when both runtime linking and shared linking is enabled.
11734    # Unfortunately, runtime linking may impact performance, so we do
11735    # not want this to be the default eventually. Also, we use the
11736    # versioned .so libs for executables only if there is the -brtl
11737    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11738    # To allow for filename-based versioning support, we need to create
11739    # libNAME.so.V as an archive file, containing:
11740    # *) an Import File, referring to the versioned filename of the
11741    #    archive as well as the shared archive member, telling the
11742    #    bitwidth (32 or 64) of that shared object, and providing the
11743    #    list of exported symbols of that shared object, eventually
11744    #    decorated with the 'weak' keyword
11745    # *) the shared object with the F_LOADONLY flag set, to really avoid
11746    #    it being seen by the linker.
11747    # At run time we better use the real file rather than another symlink,
11748    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11749
11750    case $with_aix_soname,$aix_use_runtimelinking in
11751    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11752    # soname into executable. Probably we can add versioning support to
11753    # collect2, so additional links can be useful in future.
11754    aix,yes) # traditional libtool
11755      dynamic_linker='AIX unversionable lib.so'
11756      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11757      # instead of lib<name>.a to let people know that these are not
11758      # typical AIX shared libraries.
11759      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11760      ;;
11761    aix,no) # traditional AIX only
11762      dynamic_linker='AIX lib.a(lib.so.V)'
11763      # We preserve .a as extension for shared libraries through AIX4.2
11764      # and later when we are not doing run time linking.
11765      library_names_spec='$libname$release.a $libname.a'
11766      soname_spec='$libname$release$shared_ext$major'
11767      ;;
11768    svr4,*) # full svr4 only
11769      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11770      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11771      # We do not specify a path in Import Files, so LIBPATH fires.
11772      shlibpath_overrides_runpath=yes
11773      ;;
11774    *,yes) # both, prefer svr4
11775      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11776      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11777      # unpreferred sharedlib libNAME.a needs extra handling
11778      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"'
11779      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"'
11780      # We do not specify a path in Import Files, so LIBPATH fires.
11781      shlibpath_overrides_runpath=yes
11782      ;;
11783    *,no) # both, prefer aix
11784      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11785      library_names_spec='$libname$release.a $libname.a'
11786      soname_spec='$libname$release$shared_ext$major'
11787      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11788      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)'
11789      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"'
11790      ;;
11791    esac
11792    shlibpath_var=LIBPATH
11793  fi
11794  ;;
11795
11796amigaos*)
11797  case $host_cpu in
11798  powerpc)
11799    # Since July 2007 AmigaOS4 officially supports .so libraries.
11800    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11801    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11802    ;;
11803  m68k)
11804    library_names_spec='$libname.ixlibrary $libname.a'
11805    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11806    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'
11807    ;;
11808  esac
11809  ;;
11810
11811beos*)
11812  library_names_spec='$libname$shared_ext'
11813  dynamic_linker="$host_os ld.so"
11814  shlibpath_var=LIBRARY_PATH
11815  ;;
11816
11817bsdi[45]*)
11818  version_type=linux # correct to gnu/linux during the next big refactor
11819  need_version=no
11820  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11821  soname_spec='$libname$release$shared_ext$major'
11822  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11823  shlibpath_var=LD_LIBRARY_PATH
11824  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11825  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11826  # the default ld.so.conf also contains /usr/contrib/lib and
11827  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11828  # libtool to hard-code these into programs
11829  ;;
11830
11831cygwin* | mingw* | pw32* | cegcc*)
11832  version_type=windows
11833  shrext_cmds=.dll
11834  need_version=no
11835  need_lib_prefix=no
11836
11837  case $GCC,$cc_basename in
11838  yes,*)
11839    # gcc
11840    library_names_spec='$libname.dll.a'
11841    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11842    postinstall_cmds='base_file=`basename \$file`~
11843      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11844      dldir=$destdir/`dirname \$dlpath`~
11845      test -d \$dldir || mkdir -p \$dldir~
11846      $install_prog $dir/$dlname \$dldir/$dlname~
11847      chmod a+x \$dldir/$dlname~
11848      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11849        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11850      fi'
11851    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11852      dlpath=$dir/\$dldll~
11853       $RM \$dlpath'
11854    shlibpath_overrides_runpath=yes
11855
11856    case $host_os in
11857    cygwin*)
11858      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11859      soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11860
11861      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11862      ;;
11863    mingw* | cegcc*)
11864      # MinGW DLLs use traditional 'lib' prefix
11865      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11866      ;;
11867    pw32*)
11868      # pw32 DLLs use 'pw' prefix rather than 'lib'
11869      library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11870      ;;
11871    esac
11872    dynamic_linker='Win32 ld.exe'
11873    ;;
11874
11875  *,cl* | *,icl*)
11876    # Native MSVC or ICC
11877    libname_spec='$name'
11878    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11879    library_names_spec='$libname.dll.lib'
11880
11881    case $build_os in
11882    mingw*)
11883      sys_lib_search_path_spec=
11884      lt_save_ifs=$IFS
11885      IFS=';'
11886      for lt_path in $LIB
11887      do
11888        IFS=$lt_save_ifs
11889        # Let DOS variable expansion print the short 8.3 style file name.
11890        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11891        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11892      done
11893      IFS=$lt_save_ifs
11894      # Convert to MSYS style.
11895      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11896      ;;
11897    cygwin*)
11898      # Convert to unix form, then to dos form, then back to unix form
11899      # but this time dos style (no spaces!) so that the unix form looks
11900      # like /cygdrive/c/PROGRA~1:/cygdr...
11901      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11902      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11903      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11904      ;;
11905    *)
11906      sys_lib_search_path_spec=$LIB
11907      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11908        # It is most probably a Windows format PATH.
11909        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11910      else
11911        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11912      fi
11913      # FIXME: find the short name or the path components, as spaces are
11914      # common. (e.g. "Program Files" -> "PROGRA~1")
11915      ;;
11916    esac
11917
11918    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11919    postinstall_cmds='base_file=`basename \$file`~
11920      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11921      dldir=$destdir/`dirname \$dlpath`~
11922      test -d \$dldir || mkdir -p \$dldir~
11923      $install_prog $dir/$dlname \$dldir/$dlname'
11924    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11925      dlpath=$dir/\$dldll~
11926       $RM \$dlpath'
11927    shlibpath_overrides_runpath=yes
11928    dynamic_linker='Win32 link.exe'
11929    ;;
11930
11931  *)
11932    # Assume MSVC and ICC wrapper
11933    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11934    dynamic_linker='Win32 ld.exe'
11935    ;;
11936  esac
11937  # FIXME: first we should search . and the directory the executable is in
11938  shlibpath_var=PATH
11939  ;;
11940
11941darwin* | rhapsody*)
11942  dynamic_linker="$host_os dyld"
11943  version_type=darwin
11944  need_lib_prefix=no
11945  need_version=no
11946  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11947  soname_spec='$libname$release$major$shared_ext'
11948  shlibpath_overrides_runpath=yes
11949  shlibpath_var=DYLD_LIBRARY_PATH
11950  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11951
11952  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11953  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11954  ;;
11955
11956dgux*)
11957  version_type=linux # correct to gnu/linux during the next big refactor
11958  need_lib_prefix=no
11959  need_version=no
11960  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11961  soname_spec='$libname$release$shared_ext$major'
11962  shlibpath_var=LD_LIBRARY_PATH
11963  ;;
11964
11965freebsd* | dragonfly* | midnightbsd*)
11966  # DragonFly does not have aout.  When/if they implement a new
11967  # versioning mechanism, adjust this.
11968  if test -x /usr/bin/objformat; then
11969    objformat=`/usr/bin/objformat`
11970  else
11971    case $host_os in
11972    freebsd[23].*) objformat=aout ;;
11973    *) objformat=elf ;;
11974    esac
11975  fi
11976  version_type=freebsd-$objformat
11977  case $version_type in
11978    freebsd-elf*)
11979      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11980      soname_spec='$libname$release$shared_ext$major'
11981      need_version=no
11982      need_lib_prefix=no
11983      ;;
11984    freebsd-*)
11985      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11986      need_version=yes
11987      ;;
11988  esac
11989  shlibpath_var=LD_LIBRARY_PATH
11990  case $host_os in
11991  freebsd2.*)
11992    shlibpath_overrides_runpath=yes
11993    ;;
11994  freebsd3.[01]* | freebsdelf3.[01]*)
11995    shlibpath_overrides_runpath=yes
11996    hardcode_into_libs=yes
11997    ;;
11998  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11999  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12000    shlibpath_overrides_runpath=no
12001    hardcode_into_libs=yes
12002    ;;
12003  *) # from 4.6 on, and DragonFly
12004    shlibpath_overrides_runpath=yes
12005    hardcode_into_libs=yes
12006    ;;
12007  esac
12008  ;;
12009
12010haiku*)
12011  version_type=linux # correct to gnu/linux during the next big refactor
12012  need_lib_prefix=no
12013  need_version=no
12014  dynamic_linker="$host_os runtime_loader"
12015  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12016  soname_spec='$libname$release$shared_ext$major'
12017  shlibpath_var=LIBRARY_PATH
12018  shlibpath_overrides_runpath=no
12019  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12020  hardcode_into_libs=yes
12021  ;;
12022
12023hpux9* | hpux10* | hpux11*)
12024  # Give a soname corresponding to the major version so that dld.sl refuses to
12025  # link against other versions.
12026  version_type=sunos
12027  need_lib_prefix=no
12028  need_version=no
12029  case $host_cpu in
12030  ia64*)
12031    shrext_cmds='.so'
12032    hardcode_into_libs=yes
12033    dynamic_linker="$host_os dld.so"
12034    shlibpath_var=LD_LIBRARY_PATH
12035    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12036    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12037    soname_spec='$libname$release$shared_ext$major'
12038    if test 32 = "$HPUX_IA64_MODE"; then
12039      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12040      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12041    else
12042      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12043      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12044    fi
12045    ;;
12046  hppa*64*)
12047    shrext_cmds='.sl'
12048    hardcode_into_libs=yes
12049    dynamic_linker="$host_os dld.sl"
12050    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12051    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12052    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12053    soname_spec='$libname$release$shared_ext$major'
12054    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12055    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12056    ;;
12057  *)
12058    shrext_cmds='.sl'
12059    dynamic_linker="$host_os dld.sl"
12060    shlibpath_var=SHLIB_PATH
12061    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12062    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12063    soname_spec='$libname$release$shared_ext$major'
12064    ;;
12065  esac
12066  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12067  postinstall_cmds='chmod 555 $lib'
12068  # or fails outright, so override atomically:
12069  install_override_mode=555
12070  ;;
12071
12072interix[3-9]*)
12073  version_type=linux # correct to gnu/linux during the next big refactor
12074  need_lib_prefix=no
12075  need_version=no
12076  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12077  soname_spec='$libname$release$shared_ext$major'
12078  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12079  shlibpath_var=LD_LIBRARY_PATH
12080  shlibpath_overrides_runpath=no
12081  hardcode_into_libs=yes
12082  ;;
12083
12084irix5* | irix6* | nonstopux*)
12085  case $host_os in
12086    nonstopux*) version_type=nonstopux ;;
12087    *)
12088	if test yes = "$lt_cv_prog_gnu_ld"; then
12089		version_type=linux # correct to gnu/linux during the next big refactor
12090	else
12091		version_type=irix
12092	fi ;;
12093  esac
12094  need_lib_prefix=no
12095  need_version=no
12096  soname_spec='$libname$release$shared_ext$major'
12097  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12098  case $host_os in
12099  irix5* | nonstopux*)
12100    libsuff= shlibsuff=
12101    ;;
12102  *)
12103    case $LD in # libtool.m4 will add one of these switches to LD
12104    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12105      libsuff= shlibsuff= libmagic=32-bit;;
12106    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12107      libsuff=32 shlibsuff=N32 libmagic=N32;;
12108    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12109      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12110    *) libsuff= shlibsuff= libmagic=never-match;;
12111    esac
12112    ;;
12113  esac
12114  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12115  shlibpath_overrides_runpath=no
12116  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12117  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12118  hardcode_into_libs=yes
12119  ;;
12120
12121# No shared lib support for Linux oldld, aout, or coff.
12122linux*oldld* | linux*aout* | linux*coff*)
12123  dynamic_linker=no
12124  ;;
12125
12126linux*android*)
12127  version_type=none # Android doesn't support versioned libraries.
12128  need_lib_prefix=no
12129  need_version=no
12130  library_names_spec='$libname$release$shared_ext'
12131  soname_spec='$libname$release$shared_ext'
12132  finish_cmds=
12133  shlibpath_var=LD_LIBRARY_PATH
12134  shlibpath_overrides_runpath=yes
12135
12136  # This implies no fast_install, which is unacceptable.
12137  # Some rework will be needed to allow for fast_install
12138  # before this can be enabled.
12139  hardcode_into_libs=yes
12140
12141  dynamic_linker='Android linker'
12142  # Don't embed -rpath directories since the linker doesn't support them.
12143  hardcode_libdir_flag_spec='-L$libdir'
12144  ;;
12145
12146# This must be glibc/ELF.
12147linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12148  version_type=linux # correct to gnu/linux during the next big refactor
12149  need_lib_prefix=no
12150  need_version=no
12151  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12152  soname_spec='$libname$release$shared_ext$major'
12153  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12154  shlibpath_var=LD_LIBRARY_PATH
12155  shlibpath_overrides_runpath=no
12156
12157  # Some binutils ld are patched to set DT_RUNPATH
12158  if test ${lt_cv_shlibpath_overrides_runpath+y}
12159then :
12160  printf %s "(cached) " >&6
12161else $as_nop
12162  lt_cv_shlibpath_overrides_runpath=no
12163    save_LDFLAGS=$LDFLAGS
12164    save_libdir=$libdir
12165    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12166	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12167    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12168/* end confdefs.h.  */
12169
12170int
12171main (void)
12172{
12173
12174  ;
12175  return 0;
12176}
12177_ACEOF
12178if ac_fn_c_try_link "$LINENO"
12179then :
12180  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12181then :
12182  lt_cv_shlibpath_overrides_runpath=yes
12183fi
12184fi
12185rm -f core conftest.err conftest.$ac_objext conftest.beam \
12186    conftest$ac_exeext conftest.$ac_ext
12187    LDFLAGS=$save_LDFLAGS
12188    libdir=$save_libdir
12189
12190fi
12191
12192  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12193
12194  # This implies no fast_install, which is unacceptable.
12195  # Some rework will be needed to allow for fast_install
12196  # before this can be enabled.
12197  hardcode_into_libs=yes
12198
12199  # Ideally, we could use ldconfig to report *all* directores which are
12200  # searched for libraries, however this is still not possible.  Aside from not
12201  # being certain /sbin/ldconfig is available, command
12202  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12203  # even though it is searched at run-time.  Try to do the best guess by
12204  # appending ld.so.conf contents (and includes) to the search path.
12205  if test -f /etc/ld.so.conf; then
12206    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' ' '`
12207    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12208  fi
12209
12210  # We used to test for /lib/ld.so.1 and disable shared libraries on
12211  # powerpc, because MkLinux only supported shared libraries with the
12212  # GNU dynamic linker.  Since this was broken with cross compilers,
12213  # most powerpc-linux boxes support dynamic linking these days and
12214  # people can always --disable-shared, the test was removed, and we
12215  # assume the GNU/Linux dynamic linker is in use.
12216  dynamic_linker='GNU/Linux ld.so'
12217  ;;
12218
12219netbsd*)
12220  version_type=sunos
12221  need_lib_prefix=no
12222  need_version=no
12223  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12224    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12225    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12226    dynamic_linker='NetBSD (a.out) ld.so'
12227  else
12228    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12229    soname_spec='$libname$release$shared_ext$major'
12230    dynamic_linker='NetBSD ld.elf_so'
12231  fi
12232  shlibpath_var=LD_LIBRARY_PATH
12233  shlibpath_overrides_runpath=yes
12234  hardcode_into_libs=yes
12235  ;;
12236
12237newsos6)
12238  version_type=linux # correct to gnu/linux during the next big refactor
12239  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12240  shlibpath_var=LD_LIBRARY_PATH
12241  shlibpath_overrides_runpath=yes
12242  ;;
12243
12244*nto* | *qnx*)
12245  version_type=qnx
12246  need_lib_prefix=no
12247  need_version=no
12248  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12249  soname_spec='$libname$release$shared_ext$major'
12250  shlibpath_var=LD_LIBRARY_PATH
12251  shlibpath_overrides_runpath=no
12252  hardcode_into_libs=yes
12253  dynamic_linker='ldqnx.so'
12254  ;;
12255
12256openbsd* | bitrig*)
12257  version_type=sunos
12258  sys_lib_dlsearch_path_spec=/usr/lib
12259  need_lib_prefix=no
12260  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12261    need_version=no
12262  else
12263    need_version=yes
12264  fi
12265  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12266  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12267  shlibpath_var=LD_LIBRARY_PATH
12268  shlibpath_overrides_runpath=yes
12269  ;;
12270
12271os2*)
12272  libname_spec='$name'
12273  version_type=windows
12274  shrext_cmds=.dll
12275  need_version=no
12276  need_lib_prefix=no
12277  # OS/2 can only load a DLL with a base name of 8 characters or less.
12278  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12279    v=$($ECHO $release$versuffix | tr -d .-);
12280    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12281    $ECHO $n$v`$shared_ext'
12282  library_names_spec='${libname}_dll.$libext'
12283  dynamic_linker='OS/2 ld.exe'
12284  shlibpath_var=BEGINLIBPATH
12285  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12286  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12287  postinstall_cmds='base_file=`basename \$file`~
12288    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12289    dldir=$destdir/`dirname \$dlpath`~
12290    test -d \$dldir || mkdir -p \$dldir~
12291    $install_prog $dir/$dlname \$dldir/$dlname~
12292    chmod a+x \$dldir/$dlname~
12293    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12294      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12295    fi'
12296  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12297    dlpath=$dir/\$dldll~
12298    $RM \$dlpath'
12299  ;;
12300
12301osf3* | osf4* | osf5*)
12302  version_type=osf
12303  need_lib_prefix=no
12304  need_version=no
12305  soname_spec='$libname$release$shared_ext$major'
12306  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12307  shlibpath_var=LD_LIBRARY_PATH
12308  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12309  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12310  ;;
12311
12312rdos*)
12313  dynamic_linker=no
12314  ;;
12315
12316solaris*)
12317  version_type=linux # correct to gnu/linux during the next big refactor
12318  need_lib_prefix=no
12319  need_version=no
12320  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12321  soname_spec='$libname$release$shared_ext$major'
12322  shlibpath_var=LD_LIBRARY_PATH
12323  shlibpath_overrides_runpath=yes
12324  hardcode_into_libs=yes
12325  # ldd complains unless libraries are executable
12326  postinstall_cmds='chmod +x $lib'
12327  ;;
12328
12329sunos4*)
12330  version_type=sunos
12331  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12332  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12333  shlibpath_var=LD_LIBRARY_PATH
12334  shlibpath_overrides_runpath=yes
12335  if test yes = "$with_gnu_ld"; then
12336    need_lib_prefix=no
12337  fi
12338  need_version=yes
12339  ;;
12340
12341sysv4 | sysv4.3*)
12342  version_type=linux # correct to gnu/linux during the next big refactor
12343  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12344  soname_spec='$libname$release$shared_ext$major'
12345  shlibpath_var=LD_LIBRARY_PATH
12346  case $host_vendor in
12347    sni)
12348      shlibpath_overrides_runpath=no
12349      need_lib_prefix=no
12350      runpath_var=LD_RUN_PATH
12351      ;;
12352    siemens)
12353      need_lib_prefix=no
12354      ;;
12355    motorola)
12356      need_lib_prefix=no
12357      need_version=no
12358      shlibpath_overrides_runpath=no
12359      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12360      ;;
12361  esac
12362  ;;
12363
12364sysv4*MP*)
12365  if test -d /usr/nec; then
12366    version_type=linux # correct to gnu/linux during the next big refactor
12367    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12368    soname_spec='$libname$shared_ext.$major'
12369    shlibpath_var=LD_LIBRARY_PATH
12370  fi
12371  ;;
12372
12373sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12374  version_type=sco
12375  need_lib_prefix=no
12376  need_version=no
12377  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12378  soname_spec='$libname$release$shared_ext$major'
12379  shlibpath_var=LD_LIBRARY_PATH
12380  shlibpath_overrides_runpath=yes
12381  hardcode_into_libs=yes
12382  if test yes = "$with_gnu_ld"; then
12383    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12384  else
12385    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12386    case $host_os in
12387      sco3.2v5*)
12388        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12389	;;
12390    esac
12391  fi
12392  sys_lib_dlsearch_path_spec='/usr/lib'
12393  ;;
12394
12395tpf*)
12396  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12397  version_type=linux # correct to gnu/linux during the next big refactor
12398  need_lib_prefix=no
12399  need_version=no
12400  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12401  shlibpath_var=LD_LIBRARY_PATH
12402  shlibpath_overrides_runpath=no
12403  hardcode_into_libs=yes
12404  ;;
12405
12406uts4*)
12407  version_type=linux # correct to gnu/linux during the next big refactor
12408  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12409  soname_spec='$libname$release$shared_ext$major'
12410  shlibpath_var=LD_LIBRARY_PATH
12411  ;;
12412
12413*)
12414  dynamic_linker=no
12415  ;;
12416esac
12417{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12418printf "%s\n" "$dynamic_linker" >&6; }
12419test no = "$dynamic_linker" && can_build_shared=no
12420
12421variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12422if test yes = "$GCC"; then
12423  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12424fi
12425
12426if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12427  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12428fi
12429
12430if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12431  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12432fi
12433
12434# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12435configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12436
12437# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12438func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12439
12440# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12441configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12442
12443
12444
12445
12446
12447
12448
12449
12450
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  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12540printf %s "checking how to hardcode library paths into programs... " >&6; }
12541hardcode_action=
12542if test -n "$hardcode_libdir_flag_spec" ||
12543   test -n "$runpath_var" ||
12544   test yes = "$hardcode_automatic"; then
12545
12546  # We can hardcode non-existent directories.
12547  if test no != "$hardcode_direct" &&
12548     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12549     # have to relink, otherwise we might link with an installed library
12550     # when we should be linking with a yet-to-be-installed one
12551     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12552     test no != "$hardcode_minus_L"; then
12553    # Linking always hardcodes the temporary library directory.
12554    hardcode_action=relink
12555  else
12556    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12557    hardcode_action=immediate
12558  fi
12559else
12560  # We cannot hardcode anything, or else we can only hardcode existing
12561  # directories.
12562  hardcode_action=unsupported
12563fi
12564{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12565printf "%s\n" "$hardcode_action" >&6; }
12566
12567if test relink = "$hardcode_action" ||
12568   test yes = "$inherit_rpath"; then
12569  # Fast installation is not supported
12570  enable_fast_install=no
12571elif test yes = "$shlibpath_overrides_runpath" ||
12572     test no = "$enable_shared"; then
12573  # Fast installation is not necessary
12574  enable_fast_install=needless
12575fi
12576
12577
12578
12579
12580
12581
12582  if test yes != "$enable_dlopen"; then
12583  enable_dlopen=unknown
12584  enable_dlopen_self=unknown
12585  enable_dlopen_self_static=unknown
12586else
12587  lt_cv_dlopen=no
12588  lt_cv_dlopen_libs=
12589
12590  case $host_os in
12591  beos*)
12592    lt_cv_dlopen=load_add_on
12593    lt_cv_dlopen_libs=
12594    lt_cv_dlopen_self=yes
12595    ;;
12596
12597  mingw* | pw32* | cegcc*)
12598    lt_cv_dlopen=LoadLibrary
12599    lt_cv_dlopen_libs=
12600    ;;
12601
12602  cygwin*)
12603    lt_cv_dlopen=dlopen
12604    lt_cv_dlopen_libs=
12605    ;;
12606
12607  darwin*)
12608    # if libdl is installed we need to link against it
12609    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12610printf %s "checking for dlopen in -ldl... " >&6; }
12611if test ${ac_cv_lib_dl_dlopen+y}
12612then :
12613  printf %s "(cached) " >&6
12614else $as_nop
12615  ac_check_lib_save_LIBS=$LIBS
12616LIBS="-ldl  $LIBS"
12617cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12618/* end confdefs.h.  */
12619
12620/* Override any GCC internal prototype to avoid an error.
12621   Use char because int might match the return type of a GCC
12622   builtin and then its argument prototype would still apply.  */
12623char dlopen ();
12624int
12625main (void)
12626{
12627return dlopen ();
12628  ;
12629  return 0;
12630}
12631_ACEOF
12632if ac_fn_c_try_link "$LINENO"
12633then :
12634  ac_cv_lib_dl_dlopen=yes
12635else $as_nop
12636  ac_cv_lib_dl_dlopen=no
12637fi
12638rm -f core conftest.err conftest.$ac_objext conftest.beam \
12639    conftest$ac_exeext conftest.$ac_ext
12640LIBS=$ac_check_lib_save_LIBS
12641fi
12642{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12643printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12644if test "x$ac_cv_lib_dl_dlopen" = xyes
12645then :
12646  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12647else $as_nop
12648
12649    lt_cv_dlopen=dyld
12650    lt_cv_dlopen_libs=
12651    lt_cv_dlopen_self=yes
12652
12653fi
12654
12655    ;;
12656
12657  tpf*)
12658    # Don't try to run any link tests for TPF.  We know it's impossible
12659    # because TPF is a cross-compiler, and we know how we open DSOs.
12660    lt_cv_dlopen=dlopen
12661    lt_cv_dlopen_libs=
12662    lt_cv_dlopen_self=no
12663    ;;
12664
12665  *)
12666    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12667if test "x$ac_cv_func_shl_load" = xyes
12668then :
12669  lt_cv_dlopen=shl_load
12670else $as_nop
12671  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12672printf %s "checking for shl_load in -ldld... " >&6; }
12673if test ${ac_cv_lib_dld_shl_load+y}
12674then :
12675  printf %s "(cached) " >&6
12676else $as_nop
12677  ac_check_lib_save_LIBS=$LIBS
12678LIBS="-ldld  $LIBS"
12679cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12680/* end confdefs.h.  */
12681
12682/* Override any GCC internal prototype to avoid an error.
12683   Use char because int might match the return type of a GCC
12684   builtin and then its argument prototype would still apply.  */
12685char shl_load ();
12686int
12687main (void)
12688{
12689return shl_load ();
12690  ;
12691  return 0;
12692}
12693_ACEOF
12694if ac_fn_c_try_link "$LINENO"
12695then :
12696  ac_cv_lib_dld_shl_load=yes
12697else $as_nop
12698  ac_cv_lib_dld_shl_load=no
12699fi
12700rm -f core conftest.err conftest.$ac_objext conftest.beam \
12701    conftest$ac_exeext conftest.$ac_ext
12702LIBS=$ac_check_lib_save_LIBS
12703fi
12704{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12705printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12706if test "x$ac_cv_lib_dld_shl_load" = xyes
12707then :
12708  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12709else $as_nop
12710  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12711if test "x$ac_cv_func_dlopen" = xyes
12712then :
12713  lt_cv_dlopen=dlopen
12714else $as_nop
12715  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12716printf %s "checking for dlopen in -ldl... " >&6; }
12717if test ${ac_cv_lib_dl_dlopen+y}
12718then :
12719  printf %s "(cached) " >&6
12720else $as_nop
12721  ac_check_lib_save_LIBS=$LIBS
12722LIBS="-ldl  $LIBS"
12723cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12724/* end confdefs.h.  */
12725
12726/* Override any GCC internal prototype to avoid an error.
12727   Use char because int might match the return type of a GCC
12728   builtin and then its argument prototype would still apply.  */
12729char dlopen ();
12730int
12731main (void)
12732{
12733return dlopen ();
12734  ;
12735  return 0;
12736}
12737_ACEOF
12738if ac_fn_c_try_link "$LINENO"
12739then :
12740  ac_cv_lib_dl_dlopen=yes
12741else $as_nop
12742  ac_cv_lib_dl_dlopen=no
12743fi
12744rm -f core conftest.err conftest.$ac_objext conftest.beam \
12745    conftest$ac_exeext conftest.$ac_ext
12746LIBS=$ac_check_lib_save_LIBS
12747fi
12748{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12749printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12750if test "x$ac_cv_lib_dl_dlopen" = xyes
12751then :
12752  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12753else $as_nop
12754  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12755printf %s "checking for dlopen in -lsvld... " >&6; }
12756if test ${ac_cv_lib_svld_dlopen+y}
12757then :
12758  printf %s "(cached) " >&6
12759else $as_nop
12760  ac_check_lib_save_LIBS=$LIBS
12761LIBS="-lsvld  $LIBS"
12762cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12763/* end confdefs.h.  */
12764
12765/* Override any GCC internal prototype to avoid an error.
12766   Use char because int might match the return type of a GCC
12767   builtin and then its argument prototype would still apply.  */
12768char dlopen ();
12769int
12770main (void)
12771{
12772return dlopen ();
12773  ;
12774  return 0;
12775}
12776_ACEOF
12777if ac_fn_c_try_link "$LINENO"
12778then :
12779  ac_cv_lib_svld_dlopen=yes
12780else $as_nop
12781  ac_cv_lib_svld_dlopen=no
12782fi
12783rm -f core conftest.err conftest.$ac_objext conftest.beam \
12784    conftest$ac_exeext conftest.$ac_ext
12785LIBS=$ac_check_lib_save_LIBS
12786fi
12787{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12788printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12789if test "x$ac_cv_lib_svld_dlopen" = xyes
12790then :
12791  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12792else $as_nop
12793  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12794printf %s "checking for dld_link in -ldld... " >&6; }
12795if test ${ac_cv_lib_dld_dld_link+y}
12796then :
12797  printf %s "(cached) " >&6
12798else $as_nop
12799  ac_check_lib_save_LIBS=$LIBS
12800LIBS="-ldld  $LIBS"
12801cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12802/* end confdefs.h.  */
12803
12804/* Override any GCC internal prototype to avoid an error.
12805   Use char because int might match the return type of a GCC
12806   builtin and then its argument prototype would still apply.  */
12807char dld_link ();
12808int
12809main (void)
12810{
12811return dld_link ();
12812  ;
12813  return 0;
12814}
12815_ACEOF
12816if ac_fn_c_try_link "$LINENO"
12817then :
12818  ac_cv_lib_dld_dld_link=yes
12819else $as_nop
12820  ac_cv_lib_dld_dld_link=no
12821fi
12822rm -f core conftest.err conftest.$ac_objext conftest.beam \
12823    conftest$ac_exeext conftest.$ac_ext
12824LIBS=$ac_check_lib_save_LIBS
12825fi
12826{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12827printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12828if test "x$ac_cv_lib_dld_dld_link" = xyes
12829then :
12830  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12831fi
12832
12833
12834fi
12835
12836
12837fi
12838
12839
12840fi
12841
12842
12843fi
12844
12845
12846fi
12847
12848    ;;
12849  esac
12850
12851  if test no = "$lt_cv_dlopen"; then
12852    enable_dlopen=no
12853  else
12854    enable_dlopen=yes
12855  fi
12856
12857  case $lt_cv_dlopen in
12858  dlopen)
12859    save_CPPFLAGS=$CPPFLAGS
12860    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12861
12862    save_LDFLAGS=$LDFLAGS
12863    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12864
12865    save_LIBS=$LIBS
12866    LIBS="$lt_cv_dlopen_libs $LIBS"
12867
12868    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12869printf %s "checking whether a program can dlopen itself... " >&6; }
12870if test ${lt_cv_dlopen_self+y}
12871then :
12872  printf %s "(cached) " >&6
12873else $as_nop
12874  	  if test yes = "$cross_compiling"; then :
12875  lt_cv_dlopen_self=cross
12876else
12877  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12878  lt_status=$lt_dlunknown
12879  cat > conftest.$ac_ext <<_LT_EOF
12880#line $LINENO "configure"
12881#include "confdefs.h"
12882
12883#if HAVE_DLFCN_H
12884#include <dlfcn.h>
12885#endif
12886
12887#include <stdio.h>
12888
12889#ifdef RTLD_GLOBAL
12890#  define LT_DLGLOBAL		RTLD_GLOBAL
12891#else
12892#  ifdef DL_GLOBAL
12893#    define LT_DLGLOBAL		DL_GLOBAL
12894#  else
12895#    define LT_DLGLOBAL		0
12896#  endif
12897#endif
12898
12899/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12900   find out it does not work in some platform. */
12901#ifndef LT_DLLAZY_OR_NOW
12902#  ifdef RTLD_LAZY
12903#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12904#  else
12905#    ifdef DL_LAZY
12906#      define LT_DLLAZY_OR_NOW		DL_LAZY
12907#    else
12908#      ifdef RTLD_NOW
12909#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12910#      else
12911#        ifdef DL_NOW
12912#          define LT_DLLAZY_OR_NOW	DL_NOW
12913#        else
12914#          define LT_DLLAZY_OR_NOW	0
12915#        endif
12916#      endif
12917#    endif
12918#  endif
12919#endif
12920
12921/* When -fvisibility=hidden is used, assume the code has been annotated
12922   correspondingly for the symbols needed.  */
12923#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12924int fnord () __attribute__((visibility("default")));
12925#endif
12926
12927int fnord () { return 42; }
12928int main ()
12929{
12930  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12931  int status = $lt_dlunknown;
12932
12933  if (self)
12934    {
12935      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12936      else
12937        {
12938	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12939          else puts (dlerror ());
12940	}
12941      /* dlclose (self); */
12942    }
12943  else
12944    puts (dlerror ());
12945
12946  return status;
12947}
12948_LT_EOF
12949  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12950  (eval $ac_link) 2>&5
12951  ac_status=$?
12952  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12953  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12954    (./conftest; exit; ) >&5 2>/dev/null
12955    lt_status=$?
12956    case x$lt_status in
12957      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12958      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12959      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12960    esac
12961  else :
12962    # compilation failed
12963    lt_cv_dlopen_self=no
12964  fi
12965fi
12966rm -fr conftest*
12967
12968
12969fi
12970{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12971printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12972
12973    if test yes = "$lt_cv_dlopen_self"; then
12974      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12975      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12976printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12977if test ${lt_cv_dlopen_self_static+y}
12978then :
12979  printf %s "(cached) " >&6
12980else $as_nop
12981  	  if test yes = "$cross_compiling"; then :
12982  lt_cv_dlopen_self_static=cross
12983else
12984  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12985  lt_status=$lt_dlunknown
12986  cat > conftest.$ac_ext <<_LT_EOF
12987#line $LINENO "configure"
12988#include "confdefs.h"
12989
12990#if HAVE_DLFCN_H
12991#include <dlfcn.h>
12992#endif
12993
12994#include <stdio.h>
12995
12996#ifdef RTLD_GLOBAL
12997#  define LT_DLGLOBAL		RTLD_GLOBAL
12998#else
12999#  ifdef DL_GLOBAL
13000#    define LT_DLGLOBAL		DL_GLOBAL
13001#  else
13002#    define LT_DLGLOBAL		0
13003#  endif
13004#endif
13005
13006/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13007   find out it does not work in some platform. */
13008#ifndef LT_DLLAZY_OR_NOW
13009#  ifdef RTLD_LAZY
13010#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13011#  else
13012#    ifdef DL_LAZY
13013#      define LT_DLLAZY_OR_NOW		DL_LAZY
13014#    else
13015#      ifdef RTLD_NOW
13016#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13017#      else
13018#        ifdef DL_NOW
13019#          define LT_DLLAZY_OR_NOW	DL_NOW
13020#        else
13021#          define LT_DLLAZY_OR_NOW	0
13022#        endif
13023#      endif
13024#    endif
13025#  endif
13026#endif
13027
13028/* When -fvisibility=hidden is used, assume the code has been annotated
13029   correspondingly for the symbols needed.  */
13030#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13031int fnord () __attribute__((visibility("default")));
13032#endif
13033
13034int fnord () { return 42; }
13035int main ()
13036{
13037  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13038  int status = $lt_dlunknown;
13039
13040  if (self)
13041    {
13042      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13043      else
13044        {
13045	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13046          else puts (dlerror ());
13047	}
13048      /* dlclose (self); */
13049    }
13050  else
13051    puts (dlerror ());
13052
13053  return status;
13054}
13055_LT_EOF
13056  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13057  (eval $ac_link) 2>&5
13058  ac_status=$?
13059  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13060  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13061    (./conftest; exit; ) >&5 2>/dev/null
13062    lt_status=$?
13063    case x$lt_status in
13064      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13065      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13066      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13067    esac
13068  else :
13069    # compilation failed
13070    lt_cv_dlopen_self_static=no
13071  fi
13072fi
13073rm -fr conftest*
13074
13075
13076fi
13077{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13078printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
13079    fi
13080
13081    CPPFLAGS=$save_CPPFLAGS
13082    LDFLAGS=$save_LDFLAGS
13083    LIBS=$save_LIBS
13084    ;;
13085  esac
13086
13087  case $lt_cv_dlopen_self in
13088  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13089  *) enable_dlopen_self=unknown ;;
13090  esac
13091
13092  case $lt_cv_dlopen_self_static in
13093  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13094  *) enable_dlopen_self_static=unknown ;;
13095  esac
13096fi
13097
13098
13099
13100
13101
13102
13103
13104
13105
13106
13107
13108
13109
13110
13111
13112
13113
13114striplib=
13115old_striplib=
13116{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13117printf %s "checking whether stripping libraries is possible... " >&6; }
13118if test -z "$STRIP"; then
13119  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13120printf "%s\n" "no" >&6; }
13121else
13122  if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13123    old_striplib="$STRIP --strip-debug"
13124    striplib="$STRIP --strip-unneeded"
13125    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13126printf "%s\n" "yes" >&6; }
13127  else
13128    case $host_os in
13129    darwin*)
13130      # FIXME - insert some real tests, host_os isn't really good enough
13131      striplib="$STRIP -x"
13132      old_striplib="$STRIP -S"
13133      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13134printf "%s\n" "yes" >&6; }
13135      ;;
13136    freebsd*)
13137      if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
13138        old_striplib="$STRIP --strip-debug"
13139        striplib="$STRIP --strip-unneeded"
13140        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13141printf "%s\n" "yes" >&6; }
13142      else
13143        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13144printf "%s\n" "no" >&6; }
13145      fi
13146      ;;
13147    *)
13148      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13149printf "%s\n" "no" >&6; }
13150      ;;
13151    esac
13152  fi
13153fi
13154
13155
13156
13157
13158
13159
13160
13161
13162
13163
13164
13165
13166  # Report what library types will actually be built
13167  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13168printf %s "checking if libtool supports shared libraries... " >&6; }
13169  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13170printf "%s\n" "$can_build_shared" >&6; }
13171
13172  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13173printf %s "checking whether to build shared libraries... " >&6; }
13174  test no = "$can_build_shared" && enable_shared=no
13175
13176  # On AIX, shared libraries and static libraries use the same namespace, and
13177  # are all built from PIC.
13178  case $host_os in
13179  aix3*)
13180    test yes = "$enable_shared" && enable_static=no
13181    if test -n "$RANLIB"; then
13182      archive_cmds="$archive_cmds~\$RANLIB \$lib"
13183      postinstall_cmds='$RANLIB $lib'
13184    fi
13185    ;;
13186
13187  aix[4-9]*)
13188    if test ia64 != "$host_cpu"; then
13189      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13190      yes,aix,yes) ;;			# shared object as lib.so file only
13191      yes,svr4,*) ;;			# shared object as lib.so archive member only
13192      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
13193      esac
13194    fi
13195    ;;
13196  esac
13197  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13198printf "%s\n" "$enable_shared" >&6; }
13199
13200  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13201printf %s "checking whether to build static libraries... " >&6; }
13202  # Make sure either enable_shared or enable_static is yes.
13203  test yes = "$enable_shared" || enable_static=yes
13204  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13205printf "%s\n" "$enable_static" >&6; }
13206
13207
13208
13209
13210fi
13211ac_ext=c
13212ac_cpp='$CPP $CPPFLAGS'
13213ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13214ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13215ac_compiler_gnu=$ac_cv_c_compiler_gnu
13216
13217CC=$lt_save_CC
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233        ac_config_commands="$ac_config_commands libtool"
13234
13235
13236
13237
13238# Only expand once:
13239
13240
13241
13242# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
13243
13244
13245
13246
13247
13248
13249
13250
13251
13252
13253
13254
13255{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
13256printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
13257if test ${ac_cv_c_undeclared_builtin_options+y}
13258then :
13259  printf %s "(cached) " >&6
13260else $as_nop
13261  ac_save_CFLAGS=$CFLAGS
13262   ac_cv_c_undeclared_builtin_options='cannot detect'
13263   for ac_arg in '' -fno-builtin; do
13264     CFLAGS="$ac_save_CFLAGS $ac_arg"
13265     # This test program should *not* compile successfully.
13266     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13267/* end confdefs.h.  */
13268
13269int
13270main (void)
13271{
13272(void) strchr;
13273  ;
13274  return 0;
13275}
13276_ACEOF
13277if ac_fn_c_try_compile "$LINENO"
13278then :
13279
13280else $as_nop
13281  # This test program should compile successfully.
13282        # No library function is consistently available on
13283        # freestanding implementations, so test against a dummy
13284        # declaration.  Include always-available headers on the
13285        # off chance that they somehow elicit warnings.
13286        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13287/* end confdefs.h.  */
13288#include <float.h>
13289#include <limits.h>
13290#include <stdarg.h>
13291#include <stddef.h>
13292extern void ac_decl (int, char *);
13293
13294int
13295main (void)
13296{
13297(void) ac_decl (0, (char *) 0);
13298  (void) ac_decl;
13299
13300  ;
13301  return 0;
13302}
13303_ACEOF
13304if ac_fn_c_try_compile "$LINENO"
13305then :
13306  if test x"$ac_arg" = x
13307then :
13308  ac_cv_c_undeclared_builtin_options='none needed'
13309else $as_nop
13310  ac_cv_c_undeclared_builtin_options=$ac_arg
13311fi
13312          break
13313fi
13314rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13315fi
13316rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13317    done
13318    CFLAGS=$ac_save_CFLAGS
13319
13320fi
13321{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
13322printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
13323  case $ac_cv_c_undeclared_builtin_options in #(
13324  'cannot detect') :
13325    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13326printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13327as_fn_error $? "cannot make $CC report undeclared builtins
13328See \`config.log' for more details" "$LINENO" 5; } ;; #(
13329  'none needed') :
13330    ac_c_undeclared_builtin_options='' ;; #(
13331  *) :
13332    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
13333esac
13334
13335
13336
13337
13338
13339ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13340if test "x$ac_cv_have_decl___clang__" = xyes
13341then :
13342  CLANGCC="yes"
13343else $as_nop
13344  CLANGCC="no"
13345fi
13346ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13347if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
13348then :
13349  INTELCC="yes"
13350else $as_nop
13351  INTELCC="no"
13352fi
13353ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13354if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
13355then :
13356  SUNCC="yes"
13357else $as_nop
13358  SUNCC="no"
13359fi
13360
13361
13362
13363
13364
13365
13366
13367
13368if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13369	if test -n "$ac_tool_prefix"; then
13370  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13371set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13372{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13373printf %s "checking for $ac_word... " >&6; }
13374if test ${ac_cv_path_PKG_CONFIG+y}
13375then :
13376  printf %s "(cached) " >&6
13377else $as_nop
13378  case $PKG_CONFIG in
13379  [\\/]* | ?:[\\/]*)
13380  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13381  ;;
13382  *)
13383  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13384for as_dir in $PATH
13385do
13386  IFS=$as_save_IFS
13387  case $as_dir in #(((
13388    '') as_dir=./ ;;
13389    */) ;;
13390    *) as_dir=$as_dir/ ;;
13391  esac
13392    for ac_exec_ext in '' $ac_executable_extensions; do
13393  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13394    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13395    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13396    break 2
13397  fi
13398done
13399  done
13400IFS=$as_save_IFS
13401
13402  ;;
13403esac
13404fi
13405PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13406if test -n "$PKG_CONFIG"; then
13407  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13408printf "%s\n" "$PKG_CONFIG" >&6; }
13409else
13410  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13411printf "%s\n" "no" >&6; }
13412fi
13413
13414
13415fi
13416if test -z "$ac_cv_path_PKG_CONFIG"; then
13417  ac_pt_PKG_CONFIG=$PKG_CONFIG
13418  # Extract the first word of "pkg-config", so it can be a program name with args.
13419set dummy pkg-config; ac_word=$2
13420{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13421printf %s "checking for $ac_word... " >&6; }
13422if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
13423then :
13424  printf %s "(cached) " >&6
13425else $as_nop
13426  case $ac_pt_PKG_CONFIG in
13427  [\\/]* | ?:[\\/]*)
13428  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13429  ;;
13430  *)
13431  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13432for as_dir in $PATH
13433do
13434  IFS=$as_save_IFS
13435  case $as_dir in #(((
13436    '') as_dir=./ ;;
13437    */) ;;
13438    *) as_dir=$as_dir/ ;;
13439  esac
13440    for ac_exec_ext in '' $ac_executable_extensions; do
13441  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13442    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13443    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13444    break 2
13445  fi
13446done
13447  done
13448IFS=$as_save_IFS
13449
13450  ;;
13451esac
13452fi
13453ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13454if test -n "$ac_pt_PKG_CONFIG"; then
13455  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13456printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
13457else
13458  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13459printf "%s\n" "no" >&6; }
13460fi
13461
13462  if test "x$ac_pt_PKG_CONFIG" = x; then
13463    PKG_CONFIG=""
13464  else
13465    case $cross_compiling:$ac_tool_warned in
13466yes:)
13467{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13468printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13469ac_tool_warned=yes ;;
13470esac
13471    PKG_CONFIG=$ac_pt_PKG_CONFIG
13472  fi
13473else
13474  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13475fi
13476
13477fi
13478if test -n "$PKG_CONFIG"; then
13479	_pkg_min_version=0.9.0
13480	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13481printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13482	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13483		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13484printf "%s\n" "yes" >&6; }
13485	else
13486		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13487printf "%s\n" "no" >&6; }
13488		PKG_CONFIG=""
13489	fi
13490fi
13491
13492
13493
13494
13495
13496# Check whether --enable-selective-werror was given.
13497if test ${enable_selective_werror+y}
13498then :
13499  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
13500else $as_nop
13501  SELECTIVE_WERROR=yes
13502fi
13503
13504
13505
13506
13507
13508# -v is too short to test reliably with XORG_TESTSET_CFLAG
13509if test "x$SUNCC" = "xyes"; then
13510    BASE_CFLAGS="-v"
13511else
13512    BASE_CFLAGS=""
13513fi
13514
13515# This chunk of warnings were those that existed in the legacy CWARNFLAGS
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528
13529xorg_testset_save_CFLAGS="$CFLAGS"
13530
13531if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13532	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13533	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13534printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13535if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13536then :
13537  printf %s "(cached) " >&6
13538else $as_nop
13539  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13540/* end confdefs.h.  */
13541int i;
13542_ACEOF
13543if ac_fn_c_try_compile "$LINENO"
13544then :
13545  xorg_cv_cc_flag_unknown_warning_option=yes
13546else $as_nop
13547  xorg_cv_cc_flag_unknown_warning_option=no
13548fi
13549rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13550fi
13551{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13552printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13553	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13554	CFLAGS="$xorg_testset_save_CFLAGS"
13555fi
13556
13557if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13558	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13559		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13560	fi
13561	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13562	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13563printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13564if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13565then :
13566  printf %s "(cached) " >&6
13567else $as_nop
13568  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13569/* end confdefs.h.  */
13570int i;
13571_ACEOF
13572if ac_fn_c_try_compile "$LINENO"
13573then :
13574  xorg_cv_cc_flag_unused_command_line_argument=yes
13575else $as_nop
13576  xorg_cv_cc_flag_unused_command_line_argument=no
13577fi
13578rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13579fi
13580{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13581printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13582	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13583	CFLAGS="$xorg_testset_save_CFLAGS"
13584fi
13585
13586found="no"
13587
13588	if test $found = "no" ; then
13589		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13590			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13591		fi
13592
13593		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13594			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13595		fi
13596
13597		CFLAGS="$CFLAGS -Wall"
13598
13599		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
13600printf %s "checking if $CC supports -Wall... " >&6; }
13601		cacheid=xorg_cv_cc_flag__Wall
13602		if eval test \${$cacheid+y}
13603then :
13604  printf %s "(cached) " >&6
13605else $as_nop
13606  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13607/* end confdefs.h.  */
13608int i;
13609int
13610main (void)
13611{
13612
13613  ;
13614  return 0;
13615}
13616_ACEOF
13617if ac_fn_c_try_link "$LINENO"
13618then :
13619  eval $cacheid=yes
13620else $as_nop
13621  eval $cacheid=no
13622fi
13623rm -f core conftest.err conftest.$ac_objext conftest.beam \
13624    conftest$ac_exeext conftest.$ac_ext
13625fi
13626
13627
13628		CFLAGS="$xorg_testset_save_CFLAGS"
13629
13630		eval supported=\$$cacheid
13631		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13632printf "%s\n" "$supported" >&6; }
13633		if test "$supported" = "yes" ; then
13634			BASE_CFLAGS="$BASE_CFLAGS -Wall"
13635			found="yes"
13636		fi
13637	fi
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653xorg_testset_save_CFLAGS="$CFLAGS"
13654
13655if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13656	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13657	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13658printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13659if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13660then :
13661  printf %s "(cached) " >&6
13662else $as_nop
13663  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13664/* end confdefs.h.  */
13665int i;
13666_ACEOF
13667if ac_fn_c_try_compile "$LINENO"
13668then :
13669  xorg_cv_cc_flag_unknown_warning_option=yes
13670else $as_nop
13671  xorg_cv_cc_flag_unknown_warning_option=no
13672fi
13673rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13674fi
13675{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13676printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13677	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13678	CFLAGS="$xorg_testset_save_CFLAGS"
13679fi
13680
13681if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13682	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13683		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13684	fi
13685	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13686	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13687printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13688if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13689then :
13690  printf %s "(cached) " >&6
13691else $as_nop
13692  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13693/* end confdefs.h.  */
13694int i;
13695_ACEOF
13696if ac_fn_c_try_compile "$LINENO"
13697then :
13698  xorg_cv_cc_flag_unused_command_line_argument=yes
13699else $as_nop
13700  xorg_cv_cc_flag_unused_command_line_argument=no
13701fi
13702rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13703fi
13704{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13705printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13706	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13707	CFLAGS="$xorg_testset_save_CFLAGS"
13708fi
13709
13710found="no"
13711
13712	if test $found = "no" ; then
13713		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13714			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13715		fi
13716
13717		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13718			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13719		fi
13720
13721		CFLAGS="$CFLAGS -Wpointer-arith"
13722
13723		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
13724printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
13725		cacheid=xorg_cv_cc_flag__Wpointer_arith
13726		if eval test \${$cacheid+y}
13727then :
13728  printf %s "(cached) " >&6
13729else $as_nop
13730  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13731/* end confdefs.h.  */
13732int i;
13733int
13734main (void)
13735{
13736
13737  ;
13738  return 0;
13739}
13740_ACEOF
13741if ac_fn_c_try_link "$LINENO"
13742then :
13743  eval $cacheid=yes
13744else $as_nop
13745  eval $cacheid=no
13746fi
13747rm -f core conftest.err conftest.$ac_objext conftest.beam \
13748    conftest$ac_exeext conftest.$ac_ext
13749fi
13750
13751
13752		CFLAGS="$xorg_testset_save_CFLAGS"
13753
13754		eval supported=\$$cacheid
13755		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13756printf "%s\n" "$supported" >&6; }
13757		if test "$supported" = "yes" ; then
13758			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
13759			found="yes"
13760		fi
13761	fi
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777xorg_testset_save_CFLAGS="$CFLAGS"
13778
13779if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13780	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13781	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13782printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13783if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13784then :
13785  printf %s "(cached) " >&6
13786else $as_nop
13787  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13788/* end confdefs.h.  */
13789int i;
13790_ACEOF
13791if ac_fn_c_try_compile "$LINENO"
13792then :
13793  xorg_cv_cc_flag_unknown_warning_option=yes
13794else $as_nop
13795  xorg_cv_cc_flag_unknown_warning_option=no
13796fi
13797rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13798fi
13799{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13800printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13801	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13802	CFLAGS="$xorg_testset_save_CFLAGS"
13803fi
13804
13805if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13806	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13807		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13808	fi
13809	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13810	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13811printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13812if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13813then :
13814  printf %s "(cached) " >&6
13815else $as_nop
13816  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13817/* end confdefs.h.  */
13818int i;
13819_ACEOF
13820if ac_fn_c_try_compile "$LINENO"
13821then :
13822  xorg_cv_cc_flag_unused_command_line_argument=yes
13823else $as_nop
13824  xorg_cv_cc_flag_unused_command_line_argument=no
13825fi
13826rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13827fi
13828{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13829printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13830	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13831	CFLAGS="$xorg_testset_save_CFLAGS"
13832fi
13833
13834found="no"
13835
13836	if test $found = "no" ; then
13837		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13838			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13839		fi
13840
13841		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13842			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13843		fi
13844
13845		CFLAGS="$CFLAGS -Wmissing-declarations"
13846
13847		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
13848printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
13849		cacheid=xorg_cv_cc_flag__Wmissing_declarations
13850		if eval test \${$cacheid+y}
13851then :
13852  printf %s "(cached) " >&6
13853else $as_nop
13854  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13855/* end confdefs.h.  */
13856int i;
13857int
13858main (void)
13859{
13860
13861  ;
13862  return 0;
13863}
13864_ACEOF
13865if ac_fn_c_try_link "$LINENO"
13866then :
13867  eval $cacheid=yes
13868else $as_nop
13869  eval $cacheid=no
13870fi
13871rm -f core conftest.err conftest.$ac_objext conftest.beam \
13872    conftest$ac_exeext conftest.$ac_ext
13873fi
13874
13875
13876		CFLAGS="$xorg_testset_save_CFLAGS"
13877
13878		eval supported=\$$cacheid
13879		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13880printf "%s\n" "$supported" >&6; }
13881		if test "$supported" = "yes" ; then
13882			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
13883			found="yes"
13884		fi
13885	fi
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901xorg_testset_save_CFLAGS="$CFLAGS"
13902
13903if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13904	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13905	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13906printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13907if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13908then :
13909  printf %s "(cached) " >&6
13910else $as_nop
13911  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13912/* end confdefs.h.  */
13913int i;
13914_ACEOF
13915if ac_fn_c_try_compile "$LINENO"
13916then :
13917  xorg_cv_cc_flag_unknown_warning_option=yes
13918else $as_nop
13919  xorg_cv_cc_flag_unknown_warning_option=no
13920fi
13921rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13922fi
13923{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13924printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13925	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13926	CFLAGS="$xorg_testset_save_CFLAGS"
13927fi
13928
13929if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13930	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13931		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13932	fi
13933	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13934	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13935printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13936if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13937then :
13938  printf %s "(cached) " >&6
13939else $as_nop
13940  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13941/* end confdefs.h.  */
13942int i;
13943_ACEOF
13944if ac_fn_c_try_compile "$LINENO"
13945then :
13946  xorg_cv_cc_flag_unused_command_line_argument=yes
13947else $as_nop
13948  xorg_cv_cc_flag_unused_command_line_argument=no
13949fi
13950rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13951fi
13952{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13953printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13954	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13955	CFLAGS="$xorg_testset_save_CFLAGS"
13956fi
13957
13958found="no"
13959
13960	if test $found = "no" ; then
13961		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13962			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13963		fi
13964
13965		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13966			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13967		fi
13968
13969		CFLAGS="$CFLAGS -Wformat=2"
13970
13971		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
13972printf %s "checking if $CC supports -Wformat=2... " >&6; }
13973		cacheid=xorg_cv_cc_flag__Wformat_2
13974		if eval test \${$cacheid+y}
13975then :
13976  printf %s "(cached) " >&6
13977else $as_nop
13978  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13979/* end confdefs.h.  */
13980int i;
13981int
13982main (void)
13983{
13984
13985  ;
13986  return 0;
13987}
13988_ACEOF
13989if ac_fn_c_try_link "$LINENO"
13990then :
13991  eval $cacheid=yes
13992else $as_nop
13993  eval $cacheid=no
13994fi
13995rm -f core conftest.err conftest.$ac_objext conftest.beam \
13996    conftest$ac_exeext conftest.$ac_ext
13997fi
13998
13999
14000		CFLAGS="$xorg_testset_save_CFLAGS"
14001
14002		eval supported=\$$cacheid
14003		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14004printf "%s\n" "$supported" >&6; }
14005		if test "$supported" = "yes" ; then
14006			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
14007			found="yes"
14008		fi
14009	fi
14010
14011	if test $found = "no" ; then
14012		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14013			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14014		fi
14015
14016		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14017			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14018		fi
14019
14020		CFLAGS="$CFLAGS -Wformat"
14021
14022		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
14023printf %s "checking if $CC supports -Wformat... " >&6; }
14024		cacheid=xorg_cv_cc_flag__Wformat
14025		if eval test \${$cacheid+y}
14026then :
14027  printf %s "(cached) " >&6
14028else $as_nop
14029  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14030/* end confdefs.h.  */
14031int i;
14032int
14033main (void)
14034{
14035
14036  ;
14037  return 0;
14038}
14039_ACEOF
14040if ac_fn_c_try_link "$LINENO"
14041then :
14042  eval $cacheid=yes
14043else $as_nop
14044  eval $cacheid=no
14045fi
14046rm -f core conftest.err conftest.$ac_objext conftest.beam \
14047    conftest$ac_exeext conftest.$ac_ext
14048fi
14049
14050
14051		CFLAGS="$xorg_testset_save_CFLAGS"
14052
14053		eval supported=\$$cacheid
14054		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14055printf "%s\n" "$supported" >&6; }
14056		if test "$supported" = "yes" ; then
14057			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
14058			found="yes"
14059		fi
14060	fi
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078xorg_testset_save_CFLAGS="$CFLAGS"
14079
14080if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14081	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14082	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14083printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14084if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14085then :
14086  printf %s "(cached) " >&6
14087else $as_nop
14088  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14089/* end confdefs.h.  */
14090int i;
14091_ACEOF
14092if ac_fn_c_try_compile "$LINENO"
14093then :
14094  xorg_cv_cc_flag_unknown_warning_option=yes
14095else $as_nop
14096  xorg_cv_cc_flag_unknown_warning_option=no
14097fi
14098rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14099fi
14100{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14101printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14102	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14103	CFLAGS="$xorg_testset_save_CFLAGS"
14104fi
14105
14106if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14107	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14108		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14109	fi
14110	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14111	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14112printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14113if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14114then :
14115  printf %s "(cached) " >&6
14116else $as_nop
14117  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14118/* end confdefs.h.  */
14119int i;
14120_ACEOF
14121if ac_fn_c_try_compile "$LINENO"
14122then :
14123  xorg_cv_cc_flag_unused_command_line_argument=yes
14124else $as_nop
14125  xorg_cv_cc_flag_unused_command_line_argument=no
14126fi
14127rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14128fi
14129{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14130printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14131	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14132	CFLAGS="$xorg_testset_save_CFLAGS"
14133fi
14134
14135found="no"
14136
14137	if test $found = "no" ; then
14138		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14139			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14140		fi
14141
14142		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14143			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14144		fi
14145
14146		CFLAGS="$CFLAGS -Wstrict-prototypes"
14147
14148		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
14149printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
14150		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
14151		if eval test \${$cacheid+y}
14152then :
14153  printf %s "(cached) " >&6
14154else $as_nop
14155  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14156/* end confdefs.h.  */
14157int i;
14158int
14159main (void)
14160{
14161
14162  ;
14163  return 0;
14164}
14165_ACEOF
14166if ac_fn_c_try_link "$LINENO"
14167then :
14168  eval $cacheid=yes
14169else $as_nop
14170  eval $cacheid=no
14171fi
14172rm -f core conftest.err conftest.$ac_objext conftest.beam \
14173    conftest$ac_exeext conftest.$ac_ext
14174fi
14175
14176
14177		CFLAGS="$xorg_testset_save_CFLAGS"
14178
14179		eval supported=\$$cacheid
14180		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14181printf "%s\n" "$supported" >&6; }
14182		if test "$supported" = "yes" ; then
14183			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
14184			found="yes"
14185		fi
14186	fi
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202xorg_testset_save_CFLAGS="$CFLAGS"
14203
14204if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14205	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14206	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14207printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14208if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14209then :
14210  printf %s "(cached) " >&6
14211else $as_nop
14212  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14213/* end confdefs.h.  */
14214int i;
14215_ACEOF
14216if ac_fn_c_try_compile "$LINENO"
14217then :
14218  xorg_cv_cc_flag_unknown_warning_option=yes
14219else $as_nop
14220  xorg_cv_cc_flag_unknown_warning_option=no
14221fi
14222rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14223fi
14224{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14225printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14226	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14227	CFLAGS="$xorg_testset_save_CFLAGS"
14228fi
14229
14230if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14231	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14232		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14233	fi
14234	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14235	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14236printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14237if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14238then :
14239  printf %s "(cached) " >&6
14240else $as_nop
14241  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14242/* end confdefs.h.  */
14243int i;
14244_ACEOF
14245if ac_fn_c_try_compile "$LINENO"
14246then :
14247  xorg_cv_cc_flag_unused_command_line_argument=yes
14248else $as_nop
14249  xorg_cv_cc_flag_unused_command_line_argument=no
14250fi
14251rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14252fi
14253{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14254printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14255	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14256	CFLAGS="$xorg_testset_save_CFLAGS"
14257fi
14258
14259found="no"
14260
14261	if test $found = "no" ; then
14262		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14263			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14264		fi
14265
14266		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14267			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14268		fi
14269
14270		CFLAGS="$CFLAGS -Wmissing-prototypes"
14271
14272		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
14273printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
14274		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
14275		if eval test \${$cacheid+y}
14276then :
14277  printf %s "(cached) " >&6
14278else $as_nop
14279  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14280/* end confdefs.h.  */
14281int i;
14282int
14283main (void)
14284{
14285
14286  ;
14287  return 0;
14288}
14289_ACEOF
14290if ac_fn_c_try_link "$LINENO"
14291then :
14292  eval $cacheid=yes
14293else $as_nop
14294  eval $cacheid=no
14295fi
14296rm -f core conftest.err conftest.$ac_objext conftest.beam \
14297    conftest$ac_exeext conftest.$ac_ext
14298fi
14299
14300
14301		CFLAGS="$xorg_testset_save_CFLAGS"
14302
14303		eval supported=\$$cacheid
14304		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14305printf "%s\n" "$supported" >&6; }
14306		if test "$supported" = "yes" ; then
14307			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
14308			found="yes"
14309		fi
14310	fi
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326xorg_testset_save_CFLAGS="$CFLAGS"
14327
14328if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14329	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14330	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14331printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14332if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14333then :
14334  printf %s "(cached) " >&6
14335else $as_nop
14336  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14337/* end confdefs.h.  */
14338int i;
14339_ACEOF
14340if ac_fn_c_try_compile "$LINENO"
14341then :
14342  xorg_cv_cc_flag_unknown_warning_option=yes
14343else $as_nop
14344  xorg_cv_cc_flag_unknown_warning_option=no
14345fi
14346rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14347fi
14348{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14349printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14350	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14351	CFLAGS="$xorg_testset_save_CFLAGS"
14352fi
14353
14354if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14355	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14356		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14357	fi
14358	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14359	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14360printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14361if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14362then :
14363  printf %s "(cached) " >&6
14364else $as_nop
14365  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14366/* end confdefs.h.  */
14367int i;
14368_ACEOF
14369if ac_fn_c_try_compile "$LINENO"
14370then :
14371  xorg_cv_cc_flag_unused_command_line_argument=yes
14372else $as_nop
14373  xorg_cv_cc_flag_unused_command_line_argument=no
14374fi
14375rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14376fi
14377{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14378printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14379	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14380	CFLAGS="$xorg_testset_save_CFLAGS"
14381fi
14382
14383found="no"
14384
14385	if test $found = "no" ; then
14386		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14387			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14388		fi
14389
14390		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14391			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14392		fi
14393
14394		CFLAGS="$CFLAGS -Wnested-externs"
14395
14396		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
14397printf %s "checking if $CC supports -Wnested-externs... " >&6; }
14398		cacheid=xorg_cv_cc_flag__Wnested_externs
14399		if eval test \${$cacheid+y}
14400then :
14401  printf %s "(cached) " >&6
14402else $as_nop
14403  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14404/* end confdefs.h.  */
14405int i;
14406int
14407main (void)
14408{
14409
14410  ;
14411  return 0;
14412}
14413_ACEOF
14414if ac_fn_c_try_link "$LINENO"
14415then :
14416  eval $cacheid=yes
14417else $as_nop
14418  eval $cacheid=no
14419fi
14420rm -f core conftest.err conftest.$ac_objext conftest.beam \
14421    conftest$ac_exeext conftest.$ac_ext
14422fi
14423
14424
14425		CFLAGS="$xorg_testset_save_CFLAGS"
14426
14427		eval supported=\$$cacheid
14428		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14429printf "%s\n" "$supported" >&6; }
14430		if test "$supported" = "yes" ; then
14431			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
14432			found="yes"
14433		fi
14434	fi
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450xorg_testset_save_CFLAGS="$CFLAGS"
14451
14452if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14453	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14454	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14455printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14456if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14457then :
14458  printf %s "(cached) " >&6
14459else $as_nop
14460  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14461/* end confdefs.h.  */
14462int i;
14463_ACEOF
14464if ac_fn_c_try_compile "$LINENO"
14465then :
14466  xorg_cv_cc_flag_unknown_warning_option=yes
14467else $as_nop
14468  xorg_cv_cc_flag_unknown_warning_option=no
14469fi
14470rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14471fi
14472{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14473printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14474	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14475	CFLAGS="$xorg_testset_save_CFLAGS"
14476fi
14477
14478if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14479	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14480		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14481	fi
14482	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14483	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14484printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14485if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14486then :
14487  printf %s "(cached) " >&6
14488else $as_nop
14489  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14490/* end confdefs.h.  */
14491int i;
14492_ACEOF
14493if ac_fn_c_try_compile "$LINENO"
14494then :
14495  xorg_cv_cc_flag_unused_command_line_argument=yes
14496else $as_nop
14497  xorg_cv_cc_flag_unused_command_line_argument=no
14498fi
14499rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14500fi
14501{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14502printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14503	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14504	CFLAGS="$xorg_testset_save_CFLAGS"
14505fi
14506
14507found="no"
14508
14509	if test $found = "no" ; then
14510		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14511			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14512		fi
14513
14514		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14515			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14516		fi
14517
14518		CFLAGS="$CFLAGS -Wbad-function-cast"
14519
14520		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
14521printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
14522		cacheid=xorg_cv_cc_flag__Wbad_function_cast
14523		if eval test \${$cacheid+y}
14524then :
14525  printf %s "(cached) " >&6
14526else $as_nop
14527  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14528/* end confdefs.h.  */
14529int i;
14530int
14531main (void)
14532{
14533
14534  ;
14535  return 0;
14536}
14537_ACEOF
14538if ac_fn_c_try_link "$LINENO"
14539then :
14540  eval $cacheid=yes
14541else $as_nop
14542  eval $cacheid=no
14543fi
14544rm -f core conftest.err conftest.$ac_objext conftest.beam \
14545    conftest$ac_exeext conftest.$ac_ext
14546fi
14547
14548
14549		CFLAGS="$xorg_testset_save_CFLAGS"
14550
14551		eval supported=\$$cacheid
14552		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14553printf "%s\n" "$supported" >&6; }
14554		if test "$supported" = "yes" ; then
14555			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
14556			found="yes"
14557		fi
14558	fi
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574xorg_testset_save_CFLAGS="$CFLAGS"
14575
14576if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14577	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14578	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14579printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14580if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14581then :
14582  printf %s "(cached) " >&6
14583else $as_nop
14584  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14585/* end confdefs.h.  */
14586int i;
14587_ACEOF
14588if ac_fn_c_try_compile "$LINENO"
14589then :
14590  xorg_cv_cc_flag_unknown_warning_option=yes
14591else $as_nop
14592  xorg_cv_cc_flag_unknown_warning_option=no
14593fi
14594rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14595fi
14596{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14597printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14598	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14599	CFLAGS="$xorg_testset_save_CFLAGS"
14600fi
14601
14602if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14603	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14604		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14605	fi
14606	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14607	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14608printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14609if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14610then :
14611  printf %s "(cached) " >&6
14612else $as_nop
14613  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14614/* end confdefs.h.  */
14615int i;
14616_ACEOF
14617if ac_fn_c_try_compile "$LINENO"
14618then :
14619  xorg_cv_cc_flag_unused_command_line_argument=yes
14620else $as_nop
14621  xorg_cv_cc_flag_unused_command_line_argument=no
14622fi
14623rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14624fi
14625{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14626printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14627	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14628	CFLAGS="$xorg_testset_save_CFLAGS"
14629fi
14630
14631found="no"
14632
14633	if test $found = "no" ; then
14634		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14635			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14636		fi
14637
14638		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14639			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14640		fi
14641
14642		CFLAGS="$CFLAGS -Wold-style-definition"
14643
14644		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
14645printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
14646		cacheid=xorg_cv_cc_flag__Wold_style_definition
14647		if eval test \${$cacheid+y}
14648then :
14649  printf %s "(cached) " >&6
14650else $as_nop
14651  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14652/* end confdefs.h.  */
14653int i;
14654int
14655main (void)
14656{
14657
14658  ;
14659  return 0;
14660}
14661_ACEOF
14662if ac_fn_c_try_link "$LINENO"
14663then :
14664  eval $cacheid=yes
14665else $as_nop
14666  eval $cacheid=no
14667fi
14668rm -f core conftest.err conftest.$ac_objext conftest.beam \
14669    conftest$ac_exeext conftest.$ac_ext
14670fi
14671
14672
14673		CFLAGS="$xorg_testset_save_CFLAGS"
14674
14675		eval supported=\$$cacheid
14676		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14677printf "%s\n" "$supported" >&6; }
14678		if test "$supported" = "yes" ; then
14679			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
14680			found="yes"
14681		fi
14682	fi
14683
14684	if test $found = "no" ; then
14685		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14686			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14687		fi
14688
14689		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14690			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14691		fi
14692
14693		CFLAGS="$CFLAGS -fd"
14694
14695		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
14696printf %s "checking if $CC supports -fd... " >&6; }
14697		cacheid=xorg_cv_cc_flag__fd
14698		if eval test \${$cacheid+y}
14699then :
14700  printf %s "(cached) " >&6
14701else $as_nop
14702  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14703/* end confdefs.h.  */
14704int i;
14705int
14706main (void)
14707{
14708
14709  ;
14710  return 0;
14711}
14712_ACEOF
14713if ac_fn_c_try_link "$LINENO"
14714then :
14715  eval $cacheid=yes
14716else $as_nop
14717  eval $cacheid=no
14718fi
14719rm -f core conftest.err conftest.$ac_objext conftest.beam \
14720    conftest$ac_exeext conftest.$ac_ext
14721fi
14722
14723
14724		CFLAGS="$xorg_testset_save_CFLAGS"
14725
14726		eval supported=\$$cacheid
14727		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14728printf "%s\n" "$supported" >&6; }
14729		if test "$supported" = "yes" ; then
14730			BASE_CFLAGS="$BASE_CFLAGS -fd"
14731			found="yes"
14732		fi
14733	fi
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749xorg_testset_save_CFLAGS="$CFLAGS"
14750
14751if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14752	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14753	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14754printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14755if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14756then :
14757  printf %s "(cached) " >&6
14758else $as_nop
14759  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14760/* end confdefs.h.  */
14761int i;
14762_ACEOF
14763if ac_fn_c_try_compile "$LINENO"
14764then :
14765  xorg_cv_cc_flag_unknown_warning_option=yes
14766else $as_nop
14767  xorg_cv_cc_flag_unknown_warning_option=no
14768fi
14769rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14770fi
14771{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14772printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14773	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14774	CFLAGS="$xorg_testset_save_CFLAGS"
14775fi
14776
14777if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14778	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14779		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14780	fi
14781	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14782	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14783printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14784if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14785then :
14786  printf %s "(cached) " >&6
14787else $as_nop
14788  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14789/* end confdefs.h.  */
14790int i;
14791_ACEOF
14792if ac_fn_c_try_compile "$LINENO"
14793then :
14794  xorg_cv_cc_flag_unused_command_line_argument=yes
14795else $as_nop
14796  xorg_cv_cc_flag_unused_command_line_argument=no
14797fi
14798rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14799fi
14800{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14801printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14802	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14803	CFLAGS="$xorg_testset_save_CFLAGS"
14804fi
14805
14806found="no"
14807
14808	if test $found = "no" ; then
14809		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14810			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14811		fi
14812
14813		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14814			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14815		fi
14816
14817		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
14818
14819		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
14820printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
14821		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
14822		if eval test \${$cacheid+y}
14823then :
14824  printf %s "(cached) " >&6
14825else $as_nop
14826  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14827/* end confdefs.h.  */
14828int i;
14829int
14830main (void)
14831{
14832
14833  ;
14834  return 0;
14835}
14836_ACEOF
14837if ac_fn_c_try_link "$LINENO"
14838then :
14839  eval $cacheid=yes
14840else $as_nop
14841  eval $cacheid=no
14842fi
14843rm -f core conftest.err conftest.$ac_objext conftest.beam \
14844    conftest$ac_exeext conftest.$ac_ext
14845fi
14846
14847
14848		CFLAGS="$xorg_testset_save_CFLAGS"
14849
14850		eval supported=\$$cacheid
14851		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14852printf "%s\n" "$supported" >&6; }
14853		if test "$supported" = "yes" ; then
14854			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
14855			found="yes"
14856		fi
14857	fi
14858
14859
14860
14861
14862
14863# This chunk adds additional warnings that could catch undesired effects.
14864
14865
14866
14867
14868
14869
14870
14871
14872
14873
14874
14875
14876
14877xorg_testset_save_CFLAGS="$CFLAGS"
14878
14879if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14880	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14881	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14882printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14883if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14884then :
14885  printf %s "(cached) " >&6
14886else $as_nop
14887  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14888/* end confdefs.h.  */
14889int i;
14890_ACEOF
14891if ac_fn_c_try_compile "$LINENO"
14892then :
14893  xorg_cv_cc_flag_unknown_warning_option=yes
14894else $as_nop
14895  xorg_cv_cc_flag_unknown_warning_option=no
14896fi
14897rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14898fi
14899{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14900printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14901	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14902	CFLAGS="$xorg_testset_save_CFLAGS"
14903fi
14904
14905if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14906	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14907		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14908	fi
14909	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14910	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14911printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14912if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14913then :
14914  printf %s "(cached) " >&6
14915else $as_nop
14916  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14917/* end confdefs.h.  */
14918int i;
14919_ACEOF
14920if ac_fn_c_try_compile "$LINENO"
14921then :
14922  xorg_cv_cc_flag_unused_command_line_argument=yes
14923else $as_nop
14924  xorg_cv_cc_flag_unused_command_line_argument=no
14925fi
14926rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14927fi
14928{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14929printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14930	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14931	CFLAGS="$xorg_testset_save_CFLAGS"
14932fi
14933
14934found="no"
14935
14936	if test $found = "no" ; then
14937		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14938			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14939		fi
14940
14941		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14942			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14943		fi
14944
14945		CFLAGS="$CFLAGS -Wunused"
14946
14947		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
14948printf %s "checking if $CC supports -Wunused... " >&6; }
14949		cacheid=xorg_cv_cc_flag__Wunused
14950		if eval test \${$cacheid+y}
14951then :
14952  printf %s "(cached) " >&6
14953else $as_nop
14954  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14955/* end confdefs.h.  */
14956int i;
14957int
14958main (void)
14959{
14960
14961  ;
14962  return 0;
14963}
14964_ACEOF
14965if ac_fn_c_try_link "$LINENO"
14966then :
14967  eval $cacheid=yes
14968else $as_nop
14969  eval $cacheid=no
14970fi
14971rm -f core conftest.err conftest.$ac_objext conftest.beam \
14972    conftest$ac_exeext conftest.$ac_ext
14973fi
14974
14975
14976		CFLAGS="$xorg_testset_save_CFLAGS"
14977
14978		eval supported=\$$cacheid
14979		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14980printf "%s\n" "$supported" >&6; }
14981		if test "$supported" = "yes" ; then
14982			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
14983			found="yes"
14984		fi
14985	fi
14986
14987
14988
14989
14990
14991
14992
14993
14994
14995
14996
14997
14998
14999
15000
15001xorg_testset_save_CFLAGS="$CFLAGS"
15002
15003if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15004	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15005	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15006printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15007if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15008then :
15009  printf %s "(cached) " >&6
15010else $as_nop
15011  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15012/* end confdefs.h.  */
15013int i;
15014_ACEOF
15015if ac_fn_c_try_compile "$LINENO"
15016then :
15017  xorg_cv_cc_flag_unknown_warning_option=yes
15018else $as_nop
15019  xorg_cv_cc_flag_unknown_warning_option=no
15020fi
15021rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15022fi
15023{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15024printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15025	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15026	CFLAGS="$xorg_testset_save_CFLAGS"
15027fi
15028
15029if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15030	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15031		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15032	fi
15033	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15034	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15035printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15036if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15037then :
15038  printf %s "(cached) " >&6
15039else $as_nop
15040  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15041/* end confdefs.h.  */
15042int i;
15043_ACEOF
15044if ac_fn_c_try_compile "$LINENO"
15045then :
15046  xorg_cv_cc_flag_unused_command_line_argument=yes
15047else $as_nop
15048  xorg_cv_cc_flag_unused_command_line_argument=no
15049fi
15050rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15051fi
15052{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15053printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15054	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15055	CFLAGS="$xorg_testset_save_CFLAGS"
15056fi
15057
15058found="no"
15059
15060	if test $found = "no" ; then
15061		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15062			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15063		fi
15064
15065		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15066			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15067		fi
15068
15069		CFLAGS="$CFLAGS -Wuninitialized"
15070
15071		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
15072printf %s "checking if $CC supports -Wuninitialized... " >&6; }
15073		cacheid=xorg_cv_cc_flag__Wuninitialized
15074		if eval test \${$cacheid+y}
15075then :
15076  printf %s "(cached) " >&6
15077else $as_nop
15078  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15079/* end confdefs.h.  */
15080int i;
15081int
15082main (void)
15083{
15084
15085  ;
15086  return 0;
15087}
15088_ACEOF
15089if ac_fn_c_try_link "$LINENO"
15090then :
15091  eval $cacheid=yes
15092else $as_nop
15093  eval $cacheid=no
15094fi
15095rm -f core conftest.err conftest.$ac_objext conftest.beam \
15096    conftest$ac_exeext conftest.$ac_ext
15097fi
15098
15099
15100		CFLAGS="$xorg_testset_save_CFLAGS"
15101
15102		eval supported=\$$cacheid
15103		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15104printf "%s\n" "$supported" >&6; }
15105		if test "$supported" = "yes" ; then
15106			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
15107			found="yes"
15108		fi
15109	fi
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125xorg_testset_save_CFLAGS="$CFLAGS"
15126
15127if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15128	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15129	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15130printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15131if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15132then :
15133  printf %s "(cached) " >&6
15134else $as_nop
15135  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15136/* end confdefs.h.  */
15137int i;
15138_ACEOF
15139if ac_fn_c_try_compile "$LINENO"
15140then :
15141  xorg_cv_cc_flag_unknown_warning_option=yes
15142else $as_nop
15143  xorg_cv_cc_flag_unknown_warning_option=no
15144fi
15145rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15146fi
15147{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15148printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15149	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15150	CFLAGS="$xorg_testset_save_CFLAGS"
15151fi
15152
15153if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15154	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15155		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15156	fi
15157	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15158	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15159printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15160if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15161then :
15162  printf %s "(cached) " >&6
15163else $as_nop
15164  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15165/* end confdefs.h.  */
15166int i;
15167_ACEOF
15168if ac_fn_c_try_compile "$LINENO"
15169then :
15170  xorg_cv_cc_flag_unused_command_line_argument=yes
15171else $as_nop
15172  xorg_cv_cc_flag_unused_command_line_argument=no
15173fi
15174rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15175fi
15176{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15177printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15178	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15179	CFLAGS="$xorg_testset_save_CFLAGS"
15180fi
15181
15182found="no"
15183
15184	if test $found = "no" ; then
15185		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15186			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15187		fi
15188
15189		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15190			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15191		fi
15192
15193		CFLAGS="$CFLAGS -Wshadow"
15194
15195		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
15196printf %s "checking if $CC supports -Wshadow... " >&6; }
15197		cacheid=xorg_cv_cc_flag__Wshadow
15198		if eval test \${$cacheid+y}
15199then :
15200  printf %s "(cached) " >&6
15201else $as_nop
15202  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15203/* end confdefs.h.  */
15204int i;
15205int
15206main (void)
15207{
15208
15209  ;
15210  return 0;
15211}
15212_ACEOF
15213if ac_fn_c_try_link "$LINENO"
15214then :
15215  eval $cacheid=yes
15216else $as_nop
15217  eval $cacheid=no
15218fi
15219rm -f core conftest.err conftest.$ac_objext conftest.beam \
15220    conftest$ac_exeext conftest.$ac_ext
15221fi
15222
15223
15224		CFLAGS="$xorg_testset_save_CFLAGS"
15225
15226		eval supported=\$$cacheid
15227		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15228printf "%s\n" "$supported" >&6; }
15229		if test "$supported" = "yes" ; then
15230			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
15231			found="yes"
15232		fi
15233	fi
15234
15235
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245
15246
15247
15248
15249xorg_testset_save_CFLAGS="$CFLAGS"
15250
15251if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15252	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15253	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15254printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15255if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15256then :
15257  printf %s "(cached) " >&6
15258else $as_nop
15259  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15260/* end confdefs.h.  */
15261int i;
15262_ACEOF
15263if ac_fn_c_try_compile "$LINENO"
15264then :
15265  xorg_cv_cc_flag_unknown_warning_option=yes
15266else $as_nop
15267  xorg_cv_cc_flag_unknown_warning_option=no
15268fi
15269rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15270fi
15271{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15272printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15273	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15274	CFLAGS="$xorg_testset_save_CFLAGS"
15275fi
15276
15277if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15278	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15279		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15280	fi
15281	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15282	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15283printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15284if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15285then :
15286  printf %s "(cached) " >&6
15287else $as_nop
15288  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15289/* end confdefs.h.  */
15290int i;
15291_ACEOF
15292if ac_fn_c_try_compile "$LINENO"
15293then :
15294  xorg_cv_cc_flag_unused_command_line_argument=yes
15295else $as_nop
15296  xorg_cv_cc_flag_unused_command_line_argument=no
15297fi
15298rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15299fi
15300{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15301printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15302	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15303	CFLAGS="$xorg_testset_save_CFLAGS"
15304fi
15305
15306found="no"
15307
15308	if test $found = "no" ; then
15309		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15310			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15311		fi
15312
15313		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15314			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15315		fi
15316
15317		CFLAGS="$CFLAGS -Wmissing-noreturn"
15318
15319		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
15320printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
15321		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
15322		if eval test \${$cacheid+y}
15323then :
15324  printf %s "(cached) " >&6
15325else $as_nop
15326  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15327/* end confdefs.h.  */
15328int i;
15329int
15330main (void)
15331{
15332
15333  ;
15334  return 0;
15335}
15336_ACEOF
15337if ac_fn_c_try_link "$LINENO"
15338then :
15339  eval $cacheid=yes
15340else $as_nop
15341  eval $cacheid=no
15342fi
15343rm -f core conftest.err conftest.$ac_objext conftest.beam \
15344    conftest$ac_exeext conftest.$ac_ext
15345fi
15346
15347
15348		CFLAGS="$xorg_testset_save_CFLAGS"
15349
15350		eval supported=\$$cacheid
15351		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15352printf "%s\n" "$supported" >&6; }
15353		if test "$supported" = "yes" ; then
15354			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
15355			found="yes"
15356		fi
15357	fi
15358
15359
15360
15361
15362
15363
15364
15365
15366
15367
15368
15369
15370
15371
15372
15373xorg_testset_save_CFLAGS="$CFLAGS"
15374
15375if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15376	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15377	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15378printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15379if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15380then :
15381  printf %s "(cached) " >&6
15382else $as_nop
15383  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15384/* end confdefs.h.  */
15385int i;
15386_ACEOF
15387if ac_fn_c_try_compile "$LINENO"
15388then :
15389  xorg_cv_cc_flag_unknown_warning_option=yes
15390else $as_nop
15391  xorg_cv_cc_flag_unknown_warning_option=no
15392fi
15393rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15394fi
15395{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15396printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15397	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15398	CFLAGS="$xorg_testset_save_CFLAGS"
15399fi
15400
15401if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15402	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15403		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15404	fi
15405	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15406	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15407printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15408if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15409then :
15410  printf %s "(cached) " >&6
15411else $as_nop
15412  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15413/* end confdefs.h.  */
15414int i;
15415_ACEOF
15416if ac_fn_c_try_compile "$LINENO"
15417then :
15418  xorg_cv_cc_flag_unused_command_line_argument=yes
15419else $as_nop
15420  xorg_cv_cc_flag_unused_command_line_argument=no
15421fi
15422rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15423fi
15424{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15425printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15426	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15427	CFLAGS="$xorg_testset_save_CFLAGS"
15428fi
15429
15430found="no"
15431
15432	if test $found = "no" ; then
15433		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15434			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15435		fi
15436
15437		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15438			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15439		fi
15440
15441		CFLAGS="$CFLAGS -Wmissing-format-attribute"
15442
15443		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
15444printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
15445		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
15446		if eval test \${$cacheid+y}
15447then :
15448  printf %s "(cached) " >&6
15449else $as_nop
15450  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15451/* end confdefs.h.  */
15452int i;
15453int
15454main (void)
15455{
15456
15457  ;
15458  return 0;
15459}
15460_ACEOF
15461if ac_fn_c_try_link "$LINENO"
15462then :
15463  eval $cacheid=yes
15464else $as_nop
15465  eval $cacheid=no
15466fi
15467rm -f core conftest.err conftest.$ac_objext conftest.beam \
15468    conftest$ac_exeext conftest.$ac_ext
15469fi
15470
15471
15472		CFLAGS="$xorg_testset_save_CFLAGS"
15473
15474		eval supported=\$$cacheid
15475		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15476printf "%s\n" "$supported" >&6; }
15477		if test "$supported" = "yes" ; then
15478			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
15479			found="yes"
15480		fi
15481	fi
15482
15483
15484
15485
15486
15487
15488
15489
15490
15491
15492
15493
15494
15495
15496
15497xorg_testset_save_CFLAGS="$CFLAGS"
15498
15499if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15500	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15501	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15502printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15503if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15504then :
15505  printf %s "(cached) " >&6
15506else $as_nop
15507  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15508/* end confdefs.h.  */
15509int i;
15510_ACEOF
15511if ac_fn_c_try_compile "$LINENO"
15512then :
15513  xorg_cv_cc_flag_unknown_warning_option=yes
15514else $as_nop
15515  xorg_cv_cc_flag_unknown_warning_option=no
15516fi
15517rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15518fi
15519{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15520printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15521	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15522	CFLAGS="$xorg_testset_save_CFLAGS"
15523fi
15524
15525if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15526	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15527		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15528	fi
15529	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15530	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15531printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15532if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15533then :
15534  printf %s "(cached) " >&6
15535else $as_nop
15536  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15537/* end confdefs.h.  */
15538int i;
15539_ACEOF
15540if ac_fn_c_try_compile "$LINENO"
15541then :
15542  xorg_cv_cc_flag_unused_command_line_argument=yes
15543else $as_nop
15544  xorg_cv_cc_flag_unused_command_line_argument=no
15545fi
15546rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15547fi
15548{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15549printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15550	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15551	CFLAGS="$xorg_testset_save_CFLAGS"
15552fi
15553
15554found="no"
15555
15556	if test $found = "no" ; then
15557		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15558			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15559		fi
15560
15561		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15562			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15563		fi
15564
15565		CFLAGS="$CFLAGS -Wredundant-decls"
15566
15567		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
15568printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
15569		cacheid=xorg_cv_cc_flag__Wredundant_decls
15570		if eval test \${$cacheid+y}
15571then :
15572  printf %s "(cached) " >&6
15573else $as_nop
15574  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15575/* end confdefs.h.  */
15576int i;
15577int
15578main (void)
15579{
15580
15581  ;
15582  return 0;
15583}
15584_ACEOF
15585if ac_fn_c_try_link "$LINENO"
15586then :
15587  eval $cacheid=yes
15588else $as_nop
15589  eval $cacheid=no
15590fi
15591rm -f core conftest.err conftest.$ac_objext conftest.beam \
15592    conftest$ac_exeext conftest.$ac_ext
15593fi
15594
15595
15596		CFLAGS="$xorg_testset_save_CFLAGS"
15597
15598		eval supported=\$$cacheid
15599		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15600printf "%s\n" "$supported" >&6; }
15601		if test "$supported" = "yes" ; then
15602			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
15603			found="yes"
15604		fi
15605	fi
15606
15607
15608
15609
15610
15611
15612
15613
15614
15615
15616
15617
15618
15619
15620
15621xorg_testset_save_CFLAGS="$CFLAGS"
15622
15623if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15624	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15625	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15626printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15627if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15628then :
15629  printf %s "(cached) " >&6
15630else $as_nop
15631  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15632/* end confdefs.h.  */
15633int i;
15634_ACEOF
15635if ac_fn_c_try_compile "$LINENO"
15636then :
15637  xorg_cv_cc_flag_unknown_warning_option=yes
15638else $as_nop
15639  xorg_cv_cc_flag_unknown_warning_option=no
15640fi
15641rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15642fi
15643{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15644printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15645	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15646	CFLAGS="$xorg_testset_save_CFLAGS"
15647fi
15648
15649if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15650	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15651		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15652	fi
15653	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15654	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15655printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15656if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15657then :
15658  printf %s "(cached) " >&6
15659else $as_nop
15660  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15661/* end confdefs.h.  */
15662int i;
15663_ACEOF
15664if ac_fn_c_try_compile "$LINENO"
15665then :
15666  xorg_cv_cc_flag_unused_command_line_argument=yes
15667else $as_nop
15668  xorg_cv_cc_flag_unused_command_line_argument=no
15669fi
15670rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15671fi
15672{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15673printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15674	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15675	CFLAGS="$xorg_testset_save_CFLAGS"
15676fi
15677
15678found="no"
15679
15680	if test $found = "no" ; then
15681		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15682			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15683		fi
15684
15685		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15686			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15687		fi
15688
15689		CFLAGS="$CFLAGS -Wlogical-op"
15690
15691		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
15692printf %s "checking if $CC supports -Wlogical-op... " >&6; }
15693		cacheid=xorg_cv_cc_flag__Wlogical_op
15694		if eval test \${$cacheid+y}
15695then :
15696  printf %s "(cached) " >&6
15697else $as_nop
15698  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15699/* end confdefs.h.  */
15700int i;
15701int
15702main (void)
15703{
15704
15705  ;
15706  return 0;
15707}
15708_ACEOF
15709if ac_fn_c_try_link "$LINENO"
15710then :
15711  eval $cacheid=yes
15712else $as_nop
15713  eval $cacheid=no
15714fi
15715rm -f core conftest.err conftest.$ac_objext conftest.beam \
15716    conftest$ac_exeext conftest.$ac_ext
15717fi
15718
15719
15720		CFLAGS="$xorg_testset_save_CFLAGS"
15721
15722		eval supported=\$$cacheid
15723		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15724printf "%s\n" "$supported" >&6; }
15725		if test "$supported" = "yes" ; then
15726			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
15727			found="yes"
15728		fi
15729	fi
15730
15731
15732
15733# These are currently disabled because they are noisy.  They will be enabled
15734# in the future once the codebase is sufficiently modernized to silence
15735# them.  For now, I don't want them to drown out the other warnings.
15736# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
15737# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
15738# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
15739
15740# Turn some warnings into errors, so we don't accidently get successful builds
15741# when there are problems that should be fixed.
15742
15743if test "x$SELECTIVE_WERROR" = "xyes" ; then
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757xorg_testset_save_CFLAGS="$CFLAGS"
15758
15759if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15760	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15761	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15762printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15763if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15764then :
15765  printf %s "(cached) " >&6
15766else $as_nop
15767  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15768/* end confdefs.h.  */
15769int i;
15770_ACEOF
15771if ac_fn_c_try_compile "$LINENO"
15772then :
15773  xorg_cv_cc_flag_unknown_warning_option=yes
15774else $as_nop
15775  xorg_cv_cc_flag_unknown_warning_option=no
15776fi
15777rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15778fi
15779{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15780printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15781	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15782	CFLAGS="$xorg_testset_save_CFLAGS"
15783fi
15784
15785if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15786	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15787		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15788	fi
15789	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15790	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15791printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15792if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15793then :
15794  printf %s "(cached) " >&6
15795else $as_nop
15796  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15797/* end confdefs.h.  */
15798int i;
15799_ACEOF
15800if ac_fn_c_try_compile "$LINENO"
15801then :
15802  xorg_cv_cc_flag_unused_command_line_argument=yes
15803else $as_nop
15804  xorg_cv_cc_flag_unused_command_line_argument=no
15805fi
15806rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15807fi
15808{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15809printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15810	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15811	CFLAGS="$xorg_testset_save_CFLAGS"
15812fi
15813
15814found="no"
15815
15816	if test $found = "no" ; then
15817		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15818			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15819		fi
15820
15821		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15822			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15823		fi
15824
15825		CFLAGS="$CFLAGS -Werror=implicit"
15826
15827		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
15828printf %s "checking if $CC supports -Werror=implicit... " >&6; }
15829		cacheid=xorg_cv_cc_flag__Werror_implicit
15830		if eval test \${$cacheid+y}
15831then :
15832  printf %s "(cached) " >&6
15833else $as_nop
15834  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15835/* end confdefs.h.  */
15836int i;
15837int
15838main (void)
15839{
15840
15841  ;
15842  return 0;
15843}
15844_ACEOF
15845if ac_fn_c_try_link "$LINENO"
15846then :
15847  eval $cacheid=yes
15848else $as_nop
15849  eval $cacheid=no
15850fi
15851rm -f core conftest.err conftest.$ac_objext conftest.beam \
15852    conftest$ac_exeext conftest.$ac_ext
15853fi
15854
15855
15856		CFLAGS="$xorg_testset_save_CFLAGS"
15857
15858		eval supported=\$$cacheid
15859		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15860printf "%s\n" "$supported" >&6; }
15861		if test "$supported" = "yes" ; then
15862			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
15863			found="yes"
15864		fi
15865	fi
15866
15867	if test $found = "no" ; then
15868		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15869			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15870		fi
15871
15872		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15873			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15874		fi
15875
15876		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15877
15878		{ 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
15879printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
15880		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
15881		if eval test \${$cacheid+y}
15882then :
15883  printf %s "(cached) " >&6
15884else $as_nop
15885  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15886/* end confdefs.h.  */
15887int i;
15888int
15889main (void)
15890{
15891
15892  ;
15893  return 0;
15894}
15895_ACEOF
15896if ac_fn_c_try_link "$LINENO"
15897then :
15898  eval $cacheid=yes
15899else $as_nop
15900  eval $cacheid=no
15901fi
15902rm -f core conftest.err conftest.$ac_objext conftest.beam \
15903    conftest$ac_exeext conftest.$ac_ext
15904fi
15905
15906
15907		CFLAGS="$xorg_testset_save_CFLAGS"
15908
15909		eval supported=\$$cacheid
15910		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15911printf "%s\n" "$supported" >&6; }
15912		if test "$supported" = "yes" ; then
15913			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15914			found="yes"
15915		fi
15916	fi
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932xorg_testset_save_CFLAGS="$CFLAGS"
15933
15934if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15935	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15936	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15937printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15938if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15939then :
15940  printf %s "(cached) " >&6
15941else $as_nop
15942  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15943/* end confdefs.h.  */
15944int i;
15945_ACEOF
15946if ac_fn_c_try_compile "$LINENO"
15947then :
15948  xorg_cv_cc_flag_unknown_warning_option=yes
15949else $as_nop
15950  xorg_cv_cc_flag_unknown_warning_option=no
15951fi
15952rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15953fi
15954{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15955printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15956	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15957	CFLAGS="$xorg_testset_save_CFLAGS"
15958fi
15959
15960if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15961	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15962		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15963	fi
15964	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15965	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15966printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15967if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15968then :
15969  printf %s "(cached) " >&6
15970else $as_nop
15971  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15972/* end confdefs.h.  */
15973int i;
15974_ACEOF
15975if ac_fn_c_try_compile "$LINENO"
15976then :
15977  xorg_cv_cc_flag_unused_command_line_argument=yes
15978else $as_nop
15979  xorg_cv_cc_flag_unused_command_line_argument=no
15980fi
15981rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15982fi
15983{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15984printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15985	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15986	CFLAGS="$xorg_testset_save_CFLAGS"
15987fi
15988
15989found="no"
15990
15991	if test $found = "no" ; then
15992		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15993			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15994		fi
15995
15996		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15997			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15998		fi
15999
16000		CFLAGS="$CFLAGS -Werror=nonnull"
16001
16002		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
16003printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
16004		cacheid=xorg_cv_cc_flag__Werror_nonnull
16005		if eval test \${$cacheid+y}
16006then :
16007  printf %s "(cached) " >&6
16008else $as_nop
16009  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16010/* end confdefs.h.  */
16011int i;
16012int
16013main (void)
16014{
16015
16016  ;
16017  return 0;
16018}
16019_ACEOF
16020if ac_fn_c_try_link "$LINENO"
16021then :
16022  eval $cacheid=yes
16023else $as_nop
16024  eval $cacheid=no
16025fi
16026rm -f core conftest.err conftest.$ac_objext conftest.beam \
16027    conftest$ac_exeext conftest.$ac_ext
16028fi
16029
16030
16031		CFLAGS="$xorg_testset_save_CFLAGS"
16032
16033		eval supported=\$$cacheid
16034		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16035printf "%s\n" "$supported" >&6; }
16036		if test "$supported" = "yes" ; then
16037			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
16038			found="yes"
16039		fi
16040	fi
16041
16042
16043
16044
16045
16046
16047
16048
16049
16050
16051
16052
16053
16054
16055
16056xorg_testset_save_CFLAGS="$CFLAGS"
16057
16058if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16059	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16060	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16061printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16062if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16063then :
16064  printf %s "(cached) " >&6
16065else $as_nop
16066  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16067/* end confdefs.h.  */
16068int i;
16069_ACEOF
16070if ac_fn_c_try_compile "$LINENO"
16071then :
16072  xorg_cv_cc_flag_unknown_warning_option=yes
16073else $as_nop
16074  xorg_cv_cc_flag_unknown_warning_option=no
16075fi
16076rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16077fi
16078{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16079printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16080	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16081	CFLAGS="$xorg_testset_save_CFLAGS"
16082fi
16083
16084if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16085	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16086		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16087	fi
16088	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16089	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16090printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16091if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16092then :
16093  printf %s "(cached) " >&6
16094else $as_nop
16095  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16096/* end confdefs.h.  */
16097int i;
16098_ACEOF
16099if ac_fn_c_try_compile "$LINENO"
16100then :
16101  xorg_cv_cc_flag_unused_command_line_argument=yes
16102else $as_nop
16103  xorg_cv_cc_flag_unused_command_line_argument=no
16104fi
16105rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16106fi
16107{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16108printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16109	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16110	CFLAGS="$xorg_testset_save_CFLAGS"
16111fi
16112
16113found="no"
16114
16115	if test $found = "no" ; then
16116		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16117			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16118		fi
16119
16120		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16121			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16122		fi
16123
16124		CFLAGS="$CFLAGS -Werror=init-self"
16125
16126		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
16127printf %s "checking if $CC supports -Werror=init-self... " >&6; }
16128		cacheid=xorg_cv_cc_flag__Werror_init_self
16129		if eval test \${$cacheid+y}
16130then :
16131  printf %s "(cached) " >&6
16132else $as_nop
16133  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16134/* end confdefs.h.  */
16135int i;
16136int
16137main (void)
16138{
16139
16140  ;
16141  return 0;
16142}
16143_ACEOF
16144if ac_fn_c_try_link "$LINENO"
16145then :
16146  eval $cacheid=yes
16147else $as_nop
16148  eval $cacheid=no
16149fi
16150rm -f core conftest.err conftest.$ac_objext conftest.beam \
16151    conftest$ac_exeext conftest.$ac_ext
16152fi
16153
16154
16155		CFLAGS="$xorg_testset_save_CFLAGS"
16156
16157		eval supported=\$$cacheid
16158		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16159printf "%s\n" "$supported" >&6; }
16160		if test "$supported" = "yes" ; then
16161			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
16162			found="yes"
16163		fi
16164	fi
16165
16166
16167
16168
16169
16170
16171
16172
16173
16174
16175
16176
16177
16178
16179
16180xorg_testset_save_CFLAGS="$CFLAGS"
16181
16182if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16183	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16184	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16185printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16186if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16187then :
16188  printf %s "(cached) " >&6
16189else $as_nop
16190  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16191/* end confdefs.h.  */
16192int i;
16193_ACEOF
16194if ac_fn_c_try_compile "$LINENO"
16195then :
16196  xorg_cv_cc_flag_unknown_warning_option=yes
16197else $as_nop
16198  xorg_cv_cc_flag_unknown_warning_option=no
16199fi
16200rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16201fi
16202{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16203printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16204	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16205	CFLAGS="$xorg_testset_save_CFLAGS"
16206fi
16207
16208if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16209	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16210		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16211	fi
16212	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16213	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16214printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16215if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16216then :
16217  printf %s "(cached) " >&6
16218else $as_nop
16219  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16220/* end confdefs.h.  */
16221int i;
16222_ACEOF
16223if ac_fn_c_try_compile "$LINENO"
16224then :
16225  xorg_cv_cc_flag_unused_command_line_argument=yes
16226else $as_nop
16227  xorg_cv_cc_flag_unused_command_line_argument=no
16228fi
16229rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16230fi
16231{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16232printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16233	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16234	CFLAGS="$xorg_testset_save_CFLAGS"
16235fi
16236
16237found="no"
16238
16239	if test $found = "no" ; then
16240		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16241			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16242		fi
16243
16244		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16245			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16246		fi
16247
16248		CFLAGS="$CFLAGS -Werror=main"
16249
16250		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
16251printf %s "checking if $CC supports -Werror=main... " >&6; }
16252		cacheid=xorg_cv_cc_flag__Werror_main
16253		if eval test \${$cacheid+y}
16254then :
16255  printf %s "(cached) " >&6
16256else $as_nop
16257  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16258/* end confdefs.h.  */
16259int i;
16260int
16261main (void)
16262{
16263
16264  ;
16265  return 0;
16266}
16267_ACEOF
16268if ac_fn_c_try_link "$LINENO"
16269then :
16270  eval $cacheid=yes
16271else $as_nop
16272  eval $cacheid=no
16273fi
16274rm -f core conftest.err conftest.$ac_objext conftest.beam \
16275    conftest$ac_exeext conftest.$ac_ext
16276fi
16277
16278
16279		CFLAGS="$xorg_testset_save_CFLAGS"
16280
16281		eval supported=\$$cacheid
16282		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16283printf "%s\n" "$supported" >&6; }
16284		if test "$supported" = "yes" ; then
16285			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
16286			found="yes"
16287		fi
16288	fi
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298
16299
16300
16301
16302
16303
16304xorg_testset_save_CFLAGS="$CFLAGS"
16305
16306if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16307	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16308	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16309printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16310if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16311then :
16312  printf %s "(cached) " >&6
16313else $as_nop
16314  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16315/* end confdefs.h.  */
16316int i;
16317_ACEOF
16318if ac_fn_c_try_compile "$LINENO"
16319then :
16320  xorg_cv_cc_flag_unknown_warning_option=yes
16321else $as_nop
16322  xorg_cv_cc_flag_unknown_warning_option=no
16323fi
16324rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16325fi
16326{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16327printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16328	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16329	CFLAGS="$xorg_testset_save_CFLAGS"
16330fi
16331
16332if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16333	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16334		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16335	fi
16336	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16337	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16338printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16339if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16340then :
16341  printf %s "(cached) " >&6
16342else $as_nop
16343  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16344/* end confdefs.h.  */
16345int i;
16346_ACEOF
16347if ac_fn_c_try_compile "$LINENO"
16348then :
16349  xorg_cv_cc_flag_unused_command_line_argument=yes
16350else $as_nop
16351  xorg_cv_cc_flag_unused_command_line_argument=no
16352fi
16353rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16354fi
16355{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16356printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16357	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16358	CFLAGS="$xorg_testset_save_CFLAGS"
16359fi
16360
16361found="no"
16362
16363	if test $found = "no" ; then
16364		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16365			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16366		fi
16367
16368		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16369			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16370		fi
16371
16372		CFLAGS="$CFLAGS -Werror=missing-braces"
16373
16374		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
16375printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
16376		cacheid=xorg_cv_cc_flag__Werror_missing_braces
16377		if eval test \${$cacheid+y}
16378then :
16379  printf %s "(cached) " >&6
16380else $as_nop
16381  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16382/* end confdefs.h.  */
16383int i;
16384int
16385main (void)
16386{
16387
16388  ;
16389  return 0;
16390}
16391_ACEOF
16392if ac_fn_c_try_link "$LINENO"
16393then :
16394  eval $cacheid=yes
16395else $as_nop
16396  eval $cacheid=no
16397fi
16398rm -f core conftest.err conftest.$ac_objext conftest.beam \
16399    conftest$ac_exeext conftest.$ac_ext
16400fi
16401
16402
16403		CFLAGS="$xorg_testset_save_CFLAGS"
16404
16405		eval supported=\$$cacheid
16406		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16407printf "%s\n" "$supported" >&6; }
16408		if test "$supported" = "yes" ; then
16409			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
16410			found="yes"
16411		fi
16412	fi
16413
16414
16415
16416
16417
16418
16419
16420
16421
16422
16423
16424
16425
16426
16427
16428xorg_testset_save_CFLAGS="$CFLAGS"
16429
16430if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16431	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16432	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16433printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16434if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16435then :
16436  printf %s "(cached) " >&6
16437else $as_nop
16438  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16439/* end confdefs.h.  */
16440int i;
16441_ACEOF
16442if ac_fn_c_try_compile "$LINENO"
16443then :
16444  xorg_cv_cc_flag_unknown_warning_option=yes
16445else $as_nop
16446  xorg_cv_cc_flag_unknown_warning_option=no
16447fi
16448rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16449fi
16450{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16451printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16452	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16453	CFLAGS="$xorg_testset_save_CFLAGS"
16454fi
16455
16456if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16457	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16458		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16459	fi
16460	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16461	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16462printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16463if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16464then :
16465  printf %s "(cached) " >&6
16466else $as_nop
16467  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16468/* end confdefs.h.  */
16469int i;
16470_ACEOF
16471if ac_fn_c_try_compile "$LINENO"
16472then :
16473  xorg_cv_cc_flag_unused_command_line_argument=yes
16474else $as_nop
16475  xorg_cv_cc_flag_unused_command_line_argument=no
16476fi
16477rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16478fi
16479{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16480printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16481	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16482	CFLAGS="$xorg_testset_save_CFLAGS"
16483fi
16484
16485found="no"
16486
16487	if test $found = "no" ; then
16488		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16489			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16490		fi
16491
16492		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16493			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16494		fi
16495
16496		CFLAGS="$CFLAGS -Werror=sequence-point"
16497
16498		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
16499printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
16500		cacheid=xorg_cv_cc_flag__Werror_sequence_point
16501		if eval test \${$cacheid+y}
16502then :
16503  printf %s "(cached) " >&6
16504else $as_nop
16505  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16506/* end confdefs.h.  */
16507int i;
16508int
16509main (void)
16510{
16511
16512  ;
16513  return 0;
16514}
16515_ACEOF
16516if ac_fn_c_try_link "$LINENO"
16517then :
16518  eval $cacheid=yes
16519else $as_nop
16520  eval $cacheid=no
16521fi
16522rm -f core conftest.err conftest.$ac_objext conftest.beam \
16523    conftest$ac_exeext conftest.$ac_ext
16524fi
16525
16526
16527		CFLAGS="$xorg_testset_save_CFLAGS"
16528
16529		eval supported=\$$cacheid
16530		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16531printf "%s\n" "$supported" >&6; }
16532		if test "$supported" = "yes" ; then
16533			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
16534			found="yes"
16535		fi
16536	fi
16537
16538
16539
16540
16541
16542
16543
16544
16545
16546
16547
16548
16549
16550
16551
16552xorg_testset_save_CFLAGS="$CFLAGS"
16553
16554if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16555	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16556	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16557printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16558if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16559then :
16560  printf %s "(cached) " >&6
16561else $as_nop
16562  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16563/* end confdefs.h.  */
16564int i;
16565_ACEOF
16566if ac_fn_c_try_compile "$LINENO"
16567then :
16568  xorg_cv_cc_flag_unknown_warning_option=yes
16569else $as_nop
16570  xorg_cv_cc_flag_unknown_warning_option=no
16571fi
16572rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16573fi
16574{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16575printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16576	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16577	CFLAGS="$xorg_testset_save_CFLAGS"
16578fi
16579
16580if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16581	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16582		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16583	fi
16584	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16585	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16586printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16587if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16588then :
16589  printf %s "(cached) " >&6
16590else $as_nop
16591  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16592/* end confdefs.h.  */
16593int i;
16594_ACEOF
16595if ac_fn_c_try_compile "$LINENO"
16596then :
16597  xorg_cv_cc_flag_unused_command_line_argument=yes
16598else $as_nop
16599  xorg_cv_cc_flag_unused_command_line_argument=no
16600fi
16601rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16602fi
16603{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16604printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16605	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16606	CFLAGS="$xorg_testset_save_CFLAGS"
16607fi
16608
16609found="no"
16610
16611	if test $found = "no" ; then
16612		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16613			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16614		fi
16615
16616		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16617			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16618		fi
16619
16620		CFLAGS="$CFLAGS -Werror=return-type"
16621
16622		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
16623printf %s "checking if $CC supports -Werror=return-type... " >&6; }
16624		cacheid=xorg_cv_cc_flag__Werror_return_type
16625		if eval test \${$cacheid+y}
16626then :
16627  printf %s "(cached) " >&6
16628else $as_nop
16629  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16630/* end confdefs.h.  */
16631int i;
16632int
16633main (void)
16634{
16635
16636  ;
16637  return 0;
16638}
16639_ACEOF
16640if ac_fn_c_try_link "$LINENO"
16641then :
16642  eval $cacheid=yes
16643else $as_nop
16644  eval $cacheid=no
16645fi
16646rm -f core conftest.err conftest.$ac_objext conftest.beam \
16647    conftest$ac_exeext conftest.$ac_ext
16648fi
16649
16650
16651		CFLAGS="$xorg_testset_save_CFLAGS"
16652
16653		eval supported=\$$cacheid
16654		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16655printf "%s\n" "$supported" >&6; }
16656		if test "$supported" = "yes" ; then
16657			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
16658			found="yes"
16659		fi
16660	fi
16661
16662	if test $found = "no" ; then
16663		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16664			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16665		fi
16666
16667		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16668			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16669		fi
16670
16671		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16672
16673		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
16674printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
16675		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
16676		if eval test \${$cacheid+y}
16677then :
16678  printf %s "(cached) " >&6
16679else $as_nop
16680  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16681/* end confdefs.h.  */
16682int i;
16683int
16684main (void)
16685{
16686
16687  ;
16688  return 0;
16689}
16690_ACEOF
16691if ac_fn_c_try_link "$LINENO"
16692then :
16693  eval $cacheid=yes
16694else $as_nop
16695  eval $cacheid=no
16696fi
16697rm -f core conftest.err conftest.$ac_objext conftest.beam \
16698    conftest$ac_exeext conftest.$ac_ext
16699fi
16700
16701
16702		CFLAGS="$xorg_testset_save_CFLAGS"
16703
16704		eval supported=\$$cacheid
16705		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16706printf "%s\n" "$supported" >&6; }
16707		if test "$supported" = "yes" ; then
16708			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16709			found="yes"
16710		fi
16711	fi
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727xorg_testset_save_CFLAGS="$CFLAGS"
16728
16729if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16730	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16731	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16732printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16733if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16734then :
16735  printf %s "(cached) " >&6
16736else $as_nop
16737  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16738/* end confdefs.h.  */
16739int i;
16740_ACEOF
16741if ac_fn_c_try_compile "$LINENO"
16742then :
16743  xorg_cv_cc_flag_unknown_warning_option=yes
16744else $as_nop
16745  xorg_cv_cc_flag_unknown_warning_option=no
16746fi
16747rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16748fi
16749{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16750printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16751	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16752	CFLAGS="$xorg_testset_save_CFLAGS"
16753fi
16754
16755if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16756	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16757		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16758	fi
16759	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16760	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16761printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16762if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16763then :
16764  printf %s "(cached) " >&6
16765else $as_nop
16766  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16767/* end confdefs.h.  */
16768int i;
16769_ACEOF
16770if ac_fn_c_try_compile "$LINENO"
16771then :
16772  xorg_cv_cc_flag_unused_command_line_argument=yes
16773else $as_nop
16774  xorg_cv_cc_flag_unused_command_line_argument=no
16775fi
16776rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16777fi
16778{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16779printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16780	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16781	CFLAGS="$xorg_testset_save_CFLAGS"
16782fi
16783
16784found="no"
16785
16786	if test $found = "no" ; then
16787		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16788			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16789		fi
16790
16791		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16792			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16793		fi
16794
16795		CFLAGS="$CFLAGS -Werror=trigraphs"
16796
16797		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
16798printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
16799		cacheid=xorg_cv_cc_flag__Werror_trigraphs
16800		if eval test \${$cacheid+y}
16801then :
16802  printf %s "(cached) " >&6
16803else $as_nop
16804  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16805/* end confdefs.h.  */
16806int i;
16807int
16808main (void)
16809{
16810
16811  ;
16812  return 0;
16813}
16814_ACEOF
16815if ac_fn_c_try_link "$LINENO"
16816then :
16817  eval $cacheid=yes
16818else $as_nop
16819  eval $cacheid=no
16820fi
16821rm -f core conftest.err conftest.$ac_objext conftest.beam \
16822    conftest$ac_exeext conftest.$ac_ext
16823fi
16824
16825
16826		CFLAGS="$xorg_testset_save_CFLAGS"
16827
16828		eval supported=\$$cacheid
16829		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16830printf "%s\n" "$supported" >&6; }
16831		if test "$supported" = "yes" ; then
16832			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
16833			found="yes"
16834		fi
16835	fi
16836
16837
16838
16839
16840
16841
16842
16843
16844
16845
16846
16847
16848
16849
16850
16851xorg_testset_save_CFLAGS="$CFLAGS"
16852
16853if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16854	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16855	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16856printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16857if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16858then :
16859  printf %s "(cached) " >&6
16860else $as_nop
16861  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16862/* end confdefs.h.  */
16863int i;
16864_ACEOF
16865if ac_fn_c_try_compile "$LINENO"
16866then :
16867  xorg_cv_cc_flag_unknown_warning_option=yes
16868else $as_nop
16869  xorg_cv_cc_flag_unknown_warning_option=no
16870fi
16871rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16872fi
16873{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16874printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16875	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16876	CFLAGS="$xorg_testset_save_CFLAGS"
16877fi
16878
16879if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16880	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16881		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16882	fi
16883	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16884	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16885printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16886if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16887then :
16888  printf %s "(cached) " >&6
16889else $as_nop
16890  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16891/* end confdefs.h.  */
16892int i;
16893_ACEOF
16894if ac_fn_c_try_compile "$LINENO"
16895then :
16896  xorg_cv_cc_flag_unused_command_line_argument=yes
16897else $as_nop
16898  xorg_cv_cc_flag_unused_command_line_argument=no
16899fi
16900rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16901fi
16902{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16903printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16904	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16905	CFLAGS="$xorg_testset_save_CFLAGS"
16906fi
16907
16908found="no"
16909
16910	if test $found = "no" ; then
16911		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16912			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16913		fi
16914
16915		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16916			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16917		fi
16918
16919		CFLAGS="$CFLAGS -Werror=array-bounds"
16920
16921		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
16922printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
16923		cacheid=xorg_cv_cc_flag__Werror_array_bounds
16924		if eval test \${$cacheid+y}
16925then :
16926  printf %s "(cached) " >&6
16927else $as_nop
16928  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16929/* end confdefs.h.  */
16930int i;
16931int
16932main (void)
16933{
16934
16935  ;
16936  return 0;
16937}
16938_ACEOF
16939if ac_fn_c_try_link "$LINENO"
16940then :
16941  eval $cacheid=yes
16942else $as_nop
16943  eval $cacheid=no
16944fi
16945rm -f core conftest.err conftest.$ac_objext conftest.beam \
16946    conftest$ac_exeext conftest.$ac_ext
16947fi
16948
16949
16950		CFLAGS="$xorg_testset_save_CFLAGS"
16951
16952		eval supported=\$$cacheid
16953		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16954printf "%s\n" "$supported" >&6; }
16955		if test "$supported" = "yes" ; then
16956			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
16957			found="yes"
16958		fi
16959	fi
16960
16961
16962
16963
16964
16965
16966
16967
16968
16969
16970
16971
16972
16973
16974
16975xorg_testset_save_CFLAGS="$CFLAGS"
16976
16977if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16978	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16979	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16980printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16981if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16982then :
16983  printf %s "(cached) " >&6
16984else $as_nop
16985  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16986/* end confdefs.h.  */
16987int i;
16988_ACEOF
16989if ac_fn_c_try_compile "$LINENO"
16990then :
16991  xorg_cv_cc_flag_unknown_warning_option=yes
16992else $as_nop
16993  xorg_cv_cc_flag_unknown_warning_option=no
16994fi
16995rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16996fi
16997{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16998printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16999	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17000	CFLAGS="$xorg_testset_save_CFLAGS"
17001fi
17002
17003if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17004	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17005		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17006	fi
17007	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17008	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17009printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17010if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17011then :
17012  printf %s "(cached) " >&6
17013else $as_nop
17014  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17015/* end confdefs.h.  */
17016int i;
17017_ACEOF
17018if ac_fn_c_try_compile "$LINENO"
17019then :
17020  xorg_cv_cc_flag_unused_command_line_argument=yes
17021else $as_nop
17022  xorg_cv_cc_flag_unused_command_line_argument=no
17023fi
17024rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17025fi
17026{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17027printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17028	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17029	CFLAGS="$xorg_testset_save_CFLAGS"
17030fi
17031
17032found="no"
17033
17034	if test $found = "no" ; then
17035		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17036			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17037		fi
17038
17039		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17040			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17041		fi
17042
17043		CFLAGS="$CFLAGS -Werror=write-strings"
17044
17045		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
17046printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
17047		cacheid=xorg_cv_cc_flag__Werror_write_strings
17048		if eval test \${$cacheid+y}
17049then :
17050  printf %s "(cached) " >&6
17051else $as_nop
17052  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17053/* end confdefs.h.  */
17054int i;
17055int
17056main (void)
17057{
17058
17059  ;
17060  return 0;
17061}
17062_ACEOF
17063if ac_fn_c_try_link "$LINENO"
17064then :
17065  eval $cacheid=yes
17066else $as_nop
17067  eval $cacheid=no
17068fi
17069rm -f core conftest.err conftest.$ac_objext conftest.beam \
17070    conftest$ac_exeext conftest.$ac_ext
17071fi
17072
17073
17074		CFLAGS="$xorg_testset_save_CFLAGS"
17075
17076		eval supported=\$$cacheid
17077		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17078printf "%s\n" "$supported" >&6; }
17079		if test "$supported" = "yes" ; then
17080			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
17081			found="yes"
17082		fi
17083	fi
17084
17085
17086
17087
17088
17089
17090
17091
17092
17093
17094
17095
17096
17097
17098
17099xorg_testset_save_CFLAGS="$CFLAGS"
17100
17101if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17102	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17103	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17104printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17105if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17106then :
17107  printf %s "(cached) " >&6
17108else $as_nop
17109  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17110/* end confdefs.h.  */
17111int i;
17112_ACEOF
17113if ac_fn_c_try_compile "$LINENO"
17114then :
17115  xorg_cv_cc_flag_unknown_warning_option=yes
17116else $as_nop
17117  xorg_cv_cc_flag_unknown_warning_option=no
17118fi
17119rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17120fi
17121{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17122printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17123	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17124	CFLAGS="$xorg_testset_save_CFLAGS"
17125fi
17126
17127if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17128	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17129		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17130	fi
17131	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17132	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17133printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17134if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17135then :
17136  printf %s "(cached) " >&6
17137else $as_nop
17138  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17139/* end confdefs.h.  */
17140int i;
17141_ACEOF
17142if ac_fn_c_try_compile "$LINENO"
17143then :
17144  xorg_cv_cc_flag_unused_command_line_argument=yes
17145else $as_nop
17146  xorg_cv_cc_flag_unused_command_line_argument=no
17147fi
17148rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17149fi
17150{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17151printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17152	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17153	CFLAGS="$xorg_testset_save_CFLAGS"
17154fi
17155
17156found="no"
17157
17158	if test $found = "no" ; then
17159		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17160			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17161		fi
17162
17163		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17164			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17165		fi
17166
17167		CFLAGS="$CFLAGS -Werror=address"
17168
17169		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
17170printf %s "checking if $CC supports -Werror=address... " >&6; }
17171		cacheid=xorg_cv_cc_flag__Werror_address
17172		if eval test \${$cacheid+y}
17173then :
17174  printf %s "(cached) " >&6
17175else $as_nop
17176  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17177/* end confdefs.h.  */
17178int i;
17179int
17180main (void)
17181{
17182
17183  ;
17184  return 0;
17185}
17186_ACEOF
17187if ac_fn_c_try_link "$LINENO"
17188then :
17189  eval $cacheid=yes
17190else $as_nop
17191  eval $cacheid=no
17192fi
17193rm -f core conftest.err conftest.$ac_objext conftest.beam \
17194    conftest$ac_exeext conftest.$ac_ext
17195fi
17196
17197
17198		CFLAGS="$xorg_testset_save_CFLAGS"
17199
17200		eval supported=\$$cacheid
17201		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17202printf "%s\n" "$supported" >&6; }
17203		if test "$supported" = "yes" ; then
17204			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
17205			found="yes"
17206		fi
17207	fi
17208
17209
17210
17211
17212
17213
17214
17215
17216
17217
17218
17219
17220
17221
17222
17223xorg_testset_save_CFLAGS="$CFLAGS"
17224
17225if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17226	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17227	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17228printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17229if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17230then :
17231  printf %s "(cached) " >&6
17232else $as_nop
17233  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17234/* end confdefs.h.  */
17235int i;
17236_ACEOF
17237if ac_fn_c_try_compile "$LINENO"
17238then :
17239  xorg_cv_cc_flag_unknown_warning_option=yes
17240else $as_nop
17241  xorg_cv_cc_flag_unknown_warning_option=no
17242fi
17243rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17244fi
17245{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17246printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17247	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17248	CFLAGS="$xorg_testset_save_CFLAGS"
17249fi
17250
17251if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17252	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17253		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17254	fi
17255	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17256	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17257printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17258if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17259then :
17260  printf %s "(cached) " >&6
17261else $as_nop
17262  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17263/* end confdefs.h.  */
17264int i;
17265_ACEOF
17266if ac_fn_c_try_compile "$LINENO"
17267then :
17268  xorg_cv_cc_flag_unused_command_line_argument=yes
17269else $as_nop
17270  xorg_cv_cc_flag_unused_command_line_argument=no
17271fi
17272rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17273fi
17274{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17275printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17276	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17277	CFLAGS="$xorg_testset_save_CFLAGS"
17278fi
17279
17280found="no"
17281
17282	if test $found = "no" ; then
17283		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17284			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17285		fi
17286
17287		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17288			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17289		fi
17290
17291		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
17292
17293		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
17294printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
17295		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
17296		if eval test \${$cacheid+y}
17297then :
17298  printf %s "(cached) " >&6
17299else $as_nop
17300  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17301/* end confdefs.h.  */
17302int i;
17303int
17304main (void)
17305{
17306
17307  ;
17308  return 0;
17309}
17310_ACEOF
17311if ac_fn_c_try_link "$LINENO"
17312then :
17313  eval $cacheid=yes
17314else $as_nop
17315  eval $cacheid=no
17316fi
17317rm -f core conftest.err conftest.$ac_objext conftest.beam \
17318    conftest$ac_exeext conftest.$ac_ext
17319fi
17320
17321
17322		CFLAGS="$xorg_testset_save_CFLAGS"
17323
17324		eval supported=\$$cacheid
17325		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17326printf "%s\n" "$supported" >&6; }
17327		if test "$supported" = "yes" ; then
17328			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
17329			found="yes"
17330		fi
17331	fi
17332
17333	if test $found = "no" ; then
17334		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17335			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17336		fi
17337
17338		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17339			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17340		fi
17341
17342		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
17343
17344		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
17345printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
17346		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
17347		if eval test \${$cacheid+y}
17348then :
17349  printf %s "(cached) " >&6
17350else $as_nop
17351  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17352/* end confdefs.h.  */
17353int i;
17354int
17355main (void)
17356{
17357
17358  ;
17359  return 0;
17360}
17361_ACEOF
17362if ac_fn_c_try_link "$LINENO"
17363then :
17364  eval $cacheid=yes
17365else $as_nop
17366  eval $cacheid=no
17367fi
17368rm -f core conftest.err conftest.$ac_objext conftest.beam \
17369    conftest$ac_exeext conftest.$ac_ext
17370fi
17371
17372
17373		CFLAGS="$xorg_testset_save_CFLAGS"
17374
17375		eval supported=\$$cacheid
17376		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17377printf "%s\n" "$supported" >&6; }
17378		if test "$supported" = "yes" ; then
17379			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
17380			found="yes"
17381		fi
17382	fi
17383
17384
17385
17386
17387
17388
17389
17390
17391
17392
17393
17394
17395
17396
17397
17398xorg_testset_save_CFLAGS="$CFLAGS"
17399
17400if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17401	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17402	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17403printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17404if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17405then :
17406  printf %s "(cached) " >&6
17407else $as_nop
17408  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17409/* end confdefs.h.  */
17410int i;
17411_ACEOF
17412if ac_fn_c_try_compile "$LINENO"
17413then :
17414  xorg_cv_cc_flag_unknown_warning_option=yes
17415else $as_nop
17416  xorg_cv_cc_flag_unknown_warning_option=no
17417fi
17418rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17419fi
17420{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17421printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17422	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17423	CFLAGS="$xorg_testset_save_CFLAGS"
17424fi
17425
17426if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17427	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17428		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17429	fi
17430	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17431	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17432printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17433if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17434then :
17435  printf %s "(cached) " >&6
17436else $as_nop
17437  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17438/* end confdefs.h.  */
17439int i;
17440_ACEOF
17441if ac_fn_c_try_compile "$LINENO"
17442then :
17443  xorg_cv_cc_flag_unused_command_line_argument=yes
17444else $as_nop
17445  xorg_cv_cc_flag_unused_command_line_argument=no
17446fi
17447rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17448fi
17449{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17450printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17451	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17452	CFLAGS="$xorg_testset_save_CFLAGS"
17453fi
17454
17455found="no"
17456
17457	if test $found = "no" ; then
17458		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17459			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17460		fi
17461
17462		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17463			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17464		fi
17465
17466		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
17467
17468		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
17469printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
17470		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
17471		if eval test \${$cacheid+y}
17472then :
17473  printf %s "(cached) " >&6
17474else $as_nop
17475  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17476/* end confdefs.h.  */
17477int i;
17478int
17479main (void)
17480{
17481
17482  ;
17483  return 0;
17484}
17485_ACEOF
17486if ac_fn_c_try_link "$LINENO"
17487then :
17488  eval $cacheid=yes
17489else $as_nop
17490  eval $cacheid=no
17491fi
17492rm -f core conftest.err conftest.$ac_objext conftest.beam \
17493    conftest$ac_exeext conftest.$ac_ext
17494fi
17495
17496
17497		CFLAGS="$xorg_testset_save_CFLAGS"
17498
17499		eval supported=\$$cacheid
17500		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17501printf "%s\n" "$supported" >&6; }
17502		if test "$supported" = "yes" ; then
17503			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
17504			found="yes"
17505		fi
17506	fi
17507
17508 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
17509else
17510{ 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
17511printf "%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;}
17512
17513
17514
17515
17516
17517
17518
17519
17520
17521
17522
17523
17524
17525xorg_testset_save_CFLAGS="$CFLAGS"
17526
17527if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17528	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17529	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17530printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17531if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17532then :
17533  printf %s "(cached) " >&6
17534else $as_nop
17535  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17536/* end confdefs.h.  */
17537int i;
17538_ACEOF
17539if ac_fn_c_try_compile "$LINENO"
17540then :
17541  xorg_cv_cc_flag_unknown_warning_option=yes
17542else $as_nop
17543  xorg_cv_cc_flag_unknown_warning_option=no
17544fi
17545rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17546fi
17547{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17548printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17549	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17550	CFLAGS="$xorg_testset_save_CFLAGS"
17551fi
17552
17553if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17554	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17555		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17556	fi
17557	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17558	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17559printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17560if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17561then :
17562  printf %s "(cached) " >&6
17563else $as_nop
17564  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17565/* end confdefs.h.  */
17566int i;
17567_ACEOF
17568if ac_fn_c_try_compile "$LINENO"
17569then :
17570  xorg_cv_cc_flag_unused_command_line_argument=yes
17571else $as_nop
17572  xorg_cv_cc_flag_unused_command_line_argument=no
17573fi
17574rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17575fi
17576{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17577printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17578	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17579	CFLAGS="$xorg_testset_save_CFLAGS"
17580fi
17581
17582found="no"
17583
17584	if test $found = "no" ; then
17585		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17586			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17587		fi
17588
17589		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17590			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17591		fi
17592
17593		CFLAGS="$CFLAGS -Wimplicit"
17594
17595		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
17596printf %s "checking if $CC supports -Wimplicit... " >&6; }
17597		cacheid=xorg_cv_cc_flag__Wimplicit
17598		if eval test \${$cacheid+y}
17599then :
17600  printf %s "(cached) " >&6
17601else $as_nop
17602  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17603/* end confdefs.h.  */
17604int i;
17605int
17606main (void)
17607{
17608
17609  ;
17610  return 0;
17611}
17612_ACEOF
17613if ac_fn_c_try_link "$LINENO"
17614then :
17615  eval $cacheid=yes
17616else $as_nop
17617  eval $cacheid=no
17618fi
17619rm -f core conftest.err conftest.$ac_objext conftest.beam \
17620    conftest$ac_exeext conftest.$ac_ext
17621fi
17622
17623
17624		CFLAGS="$xorg_testset_save_CFLAGS"
17625
17626		eval supported=\$$cacheid
17627		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17628printf "%s\n" "$supported" >&6; }
17629		if test "$supported" = "yes" ; then
17630			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
17631			found="yes"
17632		fi
17633	fi
17634
17635
17636
17637
17638
17639
17640
17641
17642
17643
17644
17645
17646
17647
17648
17649xorg_testset_save_CFLAGS="$CFLAGS"
17650
17651if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17652	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17653	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17654printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17655if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17656then :
17657  printf %s "(cached) " >&6
17658else $as_nop
17659  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17660/* end confdefs.h.  */
17661int i;
17662_ACEOF
17663if ac_fn_c_try_compile "$LINENO"
17664then :
17665  xorg_cv_cc_flag_unknown_warning_option=yes
17666else $as_nop
17667  xorg_cv_cc_flag_unknown_warning_option=no
17668fi
17669rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17670fi
17671{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17672printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17673	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17674	CFLAGS="$xorg_testset_save_CFLAGS"
17675fi
17676
17677if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17678	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17679		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17680	fi
17681	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17682	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17683printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17684if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17685then :
17686  printf %s "(cached) " >&6
17687else $as_nop
17688  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17689/* end confdefs.h.  */
17690int i;
17691_ACEOF
17692if ac_fn_c_try_compile "$LINENO"
17693then :
17694  xorg_cv_cc_flag_unused_command_line_argument=yes
17695else $as_nop
17696  xorg_cv_cc_flag_unused_command_line_argument=no
17697fi
17698rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17699fi
17700{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17701printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17702	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17703	CFLAGS="$xorg_testset_save_CFLAGS"
17704fi
17705
17706found="no"
17707
17708	if test $found = "no" ; then
17709		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17710			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17711		fi
17712
17713		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17714			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17715		fi
17716
17717		CFLAGS="$CFLAGS -Wnonnull"
17718
17719		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
17720printf %s "checking if $CC supports -Wnonnull... " >&6; }
17721		cacheid=xorg_cv_cc_flag__Wnonnull
17722		if eval test \${$cacheid+y}
17723then :
17724  printf %s "(cached) " >&6
17725else $as_nop
17726  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17727/* end confdefs.h.  */
17728int i;
17729int
17730main (void)
17731{
17732
17733  ;
17734  return 0;
17735}
17736_ACEOF
17737if ac_fn_c_try_link "$LINENO"
17738then :
17739  eval $cacheid=yes
17740else $as_nop
17741  eval $cacheid=no
17742fi
17743rm -f core conftest.err conftest.$ac_objext conftest.beam \
17744    conftest$ac_exeext conftest.$ac_ext
17745fi
17746
17747
17748		CFLAGS="$xorg_testset_save_CFLAGS"
17749
17750		eval supported=\$$cacheid
17751		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17752printf "%s\n" "$supported" >&6; }
17753		if test "$supported" = "yes" ; then
17754			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
17755			found="yes"
17756		fi
17757	fi
17758
17759
17760
17761
17762
17763
17764
17765
17766
17767
17768
17769
17770
17771
17772
17773xorg_testset_save_CFLAGS="$CFLAGS"
17774
17775if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17776	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17777	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17778printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17779if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17780then :
17781  printf %s "(cached) " >&6
17782else $as_nop
17783  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17784/* end confdefs.h.  */
17785int i;
17786_ACEOF
17787if ac_fn_c_try_compile "$LINENO"
17788then :
17789  xorg_cv_cc_flag_unknown_warning_option=yes
17790else $as_nop
17791  xorg_cv_cc_flag_unknown_warning_option=no
17792fi
17793rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17794fi
17795{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17796printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17797	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17798	CFLAGS="$xorg_testset_save_CFLAGS"
17799fi
17800
17801if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17802	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17803		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17804	fi
17805	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17806	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17807printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17808if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17809then :
17810  printf %s "(cached) " >&6
17811else $as_nop
17812  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17813/* end confdefs.h.  */
17814int i;
17815_ACEOF
17816if ac_fn_c_try_compile "$LINENO"
17817then :
17818  xorg_cv_cc_flag_unused_command_line_argument=yes
17819else $as_nop
17820  xorg_cv_cc_flag_unused_command_line_argument=no
17821fi
17822rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17823fi
17824{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17825printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17826	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17827	CFLAGS="$xorg_testset_save_CFLAGS"
17828fi
17829
17830found="no"
17831
17832	if test $found = "no" ; then
17833		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17834			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17835		fi
17836
17837		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17838			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17839		fi
17840
17841		CFLAGS="$CFLAGS -Winit-self"
17842
17843		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
17844printf %s "checking if $CC supports -Winit-self... " >&6; }
17845		cacheid=xorg_cv_cc_flag__Winit_self
17846		if eval test \${$cacheid+y}
17847then :
17848  printf %s "(cached) " >&6
17849else $as_nop
17850  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17851/* end confdefs.h.  */
17852int i;
17853int
17854main (void)
17855{
17856
17857  ;
17858  return 0;
17859}
17860_ACEOF
17861if ac_fn_c_try_link "$LINENO"
17862then :
17863  eval $cacheid=yes
17864else $as_nop
17865  eval $cacheid=no
17866fi
17867rm -f core conftest.err conftest.$ac_objext conftest.beam \
17868    conftest$ac_exeext conftest.$ac_ext
17869fi
17870
17871
17872		CFLAGS="$xorg_testset_save_CFLAGS"
17873
17874		eval supported=\$$cacheid
17875		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17876printf "%s\n" "$supported" >&6; }
17877		if test "$supported" = "yes" ; then
17878			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
17879			found="yes"
17880		fi
17881	fi
17882
17883
17884
17885
17886
17887
17888
17889
17890
17891
17892
17893
17894
17895
17896
17897xorg_testset_save_CFLAGS="$CFLAGS"
17898
17899if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17900	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17901	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17902printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17903if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17904then :
17905  printf %s "(cached) " >&6
17906else $as_nop
17907  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17908/* end confdefs.h.  */
17909int i;
17910_ACEOF
17911if ac_fn_c_try_compile "$LINENO"
17912then :
17913  xorg_cv_cc_flag_unknown_warning_option=yes
17914else $as_nop
17915  xorg_cv_cc_flag_unknown_warning_option=no
17916fi
17917rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17918fi
17919{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17920printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17921	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17922	CFLAGS="$xorg_testset_save_CFLAGS"
17923fi
17924
17925if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17926	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17927		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17928	fi
17929	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17930	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17931printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17932if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17933then :
17934  printf %s "(cached) " >&6
17935else $as_nop
17936  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17937/* end confdefs.h.  */
17938int i;
17939_ACEOF
17940if ac_fn_c_try_compile "$LINENO"
17941then :
17942  xorg_cv_cc_flag_unused_command_line_argument=yes
17943else $as_nop
17944  xorg_cv_cc_flag_unused_command_line_argument=no
17945fi
17946rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17947fi
17948{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17949printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17950	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17951	CFLAGS="$xorg_testset_save_CFLAGS"
17952fi
17953
17954found="no"
17955
17956	if test $found = "no" ; then
17957		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17958			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17959		fi
17960
17961		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17962			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17963		fi
17964
17965		CFLAGS="$CFLAGS -Wmain"
17966
17967		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
17968printf %s "checking if $CC supports -Wmain... " >&6; }
17969		cacheid=xorg_cv_cc_flag__Wmain
17970		if eval test \${$cacheid+y}
17971then :
17972  printf %s "(cached) " >&6
17973else $as_nop
17974  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17975/* end confdefs.h.  */
17976int i;
17977int
17978main (void)
17979{
17980
17981  ;
17982  return 0;
17983}
17984_ACEOF
17985if ac_fn_c_try_link "$LINENO"
17986then :
17987  eval $cacheid=yes
17988else $as_nop
17989  eval $cacheid=no
17990fi
17991rm -f core conftest.err conftest.$ac_objext conftest.beam \
17992    conftest$ac_exeext conftest.$ac_ext
17993fi
17994
17995
17996		CFLAGS="$xorg_testset_save_CFLAGS"
17997
17998		eval supported=\$$cacheid
17999		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18000printf "%s\n" "$supported" >&6; }
18001		if test "$supported" = "yes" ; then
18002			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
18003			found="yes"
18004		fi
18005	fi
18006
18007
18008
18009
18010
18011
18012
18013
18014
18015
18016
18017
18018
18019
18020
18021xorg_testset_save_CFLAGS="$CFLAGS"
18022
18023if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18024	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18025	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18026printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18027if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18028then :
18029  printf %s "(cached) " >&6
18030else $as_nop
18031  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18032/* end confdefs.h.  */
18033int i;
18034_ACEOF
18035if ac_fn_c_try_compile "$LINENO"
18036then :
18037  xorg_cv_cc_flag_unknown_warning_option=yes
18038else $as_nop
18039  xorg_cv_cc_flag_unknown_warning_option=no
18040fi
18041rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18042fi
18043{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18044printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18045	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18046	CFLAGS="$xorg_testset_save_CFLAGS"
18047fi
18048
18049if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18050	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18051		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18052	fi
18053	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18054	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18055printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18056if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18057then :
18058  printf %s "(cached) " >&6
18059else $as_nop
18060  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18061/* end confdefs.h.  */
18062int i;
18063_ACEOF
18064if ac_fn_c_try_compile "$LINENO"
18065then :
18066  xorg_cv_cc_flag_unused_command_line_argument=yes
18067else $as_nop
18068  xorg_cv_cc_flag_unused_command_line_argument=no
18069fi
18070rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18071fi
18072{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18073printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18074	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18075	CFLAGS="$xorg_testset_save_CFLAGS"
18076fi
18077
18078found="no"
18079
18080	if test $found = "no" ; then
18081		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18082			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18083		fi
18084
18085		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18086			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18087		fi
18088
18089		CFLAGS="$CFLAGS -Wmissing-braces"
18090
18091		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
18092printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
18093		cacheid=xorg_cv_cc_flag__Wmissing_braces
18094		if eval test \${$cacheid+y}
18095then :
18096  printf %s "(cached) " >&6
18097else $as_nop
18098  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18099/* end confdefs.h.  */
18100int i;
18101int
18102main (void)
18103{
18104
18105  ;
18106  return 0;
18107}
18108_ACEOF
18109if ac_fn_c_try_link "$LINENO"
18110then :
18111  eval $cacheid=yes
18112else $as_nop
18113  eval $cacheid=no
18114fi
18115rm -f core conftest.err conftest.$ac_objext conftest.beam \
18116    conftest$ac_exeext conftest.$ac_ext
18117fi
18118
18119
18120		CFLAGS="$xorg_testset_save_CFLAGS"
18121
18122		eval supported=\$$cacheid
18123		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18124printf "%s\n" "$supported" >&6; }
18125		if test "$supported" = "yes" ; then
18126			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
18127			found="yes"
18128		fi
18129	fi
18130
18131
18132
18133
18134
18135
18136
18137
18138
18139
18140
18141
18142
18143
18144
18145xorg_testset_save_CFLAGS="$CFLAGS"
18146
18147if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18148	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18149	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18150printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18151if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18152then :
18153  printf %s "(cached) " >&6
18154else $as_nop
18155  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18156/* end confdefs.h.  */
18157int i;
18158_ACEOF
18159if ac_fn_c_try_compile "$LINENO"
18160then :
18161  xorg_cv_cc_flag_unknown_warning_option=yes
18162else $as_nop
18163  xorg_cv_cc_flag_unknown_warning_option=no
18164fi
18165rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18166fi
18167{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18168printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18169	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18170	CFLAGS="$xorg_testset_save_CFLAGS"
18171fi
18172
18173if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18174	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18175		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18176	fi
18177	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18178	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18179printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18180if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18181then :
18182  printf %s "(cached) " >&6
18183else $as_nop
18184  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18185/* end confdefs.h.  */
18186int i;
18187_ACEOF
18188if ac_fn_c_try_compile "$LINENO"
18189then :
18190  xorg_cv_cc_flag_unused_command_line_argument=yes
18191else $as_nop
18192  xorg_cv_cc_flag_unused_command_line_argument=no
18193fi
18194rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18195fi
18196{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18197printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18198	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18199	CFLAGS="$xorg_testset_save_CFLAGS"
18200fi
18201
18202found="no"
18203
18204	if test $found = "no" ; then
18205		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18206			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18207		fi
18208
18209		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18210			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18211		fi
18212
18213		CFLAGS="$CFLAGS -Wsequence-point"
18214
18215		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
18216printf %s "checking if $CC supports -Wsequence-point... " >&6; }
18217		cacheid=xorg_cv_cc_flag__Wsequence_point
18218		if eval test \${$cacheid+y}
18219then :
18220  printf %s "(cached) " >&6
18221else $as_nop
18222  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18223/* end confdefs.h.  */
18224int i;
18225int
18226main (void)
18227{
18228
18229  ;
18230  return 0;
18231}
18232_ACEOF
18233if ac_fn_c_try_link "$LINENO"
18234then :
18235  eval $cacheid=yes
18236else $as_nop
18237  eval $cacheid=no
18238fi
18239rm -f core conftest.err conftest.$ac_objext conftest.beam \
18240    conftest$ac_exeext conftest.$ac_ext
18241fi
18242
18243
18244		CFLAGS="$xorg_testset_save_CFLAGS"
18245
18246		eval supported=\$$cacheid
18247		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18248printf "%s\n" "$supported" >&6; }
18249		if test "$supported" = "yes" ; then
18250			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
18251			found="yes"
18252		fi
18253	fi
18254
18255
18256
18257
18258
18259
18260
18261
18262
18263
18264
18265
18266
18267
18268
18269xorg_testset_save_CFLAGS="$CFLAGS"
18270
18271if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18272	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18273	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18274printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18275if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18276then :
18277  printf %s "(cached) " >&6
18278else $as_nop
18279  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18280/* end confdefs.h.  */
18281int i;
18282_ACEOF
18283if ac_fn_c_try_compile "$LINENO"
18284then :
18285  xorg_cv_cc_flag_unknown_warning_option=yes
18286else $as_nop
18287  xorg_cv_cc_flag_unknown_warning_option=no
18288fi
18289rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18290fi
18291{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18292printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18293	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18294	CFLAGS="$xorg_testset_save_CFLAGS"
18295fi
18296
18297if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18298	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18299		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18300	fi
18301	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18302	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18303printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18304if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18305then :
18306  printf %s "(cached) " >&6
18307else $as_nop
18308  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18309/* end confdefs.h.  */
18310int i;
18311_ACEOF
18312if ac_fn_c_try_compile "$LINENO"
18313then :
18314  xorg_cv_cc_flag_unused_command_line_argument=yes
18315else $as_nop
18316  xorg_cv_cc_flag_unused_command_line_argument=no
18317fi
18318rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18319fi
18320{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18321printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18322	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18323	CFLAGS="$xorg_testset_save_CFLAGS"
18324fi
18325
18326found="no"
18327
18328	if test $found = "no" ; then
18329		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18330			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18331		fi
18332
18333		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18334			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18335		fi
18336
18337		CFLAGS="$CFLAGS -Wreturn-type"
18338
18339		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
18340printf %s "checking if $CC supports -Wreturn-type... " >&6; }
18341		cacheid=xorg_cv_cc_flag__Wreturn_type
18342		if eval test \${$cacheid+y}
18343then :
18344  printf %s "(cached) " >&6
18345else $as_nop
18346  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18347/* end confdefs.h.  */
18348int i;
18349int
18350main (void)
18351{
18352
18353  ;
18354  return 0;
18355}
18356_ACEOF
18357if ac_fn_c_try_link "$LINENO"
18358then :
18359  eval $cacheid=yes
18360else $as_nop
18361  eval $cacheid=no
18362fi
18363rm -f core conftest.err conftest.$ac_objext conftest.beam \
18364    conftest$ac_exeext conftest.$ac_ext
18365fi
18366
18367
18368		CFLAGS="$xorg_testset_save_CFLAGS"
18369
18370		eval supported=\$$cacheid
18371		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18372printf "%s\n" "$supported" >&6; }
18373		if test "$supported" = "yes" ; then
18374			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
18375			found="yes"
18376		fi
18377	fi
18378
18379
18380
18381
18382
18383
18384
18385
18386
18387
18388
18389
18390
18391
18392
18393xorg_testset_save_CFLAGS="$CFLAGS"
18394
18395if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18396	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18397	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18398printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18399if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18400then :
18401  printf %s "(cached) " >&6
18402else $as_nop
18403  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18404/* end confdefs.h.  */
18405int i;
18406_ACEOF
18407if ac_fn_c_try_compile "$LINENO"
18408then :
18409  xorg_cv_cc_flag_unknown_warning_option=yes
18410else $as_nop
18411  xorg_cv_cc_flag_unknown_warning_option=no
18412fi
18413rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18414fi
18415{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18416printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18417	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18418	CFLAGS="$xorg_testset_save_CFLAGS"
18419fi
18420
18421if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18422	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18423		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18424	fi
18425	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18426	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18427printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18428if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18429then :
18430  printf %s "(cached) " >&6
18431else $as_nop
18432  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18433/* end confdefs.h.  */
18434int i;
18435_ACEOF
18436if ac_fn_c_try_compile "$LINENO"
18437then :
18438  xorg_cv_cc_flag_unused_command_line_argument=yes
18439else $as_nop
18440  xorg_cv_cc_flag_unused_command_line_argument=no
18441fi
18442rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18443fi
18444{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18445printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18446	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18447	CFLAGS="$xorg_testset_save_CFLAGS"
18448fi
18449
18450found="no"
18451
18452	if test $found = "no" ; then
18453		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18454			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18455		fi
18456
18457		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18458			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18459		fi
18460
18461		CFLAGS="$CFLAGS -Wtrigraphs"
18462
18463		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
18464printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
18465		cacheid=xorg_cv_cc_flag__Wtrigraphs
18466		if eval test \${$cacheid+y}
18467then :
18468  printf %s "(cached) " >&6
18469else $as_nop
18470  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18471/* end confdefs.h.  */
18472int i;
18473int
18474main (void)
18475{
18476
18477  ;
18478  return 0;
18479}
18480_ACEOF
18481if ac_fn_c_try_link "$LINENO"
18482then :
18483  eval $cacheid=yes
18484else $as_nop
18485  eval $cacheid=no
18486fi
18487rm -f core conftest.err conftest.$ac_objext conftest.beam \
18488    conftest$ac_exeext conftest.$ac_ext
18489fi
18490
18491
18492		CFLAGS="$xorg_testset_save_CFLAGS"
18493
18494		eval supported=\$$cacheid
18495		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18496printf "%s\n" "$supported" >&6; }
18497		if test "$supported" = "yes" ; then
18498			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
18499			found="yes"
18500		fi
18501	fi
18502
18503
18504
18505
18506
18507
18508
18509
18510
18511
18512
18513
18514
18515
18516
18517xorg_testset_save_CFLAGS="$CFLAGS"
18518
18519if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18520	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18521	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18522printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18523if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18524then :
18525  printf %s "(cached) " >&6
18526else $as_nop
18527  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18528/* end confdefs.h.  */
18529int i;
18530_ACEOF
18531if ac_fn_c_try_compile "$LINENO"
18532then :
18533  xorg_cv_cc_flag_unknown_warning_option=yes
18534else $as_nop
18535  xorg_cv_cc_flag_unknown_warning_option=no
18536fi
18537rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18538fi
18539{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18540printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18541	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18542	CFLAGS="$xorg_testset_save_CFLAGS"
18543fi
18544
18545if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18546	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18547		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18548	fi
18549	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18550	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18551printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18552if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18553then :
18554  printf %s "(cached) " >&6
18555else $as_nop
18556  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18557/* end confdefs.h.  */
18558int i;
18559_ACEOF
18560if ac_fn_c_try_compile "$LINENO"
18561then :
18562  xorg_cv_cc_flag_unused_command_line_argument=yes
18563else $as_nop
18564  xorg_cv_cc_flag_unused_command_line_argument=no
18565fi
18566rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18567fi
18568{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18569printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18570	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18571	CFLAGS="$xorg_testset_save_CFLAGS"
18572fi
18573
18574found="no"
18575
18576	if test $found = "no" ; then
18577		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18578			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18579		fi
18580
18581		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18582			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18583		fi
18584
18585		CFLAGS="$CFLAGS -Warray-bounds"
18586
18587		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
18588printf %s "checking if $CC supports -Warray-bounds... " >&6; }
18589		cacheid=xorg_cv_cc_flag__Warray_bounds
18590		if eval test \${$cacheid+y}
18591then :
18592  printf %s "(cached) " >&6
18593else $as_nop
18594  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18595/* end confdefs.h.  */
18596int i;
18597int
18598main (void)
18599{
18600
18601  ;
18602  return 0;
18603}
18604_ACEOF
18605if ac_fn_c_try_link "$LINENO"
18606then :
18607  eval $cacheid=yes
18608else $as_nop
18609  eval $cacheid=no
18610fi
18611rm -f core conftest.err conftest.$ac_objext conftest.beam \
18612    conftest$ac_exeext conftest.$ac_ext
18613fi
18614
18615
18616		CFLAGS="$xorg_testset_save_CFLAGS"
18617
18618		eval supported=\$$cacheid
18619		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18620printf "%s\n" "$supported" >&6; }
18621		if test "$supported" = "yes" ; then
18622			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
18623			found="yes"
18624		fi
18625	fi
18626
18627
18628
18629
18630
18631
18632
18633
18634
18635
18636
18637
18638
18639
18640
18641xorg_testset_save_CFLAGS="$CFLAGS"
18642
18643if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18644	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18645	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18646printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18647if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18648then :
18649  printf %s "(cached) " >&6
18650else $as_nop
18651  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18652/* end confdefs.h.  */
18653int i;
18654_ACEOF
18655if ac_fn_c_try_compile "$LINENO"
18656then :
18657  xorg_cv_cc_flag_unknown_warning_option=yes
18658else $as_nop
18659  xorg_cv_cc_flag_unknown_warning_option=no
18660fi
18661rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18662fi
18663{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18664printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18665	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18666	CFLAGS="$xorg_testset_save_CFLAGS"
18667fi
18668
18669if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18670	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18671		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18672	fi
18673	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18674	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18675printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18676if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18677then :
18678  printf %s "(cached) " >&6
18679else $as_nop
18680  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18681/* end confdefs.h.  */
18682int i;
18683_ACEOF
18684if ac_fn_c_try_compile "$LINENO"
18685then :
18686  xorg_cv_cc_flag_unused_command_line_argument=yes
18687else $as_nop
18688  xorg_cv_cc_flag_unused_command_line_argument=no
18689fi
18690rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18691fi
18692{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18693printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18694	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18695	CFLAGS="$xorg_testset_save_CFLAGS"
18696fi
18697
18698found="no"
18699
18700	if test $found = "no" ; then
18701		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18702			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18703		fi
18704
18705		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18706			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18707		fi
18708
18709		CFLAGS="$CFLAGS -Wwrite-strings"
18710
18711		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
18712printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
18713		cacheid=xorg_cv_cc_flag__Wwrite_strings
18714		if eval test \${$cacheid+y}
18715then :
18716  printf %s "(cached) " >&6
18717else $as_nop
18718  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18719/* end confdefs.h.  */
18720int i;
18721int
18722main (void)
18723{
18724
18725  ;
18726  return 0;
18727}
18728_ACEOF
18729if ac_fn_c_try_link "$LINENO"
18730then :
18731  eval $cacheid=yes
18732else $as_nop
18733  eval $cacheid=no
18734fi
18735rm -f core conftest.err conftest.$ac_objext conftest.beam \
18736    conftest$ac_exeext conftest.$ac_ext
18737fi
18738
18739
18740		CFLAGS="$xorg_testset_save_CFLAGS"
18741
18742		eval supported=\$$cacheid
18743		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18744printf "%s\n" "$supported" >&6; }
18745		if test "$supported" = "yes" ; then
18746			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
18747			found="yes"
18748		fi
18749	fi
18750
18751
18752
18753
18754
18755
18756
18757
18758
18759
18760
18761
18762
18763
18764
18765xorg_testset_save_CFLAGS="$CFLAGS"
18766
18767if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18768	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18769	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18770printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18771if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18772then :
18773  printf %s "(cached) " >&6
18774else $as_nop
18775  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18776/* end confdefs.h.  */
18777int i;
18778_ACEOF
18779if ac_fn_c_try_compile "$LINENO"
18780then :
18781  xorg_cv_cc_flag_unknown_warning_option=yes
18782else $as_nop
18783  xorg_cv_cc_flag_unknown_warning_option=no
18784fi
18785rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18786fi
18787{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18788printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18789	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18790	CFLAGS="$xorg_testset_save_CFLAGS"
18791fi
18792
18793if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18794	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18795		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18796	fi
18797	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18798	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18799printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18800if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18801then :
18802  printf %s "(cached) " >&6
18803else $as_nop
18804  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18805/* end confdefs.h.  */
18806int i;
18807_ACEOF
18808if ac_fn_c_try_compile "$LINENO"
18809then :
18810  xorg_cv_cc_flag_unused_command_line_argument=yes
18811else $as_nop
18812  xorg_cv_cc_flag_unused_command_line_argument=no
18813fi
18814rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18815fi
18816{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18817printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18818	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18819	CFLAGS="$xorg_testset_save_CFLAGS"
18820fi
18821
18822found="no"
18823
18824	if test $found = "no" ; then
18825		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18826			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18827		fi
18828
18829		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18830			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18831		fi
18832
18833		CFLAGS="$CFLAGS -Waddress"
18834
18835		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
18836printf %s "checking if $CC supports -Waddress... " >&6; }
18837		cacheid=xorg_cv_cc_flag__Waddress
18838		if eval test \${$cacheid+y}
18839then :
18840  printf %s "(cached) " >&6
18841else $as_nop
18842  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18843/* end confdefs.h.  */
18844int i;
18845int
18846main (void)
18847{
18848
18849  ;
18850  return 0;
18851}
18852_ACEOF
18853if ac_fn_c_try_link "$LINENO"
18854then :
18855  eval $cacheid=yes
18856else $as_nop
18857  eval $cacheid=no
18858fi
18859rm -f core conftest.err conftest.$ac_objext conftest.beam \
18860    conftest$ac_exeext conftest.$ac_ext
18861fi
18862
18863
18864		CFLAGS="$xorg_testset_save_CFLAGS"
18865
18866		eval supported=\$$cacheid
18867		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18868printf "%s\n" "$supported" >&6; }
18869		if test "$supported" = "yes" ; then
18870			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
18871			found="yes"
18872		fi
18873	fi
18874
18875
18876
18877
18878
18879
18880
18881
18882
18883
18884
18885
18886
18887
18888
18889xorg_testset_save_CFLAGS="$CFLAGS"
18890
18891if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18892	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18893	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18894printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18895if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18896then :
18897  printf %s "(cached) " >&6
18898else $as_nop
18899  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18900/* end confdefs.h.  */
18901int i;
18902_ACEOF
18903if ac_fn_c_try_compile "$LINENO"
18904then :
18905  xorg_cv_cc_flag_unknown_warning_option=yes
18906else $as_nop
18907  xorg_cv_cc_flag_unknown_warning_option=no
18908fi
18909rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18910fi
18911{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18912printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18913	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18914	CFLAGS="$xorg_testset_save_CFLAGS"
18915fi
18916
18917if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18918	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18919		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18920	fi
18921	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18922	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18923printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18924if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18925then :
18926  printf %s "(cached) " >&6
18927else $as_nop
18928  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18929/* end confdefs.h.  */
18930int i;
18931_ACEOF
18932if ac_fn_c_try_compile "$LINENO"
18933then :
18934  xorg_cv_cc_flag_unused_command_line_argument=yes
18935else $as_nop
18936  xorg_cv_cc_flag_unused_command_line_argument=no
18937fi
18938rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18939fi
18940{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18941printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18942	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18943	CFLAGS="$xorg_testset_save_CFLAGS"
18944fi
18945
18946found="no"
18947
18948	if test $found = "no" ; then
18949		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18950			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18951		fi
18952
18953		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18954			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18955		fi
18956
18957		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
18958
18959		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
18960printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
18961		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
18962		if eval test \${$cacheid+y}
18963then :
18964  printf %s "(cached) " >&6
18965else $as_nop
18966  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18967/* end confdefs.h.  */
18968int i;
18969int
18970main (void)
18971{
18972
18973  ;
18974  return 0;
18975}
18976_ACEOF
18977if ac_fn_c_try_link "$LINENO"
18978then :
18979  eval $cacheid=yes
18980else $as_nop
18981  eval $cacheid=no
18982fi
18983rm -f core conftest.err conftest.$ac_objext conftest.beam \
18984    conftest$ac_exeext conftest.$ac_ext
18985fi
18986
18987
18988		CFLAGS="$xorg_testset_save_CFLAGS"
18989
18990		eval supported=\$$cacheid
18991		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18992printf "%s\n" "$supported" >&6; }
18993		if test "$supported" = "yes" ; then
18994			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
18995			found="yes"
18996		fi
18997	fi
18998
18999
19000
19001
19002
19003
19004
19005
19006
19007
19008
19009
19010
19011
19012
19013xorg_testset_save_CFLAGS="$CFLAGS"
19014
19015if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19016	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19017	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19018printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19019if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19020then :
19021  printf %s "(cached) " >&6
19022else $as_nop
19023  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19024/* end confdefs.h.  */
19025int i;
19026_ACEOF
19027if ac_fn_c_try_compile "$LINENO"
19028then :
19029  xorg_cv_cc_flag_unknown_warning_option=yes
19030else $as_nop
19031  xorg_cv_cc_flag_unknown_warning_option=no
19032fi
19033rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19034fi
19035{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19036printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19037	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19038	CFLAGS="$xorg_testset_save_CFLAGS"
19039fi
19040
19041if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19042	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19043		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19044	fi
19045	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19046	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19047printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19048if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19049then :
19050  printf %s "(cached) " >&6
19051else $as_nop
19052  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19053/* end confdefs.h.  */
19054int i;
19055_ACEOF
19056if ac_fn_c_try_compile "$LINENO"
19057then :
19058  xorg_cv_cc_flag_unused_command_line_argument=yes
19059else $as_nop
19060  xorg_cv_cc_flag_unused_command_line_argument=no
19061fi
19062rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19063fi
19064{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19065printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19066	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19067	CFLAGS="$xorg_testset_save_CFLAGS"
19068fi
19069
19070found="no"
19071
19072	if test $found = "no" ; then
19073		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19074			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19075		fi
19076
19077		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19078			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19079		fi
19080
19081		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
19082
19083		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
19084printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
19085		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
19086		if eval test \${$cacheid+y}
19087then :
19088  printf %s "(cached) " >&6
19089else $as_nop
19090  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19091/* end confdefs.h.  */
19092int i;
19093int
19094main (void)
19095{
19096
19097  ;
19098  return 0;
19099}
19100_ACEOF
19101if ac_fn_c_try_link "$LINENO"
19102then :
19103  eval $cacheid=yes
19104else $as_nop
19105  eval $cacheid=no
19106fi
19107rm -f core conftest.err conftest.$ac_objext conftest.beam \
19108    conftest$ac_exeext conftest.$ac_ext
19109fi
19110
19111
19112		CFLAGS="$xorg_testset_save_CFLAGS"
19113
19114		eval supported=\$$cacheid
19115		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19116printf "%s\n" "$supported" >&6; }
19117		if test "$supported" = "yes" ; then
19118			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
19119			found="yes"
19120		fi
19121	fi
19122
19123
19124fi
19125
19126
19127
19128
19129
19130
19131
19132		CWARNFLAGS="$BASE_CFLAGS"
19133		if  test "x$GCC" = xyes ; then
19134		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
19135		fi
19136
19137
19138
19139
19140
19141
19142
19143
19144# Check whether --enable-strict-compilation was given.
19145if test ${enable_strict_compilation+y}
19146then :
19147  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
19148else $as_nop
19149  STRICT_COMPILE=no
19150fi
19151
19152
19153
19154
19155
19156
19157STRICT_CFLAGS=""
19158
19159
19160
19161
19162
19163
19164
19165
19166
19167
19168
19169
19170
19171xorg_testset_save_CFLAGS="$CFLAGS"
19172
19173if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19174	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19175	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19176printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19177if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19178then :
19179  printf %s "(cached) " >&6
19180else $as_nop
19181  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19182/* end confdefs.h.  */
19183int i;
19184_ACEOF
19185if ac_fn_c_try_compile "$LINENO"
19186then :
19187  xorg_cv_cc_flag_unknown_warning_option=yes
19188else $as_nop
19189  xorg_cv_cc_flag_unknown_warning_option=no
19190fi
19191rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19192fi
19193{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19194printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19195	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19196	CFLAGS="$xorg_testset_save_CFLAGS"
19197fi
19198
19199if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19200	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19201		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19202	fi
19203	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19204	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19205printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19206if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19207then :
19208  printf %s "(cached) " >&6
19209else $as_nop
19210  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19211/* end confdefs.h.  */
19212int i;
19213_ACEOF
19214if ac_fn_c_try_compile "$LINENO"
19215then :
19216  xorg_cv_cc_flag_unused_command_line_argument=yes
19217else $as_nop
19218  xorg_cv_cc_flag_unused_command_line_argument=no
19219fi
19220rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19221fi
19222{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19223printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19224	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19225	CFLAGS="$xorg_testset_save_CFLAGS"
19226fi
19227
19228found="no"
19229
19230	if test $found = "no" ; then
19231		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19232			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19233		fi
19234
19235		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19236			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19237		fi
19238
19239		CFLAGS="$CFLAGS -pedantic"
19240
19241		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
19242printf %s "checking if $CC supports -pedantic... " >&6; }
19243		cacheid=xorg_cv_cc_flag__pedantic
19244		if eval test \${$cacheid+y}
19245then :
19246  printf %s "(cached) " >&6
19247else $as_nop
19248  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19249/* end confdefs.h.  */
19250int i;
19251int
19252main (void)
19253{
19254
19255  ;
19256  return 0;
19257}
19258_ACEOF
19259if ac_fn_c_try_link "$LINENO"
19260then :
19261  eval $cacheid=yes
19262else $as_nop
19263  eval $cacheid=no
19264fi
19265rm -f core conftest.err conftest.$ac_objext conftest.beam \
19266    conftest$ac_exeext conftest.$ac_ext
19267fi
19268
19269
19270		CFLAGS="$xorg_testset_save_CFLAGS"
19271
19272		eval supported=\$$cacheid
19273		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19274printf "%s\n" "$supported" >&6; }
19275		if test "$supported" = "yes" ; then
19276			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
19277			found="yes"
19278		fi
19279	fi
19280
19281
19282
19283
19284
19285
19286
19287
19288
19289
19290
19291
19292
19293
19294
19295xorg_testset_save_CFLAGS="$CFLAGS"
19296
19297if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19298	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19299	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19300printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19301if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19302then :
19303  printf %s "(cached) " >&6
19304else $as_nop
19305  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19306/* end confdefs.h.  */
19307int i;
19308_ACEOF
19309if ac_fn_c_try_compile "$LINENO"
19310then :
19311  xorg_cv_cc_flag_unknown_warning_option=yes
19312else $as_nop
19313  xorg_cv_cc_flag_unknown_warning_option=no
19314fi
19315rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19316fi
19317{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19318printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19319	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19320	CFLAGS="$xorg_testset_save_CFLAGS"
19321fi
19322
19323if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19324	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19325		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19326	fi
19327	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19328	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19329printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19330if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19331then :
19332  printf %s "(cached) " >&6
19333else $as_nop
19334  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19335/* end confdefs.h.  */
19336int i;
19337_ACEOF
19338if ac_fn_c_try_compile "$LINENO"
19339then :
19340  xorg_cv_cc_flag_unused_command_line_argument=yes
19341else $as_nop
19342  xorg_cv_cc_flag_unused_command_line_argument=no
19343fi
19344rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19345fi
19346{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19347printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19348	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19349	CFLAGS="$xorg_testset_save_CFLAGS"
19350fi
19351
19352found="no"
19353
19354	if test $found = "no" ; then
19355		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19356			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19357		fi
19358
19359		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19360			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19361		fi
19362
19363		CFLAGS="$CFLAGS -Werror"
19364
19365		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
19366printf %s "checking if $CC supports -Werror... " >&6; }
19367		cacheid=xorg_cv_cc_flag__Werror
19368		if eval test \${$cacheid+y}
19369then :
19370  printf %s "(cached) " >&6
19371else $as_nop
19372  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19373/* end confdefs.h.  */
19374int i;
19375int
19376main (void)
19377{
19378
19379  ;
19380  return 0;
19381}
19382_ACEOF
19383if ac_fn_c_try_link "$LINENO"
19384then :
19385  eval $cacheid=yes
19386else $as_nop
19387  eval $cacheid=no
19388fi
19389rm -f core conftest.err conftest.$ac_objext conftest.beam \
19390    conftest$ac_exeext conftest.$ac_ext
19391fi
19392
19393
19394		CFLAGS="$xorg_testset_save_CFLAGS"
19395
19396		eval supported=\$$cacheid
19397		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19398printf "%s\n" "$supported" >&6; }
19399		if test "$supported" = "yes" ; then
19400			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
19401			found="yes"
19402		fi
19403	fi
19404
19405	if test $found = "no" ; then
19406		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19407			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19408		fi
19409
19410		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19411			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19412		fi
19413
19414		CFLAGS="$CFLAGS -errwarn"
19415
19416		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
19417printf %s "checking if $CC supports -errwarn... " >&6; }
19418		cacheid=xorg_cv_cc_flag__errwarn
19419		if eval test \${$cacheid+y}
19420then :
19421  printf %s "(cached) " >&6
19422else $as_nop
19423  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19424/* end confdefs.h.  */
19425int i;
19426int
19427main (void)
19428{
19429
19430  ;
19431  return 0;
19432}
19433_ACEOF
19434if ac_fn_c_try_link "$LINENO"
19435then :
19436  eval $cacheid=yes
19437else $as_nop
19438  eval $cacheid=no
19439fi
19440rm -f core conftest.err conftest.$ac_objext conftest.beam \
19441    conftest$ac_exeext conftest.$ac_ext
19442fi
19443
19444
19445		CFLAGS="$xorg_testset_save_CFLAGS"
19446
19447		eval supported=\$$cacheid
19448		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19449printf "%s\n" "$supported" >&6; }
19450		if test "$supported" = "yes" ; then
19451			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
19452			found="yes"
19453		fi
19454	fi
19455
19456
19457
19458# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
19459# activate it with -Werror, so we add it here explicitly.
19460
19461
19462
19463
19464
19465
19466
19467
19468
19469
19470
19471
19472
19473xorg_testset_save_CFLAGS="$CFLAGS"
19474
19475if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19476	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19477	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19478printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19479if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19480then :
19481  printf %s "(cached) " >&6
19482else $as_nop
19483  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19484/* end confdefs.h.  */
19485int i;
19486_ACEOF
19487if ac_fn_c_try_compile "$LINENO"
19488then :
19489  xorg_cv_cc_flag_unknown_warning_option=yes
19490else $as_nop
19491  xorg_cv_cc_flag_unknown_warning_option=no
19492fi
19493rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19494fi
19495{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19496printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19497	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19498	CFLAGS="$xorg_testset_save_CFLAGS"
19499fi
19500
19501if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19502	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19503		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19504	fi
19505	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19506	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19507printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19508if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19509then :
19510  printf %s "(cached) " >&6
19511else $as_nop
19512  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19513/* end confdefs.h.  */
19514int i;
19515_ACEOF
19516if ac_fn_c_try_compile "$LINENO"
19517then :
19518  xorg_cv_cc_flag_unused_command_line_argument=yes
19519else $as_nop
19520  xorg_cv_cc_flag_unused_command_line_argument=no
19521fi
19522rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19523fi
19524{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19525printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19526	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19527	CFLAGS="$xorg_testset_save_CFLAGS"
19528fi
19529
19530found="no"
19531
19532	if test $found = "no" ; then
19533		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19534			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19535		fi
19536
19537		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19538			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19539		fi
19540
19541		CFLAGS="$CFLAGS -Werror=attributes"
19542
19543		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
19544printf %s "checking if $CC supports -Werror=attributes... " >&6; }
19545		cacheid=xorg_cv_cc_flag__Werror_attributes
19546		if eval test \${$cacheid+y}
19547then :
19548  printf %s "(cached) " >&6
19549else $as_nop
19550  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19551/* end confdefs.h.  */
19552int i;
19553int
19554main (void)
19555{
19556
19557  ;
19558  return 0;
19559}
19560_ACEOF
19561if ac_fn_c_try_link "$LINENO"
19562then :
19563  eval $cacheid=yes
19564else $as_nop
19565  eval $cacheid=no
19566fi
19567rm -f core conftest.err conftest.$ac_objext conftest.beam \
19568    conftest$ac_exeext conftest.$ac_ext
19569fi
19570
19571
19572		CFLAGS="$xorg_testset_save_CFLAGS"
19573
19574		eval supported=\$$cacheid
19575		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19576printf "%s\n" "$supported" >&6; }
19577		if test "$supported" = "yes" ; then
19578			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
19579			found="yes"
19580		fi
19581	fi
19582
19583
19584
19585if test "x$STRICT_COMPILE" = "xyes"; then
19586    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
19587    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
19588fi
19589
19590
19591
19592
19593
19594
19595cat >>confdefs.h <<_ACEOF
19596#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
19597_ACEOF
19598
19599	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
19600	if test "x$PVM" = "x"; then
19601		PVM="0"
19602	fi
19603
19604printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
19605
19606	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
19607	if test "x$PVP" = "x"; then
19608		PVP="0"
19609	fi
19610
19611printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
19612
19613
19614
19615CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
19616mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
19617|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
19618touch \$(top_srcdir)/ChangeLog; \
19619echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
19620
19621
19622
19623
19624macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
19625INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
19626mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
19627|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
19628touch \$(top_srcdir)/INSTALL; \
19629echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
19630
19631
19632
19633
19634
19635
19636case $host_os in
19637    solaris*)
19638        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
19639        # check for a man page file found in later versions that use
19640        # traditional section numbers instead
19641        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
19642printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
19643if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
19644then :
19645  printf %s "(cached) " >&6
19646else $as_nop
19647  test "$cross_compiling" = yes &&
19648  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
19649if test -r "/usr/share/man/man7/attributes.7"; then
19650  ac_cv_file__usr_share_man_man7_attributes_7=yes
19651else
19652  ac_cv_file__usr_share_man_man7_attributes_7=no
19653fi
19654fi
19655{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
19656printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
19657if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
19658then :
19659  SYSV_MAN_SECTIONS=false
19660else $as_nop
19661  SYSV_MAN_SECTIONS=true
19662fi
19663
19664        ;;
19665    *) SYSV_MAN_SECTIONS=false ;;
19666esac
19667
19668if test x$APP_MAN_SUFFIX = x    ; then
19669    APP_MAN_SUFFIX=1
19670fi
19671if test x$APP_MAN_DIR = x    ; then
19672    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
19673fi
19674
19675if test x$LIB_MAN_SUFFIX = x    ; then
19676    LIB_MAN_SUFFIX=3
19677fi
19678if test x$LIB_MAN_DIR = x    ; then
19679    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
19680fi
19681
19682if test x$FILE_MAN_SUFFIX = x    ; then
19683    case $SYSV_MAN_SECTIONS in
19684	true)				FILE_MAN_SUFFIX=4  ;;
19685	*)				FILE_MAN_SUFFIX=5  ;;
19686    esac
19687fi
19688if test x$FILE_MAN_DIR = x    ; then
19689    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
19690fi
19691
19692if test x$MISC_MAN_SUFFIX = x    ; then
19693    case $SYSV_MAN_SECTIONS in
19694	true)				MISC_MAN_SUFFIX=5  ;;
19695	*)				MISC_MAN_SUFFIX=7  ;;
19696    esac
19697fi
19698if test x$MISC_MAN_DIR = x    ; then
19699    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
19700fi
19701
19702if test x$DRIVER_MAN_SUFFIX = x    ; then
19703    case $SYSV_MAN_SECTIONS in
19704	true)				DRIVER_MAN_SUFFIX=7  ;;
19705	*)				DRIVER_MAN_SUFFIX=4  ;;
19706    esac
19707fi
19708if test x$DRIVER_MAN_DIR = x    ; then
19709    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
19710fi
19711
19712if test x$ADMIN_MAN_SUFFIX = x    ; then
19713    case $SYSV_MAN_SECTIONS in
19714	true)				ADMIN_MAN_SUFFIX=1m ;;
19715	*)				ADMIN_MAN_SUFFIX=8  ;;
19716    esac
19717fi
19718if test x$ADMIN_MAN_DIR = x    ; then
19719    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
19720fi
19721
19722
19723
19724
19725
19726
19727
19728
19729
19730
19731
19732
19733
19734
19735
19736XORG_MAN_PAGE="X Version 11"
19737
19738MAN_SUBSTS="\
19739	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19740	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19741	-e 's|__xservername__|Xorg|g' \
19742	-e 's|__xconfigfile__|xorg.conf|g' \
19743	-e 's|__projectroot__|\$(prefix)|g' \
19744	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
19745	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
19746	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
19747	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
19748	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
19749	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
19750	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
19751
19752
19753
19754# Check whether --enable-silent-rules was given.
19755if test ${enable_silent_rules+y}
19756then :
19757  enableval=$enable_silent_rules;
19758fi
19759
19760case $enable_silent_rules in # (((
19761  yes) AM_DEFAULT_VERBOSITY=0;;
19762   no) AM_DEFAULT_VERBOSITY=1;;
19763    *) AM_DEFAULT_VERBOSITY=0;;
19764esac
19765am_make=${MAKE-make}
19766{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
19767printf %s "checking whether $am_make supports nested variables... " >&6; }
19768if test ${am_cv_make_support_nested_variables+y}
19769then :
19770  printf %s "(cached) " >&6
19771else $as_nop
19772  if printf "%s\n" 'TRUE=$(BAR$(V))
19773BAR0=false
19774BAR1=true
19775V=1
19776am__doit:
19777	@$(TRUE)
19778.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
19779  am_cv_make_support_nested_variables=yes
19780else
19781  am_cv_make_support_nested_variables=no
19782fi
19783fi
19784{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
19785printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
19786if test $am_cv_make_support_nested_variables = yes; then
19787    AM_V='$(V)'
19788  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
19789else
19790  AM_V=$AM_DEFAULT_VERBOSITY
19791  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
19792fi
19793AM_BACKSLASH='\'
19794
19795
19796ac_ext=c
19797ac_cpp='$CPP $CPPFLAGS'
19798ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19799ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19800ac_compiler_gnu=$ac_cv_c_compiler_gnu
19801{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
19802printf %s "checking how to run the C preprocessor... " >&6; }
19803# On Suns, sometimes $CPP names a directory.
19804if test -n "$CPP" && test -d "$CPP"; then
19805  CPP=
19806fi
19807if test -z "$CPP"; then
19808  if test ${ac_cv_prog_CPP+y}
19809then :
19810  printf %s "(cached) " >&6
19811else $as_nop
19812      # Double quotes because $CC needs to be expanded
19813    for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
19814    do
19815      ac_preproc_ok=false
19816for ac_c_preproc_warn_flag in '' yes
19817do
19818  # Use a header file that comes with gcc, so configuring glibc
19819  # with a fresh cross-compiler works.
19820  # On the NeXT, cc -E runs the code through the compiler's parser,
19821  # not just through cpp. "Syntax error" is here to catch this case.
19822  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19823/* end confdefs.h.  */
19824#include <limits.h>
19825		     Syntax error
19826_ACEOF
19827if ac_fn_c_try_cpp "$LINENO"
19828then :
19829
19830else $as_nop
19831  # Broken: fails on valid input.
19832continue
19833fi
19834rm -f conftest.err conftest.i conftest.$ac_ext
19835
19836  # OK, works on sane cases.  Now check whether nonexistent headers
19837  # can be detected and how.
19838  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19839/* end confdefs.h.  */
19840#include <ac_nonexistent.h>
19841_ACEOF
19842if ac_fn_c_try_cpp "$LINENO"
19843then :
19844  # Broken: success on invalid input.
19845continue
19846else $as_nop
19847  # Passes both tests.
19848ac_preproc_ok=:
19849break
19850fi
19851rm -f conftest.err conftest.i conftest.$ac_ext
19852
19853done
19854# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19855rm -f conftest.i conftest.err conftest.$ac_ext
19856if $ac_preproc_ok
19857then :
19858  break
19859fi
19860
19861    done
19862    ac_cv_prog_CPP=$CPP
19863
19864fi
19865  CPP=$ac_cv_prog_CPP
19866else
19867  ac_cv_prog_CPP=$CPP
19868fi
19869{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
19870printf "%s\n" "$CPP" >&6; }
19871ac_preproc_ok=false
19872for ac_c_preproc_warn_flag in '' yes
19873do
19874  # Use a header file that comes with gcc, so configuring glibc
19875  # with a fresh cross-compiler works.
19876  # On the NeXT, cc -E runs the code through the compiler's parser,
19877  # not just through cpp. "Syntax error" is here to catch this case.
19878  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19879/* end confdefs.h.  */
19880#include <limits.h>
19881		     Syntax error
19882_ACEOF
19883if ac_fn_c_try_cpp "$LINENO"
19884then :
19885
19886else $as_nop
19887  # Broken: fails on valid input.
19888continue
19889fi
19890rm -f conftest.err conftest.i conftest.$ac_ext
19891
19892  # OK, works on sane cases.  Now check whether nonexistent headers
19893  # can be detected and how.
19894  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19895/* end confdefs.h.  */
19896#include <ac_nonexistent.h>
19897_ACEOF
19898if ac_fn_c_try_cpp "$LINENO"
19899then :
19900  # Broken: success on invalid input.
19901continue
19902else $as_nop
19903  # Passes both tests.
19904ac_preproc_ok=:
19905break
19906fi
19907rm -f conftest.err conftest.i conftest.$ac_ext
19908
19909done
19910# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19911rm -f conftest.i conftest.err conftest.$ac_ext
19912if $ac_preproc_ok
19913then :
19914
19915else $as_nop
19916  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19917printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19918as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
19919See \`config.log' for more details" "$LINENO" 5; }
19920fi
19921
19922ac_ext=c
19923ac_cpp='$CPP $CPPFLAGS'
19924ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19925ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19926ac_compiler_gnu=$ac_cv_c_compiler_gnu
19927
19928
19929
19930if test -n "$ac_tool_prefix"; then
19931  # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
19932set dummy ${ac_tool_prefix}cpp; ac_word=$2
19933{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19934printf %s "checking for $ac_word... " >&6; }
19935if test ${ac_cv_path_RAWCPP+y}
19936then :
19937  printf %s "(cached) " >&6
19938else $as_nop
19939  case $RAWCPP in
19940  [\\/]* | ?:[\\/]*)
19941  ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path.
19942  ;;
19943  *)
19944  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19945as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib"
19946for as_dir in $as_dummy
19947do
19948  IFS=$as_save_IFS
19949  case $as_dir in #(((
19950    '') as_dir=./ ;;
19951    */) ;;
19952    *) as_dir=$as_dir/ ;;
19953  esac
19954    for ac_exec_ext in '' $ac_executable_extensions; do
19955  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19956    ac_cv_path_RAWCPP="$as_dir$ac_word$ac_exec_ext"
19957    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19958    break 2
19959  fi
19960done
19961  done
19962IFS=$as_save_IFS
19963
19964  ;;
19965esac
19966fi
19967RAWCPP=$ac_cv_path_RAWCPP
19968if test -n "$RAWCPP"; then
19969  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RAWCPP" >&5
19970printf "%s\n" "$RAWCPP" >&6; }
19971else
19972  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19973printf "%s\n" "no" >&6; }
19974fi
19975
19976
19977fi
19978if test -z "$ac_cv_path_RAWCPP"; then
19979  ac_pt_RAWCPP=$RAWCPP
19980  # Extract the first word of "cpp", so it can be a program name with args.
19981set dummy cpp; ac_word=$2
19982{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19983printf %s "checking for $ac_word... " >&6; }
19984if test ${ac_cv_path_ac_pt_RAWCPP+y}
19985then :
19986  printf %s "(cached) " >&6
19987else $as_nop
19988  case $ac_pt_RAWCPP in
19989  [\\/]* | ?:[\\/]*)
19990  ac_cv_path_ac_pt_RAWCPP="$ac_pt_RAWCPP" # Let the user override the test with a path.
19991  ;;
19992  *)
19993  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19994as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib"
19995for as_dir in $as_dummy
19996do
19997  IFS=$as_save_IFS
19998  case $as_dir in #(((
19999    '') as_dir=./ ;;
20000    */) ;;
20001    *) as_dir=$as_dir/ ;;
20002  esac
20003    for ac_exec_ext in '' $ac_executable_extensions; do
20004  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20005    ac_cv_path_ac_pt_RAWCPP="$as_dir$ac_word$ac_exec_ext"
20006    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20007    break 2
20008  fi
20009done
20010  done
20011IFS=$as_save_IFS
20012
20013  ;;
20014esac
20015fi
20016ac_pt_RAWCPP=$ac_cv_path_ac_pt_RAWCPP
20017if test -n "$ac_pt_RAWCPP"; then
20018  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_RAWCPP" >&5
20019printf "%s\n" "$ac_pt_RAWCPP" >&6; }
20020else
20021  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20022printf "%s\n" "no" >&6; }
20023fi
20024
20025  if test "x$ac_pt_RAWCPP" = x; then
20026    RAWCPP="${CPP}"
20027  else
20028    case $cross_compiling:$ac_tool_warned in
20029yes:)
20030{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20031printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20032ac_tool_warned=yes ;;
20033esac
20034    RAWCPP=$ac_pt_RAWCPP
20035  fi
20036else
20037  RAWCPP="$ac_cv_path_RAWCPP"
20038fi
20039
20040
20041# Check for flag to avoid builtin definitions - assumes unix is predefined,
20042# which is not the best choice for supporting other OS'es, but covers most
20043# of the ones we need for now.
20044{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -undef" >&5
20045printf %s "checking if $RAWCPP requires -undef... " >&6; }
20046cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20047/* end confdefs.h.  */
20048Does cpp redefine unix ?
20049_ACEOF
20050if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
20051	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20052printf "%s\n" "no" >&6; }
20053else
20054	if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
20055		RAWCPPFLAGS=-undef
20056		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20057printf "%s\n" "yes" >&6; }
20058	# under Cygwin unix is still defined even with -undef
20059	elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
20060		RAWCPPFLAGS="-undef -ansi"
20061		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, with -ansi" >&5
20062printf "%s\n" "yes, with -ansi" >&6; }
20063	else
20064		as_fn_error $? "${RAWCPP} defines unix with or without -undef.  I don't know what to do." "$LINENO" 5
20065	fi
20066fi
20067rm -f conftest.$ac_ext
20068
20069{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -traditional" >&5
20070printf %s "checking if $RAWCPP requires -traditional... " >&6; }
20071cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20072/* end confdefs.h.  */
20073Does cpp preserve   "whitespace"?
20074_ACEOF
20075if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve   \"'` -eq 1 ; then
20076	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20077printf "%s\n" "no" >&6; }
20078else
20079	if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve   \"'` -eq 1 ; then
20080		TRADITIONALCPPFLAGS="-traditional"
20081		RAWCPPFLAGS="${RAWCPPFLAGS} -traditional"
20082		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20083printf "%s\n" "yes" >&6; }
20084	else
20085		as_fn_error $? "${RAWCPP} does not preserve whitespace with or without -traditional.  I don't know what to do." "$LINENO" 5
20086	fi
20087fi
20088rm -f conftest.$ac_ext
20089
20090
20091
20092
20093
20094
20095
20096
20097# Check whether --with-lint was given.
20098if test ${with_lint+y}
20099then :
20100  withval=$with_lint; use_lint=$withval
20101else $as_nop
20102  use_lint=no
20103fi
20104
20105
20106# Obtain platform specific info like program name and options
20107# The lint program on FreeBSD and NetBSD is different from the one on Solaris
20108case $host_os in
20109  *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
20110	lint_name=splint
20111	lint_options="-badflag"
20112	;;
20113  *freebsd* | *netbsd*)
20114	lint_name=lint
20115	lint_options="-u -b"
20116	;;
20117  *solaris*)
20118	lint_name=lint
20119	lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
20120	;;
20121esac
20122
20123# Test for the presence of the program (either guessed by the code or spelled out by the user)
20124if test "x$use_lint" = x"yes" ; then
20125   # Extract the first word of "$lint_name", so it can be a program name with args.
20126set dummy $lint_name; ac_word=$2
20127{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20128printf %s "checking for $ac_word... " >&6; }
20129if test ${ac_cv_path_LINT+y}
20130then :
20131  printf %s "(cached) " >&6
20132else $as_nop
20133  case $LINT in
20134  [\\/]* | ?:[\\/]*)
20135  ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
20136  ;;
20137  *)
20138  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20139for as_dir in $PATH
20140do
20141  IFS=$as_save_IFS
20142  case $as_dir in #(((
20143    '') as_dir=./ ;;
20144    */) ;;
20145    *) as_dir=$as_dir/ ;;
20146  esac
20147    for ac_exec_ext in '' $ac_executable_extensions; do
20148  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20149    ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext"
20150    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20151    break 2
20152  fi
20153done
20154  done
20155IFS=$as_save_IFS
20156
20157  ;;
20158esac
20159fi
20160LINT=$ac_cv_path_LINT
20161if test -n "$LINT"; then
20162  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
20163printf "%s\n" "$LINT" >&6; }
20164else
20165  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20166printf "%s\n" "no" >&6; }
20167fi
20168
20169
20170   if test "x$LINT" = "x"; then
20171        as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
20172   fi
20173elif test "x$use_lint" = x"no" ; then
20174   if test "x$LINT" != "x"; then
20175      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
20176printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
20177   fi
20178else
20179   as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
20180fi
20181
20182# User supplied flags override default flags
20183if test "x$LINT_FLAGS" != "x"; then
20184   lint_options=$LINT_FLAGS
20185fi
20186
20187LINT_FLAGS=$lint_options
20188
20189 if test "x$LINT" != x; then
20190  LINT_TRUE=
20191  LINT_FALSE='#'
20192else
20193  LINT_TRUE='#'
20194  LINT_FALSE=
20195fi
20196
20197
20198
20199
20200# Checks for programs.
20201# Check for mktemp to prevent security issue noted in Xorg bug #5898
20202# See https://bugs.freedesktop.org/show_bug.cgi?id=5898 for details.
20203# Extract the first word of "mktemp", so it can be a program name with args.
20204set dummy mktemp; ac_word=$2
20205{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20206printf %s "checking for $ac_word... " >&6; }
20207if test ${ac_cv_path_MKTEMP_COMMAND+y}
20208then :
20209  printf %s "(cached) " >&6
20210else $as_nop
20211  case $MKTEMP_COMMAND in
20212  [\\/]* | ?:[\\/]*)
20213  ac_cv_path_MKTEMP_COMMAND="$MKTEMP_COMMAND" # Let the user override the test with a path.
20214  ;;
20215  *)
20216  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20217for as_dir in $PATH
20218do
20219  IFS=$as_save_IFS
20220  case $as_dir in #(((
20221    '') as_dir=./ ;;
20222    */) ;;
20223    *) as_dir=$as_dir/ ;;
20224  esac
20225    for ac_exec_ext in '' $ac_executable_extensions; do
20226  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20227    ac_cv_path_MKTEMP_COMMAND="$as_dir$ac_word$ac_exec_ext"
20228    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20229    break 2
20230  fi
20231done
20232  done
20233IFS=$as_save_IFS
20234
20235  ;;
20236esac
20237fi
20238MKTEMP_COMMAND=$ac_cv_path_MKTEMP_COMMAND
20239if test -n "$MKTEMP_COMMAND"; then
20240  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKTEMP_COMMAND" >&5
20241printf "%s\n" "$MKTEMP_COMMAND" >&6; }
20242else
20243  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20244printf "%s\n" "no" >&6; }
20245fi
20246
20247
20248 if test x$MKTEMP_COMMAND != x; then
20249  HAVE_MKTEMP_COMMAND_TRUE=
20250  HAVE_MKTEMP_COMMAND_FALSE='#'
20251else
20252  HAVE_MKTEMP_COMMAND_TRUE='#'
20253  HAVE_MKTEMP_COMMAND_FALSE=
20254fi
20255
20256
20257#------------------------------------------------------------------------------
20258#			Check for system libraries
20259#
20260# AC_SEARCH_LIBS: tests using $LIBS and tests again with each listed library.
20261#                 pre-pends the found library to $LIBS.
20262#
20263#------------------------------------------------------------------------------
20264# Function getifaddrs() comes from the C library, Solaris 11 -lsocket, or
20265# the -lnsl name service library
20266{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing getifaddrs" >&5
20267printf %s "checking for library containing getifaddrs... " >&6; }
20268if test ${ac_cv_search_getifaddrs+y}
20269then :
20270  printf %s "(cached) " >&6
20271else $as_nop
20272  ac_func_search_save_LIBS=$LIBS
20273cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20274/* end confdefs.h.  */
20275
20276/* Override any GCC internal prototype to avoid an error.
20277   Use char because int might match the return type of a GCC
20278   builtin and then its argument prototype would still apply.  */
20279char getifaddrs ();
20280int
20281main (void)
20282{
20283return getifaddrs ();
20284  ;
20285  return 0;
20286}
20287_ACEOF
20288for ac_lib in '' socket nsl
20289do
20290  if test -z "$ac_lib"; then
20291    ac_res="none required"
20292  else
20293    ac_res=-l$ac_lib
20294    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20295  fi
20296  if ac_fn_c_try_link "$LINENO"
20297then :
20298  ac_cv_search_getifaddrs=$ac_res
20299fi
20300rm -f core conftest.err conftest.$ac_objext conftest.beam \
20301    conftest$ac_exeext
20302  if test ${ac_cv_search_getifaddrs+y}
20303then :
20304  break
20305fi
20306done
20307if test ${ac_cv_search_getifaddrs+y}
20308then :
20309
20310else $as_nop
20311  ac_cv_search_getifaddrs=no
20312fi
20313rm conftest.$ac_ext
20314LIBS=$ac_func_search_save_LIBS
20315fi
20316{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getifaddrs" >&5
20317printf "%s\n" "$ac_cv_search_getifaddrs" >&6; }
20318ac_res=$ac_cv_search_getifaddrs
20319if test "$ac_res" != no
20320then :
20321  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20322
20323fi
20324
20325
20326# Function getspnam() comes from the C library, System V -lsec, UnixWare 7 -lgen
20327# or Old Linux versions -lshadow
20328{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing getspnam" >&5
20329printf %s "checking for library containing getspnam... " >&6; }
20330if test ${ac_cv_search_getspnam+y}
20331then :
20332  printf %s "(cached) " >&6
20333else $as_nop
20334  ac_func_search_save_LIBS=$LIBS
20335cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20336/* end confdefs.h.  */
20337
20338/* Override any GCC internal prototype to avoid an error.
20339   Use char because int might match the return type of a GCC
20340   builtin and then its argument prototype would still apply.  */
20341char getspnam ();
20342int
20343main (void)
20344{
20345return getspnam ();
20346  ;
20347  return 0;
20348}
20349_ACEOF
20350for ac_lib in '' sec gen shadow
20351do
20352  if test -z "$ac_lib"; then
20353    ac_res="none required"
20354  else
20355    ac_res=-l$ac_lib
20356    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20357  fi
20358  if ac_fn_c_try_link "$LINENO"
20359then :
20360  ac_cv_search_getspnam=$ac_res
20361fi
20362rm -f core conftest.err conftest.$ac_objext conftest.beam \
20363    conftest$ac_exeext
20364  if test ${ac_cv_search_getspnam+y}
20365then :
20366  break
20367fi
20368done
20369if test ${ac_cv_search_getspnam+y}
20370then :
20371
20372else $as_nop
20373  ac_cv_search_getspnam=no
20374fi
20375rm conftest.$ac_ext
20376LIBS=$ac_func_search_save_LIBS
20377fi
20378{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getspnam" >&5
20379printf "%s\n" "$ac_cv_search_getspnam" >&6; }
20380ac_res=$ac_cv_search_getspnam
20381if test "$ac_res" != no
20382then :
20383  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20384
20385fi
20386
20387
20388# Function setproctitle() is in BSD -lutil or GNU systems -lbsd but N/A on Solaris
20389{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing setproctitle" >&5
20390printf %s "checking for library containing setproctitle... " >&6; }
20391if test ${ac_cv_search_setproctitle+y}
20392then :
20393  printf %s "(cached) " >&6
20394else $as_nop
20395  ac_func_search_save_LIBS=$LIBS
20396cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20397/* end confdefs.h.  */
20398
20399/* Override any GCC internal prototype to avoid an error.
20400   Use char because int might match the return type of a GCC
20401   builtin and then its argument prototype would still apply.  */
20402char setproctitle ();
20403int
20404main (void)
20405{
20406return setproctitle ();
20407  ;
20408  return 0;
20409}
20410_ACEOF
20411for ac_lib in '' util bsd
20412do
20413  if test -z "$ac_lib"; then
20414    ac_res="none required"
20415  else
20416    ac_res=-l$ac_lib
20417    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20418  fi
20419  if ac_fn_c_try_link "$LINENO"
20420then :
20421  ac_cv_search_setproctitle=$ac_res
20422fi
20423rm -f core conftest.err conftest.$ac_objext conftest.beam \
20424    conftest$ac_exeext
20425  if test ${ac_cv_search_setproctitle+y}
20426then :
20427  break
20428fi
20429done
20430if test ${ac_cv_search_setproctitle+y}
20431then :
20432
20433else $as_nop
20434  ac_cv_search_setproctitle=no
20435fi
20436rm conftest.$ac_ext
20437LIBS=$ac_func_search_save_LIBS
20438fi
20439{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setproctitle" >&5
20440printf "%s\n" "$ac_cv_search_setproctitle" >&6; }
20441ac_res=$ac_cv_search_setproctitle
20442if test "$ac_res" != no
20443then :
20444  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20445
20446fi
20447
20448
20449# Function setusercontext() is in BSD -lutil but N/A on Solaris or GNU systems
20450{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing setusercontext" >&5
20451printf %s "checking for library containing setusercontext... " >&6; }
20452if test ${ac_cv_search_setusercontext+y}
20453then :
20454  printf %s "(cached) " >&6
20455else $as_nop
20456  ac_func_search_save_LIBS=$LIBS
20457cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20458/* end confdefs.h.  */
20459
20460/* Override any GCC internal prototype to avoid an error.
20461   Use char because int might match the return type of a GCC
20462   builtin and then its argument prototype would still apply.  */
20463char setusercontext ();
20464int
20465main (void)
20466{
20467return setusercontext ();
20468  ;
20469  return 0;
20470}
20471_ACEOF
20472for ac_lib in '' util
20473do
20474  if test -z "$ac_lib"; then
20475    ac_res="none required"
20476  else
20477    ac_res=-l$ac_lib
20478    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20479  fi
20480  if ac_fn_c_try_link "$LINENO"
20481then :
20482  ac_cv_search_setusercontext=$ac_res
20483fi
20484rm -f core conftest.err conftest.$ac_objext conftest.beam \
20485    conftest$ac_exeext
20486  if test ${ac_cv_search_setusercontext+y}
20487then :
20488  break
20489fi
20490done
20491if test ${ac_cv_search_setusercontext+y}
20492then :
20493
20494else $as_nop
20495  ac_cv_search_setusercontext=no
20496fi
20497rm conftest.$ac_ext
20498LIBS=$ac_func_search_save_LIBS
20499fi
20500{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setusercontext" >&5
20501printf "%s\n" "$ac_cv_search_setusercontext" >&6; }
20502ac_res=$ac_cv_search_setusercontext
20503if test "$ac_res" != no
20504then :
20505  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20506
20507fi
20508
20509
20510# Function arc4random() is in BSD standard C or GNU systems -lbsd
20511{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing arc4random" >&5
20512printf %s "checking for library containing arc4random... " >&6; }
20513if test ${ac_cv_search_arc4random+y}
20514then :
20515  printf %s "(cached) " >&6
20516else $as_nop
20517  ac_func_search_save_LIBS=$LIBS
20518cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20519/* end confdefs.h.  */
20520
20521/* Override any GCC internal prototype to avoid an error.
20522   Use char because int might match the return type of a GCC
20523   builtin and then its argument prototype would still apply.  */
20524char arc4random ();
20525int
20526main (void)
20527{
20528return arc4random ();
20529  ;
20530  return 0;
20531}
20532_ACEOF
20533for ac_lib in '' bsd
20534do
20535  if test -z "$ac_lib"; then
20536    ac_res="none required"
20537  else
20538    ac_res=-l$ac_lib
20539    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20540  fi
20541  if ac_fn_c_try_link "$LINENO"
20542then :
20543  ac_cv_search_arc4random=$ac_res
20544fi
20545rm -f core conftest.err conftest.$ac_objext conftest.beam \
20546    conftest$ac_exeext
20547  if test ${ac_cv_search_arc4random+y}
20548then :
20549  break
20550fi
20551done
20552if test ${ac_cv_search_arc4random+y}
20553then :
20554
20555else $as_nop
20556  ac_cv_search_arc4random=no
20557fi
20558rm conftest.$ac_ext
20559LIBS=$ac_func_search_save_LIBS
20560fi
20561{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_arc4random" >&5
20562printf "%s\n" "$ac_cv_search_arc4random" >&6; }
20563ac_res=$ac_cv_search_arc4random
20564if test "$ac_res" != no
20565then :
20566  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20567  HAVE_ARC4RANDOM="yes"
20568fi
20569
20570
20571 if test x$HAVE_ARC4RANDOM = xyes; then
20572  HAVE_ARC4RANDOM_TRUE=
20573  HAVE_ARC4RANDOM_FALSE='#'
20574else
20575  HAVE_ARC4RANDOM_TRUE='#'
20576  HAVE_ARC4RANDOM_FALSE=
20577fi
20578
20579
20580# Function crypt() comes from the C library or the -lcrypt data encryption library
20581{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
20582printf %s "checking for library containing crypt... " >&6; }
20583if test ${ac_cv_search_crypt+y}
20584then :
20585  printf %s "(cached) " >&6
20586else $as_nop
20587  ac_func_search_save_LIBS=$LIBS
20588cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20589/* end confdefs.h.  */
20590
20591/* Override any GCC internal prototype to avoid an error.
20592   Use char because int might match the return type of a GCC
20593   builtin and then its argument prototype would still apply.  */
20594char crypt ();
20595int
20596main (void)
20597{
20598return crypt ();
20599  ;
20600  return 0;
20601}
20602_ACEOF
20603for ac_lib in '' crypt
20604do
20605  if test -z "$ac_lib"; then
20606    ac_res="none required"
20607  else
20608    ac_res=-l$ac_lib
20609    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20610  fi
20611  if ac_fn_c_try_link "$LINENO"
20612then :
20613  ac_cv_search_crypt=$ac_res
20614fi
20615rm -f core conftest.err conftest.$ac_objext conftest.beam \
20616    conftest$ac_exeext
20617  if test ${ac_cv_search_crypt+y}
20618then :
20619  break
20620fi
20621done
20622if test ${ac_cv_search_crypt+y}
20623then :
20624
20625else $as_nop
20626  ac_cv_search_crypt=no
20627fi
20628rm conftest.$ac_ext
20629LIBS=$ac_func_search_save_LIBS
20630fi
20631{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
20632printf "%s\n" "$ac_cv_search_crypt" >&6; }
20633ac_res=$ac_cv_search_crypt
20634if test "$ac_res" != no
20635then :
20636  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20637
20638fi
20639
20640
20641# Function dl() comes from the C library or -ldl
20642{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
20643printf %s "checking for library containing dlopen... " >&6; }
20644if test ${ac_cv_search_dlopen+y}
20645then :
20646  printf %s "(cached) " >&6
20647else $as_nop
20648  ac_func_search_save_LIBS=$LIBS
20649cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20650/* end confdefs.h.  */
20651
20652/* Override any GCC internal prototype to avoid an error.
20653   Use char because int might match the return type of a GCC
20654   builtin and then its argument prototype would still apply.  */
20655char dlopen ();
20656int
20657main (void)
20658{
20659return dlopen ();
20660  ;
20661  return 0;
20662}
20663_ACEOF
20664for ac_lib in '' dl
20665do
20666  if test -z "$ac_lib"; then
20667    ac_res="none required"
20668  else
20669    ac_res=-l$ac_lib
20670    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20671  fi
20672  if ac_fn_c_try_link "$LINENO"
20673then :
20674  ac_cv_search_dlopen=$ac_res
20675fi
20676rm -f core conftest.err conftest.$ac_objext conftest.beam \
20677    conftest$ac_exeext
20678  if test ${ac_cv_search_dlopen+y}
20679then :
20680  break
20681fi
20682done
20683if test ${ac_cv_search_dlopen+y}
20684then :
20685
20686else $as_nop
20687  ac_cv_search_dlopen=no
20688fi
20689rm conftest.$ac_ext
20690LIBS=$ac_func_search_save_LIBS
20691fi
20692{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
20693printf "%s\n" "$ac_cv_search_dlopen" >&6; }
20694ac_res=$ac_cv_search_dlopen
20695if test "$ac_res" != no
20696then :
20697  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20698
20699fi
20700
20701#------------------------------------------------------------------------------
20702
20703# Checks for header files.
20704ac_fn_c_check_header_compile "$LINENO" "grp.h" "ac_cv_header_grp_h" "$ac_includes_default"
20705if test "x$ac_cv_header_grp_h" = xyes
20706then :
20707  printf "%s\n" "#define HAVE_GRP_H 1" >>confdefs.h
20708
20709fi
20710ac_fn_c_check_header_compile "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
20711if test "x$ac_cv_header_syslog_h" = xyes
20712then :
20713  printf "%s\n" "#define HAVE_SYSLOG_H 1" >>confdefs.h
20714
20715fi
20716ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
20717if test "x$ac_cv_header_sys_param_h" = xyes
20718then :
20719  printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
20720
20721fi
20722
20723ac_fn_check_decl "$LINENO" "key_setnet" "ac_cv_have_decl_key_setnet" "
20724#include <rpc/rpc.h>
20725#include <rpc/key_prot.h>
20726
20727" "$ac_c_undeclared_builtin_options" "CFLAGS"
20728if test "x$ac_cv_have_decl_key_setnet" = xyes
20729then :
20730
20731printf "%s\n" "#define HAVE_DECL_KEY_SETNET 1" >>confdefs.h
20732
20733fi
20734
20735# Check for system library functions
20736# Required system libraries have been searched for and are listed in $LIBS
20737
20738  ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
20739"
20740if test "x$ac_cv_type_pid_t" = xyes
20741then :
20742
20743else $as_nop
20744                                          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20745/* end confdefs.h.  */
20746
20747          #if defined _WIN64 && !defined __CYGWIN__
20748          LLP64
20749          #endif
20750
20751int
20752main (void)
20753{
20754
20755  ;
20756  return 0;
20757}
20758
20759_ACEOF
20760if ac_fn_c_try_compile "$LINENO"
20761then :
20762  ac_pid_type='int'
20763else $as_nop
20764  ac_pid_type='__int64'
20765fi
20766rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20767
20768printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
20769
20770
20771fi
20772
20773
20774
20775ac_func=
20776for ac_item in $ac_func_c_list
20777do
20778  if test $ac_func; then
20779    ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
20780    if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
20781      echo "#define $ac_item 1" >> confdefs.h
20782    fi
20783    ac_func=
20784  else
20785    ac_func=$ac_item
20786  fi
20787done
20788
20789
20790
20791if test "x$ac_cv_func_fork" = xyes; then
20792  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
20793printf %s "checking for working fork... " >&6; }
20794if test ${ac_cv_func_fork_works+y}
20795then :
20796  printf %s "(cached) " >&6
20797else $as_nop
20798  if test "$cross_compiling" = yes
20799then :
20800  ac_cv_func_fork_works=cross
20801else $as_nop
20802  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20803/* end confdefs.h.  */
20804$ac_includes_default
20805int
20806main (void)
20807{
20808
20809	  /* By Ruediger Kuhlmann. */
20810	  return fork () < 0;
20811
20812  ;
20813  return 0;
20814}
20815_ACEOF
20816if ac_fn_c_try_run "$LINENO"
20817then :
20818  ac_cv_func_fork_works=yes
20819else $as_nop
20820  ac_cv_func_fork_works=no
20821fi
20822rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20823  conftest.$ac_objext conftest.beam conftest.$ac_ext
20824fi
20825
20826fi
20827{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
20828printf "%s\n" "$ac_cv_func_fork_works" >&6; }
20829
20830else
20831  ac_cv_func_fork_works=$ac_cv_func_fork
20832fi
20833if test "x$ac_cv_func_fork_works" = xcross; then
20834  case $host in
20835    *-*-amigaos* | *-*-msdosdjgpp*)
20836      # Override, as these systems have only a dummy fork() stub
20837      ac_cv_func_fork_works=no
20838      ;;
20839    *)
20840      ac_cv_func_fork_works=yes
20841      ;;
20842  esac
20843  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
20844printf "%s\n" "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
20845fi
20846ac_cv_func_vfork_works=$ac_cv_func_vfork
20847if test "x$ac_cv_func_vfork" = xyes; then
20848  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
20849printf %s "checking for working vfork... " >&6; }
20850if test ${ac_cv_func_vfork_works+y}
20851then :
20852  printf %s "(cached) " >&6
20853else $as_nop
20854  if test "$cross_compiling" = yes
20855then :
20856  ac_cv_func_vfork_works=cross
20857else $as_nop
20858  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20859/* end confdefs.h.  */
20860/* Thanks to Paul Eggert for this test.  */
20861$ac_includes_default
20862#include <signal.h>
20863#include <sys/wait.h>
20864#ifdef HAVE_VFORK_H
20865# include <vfork.h>
20866#endif
20867
20868static void
20869do_nothing (int sig)
20870{
20871  (void) sig;
20872}
20873
20874/* On some sparc systems, changes by the child to local and incoming
20875   argument registers are propagated back to the parent.  The compiler
20876   is told about this with #include <vfork.h>, but some compilers
20877   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
20878   static variable whose address is put into a register that is
20879   clobbered by the vfork.  */
20880static void
20881sparc_address_test (int arg)
20882{
20883  static pid_t child;
20884  if (!child) {
20885    child = vfork ();
20886    if (child < 0) {
20887      perror ("vfork");
20888      _exit(2);
20889    }
20890    if (!child) {
20891      arg = getpid();
20892      write(-1, "", 0);
20893      _exit (arg);
20894    }
20895  }
20896}
20897
20898int
20899main (void)
20900{
20901  pid_t parent = getpid ();
20902  pid_t child;
20903
20904  sparc_address_test (0);
20905
20906  /* On Solaris 2.4, changes by the child to the signal handler
20907     also munge signal handlers in the parent.  To detect this,
20908     start by putting the parent's handler in a known state.  */
20909  signal (SIGTERM, SIG_DFL);
20910
20911  child = vfork ();
20912
20913  if (child == 0) {
20914    /* Here is another test for sparc vfork register problems.  This
20915       test uses lots of local variables, at least as many local
20916       variables as main has allocated so far including compiler
20917       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
20918       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
20919       reuse the register of parent for one of the local variables,
20920       since it will think that parent can't possibly be used any more
20921       in this routine.  Assigning to the local variable will thus
20922       munge parent in the parent process.  */
20923    pid_t
20924      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
20925      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
20926    /* Convince the compiler that p..p7 are live; otherwise, it might
20927       use the same hardware register for all 8 local variables.  */
20928    if (p != p1 || p != p2 || p != p3 || p != p4
20929	|| p != p5 || p != p6 || p != p7)
20930      _exit(1);
20931
20932    /* Alter the child's signal handler.  */
20933    if (signal (SIGTERM, do_nothing) != SIG_DFL)
20934      _exit(1);
20935
20936    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
20937       from child file descriptors.  If the child closes a descriptor
20938       before it execs or exits, this munges the parent's descriptor
20939       as well.  Test for this by closing stdout in the child.  */
20940    _exit(close(fileno(stdout)) != 0);
20941  } else {
20942    int status;
20943    struct stat st;
20944
20945    while (wait(&status) != child)
20946      ;
20947    return (
20948	 /* Was there some problem with vforking?  */
20949	 child < 0
20950
20951	 /* Did the child munge the parent's signal handler?  */
20952	 || signal (SIGTERM, SIG_DFL) != SIG_DFL
20953
20954	 /* Did the child fail?  (This shouldn't happen.)  */
20955	 || status
20956
20957	 /* Did the vfork/compiler bug occur?  */
20958	 || parent != getpid()
20959
20960	 /* Did the file descriptor bug occur?  */
20961	 || fstat(fileno(stdout), &st) != 0
20962	 );
20963  }
20964}
20965_ACEOF
20966if ac_fn_c_try_run "$LINENO"
20967then :
20968  ac_cv_func_vfork_works=yes
20969else $as_nop
20970  ac_cv_func_vfork_works=no
20971fi
20972rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20973  conftest.$ac_objext conftest.beam conftest.$ac_ext
20974fi
20975
20976fi
20977{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
20978printf "%s\n" "$ac_cv_func_vfork_works" >&6; }
20979
20980fi;
20981if test "x$ac_cv_func_fork_works" = xcross; then
20982  ac_cv_func_vfork_works=$ac_cv_func_vfork
20983  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
20984printf "%s\n" "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
20985fi
20986
20987if test "x$ac_cv_func_vfork_works" = xyes; then
20988
20989printf "%s\n" "#define HAVE_WORKING_VFORK 1" >>confdefs.h
20990
20991else
20992
20993printf "%s\n" "#define vfork fork" >>confdefs.h
20994
20995fi
20996if test "x$ac_cv_func_fork_works" = xyes; then
20997
20998printf "%s\n" "#define HAVE_WORKING_FORK 1" >>confdefs.h
20999
21000fi
21001
21002ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
21003if test "x$ac_cv_func_daemon" = xyes
21004then :
21005  printf "%s\n" "#define HAVE_DAEMON 1" >>confdefs.h
21006
21007fi
21008ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
21009if test "x$ac_cv_func_sigaction" = xyes
21010then :
21011  printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
21012
21013fi
21014ac_fn_c_check_func "$LINENO" "openlog" "ac_cv_func_openlog"
21015if test "x$ac_cv_func_openlog" = xyes
21016then :
21017  printf "%s\n" "#define HAVE_OPENLOG 1" >>confdefs.h
21018
21019fi
21020ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
21021if test "x$ac_cv_func_asprintf" = xyes
21022then :
21023  printf "%s\n" "#define HAVE_ASPRINTF 1" >>confdefs.h
21024
21025fi
21026ac_fn_c_check_func "$LINENO" "setproctitle" "ac_cv_func_setproctitle"
21027if test "x$ac_cv_func_setproctitle" = xyes
21028then :
21029  printf "%s\n" "#define HAVE_SETPROCTITLE 1" >>confdefs.h
21030
21031fi
21032ac_fn_c_check_func "$LINENO" "setusercontext" "ac_cv_func_setusercontext"
21033if test "x$ac_cv_func_setusercontext" = xyes
21034then :
21035  printf "%s\n" "#define HAVE_SETUSERCONTEXT 1" >>confdefs.h
21036
21037fi
21038ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
21039if test "x$ac_cv_func_mkstemp" = xyes
21040then :
21041  printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h
21042
21043fi
21044ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
21045if test "x$ac_cv_func_getifaddrs" = xyes
21046then :
21047  printf "%s\n" "#define HAVE_GETIFADDRS 1" >>confdefs.h
21048
21049fi
21050ac_fn_c_check_func "$LINENO" "getspnam" "ac_cv_func_getspnam"
21051if test "x$ac_cv_func_getspnam" = xyes
21052then :
21053  printf "%s\n" "#define HAVE_GETSPNAM 1" >>confdefs.h
21054
21055fi
21056ac_fn_c_check_func "$LINENO" "arc4random" "ac_cv_func_arc4random"
21057if test "x$ac_cv_func_arc4random" = xyes
21058then :
21059  printf "%s\n" "#define HAVE_ARC4RANDOM 1" >>confdefs.h
21060
21061fi
21062
21063
21064XDM_CFLAGS="$XDM_CFLAGS"
21065GREETER_CFLAGS="$GREETER_CFLAGS"
21066CHOOSER_CFLAGS="$CHOOSER_CFLAGS"
21067
21068# Find needed libraries for TCP sockets (pre-pended in $LIBS)
21069
21070
21071 case $host_os in
21072	mingw*)	unixdef="no"   ;;
21073	*)	unixdef="yes"  ;;
21074 esac
21075 # Check whether --enable-unix-transport was given.
21076if test ${enable_unix_transport+y}
21077then :
21078  enableval=$enable_unix_transport; UNIXCONN=$enableval
21079else $as_nop
21080  UNIXCONN=$unixdef
21081fi
21082
21083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5
21084printf %s "checking if Xtrans should support UNIX socket connections... " >&6; }
21085 if test "$UNIXCONN" = "yes"; then
21086
21087printf "%s\n" "#define UNIXCONN 1" >>confdefs.h
21088
21089 fi
21090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5
21091printf "%s\n" "$UNIXCONN" >&6; }
21092 # Check whether --enable-tcp-transport was given.
21093if test ${enable_tcp_transport+y}
21094then :
21095  enableval=$enable_tcp_transport; TCPCONN=$enableval
21096else $as_nop
21097  TCPCONN=yes
21098fi
21099
21100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5
21101printf %s "checking if Xtrans should support TCP socket connections... " >&6; }
21102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5
21103printf "%s\n" "$TCPCONN" >&6; }
21104 if test "$TCPCONN" = "yes"; then
21105
21106printf "%s\n" "#define TCPCONN 1" >>confdefs.h
21107
21108
21109 # SVR4 hides these in libraries other than libc
21110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
21111printf %s "checking for library containing socket... " >&6; }
21112if test ${ac_cv_search_socket+y}
21113then :
21114  printf %s "(cached) " >&6
21115else $as_nop
21116  ac_func_search_save_LIBS=$LIBS
21117cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21118/* end confdefs.h.  */
21119
21120/* Override any GCC internal prototype to avoid an error.
21121   Use char because int might match the return type of a GCC
21122   builtin and then its argument prototype would still apply.  */
21123char socket ();
21124int
21125main (void)
21126{
21127return socket ();
21128  ;
21129  return 0;
21130}
21131_ACEOF
21132for ac_lib in '' socket
21133do
21134  if test -z "$ac_lib"; then
21135    ac_res="none required"
21136  else
21137    ac_res=-l$ac_lib
21138    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21139  fi
21140  if ac_fn_c_try_link "$LINENO"
21141then :
21142  ac_cv_search_socket=$ac_res
21143fi
21144rm -f core conftest.err conftest.$ac_objext conftest.beam \
21145    conftest$ac_exeext
21146  if test ${ac_cv_search_socket+y}
21147then :
21148  break
21149fi
21150done
21151if test ${ac_cv_search_socket+y}
21152then :
21153
21154else $as_nop
21155  ac_cv_search_socket=no
21156fi
21157rm conftest.$ac_ext
21158LIBS=$ac_func_search_save_LIBS
21159fi
21160{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
21161printf "%s\n" "$ac_cv_search_socket" >&6; }
21162ac_res=$ac_cv_search_socket
21163if test "$ac_res" != no
21164then :
21165  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21166
21167fi
21168
21169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
21170printf %s "checking for library containing gethostbyname... " >&6; }
21171if test ${ac_cv_search_gethostbyname+y}
21172then :
21173  printf %s "(cached) " >&6
21174else $as_nop
21175  ac_func_search_save_LIBS=$LIBS
21176cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21177/* end confdefs.h.  */
21178
21179/* Override any GCC internal prototype to avoid an error.
21180   Use char because int might match the return type of a GCC
21181   builtin and then its argument prototype would still apply.  */
21182char gethostbyname ();
21183int
21184main (void)
21185{
21186return gethostbyname ();
21187  ;
21188  return 0;
21189}
21190_ACEOF
21191for ac_lib in '' nsl
21192do
21193  if test -z "$ac_lib"; then
21194    ac_res="none required"
21195  else
21196    ac_res=-l$ac_lib
21197    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21198  fi
21199  if ac_fn_c_try_link "$LINENO"
21200then :
21201  ac_cv_search_gethostbyname=$ac_res
21202fi
21203rm -f core conftest.err conftest.$ac_objext conftest.beam \
21204    conftest$ac_exeext
21205  if test ${ac_cv_search_gethostbyname+y}
21206then :
21207  break
21208fi
21209done
21210if test ${ac_cv_search_gethostbyname+y}
21211then :
21212
21213else $as_nop
21214  ac_cv_search_gethostbyname=no
21215fi
21216rm conftest.$ac_ext
21217LIBS=$ac_func_search_save_LIBS
21218fi
21219{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
21220printf "%s\n" "$ac_cv_search_gethostbyname" >&6; }
21221ac_res=$ac_cv_search_gethostbyname
21222if test "$ac_res" != no
21223then :
21224  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21225
21226fi
21227
21228 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then
21229   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
21230printf %s "checking for main in -lws2_32... " >&6; }
21231if test ${ac_cv_lib_ws2_32_main+y}
21232then :
21233  printf %s "(cached) " >&6
21234else $as_nop
21235  ac_check_lib_save_LIBS=$LIBS
21236LIBS="-lws2_32  $LIBS"
21237cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21238/* end confdefs.h.  */
21239
21240
21241int
21242main (void)
21243{
21244return main ();
21245  ;
21246  return 0;
21247}
21248_ACEOF
21249if ac_fn_c_try_link "$LINENO"
21250then :
21251  ac_cv_lib_ws2_32_main=yes
21252else $as_nop
21253  ac_cv_lib_ws2_32_main=no
21254fi
21255rm -f core conftest.err conftest.$ac_objext conftest.beam \
21256    conftest$ac_exeext conftest.$ac_ext
21257LIBS=$ac_check_lib_save_LIBS
21258fi
21259{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
21260printf "%s\n" "$ac_cv_lib_ws2_32_main" >&6; }
21261if test "x$ac_cv_lib_ws2_32_main" = xyes
21262then :
21263  printf "%s\n" "#define HAVE_LIBWS2_32 1" >>confdefs.h
21264
21265  LIBS="-lws2_32 $LIBS"
21266
21267fi
21268
21269 fi
21270
21271 # Needs to come after above checks for libsocket & libnsl for SVR4 systems
21272 # Check whether --enable-ipv6 was given.
21273if test ${enable_ipv6+y}
21274then :
21275  enableval=$enable_ipv6; IPV6CONN=$enableval
21276else $as_nop
21277  ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
21278if test "x$ac_cv_func_getaddrinfo" = xyes
21279then :
21280  IPV6CONN=yes
21281else $as_nop
21282  IPV6CONN=no
21283fi
21284
21285fi
21286
21287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5
21288printf %s "checking if IPv6 support should be built... " >&6; }
21289 if test "$IPV6CONN" = "yes"; then
21290
21291printf "%s\n" "#define IPv6 1" >>confdefs.h
21292
21293 fi
21294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5
21295printf "%s\n" "$IPV6CONN" >&6; }
21296
21297 # 4.3BSD-Reno added a new member to struct sockaddr_in
21298 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
21299#include <sys/types.h>
21300#include <sys/socket.h>
21301#include <netinet/in.h>
21302
21303"
21304if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes
21305then :
21306
21307printf "%s\n" "#define BSD44SOCKETS 1" >>confdefs.h
21308
21309fi
21310
21311
21312 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
21313 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
21314$ac_includes_default
21315#include <sys/socket.h>
21316"
21317if test "x$ac_cv_type_socklen_t" = xyes
21318then :
21319
21320printf "%s\n" "#define HAVE_SOCKLEN_T 1" >>confdefs.h
21321
21322
21323fi
21324
21325
21326 # XPG4v2/UNIX95 added msg_control - check to see if we need to define
21327 # _XOPEN_SOURCE to get it (such as on Solaris)
21328 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
21329$ac_includes_default
21330#include <sys/socket.h>
21331
21332"
21333if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
21334then :
21335
21336fi
21337
21338 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03
21339 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
21340     unset ac_cv_member_struct_msghdr_msg_control
21341     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5
21342printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=600" >&6;}
21343     ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
21344#define _XOPEN_SOURCE 600
21345$ac_includes_default
21346#include <sys/socket.h>
21347
21348"
21349if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
21350then :
21351
21352printf "%s\n" "#define _XOPEN_SOURCE 600" >>confdefs.h
21353
21354
21355fi
21356
21357 fi
21358 # If that didn't work, fall back to XPG5/UNIX98 with C89
21359 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
21360     unset ac_cv_member_struct_msghdr_msg_control
21361     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5
21362printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=500" >&6;}
21363     ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
21364#define _XOPEN_SOURCE 500
21365$ac_includes_default
21366#include <sys/socket.h>
21367
21368"
21369if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
21370then :
21371
21372printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
21373
21374
21375fi
21376
21377 fi
21378
21379
21380
21381 fi
21382 case $host_os in
21383	solaris*)		localdef="yes" ;;
21384	*)			localdef="no"  ;;
21385 esac
21386 # Check whether --enable-local-transport was given.
21387if test ${enable_local_transport+y}
21388then :
21389  enableval=$enable_local_transport; LOCALCONN=$enableval
21390else $as_nop
21391  LOCALCONN=$localdef
21392fi
21393
21394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5
21395printf %s "checking if Xtrans should support os-specific local connections... " >&6; }
21396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5
21397printf "%s\n" "$LOCALCONN" >&6; }
21398 if test "$LOCALCONN" = "yes"; then
21399
21400printf "%s\n" "#define LOCALCONN 1" >>confdefs.h
21401
21402 fi
21403
21404 # Other functions Xtrans may need
21405 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
21406if test "x$ac_cv_func_strcasecmp" = xyes
21407then :
21408  printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
21409
21410fi
21411ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
21412if test "x$ac_cv_func_strlcpy" = xyes
21413then :
21414  printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
21415
21416fi
21417
21418
21419
21420
21421# Sets $SECURE_RPC to "yes" or "no" using libraries found above from $LIBS
21422
21423 # Check whether --enable-secure-rpc was given.
21424if test ${enable_secure_rpc+y}
21425then :
21426  enableval=$enable_secure_rpc; SECURE_RPC=$enableval
21427else $as_nop
21428  SECURE_RPC="try"
21429fi
21430
21431
21432 if test "x$SECURE_RPC" = "xyes" -o "x$SECURE_RPC" = "xtry" ; then
21433	FOUND_SECURE_RPC="no"
21434
21435  for ac_func in authdes_seccreate authdes_create
21436do :
21437  as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh`
21438ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21439if eval test \"x\$"$as_ac_var"\" = x"yes"
21440then :
21441  cat >>confdefs.h <<_ACEOF
21442#define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1
21443_ACEOF
21444 FOUND_SECURE_RPC="yes"
21445fi
21446
21447done
21448	if test "x$FOUND_SECURE_RPC" = "xno" ; then
21449		if test "x$SECURE_RPC" = "xyes" ; then
21450	as_fn_error $? "Secure RPC requested, but required functions not found" "$LINENO" 5
21451		fi
21452		SECURE_RPC="no"
21453	else
21454				{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing getsecretkey" >&5
21455printf %s "checking for library containing getsecretkey... " >&6; }
21456if test ${ac_cv_search_getsecretkey+y}
21457then :
21458  printf %s "(cached) " >&6
21459else $as_nop
21460  ac_func_search_save_LIBS=$LIBS
21461cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21462/* end confdefs.h.  */
21463
21464/* Override any GCC internal prototype to avoid an error.
21465   Use char because int might match the return type of a GCC
21466   builtin and then its argument prototype would still apply.  */
21467char getsecretkey ();
21468int
21469main (void)
21470{
21471return getsecretkey ();
21472  ;
21473  return 0;
21474}
21475_ACEOF
21476for ac_lib in '' rpcsvc
21477do
21478  if test -z "$ac_lib"; then
21479    ac_res="none required"
21480  else
21481    ac_res=-l$ac_lib
21482    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21483  fi
21484  if ac_fn_c_try_link "$LINENO"
21485then :
21486  ac_cv_search_getsecretkey=$ac_res
21487fi
21488rm -f core conftest.err conftest.$ac_objext conftest.beam \
21489    conftest$ac_exeext
21490  if test ${ac_cv_search_getsecretkey+y}
21491then :
21492  break
21493fi
21494done
21495if test ${ac_cv_search_getsecretkey+y}
21496then :
21497
21498else $as_nop
21499  ac_cv_search_getsecretkey=no
21500fi
21501rm conftest.$ac_ext
21502LIBS=$ac_func_search_save_LIBS
21503fi
21504{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getsecretkey" >&5
21505printf "%s\n" "$ac_cv_search_getsecretkey" >&6; }
21506ac_res=$ac_cv_search_getsecretkey
21507if test "$ac_res" != no
21508then :
21509  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21510
21511fi
21512
21513		SECURE_RPC="yes"
21514	fi
21515 fi
21516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Secure RPC authentication (\"SUN-DES-1\") should be supported" >&5
21517printf %s "checking if Secure RPC authentication (\"SUN-DES-1\") should be supported... " >&6; }
21518 if test "x$SECURE_RPC" = "xyes" ; then
21519
21520printf "%s\n" "#define SECURE_RPC 1" >>confdefs.h
21521
21522 fi
21523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SECURE_RPC" >&5
21524printf "%s\n" "$SECURE_RPC" >&6; }
21525
21526 if test x$SECURE_RPC = xyes; then
21527  HAS_SECURE_RPC_TRUE=
21528  HAS_SECURE_RPC_FALSE='#'
21529else
21530  HAS_SECURE_RPC_TRUE='#'
21531  HAS_SECURE_RPC_FALSE=
21532fi
21533
21534
21535# Check for pluggable authentication modules (PAM) support
21536
21537# Check whether --with-pam was given.
21538if test ${with_pam+y}
21539then :
21540  withval=$with_pam; USE_PAM=$withval
21541else $as_nop
21542  USE_PAM=auto
21543fi
21544
21545if test "x$USE_PAM" != "xno" ; then
21546           for ac_header in security/pam_appl.h pam/pam_appl.h
21547do :
21548  as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
21549ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21550if eval test \"x\$"$as_ac_Header"\" = x"yes"
21551then :
21552  cat >>confdefs.h <<_ACEOF
21553#define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
21554_ACEOF
21555 found=yes ; break ;
21556else $as_nop
21557  found=no
21558fi
21559
21560done
21561    if test "x$USE_PAM" = "xyes" -a  "x$found" = "xno"
21562then :
21563  as_fn_error $? "PAM support requested, but we could not find the pam headers." "$LINENO" 5
21564fi
21565    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing pam_open_session" >&5
21566printf %s "checking for library containing pam_open_session... " >&6; }
21567if test ${ac_cv_search_pam_open_session+y}
21568then :
21569  printf %s "(cached) " >&6
21570else $as_nop
21571  ac_func_search_save_LIBS=$LIBS
21572cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21573/* end confdefs.h.  */
21574
21575/* Override any GCC internal prototype to avoid an error.
21576   Use char because int might match the return type of a GCC
21577   builtin and then its argument prototype would still apply.  */
21578char pam_open_session ();
21579int
21580main (void)
21581{
21582return pam_open_session ();
21583  ;
21584  return 0;
21585}
21586_ACEOF
21587for ac_lib in '' pam
21588do
21589  if test -z "$ac_lib"; then
21590    ac_res="none required"
21591  else
21592    ac_res=-l$ac_lib
21593    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21594  fi
21595  if ac_fn_c_try_link "$LINENO"
21596then :
21597  ac_cv_search_pam_open_session=$ac_res
21598fi
21599rm -f core conftest.err conftest.$ac_objext conftest.beam \
21600    conftest$ac_exeext
21601  if test ${ac_cv_search_pam_open_session+y}
21602then :
21603  break
21604fi
21605done
21606if test ${ac_cv_search_pam_open_session+y}
21607then :
21608
21609else $as_nop
21610  ac_cv_search_pam_open_session=no
21611fi
21612rm conftest.$ac_ext
21613LIBS=$ac_func_search_save_LIBS
21614fi
21615{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pam_open_session" >&5
21616printf "%s\n" "$ac_cv_search_pam_open_session" >&6; }
21617ac_res=$ac_cv_search_pam_open_session
21618if test "$ac_res" != no
21619then :
21620  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21621  ac_fn_c_check_func "$LINENO" "pam_open_session" "ac_cv_func_pam_open_session"
21622if test "x$ac_cv_func_pam_open_session" = xyes
21623then :
21624
21625printf "%s\n" "#define USE_PAM 1" >>confdefs.h
21626
21627
21628fi
21629
21630else $as_nop
21631  if test "x$USE_PAM" = "xyes"
21632then :
21633  as_fn_error $? "PAM support requested, but pam_open_session not found." "$LINENO" 5
21634
21635fi
21636
21637fi
21638
21639fi
21640
21641# Check for Security-Enhanced Linux (SELinux) support
21642
21643# Check whether --with-selinux was given.
21644if test ${with_selinux+y}
21645then :
21646  withval=$with_selinux; USE_SELINUX=$withval
21647else $as_nop
21648  USE_SELINUX=no
21649fi
21650
21651if test "x$USE_SELINUX" != "xno" ; then
21652    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing is_selinux_enabled" >&5
21653printf %s "checking for library containing is_selinux_enabled... " >&6; }
21654if test ${ac_cv_search_is_selinux_enabled+y}
21655then :
21656  printf %s "(cached) " >&6
21657else $as_nop
21658  ac_func_search_save_LIBS=$LIBS
21659cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21660/* end confdefs.h.  */
21661
21662/* Override any GCC internal prototype to avoid an error.
21663   Use char because int might match the return type of a GCC
21664   builtin and then its argument prototype would still apply.  */
21665char is_selinux_enabled ();
21666int
21667main (void)
21668{
21669return is_selinux_enabled ();
21670  ;
21671  return 0;
21672}
21673_ACEOF
21674for ac_lib in '' selinux
21675do
21676  if test -z "$ac_lib"; then
21677    ac_res="none required"
21678  else
21679    ac_res=-l$ac_lib
21680    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21681  fi
21682  if ac_fn_c_try_link "$LINENO"
21683then :
21684  ac_cv_search_is_selinux_enabled=$ac_res
21685fi
21686rm -f core conftest.err conftest.$ac_objext conftest.beam \
21687    conftest$ac_exeext
21688  if test ${ac_cv_search_is_selinux_enabled+y}
21689then :
21690  break
21691fi
21692done
21693if test ${ac_cv_search_is_selinux_enabled+y}
21694then :
21695
21696else $as_nop
21697  ac_cv_search_is_selinux_enabled=no
21698fi
21699rm conftest.$ac_ext
21700LIBS=$ac_func_search_save_LIBS
21701fi
21702{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_is_selinux_enabled" >&5
21703printf "%s\n" "$ac_cv_search_is_selinux_enabled" >&6; }
21704ac_res=$ac_cv_search_is_selinux_enabled
21705if test "$ac_res" != no
21706then :
21707  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21708  ac_fn_c_check_func "$LINENO" "is_selinux_enabled" "ac_cv_func_is_selinux_enabled"
21709if test "x$ac_cv_func_is_selinux_enabled" = xyes
21710then :
21711
21712printf "%s\n" "#define USE_SELINUX 1" >>confdefs.h
21713
21714
21715fi
21716
21717else $as_nop
21718  if test "x$USE_SELINUX" = "xyes"
21719then :
21720  as_fn_error $? "SELinux support requested, but is_selinux_enabled not found." "$LINENO" 5
21721
21722fi
21723
21724fi
21725
21726fi
21727
21728# Check whether to install systemd unit files, as suggested in daemon(7).
21729# When a full path is specified, this does not require systemd installed.
21730
21731# Check whether --with-systemdsystemunitdir was given.
21732if test ${with_systemdsystemunitdir+y}
21733then :
21734  withval=$with_systemdsystemunitdir;
21735else $as_nop
21736  with_systemdsystemunitdir=auto
21737fi
21738
21739if test "x$with_systemdsystemunitdir" = "xyes" -o "x$with_systemdsystemunitdir" = "xauto"
21740then :
21741
21742    def_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)
21743
21744    if test "x$def_systemdsystemunitdir" = "x"
21745then :
21746
21747	if test "x$with_systemdsystemunitdir" = "xyes"
21748then :
21749
21750	    as_fn_error $? "systemd support requested but pkg-config unable to query systemd package" "$LINENO" 5
21751
21752fi
21753	with_systemdsystemunitdir=no
21754
21755else $as_nop
21756
21757	with_systemdsystemunitdir=$def_systemdsystemunitdir
21758
21759fi
21760
21761fi
21762if test "x$with_systemdsystemunitdir" != "xno"
21763then :
21764
21765	systemdsystemunitdir=$with_systemdsystemunitdir
21766
21767
21768fi
21769 if test "x$with_systemdsystemunitdir" != "xno"; then
21770  HAVE_SYSTEMD_TRUE=
21771  HAVE_SYSTEMD_FALSE='#'
21772else
21773  HAVE_SYSTEMD_TRUE='#'
21774  HAVE_SYSTEMD_FALSE=
21775fi
21776
21777
21778# Check whether to enable systemd startup notification.
21779# This requires libsystemd.
21780
21781# Check whether --with-systemd-daemon was given.
21782if test ${with_systemd_daemon+y}
21783then :
21784  withval=$with_systemd_daemon; USE_SYSTEMD_DAEMON=$withval
21785else $as_nop
21786  USE_SYSTEMD_DAEMON=auto
21787fi
21788
21789if test "x$USE_SYSTEMD_DAEMON" != "xno"
21790then :
21791
21792
21793pkg_failed=no
21794{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD_DAEMON" >&5
21795printf %s "checking for SYSTEMD_DAEMON... " >&6; }
21796
21797if test -n "$SYSTEMD_DAEMON_CFLAGS"; then
21798    pkg_cv_SYSTEMD_DAEMON_CFLAGS="$SYSTEMD_DAEMON_CFLAGS"
21799 elif test -n "$PKG_CONFIG"; then
21800    if test -n "$PKG_CONFIG" && \
21801    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
21802  ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
21803  ac_status=$?
21804  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21805  test $ac_status = 0; }; then
21806  pkg_cv_SYSTEMD_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "libsystemd" 2>/dev/null`
21807		      test "x$?" != "x0" && pkg_failed=yes
21808else
21809  pkg_failed=yes
21810fi
21811 else
21812    pkg_failed=untried
21813fi
21814if test -n "$SYSTEMD_DAEMON_LIBS"; then
21815    pkg_cv_SYSTEMD_DAEMON_LIBS="$SYSTEMD_DAEMON_LIBS"
21816 elif test -n "$PKG_CONFIG"; then
21817    if test -n "$PKG_CONFIG" && \
21818    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
21819  ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
21820  ac_status=$?
21821  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21822  test $ac_status = 0; }; then
21823  pkg_cv_SYSTEMD_DAEMON_LIBS=`$PKG_CONFIG --libs "libsystemd" 2>/dev/null`
21824		      test "x$?" != "x0" && pkg_failed=yes
21825else
21826  pkg_failed=yes
21827fi
21828 else
21829    pkg_failed=untried
21830fi
21831
21832
21833
21834if test $pkg_failed = yes; then
21835   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21836printf "%s\n" "no" >&6; }
21837
21838if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21839        _pkg_short_errors_supported=yes
21840else
21841        _pkg_short_errors_supported=no
21842fi
21843        if test $_pkg_short_errors_supported = yes; then
21844	        SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd" 2>&1`
21845        else
21846	        SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd" 2>&1`
21847        fi
21848	# Put the nasty error message in config.log where it belongs
21849	echo "$SYSTEMD_DAEMON_PKG_ERRORS" >&5
21850
21851	if test "x$USE_SYSTEMD_DAEMON" = "xyes"
21852then :
21853  as_fn_error $? "systemd startup notification support requested, but libsystemd not found." "$LINENO" 5
21854
21855fi
21856
21857elif test $pkg_failed = untried; then
21858     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21859printf "%s\n" "no" >&6; }
21860	if test "x$USE_SYSTEMD_DAEMON" = "xyes"
21861then :
21862  as_fn_error $? "systemd startup notification support requested, but libsystemd not found." "$LINENO" 5
21863
21864fi
21865
21866else
21867	SYSTEMD_DAEMON_CFLAGS=$pkg_cv_SYSTEMD_DAEMON_CFLAGS
21868	SYSTEMD_DAEMON_LIBS=$pkg_cv_SYSTEMD_DAEMON_LIBS
21869        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21870printf "%s\n" "yes" >&6; }
21871
21872printf "%s\n" "#define USE_SYSTEMD_DAEMON 1" >>confdefs.h
21873
21874fi
21875
21876fi
21877 if test "x$USE_SYSTEMD_DAEMON" != "xno"; then
21878  USE_SYSTEMD_DAEMON_TRUE=
21879  USE_SYSTEMD_DAEMON_FALSE='#'
21880else
21881  USE_SYSTEMD_DAEMON_TRUE='#'
21882  USE_SYSTEMD_DAEMON_FALSE=
21883fi
21884
21885
21886# FIXME: Find better test for which OS'es use su -m  - for now, just try to
21887# mirror the Imakefile setting of:
21888# if  defined(OpenBSDArchitecture) || defined(NetBSDArchitecture) || defined(FreeBSDArchitecture) || defined(DarwinArchitecture)
21889
21890
21891case $host_os in
21892    linux*|gnu*|*-gnu)
21893	SU="su"
21894        ;;
21895    darwin*)
21896	SU="su -m"
21897        ;;
21898    *bsd*|dragonfly*)
21899	SU="su -m"
21900        ;;
21901    solaris*|sysv4*)
21902	SU="su"
21903	;;
21904    *)
21905	SU="su"
21906        ;;
21907esac
21908
21909
21910# Define a configure option to locate a special file (/dev/random or /dev/urandom)
21911# that serves as a random or a pseudorandom number generator
21912
21913# Check whether --with-random-device was given.
21914if test ${with_random_device+y}
21915then :
21916  withval=$with_random_device; USE_DEVICE="$withval"
21917else $as_nop
21918  USE_DEVICE="auto"
21919fi
21920
21921if test x$USE_DEVICE != xno ; then
21922    if test x$USE_DEVICE = xyes -o x$USE_DEVICE = xauto ; then
21923	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /dev/urandom" >&5
21924printf %s "checking for /dev/urandom... " >&6; }
21925if test ${ac_cv_file__dev_urandom+y}
21926then :
21927  printf %s "(cached) " >&6
21928else $as_nop
21929  test "$cross_compiling" = yes &&
21930  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
21931if test -r "/dev/urandom"; then
21932  ac_cv_file__dev_urandom=yes
21933else
21934  ac_cv_file__dev_urandom=no
21935fi
21936fi
21937{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_urandom" >&5
21938printf "%s\n" "$ac_cv_file__dev_urandom" >&6; }
21939if test "x$ac_cv_file__dev_urandom" = xyes
21940then :
21941  DEV_RANDOM=/dev/urandom
21942else $as_nop
21943  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /dev/random" >&5
21944printf %s "checking for /dev/random... " >&6; }
21945if test ${ac_cv_file__dev_random+y}
21946then :
21947  printf %s "(cached) " >&6
21948else $as_nop
21949  test "$cross_compiling" = yes &&
21950  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
21951if test -r "/dev/random"; then
21952  ac_cv_file__dev_random=yes
21953else
21954  ac_cv_file__dev_random=no
21955fi
21956fi
21957{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_random" >&5
21958printf "%s\n" "$ac_cv_file__dev_random" >&6; }
21959if test "x$ac_cv_file__dev_random" = xyes
21960then :
21961  DEV_RANDOM=/dev/random
21962else $as_nop
21963  if test "x$USE_DEVICE" = "xyes"
21964then :
21965  as_fn_error $? "random device support requested, but no random device was found." "$LINENO" 5
21966
21967fi
21968
21969fi
21970
21971
21972fi
21973
21974    else
21975	# assume the user input is a valid path to a random number generator
21976	DEV_RANDOM=$USE_DEVICE
21977    fi
21978    if test x$DEV_RANDOM != x ; then
21979
21980printf "%s\n" "#define DEV_RANDOM \"$DEV_RANDOM\"" >>confdefs.h
21981
21982    fi
21983fi
21984
21985
21986# FIXME: find out how to check for these things. Note that Kerberos was
21987# turned off everywhere but on OpenBSD.
21988 if false; then
21989  HAS_KERBEROS_FIVE_TRUE=
21990  HAS_KERBEROS_FIVE_FALSE='#'
21991else
21992  HAS_KERBEROS_FIVE_TRUE='#'
21993  HAS_KERBEROS_FIVE_FALSE=
21994fi
21995
21996
21997
21998# Figure out where everything goes in the filesystem
21999
22000
22001# Check whether --with-xdmlibdir was given.
22002if test ${with_xdmlibdir+y}
22003then :
22004  withval=$with_xdmlibdir; XDMLIBDIR="$withval"
22005else $as_nop
22006  XDMLIBDIR="${libdir}/X11/xdm"
22007fi
22008
22009
22010
22011
22012# Check whether --with-xdmconfigdir was given.
22013if test ${with_xdmconfigdir+y}
22014then :
22015  withval=$with_xdmconfigdir; XDMCONFIGDIR="$withval"
22016else $as_nop
22017  XDMCONFIGDIR="${XDMLIBDIR}"
22018fi
22019
22020
22021
22022
22023# Check whether --with-xdmscriptdir was given.
22024if test ${with_xdmscriptdir+y}
22025then :
22026  withval=$with_xdmscriptdir; XDMSCRIPTDIR="$withval"
22027else $as_nop
22028  XDMSCRIPTDIR="${XDMLIBDIR}"
22029fi
22030
22031
22032
22033
22034# Check whether --with-logdir was given.
22035if test ${with_logdir+y}
22036then :
22037  withval=$with_logdir; XDMLOGDIR="$withval"
22038else $as_nop
22039  XDMLOGDIR="/var/log"
22040fi
22041
22042
22043
22044
22045# Check whether --with-piddir was given.
22046if test ${with_piddir+y}
22047then :
22048  withval=$with_piddir; XDMPIDDIR="$withval"
22049else $as_nop
22050  XDMPIDDIR="/var/run"
22051fi
22052
22053
22054
22055
22056# Check whether --with-default-vt was given.
22057if test ${with_default_vt+y}
22058then :
22059  withval=$with_default_vt; DEFAULTVT="$withval"
22060else $as_nop
22061  DEFAULTVT=""
22062fi
22063
22064
22065
22066
22067# Check whether --with-config-type was given.
22068if test ${with_config_type+y}
22069then :
22070  withval=$with_config_type; SERVERSTYPE="$withval"
22071else $as_nop
22072  SERVERSTYPE="ws"
22073fi
22074
22075
22076
22077
22078# Check whether --with-utmp_file was given.
22079if test ${with_utmp_file+y}
22080then :
22081  withval=$with_utmp_file; UTMP_FILE="$withval"
22082fi
22083
22084if test "x$UTMP_FILE" = "xyes" ; then
22085	UTMP_FILE=""
22086elif test "x$UTMP_FILE" = "xno" ; then
22087	UTMP_FILE="none"
22088fi
22089{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for path to file listing current logins for sessreg" >&5
22090printf %s "checking for path to file listing current logins for sessreg... " >&6; }
22091if test "x$UTMP_FILE" = "x" ; then
22092	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: use sessreg default" >&5
22093printf "%s\n" "use sessreg default" >&6; }
22094else
22095	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UTMP_FILE" >&5
22096printf "%s\n" "$UTMP_FILE" >&6; }
22097fi
22098 if test x$UTMP_FILE != x; then
22099  SET_UTMP_FILE_TRUE=
22100  SET_UTMP_FILE_FALSE='#'
22101else
22102  SET_UTMP_FILE_TRUE='#'
22103  SET_UTMP_FILE_FALSE=
22104fi
22105
22106
22107
22108
22109# Check whether --with-wtmp_file was given.
22110if test ${with_wtmp_file+y}
22111then :
22112  withval=$with_wtmp_file; WTMP_FILE="$withval"
22113fi
22114
22115if test "x$WTMP_FILE" = "xyes" ; then
22116	WTMP_FILE=""
22117elif test "x$WTMP_FILE" = "xno" ; then
22118	WTMP_FILE="none"
22119fi
22120{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for path to file listing login history for sessreg" >&5
22121printf %s "checking for path to file listing login history for sessreg... " >&6; }
22122if test "x$WTMP_FILE" = "x" ; then
22123	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: use sessreg default" >&5
22124printf "%s\n" "use sessreg default" >&6; }
22125else
22126	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $WTMP_FILE" >&5
22127printf "%s\n" "$WTMP_FILE" >&6; }
22128fi
22129 if test x$WTMP_FILE != x; then
22130  SET_WTMP_FILE_TRUE=
22131  SET_WTMP_FILE_FALSE='#'
22132else
22133  SET_WTMP_FILE_TRUE='#'
22134  SET_WTMP_FILE_FALSE=
22135fi
22136
22137
22138
22139case $host_os in
22140    *sco*|*solaris*)
22141		SHELL_CMD="/bin/ksh"	;;
22142    *)		SHELL_CMD="/bin/sh"	;;
22143esac
22144
22145
22146# Checks for pkg-config packages
22147
22148
22149pkg_failed=no
22150{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XDM" >&5
22151printf %s "checking for XDM... " >&6; }
22152
22153if test -n "$XDM_CFLAGS"; then
22154    pkg_cv_XDM_CFLAGS="$XDM_CFLAGS"
22155 elif test -n "$PKG_CONFIG"; then
22156    if test -n "$PKG_CONFIG" && \
22157    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xmu x11 xau xproto >= 7.0.17\""; } >&5
22158  ($PKG_CONFIG --exists --print-errors "xmu x11 xau xproto >= 7.0.17") 2>&5
22159  ac_status=$?
22160  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22161  test $ac_status = 0; }; then
22162  pkg_cv_XDM_CFLAGS=`$PKG_CONFIG --cflags "xmu x11 xau xproto >= 7.0.17" 2>/dev/null`
22163		      test "x$?" != "x0" && pkg_failed=yes
22164else
22165  pkg_failed=yes
22166fi
22167 else
22168    pkg_failed=untried
22169fi
22170if test -n "$XDM_LIBS"; then
22171    pkg_cv_XDM_LIBS="$XDM_LIBS"
22172 elif test -n "$PKG_CONFIG"; then
22173    if test -n "$PKG_CONFIG" && \
22174    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xmu x11 xau xproto >= 7.0.17\""; } >&5
22175  ($PKG_CONFIG --exists --print-errors "xmu x11 xau xproto >= 7.0.17") 2>&5
22176  ac_status=$?
22177  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22178  test $ac_status = 0; }; then
22179  pkg_cv_XDM_LIBS=`$PKG_CONFIG --libs "xmu x11 xau xproto >= 7.0.17" 2>/dev/null`
22180		      test "x$?" != "x0" && pkg_failed=yes
22181else
22182  pkg_failed=yes
22183fi
22184 else
22185    pkg_failed=untried
22186fi
22187
22188
22189
22190if test $pkg_failed = yes; then
22191   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22192printf "%s\n" "no" >&6; }
22193
22194if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22195        _pkg_short_errors_supported=yes
22196else
22197        _pkg_short_errors_supported=no
22198fi
22199        if test $_pkg_short_errors_supported = yes; then
22200	        XDM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xmu x11 xau xproto >= 7.0.17" 2>&1`
22201        else
22202	        XDM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xmu x11 xau xproto >= 7.0.17" 2>&1`
22203        fi
22204	# Put the nasty error message in config.log where it belongs
22205	echo "$XDM_PKG_ERRORS" >&5
22206
22207	as_fn_error $? "Package requirements (xmu x11 xau xproto >= 7.0.17) were not met:
22208
22209$XDM_PKG_ERRORS
22210
22211Consider adjusting the PKG_CONFIG_PATH environment variable if you
22212installed software in a non-standard prefix.
22213
22214Alternatively, you may set the environment variables XDM_CFLAGS
22215and XDM_LIBS to avoid the need to call pkg-config.
22216See the pkg-config man page for more details." "$LINENO" 5
22217elif test $pkg_failed = untried; then
22218     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22219printf "%s\n" "no" >&6; }
22220	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22221printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22222as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
22223is in your PATH or set the PKG_CONFIG environment variable to the full
22224path to pkg-config.
22225
22226Alternatively, you may set the environment variables XDM_CFLAGS
22227and XDM_LIBS to avoid the need to call pkg-config.
22228See the pkg-config man page for more details.
22229
22230To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22231See \`config.log' for more details" "$LINENO" 5; }
22232else
22233	XDM_CFLAGS=$pkg_cv_XDM_CFLAGS
22234	XDM_LIBS=$pkg_cv_XDM_LIBS
22235        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22236printf "%s\n" "yes" >&6; }
22237
22238fi
22239
22240if test -n "$PKG_CONFIG" && \
22241    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xinerama\""; } >&5
22242  ($PKG_CONFIG --exists --print-errors "xinerama") 2>&5
22243  ac_status=$?
22244  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22245  test $ac_status = 0; }; then
22246
22247
22248printf "%s\n" "#define USE_XINERAMA 1" >>confdefs.h
22249
22250
22251pkg_failed=no
22252{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XINERAMA" >&5
22253printf %s "checking for XINERAMA... " >&6; }
22254
22255if test -n "$XINERAMA_CFLAGS"; then
22256    pkg_cv_XINERAMA_CFLAGS="$XINERAMA_CFLAGS"
22257 elif test -n "$PKG_CONFIG"; then
22258    if test -n "$PKG_CONFIG" && \
22259    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xinerama\""; } >&5
22260  ($PKG_CONFIG --exists --print-errors "xinerama") 2>&5
22261  ac_status=$?
22262  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22263  test $ac_status = 0; }; then
22264  pkg_cv_XINERAMA_CFLAGS=`$PKG_CONFIG --cflags "xinerama" 2>/dev/null`
22265		      test "x$?" != "x0" && pkg_failed=yes
22266else
22267  pkg_failed=yes
22268fi
22269 else
22270    pkg_failed=untried
22271fi
22272if test -n "$XINERAMA_LIBS"; then
22273    pkg_cv_XINERAMA_LIBS="$XINERAMA_LIBS"
22274 elif test -n "$PKG_CONFIG"; then
22275    if test -n "$PKG_CONFIG" && \
22276    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xinerama\""; } >&5
22277  ($PKG_CONFIG --exists --print-errors "xinerama") 2>&5
22278  ac_status=$?
22279  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22280  test $ac_status = 0; }; then
22281  pkg_cv_XINERAMA_LIBS=`$PKG_CONFIG --libs "xinerama" 2>/dev/null`
22282		      test "x$?" != "x0" && pkg_failed=yes
22283else
22284  pkg_failed=yes
22285fi
22286 else
22287    pkg_failed=untried
22288fi
22289
22290
22291
22292if test $pkg_failed = yes; then
22293   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22294printf "%s\n" "no" >&6; }
22295
22296if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22297        _pkg_short_errors_supported=yes
22298else
22299        _pkg_short_errors_supported=no
22300fi
22301        if test $_pkg_short_errors_supported = yes; then
22302	        XINERAMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xinerama" 2>&1`
22303        else
22304	        XINERAMA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xinerama" 2>&1`
22305        fi
22306	# Put the nasty error message in config.log where it belongs
22307	echo "$XINERAMA_PKG_ERRORS" >&5
22308
22309	as_fn_error $? "Package requirements (xinerama) were not met:
22310
22311$XINERAMA_PKG_ERRORS
22312
22313Consider adjusting the PKG_CONFIG_PATH environment variable if you
22314installed software in a non-standard prefix.
22315
22316Alternatively, you may set the environment variables XINERAMA_CFLAGS
22317and XINERAMA_LIBS to avoid the need to call pkg-config.
22318See the pkg-config man page for more details." "$LINENO" 5
22319elif test $pkg_failed = untried; then
22320     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22321printf "%s\n" "no" >&6; }
22322	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22323printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22324as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
22325is in your PATH or set the PKG_CONFIG environment variable to the full
22326path to pkg-config.
22327
22328Alternatively, you may set the environment variables XINERAMA_CFLAGS
22329and XINERAMA_LIBS to avoid the need to call pkg-config.
22330See the pkg-config man page for more details.
22331
22332To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22333See \`config.log' for more details" "$LINENO" 5; }
22334else
22335	XINERAMA_CFLAGS=$pkg_cv_XINERAMA_CFLAGS
22336	XINERAMA_LIBS=$pkg_cv_XINERAMA_LIBS
22337        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22338printf "%s\n" "yes" >&6; }
22339
22340fi
22341	CHOOSER_CFLAGS="$CHOOSER_CFLAGS $XINERAMA_CFLAGS"
22342	CHOOSER_LIBS="$CHOOSER_LIBS $XINERAMA_LIBS"
22343	GREETER_CFLAGS="$GREETER_CFLAGS $XINERAMA_CFLAGS"
22344	GREETER_LIBS="$GREETER_LIBS $XINERAMA_LIBS"
22345
22346fi
22347
22348# Xft text drawing for the greeter screen
22349
22350# Check whether --with-xft was given.
22351if test ${with_xft+y}
22352then :
22353  withval=$with_xft; USE_XFT="$withval"
22354else $as_nop
22355  if test -n "$PKG_CONFIG" && \
22356    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xft xrender\""; } >&5
22357  ($PKG_CONFIG --exists --print-errors "xft xrender") 2>&5
22358  ac_status=$?
22359  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22360  test $ac_status = 0; }; then
22361  USE_XFT="yes"
22362else
22363  USE_XFT="no"
22364fi
22365fi
22366
22367
22368if test "x$USE_XFT" = "xyes" ; then
22369
22370pkg_failed=no
22371{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XFT" >&5
22372printf %s "checking for XFT... " >&6; }
22373
22374if test -n "$XFT_CFLAGS"; then
22375    pkg_cv_XFT_CFLAGS="$XFT_CFLAGS"
22376 elif test -n "$PKG_CONFIG"; then
22377    if test -n "$PKG_CONFIG" && \
22378    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xft xrender\""; } >&5
22379  ($PKG_CONFIG --exists --print-errors "xft xrender") 2>&5
22380  ac_status=$?
22381  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22382  test $ac_status = 0; }; then
22383  pkg_cv_XFT_CFLAGS=`$PKG_CONFIG --cflags "xft xrender" 2>/dev/null`
22384		      test "x$?" != "x0" && pkg_failed=yes
22385else
22386  pkg_failed=yes
22387fi
22388 else
22389    pkg_failed=untried
22390fi
22391if test -n "$XFT_LIBS"; then
22392    pkg_cv_XFT_LIBS="$XFT_LIBS"
22393 elif test -n "$PKG_CONFIG"; then
22394    if test -n "$PKG_CONFIG" && \
22395    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xft xrender\""; } >&5
22396  ($PKG_CONFIG --exists --print-errors "xft xrender") 2>&5
22397  ac_status=$?
22398  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22399  test $ac_status = 0; }; then
22400  pkg_cv_XFT_LIBS=`$PKG_CONFIG --libs "xft xrender" 2>/dev/null`
22401		      test "x$?" != "x0" && pkg_failed=yes
22402else
22403  pkg_failed=yes
22404fi
22405 else
22406    pkg_failed=untried
22407fi
22408
22409
22410
22411if test $pkg_failed = yes; then
22412   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22413printf "%s\n" "no" >&6; }
22414
22415if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22416        _pkg_short_errors_supported=yes
22417else
22418        _pkg_short_errors_supported=no
22419fi
22420        if test $_pkg_short_errors_supported = yes; then
22421	        XFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xft xrender" 2>&1`
22422        else
22423	        XFT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xft xrender" 2>&1`
22424        fi
22425	# Put the nasty error message in config.log where it belongs
22426	echo "$XFT_PKG_ERRORS" >&5
22427
22428	as_fn_error $? "Package requirements (xft xrender) were not met:
22429
22430$XFT_PKG_ERRORS
22431
22432Consider adjusting the PKG_CONFIG_PATH environment variable if you
22433installed software in a non-standard prefix.
22434
22435Alternatively, you may set the environment variables XFT_CFLAGS
22436and XFT_LIBS to avoid the need to call pkg-config.
22437See the pkg-config man page for more details." "$LINENO" 5
22438elif test $pkg_failed = untried; then
22439     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22440printf "%s\n" "no" >&6; }
22441	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22442printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22443as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
22444is in your PATH or set the PKG_CONFIG environment variable to the full
22445path to pkg-config.
22446
22447Alternatively, you may set the environment variables XFT_CFLAGS
22448and XFT_LIBS to avoid the need to call pkg-config.
22449See the pkg-config man page for more details.
22450
22451To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22452See \`config.log' for more details" "$LINENO" 5; }
22453else
22454	XFT_CFLAGS=$pkg_cv_XFT_CFLAGS
22455	XFT_LIBS=$pkg_cv_XFT_LIBS
22456        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22457printf "%s\n" "yes" >&6; }
22458
22459fi
22460	GREETER_CFLAGS="$GREETER_CFLAGS $XFT_CFLAGS"
22461	GREETER_LIBS="$GREETER_LIBS $XFT_LIBS"
22462
22463printf "%s\n" "#define USE_XFT 1" >>confdefs.h
22464
22465fi
22466
22467# XPM logos for the greeter screen
22468# Check whether --enable-xpm-logos was given.
22469if test ${enable_xpm_logos+y}
22470then :
22471  enableval=$enable_xpm_logos; USE_XPM="$enableval"
22472else $as_nop
22473  if test -n "$PKG_CONFIG" && \
22474    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xpm\""; } >&5
22475  ($PKG_CONFIG --exists --print-errors "xpm") 2>&5
22476  ac_status=$?
22477  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22478  test $ac_status = 0; }; then
22479  USE_XPM="yes"
22480else
22481  USE_XPM="no"
22482fi
22483fi
22484
22485if test "x$USE_XPM" = "xyes" ; then
22486
22487pkg_failed=no
22488{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XPM" >&5
22489printf %s "checking for XPM... " >&6; }
22490
22491if test -n "$XPM_CFLAGS"; then
22492    pkg_cv_XPM_CFLAGS="$XPM_CFLAGS"
22493 elif test -n "$PKG_CONFIG"; then
22494    if test -n "$PKG_CONFIG" && \
22495    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xpm\""; } >&5
22496  ($PKG_CONFIG --exists --print-errors "xpm") 2>&5
22497  ac_status=$?
22498  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22499  test $ac_status = 0; }; then
22500  pkg_cv_XPM_CFLAGS=`$PKG_CONFIG --cflags "xpm" 2>/dev/null`
22501		      test "x$?" != "x0" && pkg_failed=yes
22502else
22503  pkg_failed=yes
22504fi
22505 else
22506    pkg_failed=untried
22507fi
22508if test -n "$XPM_LIBS"; then
22509    pkg_cv_XPM_LIBS="$XPM_LIBS"
22510 elif test -n "$PKG_CONFIG"; then
22511    if test -n "$PKG_CONFIG" && \
22512    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xpm\""; } >&5
22513  ($PKG_CONFIG --exists --print-errors "xpm") 2>&5
22514  ac_status=$?
22515  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22516  test $ac_status = 0; }; then
22517  pkg_cv_XPM_LIBS=`$PKG_CONFIG --libs "xpm" 2>/dev/null`
22518		      test "x$?" != "x0" && pkg_failed=yes
22519else
22520  pkg_failed=yes
22521fi
22522 else
22523    pkg_failed=untried
22524fi
22525
22526
22527
22528if test $pkg_failed = yes; then
22529   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22530printf "%s\n" "no" >&6; }
22531
22532if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22533        _pkg_short_errors_supported=yes
22534else
22535        _pkg_short_errors_supported=no
22536fi
22537        if test $_pkg_short_errors_supported = yes; then
22538	        XPM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xpm" 2>&1`
22539        else
22540	        XPM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xpm" 2>&1`
22541        fi
22542	# Put the nasty error message in config.log where it belongs
22543	echo "$XPM_PKG_ERRORS" >&5
22544
22545	as_fn_error $? "Package requirements (xpm) were not met:
22546
22547$XPM_PKG_ERRORS
22548
22549Consider adjusting the PKG_CONFIG_PATH environment variable if you
22550installed software in a non-standard prefix.
22551
22552Alternatively, you may set the environment variables XPM_CFLAGS
22553and XPM_LIBS to avoid the need to call pkg-config.
22554See the pkg-config man page for more details." "$LINENO" 5
22555elif test $pkg_failed = untried; then
22556     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22557printf "%s\n" "no" >&6; }
22558	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22559printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22560as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
22561is in your PATH or set the PKG_CONFIG environment variable to the full
22562path to pkg-config.
22563
22564Alternatively, you may set the environment variables XPM_CFLAGS
22565and XPM_LIBS to avoid the need to call pkg-config.
22566See the pkg-config man page for more details.
22567
22568To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22569See \`config.log' for more details" "$LINENO" 5; }
22570else
22571	XPM_CFLAGS=$pkg_cv_XPM_CFLAGS
22572	XPM_LIBS=$pkg_cv_XPM_LIBS
22573        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22574printf "%s\n" "yes" >&6; }
22575
22576fi
22577	GREETER_CFLAGS="$GREETER_CFLAGS $XPM_CFLAGS"
22578	GREETER_LIBS="$GREETER_LIBS $XPM_LIBS"
22579
22580printf "%s\n" "#define XPM 1" >>confdefs.h
22581
22582fi
22583 if test "x$USE_XPM" = "xyes"; then
22584  USE_XPM_TRUE=
22585  USE_XPM_FALSE='#'
22586else
22587  USE_XPM_TRUE='#'
22588  USE_XPM_FALSE=
22589fi
22590
22591
22592
22593# Check whether --with-color-pixmap was given.
22594if test ${with_color_pixmap+y}
22595then :
22596  withval=$with_color_pixmap; XDM_PIXMAP="$withval"
22597else $as_nop
22598  XDM_PIXMAP="xorg.xpm"
22599fi
22600
22601
22602# Check whether --with-bw-pixmap was given.
22603if test ${with_bw_pixmap+y}
22604then :
22605  withval=$with_bw_pixmap; XDM_BWPIXMAP="$withval"
22606else $as_nop
22607  XDM_BWPIXMAP="xorg-bw.xpm"
22608fi
22609
22610
22611# Check whether --with-pixmapdir was given.
22612if test ${with_pixmapdir+y}
22613then :
22614  withval=$with_pixmapdir; XDM_PIXMAPDIR="$withval"
22615else $as_nop
22616  XDM_PIXMAPDIR='${XDMLIBDIR}/pixmaps'
22617fi
22618
22619
22620
22621
22622
22623
22624# Packages used by multiple programs
22625
22626
22627pkg_failed=no
22628{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XDM_TOOLKIT" >&5
22629printf %s "checking for XDM_TOOLKIT... " >&6; }
22630
22631if test -n "$XDM_TOOLKIT_CFLAGS"; then
22632    pkg_cv_XDM_TOOLKIT_CFLAGS="$XDM_TOOLKIT_CFLAGS"
22633 elif test -n "$PKG_CONFIG"; then
22634    if test -n "$PKG_CONFIG" && \
22635    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7\""; } >&5
22636  ($PKG_CONFIG --exists --print-errors "xaw7") 2>&5
22637  ac_status=$?
22638  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22639  test $ac_status = 0; }; then
22640  pkg_cv_XDM_TOOLKIT_CFLAGS=`$PKG_CONFIG --cflags "xaw7" 2>/dev/null`
22641		      test "x$?" != "x0" && pkg_failed=yes
22642else
22643  pkg_failed=yes
22644fi
22645 else
22646    pkg_failed=untried
22647fi
22648if test -n "$XDM_TOOLKIT_LIBS"; then
22649    pkg_cv_XDM_TOOLKIT_LIBS="$XDM_TOOLKIT_LIBS"
22650 elif test -n "$PKG_CONFIG"; then
22651    if test -n "$PKG_CONFIG" && \
22652    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7\""; } >&5
22653  ($PKG_CONFIG --exists --print-errors "xaw7") 2>&5
22654  ac_status=$?
22655  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22656  test $ac_status = 0; }; then
22657  pkg_cv_XDM_TOOLKIT_LIBS=`$PKG_CONFIG --libs "xaw7" 2>/dev/null`
22658		      test "x$?" != "x0" && pkg_failed=yes
22659else
22660  pkg_failed=yes
22661fi
22662 else
22663    pkg_failed=untried
22664fi
22665
22666
22667
22668if test $pkg_failed = yes; then
22669   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22670printf "%s\n" "no" >&6; }
22671
22672if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22673        _pkg_short_errors_supported=yes
22674else
22675        _pkg_short_errors_supported=no
22676fi
22677        if test $_pkg_short_errors_supported = yes; then
22678	        XDM_TOOLKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xaw7" 2>&1`
22679        else
22680	        XDM_TOOLKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xaw7" 2>&1`
22681        fi
22682	# Put the nasty error message in config.log where it belongs
22683	echo "$XDM_TOOLKIT_PKG_ERRORS" >&5
22684
22685	as_fn_error $? "Package requirements (xaw7) were not met:
22686
22687$XDM_TOOLKIT_PKG_ERRORS
22688
22689Consider adjusting the PKG_CONFIG_PATH environment variable if you
22690installed software in a non-standard prefix.
22691
22692Alternatively, you may set the environment variables XDM_TOOLKIT_CFLAGS
22693and XDM_TOOLKIT_LIBS to avoid the need to call pkg-config.
22694See the pkg-config man page for more details." "$LINENO" 5
22695elif test $pkg_failed = untried; then
22696     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22697printf "%s\n" "no" >&6; }
22698	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22699printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22700as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
22701is in your PATH or set the PKG_CONFIG environment variable to the full
22702path to pkg-config.
22703
22704Alternatively, you may set the environment variables XDM_TOOLKIT_CFLAGS
22705and XDM_TOOLKIT_LIBS to avoid the need to call pkg-config.
22706See the pkg-config man page for more details.
22707
22708To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22709See \`config.log' for more details" "$LINENO" 5; }
22710else
22711	XDM_TOOLKIT_CFLAGS=$pkg_cv_XDM_TOOLKIT_CFLAGS
22712	XDM_TOOLKIT_LIBS=$pkg_cv_XDM_TOOLKIT_LIBS
22713        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22714printf "%s\n" "yes" >&6; }
22715
22716fi
22717
22718pkg_failed=no
22719{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DMCP" >&5
22720printf %s "checking for DMCP... " >&6; }
22721
22722if test -n "$DMCP_CFLAGS"; then
22723    pkg_cv_DMCP_CFLAGS="$DMCP_CFLAGS"
22724 elif test -n "$PKG_CONFIG"; then
22725    if test -n "$PKG_CONFIG" && \
22726    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5
22727  ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5
22728  ac_status=$?
22729  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22730  test $ac_status = 0; }; then
22731  pkg_cv_DMCP_CFLAGS=`$PKG_CONFIG --cflags "xdmcp" 2>/dev/null`
22732		      test "x$?" != "x0" && pkg_failed=yes
22733else
22734  pkg_failed=yes
22735fi
22736 else
22737    pkg_failed=untried
22738fi
22739if test -n "$DMCP_LIBS"; then
22740    pkg_cv_DMCP_LIBS="$DMCP_LIBS"
22741 elif test -n "$PKG_CONFIG"; then
22742    if test -n "$PKG_CONFIG" && \
22743    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5
22744  ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5
22745  ac_status=$?
22746  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22747  test $ac_status = 0; }; then
22748  pkg_cv_DMCP_LIBS=`$PKG_CONFIG --libs "xdmcp" 2>/dev/null`
22749		      test "x$?" != "x0" && pkg_failed=yes
22750else
22751  pkg_failed=yes
22752fi
22753 else
22754    pkg_failed=untried
22755fi
22756
22757
22758
22759if test $pkg_failed = yes; then
22760   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22761printf "%s\n" "no" >&6; }
22762
22763if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22764        _pkg_short_errors_supported=yes
22765else
22766        _pkg_short_errors_supported=no
22767fi
22768        if test $_pkg_short_errors_supported = yes; then
22769	        DMCP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xdmcp" 2>&1`
22770        else
22771	        DMCP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xdmcp" 2>&1`
22772        fi
22773	# Put the nasty error message in config.log where it belongs
22774	echo "$DMCP_PKG_ERRORS" >&5
22775
22776	as_fn_error $? "Package requirements (xdmcp) were not met:
22777
22778$DMCP_PKG_ERRORS
22779
22780Consider adjusting the PKG_CONFIG_PATH environment variable if you
22781installed software in a non-standard prefix.
22782
22783Alternatively, you may set the environment variables DMCP_CFLAGS
22784and DMCP_LIBS to avoid the need to call pkg-config.
22785See the pkg-config man page for more details." "$LINENO" 5
22786elif test $pkg_failed = untried; then
22787     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22788printf "%s\n" "no" >&6; }
22789	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22790printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22791as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
22792is in your PATH or set the PKG_CONFIG environment variable to the full
22793path to pkg-config.
22794
22795Alternatively, you may set the environment variables DMCP_CFLAGS
22796and DMCP_LIBS to avoid the need to call pkg-config.
22797See the pkg-config man page for more details.
22798
22799To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22800See \`config.log' for more details" "$LINENO" 5; }
22801else
22802	DMCP_CFLAGS=$pkg_cv_DMCP_CFLAGS
22803	DMCP_LIBS=$pkg_cv_DMCP_LIBS
22804        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22805printf "%s\n" "yes" >&6; }
22806
22807fi
22808
22809pkg_failed=no
22810{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XLIB" >&5
22811printf %s "checking for XLIB... " >&6; }
22812
22813if test -n "$XLIB_CFLAGS"; then
22814    pkg_cv_XLIB_CFLAGS="$XLIB_CFLAGS"
22815 elif test -n "$PKG_CONFIG"; then
22816    if test -n "$PKG_CONFIG" && \
22817    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
22818  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
22819  ac_status=$?
22820  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22821  test $ac_status = 0; }; then
22822  pkg_cv_XLIB_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
22823		      test "x$?" != "x0" && pkg_failed=yes
22824else
22825  pkg_failed=yes
22826fi
22827 else
22828    pkg_failed=untried
22829fi
22830if test -n "$XLIB_LIBS"; then
22831    pkg_cv_XLIB_LIBS="$XLIB_LIBS"
22832 elif test -n "$PKG_CONFIG"; then
22833    if test -n "$PKG_CONFIG" && \
22834    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
22835  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
22836  ac_status=$?
22837  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22838  test $ac_status = 0; }; then
22839  pkg_cv_XLIB_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
22840		      test "x$?" != "x0" && pkg_failed=yes
22841else
22842  pkg_failed=yes
22843fi
22844 else
22845    pkg_failed=untried
22846fi
22847
22848
22849
22850if test $pkg_failed = yes; then
22851   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22852printf "%s\n" "no" >&6; }
22853
22854if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22855        _pkg_short_errors_supported=yes
22856else
22857        _pkg_short_errors_supported=no
22858fi
22859        if test $_pkg_short_errors_supported = yes; then
22860	        XLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1`
22861        else
22862	        XLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1`
22863        fi
22864	# Put the nasty error message in config.log where it belongs
22865	echo "$XLIB_PKG_ERRORS" >&5
22866
22867	as_fn_error $? "Package requirements (x11) were not met:
22868
22869$XLIB_PKG_ERRORS
22870
22871Consider adjusting the PKG_CONFIG_PATH environment variable if you
22872installed software in a non-standard prefix.
22873
22874Alternatively, you may set the environment variables XLIB_CFLAGS
22875and XLIB_LIBS to avoid the need to call pkg-config.
22876See the pkg-config man page for more details." "$LINENO" 5
22877elif test $pkg_failed = untried; then
22878     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22879printf "%s\n" "no" >&6; }
22880	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22881printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22882as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
22883is in your PATH or set the PKG_CONFIG environment variable to the full
22884path to pkg-config.
22885
22886Alternatively, you may set the environment variables XLIB_CFLAGS
22887and XLIB_LIBS to avoid the need to call pkg-config.
22888See the pkg-config man page for more details.
22889
22890To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22891See \`config.log' for more details" "$LINENO" 5; }
22892else
22893	XLIB_CFLAGS=$pkg_cv_XLIB_CFLAGS
22894	XLIB_LIBS=$pkg_cv_XLIB_LIBS
22895        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22896printf "%s\n" "yes" >&6; }
22897
22898fi
22899
22900pkg_failed=no
22901{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for AUTH" >&5
22902printf %s "checking for AUTH... " >&6; }
22903
22904if test -n "$AUTH_CFLAGS"; then
22905    pkg_cv_AUTH_CFLAGS="$AUTH_CFLAGS"
22906 elif test -n "$PKG_CONFIG"; then
22907    if test -n "$PKG_CONFIG" && \
22908    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xau\""; } >&5
22909  ($PKG_CONFIG --exists --print-errors "xau") 2>&5
22910  ac_status=$?
22911  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22912  test $ac_status = 0; }; then
22913  pkg_cv_AUTH_CFLAGS=`$PKG_CONFIG --cflags "xau" 2>/dev/null`
22914		      test "x$?" != "x0" && pkg_failed=yes
22915else
22916  pkg_failed=yes
22917fi
22918 else
22919    pkg_failed=untried
22920fi
22921if test -n "$AUTH_LIBS"; then
22922    pkg_cv_AUTH_LIBS="$AUTH_LIBS"
22923 elif test -n "$PKG_CONFIG"; then
22924    if test -n "$PKG_CONFIG" && \
22925    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xau\""; } >&5
22926  ($PKG_CONFIG --exists --print-errors "xau") 2>&5
22927  ac_status=$?
22928  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22929  test $ac_status = 0; }; then
22930  pkg_cv_AUTH_LIBS=`$PKG_CONFIG --libs "xau" 2>/dev/null`
22931		      test "x$?" != "x0" && pkg_failed=yes
22932else
22933  pkg_failed=yes
22934fi
22935 else
22936    pkg_failed=untried
22937fi
22938
22939
22940
22941if test $pkg_failed = yes; then
22942   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22943printf "%s\n" "no" >&6; }
22944
22945if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22946        _pkg_short_errors_supported=yes
22947else
22948        _pkg_short_errors_supported=no
22949fi
22950        if test $_pkg_short_errors_supported = yes; then
22951	        AUTH_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xau" 2>&1`
22952        else
22953	        AUTH_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xau" 2>&1`
22954        fi
22955	# Put the nasty error message in config.log where it belongs
22956	echo "$AUTH_PKG_ERRORS" >&5
22957
22958	as_fn_error $? "Package requirements (xau) were not met:
22959
22960$AUTH_PKG_ERRORS
22961
22962Consider adjusting the PKG_CONFIG_PATH environment variable if you
22963installed software in a non-standard prefix.
22964
22965Alternatively, you may set the environment variables AUTH_CFLAGS
22966and AUTH_LIBS to avoid the need to call pkg-config.
22967See the pkg-config man page for more details." "$LINENO" 5
22968elif test $pkg_failed = untried; then
22969     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22970printf "%s\n" "no" >&6; }
22971	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22972printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22973as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
22974is in your PATH or set the PKG_CONFIG environment variable to the full
22975path to pkg-config.
22976
22977Alternatively, you may set the environment variables AUTH_CFLAGS
22978and AUTH_LIBS to avoid the need to call pkg-config.
22979See the pkg-config man page for more details.
22980
22981To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22982See \`config.log' for more details" "$LINENO" 5; }
22983else
22984	AUTH_CFLAGS=$pkg_cv_AUTH_CFLAGS
22985	AUTH_LIBS=$pkg_cv_AUTH_LIBS
22986        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22987printf "%s\n" "yes" >&6; }
22988
22989fi
22990
22991#
22992# Greeter
22993#
22994
22995
22996pkg_failed=no
22997{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XDMGREET" >&5
22998printf %s "checking for XDMGREET... " >&6; }
22999
23000if test -n "$XDMGREET_CFLAGS"; then
23001    pkg_cv_XDMGREET_CFLAGS="$XDMGREET_CFLAGS"
23002 elif test -n "$PKG_CONFIG"; then
23003    if test -n "$PKG_CONFIG" && \
23004    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt >= 1.0 x11 xext\""; } >&5
23005  ($PKG_CONFIG --exists --print-errors "xt >= 1.0 x11 xext") 2>&5
23006  ac_status=$?
23007  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23008  test $ac_status = 0; }; then
23009  pkg_cv_XDMGREET_CFLAGS=`$PKG_CONFIG --cflags "xt >= 1.0 x11 xext" 2>/dev/null`
23010		      test "x$?" != "x0" && pkg_failed=yes
23011else
23012  pkg_failed=yes
23013fi
23014 else
23015    pkg_failed=untried
23016fi
23017if test -n "$XDMGREET_LIBS"; then
23018    pkg_cv_XDMGREET_LIBS="$XDMGREET_LIBS"
23019 elif test -n "$PKG_CONFIG"; then
23020    if test -n "$PKG_CONFIG" && \
23021    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt >= 1.0 x11 xext\""; } >&5
23022  ($PKG_CONFIG --exists --print-errors "xt >= 1.0 x11 xext") 2>&5
23023  ac_status=$?
23024  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23025  test $ac_status = 0; }; then
23026  pkg_cv_XDMGREET_LIBS=`$PKG_CONFIG --libs "xt >= 1.0 x11 xext" 2>/dev/null`
23027		      test "x$?" != "x0" && pkg_failed=yes
23028else
23029  pkg_failed=yes
23030fi
23031 else
23032    pkg_failed=untried
23033fi
23034
23035
23036
23037if test $pkg_failed = yes; then
23038   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23039printf "%s\n" "no" >&6; }
23040
23041if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23042        _pkg_short_errors_supported=yes
23043else
23044        _pkg_short_errors_supported=no
23045fi
23046        if test $_pkg_short_errors_supported = yes; then
23047	        XDMGREET_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xt >= 1.0 x11 xext" 2>&1`
23048        else
23049	        XDMGREET_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xt >= 1.0 x11 xext" 2>&1`
23050        fi
23051	# Put the nasty error message in config.log where it belongs
23052	echo "$XDMGREET_PKG_ERRORS" >&5
23053
23054	as_fn_error $? "Package requirements (xt >= 1.0 x11 xext) were not met:
23055
23056$XDMGREET_PKG_ERRORS
23057
23058Consider adjusting the PKG_CONFIG_PATH environment variable if you
23059installed software in a non-standard prefix.
23060
23061Alternatively, you may set the environment variables XDMGREET_CFLAGS
23062and XDMGREET_LIBS to avoid the need to call pkg-config.
23063See the pkg-config man page for more details." "$LINENO" 5
23064elif test $pkg_failed = untried; then
23065     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23066printf "%s\n" "no" >&6; }
23067	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23068printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
23069as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
23070is in your PATH or set the PKG_CONFIG environment variable to the full
23071path to pkg-config.
23072
23073Alternatively, you may set the environment variables XDMGREET_CFLAGS
23074and XDMGREET_LIBS to avoid the need to call pkg-config.
23075See the pkg-config man page for more details.
23076
23077To get pkg-config, see <http://pkg-config.freedesktop.org/>.
23078See \`config.log' for more details" "$LINENO" 5; }
23079else
23080	XDMGREET_CFLAGS=$pkg_cv_XDMGREET_CFLAGS
23081	XDMGREET_LIBS=$pkg_cv_XDMGREET_LIBS
23082        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23083printf "%s\n" "yes" >&6; }
23084
23085fi
23086
23087GREETERLIB="${XDMLIBDIR}/libXdmGreet.so"
23088
23089  prefix_NONE=
23090  exec_prefix_NONE=
23091  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23092  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23093  eval ax_define_dir="\"$GREETERLIB\""
23094  eval ax_define_dir="\"$ax_define_dir\""
23095  DEF_GREETER_LIB="$ax_define_dir"
23096
23097
23098printf "%s\n" "#define DEF_GREETER_LIB \"$ax_define_dir\"" >>confdefs.h
23099
23100  test "$prefix_NONE" && prefix=NONE
23101  test "$exec_prefix_NONE" && exec_prefix=NONE
23102
23103
23104XDMGREET_CFLAGS="$XDMGREET_CFLAGS $XDM_TOOLKIT_CFLAGS $DMCP_CFLAGS $XLIB_CFLAGS $GREETER_CFLAGS $AUTH_CFLAGS"
23105XDMGREET_LIBS="$XDMGREET_LIBS $XDM_TOOLKIT_LIBS $DMCP_LIBS $GREETER_LIBS"
23106
23107#
23108#  XDM
23109#
23110
23111XDM_CFLAGS="$XDM_CFLAGS $DMCP_CFLAGS $XLIB_CFLAGS $AUTH_CFLAGS"
23112XDM_LIBS="$XDM_LIBS $DMCP_LIBS"
23113
23114{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XdmcpWrap in -lXdmcp" >&5
23115printf %s "checking for XdmcpWrap in -lXdmcp... " >&6; }
23116if test ${ac_cv_lib_Xdmcp_XdmcpWrap+y}
23117then :
23118  printf %s "(cached) " >&6
23119else $as_nop
23120  ac_check_lib_save_LIBS=$LIBS
23121LIBS="-lXdmcp $DMCP_LIBS $LIBS"
23122cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23123/* end confdefs.h.  */
23124
23125/* Override any GCC internal prototype to avoid an error.
23126   Use char because int might match the return type of a GCC
23127   builtin and then its argument prototype would still apply.  */
23128char XdmcpWrap ();
23129int
23130main (void)
23131{
23132return XdmcpWrap ();
23133  ;
23134  return 0;
23135}
23136_ACEOF
23137if ac_fn_c_try_link "$LINENO"
23138then :
23139  ac_cv_lib_Xdmcp_XdmcpWrap=yes
23140else $as_nop
23141  ac_cv_lib_Xdmcp_XdmcpWrap=no
23142fi
23143rm -f core conftest.err conftest.$ac_objext conftest.beam \
23144    conftest$ac_exeext conftest.$ac_ext
23145LIBS=$ac_check_lib_save_LIBS
23146fi
23147{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xdmcp_XdmcpWrap" >&5
23148printf "%s\n" "$ac_cv_lib_Xdmcp_XdmcpWrap" >&6; }
23149if test "x$ac_cv_lib_Xdmcp_XdmcpWrap" = xyes
23150then :
23151  xdmauth="yes"
23152else $as_nop
23153  xdmauth="no"
23154fi
23155
23156
23157# Check whether --enable-xdm-auth was given.
23158if test ${enable_xdm_auth+y}
23159then :
23160  enableval=$enable_xdm_auth; xdmauth_enable="$enableval"
23161else $as_nop
23162  xdmauth_enable="auto"
23163fi
23164
23165if test "x$xdmauth_enable" = "xyes" -a "x$xdmauth" = "xno" ; then
23166	as_fn_error $? "XDM-AUTH support requested, but XdmcpWrap not found in libXdmcp." "$LINENO" 5
23167fi
23168
23169 if test x$xdmauth = xyes -a x$xdmauth_enable != xno; then
23170  HAS_XDM_AUTH_TRUE=
23171  HAS_XDM_AUTH_FALSE='#'
23172else
23173  HAS_XDM_AUTH_TRUE='#'
23174  HAS_XDM_AUTH_FALSE=
23175fi
23176
23177
23178
23179
23180
23181#
23182# xdmshell
23183#
23184
23185# Check whether --enable-xdmshell was given.
23186if test ${enable_xdmshell+y}
23187then :
23188  enableval=$enable_xdmshell; INSTALL_XDMSHELL="$enableval"
23189else $as_nop
23190  INSTALL_XDMSHELL="no"
23191fi
23192
23193 if test x$INSTALL_XDMSHELL = xyes; then
23194  INSTALL_XDMSHELL_TRUE=
23195  INSTALL_XDMSHELL_FALSE='#'
23196else
23197  INSTALL_XDMSHELL_TRUE='#'
23198  INSTALL_XDMSHELL_FALSE=
23199fi
23200
23201
23202
23203pkg_failed=no
23204{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XT" >&5
23205printf %s "checking for XT... " >&6; }
23206
23207if test -n "$XT_CFLAGS"; then
23208    pkg_cv_XT_CFLAGS="$XT_CFLAGS"
23209 elif test -n "$PKG_CONFIG"; then
23210    if test -n "$PKG_CONFIG" && \
23211    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
23212  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
23213  ac_status=$?
23214  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23215  test $ac_status = 0; }; then
23216  pkg_cv_XT_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null`
23217		      test "x$?" != "x0" && pkg_failed=yes
23218else
23219  pkg_failed=yes
23220fi
23221 else
23222    pkg_failed=untried
23223fi
23224if test -n "$XT_LIBS"; then
23225    pkg_cv_XT_LIBS="$XT_LIBS"
23226 elif test -n "$PKG_CONFIG"; then
23227    if test -n "$PKG_CONFIG" && \
23228    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
23229  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
23230  ac_status=$?
23231  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23232  test $ac_status = 0; }; then
23233  pkg_cv_XT_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null`
23234		      test "x$?" != "x0" && pkg_failed=yes
23235else
23236  pkg_failed=yes
23237fi
23238 else
23239    pkg_failed=untried
23240fi
23241
23242
23243
23244if test $pkg_failed = yes; then
23245   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23246printf "%s\n" "no" >&6; }
23247
23248if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23249        _pkg_short_errors_supported=yes
23250else
23251        _pkg_short_errors_supported=no
23252fi
23253        if test $_pkg_short_errors_supported = yes; then
23254	        XT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xt" 2>&1`
23255        else
23256	        XT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xt" 2>&1`
23257        fi
23258	# Put the nasty error message in config.log where it belongs
23259	echo "$XT_PKG_ERRORS" >&5
23260
23261	as_fn_error $? "Package requirements (xt) were not met:
23262
23263$XT_PKG_ERRORS
23264
23265Consider adjusting the PKG_CONFIG_PATH environment variable if you
23266installed software in a non-standard prefix.
23267
23268Alternatively, you may set the environment variables XT_CFLAGS
23269and XT_LIBS to avoid the need to call pkg-config.
23270See the pkg-config man page for more details." "$LINENO" 5
23271elif test $pkg_failed = untried; then
23272     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23273printf "%s\n" "no" >&6; }
23274	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23275printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
23276as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
23277is in your PATH or set the PKG_CONFIG environment variable to the full
23278path to pkg-config.
23279
23280Alternatively, you may set the environment variables XT_CFLAGS
23281and XT_LIBS to avoid the need to call pkg-config.
23282See the pkg-config man page for more details.
23283
23284To get pkg-config, see <http://pkg-config.freedesktop.org/>.
23285See \`config.log' for more details" "$LINENO" 5; }
23286else
23287	XT_CFLAGS=$pkg_cv_XT_CFLAGS
23288	XT_LIBS=$pkg_cv_XT_LIBS
23289        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23290printf "%s\n" "yes" >&6; }
23291
23292fi
23293XDMSHELL_CFLAGS="$XDM_CFLAGS $XDM_TOOLKIT_CFLAGS $AUTH_CFLAGS $DMCP_CFLAGS $XLIB_CFLAGS $XT_CFLAGS"
23294XDMSHELL_LIBS="$XDM_LIBS $XDM_TOOLKIT_LIBS $DMCP_LIBS"
23295
23296
23297
23298
23299#
23300# Chooser
23301#
23302
23303CHOOSER_CFLAGS="$CHOOSER_CFLAGS $XDM_TOOLKIT_CFLAGS $XLIB_CFLAGS $DMCP_CFLAGS $AUTH_CFLAGS"
23304CHOOSER_LIBS="$CHOOSER_LIBS $XDM_TOOLKIT_LIBS $DMCP_LIBS"
23305
23306
23307
23308
23309# Defaults for X session - should probably be configure --with-* flags
23310# Currently just trying to mirror what defaults were set in Imake
23311
23312# -DDEF_SERVER_LINE=":0 local $(DEF_SERVER) :0"
23313if test -z "$DEF_SERVER" ; then
23314	DEF_SERVER="${bindir}/X"
23315fi
23316if test -z "$DEF_SERVER_LINE" ; then
23317	DEF_SERVER_LINE=":0 local ${DEF_SERVER} :0"
23318fi
23319
23320  prefix_NONE=
23321  exec_prefix_NONE=
23322  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23323  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23324  eval ax_define_dir="\"$DEF_SERVER_LINE\""
23325  eval ax_define_dir="\"$ax_define_dir\""
23326  DEF_SERVER_LINE="$ax_define_dir"
23327
23328
23329printf "%s\n" "#define DEF_SERVER_LINE \"$ax_define_dir\"" >>confdefs.h
23330
23331  test "$prefix_NONE" && prefix=NONE
23332  test "$exec_prefix_NONE" && exec_prefix=NONE
23333
23334
23335# -DXRDB_PROGRAM="$(BINDIR)/xrdb"
23336
23337# Check whether --with-xrdb was given.
23338if test ${with_xrdb+y}
23339then :
23340  withval=$with_xrdb; XRDB=$withval
23341else $as_nop
23342  XRDB=${bindir}/xrdb
23343fi
23344
23345
23346  prefix_NONE=
23347  exec_prefix_NONE=
23348  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23349  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23350  eval ax_define_dir="\"$XRDB\""
23351  eval ax_define_dir="\"$ax_define_dir\""
23352  XRDB_PROGRAM="$ax_define_dir"
23353
23354
23355printf "%s\n" "#define XRDB_PROGRAM \"$ax_define_dir\"" >>confdefs.h
23356
23357  test "$prefix_NONE" && prefix=NONE
23358  test "$exec_prefix_NONE" && exec_prefix=NONE
23359
23360
23361# -DDEF_SESSION="$(BINDIR)/xterm -ls"
23362
23363# Check whether --with-default-session was given.
23364if test ${with_default_session+y}
23365then :
23366  withval=$with_default_session; DEF_SESSION=$withval
23367else $as_nop
23368  DEF_SESSION="${bindir}/xterm -ls"
23369fi
23370
23371
23372  prefix_NONE=
23373  exec_prefix_NONE=
23374  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23375  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23376  eval ax_define_dir="\"$DEF_SESSION\""
23377  eval ax_define_dir="\"$ax_define_dir\""
23378  DEF_SESSION="$ax_define_dir"
23379
23380
23381printf "%s\n" "#define DEF_SESSION \"$ax_define_dir\"" >>confdefs.h
23382
23383  test "$prefix_NONE" && prefix=NONE
23384  test "$exec_prefix_NONE" && exec_prefix=NONE
23385
23386
23387# -DDEF_USER_PATH="$(DEF_USER_PATH)"
23388# Default values taken from DefaultUserPath setting in the
23389# old Imake *.cf files for each platform
23390if test -z "$DEF_USER_PATH" ; then
23391	case $host_os in
23392	    dragonfly*)
23393		DEF_USER_PATH="/bin:/usr/bin:/sbin:/usr/sbin:${bindir}:/usr/local/bin"
23394		;;
23395	    freebsd*)
23396		DEF_USER_PATH="/bin:/usr/bin:/sbin:/usr/sbin:${bindir}:/usr/gnu/bin:/usr/local/bin"
23397		;;
23398	    netbsd*)
23399		DEF_USER_PATH="/bin:/usr/bin:/usr/pkg/bin:/usr/local/bin:${bindir}"
23400		;;
23401	    openbsd*|bsdi*)
23402		DEF_USER_PATH="/bin:/usr/bin:/usr/local/bin:${bindir}"
23403		;;
23404	    solaris*)
23405		DEF_USER_PATH="/usr/bin:${bindir}"
23406		;;
23407	    *)
23408		DEF_USER_PATH="/bin:/usr/bin:${bindir}:/usr/ucb"
23409		;;
23410	esac
23411fi
23412
23413  prefix_NONE=
23414  exec_prefix_NONE=
23415  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23416  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23417  eval ax_define_dir="\"$DEF_USER_PATH\""
23418  eval ax_define_dir="\"$ax_define_dir\""
23419  DEF_USER_PATH="$ax_define_dir"
23420
23421
23422printf "%s\n" "#define DEF_USER_PATH \"$ax_define_dir\"" >>confdefs.h
23423
23424  test "$prefix_NONE" && prefix=NONE
23425  test "$exec_prefix_NONE" && exec_prefix=NONE
23426
23427
23428# -DDEF_SYSTEM_PATH="$(DEF_SYSTEM_PATH)"
23429# Default values taken from DefaultSystemPath setting in the
23430# old Imake *.cf files for each platform
23431if test -z "$DEF_SYSTEM_PATH" ; then
23432	case $host_os in
23433	    freebsd*|dragonfly*)
23434		DEF_SYSTEM_PATH="/bin:/usr/bin:/sbin:/usr/sbin:${bindir}"
23435		;;
23436	    netbsd*|openbsd*|bsdi*)
23437		DEF_SYSTEM_PATH="/sbin:/usr/sbin:/bin:/usr/bin:${bindir}"
23438		;;
23439	    solaris*)
23440		DEF_SYSTEM_PATH="/sbin:/usr/sbin:/usr/bin:${bindir}"
23441		;;
23442	    *)
23443		DEF_SYSTEM_PATH="/etc:/bin:/usr/bin:${bindir}:/usr/ucb"
23444		;;
23445	esac
23446fi
23447
23448  prefix_NONE=
23449  exec_prefix_NONE=
23450  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23451  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23452  eval ax_define_dir="\"$DEF_SYSTEM_PATH\""
23453  eval ax_define_dir="\"$ax_define_dir\""
23454  DEF_SYSTEM_PATH="$ax_define_dir"
23455
23456
23457printf "%s\n" "#define DEF_SYSTEM_PATH \"$ax_define_dir\"" >>confdefs.h
23458
23459  test "$prefix_NONE" && prefix=NONE
23460  test "$exec_prefix_NONE" && exec_prefix=NONE
23461
23462
23463# -DDEF_SYSTEM_SHELL="$(BOURNE_SHELL)"
23464if test -z "$BOURNE_SHELL" ; then
23465	BOURNE_SHELL=/bin/sh
23466fi
23467
23468  prefix_NONE=
23469  exec_prefix_NONE=
23470  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23471  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23472  eval ax_define_dir="\"$BOURNE_SHELL\""
23473  eval ax_define_dir="\"$ax_define_dir\""
23474  DEF_SYSTEM_SHELL="$ax_define_dir"
23475
23476
23477printf "%s\n" "#define DEF_SYSTEM_SHELL \"$ax_define_dir\"" >>confdefs.h
23478
23479  test "$prefix_NONE" && prefix=NONE
23480  test "$exec_prefix_NONE" && exec_prefix=NONE
23481
23482
23483# -DDEF_FAILSAFE_CLIENT="$(BINDIR)/xterm"
23484
23485
23486  prefix_NONE=
23487  exec_prefix_NONE=
23488  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23489  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23490  eval ax_define_dir="\"$bindir/xterm\""
23491  eval ax_define_dir="\"$ax_define_dir\""
23492  DEF_FAILSAFE_CLIENT="$ax_define_dir"
23493
23494
23495printf "%s\n" "#define DEF_FAILSAFE_CLIENT \"$ax_define_dir\"" >>confdefs.h
23496
23497  test "$prefix_NONE" && prefix=NONE
23498  test "$exec_prefix_NONE" && exec_prefix=NONE
23499
23500
23501# -DDEF_XDM_CONFIG="$(XDMDIR)/xdm-config"
23502
23503
23504  prefix_NONE=
23505  exec_prefix_NONE=
23506  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23507  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23508  eval ax_define_dir="\"$XDMCONFIGDIR/xdm-config\""
23509  eval ax_define_dir="\"$ax_define_dir\""
23510  DEF_XDM_CONFIG="$ax_define_dir"
23511
23512
23513printf "%s\n" "#define DEF_XDM_CONFIG \"$ax_define_dir\"" >>confdefs.h
23514
23515  test "$prefix_NONE" && prefix=NONE
23516  test "$exec_prefix_NONE" && exec_prefix=NONE
23517
23518
23519# -DDEF_CHOOSER="$(CHOOSERPATH)"
23520
23521
23522  prefix_NONE=
23523  exec_prefix_NONE=
23524  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23525  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23526  eval ax_define_dir="\"$XDMLIBDIR/chooser\""
23527  eval ax_define_dir="\"$ax_define_dir\""
23528  DEF_CHOOSER="$ax_define_dir"
23529
23530
23531printf "%s\n" "#define DEF_CHOOSER \"$ax_define_dir\"" >>confdefs.h
23532
23533  test "$prefix_NONE" && prefix=NONE
23534  test "$exec_prefix_NONE" && exec_prefix=NONE
23535
23536
23537# -DDEF_AUTH_DIR="$(XDMDIR)"
23538
23539
23540# Check whether --with-authdir was given.
23541if test ${with_authdir+y}
23542then :
23543  withval=$with_authdir; XDMXAUTHDIR="$withval"
23544else $as_nop
23545  XDMXAUTHDIR="/var/lib/xdm"
23546fi
23547
23548
23549
23550
23551  prefix_NONE=
23552  exec_prefix_NONE=
23553  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23554  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23555  eval ax_define_dir="\"$XDMXAUTHDIR\""
23556  eval ax_define_dir="\"$ax_define_dir\""
23557  DEF_AUTH_DIR="$ax_define_dir"
23558
23559
23560printf "%s\n" "#define DEF_AUTH_DIR \"$ax_define_dir\"" >>confdefs.h
23561
23562  test "$prefix_NONE" && prefix=NONE
23563  test "$exec_prefix_NONE" && exec_prefix=NONE
23564
23565
23566# -DDEF_GREETER_LIB="$(XDMDIR)/libXdmGreet.so"
23567
23568
23569  prefix_NONE=
23570  exec_prefix_NONE=
23571  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23572  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23573  eval ax_define_dir="\"$XDMLIBDIR/libXdmGreet.so\""
23574  eval ax_define_dir="\"$ax_define_dir\""
23575  DEF_GREETER_LIB="$ax_define_dir"
23576
23577
23578printf "%s\n" "#define DEF_GREETER_LIB \"$ax_define_dir\"" >>confdefs.h
23579
23580  test "$prefix_NONE" && prefix=NONE
23581  test "$exec_prefix_NONE" && exec_prefix=NONE
23582
23583
23584
23585pkg_failed=no
23586{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5
23587printf %s "checking for APPDEFS... " >&6; }
23588
23589if test -n "$APPDEFS_CFLAGS"; then
23590    pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS"
23591 elif test -n "$PKG_CONFIG"; then
23592    if test -n "$PKG_CONFIG" && \
23593    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
23594  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
23595  ac_status=$?
23596  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23597  test $ac_status = 0; }; then
23598  pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null`
23599		      test "x$?" != "x0" && pkg_failed=yes
23600else
23601  pkg_failed=yes
23602fi
23603 else
23604    pkg_failed=untried
23605fi
23606if test -n "$APPDEFS_LIBS"; then
23607    pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS"
23608 elif test -n "$PKG_CONFIG"; then
23609    if test -n "$PKG_CONFIG" && \
23610    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
23611  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
23612  ac_status=$?
23613  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23614  test $ac_status = 0; }; then
23615  pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null`
23616		      test "x$?" != "x0" && pkg_failed=yes
23617else
23618  pkg_failed=yes
23619fi
23620 else
23621    pkg_failed=untried
23622fi
23623
23624
23625
23626if test $pkg_failed = yes; then
23627   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23628printf "%s\n" "no" >&6; }
23629
23630if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23631        _pkg_short_errors_supported=yes
23632else
23633        _pkg_short_errors_supported=no
23634fi
23635        if test $_pkg_short_errors_supported = yes; then
23636	        APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xt" 2>&1`
23637        else
23638	        APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xt" 2>&1`
23639        fi
23640	# Put the nasty error message in config.log where it belongs
23641	echo "$APPDEFS_PKG_ERRORS" >&5
23642
23643	as_fn_error $? "Package requirements (xt) were not met:
23644
23645$APPDEFS_PKG_ERRORS
23646
23647Consider adjusting the PKG_CONFIG_PATH environment variable if you
23648installed software in a non-standard prefix.
23649
23650Alternatively, you may set the environment variables APPDEFS_CFLAGS
23651and APPDEFS_LIBS to avoid the need to call pkg-config.
23652See the pkg-config man page for more details." "$LINENO" 5
23653elif test $pkg_failed = untried; then
23654     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23655printf "%s\n" "no" >&6; }
23656	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23657printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
23658as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
23659is in your PATH or set the PKG_CONFIG environment variable to the full
23660path to pkg-config.
23661
23662Alternatively, you may set the environment variables APPDEFS_CFLAGS
23663and APPDEFS_LIBS to avoid the need to call pkg-config.
23664See the pkg-config man page for more details.
23665
23666To get pkg-config, see <http://pkg-config.freedesktop.org/>.
23667See \`config.log' for more details" "$LINENO" 5; }
23668else
23669	APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS
23670	APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS
23671        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23672printf "%s\n" "yes" >&6; }
23673
23674fi
23675xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
23676
23677# Check whether --with-appdefaultdir was given.
23678if test ${with_appdefaultdir+y}
23679then :
23680  withval=$with_appdefaultdir; appdefaultdir="$withval"
23681else $as_nop
23682  appdefaultdir="${xt_appdefaultdir}"
23683fi
23684
23685
23686
23687
23688
23689ac_config_files="$ac_config_files Makefile app-defaults/Makefile chooser/Makefile config/Makefile greeter/Makefile include/Makefile man/Makefile xdm/Makefile xdmshell/Makefile"
23690
23691cat >confcache <<\_ACEOF
23692# This file is a shell script that caches the results of configure
23693# tests run on this system so they can be shared between configure
23694# scripts and configure runs, see configure's option --config-cache.
23695# It is not useful on other systems.  If it contains results you don't
23696# want to keep, you may remove or edit it.
23697#
23698# config.status only pays attention to the cache file if you give it
23699# the --recheck option to rerun configure.
23700#
23701# `ac_cv_env_foo' variables (set or unset) will be overridden when
23702# loading this file, other *unset* `ac_cv_foo' will be assigned the
23703# following values.
23704
23705_ACEOF
23706
23707# The following way of writing the cache mishandles newlines in values,
23708# but we know of no workaround that is simple, portable, and efficient.
23709# So, we kill variables containing newlines.
23710# Ultrix sh set writes to stderr and can't be redirected directly,
23711# and sets the high bit in the cache file unless we assign to the vars.
23712(
23713  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23714    eval ac_val=\$$ac_var
23715    case $ac_val in #(
23716    *${as_nl}*)
23717      case $ac_var in #(
23718      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
23719printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
23720      esac
23721      case $ac_var in #(
23722      _ | IFS | as_nl) ;; #(
23723      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
23724      *) { eval $ac_var=; unset $ac_var;} ;;
23725      esac ;;
23726    esac
23727  done
23728
23729  (set) 2>&1 |
23730    case $as_nl`(ac_space=' '; set) 2>&1` in #(
23731    *${as_nl}ac_space=\ *)
23732      # `set' does not quote correctly, so add quotes: double-quote
23733      # substitution turns \\\\ into \\, and sed turns \\ into \.
23734      sed -n \
23735	"s/'/'\\\\''/g;
23736	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23737      ;; #(
23738    *)
23739      # `set' quotes correctly as required by POSIX, so do not add quotes.
23740      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23741      ;;
23742    esac |
23743    sort
23744) |
23745  sed '
23746     /^ac_cv_env_/b end
23747     t clear
23748     :clear
23749     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
23750     t end
23751     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23752     :end' >>confcache
23753if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23754  if test -w "$cache_file"; then
23755    if test "x$cache_file" != "x/dev/null"; then
23756      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
23757printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
23758      if test ! -f "$cache_file" || test -h "$cache_file"; then
23759	cat confcache >"$cache_file"
23760      else
23761        case $cache_file in #(
23762        */* | ?:*)
23763	  mv -f confcache "$cache_file"$$ &&
23764	  mv -f "$cache_file"$$ "$cache_file" ;; #(
23765        *)
23766	  mv -f confcache "$cache_file" ;;
23767	esac
23768      fi
23769    fi
23770  else
23771    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
23772printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
23773  fi
23774fi
23775rm -f confcache
23776
23777test "x$prefix" = xNONE && prefix=$ac_default_prefix
23778# Let make expand exec_prefix.
23779test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23780
23781DEFS=-DHAVE_CONFIG_H
23782
23783ac_libobjs=
23784ac_ltlibobjs=
23785U=
23786for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23787  # 1. Remove the extension, and $U if already installed.
23788  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23789  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
23790  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
23791  #    will be set to the directory where LIBOBJS objects are built.
23792  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23793  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
23794done
23795LIBOBJS=$ac_libobjs
23796
23797LTLIBOBJS=$ac_ltlibobjs
23798
23799
23800{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
23801printf %s "checking that generated files are newer than configure... " >&6; }
23802   if test -n "$am_sleep_pid"; then
23803     # Hide warnings about reused PIDs.
23804     wait $am_sleep_pid 2>/dev/null
23805   fi
23806   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
23807printf "%s\n" "done" >&6; }
23808if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23809  as_fn_error $? "conditional \"AMDEP\" was never defined.
23810Usually this means the macro was only invoked conditionally." "$LINENO" 5
23811fi
23812if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23813  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
23814Usually this means the macro was only invoked conditionally." "$LINENO" 5
23815fi
23816 if test -n "$EXEEXT"; then
23817  am__EXEEXT_TRUE=
23818  am__EXEEXT_FALSE='#'
23819else
23820  am__EXEEXT_TRUE='#'
23821  am__EXEEXT_FALSE=
23822fi
23823
23824if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
23825  as_fn_error $? "conditional \"LINT\" was never defined.
23826Usually this means the macro was only invoked conditionally." "$LINENO" 5
23827fi
23828if test -z "${HAVE_MKTEMP_COMMAND_TRUE}" && test -z "${HAVE_MKTEMP_COMMAND_FALSE}"; then
23829  as_fn_error $? "conditional \"HAVE_MKTEMP_COMMAND\" was never defined.
23830Usually this means the macro was only invoked conditionally." "$LINENO" 5
23831fi
23832if test -z "${HAVE_ARC4RANDOM_TRUE}" && test -z "${HAVE_ARC4RANDOM_FALSE}"; then
23833  as_fn_error $? "conditional \"HAVE_ARC4RANDOM\" was never defined.
23834Usually this means the macro was only invoked conditionally." "$LINENO" 5
23835fi
23836if test -z "${HAS_SECURE_RPC_TRUE}" && test -z "${HAS_SECURE_RPC_FALSE}"; then
23837  as_fn_error $? "conditional \"HAS_SECURE_RPC\" was never defined.
23838Usually this means the macro was only invoked conditionally." "$LINENO" 5
23839fi
23840if test -z "${HAVE_SYSTEMD_TRUE}" && test -z "${HAVE_SYSTEMD_FALSE}"; then
23841  as_fn_error $? "conditional \"HAVE_SYSTEMD\" was never defined.
23842Usually this means the macro was only invoked conditionally." "$LINENO" 5
23843fi
23844if test -z "${USE_SYSTEMD_DAEMON_TRUE}" && test -z "${USE_SYSTEMD_DAEMON_FALSE}"; then
23845  as_fn_error $? "conditional \"USE_SYSTEMD_DAEMON\" was never defined.
23846Usually this means the macro was only invoked conditionally." "$LINENO" 5
23847fi
23848if test -z "${HAS_KERBEROS_FIVE_TRUE}" && test -z "${HAS_KERBEROS_FIVE_FALSE}"; then
23849  as_fn_error $? "conditional \"HAS_KERBEROS_FIVE\" was never defined.
23850Usually this means the macro was only invoked conditionally." "$LINENO" 5
23851fi
23852if test -z "${SET_UTMP_FILE_TRUE}" && test -z "${SET_UTMP_FILE_FALSE}"; then
23853  as_fn_error $? "conditional \"SET_UTMP_FILE\" was never defined.
23854Usually this means the macro was only invoked conditionally." "$LINENO" 5
23855fi
23856if test -z "${SET_WTMP_FILE_TRUE}" && test -z "${SET_WTMP_FILE_FALSE}"; then
23857  as_fn_error $? "conditional \"SET_WTMP_FILE\" was never defined.
23858Usually this means the macro was only invoked conditionally." "$LINENO" 5
23859fi
23860if test -z "${USE_XPM_TRUE}" && test -z "${USE_XPM_FALSE}"; then
23861  as_fn_error $? "conditional \"USE_XPM\" was never defined.
23862Usually this means the macro was only invoked conditionally." "$LINENO" 5
23863fi
23864if test -z "${HAS_XDM_AUTH_TRUE}" && test -z "${HAS_XDM_AUTH_FALSE}"; then
23865  as_fn_error $? "conditional \"HAS_XDM_AUTH\" was never defined.
23866Usually this means the macro was only invoked conditionally." "$LINENO" 5
23867fi
23868if test -z "${INSTALL_XDMSHELL_TRUE}" && test -z "${INSTALL_XDMSHELL_FALSE}"; then
23869  as_fn_error $? "conditional \"INSTALL_XDMSHELL\" was never defined.
23870Usually this means the macro was only invoked conditionally." "$LINENO" 5
23871fi
23872
23873: "${CONFIG_STATUS=./config.status}"
23874ac_write_fail=0
23875ac_clean_files_save=$ac_clean_files
23876ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23877{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
23878printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
23879as_write_fail=0
23880cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
23881#! $SHELL
23882# Generated by $as_me.
23883# Run this file to recreate the current configuration.
23884# Compiler output produced by configure, useful for debugging
23885# configure, is in config.log if it exists.
23886
23887debug=false
23888ac_cs_recheck=false
23889ac_cs_silent=false
23890
23891SHELL=\${CONFIG_SHELL-$SHELL}
23892export SHELL
23893_ASEOF
23894cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
23895## -------------------- ##
23896## M4sh Initialization. ##
23897## -------------------- ##
23898
23899# Be more Bourne compatible
23900DUALCASE=1; export DUALCASE # for MKS sh
23901as_nop=:
23902if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
23903then :
23904  emulate sh
23905  NULLCMD=:
23906  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23907  # is contrary to our usage.  Disable this feature.
23908  alias -g '${1+"$@"}'='"$@"'
23909  setopt NO_GLOB_SUBST
23910else $as_nop
23911  case `(set -o) 2>/dev/null` in #(
23912  *posix*) :
23913    set -o posix ;; #(
23914  *) :
23915     ;;
23916esac
23917fi
23918
23919
23920
23921# Reset variables that may have inherited troublesome values from
23922# the environment.
23923
23924# IFS needs to be set, to space, tab, and newline, in precisely that order.
23925# (If _AS_PATH_WALK were called with IFS unset, it would have the
23926# side effect of setting IFS to empty, thus disabling word splitting.)
23927# Quoting is to prevent editors from complaining about space-tab.
23928as_nl='
23929'
23930export as_nl
23931IFS=" ""	$as_nl"
23932
23933PS1='$ '
23934PS2='> '
23935PS4='+ '
23936
23937# Ensure predictable behavior from utilities with locale-dependent output.
23938LC_ALL=C
23939export LC_ALL
23940LANGUAGE=C
23941export LANGUAGE
23942
23943# We cannot yet rely on "unset" to work, but we need these variables
23944# to be unset--not just set to an empty or harmless value--now, to
23945# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
23946# also avoids known problems related to "unset" and subshell syntax
23947# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
23948for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
23949do eval test \${$as_var+y} \
23950  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
23951done
23952
23953# Ensure that fds 0, 1, and 2 are open.
23954if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
23955if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
23956if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
23957
23958# The user is always right.
23959if ${PATH_SEPARATOR+false} :; then
23960  PATH_SEPARATOR=:
23961  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
23962    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
23963      PATH_SEPARATOR=';'
23964  }
23965fi
23966
23967
23968# Find who we are.  Look in the path if we contain no directory separator.
23969as_myself=
23970case $0 in #((
23971  *[\\/]* ) as_myself=$0 ;;
23972  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23973for as_dir in $PATH
23974do
23975  IFS=$as_save_IFS
23976  case $as_dir in #(((
23977    '') as_dir=./ ;;
23978    */) ;;
23979    *) as_dir=$as_dir/ ;;
23980  esac
23981    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
23982  done
23983IFS=$as_save_IFS
23984
23985     ;;
23986esac
23987# We did not find ourselves, most probably we were run as `sh COMMAND'
23988# in which case we are not to be found in the path.
23989if test "x$as_myself" = x; then
23990  as_myself=$0
23991fi
23992if test ! -f "$as_myself"; then
23993  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23994  exit 1
23995fi
23996
23997
23998
23999# as_fn_error STATUS ERROR [LINENO LOG_FD]
24000# ----------------------------------------
24001# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
24002# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
24003# script with STATUS, using 1 if that was 0.
24004as_fn_error ()
24005{
24006  as_status=$1; test $as_status -eq 0 && as_status=1
24007  if test "$4"; then
24008    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
24009    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
24010  fi
24011  printf "%s\n" "$as_me: error: $2" >&2
24012  as_fn_exit $as_status
24013} # as_fn_error
24014
24015
24016
24017# as_fn_set_status STATUS
24018# -----------------------
24019# Set $? to STATUS, without forking.
24020as_fn_set_status ()
24021{
24022  return $1
24023} # as_fn_set_status
24024
24025# as_fn_exit STATUS
24026# -----------------
24027# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
24028as_fn_exit ()
24029{
24030  set +e
24031  as_fn_set_status $1
24032  exit $1
24033} # as_fn_exit
24034
24035# as_fn_unset VAR
24036# ---------------
24037# Portably unset VAR.
24038as_fn_unset ()
24039{
24040  { eval $1=; unset $1;}
24041}
24042as_unset=as_fn_unset
24043
24044# as_fn_append VAR VALUE
24045# ----------------------
24046# Append the text in VALUE to the end of the definition contained in VAR. Take
24047# advantage of any shell optimizations that allow amortized linear growth over
24048# repeated appends, instead of the typical quadratic growth present in naive
24049# implementations.
24050if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
24051then :
24052  eval 'as_fn_append ()
24053  {
24054    eval $1+=\$2
24055  }'
24056else $as_nop
24057  as_fn_append ()
24058  {
24059    eval $1=\$$1\$2
24060  }
24061fi # as_fn_append
24062
24063# as_fn_arith ARG...
24064# ------------------
24065# Perform arithmetic evaluation on the ARGs, and store the result in the
24066# global $as_val. Take advantage of shells that can avoid forks. The arguments
24067# must be portable across $(()) and expr.
24068if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
24069then :
24070  eval 'as_fn_arith ()
24071  {
24072    as_val=$(( $* ))
24073  }'
24074else $as_nop
24075  as_fn_arith ()
24076  {
24077    as_val=`expr "$@" || test $? -eq 1`
24078  }
24079fi # as_fn_arith
24080
24081
24082if expr a : '\(a\)' >/dev/null 2>&1 &&
24083   test "X`expr 00001 : '.*\(...\)'`" = X001; then
24084  as_expr=expr
24085else
24086  as_expr=false
24087fi
24088
24089if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24090  as_basename=basename
24091else
24092  as_basename=false
24093fi
24094
24095if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24096  as_dirname=dirname
24097else
24098  as_dirname=false
24099fi
24100
24101as_me=`$as_basename -- "$0" ||
24102$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24103	 X"$0" : 'X\(//\)$' \| \
24104	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24105printf "%s\n" X/"$0" |
24106    sed '/^.*\/\([^/][^/]*\)\/*$/{
24107	    s//\1/
24108	    q
24109	  }
24110	  /^X\/\(\/\/\)$/{
24111	    s//\1/
24112	    q
24113	  }
24114	  /^X\/\(\/\).*/{
24115	    s//\1/
24116	    q
24117	  }
24118	  s/.*/./; q'`
24119
24120# Avoid depending upon Character Ranges.
24121as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24122as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24123as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24124as_cr_digits='0123456789'
24125as_cr_alnum=$as_cr_Letters$as_cr_digits
24126
24127
24128# Determine whether it's possible to make 'echo' print without a newline.
24129# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
24130# for compatibility with existing Makefiles.
24131ECHO_C= ECHO_N= ECHO_T=
24132case `echo -n x` in #(((((
24133-n*)
24134  case `echo 'xy\c'` in
24135  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
24136  xy)  ECHO_C='\c';;
24137  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
24138       ECHO_T='	';;
24139  esac;;
24140*)
24141  ECHO_N='-n';;
24142esac
24143
24144# For backward compatibility with old third-party macros, we provide
24145# the shell variables $as_echo and $as_echo_n.  New code should use
24146# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
24147as_echo='printf %s\n'
24148as_echo_n='printf %s'
24149
24150rm -f conf$$ conf$$.exe conf$$.file
24151if test -d conf$$.dir; then
24152  rm -f conf$$.dir/conf$$.file
24153else
24154  rm -f conf$$.dir
24155  mkdir conf$$.dir 2>/dev/null
24156fi
24157if (echo >conf$$.file) 2>/dev/null; then
24158  if ln -s conf$$.file conf$$ 2>/dev/null; then
24159    as_ln_s='ln -s'
24160    # ... but there are two gotchas:
24161    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24162    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24163    # In both cases, we have to default to `cp -pR'.
24164    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24165      as_ln_s='cp -pR'
24166  elif ln conf$$.file conf$$ 2>/dev/null; then
24167    as_ln_s=ln
24168  else
24169    as_ln_s='cp -pR'
24170  fi
24171else
24172  as_ln_s='cp -pR'
24173fi
24174rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24175rmdir conf$$.dir 2>/dev/null
24176
24177
24178# as_fn_mkdir_p
24179# -------------
24180# Create "$as_dir" as a directory, including parents if necessary.
24181as_fn_mkdir_p ()
24182{
24183
24184  case $as_dir in #(
24185  -*) as_dir=./$as_dir;;
24186  esac
24187  test -d "$as_dir" || eval $as_mkdir_p || {
24188    as_dirs=
24189    while :; do
24190      case $as_dir in #(
24191      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
24192      *) as_qdir=$as_dir;;
24193      esac
24194      as_dirs="'$as_qdir' $as_dirs"
24195      as_dir=`$as_dirname -- "$as_dir" ||
24196$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24197	 X"$as_dir" : 'X\(//\)[^/]' \| \
24198	 X"$as_dir" : 'X\(//\)$' \| \
24199	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24200printf "%s\n" X"$as_dir" |
24201    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24202	    s//\1/
24203	    q
24204	  }
24205	  /^X\(\/\/\)[^/].*/{
24206	    s//\1/
24207	    q
24208	  }
24209	  /^X\(\/\/\)$/{
24210	    s//\1/
24211	    q
24212	  }
24213	  /^X\(\/\).*/{
24214	    s//\1/
24215	    q
24216	  }
24217	  s/.*/./; q'`
24218      test -d "$as_dir" && break
24219    done
24220    test -z "$as_dirs" || eval "mkdir $as_dirs"
24221  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
24222
24223
24224} # as_fn_mkdir_p
24225if mkdir -p . 2>/dev/null; then
24226  as_mkdir_p='mkdir -p "$as_dir"'
24227else
24228  test -d ./-p && rmdir ./-p
24229  as_mkdir_p=false
24230fi
24231
24232
24233# as_fn_executable_p FILE
24234# -----------------------
24235# Test if FILE is an executable regular file.
24236as_fn_executable_p ()
24237{
24238  test -f "$1" && test -x "$1"
24239} # as_fn_executable_p
24240as_test_x='test -x'
24241as_executable_p=as_fn_executable_p
24242
24243# Sed expression to map a string onto a valid CPP name.
24244as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24245
24246# Sed expression to map a string onto a valid variable name.
24247as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24248
24249
24250exec 6>&1
24251## ----------------------------------- ##
24252## Main body of $CONFIG_STATUS script. ##
24253## ----------------------------------- ##
24254_ASEOF
24255test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
24256
24257cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24258# Save the log message, to keep $0 and so on meaningful, and to
24259# report actual input values of CONFIG_FILES etc. instead of their
24260# values after options handling.
24261ac_log="
24262This file was extended by xdm $as_me 1.1.13, which was
24263generated by GNU Autoconf 2.71.  Invocation command line was
24264
24265  CONFIG_FILES    = $CONFIG_FILES
24266  CONFIG_HEADERS  = $CONFIG_HEADERS
24267  CONFIG_LINKS    = $CONFIG_LINKS
24268  CONFIG_COMMANDS = $CONFIG_COMMANDS
24269  $ $0 $@
24270
24271on `(hostname || uname -n) 2>/dev/null | sed 1q`
24272"
24273
24274_ACEOF
24275
24276case $ac_config_files in *"
24277"*) set x $ac_config_files; shift; ac_config_files=$*;;
24278esac
24279
24280case $ac_config_headers in *"
24281"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
24282esac
24283
24284
24285cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24286# Files that config.status was made for.
24287config_files="$ac_config_files"
24288config_headers="$ac_config_headers"
24289config_commands="$ac_config_commands"
24290
24291_ACEOF
24292
24293cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24294ac_cs_usage="\
24295\`$as_me' instantiates files and other configuration actions
24296from templates according to the current configuration.  Unless the files
24297and actions are specified as TAGs, all are instantiated by default.
24298
24299Usage: $0 [OPTION]... [TAG]...
24300
24301  -h, --help       print this help, then exit
24302  -V, --version    print version number and configuration settings, then exit
24303      --config     print configuration, then exit
24304  -q, --quiet, --silent
24305                   do not print progress messages
24306  -d, --debug      don't remove temporary files
24307      --recheck    update $as_me by reconfiguring in the same conditions
24308      --file=FILE[:TEMPLATE]
24309                   instantiate the configuration file FILE
24310      --header=FILE[:TEMPLATE]
24311                   instantiate the configuration header FILE
24312
24313Configuration files:
24314$config_files
24315
24316Configuration headers:
24317$config_headers
24318
24319Configuration commands:
24320$config_commands
24321
24322Report bugs to <https://gitlab.freedesktop.org/xorg/app/xdm/issues>."
24323
24324_ACEOF
24325ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
24326ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
24327cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24328ac_cs_config='$ac_cs_config_escaped'
24329ac_cs_version="\\
24330xdm config.status 1.1.13
24331configured by $0, generated by GNU Autoconf 2.71,
24332  with options \\"\$ac_cs_config\\"
24333
24334Copyright (C) 2021 Free Software Foundation, Inc.
24335This config.status script is free software; the Free Software Foundation
24336gives unlimited permission to copy, distribute and modify it."
24337
24338ac_pwd='$ac_pwd'
24339srcdir='$srcdir'
24340INSTALL='$INSTALL'
24341MKDIR_P='$MKDIR_P'
24342AWK='$AWK'
24343test -n "\$AWK" || AWK=awk
24344_ACEOF
24345
24346cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24347# The default lists apply if the user does not specify any file.
24348ac_need_defaults=:
24349while test $# != 0
24350do
24351  case $1 in
24352  --*=?*)
24353    ac_option=`expr "X$1" : 'X\([^=]*\)='`
24354    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24355    ac_shift=:
24356    ;;
24357  --*=)
24358    ac_option=`expr "X$1" : 'X\([^=]*\)='`
24359    ac_optarg=
24360    ac_shift=:
24361    ;;
24362  *)
24363    ac_option=$1
24364    ac_optarg=$2
24365    ac_shift=shift
24366    ;;
24367  esac
24368
24369  case $ac_option in
24370  # Handling of the options.
24371  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24372    ac_cs_recheck=: ;;
24373  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24374    printf "%s\n" "$ac_cs_version"; exit ;;
24375  --config | --confi | --conf | --con | --co | --c )
24376    printf "%s\n" "$ac_cs_config"; exit ;;
24377  --debug | --debu | --deb | --de | --d | -d )
24378    debug=: ;;
24379  --file | --fil | --fi | --f )
24380    $ac_shift
24381    case $ac_optarg in
24382    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24383    '') as_fn_error $? "missing file argument" ;;
24384    esac
24385    as_fn_append CONFIG_FILES " '$ac_optarg'"
24386    ac_need_defaults=false;;
24387  --header | --heade | --head | --hea )
24388    $ac_shift
24389    case $ac_optarg in
24390    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24391    esac
24392    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
24393    ac_need_defaults=false;;
24394  --he | --h)
24395    # Conflict between --help and --header
24396    as_fn_error $? "ambiguous option: \`$1'
24397Try \`$0 --help' for more information.";;
24398  --help | --hel | -h )
24399    printf "%s\n" "$ac_cs_usage"; exit ;;
24400  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24401  | -silent | --silent | --silen | --sile | --sil | --si | --s)
24402    ac_cs_silent=: ;;
24403
24404  # This is an error.
24405  -*) as_fn_error $? "unrecognized option: \`$1'
24406Try \`$0 --help' for more information." ;;
24407
24408  *) as_fn_append ac_config_targets " $1"
24409     ac_need_defaults=false ;;
24410
24411  esac
24412  shift
24413done
24414
24415ac_configure_extra_args=
24416
24417if $ac_cs_silent; then
24418  exec 6>/dev/null
24419  ac_configure_extra_args="$ac_configure_extra_args --silent"
24420fi
24421
24422_ACEOF
24423cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24424if \$ac_cs_recheck; then
24425  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24426  shift
24427  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
24428  CONFIG_SHELL='$SHELL'
24429  export CONFIG_SHELL
24430  exec "\$@"
24431fi
24432
24433_ACEOF
24434cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24435exec 5>>config.log
24436{
24437  echo
24438  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24439## Running $as_me. ##
24440_ASBOX
24441  printf "%s\n" "$ac_log"
24442} >&5
24443
24444_ACEOF
24445cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24446#
24447# INIT-COMMANDS
24448#
24449AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
24450
24451
24452# The HP-UX ksh and POSIX shell print the target directory to stdout
24453# if CDPATH is set.
24454(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24455
24456sed_quote_subst='$sed_quote_subst'
24457double_quote_subst='$double_quote_subst'
24458delay_variable_subst='$delay_variable_subst'
24459enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
24460macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
24461macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
24462enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
24463pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
24464enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
24465shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
24466SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
24467ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
24468PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
24469host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
24470host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
24471host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
24472build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
24473build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
24474build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
24475SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
24476Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
24477GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
24478EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
24479FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
24480LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
24481NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
24482LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
24483max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
24484ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
24485exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
24486lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
24487lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
24488lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
24489lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
24490lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
24491reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
24492reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
24493FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
24494OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
24495deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
24496file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
24497file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
24498want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
24499DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
24500sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
24501AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
24502lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
24503AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
24504archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
24505STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
24506RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
24507old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
24508old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
24509old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
24510lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
24511CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
24512CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
24513compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
24514GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
24515lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
24516lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
24517lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
24518lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
24519lt_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"`'
24520lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
24521nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
24522lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
24523lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
24524objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
24525MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
24526lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
24527lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
24528lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
24529lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
24530lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
24531need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
24532MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
24533DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
24534NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
24535LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
24536OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
24537OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
24538libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
24539shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
24540extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
24541archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
24542enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
24543export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
24544whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
24545compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
24546old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
24547old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
24548archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
24549archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
24550module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
24551module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
24552with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
24553allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
24554no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
24555hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
24556hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
24557hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
24558hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
24559hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
24560hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
24561hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
24562inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
24563link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
24564always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
24565export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
24566exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
24567include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
24568prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
24569postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
24570file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
24571variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
24572need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
24573need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
24574version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
24575runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
24576shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
24577shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
24578libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
24579library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
24580soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
24581install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
24582postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
24583postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
24584finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
24585finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
24586hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
24587sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
24588configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
24589configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
24590hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
24591enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
24592enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
24593enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
24594old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
24595striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
24596
24597LTCC='$LTCC'
24598LTCFLAGS='$LTCFLAGS'
24599compiler='$compiler_DEFAULT'
24600
24601# A function that is used when there is no print builtin or printf.
24602func_fallback_echo ()
24603{
24604  eval 'cat <<_LTECHO_EOF
24605\$1
24606_LTECHO_EOF'
24607}
24608
24609# Quote evaled strings.
24610for var in SHELL \
24611ECHO \
24612PATH_SEPARATOR \
24613SED \
24614GREP \
24615EGREP \
24616FGREP \
24617LD \
24618NM \
24619LN_S \
24620lt_SP2NL \
24621lt_NL2SP \
24622reload_flag \
24623FILECMD \
24624OBJDUMP \
24625deplibs_check_method \
24626file_magic_cmd \
24627file_magic_glob \
24628want_nocaseglob \
24629DLLTOOL \
24630sharedlib_from_linklib_cmd \
24631AR \
24632archiver_list_spec \
24633STRIP \
24634RANLIB \
24635CC \
24636CFLAGS \
24637compiler \
24638lt_cv_sys_global_symbol_pipe \
24639lt_cv_sys_global_symbol_to_cdecl \
24640lt_cv_sys_global_symbol_to_import \
24641lt_cv_sys_global_symbol_to_c_name_address \
24642lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
24643lt_cv_nm_interface \
24644nm_file_list_spec \
24645lt_cv_truncate_bin \
24646lt_prog_compiler_no_builtin_flag \
24647lt_prog_compiler_pic \
24648lt_prog_compiler_wl \
24649lt_prog_compiler_static \
24650lt_cv_prog_compiler_c_o \
24651need_locks \
24652MANIFEST_TOOL \
24653DSYMUTIL \
24654NMEDIT \
24655LIPO \
24656OTOOL \
24657OTOOL64 \
24658shrext_cmds \
24659export_dynamic_flag_spec \
24660whole_archive_flag_spec \
24661compiler_needs_object \
24662with_gnu_ld \
24663allow_undefined_flag \
24664no_undefined_flag \
24665hardcode_libdir_flag_spec \
24666hardcode_libdir_separator \
24667exclude_expsyms \
24668include_expsyms \
24669file_list_spec \
24670variables_saved_for_relink \
24671libname_spec \
24672library_names_spec \
24673soname_spec \
24674install_override_mode \
24675finish_eval \
24676old_striplib \
24677striplib; do
24678    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
24679    *[\\\\\\\`\\"\\\$]*)
24680      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
24681      ;;
24682    *)
24683      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24684      ;;
24685    esac
24686done
24687
24688# Double-quote double-evaled strings.
24689for var in reload_cmds \
24690old_postinstall_cmds \
24691old_postuninstall_cmds \
24692old_archive_cmds \
24693extract_expsyms_cmds \
24694old_archive_from_new_cmds \
24695old_archive_from_expsyms_cmds \
24696archive_cmds \
24697archive_expsym_cmds \
24698module_cmds \
24699module_expsym_cmds \
24700export_symbols_cmds \
24701prelink_cmds \
24702postlink_cmds \
24703postinstall_cmds \
24704postuninstall_cmds \
24705finish_cmds \
24706sys_lib_search_path_spec \
24707configure_time_dlsearch_path \
24708configure_time_lt_sys_library_path; do
24709    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
24710    *[\\\\\\\`\\"\\\$]*)
24711      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
24712      ;;
24713    *)
24714      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24715      ;;
24716    esac
24717done
24718
24719ac_aux_dir='$ac_aux_dir'
24720
24721# See if we are running on zsh, and set the options that allow our
24722# commands through without removal of \ escapes INIT.
24723if test -n "\${ZSH_VERSION+set}"; then
24724   setopt NO_GLOB_SUBST
24725fi
24726
24727
24728    PACKAGE='$PACKAGE'
24729    VERSION='$VERSION'
24730    RM='$RM'
24731    ofile='$ofile'
24732
24733
24734
24735
24736_ACEOF
24737
24738cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24739
24740# Handling of arguments.
24741for ac_config_target in $ac_config_targets
24742do
24743  case $ac_config_target in
24744    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
24745    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24746    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
24747    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24748    "app-defaults/Makefile") CONFIG_FILES="$CONFIG_FILES app-defaults/Makefile" ;;
24749    "chooser/Makefile") CONFIG_FILES="$CONFIG_FILES chooser/Makefile" ;;
24750    "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
24751    "greeter/Makefile") CONFIG_FILES="$CONFIG_FILES greeter/Makefile" ;;
24752    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
24753    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
24754    "xdm/Makefile") CONFIG_FILES="$CONFIG_FILES xdm/Makefile" ;;
24755    "xdmshell/Makefile") CONFIG_FILES="$CONFIG_FILES xdmshell/Makefile" ;;
24756
24757  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
24758  esac
24759done
24760
24761
24762# If the user did not use the arguments to specify the items to instantiate,
24763# then the envvar interface is used.  Set only those that are not.
24764# We use the long form for the default assignment because of an extremely
24765# bizarre bug on SunOS 4.1.3.
24766if $ac_need_defaults; then
24767  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
24768  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
24769  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
24770fi
24771
24772# Have a temporary directory for convenience.  Make it in the build tree
24773# simply because there is no reason against having it here, and in addition,
24774# creating and moving files from /tmp can sometimes cause problems.
24775# Hook for its removal unless debugging.
24776# Note that there is a small window in which the directory will not be cleaned:
24777# after its creation but before its name has been assigned to `$tmp'.
24778$debug ||
24779{
24780  tmp= ac_tmp=
24781  trap 'exit_status=$?
24782  : "${ac_tmp:=$tmp}"
24783  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
24784' 0
24785  trap 'as_fn_exit 1' 1 2 13 15
24786}
24787# Create a (secure) tmp directory for tmp files.
24788
24789{
24790  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24791  test -d "$tmp"
24792}  ||
24793{
24794  tmp=./conf$$-$RANDOM
24795  (umask 077 && mkdir "$tmp")
24796} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
24797ac_tmp=$tmp
24798
24799# Set up the scripts for CONFIG_FILES section.
24800# No need to generate them if there are no CONFIG_FILES.
24801# This happens for instance with `./config.status config.h'.
24802if test -n "$CONFIG_FILES"; then
24803
24804
24805ac_cr=`echo X | tr X '\015'`
24806# On cygwin, bash can eat \r inside `` if the user requested igncr.
24807# But we know of no other shell where ac_cr would be empty at this
24808# point, so we can use a bashism as a fallback.
24809if test "x$ac_cr" = x; then
24810  eval ac_cr=\$\'\\r\'
24811fi
24812ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
24813if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
24814  ac_cs_awk_cr='\\r'
24815else
24816  ac_cs_awk_cr=$ac_cr
24817fi
24818
24819echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
24820_ACEOF
24821
24822
24823{
24824  echo "cat >conf$$subs.awk <<_ACEOF" &&
24825  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
24826  echo "_ACEOF"
24827} >conf$$subs.sh ||
24828  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24829ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
24830ac_delim='%!_!# '
24831for ac_last_try in false false false false false :; do
24832  . ./conf$$subs.sh ||
24833    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24834
24835  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
24836  if test $ac_delim_n = $ac_delim_num; then
24837    break
24838  elif $ac_last_try; then
24839    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24840  else
24841    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24842  fi
24843done
24844rm -f conf$$subs.sh
24845
24846cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24847cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
24848_ACEOF
24849sed -n '
24850h
24851s/^/S["/; s/!.*/"]=/
24852p
24853g
24854s/^[^!]*!//
24855:repl
24856t repl
24857s/'"$ac_delim"'$//
24858t delim
24859:nl
24860h
24861s/\(.\{148\}\)..*/\1/
24862t more1
24863s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
24864p
24865n
24866b repl
24867:more1
24868s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24869p
24870g
24871s/.\{148\}//
24872t nl
24873:delim
24874h
24875s/\(.\{148\}\)..*/\1/
24876t more2
24877s/["\\]/\\&/g; s/^/"/; s/$/"/
24878p
24879b
24880:more2
24881s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24882p
24883g
24884s/.\{148\}//
24885t delim
24886' <conf$$subs.awk | sed '
24887/^[^""]/{
24888  N
24889  s/\n//
24890}
24891' >>$CONFIG_STATUS || ac_write_fail=1
24892rm -f conf$$subs.awk
24893cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24894_ACAWK
24895cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
24896  for (key in S) S_is_set[key] = 1
24897  FS = ""
24898
24899}
24900{
24901  line = $ 0
24902  nfields = split(line, field, "@")
24903  substed = 0
24904  len = length(field[1])
24905  for (i = 2; i < nfields; i++) {
24906    key = field[i]
24907    keylen = length(key)
24908    if (S_is_set[key]) {
24909      value = S[key]
24910      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
24911      len += length(value) + length(field[++i])
24912      substed = 1
24913    } else
24914      len += 1 + keylen
24915  }
24916
24917  print line
24918}
24919
24920_ACAWK
24921_ACEOF
24922cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24923if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
24924  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
24925else
24926  cat
24927fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
24928  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
24929_ACEOF
24930
24931# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
24932# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
24933# trailing colons and then remove the whole line if VPATH becomes empty
24934# (actually we leave an empty line to preserve line numbers).
24935if test "x$srcdir" = x.; then
24936  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
24937h
24938s///
24939s/^/:/
24940s/[	 ]*$/:/
24941s/:\$(srcdir):/:/g
24942s/:\${srcdir}:/:/g
24943s/:@srcdir@:/:/g
24944s/^:*//
24945s/:*$//
24946x
24947s/\(=[	 ]*\).*/\1/
24948G
24949s/\n//
24950s/^[^=]*=[	 ]*$//
24951}'
24952fi
24953
24954cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24955fi # test -n "$CONFIG_FILES"
24956
24957# Set up the scripts for CONFIG_HEADERS section.
24958# No need to generate them if there are no CONFIG_HEADERS.
24959# This happens for instance with `./config.status Makefile'.
24960if test -n "$CONFIG_HEADERS"; then
24961cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
24962BEGIN {
24963_ACEOF
24964
24965# Transform confdefs.h into an awk script `defines.awk', embedded as
24966# here-document in config.status, that substitutes the proper values into
24967# config.h.in to produce config.h.
24968
24969# Create a delimiter string that does not exist in confdefs.h, to ease
24970# handling of long lines.
24971ac_delim='%!_!# '
24972for ac_last_try in false false :; do
24973  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
24974  if test -z "$ac_tt"; then
24975    break
24976  elif $ac_last_try; then
24977    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
24978  else
24979    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24980  fi
24981done
24982
24983# For the awk script, D is an array of macro values keyed by name,
24984# likewise P contains macro parameters if any.  Preserve backslash
24985# newline sequences.
24986
24987ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24988sed -n '
24989s/.\{148\}/&'"$ac_delim"'/g
24990t rset
24991:rset
24992s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
24993t def
24994d
24995:def
24996s/\\$//
24997t bsnl
24998s/["\\]/\\&/g
24999s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
25000D["\1"]=" \3"/p
25001s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
25002d
25003:bsnl
25004s/["\\]/\\&/g
25005s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
25006D["\1"]=" \3\\\\\\n"\\/p
25007t cont
25008s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
25009t cont
25010d
25011:cont
25012n
25013s/.\{148\}/&'"$ac_delim"'/g
25014t clear
25015:clear
25016s/\\$//
25017t bsnlc
25018s/["\\]/\\&/g; s/^/"/; s/$/"/p
25019d
25020:bsnlc
25021s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
25022b cont
25023' <confdefs.h | sed '
25024s/'"$ac_delim"'/"\\\
25025"/g' >>$CONFIG_STATUS || ac_write_fail=1
25026
25027cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25028  for (key in D) D_is_set[key] = 1
25029  FS = ""
25030}
25031/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
25032  line = \$ 0
25033  split(line, arg, " ")
25034  if (arg[1] == "#") {
25035    defundef = arg[2]
25036    mac1 = arg[3]
25037  } else {
25038    defundef = substr(arg[1], 2)
25039    mac1 = arg[2]
25040  }
25041  split(mac1, mac2, "(") #)
25042  macro = mac2[1]
25043  prefix = substr(line, 1, index(line, defundef) - 1)
25044  if (D_is_set[macro]) {
25045    # Preserve the white space surrounding the "#".
25046    print prefix "define", macro P[macro] D[macro]
25047    next
25048  } else {
25049    # Replace #undef with comments.  This is necessary, for example,
25050    # in the case of _POSIX_SOURCE, which is predefined and required
25051    # on some systems where configure will not decide to define it.
25052    if (defundef == "undef") {
25053      print "/*", prefix defundef, macro, "*/"
25054      next
25055    }
25056  }
25057}
25058{ print }
25059_ACAWK
25060_ACEOF
25061cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25062  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
25063fi # test -n "$CONFIG_HEADERS"
25064
25065
25066eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
25067shift
25068for ac_tag
25069do
25070  case $ac_tag in
25071  :[FHLC]) ac_mode=$ac_tag; continue;;
25072  esac
25073  case $ac_mode$ac_tag in
25074  :[FHL]*:*);;
25075  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
25076  :[FH]-) ac_tag=-:-;;
25077  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25078  esac
25079  ac_save_IFS=$IFS
25080  IFS=:
25081  set x $ac_tag
25082  IFS=$ac_save_IFS
25083  shift
25084  ac_file=$1
25085  shift
25086
25087  case $ac_mode in
25088  :L) ac_source=$1;;
25089  :[FH])
25090    ac_file_inputs=
25091    for ac_f
25092    do
25093      case $ac_f in
25094      -) ac_f="$ac_tmp/stdin";;
25095      *) # Look for the file first in the build tree, then in the source tree
25096	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
25097	 # because $ac_f cannot contain `:'.
25098	 test -f "$ac_f" ||
25099	   case $ac_f in
25100	   [\\/$]*) false;;
25101	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25102	   esac ||
25103	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
25104      esac
25105      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
25106      as_fn_append ac_file_inputs " '$ac_f'"
25107    done
25108
25109    # Let's still pretend it is `configure' which instantiates (i.e., don't
25110    # use $as_me), people would be surprised to read:
25111    #    /* config.h.  Generated by config.status.  */
25112    configure_input='Generated from '`
25113	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
25114	`' by configure.'
25115    if test x"$ac_file" != x-; then
25116      configure_input="$ac_file.  $configure_input"
25117      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
25118printf "%s\n" "$as_me: creating $ac_file" >&6;}
25119    fi
25120    # Neutralize special characters interpreted by sed in replacement strings.
25121    case $configure_input in #(
25122    *\&* | *\|* | *\\* )
25123       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
25124       sed 's/[\\\\&|]/\\\\&/g'`;; #(
25125    *) ac_sed_conf_input=$configure_input;;
25126    esac
25127
25128    case $ac_tag in
25129    *:-:* | *:-) cat >"$ac_tmp/stdin" \
25130      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
25131    esac
25132    ;;
25133  esac
25134
25135  ac_dir=`$as_dirname -- "$ac_file" ||
25136$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25137	 X"$ac_file" : 'X\(//\)[^/]' \| \
25138	 X"$ac_file" : 'X\(//\)$' \| \
25139	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25140printf "%s\n" X"$ac_file" |
25141    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25142	    s//\1/
25143	    q
25144	  }
25145	  /^X\(\/\/\)[^/].*/{
25146	    s//\1/
25147	    q
25148	  }
25149	  /^X\(\/\/\)$/{
25150	    s//\1/
25151	    q
25152	  }
25153	  /^X\(\/\).*/{
25154	    s//\1/
25155	    q
25156	  }
25157	  s/.*/./; q'`
25158  as_dir="$ac_dir"; as_fn_mkdir_p
25159  ac_builddir=.
25160
25161case "$ac_dir" in
25162.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25163*)
25164  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
25165  # A ".." for each directory in $ac_dir_suffix.
25166  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
25167  case $ac_top_builddir_sub in
25168  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25169  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25170  esac ;;
25171esac
25172ac_abs_top_builddir=$ac_pwd
25173ac_abs_builddir=$ac_pwd$ac_dir_suffix
25174# for backward compatibility:
25175ac_top_builddir=$ac_top_build_prefix
25176
25177case $srcdir in
25178  .)  # We are building in place.
25179    ac_srcdir=.
25180    ac_top_srcdir=$ac_top_builddir_sub
25181    ac_abs_top_srcdir=$ac_pwd ;;
25182  [\\/]* | ?:[\\/]* )  # Absolute name.
25183    ac_srcdir=$srcdir$ac_dir_suffix;
25184    ac_top_srcdir=$srcdir
25185    ac_abs_top_srcdir=$srcdir ;;
25186  *) # Relative name.
25187    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25188    ac_top_srcdir=$ac_top_build_prefix$srcdir
25189    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25190esac
25191ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25192
25193
25194  case $ac_mode in
25195  :F)
25196  #
25197  # CONFIG_FILE
25198  #
25199
25200  case $INSTALL in
25201  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25202  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25203  esac
25204  ac_MKDIR_P=$MKDIR_P
25205  case $MKDIR_P in
25206  [\\/$]* | ?:[\\/]* ) ;;
25207  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
25208  esac
25209_ACEOF
25210
25211cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25212# If the template does not know about datarootdir, expand it.
25213# FIXME: This hack should be removed a few years after 2.60.
25214ac_datarootdir_hack=; ac_datarootdir_seen=
25215ac_sed_dataroot='
25216/datarootdir/ {
25217  p
25218  q
25219}
25220/@datadir@/p
25221/@docdir@/p
25222/@infodir@/p
25223/@localedir@/p
25224/@mandir@/p'
25225case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
25226*datarootdir*) ac_datarootdir_seen=yes;;
25227*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25228  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25229printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25230_ACEOF
25231cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25232  ac_datarootdir_hack='
25233  s&@datadir@&$datadir&g
25234  s&@docdir@&$docdir&g
25235  s&@infodir@&$infodir&g
25236  s&@localedir@&$localedir&g
25237  s&@mandir@&$mandir&g
25238  s&\\\${datarootdir}&$datarootdir&g' ;;
25239esac
25240_ACEOF
25241
25242# Neutralize VPATH when `$srcdir' = `.'.
25243# Shell code in configure.ac might set extrasub.
25244# FIXME: do we really want to maintain this feature?
25245cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25246ac_sed_extra="$ac_vpsub
25247$extrasub
25248_ACEOF
25249cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25250:t
25251/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25252s|@configure_input@|$ac_sed_conf_input|;t t
25253s&@top_builddir@&$ac_top_builddir_sub&;t t
25254s&@top_build_prefix@&$ac_top_build_prefix&;t t
25255s&@srcdir@&$ac_srcdir&;t t
25256s&@abs_srcdir@&$ac_abs_srcdir&;t t
25257s&@top_srcdir@&$ac_top_srcdir&;t t
25258s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25259s&@builddir@&$ac_builddir&;t t
25260s&@abs_builddir@&$ac_abs_builddir&;t t
25261s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25262s&@INSTALL@&$ac_INSTALL&;t t
25263s&@MKDIR_P@&$ac_MKDIR_P&;t t
25264$ac_datarootdir_hack
25265"
25266eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
25267  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25268
25269test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25270  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
25271  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
25272      "$ac_tmp/out"`; test -z "$ac_out"; } &&
25273  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25274which seems to be undefined.  Please make sure it is defined" >&5
25275printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25276which seems to be undefined.  Please make sure it is defined" >&2;}
25277
25278  rm -f "$ac_tmp/stdin"
25279  case $ac_file in
25280  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
25281  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
25282  esac \
25283  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25284 ;;
25285  :H)
25286  #
25287  # CONFIG_HEADER
25288  #
25289  if test x"$ac_file" != x-; then
25290    {
25291      printf "%s\n" "/* $configure_input  */" >&1 \
25292      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
25293    } >"$ac_tmp/config.h" \
25294      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25295    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
25296      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
25297printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
25298    else
25299      rm -f "$ac_file"
25300      mv "$ac_tmp/config.h" "$ac_file" \
25301	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
25302    fi
25303  else
25304    printf "%s\n" "/* $configure_input  */" >&1 \
25305      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
25306      || as_fn_error $? "could not create -" "$LINENO" 5
25307  fi
25308# Compute "$ac_file"'s index in $config_headers.
25309_am_arg="$ac_file"
25310_am_stamp_count=1
25311for _am_header in $config_headers :; do
25312  case $_am_header in
25313    $_am_arg | $_am_arg:* )
25314      break ;;
25315    * )
25316      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25317  esac
25318done
25319echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
25320$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25321	 X"$_am_arg" : 'X\(//\)[^/]' \| \
25322	 X"$_am_arg" : 'X\(//\)$' \| \
25323	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
25324printf "%s\n" X"$_am_arg" |
25325    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25326	    s//\1/
25327	    q
25328	  }
25329	  /^X\(\/\/\)[^/].*/{
25330	    s//\1/
25331	    q
25332	  }
25333	  /^X\(\/\/\)$/{
25334	    s//\1/
25335	    q
25336	  }
25337	  /^X\(\/\).*/{
25338	    s//\1/
25339	    q
25340	  }
25341	  s/.*/./; q'`/stamp-h$_am_stamp_count
25342 ;;
25343
25344  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
25345printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
25346 ;;
25347  esac
25348
25349
25350  case $ac_file$ac_mode in
25351    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
25352  # Older Autoconf quotes --file arguments for eval, but not when files
25353  # are listed without --file.  Let's play safe and only enable the eval
25354  # if we detect the quoting.
25355  # TODO: see whether this extra hack can be removed once we start
25356  # requiring Autoconf 2.70 or later.
25357  case $CONFIG_FILES in #(
25358  *\'*) :
25359    eval set x "$CONFIG_FILES" ;; #(
25360  *) :
25361    set x $CONFIG_FILES ;; #(
25362  *) :
25363     ;;
25364esac
25365  shift
25366  # Used to flag and report bootstrapping failures.
25367  am_rc=0
25368  for am_mf
25369  do
25370    # Strip MF so we end up with the name of the file.
25371    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
25372    # Check whether this is an Automake generated Makefile which includes
25373    # dependency-tracking related rules and includes.
25374    # Grep'ing the whole file directly is not great: AIX grep has a line
25375    # limit of 2048, but all sed's we know have understand at least 4000.
25376    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
25377      || continue
25378    am_dirpart=`$as_dirname -- "$am_mf" ||
25379$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25380	 X"$am_mf" : 'X\(//\)[^/]' \| \
25381	 X"$am_mf" : 'X\(//\)$' \| \
25382	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
25383printf "%s\n" X"$am_mf" |
25384    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25385	    s//\1/
25386	    q
25387	  }
25388	  /^X\(\/\/\)[^/].*/{
25389	    s//\1/
25390	    q
25391	  }
25392	  /^X\(\/\/\)$/{
25393	    s//\1/
25394	    q
25395	  }
25396	  /^X\(\/\).*/{
25397	    s//\1/
25398	    q
25399	  }
25400	  s/.*/./; q'`
25401    am_filepart=`$as_basename -- "$am_mf" ||
25402$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
25403	 X"$am_mf" : 'X\(//\)$' \| \
25404	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
25405printf "%s\n" X/"$am_mf" |
25406    sed '/^.*\/\([^/][^/]*\)\/*$/{
25407	    s//\1/
25408	    q
25409	  }
25410	  /^X\/\(\/\/\)$/{
25411	    s//\1/
25412	    q
25413	  }
25414	  /^X\/\(\/\).*/{
25415	    s//\1/
25416	    q
25417	  }
25418	  s/.*/./; q'`
25419    { echo "$as_me:$LINENO: cd "$am_dirpart" \
25420      && sed -e '/# am--include-marker/d' "$am_filepart" \
25421        | $MAKE -f - am--depfiles" >&5
25422   (cd "$am_dirpart" \
25423      && sed -e '/# am--include-marker/d' "$am_filepart" \
25424        | $MAKE -f - am--depfiles) >&5 2>&5
25425   ac_status=$?
25426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25427   (exit $ac_status); } || am_rc=$?
25428  done
25429  if test $am_rc -ne 0; then
25430    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25431printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
25432as_fn_error $? "Something went wrong bootstrapping makefile fragments
25433    for automatic dependency tracking.  If GNU make was not used, consider
25434    re-running the configure script with MAKE=\"gmake\" (or whatever is
25435    necessary).  You can also try re-running configure with the
25436    '--disable-dependency-tracking' option to at least be able to build
25437    the package (albeit without support for automatic dependency tracking).
25438See \`config.log' for more details" "$LINENO" 5; }
25439  fi
25440  { am_dirpart=; unset am_dirpart;}
25441  { am_filepart=; unset am_filepart;}
25442  { am_mf=; unset am_mf;}
25443  { am_rc=; unset am_rc;}
25444  rm -f conftest-deps.mk
25445}
25446 ;;
25447    "libtool":C)
25448
25449    # See if we are running on zsh, and set the options that allow our
25450    # commands through without removal of \ escapes.
25451    if test -n "${ZSH_VERSION+set}"; then
25452      setopt NO_GLOB_SUBST
25453    fi
25454
25455    cfgfile=${ofile}T
25456    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
25457    $RM "$cfgfile"
25458
25459    cat <<_LT_EOF >> "$cfgfile"
25460#! $SHELL
25461# Generated automatically by $as_me ($PACKAGE) $VERSION
25462# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25463# NOTE: Changes made to this file will be lost: look at ltmain.sh.
25464
25465# Provide generalized library-building support services.
25466# Written by Gordon Matzigkeit, 1996
25467
25468# Copyright (C) 2014 Free Software Foundation, Inc.
25469# This is free software; see the source for copying conditions.  There is NO
25470# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
25471
25472# GNU Libtool is free software; you can redistribute it and/or modify
25473# it under the terms of the GNU General Public License as published by
25474# the Free Software Foundation; either version 2 of of the License, or
25475# (at your option) any later version.
25476#
25477# As a special exception to the GNU General Public License, if you
25478# distribute this file as part of a program or library that is built
25479# using GNU Libtool, you may include this file under the  same
25480# distribution terms that you use for the rest of that program.
25481#
25482# GNU Libtool is distributed in the hope that it will be useful, but
25483# WITHOUT ANY WARRANTY; without even the implied warranty of
25484# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
25485# GNU General Public License for more details.
25486#
25487# You should have received a copy of the GNU General Public License
25488# along with this program.  If not, see <http://www.gnu.org/licenses/>.
25489
25490
25491# The names of the tagged configurations supported by this script.
25492available_tags=''
25493
25494# Configured defaults for sys_lib_dlsearch_path munging.
25495: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
25496
25497# ### BEGIN LIBTOOL CONFIG
25498
25499# Whether or not to build static libraries.
25500build_old_libs=$enable_static
25501
25502# Which release of libtool.m4 was used?
25503macro_version=$macro_version
25504macro_revision=$macro_revision
25505
25506# Whether or not to build shared libraries.
25507build_libtool_libs=$enable_shared
25508
25509# What type of objects to build.
25510pic_mode=$pic_mode
25511
25512# Whether or not to optimize for fast installation.
25513fast_install=$enable_fast_install
25514
25515# Shared archive member basename,for filename based shared library versioning on AIX.
25516shared_archive_member_spec=$shared_archive_member_spec
25517
25518# Shell to use when invoking shell scripts.
25519SHELL=$lt_SHELL
25520
25521# An echo program that protects backslashes.
25522ECHO=$lt_ECHO
25523
25524# The PATH separator for the build system.
25525PATH_SEPARATOR=$lt_PATH_SEPARATOR
25526
25527# The host system.
25528host_alias=$host_alias
25529host=$host
25530host_os=$host_os
25531
25532# The build system.
25533build_alias=$build_alias
25534build=$build
25535build_os=$build_os
25536
25537# A sed program that does not truncate output.
25538SED=$lt_SED
25539
25540# Sed that helps us avoid accidentally triggering echo(1) options like -n.
25541Xsed="\$SED -e 1s/^X//"
25542
25543# A grep program that handles long lines.
25544GREP=$lt_GREP
25545
25546# An ERE matcher.
25547EGREP=$lt_EGREP
25548
25549# A literal string matcher.
25550FGREP=$lt_FGREP
25551
25552# A BSD- or MS-compatible name lister.
25553NM=$lt_NM
25554
25555# Whether we need soft or hard links.
25556LN_S=$lt_LN_S
25557
25558# What is the maximum length of a command?
25559max_cmd_len=$max_cmd_len
25560
25561# Object file suffix (normally "o").
25562objext=$ac_objext
25563
25564# Executable file suffix (normally "").
25565exeext=$exeext
25566
25567# whether the shell understands "unset".
25568lt_unset=$lt_unset
25569
25570# turn spaces into newlines.
25571SP2NL=$lt_lt_SP2NL
25572
25573# turn newlines into spaces.
25574NL2SP=$lt_lt_NL2SP
25575
25576# convert \$build file names to \$host format.
25577to_host_file_cmd=$lt_cv_to_host_file_cmd
25578
25579# convert \$build files to toolchain format.
25580to_tool_file_cmd=$lt_cv_to_tool_file_cmd
25581
25582# A file(cmd) program that detects file types.
25583FILECMD=$lt_FILECMD
25584
25585# An object symbol dumper.
25586OBJDUMP=$lt_OBJDUMP
25587
25588# Method to check whether dependent libraries are shared objects.
25589deplibs_check_method=$lt_deplibs_check_method
25590
25591# Command to use when deplibs_check_method = "file_magic".
25592file_magic_cmd=$lt_file_magic_cmd
25593
25594# How to find potential files when deplibs_check_method = "file_magic".
25595file_magic_glob=$lt_file_magic_glob
25596
25597# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
25598want_nocaseglob=$lt_want_nocaseglob
25599
25600# DLL creation program.
25601DLLTOOL=$lt_DLLTOOL
25602
25603# Command to associate shared and link libraries.
25604sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
25605
25606# The archiver.
25607AR=$lt_AR
25608
25609# Flags to create an archive (by configure).
25610lt_ar_flags=$lt_ar_flags
25611
25612# Flags to create an archive.
25613AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
25614
25615# How to feed a file listing to the archiver.
25616archiver_list_spec=$lt_archiver_list_spec
25617
25618# A symbol stripping program.
25619STRIP=$lt_STRIP
25620
25621# Commands used to install an old-style archive.
25622RANLIB=$lt_RANLIB
25623old_postinstall_cmds=$lt_old_postinstall_cmds
25624old_postuninstall_cmds=$lt_old_postuninstall_cmds
25625
25626# Whether to use a lock for old archive extraction.
25627lock_old_archive_extraction=$lock_old_archive_extraction
25628
25629# A C compiler.
25630LTCC=$lt_CC
25631
25632# LTCC compiler flags.
25633LTCFLAGS=$lt_CFLAGS
25634
25635# Take the output of nm and produce a listing of raw symbols and C names.
25636global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25637
25638# Transform the output of nm in a proper C declaration.
25639global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25640
25641# Transform the output of nm into a list of symbols to manually relocate.
25642global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
25643
25644# Transform the output of nm in a C name address pair.
25645global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25646
25647# Transform the output of nm in a C name address pair when lib prefix is needed.
25648global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
25649
25650# The name lister interface.
25651nm_interface=$lt_lt_cv_nm_interface
25652
25653# Specify filename containing input files for \$NM.
25654nm_file_list_spec=$lt_nm_file_list_spec
25655
25656# The root where to search for dependent libraries,and where our libraries should be installed.
25657lt_sysroot=$lt_sysroot
25658
25659# Command to truncate a binary pipe.
25660lt_truncate_bin=$lt_lt_cv_truncate_bin
25661
25662# The name of the directory that contains temporary libtool files.
25663objdir=$objdir
25664
25665# Used to examine libraries when file_magic_cmd begins with "file".
25666MAGIC_CMD=$MAGIC_CMD
25667
25668# Must we lock files when doing compilation?
25669need_locks=$lt_need_locks
25670
25671# Manifest tool.
25672MANIFEST_TOOL=$lt_MANIFEST_TOOL
25673
25674# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
25675DSYMUTIL=$lt_DSYMUTIL
25676
25677# Tool to change global to local symbols on Mac OS X.
25678NMEDIT=$lt_NMEDIT
25679
25680# Tool to manipulate fat objects and archives on Mac OS X.
25681LIPO=$lt_LIPO
25682
25683# ldd/readelf like tool for Mach-O binaries on Mac OS X.
25684OTOOL=$lt_OTOOL
25685
25686# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
25687OTOOL64=$lt_OTOOL64
25688
25689# Old archive suffix (normally "a").
25690libext=$libext
25691
25692# Shared library suffix (normally ".so").
25693shrext_cmds=$lt_shrext_cmds
25694
25695# The commands to extract the exported symbol list from a shared archive.
25696extract_expsyms_cmds=$lt_extract_expsyms_cmds
25697
25698# Variables whose values should be saved in libtool wrapper scripts and
25699# restored at link time.
25700variables_saved_for_relink=$lt_variables_saved_for_relink
25701
25702# Do we need the "lib" prefix for modules?
25703need_lib_prefix=$need_lib_prefix
25704
25705# Do we need a version for libraries?
25706need_version=$need_version
25707
25708# Library versioning type.
25709version_type=$version_type
25710
25711# Shared library runtime path variable.
25712runpath_var=$runpath_var
25713
25714# Shared library path variable.
25715shlibpath_var=$shlibpath_var
25716
25717# Is shlibpath searched before the hard-coded library search path?
25718shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25719
25720# Format of library name prefix.
25721libname_spec=$lt_libname_spec
25722
25723# List of archive names.  First name is the real one, the rest are links.
25724# The last name is the one that the linker finds with -lNAME
25725library_names_spec=$lt_library_names_spec
25726
25727# The coded name of the library, if different from the real name.
25728soname_spec=$lt_soname_spec
25729
25730# Permission mode override for installation of shared libraries.
25731install_override_mode=$lt_install_override_mode
25732
25733# Command to use after installation of a shared archive.
25734postinstall_cmds=$lt_postinstall_cmds
25735
25736# Command to use after uninstallation of a shared archive.
25737postuninstall_cmds=$lt_postuninstall_cmds
25738
25739# Commands used to finish a libtool library installation in a directory.
25740finish_cmds=$lt_finish_cmds
25741
25742# As "finish_cmds", except a single script fragment to be evaled but
25743# not shown.
25744finish_eval=$lt_finish_eval
25745
25746# Whether we should hardcode library paths into libraries.
25747hardcode_into_libs=$hardcode_into_libs
25748
25749# Compile-time system search path for libraries.
25750sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25751
25752# Detected run-time system search path for libraries.
25753sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
25754
25755# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
25756configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
25757
25758# Whether dlopen is supported.
25759dlopen_support=$enable_dlopen
25760
25761# Whether dlopen of programs is supported.
25762dlopen_self=$enable_dlopen_self
25763
25764# Whether dlopen of statically linked programs is supported.
25765dlopen_self_static=$enable_dlopen_self_static
25766
25767# Commands to strip libraries.
25768old_striplib=$lt_old_striplib
25769striplib=$lt_striplib
25770
25771
25772# The linker used to build libraries.
25773LD=$lt_LD
25774
25775# How to create reloadable object files.
25776reload_flag=$lt_reload_flag
25777reload_cmds=$lt_reload_cmds
25778
25779# Commands used to build an old-style archive.
25780old_archive_cmds=$lt_old_archive_cmds
25781
25782# A language specific compiler.
25783CC=$lt_compiler
25784
25785# Is the compiler the GNU compiler?
25786with_gcc=$GCC
25787
25788# Compiler flag to turn off builtin functions.
25789no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
25790
25791# Additional compiler flags for building library objects.
25792pic_flag=$lt_lt_prog_compiler_pic
25793
25794# How to pass a linker flag through the compiler.
25795wl=$lt_lt_prog_compiler_wl
25796
25797# Compiler flag to prevent dynamic linking.
25798link_static_flag=$lt_lt_prog_compiler_static
25799
25800# Does compiler simultaneously support -c and -o options?
25801compiler_c_o=$lt_lt_cv_prog_compiler_c_o
25802
25803# Whether or not to add -lc for building shared libraries.
25804build_libtool_need_lc=$archive_cmds_need_lc
25805
25806# Whether or not to disallow shared libs when runtime libs are static.
25807allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
25808
25809# Compiler flag to allow reflexive dlopens.
25810export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
25811
25812# Compiler flag to generate shared objects directly from archives.
25813whole_archive_flag_spec=$lt_whole_archive_flag_spec
25814
25815# Whether the compiler copes with passing no objects directly.
25816compiler_needs_object=$lt_compiler_needs_object
25817
25818# Create an old-style archive from a shared archive.
25819old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
25820
25821# Create a temporary old-style archive to link instead of a shared archive.
25822old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
25823
25824# Commands used to build a shared archive.
25825archive_cmds=$lt_archive_cmds
25826archive_expsym_cmds=$lt_archive_expsym_cmds
25827
25828# Commands used to build a loadable module if different from building
25829# a shared archive.
25830module_cmds=$lt_module_cmds
25831module_expsym_cmds=$lt_module_expsym_cmds
25832
25833# Whether we are building with GNU ld or not.
25834with_gnu_ld=$lt_with_gnu_ld
25835
25836# Flag that allows shared libraries with undefined symbols to be built.
25837allow_undefined_flag=$lt_allow_undefined_flag
25838
25839# Flag that enforces no undefined symbols.
25840no_undefined_flag=$lt_no_undefined_flag
25841
25842# Flag to hardcode \$libdir into a binary during linking.
25843# This must work even if \$libdir does not exist
25844hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
25845
25846# Whether we need a single "-rpath" flag with a separated argument.
25847hardcode_libdir_separator=$lt_hardcode_libdir_separator
25848
25849# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
25850# DIR into the resulting binary.
25851hardcode_direct=$hardcode_direct
25852
25853# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
25854# DIR into the resulting binary and the resulting library dependency is
25855# "absolute",i.e impossible to change by setting \$shlibpath_var if the
25856# library is relocated.
25857hardcode_direct_absolute=$hardcode_direct_absolute
25858
25859# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
25860# into the resulting binary.
25861hardcode_minus_L=$hardcode_minus_L
25862
25863# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
25864# into the resulting binary.
25865hardcode_shlibpath_var=$hardcode_shlibpath_var
25866
25867# Set to "yes" if building a shared library automatically hardcodes DIR
25868# into the library and all subsequent libraries and executables linked
25869# against it.
25870hardcode_automatic=$hardcode_automatic
25871
25872# Set to yes if linker adds runtime paths of dependent libraries
25873# to runtime path list.
25874inherit_rpath=$inherit_rpath
25875
25876# Whether libtool must link a program against all its dependency libraries.
25877link_all_deplibs=$link_all_deplibs
25878
25879# Set to "yes" if exported symbols are required.
25880always_export_symbols=$always_export_symbols
25881
25882# The commands to list exported symbols.
25883export_symbols_cmds=$lt_export_symbols_cmds
25884
25885# Symbols that should not be listed in the preloaded symbols.
25886exclude_expsyms=$lt_exclude_expsyms
25887
25888# Symbols that must always be exported.
25889include_expsyms=$lt_include_expsyms
25890
25891# Commands necessary for linking programs (against libraries) with templates.
25892prelink_cmds=$lt_prelink_cmds
25893
25894# Commands necessary for finishing linking programs.
25895postlink_cmds=$lt_postlink_cmds
25896
25897# Specify filename containing input files.
25898file_list_spec=$lt_file_list_spec
25899
25900# How to hardcode a shared library path into an executable.
25901hardcode_action=$hardcode_action
25902
25903# ### END LIBTOOL CONFIG
25904
25905_LT_EOF
25906
25907    cat <<'_LT_EOF' >> "$cfgfile"
25908
25909# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
25910
25911# func_munge_path_list VARIABLE PATH
25912# -----------------------------------
25913# VARIABLE is name of variable containing _space_ separated list of
25914# directories to be munged by the contents of PATH, which is string
25915# having a format:
25916# "DIR[:DIR]:"
25917#       string "DIR[ DIR]" will be prepended to VARIABLE
25918# ":DIR[:DIR]"
25919#       string "DIR[ DIR]" will be appended to VARIABLE
25920# "DIRP[:DIRP]::[DIRA:]DIRA"
25921#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
25922#       "DIRA[ DIRA]" will be appended to VARIABLE
25923# "DIR[:DIR]"
25924#       VARIABLE will be replaced by "DIR[ DIR]"
25925func_munge_path_list ()
25926{
25927    case x$2 in
25928    x)
25929        ;;
25930    *:)
25931        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
25932        ;;
25933    x:*)
25934        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
25935        ;;
25936    *::*)
25937        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
25938        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
25939        ;;
25940    *)
25941        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
25942        ;;
25943    esac
25944}
25945
25946
25947# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
25948func_cc_basename ()
25949{
25950    for cc_temp in $*""; do
25951      case $cc_temp in
25952        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
25953        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
25954        \-*) ;;
25955        *) break;;
25956      esac
25957    done
25958    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
25959}
25960
25961
25962# ### END FUNCTIONS SHARED WITH CONFIGURE
25963
25964_LT_EOF
25965
25966  case $host_os in
25967  aix3*)
25968    cat <<\_LT_EOF >> "$cfgfile"
25969# AIX sometimes has problems with the GCC collect2 program.  For some
25970# reason, if we set the COLLECT_NAMES environment variable, the problems
25971# vanish in a puff of smoke.
25972if test set != "${COLLECT_NAMES+set}"; then
25973  COLLECT_NAMES=
25974  export COLLECT_NAMES
25975fi
25976_LT_EOF
25977    ;;
25978  esac
25979
25980
25981
25982ltmain=$ac_aux_dir/ltmain.sh
25983
25984
25985  # We use sed instead of cat because bash on DJGPP gets confused if
25986  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
25987  # text mode, it properly converts lines to CR/LF.  This bash problem
25988  # is reportedly fixed, but why not run on old versions too?
25989  $SED '$q' "$ltmain" >> "$cfgfile" \
25990     || (rm -f "$cfgfile"; exit 1)
25991
25992   mv -f "$cfgfile" "$ofile" ||
25993    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
25994  chmod +x "$ofile"
25995
25996 ;;
25997
25998  esac
25999done # for ac_tag
26000
26001
26002as_fn_exit 0
26003_ACEOF
26004ac_clean_files=$ac_clean_files_save
26005
26006test $ac_write_fail = 0 ||
26007  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
26008
26009
26010# configure is writing to config.log, and then calls config.status.
26011# config.status does its own redirection, appending to config.log.
26012# Unfortunately, on DOS this fails, as config.log is still kept open
26013# by configure, so config.status won't be able to write to it; its
26014# output is simply discarded.  So we exec the FD to /dev/null,
26015# effectively closing config.log, so it can be properly (re)opened and
26016# appended to by config.status.  When coming back to configure, we
26017# need to make the FD available again.
26018if test "$no_create" != yes; then
26019  ac_cs_success=:
26020  ac_config_status_args=
26021  test "$silent" = yes &&
26022    ac_config_status_args="$ac_config_status_args --quiet"
26023  exec 5>/dev/null
26024  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26025  exec 5>>config.log
26026  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26027  # would make configure fail if this is the last instruction.
26028  $ac_cs_success || as_fn_exit 1
26029fi
26030if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
26031  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
26032printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
26033fi
26034
26035
26036