VirtualBox

source: vbox/trunk/src/VBox/RDP/client/configure@ 49891

最後變更 在這個檔案從49891是 37224,由 vboxsync 提交於 14 年 前

RDP/client: fix OSE

  • 屬性 svn:eol-style 設為 LF
  • 屬性 svn:executable 設為 *
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 223.8 KB
 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for rdesktop 1.7.0.
4#
5#
6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8# Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
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 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139 emulate sh
140 NULLCMD=:
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
144 setopt NO_GLOB_SUBST
145else
146 case \`(set -o) 2>/dev/null\` in #(
147 *posix*) :
148 set -o posix ;; #(
149 *) :
150 ;;
151esac
152fi
153"
154 as_required="as_fn_return () { (exit \$1); }
155as_fn_success () { as_fn_return 0; }
156as_fn_failure () { as_fn_return 1; }
157as_fn_ret_success () { return 0; }
158as_fn_ret_failure () { return 1; }
159
160exitcode=0
161as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166
167else
168 exitcode=1; echo positional parameters were not saved.
169fi
170test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175test \$(( 1 + 1 )) = 2 || exit 1"
176 if (eval "$as_required") 2>/dev/null; then :
177 as_have_required=yes
178else
179 as_have_required=no
180fi
181 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182
183else
184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185as_found=false
186for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187do
188 IFS=$as_save_IFS
189 test -z "$as_dir" && as_dir=.
190 as_found=:
191 case $as_dir in #(
192 /*)
193 for as_base in sh bash ksh sh5; do
194 # Try only shells that exist, to save several forks.
195 as_shell=$as_dir/$as_base
196 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198 CONFIG_SHELL=$as_shell as_have_required=yes
199 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 break 2
201fi
202fi
203 done;;
204 esac
205 as_found=false
206done
207$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209 CONFIG_SHELL=$SHELL as_have_required=yes
210fi; }
211IFS=$as_save_IFS
212
213
214 if test "x$CONFIG_SHELL" != x; then :
215 # We cannot yet assume a decent shell, so we have to provide a
216 # neutralization value for shells without unset; and this also
217 # works around shells that cannot unset nonexistent variables.
218 # Preserve -v and -x to the replacement shell.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 case $- in # ((((
224 *v*x* | *x*v* ) as_opts=-vx ;;
225 *v* ) as_opts=-v ;;
226 *x* ) as_opts=-x ;;
227 * ) as_opts= ;;
228 esac
229 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
230fi
231
232 if test x$as_have_required = xno; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x${ZSH_VERSION+set} = xset ; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238 else
239 $as_echo "$0: Please tell [email protected] about your system,
240$0: including any error possibly output before this
241$0: message. Then install a modern shell, or manually run
242$0: the script under such a shell if you do have one."
243 fi
244 exit 1
245fi
246fi
247fi
248SHELL=${CONFIG_SHELL-/bin/sh}
249export SHELL
250# Unset more variables known to interfere with behavior of common tools.
251CLICOLOR_FORCE= GREP_OPTIONS=
252unset CLICOLOR_FORCE GREP_OPTIONS
253
254## --------------------- ##
255## M4sh Shell Functions. ##
256## --------------------- ##
257# as_fn_unset VAR
258# ---------------
259# Portably unset VAR.
260as_fn_unset ()
261{
262 { eval $1=; unset $1;}
263}
264as_unset=as_fn_unset
265
266# as_fn_set_status STATUS
267# -----------------------
268# Set $? to STATUS, without forking.
269as_fn_set_status ()
270{
271 return $1
272} # as_fn_set_status
273
274# as_fn_exit STATUS
275# -----------------
276# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
277as_fn_exit ()
278{
279 set +e
280 as_fn_set_status $1
281 exit $1
282} # as_fn_exit
283
284# as_fn_mkdir_p
285# -------------
286# Create "$as_dir" as a directory, including parents if necessary.
287as_fn_mkdir_p ()
288{
289
290 case $as_dir in #(
291 -*) as_dir=./$as_dir;;
292 esac
293 test -d "$as_dir" || eval $as_mkdir_p || {
294 as_dirs=
295 while :; do
296 case $as_dir in #(
297 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 *) as_qdir=$as_dir;;
299 esac
300 as_dirs="'$as_qdir' $as_dirs"
301 as_dir=`$as_dirname -- "$as_dir" ||
302$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303 X"$as_dir" : 'X\(//\)[^/]' \| \
304 X"$as_dir" : 'X\(//\)$' \| \
305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306$as_echo X"$as_dir" |
307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\/\)[^/].*/{
312 s//\1/
313 q
314 }
315 /^X\(\/\/\)$/{
316 s//\1/
317 q
318 }
319 /^X\(\/\).*/{
320 s//\1/
321 q
322 }
323 s/.*/./; q'`
324 test -d "$as_dir" && break
325 done
326 test -z "$as_dirs" || eval "mkdir $as_dirs"
327 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
328
329
330} # as_fn_mkdir_p
331# as_fn_append VAR VALUE
332# ----------------------
333# Append the text in VALUE to the end of the definition contained in VAR. Take
334# advantage of any shell optimizations that allow amortized linear growth over
335# repeated appends, instead of the typical quadratic growth present in naive
336# implementations.
337if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338 eval 'as_fn_append ()
339 {
340 eval $1+=\$2
341 }'
342else
343 as_fn_append ()
344 {
345 eval $1=\$$1\$2
346 }
347fi # as_fn_append
348
349# as_fn_arith ARG...
350# ------------------
351# Perform arithmetic evaluation on the ARGs, and store the result in the
352# global $as_val. Take advantage of shells that can avoid forks. The arguments
353# must be portable across $(()) and expr.
354if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355 eval 'as_fn_arith ()
356 {
357 as_val=$(( $* ))
358 }'
359else
360 as_fn_arith ()
361 {
362 as_val=`expr "$@" || test $? -eq 1`
363 }
364fi # as_fn_arith
365
366
367# as_fn_error STATUS ERROR [LINENO LOG_FD]
368# ----------------------------------------
369# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371# script with STATUS, using 1 if that was 0.
372as_fn_error ()
373{
374 as_status=$1; test $as_status -eq 0 && as_status=1
375 if test "$4"; then
376 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
378 fi
379 $as_echo "$as_me: error: $2" >&2
380 as_fn_exit $as_status
381} # as_fn_error
382
383if expr a : '\(a\)' >/dev/null 2>&1 &&
384 test "X`expr 00001 : '.*\(...\)'`" = X001; then
385 as_expr=expr
386else
387 as_expr=false
388fi
389
390if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391 as_basename=basename
392else
393 as_basename=false
394fi
395
396if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397 as_dirname=dirname
398else
399 as_dirname=false
400fi
401
402as_me=`$as_basename -- "$0" ||
403$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404 X"$0" : 'X\(//\)$' \| \
405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
406$as_echo X/"$0" |
407 sed '/^.*\/\([^/][^/]*\)\/*$/{
408 s//\1/
409 q
410 }
411 /^X\/\(\/\/\)$/{
412 s//\1/
413 q
414 }
415 /^X\/\(\/\).*/{
416 s//\1/
417 q
418 }
419 s/.*/./; q'`
420
421# Avoid depending upon Character Ranges.
422as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425as_cr_digits='0123456789'
426as_cr_alnum=$as_cr_Letters$as_cr_digits
427
428
429 as_lineno_1=$LINENO as_lineno_1a=$LINENO
430 as_lineno_2=$LINENO as_lineno_2a=$LINENO
431 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
434 sed -n '
435 p
436 /[$]LINENO/=
437 ' <$as_myself |
438 sed '
439 s/[$]LINENO.*/&-/
440 t lineno
441 b
442 :lineno
443 N
444 :loop
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446 t loop
447 s/-\n.*//
448 ' >$as_me.lineno &&
449 chmod +x "$as_me.lineno" ||
450 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
451
452 # Don't try to exec as it changes $[0], causing all sort of problems
453 # (the dirname of $[0] is not the place where we might find the
454 # original and so on. Autoconf is especially sensitive to this).
455 . "./$as_me.lineno"
456 # Exit status is that of the last command.
457 exit
458}
459
460ECHO_C= ECHO_N= ECHO_T=
461case `echo -n x` in #(((((
462-n*)
463 case `echo 'xy\c'` in
464 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
465 xy) ECHO_C='\c';;
466 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
467 ECHO_T=' ';;
468 esac;;
469*)
470 ECHO_N='-n';;
471esac
472
473rm -f conf$$ conf$$.exe conf$$.file
474if test -d conf$$.dir; then
475 rm -f conf$$.dir/conf$$.file
476else
477 rm -f conf$$.dir
478 mkdir conf$$.dir 2>/dev/null
479fi
480if (echo >conf$$.file) 2>/dev/null; then
481 if ln -s conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s='ln -s'
483 # ... but there are two gotchas:
484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486 # In both cases, we have to default to `cp -p'.
487 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
488 as_ln_s='cp -p'
489 elif ln conf$$.file conf$$ 2>/dev/null; then
490 as_ln_s=ln
491 else
492 as_ln_s='cp -p'
493 fi
494else
495 as_ln_s='cp -p'
496fi
497rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498rmdir conf$$.dir 2>/dev/null
499
500if mkdir -p . 2>/dev/null; then
501 as_mkdir_p='mkdir -p "$as_dir"'
502else
503 test -d ./-p && rmdir ./-p
504 as_mkdir_p=false
505fi
506
507if test -x / >/dev/null 2>&1; then
508 as_test_x='test -x'
509else
510 if ls -dL / >/dev/null 2>&1; then
511 as_ls_L_option=L
512 else
513 as_ls_L_option=
514 fi
515 as_test_x='
516 eval sh -c '\''
517 if test -d "$1"; then
518 test -d "$1/.";
519 else
520 case $1 in #(
521 -*)set "./$1";;
522 esac;
523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524 ???[sx]*):;;*)false;;esac;fi
525 '\'' sh
526 '
527fi
528as_executable_p=$as_test_x
529
530# Sed expression to map a string onto a valid CPP name.
531as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
532
533# Sed expression to map a string onto a valid variable name.
534as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
535
536
537test -n "$DJDIR" || exec 7<&0 </dev/null
538exec 6>&1
539
540# Name of the host.
541# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
542# so uname gets run too.
543ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
544
545#
546# Initializations.
547#
548ac_default_prefix=/usr/local
549ac_clean_files=
550ac_config_libobj_dir=.
551LIBOBJS=
552cross_compiling=no
553subdirs=
554MFLAGS=
555MAKEFLAGS=
556
557# Identity of this package.
558PACKAGE_NAME='rdesktop'
559PACKAGE_TARNAME='rdesktop'
560PACKAGE_VERSION='1.7.0'
561PACKAGE_STRING='rdesktop 1.7.0'
562PACKAGE_BUGREPORT=''
563PACKAGE_URL=''
564
565ac_unique_file="rdesktop.c"
566# Factoring default headers for most tests.
567ac_includes_default="\
568#include <stdio.h>
569#ifdef HAVE_SYS_TYPES_H
570# include <sys/types.h>
571#endif
572#ifdef HAVE_SYS_STAT_H
573# include <sys/stat.h>
574#endif
575#ifdef STDC_HEADERS
576# include <stdlib.h>
577# include <stddef.h>
578#else
579# ifdef HAVE_STDLIB_H
580# include <stdlib.h>
581# endif
582#endif
583#ifdef HAVE_STRING_H
584# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
585# include <memory.h>
586# endif
587# include <string.h>
588#endif
589#ifdef HAVE_STRINGS_H
590# include <strings.h>
591#endif
592#ifdef HAVE_INTTYPES_H
593# include <inttypes.h>
594#endif
595#ifdef HAVE_STDINT_H
596# include <stdint.h>
597#endif
598#ifdef HAVE_UNISTD_H
599# include <unistd.h>
600#endif"
601
602ac_subst_vars='LTLIBOBJS
603host_os
604host_vendor
605host_cpu
606host
607build_os
608build_vendor
609build_cpu
610build
611LIBICONV
612LIBOBJS
613SOUNDOBJ
614RDP2VNCTARGET
615VNCLINK
616LDVNC
617VNCINC
618SCARDOBJ
619ssldir
620STRIP
621PKG_CONFIG
622X_EXTRA_LIBS
623X_LIBS
624X_PRE_LIBS
625X_CFLAGS
626XMKMF
627EGREP
628GREP
629CPP
630INSTALL_DATA
631INSTALL_SCRIPT
632INSTALL_PROGRAM
633ac_ct_CXX
634CXXFLAGS
635CXX
636OBJEXT
637EXEEXT
638ac_ct_CC
639CPPFLAGS
640LDFLAGS
641CFLAGS
642CC
643target_alias
644host_alias
645build_alias
646LIBS
647ECHO_T
648ECHO_N
649ECHO_C
650DEFS
651mandir
652localedir
653libdir
654psdir
655pdfdir
656dvidir
657htmldir
658infodir
659docdir
660oldincludedir
661includedir
662localstatedir
663sharedstatedir
664sysconfdir
665datadir
666datarootdir
667libexecdir
668sbindir
669bindir
670program_transform_name
671prefix
672exec_prefix
673PACKAGE_URL
674PACKAGE_BUGREPORT
675PACKAGE_STRING
676PACKAGE_VERSION
677PACKAGE_TARNAME
678PACKAGE_NAME
679PATH_SEPARATOR
680SHELL'
681ac_subst_files=''
682ac_user_opts='
683enable_option_checking
684with_x
685with_openssl
686enable_static_openssl
687enable_smartcard
688with_egd_socket
689with_libvncserver_config
690with_libvncserver
691with_sound
692enable_static_libsamplerate
693with_libiconv_prefix
694enable_largefile
695with_ipv6
696with_debug
697with_debug_kbd
698with_debug_rdp5
699with_debug_clipboard
700with_debug_sound
701with_debug_channel
702with_debug_seamless
703with_debug_smartcard
704'
705 ac_precious_vars='build_alias
706host_alias
707target_alias
708CC
709CFLAGS
710LDFLAGS
711LIBS
712CPPFLAGS
713CXX
714CXXFLAGS
715CCC
716CPP
717XMKMF'
718
719
720# Initialize some variables set by options.
721ac_init_help=
722ac_init_version=false
723ac_unrecognized_opts=
724ac_unrecognized_sep=
725# The variables have the same names as the options, with
726# dashes changed to underlines.
727cache_file=/dev/null
728exec_prefix=NONE
729no_create=
730no_recursion=
731prefix=NONE
732program_prefix=NONE
733program_suffix=NONE
734program_transform_name=s,x,x,
735silent=
736site=
737srcdir=
738verbose=
739x_includes=NONE
740x_libraries=NONE
741
742# Installation directory options.
743# These are left unexpanded so users can "make install exec_prefix=/foo"
744# and all the variables that are supposed to be based on exec_prefix
745# by default will actually change.
746# Use braces instead of parens because sh, perl, etc. also accept them.
747# (The list follows the same order as the GNU Coding Standards.)
748bindir='${exec_prefix}/bin'
749sbindir='${exec_prefix}/sbin'
750libexecdir='${exec_prefix}/libexec'
751datarootdir='${prefix}/share'
752datadir='${datarootdir}'
753sysconfdir='${prefix}/etc'
754sharedstatedir='${prefix}/com'
755localstatedir='${prefix}/var'
756includedir='${prefix}/include'
757oldincludedir='/usr/include'
758docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
759infodir='${datarootdir}/info'
760htmldir='${docdir}'
761dvidir='${docdir}'
762pdfdir='${docdir}'
763psdir='${docdir}'
764libdir='${exec_prefix}/lib'
765localedir='${datarootdir}/locale'
766mandir='${datarootdir}/man'
767
768ac_prev=
769ac_dashdash=
770for ac_option
771do
772 # If the previous option needs an argument, assign it.
773 if test -n "$ac_prev"; then
774 eval $ac_prev=\$ac_option
775 ac_prev=
776 continue
777 fi
778
779 case $ac_option in
780 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
781 *=) ac_optarg= ;;
782 *) ac_optarg=yes ;;
783 esac
784
785 # Accept the important Cygnus configure options, so we can diagnose typos.
786
787 case $ac_dashdash$ac_option in
788 --)
789 ac_dashdash=yes ;;
790
791 -bindir | --bindir | --bindi | --bind | --bin | --bi)
792 ac_prev=bindir ;;
793 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
794 bindir=$ac_optarg ;;
795
796 -build | --build | --buil | --bui | --bu)
797 ac_prev=build_alias ;;
798 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
799 build_alias=$ac_optarg ;;
800
801 -cache-file | --cache-file | --cache-fil | --cache-fi \
802 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
803 ac_prev=cache_file ;;
804 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
805 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
806 cache_file=$ac_optarg ;;
807
808 --config-cache | -C)
809 cache_file=config.cache ;;
810
811 -datadir | --datadir | --datadi | --datad)
812 ac_prev=datadir ;;
813 -datadir=* | --datadir=* | --datadi=* | --datad=*)
814 datadir=$ac_optarg ;;
815
816 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
817 | --dataroo | --dataro | --datar)
818 ac_prev=datarootdir ;;
819 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
820 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
821 datarootdir=$ac_optarg ;;
822
823 -disable-* | --disable-*)
824 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
825 # Reject names that are not valid shell variable names.
826 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
827 as_fn_error $? "invalid feature name: $ac_useropt"
828 ac_useropt_orig=$ac_useropt
829 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
830 case $ac_user_opts in
831 *"
832"enable_$ac_useropt"
833"*) ;;
834 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
835 ac_unrecognized_sep=', ';;
836 esac
837 eval enable_$ac_useropt=no ;;
838
839 -docdir | --docdir | --docdi | --doc | --do)
840 ac_prev=docdir ;;
841 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
842 docdir=$ac_optarg ;;
843
844 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
845 ac_prev=dvidir ;;
846 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
847 dvidir=$ac_optarg ;;
848
849 -enable-* | --enable-*)
850 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
851 # Reject names that are not valid shell variable names.
852 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
853 as_fn_error $? "invalid feature name: $ac_useropt"
854 ac_useropt_orig=$ac_useropt
855 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
856 case $ac_user_opts in
857 *"
858"enable_$ac_useropt"
859"*) ;;
860 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
861 ac_unrecognized_sep=', ';;
862 esac
863 eval enable_$ac_useropt=\$ac_optarg ;;
864
865 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
866 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
867 | --exec | --exe | --ex)
868 ac_prev=exec_prefix ;;
869 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
870 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
871 | --exec=* | --exe=* | --ex=*)
872 exec_prefix=$ac_optarg ;;
873
874 -gas | --gas | --ga | --g)
875 # Obsolete; use --with-gas.
876 with_gas=yes ;;
877
878 -help | --help | --hel | --he | -h)
879 ac_init_help=long ;;
880 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
881 ac_init_help=recursive ;;
882 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
883 ac_init_help=short ;;
884
885 -host | --host | --hos | --ho)
886 ac_prev=host_alias ;;
887 -host=* | --host=* | --hos=* | --ho=*)
888 host_alias=$ac_optarg ;;
889
890 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
891 ac_prev=htmldir ;;
892 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
893 | --ht=*)
894 htmldir=$ac_optarg ;;
895
896 -includedir | --includedir | --includedi | --included | --include \
897 | --includ | --inclu | --incl | --inc)
898 ac_prev=includedir ;;
899 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
900 | --includ=* | --inclu=* | --incl=* | --inc=*)
901 includedir=$ac_optarg ;;
902
903 -infodir | --infodir | --infodi | --infod | --info | --inf)
904 ac_prev=infodir ;;
905 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
906 infodir=$ac_optarg ;;
907
908 -libdir | --libdir | --libdi | --libd)
909 ac_prev=libdir ;;
910 -libdir=* | --libdir=* | --libdi=* | --libd=*)
911 libdir=$ac_optarg ;;
912
913 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
914 | --libexe | --libex | --libe)
915 ac_prev=libexecdir ;;
916 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
917 | --libexe=* | --libex=* | --libe=*)
918 libexecdir=$ac_optarg ;;
919
920 -localedir | --localedir | --localedi | --localed | --locale)
921 ac_prev=localedir ;;
922 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
923 localedir=$ac_optarg ;;
924
925 -localstatedir | --localstatedir | --localstatedi | --localstated \
926 | --localstate | --localstat | --localsta | --localst | --locals)
927 ac_prev=localstatedir ;;
928 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
929 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
930 localstatedir=$ac_optarg ;;
931
932 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
933 ac_prev=mandir ;;
934 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
935 mandir=$ac_optarg ;;
936
937 -nfp | --nfp | --nf)
938 # Obsolete; use --without-fp.
939 with_fp=no ;;
940
941 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
942 | --no-cr | --no-c | -n)
943 no_create=yes ;;
944
945 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
946 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
947 no_recursion=yes ;;
948
949 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
950 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
951 | --oldin | --oldi | --old | --ol | --o)
952 ac_prev=oldincludedir ;;
953 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
954 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
955 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
956 oldincludedir=$ac_optarg ;;
957
958 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
959 ac_prev=prefix ;;
960 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
961 prefix=$ac_optarg ;;
962
963 -program-prefix | --program-prefix | --program-prefi | --program-pref \
964 | --program-pre | --program-pr | --program-p)
965 ac_prev=program_prefix ;;
966 -program-prefix=* | --program-prefix=* | --program-prefi=* \
967 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
968 program_prefix=$ac_optarg ;;
969
970 -program-suffix | --program-suffix | --program-suffi | --program-suff \
971 | --program-suf | --program-su | --program-s)
972 ac_prev=program_suffix ;;
973 -program-suffix=* | --program-suffix=* | --program-suffi=* \
974 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
975 program_suffix=$ac_optarg ;;
976
977 -program-transform-name | --program-transform-name \
978 | --program-transform-nam | --program-transform-na \
979 | --program-transform-n | --program-transform- \
980 | --program-transform | --program-transfor \
981 | --program-transfo | --program-transf \
982 | --program-trans | --program-tran \
983 | --progr-tra | --program-tr | --program-t)
984 ac_prev=program_transform_name ;;
985 -program-transform-name=* | --program-transform-name=* \
986 | --program-transform-nam=* | --program-transform-na=* \
987 | --program-transform-n=* | --program-transform-=* \
988 | --program-transform=* | --program-transfor=* \
989 | --program-transfo=* | --program-transf=* \
990 | --program-trans=* | --program-tran=* \
991 | --progr-tra=* | --program-tr=* | --program-t=*)
992 program_transform_name=$ac_optarg ;;
993
994 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
995 ac_prev=pdfdir ;;
996 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
997 pdfdir=$ac_optarg ;;
998
999 -psdir | --psdir | --psdi | --psd | --ps)
1000 ac_prev=psdir ;;
1001 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1002 psdir=$ac_optarg ;;
1003
1004 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1005 | -silent | --silent | --silen | --sile | --sil)
1006 silent=yes ;;
1007
1008 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1009 ac_prev=sbindir ;;
1010 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1011 | --sbi=* | --sb=*)
1012 sbindir=$ac_optarg ;;
1013
1014 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1015 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1016 | --sharedst | --shareds | --shared | --share | --shar \
1017 | --sha | --sh)
1018 ac_prev=sharedstatedir ;;
1019 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1020 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1021 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1022 | --sha=* | --sh=*)
1023 sharedstatedir=$ac_optarg ;;
1024
1025 -site | --site | --sit)
1026 ac_prev=site ;;
1027 -site=* | --site=* | --sit=*)
1028 site=$ac_optarg ;;
1029
1030 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1031 ac_prev=srcdir ;;
1032 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1033 srcdir=$ac_optarg ;;
1034
1035 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1036 | --syscon | --sysco | --sysc | --sys | --sy)
1037 ac_prev=sysconfdir ;;
1038 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1039 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1040 sysconfdir=$ac_optarg ;;
1041
1042 -target | --target | --targe | --targ | --tar | --ta | --t)
1043 ac_prev=target_alias ;;
1044 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1045 target_alias=$ac_optarg ;;
1046
1047 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1048 verbose=yes ;;
1049
1050 -version | --version | --versio | --versi | --vers | -V)
1051 ac_init_version=: ;;
1052
1053 -with-* | --with-*)
1054 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1055 # Reject names that are not valid shell variable names.
1056 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1057 as_fn_error $? "invalid package name: $ac_useropt"
1058 ac_useropt_orig=$ac_useropt
1059 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1060 case $ac_user_opts in
1061 *"
1062"with_$ac_useropt"
1063"*) ;;
1064 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1065 ac_unrecognized_sep=', ';;
1066 esac
1067 eval with_$ac_useropt=\$ac_optarg ;;
1068
1069 -without-* | --without-*)
1070 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1071 # Reject names that are not valid shell variable names.
1072 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1073 as_fn_error $? "invalid package name: $ac_useropt"
1074 ac_useropt_orig=$ac_useropt
1075 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1076 case $ac_user_opts in
1077 *"
1078"with_$ac_useropt"
1079"*) ;;
1080 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1081 ac_unrecognized_sep=', ';;
1082 esac
1083 eval with_$ac_useropt=no ;;
1084
1085 --x)
1086 # Obsolete; use --with-x.
1087 with_x=yes ;;
1088
1089 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1090 | --x-incl | --x-inc | --x-in | --x-i)
1091 ac_prev=x_includes ;;
1092 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1093 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1094 x_includes=$ac_optarg ;;
1095
1096 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1097 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1098 ac_prev=x_libraries ;;
1099 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1100 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1101 x_libraries=$ac_optarg ;;
1102
1103 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1104Try \`$0 --help' for more information"
1105 ;;
1106
1107 *=*)
1108 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1109 # Reject names that are not valid shell variable names.
1110 case $ac_envvar in #(
1111 '' | [0-9]* | *[!_$as_cr_alnum]* )
1112 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1113 esac
1114 eval $ac_envvar=\$ac_optarg
1115 export $ac_envvar ;;
1116
1117 *)
1118 # FIXME: should be removed in autoconf 3.0.
1119 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1120 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1121 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1122 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1123 ;;
1124
1125 esac
1126done
1127
1128if test -n "$ac_prev"; then
1129 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1130 as_fn_error $? "missing argument to $ac_option"
1131fi
1132
1133if test -n "$ac_unrecognized_opts"; then
1134 case $enable_option_checking in
1135 no) ;;
1136 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1137 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1138 esac
1139fi
1140
1141# Check all directory arguments for consistency.
1142for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1143 datadir sysconfdir sharedstatedir localstatedir includedir \
1144 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1145 libdir localedir mandir
1146do
1147 eval ac_val=\$$ac_var
1148 # Remove trailing slashes.
1149 case $ac_val in
1150 */ )
1151 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1152 eval $ac_var=\$ac_val;;
1153 esac
1154 # Be sure to have absolute directory names.
1155 case $ac_val in
1156 [\\/$]* | ?:[\\/]* ) continue;;
1157 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1158 esac
1159 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1160done
1161
1162# There might be people who depend on the old broken behavior: `$host'
1163# used to hold the argument of --host etc.
1164# FIXME: To remove some day.
1165build=$build_alias
1166host=$host_alias
1167target=$target_alias
1168
1169# FIXME: To remove some day.
1170if test "x$host_alias" != x; then
1171 if test "x$build_alias" = x; then
1172 cross_compiling=maybe
1173 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1174 If a cross compiler is detected then cross compile mode will be used" >&2
1175 elif test "x$build_alias" != "x$host_alias"; then
1176 cross_compiling=yes
1177 fi
1178fi
1179
1180ac_tool_prefix=
1181test -n "$host_alias" && ac_tool_prefix=$host_alias-
1182
1183test "$silent" = yes && exec 6>/dev/null
1184
1185
1186ac_pwd=`pwd` && test -n "$ac_pwd" &&
1187ac_ls_di=`ls -di .` &&
1188ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1189 as_fn_error $? "working directory cannot be determined"
1190test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1191 as_fn_error $? "pwd does not report name of working directory"
1192
1193
1194# Find the source files, if location was not specified.
1195if test -z "$srcdir"; then
1196 ac_srcdir_defaulted=yes
1197 # Try the directory containing this script, then the parent directory.
1198 ac_confdir=`$as_dirname -- "$as_myself" ||
1199$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1200 X"$as_myself" : 'X\(//\)[^/]' \| \
1201 X"$as_myself" : 'X\(//\)$' \| \
1202 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1203$as_echo X"$as_myself" |
1204 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1205 s//\1/
1206 q
1207 }
1208 /^X\(\/\/\)[^/].*/{
1209 s//\1/
1210 q
1211 }
1212 /^X\(\/\/\)$/{
1213 s//\1/
1214 q
1215 }
1216 /^X\(\/\).*/{
1217 s//\1/
1218 q
1219 }
1220 s/.*/./; q'`
1221 srcdir=$ac_confdir
1222 if test ! -r "$srcdir/$ac_unique_file"; then
1223 srcdir=..
1224 fi
1225else
1226 ac_srcdir_defaulted=no
1227fi
1228if test ! -r "$srcdir/$ac_unique_file"; then
1229 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1230 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1231fi
1232ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1233ac_abs_confdir=`(
1234 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1235 pwd)`
1236# When building in place, set srcdir=.
1237if test "$ac_abs_confdir" = "$ac_pwd"; then
1238 srcdir=.
1239fi
1240# Remove unnecessary trailing slashes from srcdir.
1241# Double slashes in file names in object file debugging info
1242# mess up M-x gdb in Emacs.
1243case $srcdir in
1244*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1245esac
1246for ac_var in $ac_precious_vars; do
1247 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1248 eval ac_env_${ac_var}_value=\$${ac_var}
1249 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1250 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1251done
1252
1253#
1254# Report the --help message.
1255#
1256if test "$ac_init_help" = "long"; then
1257 # Omit some internal or obsolete options to make the list less imposing.
1258 # This message is too long to be a string in the A/UX 3.1 sh.
1259 cat <<_ACEOF
1260\`configure' configures rdesktop 1.7.0 to adapt to many kinds of systems.
1261
1262Usage: $0 [OPTION]... [VAR=VALUE]...
1263
1264To assign environment variables (e.g., CC, CFLAGS...), specify them as
1265VAR=VALUE. See below for descriptions of some of the useful variables.
1266
1267Defaults for the options are specified in brackets.
1268
1269Configuration:
1270 -h, --help display this help and exit
1271 --help=short display options specific to this package
1272 --help=recursive display the short help of all the included packages
1273 -V, --version display version information and exit
1274 -q, --quiet, --silent do not print \`checking ...' messages
1275 --cache-file=FILE cache test results in FILE [disabled]
1276 -C, --config-cache alias for \`--cache-file=config.cache'
1277 -n, --no-create do not create output files
1278 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1279
1280Installation directories:
1281 --prefix=PREFIX install architecture-independent files in PREFIX
1282 [$ac_default_prefix]
1283 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1284 [PREFIX]
1285
1286By default, \`make install' will install all the files in
1287\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1288an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1289for instance \`--prefix=\$HOME'.
1290
1291For better control, use the options below.
1292
1293Fine tuning of the installation directories:
1294 --bindir=DIR user executables [EPREFIX/bin]
1295 --sbindir=DIR system admin executables [EPREFIX/sbin]
1296 --libexecdir=DIR program executables [EPREFIX/libexec]
1297 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1298 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1299 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1300 --libdir=DIR object code libraries [EPREFIX/lib]
1301 --includedir=DIR C header files [PREFIX/include]
1302 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1303 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1304 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1305 --infodir=DIR info documentation [DATAROOTDIR/info]
1306 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1307 --mandir=DIR man documentation [DATAROOTDIR/man]
1308 --docdir=DIR documentation root [DATAROOTDIR/doc/rdesktop]
1309 --htmldir=DIR html documentation [DOCDIR]
1310 --dvidir=DIR dvi documentation [DOCDIR]
1311 --pdfdir=DIR pdf documentation [DOCDIR]
1312 --psdir=DIR ps documentation [DOCDIR]
1313_ACEOF
1314
1315 cat <<\_ACEOF
1316
1317X features:
1318 --x-includes=DIR X include files are in DIR
1319 --x-libraries=DIR X library files are in DIR
1320
1321System types:
1322 --build=BUILD configure for building on BUILD [guessed]
1323 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1324_ACEOF
1325fi
1326
1327if test -n "$ac_init_help"; then
1328 case $ac_init_help in
1329 short | recursive ) echo "Configuration of rdesktop 1.7.0:";;
1330 esac
1331 cat <<\_ACEOF
1332
1333Optional Features:
1334 --disable-option-checking ignore unrecognized --enable/--with options
1335 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1336 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1337 --enable-static-openssl link OpenSSL statically
1338 --enable-smartcard Enables smart-card support.
1339
1340 --enable-static-libsamplerate link libsamplerate statically
1341 --disable-largefile omit support for large files
1342
1343Optional Packages:
1344 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1345 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1346 --with-x use the X Window System
1347 --with-openssl=DIR look for OpenSSL at DIR/include, DIR/lib
1348 --with-egd-socket=PATH look for Entropy Gathering Daemon socket at PATH
1349 --with-libvncserver-config=CMD use CMD as libvncserver-config
1350 --with-libvncserver make rdp2vnc
1351 --with-sound select sound system ("oss", "sgi", "sun", "alsa" or "libao")
1352 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1353 --with-ipv6 enable IPv6-support
1354 --with-debug enable protocol debugging output
1355 --with-debug-kbd enable debugging of keyboard handling
1356 --with-debug-rdp5 enable debugging of RDP5 code
1357 --with-debug-clipboard enable debugging of clipboard code
1358 --with-debug-sound enable debugging of sound code
1359 --with-debug-channel enable debugging of virtual channel code
1360 --with-debug-seamless enable debugging of SeamlessRDP code
1361 --with-debug-smartcard enable debugging of smart-card code
1362
1363Some influential environment variables:
1364 CC C compiler command
1365 CFLAGS C compiler flags
1366 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1367 nonstandard directory <lib dir>
1368 LIBS libraries to pass to the linker, e.g. -l<library>
1369 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1370 you have headers in a nonstandard directory <include dir>
1371 CXX C++ compiler command
1372 CXXFLAGS C++ compiler flags
1373 CPP C preprocessor
1374 XMKMF Path to xmkmf, Makefile generator for X Window System
1375
1376Use these variables to override the choices made by `configure' or to help
1377it to find libraries and programs with nonstandard names/locations.
1378
1379Report bugs to the package provider.
1380_ACEOF
1381ac_status=$?
1382fi
1383
1384if test "$ac_init_help" = "recursive"; then
1385 # If there are subdirs, report their specific --help.
1386 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1387 test -d "$ac_dir" ||
1388 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1389 continue
1390 ac_builddir=.
1391
1392case "$ac_dir" in
1393.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1394*)
1395 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1396 # A ".." for each directory in $ac_dir_suffix.
1397 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1398 case $ac_top_builddir_sub in
1399 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1400 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1401 esac ;;
1402esac
1403ac_abs_top_builddir=$ac_pwd
1404ac_abs_builddir=$ac_pwd$ac_dir_suffix
1405# for backward compatibility:
1406ac_top_builddir=$ac_top_build_prefix
1407
1408case $srcdir in
1409 .) # We are building in place.
1410 ac_srcdir=.
1411 ac_top_srcdir=$ac_top_builddir_sub
1412 ac_abs_top_srcdir=$ac_pwd ;;
1413 [\\/]* | ?:[\\/]* ) # Absolute name.
1414 ac_srcdir=$srcdir$ac_dir_suffix;
1415 ac_top_srcdir=$srcdir
1416 ac_abs_top_srcdir=$srcdir ;;
1417 *) # Relative name.
1418 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1419 ac_top_srcdir=$ac_top_build_prefix$srcdir
1420 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1421esac
1422ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1423
1424 cd "$ac_dir" || { ac_status=$?; continue; }
1425 # Check for guested configure.
1426 if test -f "$ac_srcdir/configure.gnu"; then
1427 echo &&
1428 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1429 elif test -f "$ac_srcdir/configure"; then
1430 echo &&
1431 $SHELL "$ac_srcdir/configure" --help=recursive
1432 else
1433 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1434 fi || ac_status=$?
1435 cd "$ac_pwd" || { ac_status=$?; break; }
1436 done
1437fi
1438
1439test -n "$ac_init_help" && exit $ac_status
1440if $ac_init_version; then
1441 cat <<\_ACEOF
1442rdesktop configure 1.7.0
1443generated by GNU Autoconf 2.68
1444
1445Copyright (C) 2010 Free Software Foundation, Inc.
1446This configure script is free software; the Free Software Foundation
1447gives unlimited permission to copy, distribute and modify it.
1448_ACEOF
1449 exit
1450fi
1451
1452## ------------------------ ##
1453## Autoconf initialization. ##
1454## ------------------------ ##
1455
1456# ac_fn_c_try_compile LINENO
1457# --------------------------
1458# Try to compile conftest.$ac_ext, and return whether this succeeded.
1459ac_fn_c_try_compile ()
1460{
1461 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1462 rm -f conftest.$ac_objext
1463 if { { ac_try="$ac_compile"
1464case "(($ac_try" in
1465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1466 *) ac_try_echo=$ac_try;;
1467esac
1468eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1469$as_echo "$ac_try_echo"; } >&5
1470 (eval "$ac_compile") 2>conftest.err
1471 ac_status=$?
1472 if test -s conftest.err; then
1473 grep -v '^ *+' conftest.err >conftest.er1
1474 cat conftest.er1 >&5
1475 mv -f conftest.er1 conftest.err
1476 fi
1477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1478 test $ac_status = 0; } && {
1479 test -z "$ac_c_werror_flag" ||
1480 test ! -s conftest.err
1481 } && test -s conftest.$ac_objext; then :
1482 ac_retval=0
1483else
1484 $as_echo "$as_me: failed program was:" >&5
1485sed 's/^/| /' conftest.$ac_ext >&5
1486
1487 ac_retval=1
1488fi
1489 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1490 as_fn_set_status $ac_retval
1491
1492} # ac_fn_c_try_compile
1493
1494# ac_fn_cxx_try_compile LINENO
1495# ----------------------------
1496# Try to compile conftest.$ac_ext, and return whether this succeeded.
1497ac_fn_cxx_try_compile ()
1498{
1499 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1500 rm -f conftest.$ac_objext
1501 if { { ac_try="$ac_compile"
1502case "(($ac_try" in
1503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1504 *) ac_try_echo=$ac_try;;
1505esac
1506eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1507$as_echo "$ac_try_echo"; } >&5
1508 (eval "$ac_compile") 2>conftest.err
1509 ac_status=$?
1510 if test -s conftest.err; then
1511 grep -v '^ *+' conftest.err >conftest.er1
1512 cat conftest.er1 >&5
1513 mv -f conftest.er1 conftest.err
1514 fi
1515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1516 test $ac_status = 0; } && {
1517 test -z "$ac_cxx_werror_flag" ||
1518 test ! -s conftest.err
1519 } && test -s conftest.$ac_objext; then :
1520 ac_retval=0
1521else
1522 $as_echo "$as_me: failed program was:" >&5
1523sed 's/^/| /' conftest.$ac_ext >&5
1524
1525 ac_retval=1
1526fi
1527 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1528 as_fn_set_status $ac_retval
1529
1530} # ac_fn_cxx_try_compile
1531
1532# ac_fn_c_try_cpp LINENO
1533# ----------------------
1534# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1535ac_fn_c_try_cpp ()
1536{
1537 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1538 if { { ac_try="$ac_cpp conftest.$ac_ext"
1539case "(($ac_try" in
1540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1541 *) ac_try_echo=$ac_try;;
1542esac
1543eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1544$as_echo "$ac_try_echo"; } >&5
1545 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1546 ac_status=$?
1547 if test -s conftest.err; then
1548 grep -v '^ *+' conftest.err >conftest.er1
1549 cat conftest.er1 >&5
1550 mv -f conftest.er1 conftest.err
1551 fi
1552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1553 test $ac_status = 0; } > conftest.i && {
1554 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1555 test ! -s conftest.err
1556 }; then :
1557 ac_retval=0
1558else
1559 $as_echo "$as_me: failed program was:" >&5
1560sed 's/^/| /' conftest.$ac_ext >&5
1561
1562 ac_retval=1
1563fi
1564 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1565 as_fn_set_status $ac_retval
1566
1567} # ac_fn_c_try_cpp
1568
1569# ac_fn_c_try_run LINENO
1570# ----------------------
1571# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1572# that executables *can* be run.
1573ac_fn_c_try_run ()
1574{
1575 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1576 if { { ac_try="$ac_link"
1577case "(($ac_try" in
1578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1579 *) ac_try_echo=$ac_try;;
1580esac
1581eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1582$as_echo "$ac_try_echo"; } >&5
1583 (eval "$ac_link") 2>&5
1584 ac_status=$?
1585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1586 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1587 { { case "(($ac_try" in
1588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1589 *) ac_try_echo=$ac_try;;
1590esac
1591eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1592$as_echo "$ac_try_echo"; } >&5
1593 (eval "$ac_try") 2>&5
1594 ac_status=$?
1595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1596 test $ac_status = 0; }; }; then :
1597 ac_retval=0
1598else
1599 $as_echo "$as_me: program exited with status $ac_status" >&5
1600 $as_echo "$as_me: failed program was:" >&5
1601sed 's/^/| /' conftest.$ac_ext >&5
1602
1603 ac_retval=$ac_status
1604fi
1605 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1606 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1607 as_fn_set_status $ac_retval
1608
1609} # ac_fn_c_try_run
1610
1611# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1612# -------------------------------------------------------
1613# Tests whether HEADER exists and can be compiled using the include files in
1614# INCLUDES, setting the cache variable VAR accordingly.
1615ac_fn_c_check_header_compile ()
1616{
1617 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1619$as_echo_n "checking for $2... " >&6; }
1620if eval \${$3+:} false; then :
1621 $as_echo_n "(cached) " >&6
1622else
1623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1624/* end confdefs.h. */
1625$4
1626#include <$2>
1627_ACEOF
1628if ac_fn_c_try_compile "$LINENO"; then :
1629 eval "$3=yes"
1630else
1631 eval "$3=no"
1632fi
1633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1634fi
1635eval ac_res=\$$3
1636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1637$as_echo "$ac_res" >&6; }
1638 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1639
1640} # ac_fn_c_check_header_compile
1641
1642# ac_fn_c_try_link LINENO
1643# -----------------------
1644# Try to link conftest.$ac_ext, and return whether this succeeded.
1645ac_fn_c_try_link ()
1646{
1647 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1648 rm -f conftest.$ac_objext conftest$ac_exeext
1649 if { { ac_try="$ac_link"
1650case "(($ac_try" in
1651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1652 *) ac_try_echo=$ac_try;;
1653esac
1654eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1655$as_echo "$ac_try_echo"; } >&5
1656 (eval "$ac_link") 2>conftest.err
1657 ac_status=$?
1658 if test -s conftest.err; then
1659 grep -v '^ *+' conftest.err >conftest.er1
1660 cat conftest.er1 >&5
1661 mv -f conftest.er1 conftest.err
1662 fi
1663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1664 test $ac_status = 0; } && {
1665 test -z "$ac_c_werror_flag" ||
1666 test ! -s conftest.err
1667 } && test -s conftest$ac_exeext && {
1668 test "$cross_compiling" = yes ||
1669 $as_test_x conftest$ac_exeext
1670 }; then :
1671 ac_retval=0
1672else
1673 $as_echo "$as_me: failed program was:" >&5
1674sed 's/^/| /' conftest.$ac_ext >&5
1675
1676 ac_retval=1
1677fi
1678 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1679 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1680 # interfere with the next link command; also delete a directory that is
1681 # left behind by Apple's compiler. We do this before executing the actions.
1682 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1683 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1684 as_fn_set_status $ac_retval
1685
1686} # ac_fn_c_try_link
1687
1688# ac_fn_c_check_func LINENO FUNC VAR
1689# ----------------------------------
1690# Tests whether FUNC exists, setting the cache variable VAR accordingly
1691ac_fn_c_check_func ()
1692{
1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1695$as_echo_n "checking for $2... " >&6; }
1696if eval \${$3+:} false; then :
1697 $as_echo_n "(cached) " >&6
1698else
1699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1700/* end confdefs.h. */
1701/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1702 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1703#define $2 innocuous_$2
1704
1705/* System header to define __stub macros and hopefully few prototypes,
1706 which can conflict with char $2 (); below.
1707 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1708 <limits.h> exists even on freestanding compilers. */
1709
1710#ifdef __STDC__
1711# include <limits.h>
1712#else
1713# include <assert.h>
1714#endif
1715
1716#undef $2
1717
1718/* Override any GCC internal prototype to avoid an error.
1719 Use char because int might match the return type of a GCC
1720 builtin and then its argument prototype would still apply. */
1721#ifdef __cplusplus
1722extern "C"
1723#endif
1724char $2 ();
1725/* The GNU C library defines this for functions which it implements
1726 to always fail with ENOSYS. Some functions are actually named
1727 something starting with __ and the normal name is an alias. */
1728#if defined __stub_$2 || defined __stub___$2
1729choke me
1730#endif
1731
1732int
1733main ()
1734{
1735return $2 ();
1736 ;
1737 return 0;
1738}
1739_ACEOF
1740if ac_fn_c_try_link "$LINENO"; then :
1741 eval "$3=yes"
1742else
1743 eval "$3=no"
1744fi
1745rm -f core conftest.err conftest.$ac_objext \
1746 conftest$ac_exeext conftest.$ac_ext
1747fi
1748eval ac_res=\$$3
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1750$as_echo "$ac_res" >&6; }
1751 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1752
1753} # ac_fn_c_check_func
1754
1755# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1756# -------------------------------------------------------
1757# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1758# the include files in INCLUDES and setting the cache variable VAR
1759# accordingly.
1760ac_fn_c_check_header_mongrel ()
1761{
1762 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763 if eval \${$3+:} false; then :
1764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1765$as_echo_n "checking for $2... " >&6; }
1766if eval \${$3+:} false; then :
1767 $as_echo_n "(cached) " >&6
1768fi
1769eval ac_res=\$$3
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1771$as_echo "$ac_res" >&6; }
1772else
1773 # Is the header compilable?
1774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1775$as_echo_n "checking $2 usability... " >&6; }
1776cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1777/* end confdefs.h. */
1778$4
1779#include <$2>
1780_ACEOF
1781if ac_fn_c_try_compile "$LINENO"; then :
1782 ac_header_compiler=yes
1783else
1784 ac_header_compiler=no
1785fi
1786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1788$as_echo "$ac_header_compiler" >&6; }
1789
1790# Is the header present?
1791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1792$as_echo_n "checking $2 presence... " >&6; }
1793cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1794/* end confdefs.h. */
1795#include <$2>
1796_ACEOF
1797if ac_fn_c_try_cpp "$LINENO"; then :
1798 ac_header_preproc=yes
1799else
1800 ac_header_preproc=no
1801fi
1802rm -f conftest.err conftest.i conftest.$ac_ext
1803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1804$as_echo "$ac_header_preproc" >&6; }
1805
1806# So? What about this header?
1807case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1808 yes:no: )
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1810$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1812$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1813 ;;
1814 no:yes:* )
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1816$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1818$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1820$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1822$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1824$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1825 ;;
1826esac
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1828$as_echo_n "checking for $2... " >&6; }
1829if eval \${$3+:} false; then :
1830 $as_echo_n "(cached) " >&6
1831else
1832 eval "$3=\$ac_header_compiler"
1833fi
1834eval ac_res=\$$3
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1836$as_echo "$ac_res" >&6; }
1837fi
1838 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1839
1840} # ac_fn_c_check_header_mongrel
1841
1842# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1843# ---------------------------------------------
1844# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1845# accordingly.
1846ac_fn_c_check_decl ()
1847{
1848 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1849 as_decl_name=`echo $2|sed 's/ *(.*//'`
1850 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1852$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1853if eval \${$3+:} false; then :
1854 $as_echo_n "(cached) " >&6
1855else
1856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1857/* end confdefs.h. */
1858$4
1859int
1860main ()
1861{
1862#ifndef $as_decl_name
1863#ifdef __cplusplus
1864 (void) $as_decl_use;
1865#else
1866 (void) $as_decl_name;
1867#endif
1868#endif
1869
1870 ;
1871 return 0;
1872}
1873_ACEOF
1874if ac_fn_c_try_compile "$LINENO"; then :
1875 eval "$3=yes"
1876else
1877 eval "$3=no"
1878fi
1879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1880fi
1881eval ac_res=\$$3
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1883$as_echo "$ac_res" >&6; }
1884 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1885
1886} # ac_fn_c_check_decl
1887
1888# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1889# -------------------------------------------
1890# Tests whether TYPE exists after having included INCLUDES, setting cache
1891# variable VAR accordingly.
1892ac_fn_c_check_type ()
1893{
1894 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1896$as_echo_n "checking for $2... " >&6; }
1897if eval \${$3+:} false; then :
1898 $as_echo_n "(cached) " >&6
1899else
1900 eval "$3=no"
1901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1902/* end confdefs.h. */
1903$4
1904int
1905main ()
1906{
1907if (sizeof ($2))
1908 return 0;
1909 ;
1910 return 0;
1911}
1912_ACEOF
1913if ac_fn_c_try_compile "$LINENO"; then :
1914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1915/* end confdefs.h. */
1916$4
1917int
1918main ()
1919{
1920if (sizeof (($2)))
1921 return 0;
1922 ;
1923 return 0;
1924}
1925_ACEOF
1926if ac_fn_c_try_compile "$LINENO"; then :
1927
1928else
1929 eval "$3=yes"
1930fi
1931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1932fi
1933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1934fi
1935eval ac_res=\$$3
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1937$as_echo "$ac_res" >&6; }
1938 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1939
1940} # ac_fn_c_check_type
1941
1942# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1943# ----------------------------------------------------
1944# Tries to find if the field MEMBER exists in type AGGR, after including
1945# INCLUDES, setting cache variable VAR accordingly.
1946ac_fn_c_check_member ()
1947{
1948 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1950$as_echo_n "checking for $2.$3... " >&6; }
1951if eval \${$4+:} false; then :
1952 $as_echo_n "(cached) " >&6
1953else
1954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1955/* end confdefs.h. */
1956$5
1957int
1958main ()
1959{
1960static $2 ac_aggr;
1961if (ac_aggr.$3)
1962return 0;
1963 ;
1964 return 0;
1965}
1966_ACEOF
1967if ac_fn_c_try_compile "$LINENO"; then :
1968 eval "$4=yes"
1969else
1970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1971/* end confdefs.h. */
1972$5
1973int
1974main ()
1975{
1976static $2 ac_aggr;
1977if (sizeof ac_aggr.$3)
1978return 0;
1979 ;
1980 return 0;
1981}
1982_ACEOF
1983if ac_fn_c_try_compile "$LINENO"; then :
1984 eval "$4=yes"
1985else
1986 eval "$4=no"
1987fi
1988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1989fi
1990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1991fi
1992eval ac_res=\$$4
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1994$as_echo "$ac_res" >&6; }
1995 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1996
1997} # ac_fn_c_check_member
1998cat >config.log <<_ACEOF
1999This file contains any messages produced by compilers while
2000running configure, to aid debugging if configure makes a mistake.
2001
2002It was created by rdesktop $as_me 1.7.0, which was
2003generated by GNU Autoconf 2.68. Invocation command line was
2004
2005 $ $0 $@
2006
2007_ACEOF
2008exec 5>>config.log
2009{
2010cat <<_ASUNAME
2011## --------- ##
2012## Platform. ##
2013## --------- ##
2014
2015hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2016uname -m = `(uname -m) 2>/dev/null || echo unknown`
2017uname -r = `(uname -r) 2>/dev/null || echo unknown`
2018uname -s = `(uname -s) 2>/dev/null || echo unknown`
2019uname -v = `(uname -v) 2>/dev/null || echo unknown`
2020
2021/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2022/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2023
2024/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2025/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2026/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2027/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2028/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2029/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2030/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2031
2032_ASUNAME
2033
2034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2035for as_dir in $PATH
2036do
2037 IFS=$as_save_IFS
2038 test -z "$as_dir" && as_dir=.
2039 $as_echo "PATH: $as_dir"
2040 done
2041IFS=$as_save_IFS
2042
2043} >&5
2044
2045cat >&5 <<_ACEOF
2046
2047
2048## ----------- ##
2049## Core tests. ##
2050## ----------- ##
2051
2052_ACEOF
2053
2054
2055# Keep a trace of the command line.
2056# Strip out --no-create and --no-recursion so they do not pile up.
2057# Strip out --silent because we don't want to record it for future runs.
2058# Also quote any args containing shell meta-characters.
2059# Make two passes to allow for proper duplicate-argument suppression.
2060ac_configure_args=
2061ac_configure_args0=
2062ac_configure_args1=
2063ac_must_keep_next=false
2064for ac_pass in 1 2
2065do
2066 for ac_arg
2067 do
2068 case $ac_arg in
2069 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2070 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2071 | -silent | --silent | --silen | --sile | --sil)
2072 continue ;;
2073 *\'*)
2074 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2075 esac
2076 case $ac_pass in
2077 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2078 2)
2079 as_fn_append ac_configure_args1 " '$ac_arg'"
2080 if test $ac_must_keep_next = true; then
2081 ac_must_keep_next=false # Got value, back to normal.
2082 else
2083 case $ac_arg in
2084 *=* | --config-cache | -C | -disable-* | --disable-* \
2085 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2086 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2087 | -with-* | --with-* | -without-* | --without-* | --x)
2088 case "$ac_configure_args0 " in
2089 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2090 esac
2091 ;;
2092 -* ) ac_must_keep_next=true ;;
2093 esac
2094 fi
2095 as_fn_append ac_configure_args " '$ac_arg'"
2096 ;;
2097 esac
2098 done
2099done
2100{ ac_configure_args0=; unset ac_configure_args0;}
2101{ ac_configure_args1=; unset ac_configure_args1;}
2102
2103# When interrupted or exit'd, cleanup temporary files, and complete
2104# config.log. We remove comments because anyway the quotes in there
2105# would cause problems or look ugly.
2106# WARNING: Use '\'' to represent an apostrophe within the trap.
2107# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2108trap 'exit_status=$?
2109 # Save into config.log some information that might help in debugging.
2110 {
2111 echo
2112
2113 $as_echo "## ---------------- ##
2114## Cache variables. ##
2115## ---------------- ##"
2116 echo
2117 # The following way of writing the cache mishandles newlines in values,
2118(
2119 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2120 eval ac_val=\$$ac_var
2121 case $ac_val in #(
2122 *${as_nl}*)
2123 case $ac_var in #(
2124 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2125$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2126 esac
2127 case $ac_var in #(
2128 _ | IFS | as_nl) ;; #(
2129 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2130 *) { eval $ac_var=; unset $ac_var;} ;;
2131 esac ;;
2132 esac
2133 done
2134 (set) 2>&1 |
2135 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2136 *${as_nl}ac_space=\ *)
2137 sed -n \
2138 "s/'\''/'\''\\\\'\'''\''/g;
2139 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2140 ;; #(
2141 *)
2142 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2143 ;;
2144 esac |
2145 sort
2146)
2147 echo
2148
2149 $as_echo "## ----------------- ##
2150## Output variables. ##
2151## ----------------- ##"
2152 echo
2153 for ac_var in $ac_subst_vars
2154 do
2155 eval ac_val=\$$ac_var
2156 case $ac_val in
2157 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2158 esac
2159 $as_echo "$ac_var='\''$ac_val'\''"
2160 done | sort
2161 echo
2162
2163 if test -n "$ac_subst_files"; then
2164 $as_echo "## ------------------- ##
2165## File substitutions. ##
2166## ------------------- ##"
2167 echo
2168 for ac_var in $ac_subst_files
2169 do
2170 eval ac_val=\$$ac_var
2171 case $ac_val in
2172 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2173 esac
2174 $as_echo "$ac_var='\''$ac_val'\''"
2175 done | sort
2176 echo
2177 fi
2178
2179 if test -s confdefs.h; then
2180 $as_echo "## ----------- ##
2181## confdefs.h. ##
2182## ----------- ##"
2183 echo
2184 cat confdefs.h
2185 echo
2186 fi
2187 test "$ac_signal" != 0 &&
2188 $as_echo "$as_me: caught signal $ac_signal"
2189 $as_echo "$as_me: exit $exit_status"
2190 } >&5
2191 rm -f core *.core core.conftest.* &&
2192 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2193 exit $exit_status
2194' 0
2195for ac_signal in 1 2 13 15; do
2196 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2197done
2198ac_signal=0
2199
2200# confdefs.h avoids OS command line length limits that DEFS can exceed.
2201rm -f -r conftest* confdefs.h
2202
2203$as_echo "/* confdefs.h */" > confdefs.h
2204
2205# Predefined preprocessor variables.
2206
2207cat >>confdefs.h <<_ACEOF
2208#define PACKAGE_NAME "$PACKAGE_NAME"
2209_ACEOF
2210
2211cat >>confdefs.h <<_ACEOF
2212#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2213_ACEOF
2214
2215cat >>confdefs.h <<_ACEOF
2216#define PACKAGE_VERSION "$PACKAGE_VERSION"
2217_ACEOF
2218
2219cat >>confdefs.h <<_ACEOF
2220#define PACKAGE_STRING "$PACKAGE_STRING"
2221_ACEOF
2222
2223cat >>confdefs.h <<_ACEOF
2224#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2225_ACEOF
2226
2227cat >>confdefs.h <<_ACEOF
2228#define PACKAGE_URL "$PACKAGE_URL"
2229_ACEOF
2230
2231
2232# Let the site file select an alternate cache file if it wants to.
2233# Prefer an explicitly selected file to automatically selected ones.
2234ac_site_file1=NONE
2235ac_site_file2=NONE
2236if test -n "$CONFIG_SITE"; then
2237 # We do not want a PATH search for config.site.
2238 case $CONFIG_SITE in #((
2239 -*) ac_site_file1=./$CONFIG_SITE;;
2240 */*) ac_site_file1=$CONFIG_SITE;;
2241 *) ac_site_file1=./$CONFIG_SITE;;
2242 esac
2243elif test "x$prefix" != xNONE; then
2244 ac_site_file1=$prefix/share/config.site
2245 ac_site_file2=$prefix/etc/config.site
2246else
2247 ac_site_file1=$ac_default_prefix/share/config.site
2248 ac_site_file2=$ac_default_prefix/etc/config.site
2249fi
2250for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2251do
2252 test "x$ac_site_file" = xNONE && continue
2253 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2255$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2256 sed 's/^/| /' "$ac_site_file" >&5
2257 . "$ac_site_file" \
2258 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2259$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2260as_fn_error $? "failed to load site script $ac_site_file
2261See \`config.log' for more details" "$LINENO" 5; }
2262 fi
2263done
2264
2265if test -r "$cache_file"; then
2266 # Some versions of bash will fail to source /dev/null (special files
2267 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2268 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2270$as_echo "$as_me: loading cache $cache_file" >&6;}
2271 case $cache_file in
2272 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2273 *) . "./$cache_file";;
2274 esac
2275 fi
2276else
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2278$as_echo "$as_me: creating cache $cache_file" >&6;}
2279 >$cache_file
2280fi
2281
2282# Check that the precious variables saved in the cache have kept the same
2283# value.
2284ac_cache_corrupted=false
2285for ac_var in $ac_precious_vars; do
2286 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2287 eval ac_new_set=\$ac_env_${ac_var}_set
2288 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2289 eval ac_new_val=\$ac_env_${ac_var}_value
2290 case $ac_old_set,$ac_new_set in
2291 set,)
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2293$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2294 ac_cache_corrupted=: ;;
2295 ,set)
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2297$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2298 ac_cache_corrupted=: ;;
2299 ,);;
2300 *)
2301 if test "x$ac_old_val" != "x$ac_new_val"; then
2302 # differences in whitespace do not lead to failure.
2303 ac_old_val_w=`echo x $ac_old_val`
2304 ac_new_val_w=`echo x $ac_new_val`
2305 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2307$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2308 ac_cache_corrupted=:
2309 else
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2311$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2312 eval $ac_var=\$ac_old_val
2313 fi
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2315$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2317$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2318 fi;;
2319 esac
2320 # Pass precious variables to config.status.
2321 if test "$ac_new_set" = set; then
2322 case $ac_new_val in
2323 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2324 *) ac_arg=$ac_var=$ac_new_val ;;
2325 esac
2326 case " $ac_configure_args " in
2327 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2328 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2329 esac
2330 fi
2331done
2332if $ac_cache_corrupted; then
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2334$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2336$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2337 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2338fi
2339## -------------------- ##
2340## Main body of script. ##
2341## -------------------- ##
2342
2343ac_ext=c
2344ac_cpp='$CPP $CPPFLAGS'
2345ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2346ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2347ac_compiler_gnu=$ac_cv_c_compiler_gnu
2348
2349
2350
2351
2352
2353ac_ext=c
2354ac_cpp='$CPP $CPPFLAGS'
2355ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2356ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2357ac_compiler_gnu=$ac_cv_c_compiler_gnu
2358if test -n "$ac_tool_prefix"; then
2359 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2360set dummy ${ac_tool_prefix}gcc; ac_word=$2
2361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2362$as_echo_n "checking for $ac_word... " >&6; }
2363if ${ac_cv_prog_CC+:} false; then :
2364 $as_echo_n "(cached) " >&6
2365else
2366 if test -n "$CC"; then
2367 ac_cv_prog_CC="$CC" # Let the user override the test.
2368else
2369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2370for as_dir in $PATH
2371do
2372 IFS=$as_save_IFS
2373 test -z "$as_dir" && as_dir=.
2374 for ac_exec_ext in '' $ac_executable_extensions; do
2375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2376 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2378 break 2
2379 fi
2380done
2381 done
2382IFS=$as_save_IFS
2383
2384fi
2385fi
2386CC=$ac_cv_prog_CC
2387if test -n "$CC"; then
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2389$as_echo "$CC" >&6; }
2390else
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2392$as_echo "no" >&6; }
2393fi
2394
2395
2396fi
2397if test -z "$ac_cv_prog_CC"; then
2398 ac_ct_CC=$CC
2399 # Extract the first word of "gcc", so it can be a program name with args.
2400set dummy gcc; ac_word=$2
2401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2402$as_echo_n "checking for $ac_word... " >&6; }
2403if ${ac_cv_prog_ac_ct_CC+:} false; then :
2404 $as_echo_n "(cached) " >&6
2405else
2406 if test -n "$ac_ct_CC"; then
2407 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2408else
2409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2410for as_dir in $PATH
2411do
2412 IFS=$as_save_IFS
2413 test -z "$as_dir" && as_dir=.
2414 for ac_exec_ext in '' $ac_executable_extensions; do
2415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2416 ac_cv_prog_ac_ct_CC="gcc"
2417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2418 break 2
2419 fi
2420done
2421 done
2422IFS=$as_save_IFS
2423
2424fi
2425fi
2426ac_ct_CC=$ac_cv_prog_ac_ct_CC
2427if test -n "$ac_ct_CC"; then
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2429$as_echo "$ac_ct_CC" >&6; }
2430else
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2432$as_echo "no" >&6; }
2433fi
2434
2435 if test "x$ac_ct_CC" = x; then
2436 CC=""
2437 else
2438 case $cross_compiling:$ac_tool_warned in
2439yes:)
2440{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2441$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2442ac_tool_warned=yes ;;
2443esac
2444 CC=$ac_ct_CC
2445 fi
2446else
2447 CC="$ac_cv_prog_CC"
2448fi
2449
2450if test -z "$CC"; then
2451 if test -n "$ac_tool_prefix"; then
2452 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2453set dummy ${ac_tool_prefix}cc; ac_word=$2
2454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2455$as_echo_n "checking for $ac_word... " >&6; }
2456if ${ac_cv_prog_CC+:} false; then :
2457 $as_echo_n "(cached) " >&6
2458else
2459 if test -n "$CC"; then
2460 ac_cv_prog_CC="$CC" # Let the user override the test.
2461else
2462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2463for as_dir in $PATH
2464do
2465 IFS=$as_save_IFS
2466 test -z "$as_dir" && as_dir=.
2467 for ac_exec_ext in '' $ac_executable_extensions; do
2468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2469 ac_cv_prog_CC="${ac_tool_prefix}cc"
2470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2471 break 2
2472 fi
2473done
2474 done
2475IFS=$as_save_IFS
2476
2477fi
2478fi
2479CC=$ac_cv_prog_CC
2480if test -n "$CC"; then
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2482$as_echo "$CC" >&6; }
2483else
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2485$as_echo "no" >&6; }
2486fi
2487
2488
2489 fi
2490fi
2491if test -z "$CC"; then
2492 # Extract the first word of "cc", so it can be a program name with args.
2493set dummy cc; ac_word=$2
2494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2495$as_echo_n "checking for $ac_word... " >&6; }
2496if ${ac_cv_prog_CC+:} false; then :
2497 $as_echo_n "(cached) " >&6
2498else
2499 if test -n "$CC"; then
2500 ac_cv_prog_CC="$CC" # Let the user override the test.
2501else
2502 ac_prog_rejected=no
2503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2504for as_dir in $PATH
2505do
2506 IFS=$as_save_IFS
2507 test -z "$as_dir" && as_dir=.
2508 for ac_exec_ext in '' $ac_executable_extensions; do
2509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2510 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2511 ac_prog_rejected=yes
2512 continue
2513 fi
2514 ac_cv_prog_CC="cc"
2515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2516 break 2
2517 fi
2518done
2519 done
2520IFS=$as_save_IFS
2521
2522if test $ac_prog_rejected = yes; then
2523 # We found a bogon in the path, so make sure we never use it.
2524 set dummy $ac_cv_prog_CC
2525 shift
2526 if test $# != 0; then
2527 # We chose a different compiler from the bogus one.
2528 # However, it has the same basename, so the bogon will be chosen
2529 # first if we set CC to just the basename; use the full file name.
2530 shift
2531 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2532 fi
2533fi
2534fi
2535fi
2536CC=$ac_cv_prog_CC
2537if test -n "$CC"; then
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2539$as_echo "$CC" >&6; }
2540else
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2542$as_echo "no" >&6; }
2543fi
2544
2545
2546fi
2547if test -z "$CC"; then
2548 if test -n "$ac_tool_prefix"; then
2549 for ac_prog in cl.exe
2550 do
2551 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2552set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2554$as_echo_n "checking for $ac_word... " >&6; }
2555if ${ac_cv_prog_CC+:} false; then :
2556 $as_echo_n "(cached) " >&6
2557else
2558 if test -n "$CC"; then
2559 ac_cv_prog_CC="$CC" # Let the user override the test.
2560else
2561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2562for as_dir in $PATH
2563do
2564 IFS=$as_save_IFS
2565 test -z "$as_dir" && as_dir=.
2566 for ac_exec_ext in '' $ac_executable_extensions; do
2567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2568 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2570 break 2
2571 fi
2572done
2573 done
2574IFS=$as_save_IFS
2575
2576fi
2577fi
2578CC=$ac_cv_prog_CC
2579if test -n "$CC"; then
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2581$as_echo "$CC" >&6; }
2582else
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2584$as_echo "no" >&6; }
2585fi
2586
2587
2588 test -n "$CC" && break
2589 done
2590fi
2591if test -z "$CC"; then
2592 ac_ct_CC=$CC
2593 for ac_prog in cl.exe
2594do
2595 # Extract the first word of "$ac_prog", so it can be a program name with args.
2596set dummy $ac_prog; ac_word=$2
2597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2598$as_echo_n "checking for $ac_word... " >&6; }
2599if ${ac_cv_prog_ac_ct_CC+:} false; then :
2600 $as_echo_n "(cached) " >&6
2601else
2602 if test -n "$ac_ct_CC"; then
2603 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2604else
2605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2606for as_dir in $PATH
2607do
2608 IFS=$as_save_IFS
2609 test -z "$as_dir" && as_dir=.
2610 for ac_exec_ext in '' $ac_executable_extensions; do
2611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2612 ac_cv_prog_ac_ct_CC="$ac_prog"
2613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2614 break 2
2615 fi
2616done
2617 done
2618IFS=$as_save_IFS
2619
2620fi
2621fi
2622ac_ct_CC=$ac_cv_prog_ac_ct_CC
2623if test -n "$ac_ct_CC"; then
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2625$as_echo "$ac_ct_CC" >&6; }
2626else
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2628$as_echo "no" >&6; }
2629fi
2630
2631
2632 test -n "$ac_ct_CC" && break
2633done
2634
2635 if test "x$ac_ct_CC" = x; then
2636 CC=""
2637 else
2638 case $cross_compiling:$ac_tool_warned in
2639yes:)
2640{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2641$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2642ac_tool_warned=yes ;;
2643esac
2644 CC=$ac_ct_CC
2645 fi
2646fi
2647
2648fi
2649
2650
2651test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2652$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2653as_fn_error $? "no acceptable C compiler found in \$PATH
2654See \`config.log' for more details" "$LINENO" 5; }
2655
2656# Provide some information about the compiler.
2657$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2658set X $ac_compile
2659ac_compiler=$2
2660for ac_option in --version -v -V -qversion; do
2661 { { ac_try="$ac_compiler $ac_option >&5"
2662case "(($ac_try" in
2663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2664 *) ac_try_echo=$ac_try;;
2665esac
2666eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2667$as_echo "$ac_try_echo"; } >&5
2668 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2669 ac_status=$?
2670 if test -s conftest.err; then
2671 sed '10a\
2672... rest of stderr output deleted ...
2673 10q' conftest.err >conftest.er1
2674 cat conftest.er1 >&5
2675 fi
2676 rm -f conftest.er1 conftest.err
2677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2678 test $ac_status = 0; }
2679done
2680
2681cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2682/* end confdefs.h. */
2683
2684int
2685main ()
2686{
2687
2688 ;
2689 return 0;
2690}
2691_ACEOF
2692ac_clean_files_save=$ac_clean_files
2693ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2694# Try to create an executable without -o first, disregard a.out.
2695# It will help us diagnose broken compilers, and finding out an intuition
2696# of exeext.
2697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2698$as_echo_n "checking whether the C compiler works... " >&6; }
2699ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2700
2701# The possible output files:
2702ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2703
2704ac_rmfiles=
2705for ac_file in $ac_files
2706do
2707 case $ac_file in
2708 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2709 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2710 esac
2711done
2712rm -f $ac_rmfiles
2713
2714if { { ac_try="$ac_link_default"
2715case "(($ac_try" in
2716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2717 *) ac_try_echo=$ac_try;;
2718esac
2719eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2720$as_echo "$ac_try_echo"; } >&5
2721 (eval "$ac_link_default") 2>&5
2722 ac_status=$?
2723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2724 test $ac_status = 0; }; then :
2725 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2726# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2727# in a Makefile. We should not override ac_cv_exeext if it was cached,
2728# so that the user can short-circuit this test for compilers unknown to
2729# Autoconf.
2730for ac_file in $ac_files ''
2731do
2732 test -f "$ac_file" || continue
2733 case $ac_file in
2734 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2735 ;;
2736 [ab].out )
2737 # We found the default executable, but exeext='' is most
2738 # certainly right.
2739 break;;
2740 *.* )
2741 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2742 then :; else
2743 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2744 fi
2745 # We set ac_cv_exeext here because the later test for it is not
2746 # safe: cross compilers may not add the suffix if given an `-o'
2747 # argument, so we may need to know it at that point already.
2748 # Even if this section looks crufty: it has the advantage of
2749 # actually working.
2750 break;;
2751 * )
2752 break;;
2753 esac
2754done
2755test "$ac_cv_exeext" = no && ac_cv_exeext=
2756
2757else
2758 ac_file=''
2759fi
2760if test -z "$ac_file"; then :
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2762$as_echo "no" >&6; }
2763$as_echo "$as_me: failed program was:" >&5
2764sed 's/^/| /' conftest.$ac_ext >&5
2765
2766{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2767$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2768as_fn_error 77 "C compiler cannot create executables
2769See \`config.log' for more details" "$LINENO" 5; }
2770else
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2772$as_echo "yes" >&6; }
2773fi
2774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2775$as_echo_n "checking for C compiler default output file name... " >&6; }
2776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2777$as_echo "$ac_file" >&6; }
2778ac_exeext=$ac_cv_exeext
2779
2780rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2781ac_clean_files=$ac_clean_files_save
2782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2783$as_echo_n "checking for suffix of executables... " >&6; }
2784if { { ac_try="$ac_link"
2785case "(($ac_try" in
2786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2787 *) ac_try_echo=$ac_try;;
2788esac
2789eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2790$as_echo "$ac_try_echo"; } >&5
2791 (eval "$ac_link") 2>&5
2792 ac_status=$?
2793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2794 test $ac_status = 0; }; then :
2795 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2796# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2797# work properly (i.e., refer to `conftest.exe'), while it won't with
2798# `rm'.
2799for ac_file in conftest.exe conftest conftest.*; do
2800 test -f "$ac_file" || continue
2801 case $ac_file in
2802 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2803 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2804 break;;
2805 * ) break;;
2806 esac
2807done
2808else
2809 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2810$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2811as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2812See \`config.log' for more details" "$LINENO" 5; }
2813fi
2814rm -f conftest conftest$ac_cv_exeext
2815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2816$as_echo "$ac_cv_exeext" >&6; }
2817
2818rm -f conftest.$ac_ext
2819EXEEXT=$ac_cv_exeext
2820ac_exeext=$EXEEXT
2821cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2822/* end confdefs.h. */
2823#include <stdio.h>
2824int
2825main ()
2826{
2827FILE *f = fopen ("conftest.out", "w");
2828 return ferror (f) || fclose (f) != 0;
2829
2830 ;
2831 return 0;
2832}
2833_ACEOF
2834ac_clean_files="$ac_clean_files conftest.out"
2835# Check that the compiler produces executables we can run. If not, either
2836# the compiler is broken, or we cross compile.
2837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2838$as_echo_n "checking whether we are cross compiling... " >&6; }
2839if test "$cross_compiling" != yes; then
2840 { { ac_try="$ac_link"
2841case "(($ac_try" in
2842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2843 *) ac_try_echo=$ac_try;;
2844esac
2845eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2846$as_echo "$ac_try_echo"; } >&5
2847 (eval "$ac_link") 2>&5
2848 ac_status=$?
2849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2850 test $ac_status = 0; }
2851 if { ac_try='./conftest$ac_cv_exeext'
2852 { { case "(($ac_try" in
2853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2854 *) ac_try_echo=$ac_try;;
2855esac
2856eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2857$as_echo "$ac_try_echo"; } >&5
2858 (eval "$ac_try") 2>&5
2859 ac_status=$?
2860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2861 test $ac_status = 0; }; }; then
2862 cross_compiling=no
2863 else
2864 if test "$cross_compiling" = maybe; then
2865 cross_compiling=yes
2866 else
2867 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2868$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2869as_fn_error $? "cannot run C compiled programs.
2870If you meant to cross compile, use \`--host'.
2871See \`config.log' for more details" "$LINENO" 5; }
2872 fi
2873 fi
2874fi
2875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2876$as_echo "$cross_compiling" >&6; }
2877
2878rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2879ac_clean_files=$ac_clean_files_save
2880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2881$as_echo_n "checking for suffix of object files... " >&6; }
2882if ${ac_cv_objext+:} false; then :
2883 $as_echo_n "(cached) " >&6
2884else
2885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2886/* end confdefs.h. */
2887
2888int
2889main ()
2890{
2891
2892 ;
2893 return 0;
2894}
2895_ACEOF
2896rm -f conftest.o conftest.obj
2897if { { ac_try="$ac_compile"
2898case "(($ac_try" in
2899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2900 *) ac_try_echo=$ac_try;;
2901esac
2902eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2903$as_echo "$ac_try_echo"; } >&5
2904 (eval "$ac_compile") 2>&5
2905 ac_status=$?
2906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2907 test $ac_status = 0; }; then :
2908 for ac_file in conftest.o conftest.obj conftest.*; do
2909 test -f "$ac_file" || continue;
2910 case $ac_file in
2911 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2912 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2913 break;;
2914 esac
2915done
2916else
2917 $as_echo "$as_me: failed program was:" >&5
2918sed 's/^/| /' conftest.$ac_ext >&5
2919
2920{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2921$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2922as_fn_error $? "cannot compute suffix of object files: cannot compile
2923See \`config.log' for more details" "$LINENO" 5; }
2924fi
2925rm -f conftest.$ac_cv_objext conftest.$ac_ext
2926fi
2927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2928$as_echo "$ac_cv_objext" >&6; }
2929OBJEXT=$ac_cv_objext
2930ac_objext=$OBJEXT
2931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2932$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2933if ${ac_cv_c_compiler_gnu+:} false; then :
2934 $as_echo_n "(cached) " >&6
2935else
2936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2937/* end confdefs.h. */
2938
2939int
2940main ()
2941{
2942#ifndef __GNUC__
2943 choke me
2944#endif
2945
2946 ;
2947 return 0;
2948}
2949_ACEOF
2950if ac_fn_c_try_compile "$LINENO"; then :
2951 ac_compiler_gnu=yes
2952else
2953 ac_compiler_gnu=no
2954fi
2955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2956ac_cv_c_compiler_gnu=$ac_compiler_gnu
2957
2958fi
2959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2960$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2961if test $ac_compiler_gnu = yes; then
2962 GCC=yes
2963else
2964 GCC=
2965fi
2966ac_test_CFLAGS=${CFLAGS+set}
2967ac_save_CFLAGS=$CFLAGS
2968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2969$as_echo_n "checking whether $CC accepts -g... " >&6; }
2970if ${ac_cv_prog_cc_g+:} false; then :
2971 $as_echo_n "(cached) " >&6
2972else
2973 ac_save_c_werror_flag=$ac_c_werror_flag
2974 ac_c_werror_flag=yes
2975 ac_cv_prog_cc_g=no
2976 CFLAGS="-g"
2977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2978/* end confdefs.h. */
2979
2980int
2981main ()
2982{
2983
2984 ;
2985 return 0;
2986}
2987_ACEOF
2988if ac_fn_c_try_compile "$LINENO"; then :
2989 ac_cv_prog_cc_g=yes
2990else
2991 CFLAGS=""
2992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2993/* end confdefs.h. */
2994
2995int
2996main ()
2997{
2998
2999 ;
3000 return 0;
3001}
3002_ACEOF
3003if ac_fn_c_try_compile "$LINENO"; then :
3004
3005else
3006 ac_c_werror_flag=$ac_save_c_werror_flag
3007 CFLAGS="-g"
3008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3009/* end confdefs.h. */
3010
3011int
3012main ()
3013{
3014
3015 ;
3016 return 0;
3017}
3018_ACEOF
3019if ac_fn_c_try_compile "$LINENO"; then :
3020 ac_cv_prog_cc_g=yes
3021fi
3022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3023fi
3024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3025fi
3026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3027 ac_c_werror_flag=$ac_save_c_werror_flag
3028fi
3029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3030$as_echo "$ac_cv_prog_cc_g" >&6; }
3031if test "$ac_test_CFLAGS" = set; then
3032 CFLAGS=$ac_save_CFLAGS
3033elif test $ac_cv_prog_cc_g = yes; then
3034 if test "$GCC" = yes; then
3035 CFLAGS="-g -O2"
3036 else
3037 CFLAGS="-g"
3038 fi
3039else
3040 if test "$GCC" = yes; then
3041 CFLAGS="-O2"
3042 else
3043 CFLAGS=
3044 fi
3045fi
3046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3047$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3048if ${ac_cv_prog_cc_c89+:} false; then :
3049 $as_echo_n "(cached) " >&6
3050else
3051 ac_cv_prog_cc_c89=no
3052ac_save_CC=$CC
3053cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3054/* end confdefs.h. */
3055#include <stdarg.h>
3056#include <stdio.h>
3057#include <sys/types.h>
3058#include <sys/stat.h>
3059/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3060struct buf { int x; };
3061FILE * (*rcsopen) (struct buf *, struct stat *, int);
3062static char *e (p, i)
3063 char **p;
3064 int i;
3065{
3066 return p[i];
3067}
3068static char *f (char * (*g) (char **, int), char **p, ...)
3069{
3070 char *s;
3071 va_list v;
3072 va_start (v,p);
3073 s = g (p, va_arg (v,int));
3074 va_end (v);
3075 return s;
3076}
3077
3078/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3079 function prototypes and stuff, but not '\xHH' hex character constants.
3080 These don't provoke an error unfortunately, instead are silently treated
3081 as 'x'. The following induces an error, until -std is added to get
3082 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3083 array size at least. It's necessary to write '\x00'==0 to get something
3084 that's true only with -std. */
3085int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3086
3087/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3088 inside strings and character constants. */
3089#define FOO(x) 'x'
3090int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3091
3092int test (int i, double x);
3093struct s1 {int (*f) (int a);};
3094struct s2 {int (*f) (double a);};
3095int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3096int argc;
3097char **argv;
3098int
3099main ()
3100{
3101return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3102 ;
3103 return 0;
3104}
3105_ACEOF
3106for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3107 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3108do
3109 CC="$ac_save_CC $ac_arg"
3110 if ac_fn_c_try_compile "$LINENO"; then :
3111 ac_cv_prog_cc_c89=$ac_arg
3112fi
3113rm -f core conftest.err conftest.$ac_objext
3114 test "x$ac_cv_prog_cc_c89" != "xno" && break
3115done
3116rm -f conftest.$ac_ext
3117CC=$ac_save_CC
3118
3119fi
3120# AC_CACHE_VAL
3121case "x$ac_cv_prog_cc_c89" in
3122 x)
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3124$as_echo "none needed" >&6; } ;;
3125 xno)
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3127$as_echo "unsupported" >&6; } ;;
3128 *)
3129 CC="$CC $ac_cv_prog_cc_c89"
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3131$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3132esac
3133if test "x$ac_cv_prog_cc_c89" != xno; then :
3134
3135fi
3136
3137ac_ext=c
3138ac_cpp='$CPP $CPPFLAGS'
3139ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3140ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3141ac_compiler_gnu=$ac_cv_c_compiler_gnu
3142
3143if test "$GCC" = yes; then
3144 CFLAGS="$CFLAGS -Wall"
3145fi
3146ac_ext=cpp
3147ac_cpp='$CXXCPP $CPPFLAGS'
3148ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3149ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3150ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3151if test -z "$CXX"; then
3152 if test -n "$CCC"; then
3153 CXX=$CCC
3154 else
3155 if test -n "$ac_tool_prefix"; then
3156 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3157 do
3158 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3159set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3161$as_echo_n "checking for $ac_word... " >&6; }
3162if ${ac_cv_prog_CXX+:} false; then :
3163 $as_echo_n "(cached) " >&6
3164else
3165 if test -n "$CXX"; then
3166 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3167else
3168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3169for as_dir in $PATH
3170do
3171 IFS=$as_save_IFS
3172 test -z "$as_dir" && as_dir=.
3173 for ac_exec_ext in '' $ac_executable_extensions; do
3174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3175 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3177 break 2
3178 fi
3179done
3180 done
3181IFS=$as_save_IFS
3182
3183fi
3184fi
3185CXX=$ac_cv_prog_CXX
3186if test -n "$CXX"; then
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3188$as_echo "$CXX" >&6; }
3189else
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3191$as_echo "no" >&6; }
3192fi
3193
3194
3195 test -n "$CXX" && break
3196 done
3197fi
3198if test -z "$CXX"; then
3199 ac_ct_CXX=$CXX
3200 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3201do
3202 # Extract the first word of "$ac_prog", so it can be a program name with args.
3203set dummy $ac_prog; ac_word=$2
3204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3205$as_echo_n "checking for $ac_word... " >&6; }
3206if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3207 $as_echo_n "(cached) " >&6
3208else
3209 if test -n "$ac_ct_CXX"; then
3210 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3211else
3212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3213for as_dir in $PATH
3214do
3215 IFS=$as_save_IFS
3216 test -z "$as_dir" && as_dir=.
3217 for ac_exec_ext in '' $ac_executable_extensions; do
3218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3219 ac_cv_prog_ac_ct_CXX="$ac_prog"
3220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3221 break 2
3222 fi
3223done
3224 done
3225IFS=$as_save_IFS
3226
3227fi
3228fi
3229ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3230if test -n "$ac_ct_CXX"; then
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3232$as_echo "$ac_ct_CXX" >&6; }
3233else
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3235$as_echo "no" >&6; }
3236fi
3237
3238
3239 test -n "$ac_ct_CXX" && break
3240done
3241
3242 if test "x$ac_ct_CXX" = x; then
3243 CXX="g++"
3244 else
3245 case $cross_compiling:$ac_tool_warned in
3246yes:)
3247{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3248$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3249ac_tool_warned=yes ;;
3250esac
3251 CXX=$ac_ct_CXX
3252 fi
3253fi
3254
3255 fi
3256fi
3257# Provide some information about the compiler.
3258$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3259set X $ac_compile
3260ac_compiler=$2
3261for ac_option in --version -v -V -qversion; do
3262 { { ac_try="$ac_compiler $ac_option >&5"
3263case "(($ac_try" in
3264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3265 *) ac_try_echo=$ac_try;;
3266esac
3267eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3268$as_echo "$ac_try_echo"; } >&5
3269 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3270 ac_status=$?
3271 if test -s conftest.err; then
3272 sed '10a\
3273... rest of stderr output deleted ...
3274 10q' conftest.err >conftest.er1
3275 cat conftest.er1 >&5
3276 fi
3277 rm -f conftest.er1 conftest.err
3278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3279 test $ac_status = 0; }
3280done
3281
3282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3283$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3284if ${ac_cv_cxx_compiler_gnu+:} false; then :
3285 $as_echo_n "(cached) " >&6
3286else
3287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3288/* end confdefs.h. */
3289
3290int
3291main ()
3292{
3293#ifndef __GNUC__
3294 choke me
3295#endif
3296
3297 ;
3298 return 0;
3299}
3300_ACEOF
3301if ac_fn_cxx_try_compile "$LINENO"; then :
3302 ac_compiler_gnu=yes
3303else
3304 ac_compiler_gnu=no
3305fi
3306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3307ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3308
3309fi
3310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3311$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3312if test $ac_compiler_gnu = yes; then
3313 GXX=yes
3314else
3315 GXX=
3316fi
3317ac_test_CXXFLAGS=${CXXFLAGS+set}
3318ac_save_CXXFLAGS=$CXXFLAGS
3319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3320$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3321if ${ac_cv_prog_cxx_g+:} false; then :
3322 $as_echo_n "(cached) " >&6
3323else
3324 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3325 ac_cxx_werror_flag=yes
3326 ac_cv_prog_cxx_g=no
3327 CXXFLAGS="-g"
3328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3329/* end confdefs.h. */
3330
3331int
3332main ()
3333{
3334
3335 ;
3336 return 0;
3337}
3338_ACEOF
3339if ac_fn_cxx_try_compile "$LINENO"; then :
3340 ac_cv_prog_cxx_g=yes
3341else
3342 CXXFLAGS=""
3343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3344/* end confdefs.h. */
3345
3346int
3347main ()
3348{
3349
3350 ;
3351 return 0;
3352}
3353_ACEOF
3354if ac_fn_cxx_try_compile "$LINENO"; then :
3355
3356else
3357 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3358 CXXFLAGS="-g"
3359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3360/* end confdefs.h. */
3361
3362int
3363main ()
3364{
3365
3366 ;
3367 return 0;
3368}
3369_ACEOF
3370if ac_fn_cxx_try_compile "$LINENO"; then :
3371 ac_cv_prog_cxx_g=yes
3372fi
3373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3374fi
3375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3376fi
3377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3378 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3379fi
3380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3381$as_echo "$ac_cv_prog_cxx_g" >&6; }
3382if test "$ac_test_CXXFLAGS" = set; then
3383 CXXFLAGS=$ac_save_CXXFLAGS
3384elif test $ac_cv_prog_cxx_g = yes; then
3385 if test "$GXX" = yes; then
3386 CXXFLAGS="-g -O2"
3387 else
3388 CXXFLAGS="-g"
3389 fi
3390else
3391 if test "$GXX" = yes; then
3392 CXXFLAGS="-O2"
3393 else
3394 CXXFLAGS=
3395 fi
3396fi
3397ac_ext=c
3398ac_cpp='$CPP $CPPFLAGS'
3399ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3400ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3401ac_compiler_gnu=$ac_cv_c_compiler_gnu
3402
3403
3404ac_aux_dir=
3405for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3406 if test -f "$ac_dir/install-sh"; then
3407 ac_aux_dir=$ac_dir
3408 ac_install_sh="$ac_aux_dir/install-sh -c"
3409 break
3410 elif test -f "$ac_dir/install.sh"; then
3411 ac_aux_dir=$ac_dir
3412 ac_install_sh="$ac_aux_dir/install.sh -c"
3413 break
3414 elif test -f "$ac_dir/shtool"; then
3415 ac_aux_dir=$ac_dir
3416 ac_install_sh="$ac_aux_dir/shtool install -c"
3417 break
3418 fi
3419done
3420if test -z "$ac_aux_dir"; then
3421 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3422fi
3423
3424# These three variables are undocumented and unsupported,
3425# and are intended to be withdrawn in a future Autoconf release.
3426# They can cause serious problems if a builder's source tree is in a directory
3427# whose full name contains unusual characters.
3428ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3429ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3430ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3431
3432
3433# Find a good install program. We prefer a C program (faster),
3434# so one script is as good as another. But avoid the broken or
3435# incompatible versions:
3436# SysV /etc/install, /usr/sbin/install
3437# SunOS /usr/etc/install
3438# IRIX /sbin/install
3439# AIX /bin/install
3440# AmigaOS /C/install, which installs bootblocks on floppy discs
3441# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3442# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3443# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3444# OS/2's system install, which has a completely different semantic
3445# ./install, which can be erroneously created by make from ./install.sh.
3446# Reject install programs that cannot install multiple files.
3447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3448$as_echo_n "checking for a BSD-compatible install... " >&6; }
3449if test -z "$INSTALL"; then
3450if ${ac_cv_path_install+:} false; then :
3451 $as_echo_n "(cached) " >&6
3452else
3453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3454for as_dir in $PATH
3455do
3456 IFS=$as_save_IFS
3457 test -z "$as_dir" && as_dir=.
3458 # Account for people who put trailing slashes in PATH elements.
3459case $as_dir/ in #((
3460 ./ | .// | /[cC]/* | \
3461 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3462 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3463 /usr/ucb/* ) ;;
3464 *)
3465 # OSF1 and SCO ODT 3.0 have their own names for install.
3466 # Don't use installbsd from OSF since it installs stuff as root
3467 # by default.
3468 for ac_prog in ginstall scoinst install; do
3469 for ac_exec_ext in '' $ac_executable_extensions; do
3470 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3471 if test $ac_prog = install &&
3472 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3473 # AIX install. It has an incompatible calling convention.
3474 :
3475 elif test $ac_prog = install &&
3476 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3477 # program-specific install script used by HP pwplus--don't use.
3478 :
3479 else
3480 rm -rf conftest.one conftest.two conftest.dir
3481 echo one > conftest.one
3482 echo two > conftest.two
3483 mkdir conftest.dir
3484 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3485 test -s conftest.one && test -s conftest.two &&
3486 test -s conftest.dir/conftest.one &&
3487 test -s conftest.dir/conftest.two
3488 then
3489 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3490 break 3
3491 fi
3492 fi
3493 fi
3494 done
3495 done
3496 ;;
3497esac
3498
3499 done
3500IFS=$as_save_IFS
3501
3502rm -rf conftest.one conftest.two conftest.dir
3503
3504fi
3505 if test "${ac_cv_path_install+set}" = set; then
3506 INSTALL=$ac_cv_path_install
3507 else
3508 # As a last resort, use the slow shell script. Don't cache a
3509 # value for INSTALL within a source directory, because that will
3510 # break other packages using the cache if that directory is
3511 # removed, or if the value is a relative name.
3512 INSTALL=$ac_install_sh
3513 fi
3514fi
3515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3516$as_echo "$INSTALL" >&6; }
3517
3518# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3519# It thinks the first close brace ends the variable substitution.
3520test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3521
3522test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3523
3524test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3525
3526ac_ext=c
3527ac_cpp='$CPP $CPPFLAGS'
3528ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3529ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3530ac_compiler_gnu=$ac_cv_c_compiler_gnu
3531
3532
3533ac_ext=c
3534ac_cpp='$CPP $CPPFLAGS'
3535ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3536ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3537ac_compiler_gnu=$ac_cv_c_compiler_gnu
3538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3539$as_echo_n "checking how to run the C preprocessor... " >&6; }
3540# On Suns, sometimes $CPP names a directory.
3541if test -n "$CPP" && test -d "$CPP"; then
3542 CPP=
3543fi
3544if test -z "$CPP"; then
3545 if ${ac_cv_prog_CPP+:} false; then :
3546 $as_echo_n "(cached) " >&6
3547else
3548 # Double quotes because CPP needs to be expanded
3549 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3550 do
3551 ac_preproc_ok=false
3552for ac_c_preproc_warn_flag in '' yes
3553do
3554 # Use a header file that comes with gcc, so configuring glibc
3555 # with a fresh cross-compiler works.
3556 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3557 # <limits.h> exists even on freestanding compilers.
3558 # On the NeXT, cc -E runs the code through the compiler's parser,
3559 # not just through cpp. "Syntax error" is here to catch this case.
3560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3561/* end confdefs.h. */
3562#ifdef __STDC__
3563# include <limits.h>
3564#else
3565# include <assert.h>
3566#endif
3567 Syntax error
3568_ACEOF
3569if ac_fn_c_try_cpp "$LINENO"; then :
3570
3571else
3572 # Broken: fails on valid input.
3573continue
3574fi
3575rm -f conftest.err conftest.i conftest.$ac_ext
3576
3577 # OK, works on sane cases. Now check whether nonexistent headers
3578 # can be detected and how.
3579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3580/* end confdefs.h. */
3581#include <ac_nonexistent.h>
3582_ACEOF
3583if ac_fn_c_try_cpp "$LINENO"; then :
3584 # Broken: success on invalid input.
3585continue
3586else
3587 # Passes both tests.
3588ac_preproc_ok=:
3589break
3590fi
3591rm -f conftest.err conftest.i conftest.$ac_ext
3592
3593done
3594# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3595rm -f conftest.i conftest.err conftest.$ac_ext
3596if $ac_preproc_ok; then :
3597 break
3598fi
3599
3600 done
3601 ac_cv_prog_CPP=$CPP
3602
3603fi
3604 CPP=$ac_cv_prog_CPP
3605else
3606 ac_cv_prog_CPP=$CPP
3607fi
3608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3609$as_echo "$CPP" >&6; }
3610ac_preproc_ok=false
3611for ac_c_preproc_warn_flag in '' yes
3612do
3613 # Use a header file that comes with gcc, so configuring glibc
3614 # with a fresh cross-compiler works.
3615 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3616 # <limits.h> exists even on freestanding compilers.
3617 # On the NeXT, cc -E runs the code through the compiler's parser,
3618 # not just through cpp. "Syntax error" is here to catch this case.
3619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3620/* end confdefs.h. */
3621#ifdef __STDC__
3622# include <limits.h>
3623#else
3624# include <assert.h>
3625#endif
3626 Syntax error
3627_ACEOF
3628if ac_fn_c_try_cpp "$LINENO"; then :
3629
3630else
3631 # Broken: fails on valid input.
3632continue
3633fi
3634rm -f conftest.err conftest.i conftest.$ac_ext
3635
3636 # OK, works on sane cases. Now check whether nonexistent headers
3637 # can be detected and how.
3638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3639/* end confdefs.h. */
3640#include <ac_nonexistent.h>
3641_ACEOF
3642if ac_fn_c_try_cpp "$LINENO"; then :
3643 # Broken: success on invalid input.
3644continue
3645else
3646 # Passes both tests.
3647ac_preproc_ok=:
3648break
3649fi
3650rm -f conftest.err conftest.i conftest.$ac_ext
3651
3652done
3653# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3654rm -f conftest.i conftest.err conftest.$ac_ext
3655if $ac_preproc_ok; then :
3656
3657else
3658 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3659$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3660as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3661See \`config.log' for more details" "$LINENO" 5; }
3662fi
3663
3664ac_ext=c
3665ac_cpp='$CPP $CPPFLAGS'
3666ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3667ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3668ac_compiler_gnu=$ac_cv_c_compiler_gnu
3669
3670
3671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3672$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3673if ${ac_cv_path_GREP+:} false; then :
3674 $as_echo_n "(cached) " >&6
3675else
3676 if test -z "$GREP"; then
3677 ac_path_GREP_found=false
3678 # Loop through the user's path and test for each of PROGNAME-LIST
3679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3680for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3681do
3682 IFS=$as_save_IFS
3683 test -z "$as_dir" && as_dir=.
3684 for ac_prog in grep ggrep; do
3685 for ac_exec_ext in '' $ac_executable_extensions; do
3686 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3687 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3688# Check for GNU ac_path_GREP and select it if it is found.
3689 # Check for GNU $ac_path_GREP
3690case `"$ac_path_GREP" --version 2>&1` in
3691*GNU*)
3692 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3693*)
3694 ac_count=0
3695 $as_echo_n 0123456789 >"conftest.in"
3696 while :
3697 do
3698 cat "conftest.in" "conftest.in" >"conftest.tmp"
3699 mv "conftest.tmp" "conftest.in"
3700 cp "conftest.in" "conftest.nl"
3701 $as_echo 'GREP' >> "conftest.nl"
3702 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3703 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3704 as_fn_arith $ac_count + 1 && ac_count=$as_val
3705 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3706 # Best one so far, save it but keep looking for a better one
3707 ac_cv_path_GREP="$ac_path_GREP"
3708 ac_path_GREP_max=$ac_count
3709 fi
3710 # 10*(2^10) chars as input seems more than enough
3711 test $ac_count -gt 10 && break
3712 done
3713 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3714esac
3715
3716 $ac_path_GREP_found && break 3
3717 done
3718 done
3719 done
3720IFS=$as_save_IFS
3721 if test -z "$ac_cv_path_GREP"; then
3722 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3723 fi
3724else
3725 ac_cv_path_GREP=$GREP
3726fi
3727
3728fi
3729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3730$as_echo "$ac_cv_path_GREP" >&6; }
3731 GREP="$ac_cv_path_GREP"
3732
3733
3734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3735$as_echo_n "checking for egrep... " >&6; }
3736if ${ac_cv_path_EGREP+:} false; then :
3737 $as_echo_n "(cached) " >&6
3738else
3739 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3740 then ac_cv_path_EGREP="$GREP -E"
3741 else
3742 if test -z "$EGREP"; then
3743 ac_path_EGREP_found=false
3744 # Loop through the user's path and test for each of PROGNAME-LIST
3745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3746for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3747do
3748 IFS=$as_save_IFS
3749 test -z "$as_dir" && as_dir=.
3750 for ac_prog in egrep; do
3751 for ac_exec_ext in '' $ac_executable_extensions; do
3752 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3753 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3754# Check for GNU ac_path_EGREP and select it if it is found.
3755 # Check for GNU $ac_path_EGREP
3756case `"$ac_path_EGREP" --version 2>&1` in
3757*GNU*)
3758 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3759*)
3760 ac_count=0
3761 $as_echo_n 0123456789 >"conftest.in"
3762 while :
3763 do
3764 cat "conftest.in" "conftest.in" >"conftest.tmp"
3765 mv "conftest.tmp" "conftest.in"
3766 cp "conftest.in" "conftest.nl"
3767 $as_echo 'EGREP' >> "conftest.nl"
3768 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3769 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3770 as_fn_arith $ac_count + 1 && ac_count=$as_val
3771 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3772 # Best one so far, save it but keep looking for a better one
3773 ac_cv_path_EGREP="$ac_path_EGREP"
3774 ac_path_EGREP_max=$ac_count
3775 fi
3776 # 10*(2^10) chars as input seems more than enough
3777 test $ac_count -gt 10 && break
3778 done
3779 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3780esac
3781
3782 $ac_path_EGREP_found && break 3
3783 done
3784 done
3785 done
3786IFS=$as_save_IFS
3787 if test -z "$ac_cv_path_EGREP"; then
3788 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3789 fi
3790else
3791 ac_cv_path_EGREP=$EGREP
3792fi
3793
3794 fi
3795fi
3796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3797$as_echo "$ac_cv_path_EGREP" >&6; }
3798 EGREP="$ac_cv_path_EGREP"
3799
3800
3801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3802$as_echo_n "checking for ANSI C header files... " >&6; }
3803if ${ac_cv_header_stdc+:} false; then :
3804 $as_echo_n "(cached) " >&6
3805else
3806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3807/* end confdefs.h. */
3808#include <stdlib.h>
3809#include <stdarg.h>
3810#include <string.h>
3811#include <float.h>
3812
3813int
3814main ()
3815{
3816
3817 ;
3818 return 0;
3819}
3820_ACEOF
3821if ac_fn_c_try_compile "$LINENO"; then :
3822 ac_cv_header_stdc=yes
3823else
3824 ac_cv_header_stdc=no
3825fi
3826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3827
3828if test $ac_cv_header_stdc = yes; then
3829 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3831/* end confdefs.h. */
3832#include <string.h>
3833
3834_ACEOF
3835if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3836 $EGREP "memchr" >/dev/null 2>&1; then :
3837
3838else
3839 ac_cv_header_stdc=no
3840fi
3841rm -f conftest*
3842
3843fi
3844
3845if test $ac_cv_header_stdc = yes; then
3846 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3848/* end confdefs.h. */
3849#include <stdlib.h>
3850
3851_ACEOF
3852if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3853 $EGREP "free" >/dev/null 2>&1; then :
3854
3855else
3856 ac_cv_header_stdc=no
3857fi
3858rm -f conftest*
3859
3860fi
3861
3862if test $ac_cv_header_stdc = yes; then
3863 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3864 if test "$cross_compiling" = yes; then :
3865 :
3866else
3867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3868/* end confdefs.h. */
3869#include <ctype.h>
3870#include <stdlib.h>
3871#if ((' ' & 0x0FF) == 0x020)
3872# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3873# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3874#else
3875# define ISLOWER(c) \
3876 (('a' <= (c) && (c) <= 'i') \
3877 || ('j' <= (c) && (c) <= 'r') \
3878 || ('s' <= (c) && (c) <= 'z'))
3879# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3880#endif
3881
3882#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3883int
3884main ()
3885{
3886 int i;
3887 for (i = 0; i < 256; i++)
3888 if (XOR (islower (i), ISLOWER (i))
3889 || toupper (i) != TOUPPER (i))
3890 return 2;
3891 return 0;
3892}
3893_ACEOF
3894if ac_fn_c_try_run "$LINENO"; then :
3895
3896else
3897 ac_cv_header_stdc=no
3898fi
3899rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3900 conftest.$ac_objext conftest.beam conftest.$ac_ext
3901fi
3902
3903fi
3904fi
3905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3906$as_echo "$ac_cv_header_stdc" >&6; }
3907if test $ac_cv_header_stdc = yes; then
3908
3909$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3910
3911fi
3912
3913# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3914for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3915 inttypes.h stdint.h unistd.h
3916do :
3917 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3918ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3919"
3920if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3921 cat >>confdefs.h <<_ACEOF
3922#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3923_ACEOF
3924
3925fi
3926
3927done
3928
3929
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
3931$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
3932if ${ac_cv_c_bigendian+:} false; then :
3933 $as_echo_n "(cached) " >&6
3934else
3935 ac_cv_c_bigendian=unknown
3936 # See if we're dealing with a universal compiler.
3937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3938/* end confdefs.h. */
3939#ifndef __APPLE_CC__
3940 not a universal capable compiler
3941 #endif
3942 typedef int dummy;
3943
3944_ACEOF
3945if ac_fn_c_try_compile "$LINENO"; then :
3946
3947 # Check for potential -arch flags. It is not universal unless
3948 # there are at least two -arch flags with different values.
3949 ac_arch=
3950 ac_prev=
3951 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
3952 if test -n "$ac_prev"; then
3953 case $ac_word in
3954 i?86 | x86_64 | ppc | ppc64)
3955 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
3956 ac_arch=$ac_word
3957 else
3958 ac_cv_c_bigendian=universal
3959 break
3960 fi
3961 ;;
3962 esac
3963 ac_prev=
3964 elif test "x$ac_word" = "x-arch"; then
3965 ac_prev=arch
3966 fi
3967 done
3968fi
3969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3970 if test $ac_cv_c_bigendian = unknown; then
3971 # See if sys/param.h defines the BYTE_ORDER macro.
3972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3973/* end confdefs.h. */
3974#include <sys/types.h>
3975 #include <sys/param.h>
3976
3977int
3978main ()
3979{
3980#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
3981 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
3982 && LITTLE_ENDIAN)
3983 bogus endian macros
3984 #endif
3985
3986 ;
3987 return 0;
3988}
3989_ACEOF
3990if ac_fn_c_try_compile "$LINENO"; then :
3991 # It does; now see whether it defined to BIG_ENDIAN or not.
3992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3993/* end confdefs.h. */
3994#include <sys/types.h>
3995 #include <sys/param.h>
3996
3997int
3998main ()
3999{
4000#if BYTE_ORDER != BIG_ENDIAN
4001 not big endian
4002 #endif
4003
4004 ;
4005 return 0;
4006}
4007_ACEOF
4008if ac_fn_c_try_compile "$LINENO"; then :
4009 ac_cv_c_bigendian=yes
4010else
4011 ac_cv_c_bigendian=no
4012fi
4013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4014fi
4015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4016 fi
4017 if test $ac_cv_c_bigendian = unknown; then
4018 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4020/* end confdefs.h. */
4021#include <limits.h>
4022
4023int
4024main ()
4025{
4026#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4027 bogus endian macros
4028 #endif
4029
4030 ;
4031 return 0;
4032}
4033_ACEOF
4034if ac_fn_c_try_compile "$LINENO"; then :
4035 # It does; now see whether it defined to _BIG_ENDIAN or not.
4036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4037/* end confdefs.h. */
4038#include <limits.h>
4039
4040int
4041main ()
4042{
4043#ifndef _BIG_ENDIAN
4044 not big endian
4045 #endif
4046
4047 ;
4048 return 0;
4049}
4050_ACEOF
4051if ac_fn_c_try_compile "$LINENO"; then :
4052 ac_cv_c_bigendian=yes
4053else
4054 ac_cv_c_bigendian=no
4055fi
4056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4057fi
4058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4059 fi
4060 if test $ac_cv_c_bigendian = unknown; then
4061 # Compile a test program.
4062 if test "$cross_compiling" = yes; then :
4063 # Try to guess by grepping values from an object file.
4064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4065/* end confdefs.h. */
4066short int ascii_mm[] =
4067 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4068 short int ascii_ii[] =
4069 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4070 int use_ascii (int i) {
4071 return ascii_mm[i] + ascii_ii[i];
4072 }
4073 short int ebcdic_ii[] =
4074 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4075 short int ebcdic_mm[] =
4076 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4077 int use_ebcdic (int i) {
4078 return ebcdic_mm[i] + ebcdic_ii[i];
4079 }
4080 extern int foo;
4081
4082int
4083main ()
4084{
4085return use_ascii (foo) == use_ebcdic (foo);
4086 ;
4087 return 0;
4088}
4089_ACEOF
4090if ac_fn_c_try_compile "$LINENO"; then :
4091 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4092 ac_cv_c_bigendian=yes
4093 fi
4094 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4095 if test "$ac_cv_c_bigendian" = unknown; then
4096 ac_cv_c_bigendian=no
4097 else
4098 # finding both strings is unlikely to happen, but who knows?
4099 ac_cv_c_bigendian=unknown
4100 fi
4101 fi
4102fi
4103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4104else
4105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4106/* end confdefs.h. */
4107$ac_includes_default
4108int
4109main ()
4110{
4111
4112 /* Are we little or big endian? From Harbison&Steele. */
4113 union
4114 {
4115 long int l;
4116 char c[sizeof (long int)];
4117 } u;
4118 u.l = 1;
4119 return u.c[sizeof (long int) - 1] == 1;
4120
4121 ;
4122 return 0;
4123}
4124_ACEOF
4125if ac_fn_c_try_run "$LINENO"; then :
4126 ac_cv_c_bigendian=no
4127else
4128 ac_cv_c_bigendian=yes
4129fi
4130rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4131 conftest.$ac_objext conftest.beam conftest.$ac_ext
4132fi
4133
4134 fi
4135fi
4136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4137$as_echo "$ac_cv_c_bigendian" >&6; }
4138 case $ac_cv_c_bigendian in #(
4139 yes)
4140 $as_echo "#define B_ENDIAN 1" >>confdefs.h
4141;; #(
4142 no)
4143 $as_echo "#define L_ENDIAN 1" >>confdefs.h
4144 ;; #(
4145 universal)
4146
4147$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4148
4149 ;; #(
4150 *)
4151 as_fn_error $? "unknown endianness
4152 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4153 esac
4154
4155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
4156$as_echo_n "checking for X... " >&6; }
4157
4158
4159# Check whether --with-x was given.
4160if test "${with_x+set}" = set; then :
4161 withval=$with_x;
4162fi
4163
4164# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4165if test "x$with_x" = xno; then
4166 # The user explicitly disabled X.
4167 have_x=disabled
4168else
4169 case $x_includes,$x_libraries in #(
4170 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
4171 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
4172 $as_echo_n "(cached) " >&6
4173else
4174 # One or both of the vars are not set, and there is no cached value.
4175ac_x_includes=no ac_x_libraries=no
4176rm -f -r conftest.dir
4177if mkdir conftest.dir; then
4178 cd conftest.dir
4179 cat >Imakefile <<'_ACEOF'
4180incroot:
4181 @echo incroot='${INCROOT}'
4182usrlibdir:
4183 @echo usrlibdir='${USRLIBDIR}'
4184libdir:
4185 @echo libdir='${LIBDIR}'
4186_ACEOF
4187 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
4188 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4189 for ac_var in incroot usrlibdir libdir; do
4190 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
4191 done
4192 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4193 for ac_extension in a so sl dylib la dll; do
4194 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
4195 test -f "$ac_im_libdir/libX11.$ac_extension"; then
4196 ac_im_usrlibdir=$ac_im_libdir; break
4197 fi
4198 done
4199 # Screen out bogus values from the imake configuration. They are
4200 # bogus both because they are the default anyway, and because
4201 # using them would break gcc on systems where it needs fixed includes.
4202 case $ac_im_incroot in
4203 /usr/include) ac_x_includes= ;;
4204 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4205 esac
4206 case $ac_im_usrlibdir in
4207 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
4208 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4209 esac
4210 fi
4211 cd ..
4212 rm -f -r conftest.dir
4213fi
4214
4215# Standard set of common directories for X headers.
4216# Check X11 before X11Rn because it is often a symlink to the current release.
4217ac_x_header_dirs='
4218/usr/X11/include
4219/usr/X11R7/include
4220/usr/X11R6/include
4221/usr/X11R5/include
4222/usr/X11R4/include
4223
4224/usr/include/X11
4225/usr/include/X11R7
4226/usr/include/X11R6
4227/usr/include/X11R5
4228/usr/include/X11R4
4229
4230/usr/local/X11/include
4231/usr/local/X11R7/include
4232/usr/local/X11R6/include
4233/usr/local/X11R5/include
4234/usr/local/X11R4/include
4235
4236/usr/local/include/X11
4237/usr/local/include/X11R7
4238/usr/local/include/X11R6
4239/usr/local/include/X11R5
4240/usr/local/include/X11R4
4241
4242/usr/X386/include
4243/usr/x386/include
4244/usr/XFree86/include/X11
4245
4246/usr/include
4247/usr/local/include
4248/usr/unsupported/include
4249/usr/athena/include
4250/usr/local/x11r5/include
4251/usr/lpp/Xamples/include
4252
4253/usr/openwin/include
4254/usr/openwin/share/include'
4255
4256if test "$ac_x_includes" = no; then
4257 # Guess where to find include files, by looking for Xlib.h.
4258 # First, try using that file with no special directory specified.
4259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4260/* end confdefs.h. */
4261#include <X11/Xlib.h>
4262_ACEOF
4263if ac_fn_c_try_cpp "$LINENO"; then :
4264 # We can compile using X headers with no special include directory.
4265ac_x_includes=
4266else
4267 for ac_dir in $ac_x_header_dirs; do
4268 if test -r "$ac_dir/X11/Xlib.h"; then
4269 ac_x_includes=$ac_dir
4270 break
4271 fi
4272done
4273fi
4274rm -f conftest.err conftest.i conftest.$ac_ext
4275fi # $ac_x_includes = no
4276
4277if test "$ac_x_libraries" = no; then
4278 # Check for the libraries.
4279 # See if we find them without any special options.
4280 # Don't add to $LIBS permanently.
4281 ac_save_LIBS=$LIBS
4282 LIBS="-lX11 $LIBS"
4283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4284/* end confdefs.h. */
4285#include <X11/Xlib.h>
4286int
4287main ()
4288{
4289XrmInitialize ()
4290 ;
4291 return 0;
4292}
4293_ACEOF
4294if ac_fn_c_try_link "$LINENO"; then :
4295 LIBS=$ac_save_LIBS
4296# We can link X programs with no special library path.
4297ac_x_libraries=
4298else
4299 LIBS=$ac_save_LIBS
4300for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4301do
4302 # Don't even attempt the hair of trying to link an X program!
4303 for ac_extension in a so sl dylib la dll; do
4304 if test -r "$ac_dir/libX11.$ac_extension"; then
4305 ac_x_libraries=$ac_dir
4306 break 2
4307 fi
4308 done
4309done
4310fi
4311rm -f core conftest.err conftest.$ac_objext \
4312 conftest$ac_exeext conftest.$ac_ext
4313fi # $ac_x_libraries = no
4314
4315case $ac_x_includes,$ac_x_libraries in #(
4316 no,* | *,no | *\'*)
4317 # Didn't find X, or a directory has "'" in its name.
4318 ac_cv_have_x="have_x=no";; #(
4319 *)
4320 # Record where we found X for the cache.
4321 ac_cv_have_x="have_x=yes\
4322 ac_x_includes='$ac_x_includes'\
4323 ac_x_libraries='$ac_x_libraries'"
4324esac
4325fi
4326;; #(
4327 *) have_x=yes;;
4328 esac
4329 eval "$ac_cv_have_x"
4330fi # $with_x != no
4331
4332if test "$have_x" != yes; then
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
4334$as_echo "$have_x" >&6; }
4335 no_x=yes
4336else
4337 # If each of the values was on the command line, it overrides each guess.
4338 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4339 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4340 # Update the cache value to reflect the command line values.
4341 ac_cv_have_x="have_x=yes\
4342 ac_x_includes='$x_includes'\
4343 ac_x_libraries='$x_libraries'"
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
4345$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
4346fi
4347
4348if test "$no_x" = yes; then
4349 # Not all programs may use this symbol, but it does not hurt to define it.
4350
4351$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
4352
4353 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4354else
4355 if test -n "$x_includes"; then
4356 X_CFLAGS="$X_CFLAGS -I$x_includes"
4357 fi
4358
4359 # It would also be nice to do this for all -L options, not just this one.
4360 if test -n "$x_libraries"; then
4361 X_LIBS="$X_LIBS -L$x_libraries"
4362 # For Solaris; some versions of Sun CC require a space after -R and
4363 # others require no space. Words are not sufficient . . . .
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
4365$as_echo_n "checking whether -R must be followed by a space... " >&6; }
4366 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4367 ac_xsave_c_werror_flag=$ac_c_werror_flag
4368 ac_c_werror_flag=yes
4369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4370/* end confdefs.h. */
4371
4372int
4373main ()
4374{
4375
4376 ;
4377 return 0;
4378}
4379_ACEOF
4380if ac_fn_c_try_link "$LINENO"; then :
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4382$as_echo "no" >&6; }
4383 X_LIBS="$X_LIBS -R$x_libraries"
4384else
4385 LIBS="$ac_xsave_LIBS -R $x_libraries"
4386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4387/* end confdefs.h. */
4388
4389int
4390main ()
4391{
4392
4393 ;
4394 return 0;
4395}
4396_ACEOF
4397if ac_fn_c_try_link "$LINENO"; then :
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4399$as_echo "yes" >&6; }
4400 X_LIBS="$X_LIBS -R $x_libraries"
4401else
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
4403$as_echo "neither works" >&6; }
4404fi
4405rm -f core conftest.err conftest.$ac_objext \
4406 conftest$ac_exeext conftest.$ac_ext
4407fi
4408rm -f core conftest.err conftest.$ac_objext \
4409 conftest$ac_exeext conftest.$ac_ext
4410 ac_c_werror_flag=$ac_xsave_c_werror_flag
4411 LIBS=$ac_xsave_LIBS
4412 fi
4413
4414 # Check for system-dependent libraries X programs must link with.
4415 # Do this before checking for the system-independent R6 libraries
4416 # (-lICE), since we may need -lsocket or whatever for X linking.
4417
4418 if test "$ISC" = yes; then
4419 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4420 else
4421 # Martyn Johnson says this is needed for Ultrix, if the X
4422 # libraries were built with DECnet support. And Karl Berry says
4423 # the Alpha needs dnet_stub (dnet does not exist).
4424 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4426/* end confdefs.h. */
4427
4428/* Override any GCC internal prototype to avoid an error.
4429 Use char because int might match the return type of a GCC
4430 builtin and then its argument prototype would still apply. */
4431#ifdef __cplusplus
4432extern "C"
4433#endif
4434char XOpenDisplay ();
4435int
4436main ()
4437{
4438return XOpenDisplay ();
4439 ;
4440 return 0;
4441}
4442_ACEOF
4443if ac_fn_c_try_link "$LINENO"; then :
4444
4445else
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
4447$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
4448if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
4449 $as_echo_n "(cached) " >&6
4450else
4451 ac_check_lib_save_LIBS=$LIBS
4452LIBS="-ldnet $LIBS"
4453cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4454/* end confdefs.h. */
4455
4456/* Override any GCC internal prototype to avoid an error.
4457 Use char because int might match the return type of a GCC
4458 builtin and then its argument prototype would still apply. */
4459#ifdef __cplusplus
4460extern "C"
4461#endif
4462char dnet_ntoa ();
4463int
4464main ()
4465{
4466return dnet_ntoa ();
4467 ;
4468 return 0;
4469}
4470_ACEOF
4471if ac_fn_c_try_link "$LINENO"; then :
4472 ac_cv_lib_dnet_dnet_ntoa=yes
4473else
4474 ac_cv_lib_dnet_dnet_ntoa=no
4475fi
4476rm -f core conftest.err conftest.$ac_objext \
4477 conftest$ac_exeext conftest.$ac_ext
4478LIBS=$ac_check_lib_save_LIBS
4479fi
4480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4481$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
4482if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
4483 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4484fi
4485
4486 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
4488$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
4489if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
4490 $as_echo_n "(cached) " >&6
4491else
4492 ac_check_lib_save_LIBS=$LIBS
4493LIBS="-ldnet_stub $LIBS"
4494cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4495/* end confdefs.h. */
4496
4497/* Override any GCC internal prototype to avoid an error.
4498 Use char because int might match the return type of a GCC
4499 builtin and then its argument prototype would still apply. */
4500#ifdef __cplusplus
4501extern "C"
4502#endif
4503char dnet_ntoa ();
4504int
4505main ()
4506{
4507return dnet_ntoa ();
4508 ;
4509 return 0;
4510}
4511_ACEOF
4512if ac_fn_c_try_link "$LINENO"; then :
4513 ac_cv_lib_dnet_stub_dnet_ntoa=yes
4514else
4515 ac_cv_lib_dnet_stub_dnet_ntoa=no
4516fi
4517rm -f core conftest.err conftest.$ac_objext \
4518 conftest$ac_exeext conftest.$ac_ext
4519LIBS=$ac_check_lib_save_LIBS
4520fi
4521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4522$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
4523if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
4524 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4525fi
4526
4527 fi
4528fi
4529rm -f core conftest.err conftest.$ac_objext \
4530 conftest$ac_exeext conftest.$ac_ext
4531 LIBS="$ac_xsave_LIBS"
4532
4533 # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
4534 # to get the SysV transport functions.
4535 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4536 # needs -lnsl.
4537 # The nsl library prevents programs from opening the X display
4538 # on Irix 5.2, according to T.E. Dickey.
4539 # The functions gethostbyname, getservbyname, and inet_addr are
4540 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4541 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
4542if test "x$ac_cv_func_gethostbyname" = xyes; then :
4543
4544fi
4545
4546 if test $ac_cv_func_gethostbyname = no; then
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
4548$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
4549if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
4550 $as_echo_n "(cached) " >&6
4551else
4552 ac_check_lib_save_LIBS=$LIBS
4553LIBS="-lnsl $LIBS"
4554cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4555/* end confdefs.h. */
4556
4557/* Override any GCC internal prototype to avoid an error.
4558 Use char because int might match the return type of a GCC
4559 builtin and then its argument prototype would still apply. */
4560#ifdef __cplusplus
4561extern "C"
4562#endif
4563char gethostbyname ();
4564int
4565main ()
4566{
4567return gethostbyname ();
4568 ;
4569 return 0;
4570}
4571_ACEOF
4572if ac_fn_c_try_link "$LINENO"; then :
4573 ac_cv_lib_nsl_gethostbyname=yes
4574else
4575 ac_cv_lib_nsl_gethostbyname=no
4576fi
4577rm -f core conftest.err conftest.$ac_objext \
4578 conftest$ac_exeext conftest.$ac_ext
4579LIBS=$ac_check_lib_save_LIBS
4580fi
4581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
4582$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
4583if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
4584 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4585fi
4586
4587 if test $ac_cv_lib_nsl_gethostbyname = no; then
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
4589$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
4590if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
4591 $as_echo_n "(cached) " >&6
4592else
4593 ac_check_lib_save_LIBS=$LIBS
4594LIBS="-lbsd $LIBS"
4595cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4596/* end confdefs.h. */
4597
4598/* Override any GCC internal prototype to avoid an error.
4599 Use char because int might match the return type of a GCC
4600 builtin and then its argument prototype would still apply. */
4601#ifdef __cplusplus
4602extern "C"
4603#endif
4604char gethostbyname ();
4605int
4606main ()
4607{
4608return gethostbyname ();
4609 ;
4610 return 0;
4611}
4612_ACEOF
4613if ac_fn_c_try_link "$LINENO"; then :
4614 ac_cv_lib_bsd_gethostbyname=yes
4615else
4616 ac_cv_lib_bsd_gethostbyname=no
4617fi
4618rm -f core conftest.err conftest.$ac_objext \
4619 conftest$ac_exeext conftest.$ac_ext
4620LIBS=$ac_check_lib_save_LIBS
4621fi
4622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
4623$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
4624if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
4625 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
4626fi
4627
4628 fi
4629 fi
4630
4631 # [email protected] says without -lsocket,
4632 # socket/setsockopt and other routines are undefined under SCO ODT
4633 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4634 # on later versions), says Simon Leinen: it contains gethostby*
4635 # variants that don't use the name server (or something). -lsocket
4636 # must be given before -lnsl if both are needed. We assume that
4637 # if connect needs -lnsl, so does gethostbyname.
4638 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
4639if test "x$ac_cv_func_connect" = xyes; then :
4640
4641fi
4642
4643 if test $ac_cv_func_connect = no; then
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
4645$as_echo_n "checking for connect in -lsocket... " >&6; }
4646if ${ac_cv_lib_socket_connect+:} false; then :
4647 $as_echo_n "(cached) " >&6
4648else
4649 ac_check_lib_save_LIBS=$LIBS
4650LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4651cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4652/* end confdefs.h. */
4653
4654/* Override any GCC internal prototype to avoid an error.
4655 Use char because int might match the return type of a GCC
4656 builtin and then its argument prototype would still apply. */
4657#ifdef __cplusplus
4658extern "C"
4659#endif
4660char connect ();
4661int
4662main ()
4663{
4664return connect ();
4665 ;
4666 return 0;
4667}
4668_ACEOF
4669if ac_fn_c_try_link "$LINENO"; then :
4670 ac_cv_lib_socket_connect=yes
4671else
4672 ac_cv_lib_socket_connect=no
4673fi
4674rm -f core conftest.err conftest.$ac_objext \
4675 conftest$ac_exeext conftest.$ac_ext
4676LIBS=$ac_check_lib_save_LIBS
4677fi
4678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
4679$as_echo "$ac_cv_lib_socket_connect" >&6; }
4680if test "x$ac_cv_lib_socket_connect" = xyes; then :
4681 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4682fi
4683
4684 fi
4685
4686 # Guillermo Gomez says -lposix is necessary on A/UX.
4687 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
4688if test "x$ac_cv_func_remove" = xyes; then :
4689
4690fi
4691
4692 if test $ac_cv_func_remove = no; then
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
4694$as_echo_n "checking for remove in -lposix... " >&6; }
4695if ${ac_cv_lib_posix_remove+:} false; then :
4696 $as_echo_n "(cached) " >&6
4697else
4698 ac_check_lib_save_LIBS=$LIBS
4699LIBS="-lposix $LIBS"
4700cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4701/* end confdefs.h. */
4702
4703/* Override any GCC internal prototype to avoid an error.
4704 Use char because int might match the return type of a GCC
4705 builtin and then its argument prototype would still apply. */
4706#ifdef __cplusplus
4707extern "C"
4708#endif
4709char remove ();
4710int
4711main ()
4712{
4713return remove ();
4714 ;
4715 return 0;
4716}
4717_ACEOF
4718if ac_fn_c_try_link "$LINENO"; then :
4719 ac_cv_lib_posix_remove=yes
4720else
4721 ac_cv_lib_posix_remove=no
4722fi
4723rm -f core conftest.err conftest.$ac_objext \
4724 conftest$ac_exeext conftest.$ac_ext
4725LIBS=$ac_check_lib_save_LIBS
4726fi
4727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
4728$as_echo "$ac_cv_lib_posix_remove" >&6; }
4729if test "x$ac_cv_lib_posix_remove" = xyes; then :
4730 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4731fi
4732
4733 fi
4734
4735 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4736 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
4737if test "x$ac_cv_func_shmat" = xyes; then :
4738
4739fi
4740
4741 if test $ac_cv_func_shmat = no; then
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
4743$as_echo_n "checking for shmat in -lipc... " >&6; }
4744if ${ac_cv_lib_ipc_shmat+:} false; then :
4745 $as_echo_n "(cached) " >&6
4746else
4747 ac_check_lib_save_LIBS=$LIBS
4748LIBS="-lipc $LIBS"
4749cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4750/* end confdefs.h. */
4751
4752/* Override any GCC internal prototype to avoid an error.
4753 Use char because int might match the return type of a GCC
4754 builtin and then its argument prototype would still apply. */
4755#ifdef __cplusplus
4756extern "C"
4757#endif
4758char shmat ();
4759int
4760main ()
4761{
4762return shmat ();
4763 ;
4764 return 0;
4765}
4766_ACEOF
4767if ac_fn_c_try_link "$LINENO"; then :
4768 ac_cv_lib_ipc_shmat=yes
4769else
4770 ac_cv_lib_ipc_shmat=no
4771fi
4772rm -f core conftest.err conftest.$ac_objext \
4773 conftest$ac_exeext conftest.$ac_ext
4774LIBS=$ac_check_lib_save_LIBS
4775fi
4776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
4777$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
4778if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
4779 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4780fi
4781
4782 fi
4783 fi
4784
4785 # Check for libraries that X11R6 Xt/Xaw programs need.
4786 ac_save_LDFLAGS=$LDFLAGS
4787 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4788 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4789 # check for ICE first), but we must link in the order -lSM -lICE or
4790 # we get undefined symbols. So assume we have SM if we have ICE.
4791 # These have to be linked with before -lX11, unlike the other
4792 # libraries we check for below, so use a different variable.
4793 # John Interrante, Karl Berry
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
4795$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
4796if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
4797 $as_echo_n "(cached) " >&6
4798else
4799 ac_check_lib_save_LIBS=$LIBS
4800LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4801cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4802/* end confdefs.h. */
4803
4804/* Override any GCC internal prototype to avoid an error.
4805 Use char because int might match the return type of a GCC
4806 builtin and then its argument prototype would still apply. */
4807#ifdef __cplusplus
4808extern "C"
4809#endif
4810char IceConnectionNumber ();
4811int
4812main ()
4813{
4814return IceConnectionNumber ();
4815 ;
4816 return 0;
4817}
4818_ACEOF
4819if ac_fn_c_try_link "$LINENO"; then :
4820 ac_cv_lib_ICE_IceConnectionNumber=yes
4821else
4822 ac_cv_lib_ICE_IceConnectionNumber=no
4823fi
4824rm -f core conftest.err conftest.$ac_objext \
4825 conftest$ac_exeext conftest.$ac_ext
4826LIBS=$ac_check_lib_save_LIBS
4827fi
4828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4829$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
4830if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
4831 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4832fi
4833
4834 LDFLAGS=$ac_save_LDFLAGS
4835
4836fi
4837
4838if test "$no_x" = "yes"; then
4839 echo
4840 echo "ERROR: Could not find X Window System headers/libraries."
4841 if test -f /etc/debian_version; then
4842 echo "Probably you need to install the libx11-dev package."
4843 elif test -f /etc/redhat-release; then
4844 echo "Probably you need to install the libX11-devel package."
4845 fi
4846 echo "To specify paths manually, use the options --x-includes and --x-libraries."
4847 echo
4848 exit 1
4849fi
4850
4851# Extract the first word of "pkg-config", so it can be a program name with args.
4852set dummy pkg-config; ac_word=$2
4853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4854$as_echo_n "checking for $ac_word... " >&6; }
4855if ${ac_cv_path_PKG_CONFIG+:} false; then :
4856 $as_echo_n "(cached) " >&6
4857else
4858 case $PKG_CONFIG in
4859 [\\/]* | ?:[\\/]*)
4860 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4861 ;;
4862 *)
4863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4864for as_dir in $PATH
4865do
4866 IFS=$as_save_IFS
4867 test -z "$as_dir" && as_dir=.
4868 for ac_exec_ext in '' $ac_executable_extensions; do
4869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4870 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4872 break 2
4873 fi
4874done
4875 done
4876IFS=$as_save_IFS
4877
4878 ;;
4879esac
4880fi
4881PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4882if test -n "$PKG_CONFIG"; then
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4884$as_echo "$PKG_CONFIG" >&6; }
4885else
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4887$as_echo "no" >&6; }
4888fi
4889
4890
4891
4892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
4893$as_echo_n "checking for library containing socket... " >&6; }
4894if ${ac_cv_search_socket+:} false; then :
4895 $as_echo_n "(cached) " >&6
4896else
4897 ac_func_search_save_LIBS=$LIBS
4898cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4899/* end confdefs.h. */
4900
4901/* Override any GCC internal prototype to avoid an error.
4902 Use char because int might match the return type of a GCC
4903 builtin and then its argument prototype would still apply. */
4904#ifdef __cplusplus
4905extern "C"
4906#endif
4907char socket ();
4908int
4909main ()
4910{
4911return socket ();
4912 ;
4913 return 0;
4914}
4915_ACEOF
4916for ac_lib in '' socket; do
4917 if test -z "$ac_lib"; then
4918 ac_res="none required"
4919 else
4920 ac_res=-l$ac_lib
4921 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4922 fi
4923 if ac_fn_c_try_link "$LINENO"; then :
4924 ac_cv_search_socket=$ac_res
4925fi
4926rm -f core conftest.err conftest.$ac_objext \
4927 conftest$ac_exeext
4928 if ${ac_cv_search_socket+:} false; then :
4929 break
4930fi
4931done
4932if ${ac_cv_search_socket+:} false; then :
4933
4934else
4935 ac_cv_search_socket=no
4936fi
4937rm conftest.$ac_ext
4938LIBS=$ac_func_search_save_LIBS
4939fi
4940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
4941$as_echo "$ac_cv_search_socket" >&6; }
4942ac_res=$ac_cv_search_socket
4943if test "$ac_res" != no; then :
4944 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4945
4946fi
4947
4948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
4949$as_echo_n "checking for library containing inet_aton... " >&6; }
4950if ${ac_cv_search_inet_aton+:} false; then :
4951 $as_echo_n "(cached) " >&6
4952else
4953 ac_func_search_save_LIBS=$LIBS
4954cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4955/* end confdefs.h. */
4956
4957/* Override any GCC internal prototype to avoid an error.
4958 Use char because int might match the return type of a GCC
4959 builtin and then its argument prototype would still apply. */
4960#ifdef __cplusplus
4961extern "C"
4962#endif
4963char inet_aton ();
4964int
4965main ()
4966{
4967return inet_aton ();
4968 ;
4969 return 0;
4970}
4971_ACEOF
4972for ac_lib in '' resolv; do
4973 if test -z "$ac_lib"; then
4974 ac_res="none required"
4975 else
4976 ac_res=-l$ac_lib
4977 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4978 fi
4979 if ac_fn_c_try_link "$LINENO"; then :
4980 ac_cv_search_inet_aton=$ac_res
4981fi
4982rm -f core conftest.err conftest.$ac_objext \
4983 conftest$ac_exeext
4984 if ${ac_cv_search_inet_aton+:} false; then :
4985 break
4986fi
4987done
4988if ${ac_cv_search_inet_aton+:} false; then :
4989
4990else
4991 ac_cv_search_inet_aton=no
4992fi
4993rm conftest.$ac_ext
4994LIBS=$ac_func_search_save_LIBS
4995fi
4996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
4997$as_echo "$ac_cv_search_inet_aton" >&6; }
4998ac_res=$ac_cv_search_inet_aton
4999if test "$ac_res" != no; then :
5000 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5001
5002fi
5003
5004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
5005$as_echo_n "checking for library containing clock_gettime... " >&6; }
5006if ${ac_cv_search_clock_gettime+:} false; then :
5007 $as_echo_n "(cached) " >&6
5008else
5009 ac_func_search_save_LIBS=$LIBS
5010cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5011/* end confdefs.h. */
5012
5013/* Override any GCC internal prototype to avoid an error.
5014 Use char because int might match the return type of a GCC
5015 builtin and then its argument prototype would still apply. */
5016#ifdef __cplusplus
5017extern "C"
5018#endif
5019char clock_gettime ();
5020int
5021main ()
5022{
5023return clock_gettime ();
5024 ;
5025 return 0;
5026}
5027_ACEOF
5028for ac_lib in '' rt; do
5029 if test -z "$ac_lib"; then
5030 ac_res="none required"
5031 else
5032 ac_res=-l$ac_lib
5033 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5034 fi
5035 if ac_fn_c_try_link "$LINENO"; then :
5036 ac_cv_search_clock_gettime=$ac_res
5037fi
5038rm -f core conftest.err conftest.$ac_objext \
5039 conftest$ac_exeext
5040 if ${ac_cv_search_clock_gettime+:} false; then :
5041 break
5042fi
5043done
5044if ${ac_cv_search_clock_gettime+:} false; then :
5045
5046else
5047 ac_cv_search_clock_gettime=no
5048fi
5049rm conftest.$ac_ext
5050LIBS=$ac_func_search_save_LIBS
5051fi
5052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
5053$as_echo "$ac_cv_search_clock_gettime" >&6; }
5054ac_res=$ac_cv_search_clock_gettime
5055if test "$ac_res" != no; then :
5056 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5057
5058fi
5059
5060
5061ac_fn_c_check_header_mongrel "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
5062if test "x$ac_cv_header_sys_select_h" = xyes; then :
5063 $as_echo "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
5064
5065fi
5066
5067
5068ac_fn_c_check_header_mongrel "$LINENO" "sys/modem.h" "ac_cv_header_sys_modem_h" "$ac_includes_default"
5069if test "x$ac_cv_header_sys_modem_h" = xyes; then :
5070 $as_echo "#define HAVE_SYS_MODEM_H 1" >>confdefs.h
5071
5072fi
5073
5074
5075ac_fn_c_check_header_mongrel "$LINENO" "sys/filio.h" "ac_cv_header_sys_filio_h" "$ac_includes_default"
5076if test "x$ac_cv_header_sys_filio_h" = xyes; then :
5077 $as_echo "#define HAVE_SYS_FILIO_H 1" >>confdefs.h
5078
5079fi
5080
5081
5082ac_fn_c_check_header_mongrel "$LINENO" "sys/strtio.h" "ac_cv_header_sys_strtio_h" "$ac_includes_default"
5083if test "x$ac_cv_header_sys_strtio_h" = xyes; then :
5084 $as_echo "#define HAVE_SYS_STRTIO_H 1" >>confdefs.h
5085
5086fi
5087
5088
5089ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
5090if test "x$ac_cv_header_locale_h" = xyes; then :
5091 $as_echo "#define HAVE_LOCALE_H 1" >>confdefs.h
5092
5093fi
5094
5095
5096ac_fn_c_check_header_mongrel "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
5097if test "x$ac_cv_header_langinfo_h" = xyes; then :
5098 $as_echo "#define HAVE_LANGINFO_H 1" >>confdefs.h
5099
5100fi
5101
5102
5103ac_fn_c_check_header_mongrel "$LINENO" "sysexits.h" "ac_cv_header_sysexits_h" "$ac_includes_default"
5104if test "x$ac_cv_header_sysexits_h" = xyes; then :
5105 $as_echo "#define HAVE_SYSEXITS_H 1" >>confdefs.h
5106
5107fi
5108
5109
5110
5111if test -n "$ac_tool_prefix"; then
5112 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5113set dummy ${ac_tool_prefix}strip; ac_word=$2
5114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5115$as_echo_n "checking for $ac_word... " >&6; }
5116if ${ac_cv_prog_STRIP+:} false; then :
5117 $as_echo_n "(cached) " >&6
5118else
5119 if test -n "$STRIP"; then
5120 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5121else
5122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5123for as_dir in $PATH
5124do
5125 IFS=$as_save_IFS
5126 test -z "$as_dir" && as_dir=.
5127 for ac_exec_ext in '' $ac_executable_extensions; do
5128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5129 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5131 break 2
5132 fi
5133done
5134 done
5135IFS=$as_save_IFS
5136
5137fi
5138fi
5139STRIP=$ac_cv_prog_STRIP
5140if test -n "$STRIP"; then
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5142$as_echo "$STRIP" >&6; }
5143else
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5145$as_echo "no" >&6; }
5146fi
5147
5148
5149fi
5150if test -z "$ac_cv_prog_STRIP"; then
5151 ac_ct_STRIP=$STRIP
5152 # Extract the first word of "strip", so it can be a program name with args.
5153set dummy strip; ac_word=$2
5154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5155$as_echo_n "checking for $ac_word... " >&6; }
5156if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5157 $as_echo_n "(cached) " >&6
5158else
5159 if test -n "$ac_ct_STRIP"; then
5160 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5161else
5162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5163for as_dir in $PATH
5164do
5165 IFS=$as_save_IFS
5166 test -z "$as_dir" && as_dir=.
5167 for ac_exec_ext in '' $ac_executable_extensions; do
5168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5169 ac_cv_prog_ac_ct_STRIP="strip"
5170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5171 break 2
5172 fi
5173done
5174 done
5175IFS=$as_save_IFS
5176
5177fi
5178fi
5179ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5180if test -n "$ac_ct_STRIP"; then
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5182$as_echo "$ac_ct_STRIP" >&6; }
5183else
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5185$as_echo "no" >&6; }
5186fi
5187
5188 if test "x$ac_ct_STRIP" = x; then
5189 STRIP=":"
5190 else
5191 case $cross_compiling:$ac_tool_warned in
5192yes:)
5193{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5194$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5195ac_tool_warned=yes ;;
5196esac
5197 STRIP=$ac_ct_STRIP
5198 fi
5199else
5200 STRIP="$ac_cv_prog_STRIP"
5201fi
5202
5203
5204
5205
5206
5207
5208
5209rpath=""
5210
5211#
5212# OpenSSL detection borrowed from stunnel
5213#
5214checkssldir() { :
5215 if test -f "$1/include/openssl/ssl.h"; then
5216 ssldir="$1"
5217 return 0
5218 fi
5219 return 1
5220}
5221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL directory" >&5
5222$as_echo_n "checking for OpenSSL directory... " >&6; }
5223
5224# Check whether --with-openssl was given.
5225if test "${with_openssl+set}" = set; then :
5226 withval=$with_openssl;
5227 checkssldir "$withval"
5228
5229else
5230
5231 for maindir in /usr/local /usr/lib /usr/pkg /usr /var/ssl /opt; do
5232 for dir in $maindir $maindir/openssl $maindir/ssl; do
5233 checkssldir $dir && break 2
5234 done
5235 done
5236
5237
5238fi
5239
5240if test -z "$ssldir"; then
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
5242$as_echo "Not found" >&6; }
5243 echo
5244 echo "ERROR: Could not find OpenSSL headers/libraries."
5245 if test -f /etc/debian_version; then
5246 echo "Probably you need to install the libssl-dev package."
5247 elif test -f /etc/redhat-release; then
5248 echo "Probably you need to install the openssl-devel package."
5249 fi
5250 echo "To specify a path manually, use the --with-openssl option."
5251 echo
5252 exit 1
5253fi
5254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssldir" >&5
5255$as_echo "$ssldir" >&6; }
5256
5257cat >>confdefs.h <<_ACEOF
5258#define ssldir "$ssldir"
5259_ACEOF
5260
5261
5262CFLAGS="$CFLAGS -I$ssldir/include"
5263# Check whether --enable-static-openssl was given.
5264if test "${enable_static_openssl+set}" = set; then :
5265 enableval=$enable_static_openssl;
5266LIBS="$LIBS $ssldir/lib/libcrypto.a"
5267
5268else
5269
5270LIBS="$LIBS -L$ssldir/lib -lcrypto"
5271rpath="$rpath:$ssldir/lib"
5272
5273fi
5274
5275# xrandr
5276if test -n "$PKG_CONFIG"; then
5277
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not available, cannot check for xrandr" >&5
5279$as_echo "$as_me: WARNING: pkg-config not available, cannot check for xrandr" >&2;}
5280 HAVE_XRANDR=0
5281
5282fi
5283if test x"$HAVE_XRANDR" = "x1"; then
5284 CFLAGS="$CFLAGS $XRANDR_CFLAGS"
5285 LIBS="$LIBS $XRANDR_LIBS"
5286 $as_echo "#define HAVE_XRANDR 1" >>confdefs.h
5287
5288fi
5289
5290# Check whether --enable-smartcard was given.
5291if test "${enable_smartcard+set}" = set; then :
5292 enableval=$enable_smartcard;
5293 case "$OSTYPE" in
5294 darwin*)
5295 ac_fn_c_check_header_mongrel "$LINENO" "PCSC/pcsclite.h" "ac_cv_header_PCSC_pcsclite_h" "$ac_includes_default"
5296if test "x$ac_cv_header_PCSC_pcsclite_h" = xyes; then :
5297 WITH_SCARD=1
5298else
5299 WITH_SCARD=0
5300fi
5301
5302
5303 PCSCLITE_CFLAGS=""
5304 PCSCLITE_LIBS="-framework PCSC"
5305 ;;
5306 *)
5307 if test -n "$PKG_CONFIG"; then
5308
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not available, cannot check for libpcsclite" >&5
5310$as_echo "$as_me: WARNING: pkg-config not available, cannot check for libpcsclite" >&2;}
5311 WITH_SCARD=0
5312
5313 fi
5314 ;;
5315 esac
5316
5317 if test x"$WITH_SCARD" = "x1"; then
5318 SCARDOBJ="scard.o"
5319 CFLAGS="$CFLAGS $PCSCLITE_CFLAGS"
5320 LIBS="$LIBS $PCSCLITE_LIBS"
5321 $as_echo "#define WITH_SCARD 1" >>confdefs.h
5322
5323 fi
5324
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for old version of PCSC" >&5
5326$as_echo_n "checking for old version of PCSC... " >&6; }
5327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5328/* end confdefs.h. */
5329
5330 #include <stdlib.h>
5331 #ifdef __APPLE__
5332 #include <PCSC/wintypes.h>
5333 #include <PCSC/winscard.h>
5334 #else
5335 #include <winscard.h>
5336 #endif
5337
5338int
5339main ()
5340{
5341SCardControl(NULL, NULL, 0, NULL, NULL);
5342 ;
5343 return 0;
5344}
5345_ACEOF
5346if ac_fn_c_try_link "$LINENO"; then :
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5348$as_echo "yes" >&6; }
5349$as_echo "#define WITH_PCSC120 1" >>confdefs.h
5350
5351else
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5353$as_echo "no" >&6; }
5354
5355fi
5356rm -f core conftest.err conftest.$ac_objext \
5357 conftest$ac_exeext conftest.$ac_ext
5358
5359fi
5360
5361
5362
5363
5364#
5365# Alignment
5366#
5367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if architecture needs alignment" >&5
5368$as_echo_n "checking if architecture needs alignment... " >&6; }
5369if test "$cross_compiling" = yes; then :
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming yes" >&5
5371$as_echo "assuming yes" >&6; }
5372 $as_echo "#define NEED_ALIGN 1" >>confdefs.h
5373
5374else
5375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5376/* end confdefs.h. */
5377
5378#include <stdlib.h>
5379#include <signal.h>
5380int main(int argc, char **argv)
5381{
5382 unsigned char test[8] = { 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x88 };
5383 signal(SIGBUS, exit);
5384 signal(SIGABRT, exit);
5385 signal(SIGSEGV, exit);
5386 if (*((unsigned int *)(test + 1)) != 0x55443322 && *((unsigned int *)(test + 1)) != 0x22334455) {
5387 return 1;
5388 }
5389 return 0;
5390}
5391_ACEOF
5392if ac_fn_c_try_run "$LINENO"; then :
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5394$as_echo "no" >&6; }
5395else
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5397$as_echo "yes" >&6; }
5398 $as_echo "#define NEED_ALIGN 1" >>confdefs.h
5399
5400fi
5401rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5402 conftest.$ac_objext conftest.beam conftest.$ac_ext
5403fi
5404
5405
5406#
5407# linux/compiler.h
5408#
5409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if linux/compiler.h is required" >&5
5410$as_echo_n "checking if linux/compiler.h is required... " >&6; }
5411cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5412/* end confdefs.h. */
5413
5414#include <linux/compiler.h>
5415
5416int
5417main ()
5418{
5419
5420 ;
5421 return 0;
5422}
5423_ACEOF
5424if ac_fn_c_try_compile "$LINENO"; then :
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5426$as_echo "yes" >&6; }
5427 $as_echo "#define VBOX_WITH_LINUX_COMPILER_H 1" >>confdefs.h
5428
5429else
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5431$as_echo "no" >&6; }
5432fi
5433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5434
5435
5436#
5437# EGD
5438#
5439
5440# Check whether --with-egd-socket was given.
5441if test "${with_egd_socket+set}" = set; then :
5442 withval=$with_egd_socket; EGD_SOCKET="$withval"
5443else
5444 EGD_SOCKET="/var/run/egd-pool"
5445
5446fi
5447
5448cat >>confdefs.h <<_ACEOF
5449#define EGD_SOCKET "$EGD_SOCKET"
5450_ACEOF
5451
5452
5453
5454#
5455# rdp2vnc
5456#
5457vncserverconfig=libvncserver-config
5458
5459# Check whether --with-libvncserver-config was given.
5460if test "${with_libvncserver_config+set}" = set; then :
5461 withval=$with_libvncserver_config; vncserverconfig="$withval"
5462
5463fi
5464
5465
5466# Check whether --with-libvncserver was given.
5467if test "${with_libvncserver+set}" = set; then :
5468 withval=$with_libvncserver;
5469 VNCINC=`$vncserverconfig --cflags`
5470
5471 LDVNC=`$vncserverconfig --libs`
5472
5473 VNCLINK=`$vncserverconfig --link`
5474
5475 RDP2VNCTARGET="rdp2vnc"
5476
5477
5478
5479fi
5480
5481
5482#
5483# sound
5484#
5485
5486sound="yes"
5487
5488# Check whether --with-sound was given.
5489if test "${with_sound+set}" = set; then :
5490 withval=$with_sound;
5491 sound="$withval"
5492
5493fi
5494
5495
5496ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
5497if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
5498 HAVE_OSS=1
5499else
5500 HAVE_OSS=0
5501fi
5502
5503
5504ac_fn_c_check_header_mongrel "$LINENO" "dmedia/audio.h" "ac_cv_header_dmedia_audio_h" "$ac_includes_default"
5505if test "x$ac_cv_header_dmedia_audio_h" = xyes; then :
5506 HAVE_SGI=1
5507else
5508 HAVE_SGI=0
5509fi
5510
5511
5512ac_fn_c_check_header_mongrel "$LINENO" "sys/audioio.h" "ac_cv_header_sys_audioio_h" "$ac_includes_default"
5513if test "x$ac_cv_header_sys_audioio_h" = xyes; then :
5514 HAVE_SUN=1
5515else
5516 HAVE_SUN=0
5517fi
5518
5519
5520
5521# Check whether --enable-static-libsamplerate was given.
5522if test "${enable_static_libsamplerate+set}" = set; then :
5523 enableval=$enable_static_libsamplerate; static_libsamplerate=yes
5524else
5525 static_libsamplerate=no
5526fi
5527
5528
5529if test -n "$PKG_CONFIG"; then
5530
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not available, cannot check for ao" >&5
5532$as_echo "$as_me: WARNING: pkg-config not available, cannot check for ao" >&2;}
5533 HAVE_LIBAO=0
5534
5535
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not available, cannot check for alsa" >&5
5537$as_echo "$as_me: WARNING: pkg-config not available, cannot check for alsa" >&2;}
5538 HAVE_ALSA=0
5539
5540
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not available, cannot check for samplerate" >&5
5542$as_echo "$as_me: WARNING: pkg-config not available, cannot check for samplerate" >&2;}
5543 HAVE_LIBSAMPLERATE=0
5544
5545 if test x"$HAVE_LIBSAMPLERATE" = "x1"; then
5546 $as_echo "#define HAVE_LIBSAMPLERATE 1" >>confdefs.h
5547
5548 if test x"$static_libsamplerate" = "xyes"; then
5549 _libsamplerate_libdir=`$PKG_CONFIG --errors-to-stdout --variable=libdir samplerate`
5550 LIBSAMPLERATE_LIBS="$_libsamplerate_libdir""/libsamplerate.a"
5551 fi
5552 LIBSAMPLERATE_LIBS="$LIBSAMPLERATE_LIBS -lm"
5553 fi
5554fi
5555
5556if test "$sound" != "no"; then
5557 SOUNDOBJ="$SOUNDOBJ rdpsnd.o rdpsnd_dsp.o"
5558 CFLAGS="$CFLAGS $LIBSAMPLERATE_CFLAGS"
5559 LIBS="$LIBS $LIBSAMPLERATE_LIBS"
5560 $as_echo "#define WITH_RDPSND 1" >>confdefs.h
5561
5562fi
5563
5564case $sound in
5565 yes)
5566 if test x"$HAVE_OSS" = "x1"; then
5567 SOUNDOBJ="$SOUNDOBJ rdpsnd_oss.o"
5568 $as_echo "#define RDPSND_OSS 1" >>confdefs.h
5569
5570 fi
5571
5572 if test x"$HAVE_SGI" = "x1"; then
5573 SOUNDOBJ="$SOUNDOBJ rdpsnd_sgi.o"
5574 LIBS="$LIBS -laudio"
5575 $as_echo "#define RDPSND_SGI 1" >>confdefs.h
5576
5577 fi
5578
5579 if test x"$HAVE_SUN" = "x1"; then
5580 SOUNDOBJ="$SOUNDOBJ rdpsnd_sun.o"
5581 $as_echo "#define RDPSND_SUN 1" >>confdefs.h
5582
5583 fi
5584
5585 if test x"$HAVE_ALSA" = "x1"; then
5586 SOUNDOBJ="$SOUNDOBJ rdpsnd_alsa.o"
5587 CFLAGS="$CFLAGS $ALSA_CFLAGS"
5588 LIBS="$LIBS $ALSA_LIBS"
5589 $as_echo "#define RDPSND_ALSA 1" >>confdefs.h
5590
5591 fi
5592
5593 if test x"$HAVE_LIBAO" = "x1"; then
5594 SOUNDOBJ="$SOUNDOBJ rdpsnd_libao.o"
5595 CFLAGS="$CFLAGS $LIBAO_CFLAGS"
5596 LIBS="$LIBS $LIBAO_LIBS"
5597 $as_echo "#define RDPSND_LIBAO 1" >>confdefs.h
5598
5599 fi
5600
5601 ;;
5602
5603 oss)
5604 if test x"$HAVE_OSS" = "x1"; then
5605 SOUNDOBJ="$SOUNDOBJ rdpsnd_oss.o"
5606 $as_echo "#define RDPSND_OSS 1" >>confdefs.h
5607
5608 else
5609 as_fn_error $? "Selected sound system is not available." "$LINENO" 5
5610 fi
5611 ;;
5612
5613 sgi)
5614 if test x"$HAVE_SGI" = "x1"; then
5615 SOUNDOBJ="$SOUNDOBJ rdpsnd_sgi.o"
5616 LIBS="$LIBS -laudio"
5617 $as_echo "#define RDPSND_SGI 1" >>confdefs.h
5618
5619 else
5620 as_fn_error $? "Selected sound system is not available." "$LINENO" 5
5621 fi
5622 ;;
5623
5624 sun)
5625 if test x"$HAVE_SUN" = "x1"; then
5626 SOUNDOBJ="$SOUNDOBJ rdpsnd_sun.o"
5627 $as_echo "#define RDPSND_SUN 1" >>confdefs.h
5628
5629 else
5630 as_fn_error $? "Selected sound system is not available." "$LINENO" 5
5631 fi
5632 ;;
5633
5634 alsa)
5635 if test x"$HAVE_ALSA" = "x1"; then
5636 SOUNDOBJ="$SOUNDOBJ rdpsnd_alsa.o"
5637 CFLAGS="$CFLAGS $ALSA_CFLAGS"
5638 LIBS="$LIBS $ALSA_LIBS"
5639 $as_echo "#define RDPSND_ALSA 1" >>confdefs.h
5640
5641 else
5642 as_fn_error $? "Selected sound system is not available." "$LINENO" 5
5643 fi
5644 ;;
5645
5646 libao)
5647 if test x"$HAVE_LIBAO" = "x1"; then
5648 SOUNDOBJ="$SOUNDOBJ rdpsnd_libao.o"
5649 CFLAGS="$CFLAGS $LIBAO_CFLAGS"
5650 LIBS="$LIBS $LIBAO_LIBS"
5651 $as_echo "#define RDPSND_LIBAO 1" >>confdefs.h
5652
5653 else
5654 as_fn_error $? "Selected sound system is not available." "$LINENO" 5
5655 fi
5656 ;;
5657
5658 no)
5659 ;;
5660
5661 *)
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: sound support disabled" >&5
5663$as_echo "$as_me: WARNING: sound support disabled" >&2;}
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Currently supported systems are Open Sound System (oss), SGI AL (sgi), Sun/BSD (sun), ALSA (alsa) and libao" >&5
5665$as_echo "$as_me: WARNING: Currently supported systems are Open Sound System (oss), SGI AL (sgi), Sun/BSD (sun), ALSA (alsa) and libao" >&2;}
5666 ;;
5667esac
5668
5669
5670
5671#
5672# dirfd
5673#
5674
5675
5676
5677
5678
5679 ac_header_dirent=no
5680for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5681 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
5683$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
5684if eval \${$as_ac_Header+:} false; then :
5685 $as_echo_n "(cached) " >&6
5686else
5687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5688/* end confdefs.h. */
5689#include <sys/types.h>
5690#include <$ac_hdr>
5691
5692int
5693main ()
5694{
5695if ((DIR *) 0)
5696return 0;
5697 ;
5698 return 0;
5699}
5700_ACEOF
5701if ac_fn_c_try_compile "$LINENO"; then :
5702 eval "$as_ac_Header=yes"
5703else
5704 eval "$as_ac_Header=no"
5705fi
5706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5707fi
5708eval ac_res=\$$as_ac_Header
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5710$as_echo "$ac_res" >&6; }
5711if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5712 cat >>confdefs.h <<_ACEOF
5713#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5714_ACEOF
5715
5716ac_header_dirent=$ac_hdr; break
5717fi
5718
5719done
5720# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5721if test $ac_header_dirent = dirent.h; then
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5723$as_echo_n "checking for library containing opendir... " >&6; }
5724if ${ac_cv_search_opendir+:} false; then :
5725 $as_echo_n "(cached) " >&6
5726else
5727 ac_func_search_save_LIBS=$LIBS
5728cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5729/* end confdefs.h. */
5730
5731/* Override any GCC internal prototype to avoid an error.
5732 Use char because int might match the return type of a GCC
5733 builtin and then its argument prototype would still apply. */
5734#ifdef __cplusplus
5735extern "C"
5736#endif
5737char opendir ();
5738int
5739main ()
5740{
5741return opendir ();
5742 ;
5743 return 0;
5744}
5745_ACEOF
5746for ac_lib in '' dir; do
5747 if test -z "$ac_lib"; then
5748 ac_res="none required"
5749 else
5750 ac_res=-l$ac_lib
5751 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5752 fi
5753 if ac_fn_c_try_link "$LINENO"; then :
5754 ac_cv_search_opendir=$ac_res
5755fi
5756rm -f core conftest.err conftest.$ac_objext \
5757 conftest$ac_exeext
5758 if ${ac_cv_search_opendir+:} false; then :
5759 break
5760fi
5761done
5762if ${ac_cv_search_opendir+:} false; then :
5763
5764else
5765 ac_cv_search_opendir=no
5766fi
5767rm conftest.$ac_ext
5768LIBS=$ac_func_search_save_LIBS
5769fi
5770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5771$as_echo "$ac_cv_search_opendir" >&6; }
5772ac_res=$ac_cv_search_opendir
5773if test "$ac_res" != no; then :
5774 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5775
5776fi
5777
5778else
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5780$as_echo_n "checking for library containing opendir... " >&6; }
5781if ${ac_cv_search_opendir+:} false; then :
5782 $as_echo_n "(cached) " >&6
5783else
5784 ac_func_search_save_LIBS=$LIBS
5785cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5786/* end confdefs.h. */
5787
5788/* Override any GCC internal prototype to avoid an error.
5789 Use char because int might match the return type of a GCC
5790 builtin and then its argument prototype would still apply. */
5791#ifdef __cplusplus
5792extern "C"
5793#endif
5794char opendir ();
5795int
5796main ()
5797{
5798return opendir ();
5799 ;
5800 return 0;
5801}
5802_ACEOF
5803for ac_lib in '' x; do
5804 if test -z "$ac_lib"; then
5805 ac_res="none required"
5806 else
5807 ac_res=-l$ac_lib
5808 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5809 fi
5810 if ac_fn_c_try_link "$LINENO"; then :
5811 ac_cv_search_opendir=$ac_res
5812fi
5813rm -f core conftest.err conftest.$ac_objext \
5814 conftest$ac_exeext
5815 if ${ac_cv_search_opendir+:} false; then :
5816 break
5817fi
5818done
5819if ${ac_cv_search_opendir+:} false; then :
5820
5821else
5822 ac_cv_search_opendir=no
5823fi
5824rm conftest.$ac_ext
5825LIBS=$ac_func_search_save_LIBS
5826fi
5827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5828$as_echo "$ac_cv_search_opendir" >&6; }
5829ac_res=$ac_cv_search_opendir
5830if test "$ac_res" != no; then :
5831 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5832
5833fi
5834
5835fi
5836
5837 dirfd_headers='
5838#if HAVE_DIRENT_H
5839# include <dirent.h>
5840#else /* not HAVE_DIRENT_H */
5841# define dirent direct
5842# if HAVE_SYS_NDIR_H
5843# include <sys/ndir.h>
5844# endif /* HAVE_SYS_NDIR_H */
5845# if HAVE_SYS_DIR_H
5846# include <sys/dir.h>
5847# endif /* HAVE_SYS_DIR_H */
5848# if HAVE_NDIR_H
5849# include <ndir.h>
5850# endif /* HAVE_NDIR_H */
5851#endif /* HAVE_DIRENT_H */
5852'
5853 for ac_func in dirfd
5854do :
5855 ac_fn_c_check_func "$LINENO" "dirfd" "ac_cv_func_dirfd"
5856if test "x$ac_cv_func_dirfd" = xyes; then :
5857 cat >>confdefs.h <<_ACEOF
5858#define HAVE_DIRFD 1
5859_ACEOF
5860
5861fi
5862done
5863
5864 ac_fn_c_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "$dirfd_headers
5865"
5866if test "x$ac_cv_have_decl_dirfd" = xyes; then :
5867 ac_have_decl=1
5868else
5869 ac_have_decl=0
5870fi
5871
5872cat >>confdefs.h <<_ACEOF
5873#define HAVE_DECL_DIRFD $ac_have_decl
5874_ACEOF
5875
5876
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dirfd is a macro" >&5
5878$as_echo_n "checking whether dirfd is a macro... " >&6; }
5879if ${jm_cv_func_dirfd_macro+:} false; then :
5880 $as_echo_n "(cached) " >&6
5881else
5882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5883/* end confdefs.h. */
5884$dirfd_headers
5885#ifdef dirfd
5886 dirent_header_defines_dirfd
5887#endif
5888_ACEOF
5889if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5890 $EGREP "dirent_header_defines_dirfd" >/dev/null 2>&1; then :
5891 jm_cv_func_dirfd_macro=yes
5892else
5893 jm_cv_func_dirfd_macro=no
5894fi
5895rm -f conftest*
5896
5897fi
5898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_cv_func_dirfd_macro" >&5
5899$as_echo "$jm_cv_func_dirfd_macro" >&6; }
5900
5901 # Use the replacement only if we have no function, macro,
5902 # or declaration with that name.
5903 if test $ac_cv_func_dirfd,$ac_cv_have_decl_dirfd,$jm_cv_func_dirfd_macro \
5904 = no,no,no; then
5905 ac_fn_c_check_func "$LINENO" "dirfd" "ac_cv_func_dirfd"
5906if test "x$ac_cv_func_dirfd" = xyes; then :
5907 $as_echo "#define HAVE_DIRFD 1" >>confdefs.h
5908
5909else
5910 case " $LIBOBJS " in
5911 *" dirfd.$ac_objext "* ) ;;
5912 *) LIBOBJS="$LIBOBJS dirfd.$ac_objext"
5913 ;;
5914esac
5915
5916fi
5917
5918
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get the file descriptor associated with an open DIR*" >&5
5920$as_echo_n "checking how to get the file descriptor associated with an open DIR*... " >&6; }
5921if ${gl_cv_sys_dir_fd_member_name+:} false; then :
5922 $as_echo_n "(cached) " >&6
5923else
5924
5925 dirfd_save_CFLAGS=$CFLAGS
5926 for ac_expr in d_fd dd_fd; do
5927
5928 CFLAGS="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
5929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5930/* end confdefs.h. */
5931$dirfd_headers
5932
5933int
5934main ()
5935{
5936DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
5937 ;
5938 return 0;
5939}
5940_ACEOF
5941if ac_fn_c_try_compile "$LINENO"; then :
5942 dir_fd_found=yes
5943
5944fi
5945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5946 CFLAGS=$dirfd_save_CFLAGS
5947 test "$dir_fd_found" = yes && break
5948 done
5949 test "$dir_fd_found" = yes || ac_expr=no_such_member
5950
5951 gl_cv_sys_dir_fd_member_name=$ac_expr
5952
5953
5954fi
5955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_dir_fd_member_name" >&5
5956$as_echo "$gl_cv_sys_dir_fd_member_name" >&6; }
5957 if test $gl_cv_sys_dir_fd_member_name != no_such_member; then
5958
5959cat >>confdefs.h <<_ACEOF
5960#define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name
5961_ACEOF
5962
5963 fi
5964
5965 fi
5966
5967
5968#
5969# iconv
5970#
5971
5972
5973
5974
5975
5976
5977
5978# Check whether --with-libiconv-prefix was given.
5979if test "${with_libiconv_prefix+set}" = set; then :
5980 withval=$with_libiconv_prefix;
5981 for dir in `echo "$withval" | tr : ' '`; do
5982 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
5983 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
5984 done
5985
5986fi
5987
5988 ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
5989if test "x$ac_cv_header_iconv_h" = xyes; then :
5990 $as_echo "#define HAVE_ICONV_H 1" >>confdefs.h
5991
5992fi
5993
5994
5995
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
5997$as_echo_n "checking for iconv... " >&6; }
5998if ${am_cv_func_iconv+:} false; then :
5999 $as_echo_n "(cached) " >&6
6000else
6001
6002 am_cv_func_iconv="no, consider installing GNU libiconv"
6003 am_cv_lib_iconv=no
6004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6005/* end confdefs.h. */
6006#include <stdlib.h>
6007#include <iconv.h>
6008int
6009main ()
6010{
6011iconv_t cd = iconv_open("","");
6012 iconv(cd,NULL,NULL,NULL,NULL);
6013 iconv_close(cd);
6014 ;
6015 return 0;
6016}
6017_ACEOF
6018if ac_fn_c_try_link "$LINENO"; then :
6019 am_cv_func_iconv=yes
6020fi
6021rm -f core conftest.err conftest.$ac_objext \
6022 conftest$ac_exeext conftest.$ac_ext
6023 if test "$am_cv_func_iconv" != yes; then
6024 am_save_LIBS="$LIBS"
6025 LIBS="$LIBS -liconv"
6026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6027/* end confdefs.h. */
6028#include <stdlib.h>
6029#include <iconv.h>
6030int
6031main ()
6032{
6033iconv_t cd = iconv_open("","");
6034 iconv(cd,NULL,NULL,NULL,NULL);
6035 iconv_close(cd);
6036 ;
6037 return 0;
6038}
6039_ACEOF
6040if ac_fn_c_try_link "$LINENO"; then :
6041 am_cv_lib_iconv=yes
6042 am_cv_func_iconv=yes
6043fi
6044rm -f core conftest.err conftest.$ac_objext \
6045 conftest$ac_exeext conftest.$ac_ext
6046 LIBS="$am_save_LIBS"
6047 fi
6048
6049fi
6050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
6051$as_echo "$am_cv_func_iconv" >&6; }
6052 if test "$am_cv_func_iconv" = yes; then
6053
6054$as_echo "#define HAVE_ICONV 1" >>confdefs.h
6055
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
6057$as_echo_n "checking for iconv declaration... " >&6; }
6058 if ${am_cv_proto_iconv+:} false; then :
6059 $as_echo_n "(cached) " >&6
6060else
6061
6062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6063/* end confdefs.h. */
6064
6065#include <stdlib.h>
6066#include <iconv.h>
6067extern
6068#ifdef __cplusplus
6069"C"
6070#endif
6071#if defined(__STDC__) || defined(__cplusplus)
6072size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
6073#else
6074size_t iconv();
6075#endif
6076
6077int
6078main ()
6079{
6080
6081 ;
6082 return 0;
6083}
6084_ACEOF
6085if ac_fn_c_try_compile "$LINENO"; then :
6086 am_cv_proto_iconv_arg1=""
6087else
6088 am_cv_proto_iconv_arg1="const"
6089fi
6090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6091 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
6092fi
6093
6094 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
6096 }$am_cv_proto_iconv" >&5
6097$as_echo "${ac_t:-
6098 }$am_cv_proto_iconv" >&6; }
6099
6100cat >>confdefs.h <<_ACEOF
6101#define ICONV_CONST $am_cv_proto_iconv_arg1
6102_ACEOF
6103
6104 fi
6105 LIBICONV=
6106 if test "$am_cv_lib_iconv" = yes; then
6107 LIBICONV="-liconv"
6108 fi
6109
6110
6111LIBS="$LIBS $LIBICONV"
6112
6113#
6114# socklen_t
6115# from curl
6116
6117
6118
6119
6120 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
6121#include <sys/socket.h>
6122"
6123if test "x$ac_cv_type_socklen_t" = xyes; then :
6124
6125else
6126
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
6128$as_echo_n "checking for socklen_t equivalent... " >&6; }
6129 if ${socklen_t_cv_equiv+:} false; then :
6130 $as_echo_n "(cached) " >&6
6131else
6132
6133 # Systems have either "struct sockaddr *" or
6134 # "void *" as the second argument to getpeername
6135 socklen_t_cv_equiv=
6136 for arg2 in "struct sockaddr" void; do
6137 for t in int size_t unsigned long "unsigned long"; do
6138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6139/* end confdefs.h. */
6140
6141 #include <sys/types.h>
6142 #include <sys/socket.h>
6143
6144 int getpeername (int, $arg2 *, $t *);
6145
6146int
6147main ()
6148{
6149
6150 $t len;
6151 getpeername(0,0,&len);
6152
6153 ;
6154 return 0;
6155}
6156_ACEOF
6157if ac_fn_c_try_compile "$LINENO"; then :
6158
6159 socklen_t_cv_equiv="$t"
6160 break
6161
6162fi
6163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6164 done
6165 done
6166
6167 if test "x$socklen_t_cv_equiv" = x; then
6168 as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
6169 fi
6170
6171fi
6172
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $socklen_t_cv_equiv" >&5
6174$as_echo "$socklen_t_cv_equiv" >&6; }
6175
6176cat >>confdefs.h <<_ACEOF
6177#define socklen_t $socklen_t_cv_equiv
6178_ACEOF
6179
6180fi
6181
6182
6183
6184#
6185# statfs stuff
6186#
6187for ac_header in sys/vfs.h
6188do :
6189 ac_fn_c_check_header_mongrel "$LINENO" "sys/vfs.h" "ac_cv_header_sys_vfs_h" "$ac_includes_default"
6190if test "x$ac_cv_header_sys_vfs_h" = xyes; then :
6191 cat >>confdefs.h <<_ACEOF
6192#define HAVE_SYS_VFS_H 1
6193_ACEOF
6194
6195fi
6196
6197done
6198
6199for ac_header in sys/statvfs.h
6200do :
6201 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
6202if test "x$ac_cv_header_sys_statvfs_h" = xyes; then :
6203 cat >>confdefs.h <<_ACEOF
6204#define HAVE_SYS_STATVFS_H 1
6205_ACEOF
6206
6207fi
6208
6209done
6210
6211for ac_header in sys/statfs.h
6212do :
6213 ac_fn_c_check_header_mongrel "$LINENO" "sys/statfs.h" "ac_cv_header_sys_statfs_h" "$ac_includes_default"
6214if test "x$ac_cv_header_sys_statfs_h" = xyes; then :
6215 cat >>confdefs.h <<_ACEOF
6216#define HAVE_SYS_STATFS_H 1
6217_ACEOF
6218
6219fi
6220
6221done
6222
6223for ac_header in sys/param.h
6224do :
6225 ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
6226if test "x$ac_cv_header_sys_param_h" = xyes; then :
6227 cat >>confdefs.h <<_ACEOF
6228#define HAVE_SYS_PARAM_H 1
6229_ACEOF
6230
6231fi
6232
6233done
6234
6235
6236mount_includes="\
6237 $ac_includes_default
6238 #if HAVE_SYS_PARAM_H
6239 # include <sys/param.h>
6240 #endif
6241 "
6242
6243for ac_header in sys/mount.h
6244do :
6245 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$mount_includes
6246"
6247if test "x$ac_cv_header_sys_mount_h" = xyes; then :
6248 cat >>confdefs.h <<_ACEOF
6249#define HAVE_SYS_MOUNT_H 1
6250_ACEOF
6251
6252fi
6253
6254done
6255
6256
6257#################################################
6258# these tests are taken from the GNU fileutils package
6259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get filesystem space usage..." >&5
6260$as_echo "$as_me: checking how to get filesystem space usage..." >&6;}
6261space=no
6262
6263# Test for statvfs64.
6264if test $space = no; then
6265 # SVR4
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking statvfs64 function (SVR4)" >&5
6267$as_echo_n "checking statvfs64 function (SVR4)... " >&6; }
6268if ${fu_cv_sys_stat_statvfs64+:} false; then :
6269 $as_echo_n "(cached) " >&6
6270else
6271 if test "$cross_compiling" = yes; then :
6272 fu_cv_sys_stat_statvfs64=cross
6273else
6274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6275/* end confdefs.h. */
6276
6277#if defined(HAVE_UNISTD_H)
6278#include <unistd.h>
6279#endif
6280#include <sys/types.h>
6281#include <sys/statvfs.h>
6282 main ()
6283 {
6284 struct statvfs64 fsd;
6285 exit (statvfs64 (".", &fsd));
6286 }
6287_ACEOF
6288if ac_fn_c_try_run "$LINENO"; then :
6289 fu_cv_sys_stat_statvfs64=yes
6290else
6291 fu_cv_sys_stat_statvfs64=no
6292fi
6293rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6294 conftest.$ac_objext conftest.beam conftest.$ac_ext
6295fi
6296
6297fi
6298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statvfs64" >&5
6299$as_echo "$fu_cv_sys_stat_statvfs64" >&6; }
6300 if test $fu_cv_sys_stat_statvfs64 = yes; then
6301 space=yes
6302
6303$as_echo "#define STAT_STATVFS64 1" >>confdefs.h
6304
6305 fi
6306fi
6307
6308# Perform only the link test since it seems there are no variants of the
6309# statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
6310# because that got a false positive on SCO OSR5. Adding the declaration
6311# of a `struct statvfs' causes this test to fail (as it should) on such
6312# systems. That system is reported to work fine with STAT_STATFS4 which
6313# is what it gets when this test fails.
6314if test $space = no; then
6315 # SVR4
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking statvfs function (SVR4)" >&5
6317$as_echo_n "checking statvfs function (SVR4)... " >&6; }
6318if ${fu_cv_sys_stat_statvfs+:} false; then :
6319 $as_echo_n "(cached) " >&6
6320else
6321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6322/* end confdefs.h. */
6323#include <sys/types.h>
6324#include <sys/statvfs.h>
6325int
6326main ()
6327{
6328struct statvfs fsd; statvfs (0, &fsd);
6329 ;
6330 return 0;
6331}
6332_ACEOF
6333if ac_fn_c_try_link "$LINENO"; then :
6334 fu_cv_sys_stat_statvfs=yes
6335else
6336 fu_cv_sys_stat_statvfs=no
6337fi
6338rm -f core conftest.err conftest.$ac_objext \
6339 conftest$ac_exeext conftest.$ac_ext
6340fi
6341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statvfs" >&5
6342$as_echo "$fu_cv_sys_stat_statvfs" >&6; }
6343 if test $fu_cv_sys_stat_statvfs = yes; then
6344 space=yes
6345
6346$as_echo "#define STAT_STATVFS 1" >>confdefs.h
6347
6348 fi
6349fi
6350
6351if test $space = no; then
6352 # DEC Alpha running OSF/1
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 3-argument statfs function (DEC OSF/1)" >&5
6354$as_echo_n "checking for 3-argument statfs function (DEC OSF/1)... " >&6; }
6355 if ${fu_cv_sys_stat_statfs3_osf1+:} false; then :
6356 $as_echo_n "(cached) " >&6
6357else
6358 if test "$cross_compiling" = yes; then :
6359 fu_cv_sys_stat_statfs3_osf1=no
6360else
6361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6362/* end confdefs.h. */
6363
6364#include <sys/param.h>
6365#include <sys/types.h>
6366#include <sys/mount.h>
6367 main ()
6368 {
6369 struct statfs fsd;
6370 fsd.f_fsize = 0;
6371 exit (statfs (".", &fsd, sizeof (struct statfs)));
6372 }
6373_ACEOF
6374if ac_fn_c_try_run "$LINENO"; then :
6375 fu_cv_sys_stat_statfs3_osf1=yes
6376else
6377 fu_cv_sys_stat_statfs3_osf1=no
6378fi
6379rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6380 conftest.$ac_objext conftest.beam conftest.$ac_ext
6381fi
6382
6383fi
6384
6385
6386
6387#C_MSG_RESULT($fu_cv_sys_stat_statfs3_osf1)
6388 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
6389 space=yes
6390
6391$as_echo "#define STAT_STATFS3_OSF1 1" >>confdefs.h
6392
6393 fi
6394fi
6395
6396if test $space = no; then
6397# AIX
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
6399$as_echo_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)... " >&6; }
6400 if ${fu_cv_sys_stat_statfs2_bsize+:} false; then :
6401 $as_echo_n "(cached) " >&6
6402else
6403 if test "$cross_compiling" = yes; then :
6404 fu_cv_sys_stat_statfs2_bsize=no
6405else
6406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6407/* end confdefs.h. */
6408
6409#ifdef HAVE_SYS_PARAM_H
6410#include <sys/param.h>
6411#endif
6412#ifdef HAVE_SYS_MOUNT_H
6413#include <sys/mount.h>
6414#endif
6415#ifdef HAVE_SYS_VFS_H
6416#include <sys/vfs.h>
6417#endif
6418 main ()
6419 {
6420 struct statfs fsd;
6421 fsd.f_bsize = 0;
6422 exit (statfs (".", &fsd));
6423 }
6424_ACEOF
6425if ac_fn_c_try_run "$LINENO"; then :
6426 fu_cv_sys_stat_statfs2_bsize=yes
6427else
6428 fu_cv_sys_stat_statfs2_bsize=no
6429fi
6430rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6431 conftest.$ac_objext conftest.beam conftest.$ac_ext
6432fi
6433
6434fi
6435
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statfs2_bsize" >&5
6437$as_echo "$fu_cv_sys_stat_statfs2_bsize" >&6; }
6438 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
6439 space=yes
6440
6441$as_echo "#define STAT_STATFS2_BSIZE 1" >>confdefs.h
6442
6443 fi
6444fi
6445
6446if test $space = no; then
6447# SVR3
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
6449$as_echo_n "checking for four-argument statfs (AIX-3.2.5, SVR3)... " >&6; }
6450 if ${fu_cv_sys_stat_statfs4+:} false; then :
6451 $as_echo_n "(cached) " >&6
6452else
6453 if test "$cross_compiling" = yes; then :
6454 fu_cv_sys_stat_statfs4=no
6455else
6456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6457/* end confdefs.h. */
6458#include <sys/types.h>
6459#include <sys/statfs.h>
6460 main ()
6461 {
6462 struct statfs fsd;
6463 exit (statfs (".", &fsd, sizeof fsd, 0));
6464 }
6465_ACEOF
6466if ac_fn_c_try_run "$LINENO"; then :
6467 fu_cv_sys_stat_statfs4=yes
6468else
6469 fu_cv_sys_stat_statfs4=no
6470fi
6471rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6472 conftest.$ac_objext conftest.beam conftest.$ac_ext
6473fi
6474
6475fi
6476
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statfs4" >&5
6478$as_echo "$fu_cv_sys_stat_statfs4" >&6; }
6479 if test $fu_cv_sys_stat_statfs4 = yes; then
6480 space=yes
6481
6482$as_echo "#define STAT_STATFS4 1" >>confdefs.h
6483
6484 fi
6485fi
6486
6487if test $space = no; then
6488# 4.4BSD and NetBSD
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
6490$as_echo_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)... " >&6; }
6491 if ${fu_cv_sys_stat_statfs2_fsize+:} false; then :
6492 $as_echo_n "(cached) " >&6
6493else
6494 if test "$cross_compiling" = yes; then :
6495 fu_cv_sys_stat_statfs2_fsize=no
6496else
6497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6498/* end confdefs.h. */
6499#include <sys/types.h>
6500#ifdef HAVE_SYS_PARAM_H
6501#include <sys/param.h>
6502#endif
6503#ifdef HAVE_SYS_MOUNT_H
6504#include <sys/mount.h>
6505#endif
6506 main ()
6507 {
6508 struct statfs fsd;
6509 fsd.f_fsize = 0;
6510 exit (statfs (".", &fsd));
6511 }
6512_ACEOF
6513if ac_fn_c_try_run "$LINENO"; then :
6514 fu_cv_sys_stat_statfs2_fsize=yes
6515else
6516 fu_cv_sys_stat_statfs2_fsize=no
6517fi
6518rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6519 conftest.$ac_objext conftest.beam conftest.$ac_ext
6520fi
6521
6522fi
6523
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statfs2_fsize" >&5
6525$as_echo "$fu_cv_sys_stat_statfs2_fsize" >&6; }
6526 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
6527 space=yes
6528
6529$as_echo "#define STAT_STATFS2_FSIZE 1" >>confdefs.h
6530
6531 fi
6532fi
6533
6534if test $space = no; then
6535 # Ultrix
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
6537$as_echo_n "checking for two-argument statfs with struct fs_data (Ultrix)... " >&6; }
6538 if ${fu_cv_sys_stat_fs_data+:} false; then :
6539 $as_echo_n "(cached) " >&6
6540else
6541 if test "$cross_compiling" = yes; then :
6542 fu_cv_sys_stat_fs_data=no
6543else
6544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6545/* end confdefs.h. */
6546#include <sys/types.h>
6547#ifdef HAVE_SYS_PARAM_H
6548#include <sys/param.h>
6549#endif
6550#ifdef HAVE_SYS_MOUNT_H
6551#include <sys/mount.h>
6552#endif
6553#ifdef HAVE_SYS_FS_TYPES_H
6554#include <sys/fs_types.h>
6555#endif
6556 main ()
6557 {
6558 struct fs_data fsd;
6559 /* Ultrix's statfs returns 1 for success,
6560 0 for not mounted, -1 for failure. */
6561 exit (statfs (".", &fsd) != 1);
6562 }
6563_ACEOF
6564if ac_fn_c_try_run "$LINENO"; then :
6565 fu_cv_sys_stat_fs_data=yes
6566else
6567 fu_cv_sys_stat_fs_data=no
6568fi
6569rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6570 conftest.$ac_objext conftest.beam conftest.$ac_ext
6571fi
6572
6573fi
6574
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_fs_data" >&5
6576$as_echo "$fu_cv_sys_stat_fs_data" >&6; }
6577 if test $fu_cv_sys_stat_fs_data = yes; then
6578 space=yes
6579
6580$as_echo "#define STAT_STATFS2_FS_DATA 1" >>confdefs.h
6581
6582 fi
6583fi
6584
6585 statxfs_includes="\
6586$ac_includes_default
6587#if HAVE_SYS_STATVFS_H
6588# include <sys/statvfs.h>
6589#endif
6590#if HAVE_SYS_VFS_H
6591# include <sys/vfs.h>
6592#endif
6593#if !HAVE_SYS_STATVFS_H && !HAVE_SYS_VFS_H
6594# if HAVE_SYS_MOUNT_H && HAVE_SYS_PARAM_H
6595/* NetBSD 1.5.2 needs these, for the declaration of struct statfs. */
6596# include <sys/param.h>
6597# include <sys/mount.h>
6598# elif HAVE_NETINET_IN_H && HAVE_NFS_NFS_CLNT_H && HAVE_NFS_VFS_H
6599/* Ultrix 4.4 needs these for the declaration of struct statfs. */
6600# include <netinet/in.h>
6601# include <nfs/nfs_clnt.h>
6602# include <nfs/vfs.h>
6603# endif
6604#endif
6605"
6606
6607ac_fn_c_check_member "$LINENO" "struct statfs" "f_namemax" "ac_cv_member_struct_statfs_f_namemax" "$statxfs_includes
6608"
6609if test "x$ac_cv_member_struct_statfs_f_namemax" = xyes; then :
6610
6611cat >>confdefs.h <<_ACEOF
6612#define HAVE_STRUCT_STATFS_F_NAMEMAX 1
6613_ACEOF
6614
6615
6616fi
6617
6618ac_fn_c_check_member "$LINENO" "struct statvfs" "f_namemax" "ac_cv_member_struct_statvfs_f_namemax" "$statxfs_includes
6619"
6620if test "x$ac_cv_member_struct_statvfs_f_namemax" = xyes; then :
6621
6622cat >>confdefs.h <<_ACEOF
6623#define HAVE_STRUCT_STATVFS_F_NAMEMAX 1
6624_ACEOF
6625
6626
6627fi
6628
6629ac_fn_c_check_member "$LINENO" "struct statfs" "f_namelen" "ac_cv_member_struct_statfs_f_namelen" "$statxfs_includes
6630"
6631if test "x$ac_cv_member_struct_statfs_f_namelen" = xyes; then :
6632
6633cat >>confdefs.h <<_ACEOF
6634#define HAVE_STRUCT_STATFS_F_NAMELEN 1
6635_ACEOF
6636
6637
6638fi
6639
6640ac_fn_c_check_member "$LINENO" "struct statvfs" "f_namelen" "ac_cv_member_struct_statvfs_f_namelen" "$statxfs_includes
6641"
6642if test "x$ac_cv_member_struct_statvfs_f_namelen" = xyes; then :
6643
6644cat >>confdefs.h <<_ACEOF
6645#define HAVE_STRUCT_STATVFS_F_NAMELEN 1
6646_ACEOF
6647
6648
6649fi
6650
6651
6652#
6653# Large file support
6654#
6655# Check whether --enable-largefile was given.
6656if test "${enable_largefile+set}" = set; then :
6657 enableval=$enable_largefile;
6658fi
6659
6660if test "$enable_largefile" != no; then
6661
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6663$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6664if ${ac_cv_sys_largefile_CC+:} false; then :
6665 $as_echo_n "(cached) " >&6
6666else
6667 ac_cv_sys_largefile_CC=no
6668 if test "$GCC" != yes; then
6669 ac_save_CC=$CC
6670 while :; do
6671 # IRIX 6.2 and later do not support large files by default,
6672 # so use the C compiler's -n32 option if that helps.
6673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6674/* end confdefs.h. */
6675#include <sys/types.h>
6676 /* Check that off_t can represent 2**63 - 1 correctly.
6677 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6678 since some C++ compilers masquerading as C compilers
6679 incorrectly reject 9223372036854775807. */
6680#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6681 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6682 && LARGE_OFF_T % 2147483647 == 1)
6683 ? 1 : -1];
6684int
6685main ()
6686{
6687
6688 ;
6689 return 0;
6690}
6691_ACEOF
6692 if ac_fn_c_try_compile "$LINENO"; then :
6693 break
6694fi
6695rm -f core conftest.err conftest.$ac_objext
6696 CC="$CC -n32"
6697 if ac_fn_c_try_compile "$LINENO"; then :
6698 ac_cv_sys_largefile_CC=' -n32'; break
6699fi
6700rm -f core conftest.err conftest.$ac_objext
6701 break
6702 done
6703 CC=$ac_save_CC
6704 rm -f conftest.$ac_ext
6705 fi
6706fi
6707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6708$as_echo "$ac_cv_sys_largefile_CC" >&6; }
6709 if test "$ac_cv_sys_largefile_CC" != no; then
6710 CC=$CC$ac_cv_sys_largefile_CC
6711 fi
6712
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6714$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6715if ${ac_cv_sys_file_offset_bits+:} false; then :
6716 $as_echo_n "(cached) " >&6
6717else
6718 while :; do
6719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6720/* end confdefs.h. */
6721#include <sys/types.h>
6722 /* Check that off_t can represent 2**63 - 1 correctly.
6723 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6724 since some C++ compilers masquerading as C compilers
6725 incorrectly reject 9223372036854775807. */
6726#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6727 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6728 && LARGE_OFF_T % 2147483647 == 1)
6729 ? 1 : -1];
6730int
6731main ()
6732{
6733
6734 ;
6735 return 0;
6736}
6737_ACEOF
6738if ac_fn_c_try_compile "$LINENO"; then :
6739 ac_cv_sys_file_offset_bits=no; break
6740fi
6741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6743/* end confdefs.h. */
6744#define _FILE_OFFSET_BITS 64
6745#include <sys/types.h>
6746 /* Check that off_t can represent 2**63 - 1 correctly.
6747 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6748 since some C++ compilers masquerading as C compilers
6749 incorrectly reject 9223372036854775807. */
6750#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6751 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6752 && LARGE_OFF_T % 2147483647 == 1)
6753 ? 1 : -1];
6754int
6755main ()
6756{
6757
6758 ;
6759 return 0;
6760}
6761_ACEOF
6762if ac_fn_c_try_compile "$LINENO"; then :
6763 ac_cv_sys_file_offset_bits=64; break
6764fi
6765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6766 ac_cv_sys_file_offset_bits=unknown
6767 break
6768done
6769fi
6770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6771$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6772case $ac_cv_sys_file_offset_bits in #(
6773 no | unknown) ;;
6774 *)
6775cat >>confdefs.h <<_ACEOF
6776#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6777_ACEOF
6778;;
6779esac
6780rm -rf conftest*
6781 if test $ac_cv_sys_file_offset_bits = unknown; then
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6783$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6784if ${ac_cv_sys_large_files+:} false; then :
6785 $as_echo_n "(cached) " >&6
6786else
6787 while :; do
6788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6789/* end confdefs.h. */
6790#include <sys/types.h>
6791 /* Check that off_t can represent 2**63 - 1 correctly.
6792 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6793 since some C++ compilers masquerading as C compilers
6794 incorrectly reject 9223372036854775807. */
6795#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6796 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6797 && LARGE_OFF_T % 2147483647 == 1)
6798 ? 1 : -1];
6799int
6800main ()
6801{
6802
6803 ;
6804 return 0;
6805}
6806_ACEOF
6807if ac_fn_c_try_compile "$LINENO"; then :
6808 ac_cv_sys_large_files=no; break
6809fi
6810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6812/* end confdefs.h. */
6813#define _LARGE_FILES 1
6814#include <sys/types.h>
6815 /* Check that off_t can represent 2**63 - 1 correctly.
6816 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6817 since some C++ compilers masquerading as C compilers
6818 incorrectly reject 9223372036854775807. */
6819#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6820 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6821 && LARGE_OFF_T % 2147483647 == 1)
6822 ? 1 : -1];
6823int
6824main ()
6825{
6826
6827 ;
6828 return 0;
6829}
6830_ACEOF
6831if ac_fn_c_try_compile "$LINENO"; then :
6832 ac_cv_sys_large_files=1; break
6833fi
6834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6835 ac_cv_sys_large_files=unknown
6836 break
6837done
6838fi
6839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6840$as_echo "$ac_cv_sys_large_files" >&6; }
6841case $ac_cv_sys_large_files in #(
6842 no | unknown) ;;
6843 *)
6844cat >>confdefs.h <<_ACEOF
6845#define _LARGE_FILES $ac_cv_sys_large_files
6846_ACEOF
6847;;
6848esac
6849rm -rf conftest*
6850 fi
6851fi
6852
6853
6854#
6855# mntent
6856#
6857ac_fn_c_check_header_mongrel "$LINENO" "mntent.h" "ac_cv_header_mntent_h" "$ac_includes_default"
6858if test "x$ac_cv_header_mntent_h" = xyes; then :
6859 $as_echo "#define HAVE_MNTENT_H 1" >>confdefs.h
6860
6861fi
6862
6863
6864for ac_func in setmntent
6865do :
6866 ac_fn_c_check_func "$LINENO" "setmntent" "ac_cv_func_setmntent"
6867if test "x$ac_cv_func_setmntent" = xyes; then :
6868 cat >>confdefs.h <<_ACEOF
6869#define HAVE_SETMNTENT 1
6870_ACEOF
6871
6872fi
6873done
6874
6875
6876#
6877# IPv6
6878#
6879
6880# Check whether --with-ipv6 was given.
6881if test "${with_ipv6+set}" = set; then :
6882 withval=$with_ipv6;
6883 if test $withval != "no";
6884 then
6885 $as_echo "#define IPv6 1" >>confdefs.h
6886
6887 fi
6888
6889fi
6890
6891
6892
6893#
6894# debugging
6895#
6896
6897# Check whether --with-debug was given.
6898if test "${with_debug+set}" = set; then :
6899 withval=$with_debug;
6900 if test $withval != "no";
6901 then
6902 $as_echo "#define WITH_DEBUG 1" >>confdefs.h
6903
6904 fi
6905
6906fi
6907
6908
6909
6910# Check whether --with-debug-kbd was given.
6911if test "${with_debug_kbd+set}" = set; then :
6912 withval=$with_debug_kbd;
6913 if test $withval != "no";
6914 then
6915 $as_echo "#define WITH_DEBUG_KBD 1" >>confdefs.h
6916
6917 fi
6918
6919fi
6920
6921
6922
6923# Check whether --with-debug-rdp5 was given.
6924if test "${with_debug_rdp5+set}" = set; then :
6925 withval=$with_debug_rdp5;
6926 if test $withval != "no";
6927 then
6928 $as_echo "#define WITH_DEBUG_RDP5 1" >>confdefs.h
6929
6930 fi
6931
6932fi
6933
6934
6935
6936# Check whether --with-debug-clipboard was given.
6937if test "${with_debug_clipboard+set}" = set; then :
6938 withval=$with_debug_clipboard;
6939 if test $withval != "no";
6940 then
6941 $as_echo "#define WITH_DEBUG_CLIPBOARD 1" >>confdefs.h
6942
6943 fi
6944
6945fi
6946
6947
6948
6949# Check whether --with-debug-sound was given.
6950if test "${with_debug_sound+set}" = set; then :
6951 withval=$with_debug_sound;
6952 if test $withval != "no";
6953 then
6954 $as_echo "#define WITH_DEBUG_SOUND 1" >>confdefs.h
6955
6956 fi
6957
6958fi
6959
6960
6961
6962# Check whether --with-debug-channel was given.
6963if test "${with_debug_channel+set}" = set; then :
6964 withval=$with_debug_channel;
6965 if test $withval != "no";
6966 then
6967 $as_echo "#define WITH_DEBUG_CHANNEL 1" >>confdefs.h
6968
6969 fi
6970
6971fi
6972
6973
6974
6975# Check whether --with-debug-seamless was given.
6976if test "${with_debug_seamless+set}" = set; then :
6977 withval=$with_debug_seamless;
6978 if test $withval != "no";
6979 then
6980 $as_echo "#define WITH_DEBUG_SEAMLESS 1" >>confdefs.h
6981
6982 fi
6983
6984fi
6985
6986
6987
6988# Check whether --with-debug-smartcard was given.
6989if test "${with_debug_smartcard+set}" = set; then :
6990 withval=$with_debug_smartcard;
6991 if test $withval != "no";
6992 then
6993 if test x"$WITH_SCARD" = "x1"; then
6994 $as_echo "#define WITH_DEBUG_SCARD 1" >>confdefs.h
6995
6996 fi
6997 fi
6998
6999fi
7000
7001
7002#
7003# target-specific stuff
7004#
7005# strip leading colon from rpath
7006rpath=`echo $rpath |sed 's/^://'`
7007# Make sure we can run config.sub.
7008$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
7009 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
7010
7011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
7012$as_echo_n "checking build system type... " >&6; }
7013if ${ac_cv_build+:} false; then :
7014 $as_echo_n "(cached) " >&6
7015else
7016 ac_build_alias=$build_alias
7017test "x$ac_build_alias" = x &&
7018 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
7019test "x$ac_build_alias" = x &&
7020 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
7021ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
7022 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
7023
7024fi
7025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
7026$as_echo "$ac_cv_build" >&6; }
7027case $ac_cv_build in
7028*-*-*) ;;
7029*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
7030esac
7031build=$ac_cv_build
7032ac_save_IFS=$IFS; IFS='-'
7033set x $ac_cv_build
7034shift
7035build_cpu=$1
7036build_vendor=$2
7037shift; shift
7038# Remember, the first character of IFS is used to create $*,
7039# except with old shells:
7040build_os=$*
7041IFS=$ac_save_IFS
7042case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
7043
7044
7045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
7046$as_echo_n "checking host system type... " >&6; }
7047if ${ac_cv_host+:} false; then :
7048 $as_echo_n "(cached) " >&6
7049else
7050 if test "x$host_alias" = x; then
7051 ac_cv_host=$ac_cv_build
7052else
7053 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
7054 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
7055fi
7056
7057fi
7058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
7059$as_echo "$ac_cv_host" >&6; }
7060case $ac_cv_host in
7061*-*-*) ;;
7062*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
7063esac
7064host=$ac_cv_host
7065ac_save_IFS=$IFS; IFS='-'
7066set x $ac_cv_host
7067shift
7068host_cpu=$1
7069host_vendor=$2
7070shift; shift
7071# Remember, the first character of IFS is used to create $*,
7072# except with old shells:
7073host_os=$*
7074IFS=$ac_save_IFS
7075case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
7076
7077
7078case "$host" in
7079*-*-solaris*)
7080 LDFLAGS="$LDFLAGS -R$rpath"
7081 ;;
7082*-dec-osf*)
7083 LDFLAGS="$LDFLAGS -Wl,-rpath,$rpath"
7084 ;;
7085*-*-hpux*)
7086 CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED"
7087 ;;
7088*-*-irix6.5*)
7089 LIBS="$LIBS -L$ssldir/lib32 -lcrypto"
7090 CFLAGS="$CFLAGS -D__SGI_IRIX__"
7091 ;;
7092esac
7093
7094
7095ac_config_files="$ac_config_files Makefile"
7096
7097cat >confcache <<\_ACEOF
7098# This file is a shell script that caches the results of configure
7099# tests run on this system so they can be shared between configure
7100# scripts and configure runs, see configure's option --config-cache.
7101# It is not useful on other systems. If it contains results you don't
7102# want to keep, you may remove or edit it.
7103#
7104# config.status only pays attention to the cache file if you give it
7105# the --recheck option to rerun configure.
7106#
7107# `ac_cv_env_foo' variables (set or unset) will be overridden when
7108# loading this file, other *unset* `ac_cv_foo' will be assigned the
7109# following values.
7110
7111_ACEOF
7112
7113# The following way of writing the cache mishandles newlines in values,
7114# but we know of no workaround that is simple, portable, and efficient.
7115# So, we kill variables containing newlines.
7116# Ultrix sh set writes to stderr and can't be redirected directly,
7117# and sets the high bit in the cache file unless we assign to the vars.
7118(
7119 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7120 eval ac_val=\$$ac_var
7121 case $ac_val in #(
7122 *${as_nl}*)
7123 case $ac_var in #(
7124 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7125$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7126 esac
7127 case $ac_var in #(
7128 _ | IFS | as_nl) ;; #(
7129 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7130 *) { eval $ac_var=; unset $ac_var;} ;;
7131 esac ;;
7132 esac
7133 done
7134
7135 (set) 2>&1 |
7136 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7137 *${as_nl}ac_space=\ *)
7138 # `set' does not quote correctly, so add quotes: double-quote
7139 # substitution turns \\\\ into \\, and sed turns \\ into \.
7140 sed -n \
7141 "s/'/'\\\\''/g;
7142 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7143 ;; #(
7144 *)
7145 # `set' quotes correctly as required by POSIX, so do not add quotes.
7146 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7147 ;;
7148 esac |
7149 sort
7150) |
7151 sed '
7152 /^ac_cv_env_/b end
7153 t clear
7154 :clear
7155 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7156 t end
7157 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7158 :end' >>confcache
7159if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7160 if test -w "$cache_file"; then
7161 if test "x$cache_file" != "x/dev/null"; then
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7163$as_echo "$as_me: updating cache $cache_file" >&6;}
7164 if test ! -f "$cache_file" || test -h "$cache_file"; then
7165 cat confcache >"$cache_file"
7166 else
7167 case $cache_file in #(
7168 */* | ?:*)
7169 mv -f confcache "$cache_file"$$ &&
7170 mv -f "$cache_file"$$ "$cache_file" ;; #(
7171 *)
7172 mv -f confcache "$cache_file" ;;
7173 esac
7174 fi
7175 fi
7176 else
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7178$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7179 fi
7180fi
7181rm -f confcache
7182
7183test "x$prefix" = xNONE && prefix=$ac_default_prefix
7184# Let make expand exec_prefix.
7185test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7186
7187# Transform confdefs.h into DEFS.
7188# Protect against shell expansion while executing Makefile rules.
7189# Protect against Makefile macro expansion.
7190#
7191# If the first sed substitution is executed (which looks for macros that
7192# take arguments), then branch to the quote section. Otherwise,
7193# look for a macro that doesn't take arguments.
7194ac_script='
7195:mline
7196/\\$/{
7197 N
7198 s,\\\n,,
7199 b mline
7200}
7201t clear
7202:clear
7203s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
7204t quote
7205s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
7206t quote
7207b any
7208:quote
7209s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
7210s/\[/\\&/g
7211s/\]/\\&/g
7212s/\$/$$/g
7213H
7214:any
7215${
7216 g
7217 s/^\n//
7218 s/\n/ /g
7219 p
7220}
7221'
7222DEFS=`sed -n "$ac_script" confdefs.h`
7223
7224
7225ac_libobjs=
7226ac_ltlibobjs=
7227U=
7228for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7229 # 1. Remove the extension, and $U if already installed.
7230 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7231 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7232 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7233 # will be set to the directory where LIBOBJS objects are built.
7234 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7235 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7236done
7237LIBOBJS=$ac_libobjs
7238
7239LTLIBOBJS=$ac_ltlibobjs
7240
7241
7242
7243
7244: "${CONFIG_STATUS=./config.status}"
7245ac_write_fail=0
7246ac_clean_files_save=$ac_clean_files
7247ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7248{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7249$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7250as_write_fail=0
7251cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7252#! $SHELL
7253# Generated by $as_me.
7254# Run this file to recreate the current configuration.
7255# Compiler output produced by configure, useful for debugging
7256# configure, is in config.log if it exists.
7257
7258debug=false
7259ac_cs_recheck=false
7260ac_cs_silent=false
7261
7262SHELL=\${CONFIG_SHELL-$SHELL}
7263export SHELL
7264_ASEOF
7265cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7266## -------------------- ##
7267## M4sh Initialization. ##
7268## -------------------- ##
7269
7270# Be more Bourne compatible
7271DUALCASE=1; export DUALCASE # for MKS sh
7272if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7273 emulate sh
7274 NULLCMD=:
7275 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7276 # is contrary to our usage. Disable this feature.
7277 alias -g '${1+"$@"}'='"$@"'
7278 setopt NO_GLOB_SUBST
7279else
7280 case `(set -o) 2>/dev/null` in #(
7281 *posix*) :
7282 set -o posix ;; #(
7283 *) :
7284 ;;
7285esac
7286fi
7287
7288
7289as_nl='
7290'
7291export as_nl
7292# Printing a long string crashes Solaris 7 /usr/bin/printf.
7293as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7294as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7295as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7296# Prefer a ksh shell builtin over an external printf program on Solaris,
7297# but without wasting forks for bash or zsh.
7298if test -z "$BASH_VERSION$ZSH_VERSION" \
7299 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7300 as_echo='print -r --'
7301 as_echo_n='print -rn --'
7302elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7303 as_echo='printf %s\n'
7304 as_echo_n='printf %s'
7305else
7306 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7307 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7308 as_echo_n='/usr/ucb/echo -n'
7309 else
7310 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7311 as_echo_n_body='eval
7312 arg=$1;
7313 case $arg in #(
7314 *"$as_nl"*)
7315 expr "X$arg" : "X\\(.*\\)$as_nl";
7316 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7317 esac;
7318 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7319 '
7320 export as_echo_n_body
7321 as_echo_n='sh -c $as_echo_n_body as_echo'
7322 fi
7323 export as_echo_body
7324 as_echo='sh -c $as_echo_body as_echo'
7325fi
7326
7327# The user is always right.
7328if test "${PATH_SEPARATOR+set}" != set; then
7329 PATH_SEPARATOR=:
7330 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7331 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7332 PATH_SEPARATOR=';'
7333 }
7334fi
7335
7336
7337# IFS
7338# We need space, tab and new line, in precisely that order. Quoting is
7339# there to prevent editors from complaining about space-tab.
7340# (If _AS_PATH_WALK were called with IFS unset, it would disable word
7341# splitting by setting IFS to empty value.)
7342IFS=" "" $as_nl"
7343
7344# Find who we are. Look in the path if we contain no directory separator.
7345as_myself=
7346case $0 in #((
7347 *[\\/]* ) as_myself=$0 ;;
7348 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7349for as_dir in $PATH
7350do
7351 IFS=$as_save_IFS
7352 test -z "$as_dir" && as_dir=.
7353 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7354 done
7355IFS=$as_save_IFS
7356
7357 ;;
7358esac
7359# We did not find ourselves, most probably we were run as `sh COMMAND'
7360# in which case we are not to be found in the path.
7361if test "x$as_myself" = x; then
7362 as_myself=$0
7363fi
7364if test ! -f "$as_myself"; then
7365 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7366 exit 1
7367fi
7368
7369# Unset variables that we do not need and which cause bugs (e.g. in
7370# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7371# suppresses any "Segmentation fault" message there. '((' could
7372# trigger a bug in pdksh 5.2.14.
7373for as_var in BASH_ENV ENV MAIL MAILPATH
7374do eval test x\${$as_var+set} = xset \
7375 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7376done
7377PS1='$ '
7378PS2='> '
7379PS4='+ '
7380
7381# NLS nuisances.
7382LC_ALL=C
7383export LC_ALL
7384LANGUAGE=C
7385export LANGUAGE
7386
7387# CDPATH.
7388(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7389
7390
7391# as_fn_error STATUS ERROR [LINENO LOG_FD]
7392# ----------------------------------------
7393# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7394# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7395# script with STATUS, using 1 if that was 0.
7396as_fn_error ()
7397{
7398 as_status=$1; test $as_status -eq 0 && as_status=1
7399 if test "$4"; then
7400 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7401 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7402 fi
7403 $as_echo "$as_me: error: $2" >&2
7404 as_fn_exit $as_status
7405} # as_fn_error
7406
7407
7408# as_fn_set_status STATUS
7409# -----------------------
7410# Set $? to STATUS, without forking.
7411as_fn_set_status ()
7412{
7413 return $1
7414} # as_fn_set_status
7415
7416# as_fn_exit STATUS
7417# -----------------
7418# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7419as_fn_exit ()
7420{
7421 set +e
7422 as_fn_set_status $1
7423 exit $1
7424} # as_fn_exit
7425
7426# as_fn_unset VAR
7427# ---------------
7428# Portably unset VAR.
7429as_fn_unset ()
7430{
7431 { eval $1=; unset $1;}
7432}
7433as_unset=as_fn_unset
7434# as_fn_append VAR VALUE
7435# ----------------------
7436# Append the text in VALUE to the end of the definition contained in VAR. Take
7437# advantage of any shell optimizations that allow amortized linear growth over
7438# repeated appends, instead of the typical quadratic growth present in naive
7439# implementations.
7440if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7441 eval 'as_fn_append ()
7442 {
7443 eval $1+=\$2
7444 }'
7445else
7446 as_fn_append ()
7447 {
7448 eval $1=\$$1\$2
7449 }
7450fi # as_fn_append
7451
7452# as_fn_arith ARG...
7453# ------------------
7454# Perform arithmetic evaluation on the ARGs, and store the result in the
7455# global $as_val. Take advantage of shells that can avoid forks. The arguments
7456# must be portable across $(()) and expr.
7457if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7458 eval 'as_fn_arith ()
7459 {
7460 as_val=$(( $* ))
7461 }'
7462else
7463 as_fn_arith ()
7464 {
7465 as_val=`expr "$@" || test $? -eq 1`
7466 }
7467fi # as_fn_arith
7468
7469
7470if expr a : '\(a\)' >/dev/null 2>&1 &&
7471 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7472 as_expr=expr
7473else
7474 as_expr=false
7475fi
7476
7477if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7478 as_basename=basename
7479else
7480 as_basename=false
7481fi
7482
7483if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7484 as_dirname=dirname
7485else
7486 as_dirname=false
7487fi
7488
7489as_me=`$as_basename -- "$0" ||
7490$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7491 X"$0" : 'X\(//\)$' \| \
7492 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7493$as_echo X/"$0" |
7494 sed '/^.*\/\([^/][^/]*\)\/*$/{
7495 s//\1/
7496 q
7497 }
7498 /^X\/\(\/\/\)$/{
7499 s//\1/
7500 q
7501 }
7502 /^X\/\(\/\).*/{
7503 s//\1/
7504 q
7505 }
7506 s/.*/./; q'`
7507
7508# Avoid depending upon Character Ranges.
7509as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7510as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7511as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7512as_cr_digits='0123456789'
7513as_cr_alnum=$as_cr_Letters$as_cr_digits
7514
7515ECHO_C= ECHO_N= ECHO_T=
7516case `echo -n x` in #(((((
7517-n*)
7518 case `echo 'xy\c'` in
7519 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7520 xy) ECHO_C='\c';;
7521 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7522 ECHO_T=' ';;
7523 esac;;
7524*)
7525 ECHO_N='-n';;
7526esac
7527
7528rm -f conf$$ conf$$.exe conf$$.file
7529if test -d conf$$.dir; then
7530 rm -f conf$$.dir/conf$$.file
7531else
7532 rm -f conf$$.dir
7533 mkdir conf$$.dir 2>/dev/null
7534fi
7535if (echo >conf$$.file) 2>/dev/null; then
7536 if ln -s conf$$.file conf$$ 2>/dev/null; then
7537 as_ln_s='ln -s'
7538 # ... but there are two gotchas:
7539 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7540 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7541 # In both cases, we have to default to `cp -p'.
7542 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7543 as_ln_s='cp -p'
7544 elif ln conf$$.file conf$$ 2>/dev/null; then
7545 as_ln_s=ln
7546 else
7547 as_ln_s='cp -p'
7548 fi
7549else
7550 as_ln_s='cp -p'
7551fi
7552rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7553rmdir conf$$.dir 2>/dev/null
7554
7555
7556# as_fn_mkdir_p
7557# -------------
7558# Create "$as_dir" as a directory, including parents if necessary.
7559as_fn_mkdir_p ()
7560{
7561
7562 case $as_dir in #(
7563 -*) as_dir=./$as_dir;;
7564 esac
7565 test -d "$as_dir" || eval $as_mkdir_p || {
7566 as_dirs=
7567 while :; do
7568 case $as_dir in #(
7569 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7570 *) as_qdir=$as_dir;;
7571 esac
7572 as_dirs="'$as_qdir' $as_dirs"
7573 as_dir=`$as_dirname -- "$as_dir" ||
7574$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7575 X"$as_dir" : 'X\(//\)[^/]' \| \
7576 X"$as_dir" : 'X\(//\)$' \| \
7577 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7578$as_echo X"$as_dir" |
7579 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7580 s//\1/
7581 q
7582 }
7583 /^X\(\/\/\)[^/].*/{
7584 s//\1/
7585 q
7586 }
7587 /^X\(\/\/\)$/{
7588 s//\1/
7589 q
7590 }
7591 /^X\(\/\).*/{
7592 s//\1/
7593 q
7594 }
7595 s/.*/./; q'`
7596 test -d "$as_dir" && break
7597 done
7598 test -z "$as_dirs" || eval "mkdir $as_dirs"
7599 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7600
7601
7602} # as_fn_mkdir_p
7603if mkdir -p . 2>/dev/null; then
7604 as_mkdir_p='mkdir -p "$as_dir"'
7605else
7606 test -d ./-p && rmdir ./-p
7607 as_mkdir_p=false
7608fi
7609
7610if test -x / >/dev/null 2>&1; then
7611 as_test_x='test -x'
7612else
7613 if ls -dL / >/dev/null 2>&1; then
7614 as_ls_L_option=L
7615 else
7616 as_ls_L_option=
7617 fi
7618 as_test_x='
7619 eval sh -c '\''
7620 if test -d "$1"; then
7621 test -d "$1/.";
7622 else
7623 case $1 in #(
7624 -*)set "./$1";;
7625 esac;
7626 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
7627 ???[sx]*):;;*)false;;esac;fi
7628 '\'' sh
7629 '
7630fi
7631as_executable_p=$as_test_x
7632
7633# Sed expression to map a string onto a valid CPP name.
7634as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7635
7636# Sed expression to map a string onto a valid variable name.
7637as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7638
7639
7640exec 6>&1
7641## ----------------------------------- ##
7642## Main body of $CONFIG_STATUS script. ##
7643## ----------------------------------- ##
7644_ASEOF
7645test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7646
7647cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7648# Save the log message, to keep $0 and so on meaningful, and to
7649# report actual input values of CONFIG_FILES etc. instead of their
7650# values after options handling.
7651ac_log="
7652This file was extended by rdesktop $as_me 1.7.0, which was
7653generated by GNU Autoconf 2.68. Invocation command line was
7654
7655 CONFIG_FILES = $CONFIG_FILES
7656 CONFIG_HEADERS = $CONFIG_HEADERS
7657 CONFIG_LINKS = $CONFIG_LINKS
7658 CONFIG_COMMANDS = $CONFIG_COMMANDS
7659 $ $0 $@
7660
7661on `(hostname || uname -n) 2>/dev/null | sed 1q`
7662"
7663
7664_ACEOF
7665
7666case $ac_config_files in *"
7667"*) set x $ac_config_files; shift; ac_config_files=$*;;
7668esac
7669
7670
7671
7672cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7673# Files that config.status was made for.
7674config_files="$ac_config_files"
7675
7676_ACEOF
7677
7678cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7679ac_cs_usage="\
7680\`$as_me' instantiates files and other configuration actions
7681from templates according to the current configuration. Unless the files
7682and actions are specified as TAGs, all are instantiated by default.
7683
7684Usage: $0 [OPTION]... [TAG]...
7685
7686 -h, --help print this help, then exit
7687 -V, --version print version number and configuration settings, then exit
7688 --config print configuration, then exit
7689 -q, --quiet, --silent
7690 do not print progress messages
7691 -d, --debug don't remove temporary files
7692 --recheck update $as_me by reconfiguring in the same conditions
7693 --file=FILE[:TEMPLATE]
7694 instantiate the configuration file FILE
7695
7696Configuration files:
7697$config_files
7698
7699Report bugs to the package provider."
7700
7701_ACEOF
7702cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7703ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7704ac_cs_version="\\
7705rdesktop config.status 1.7.0
7706configured by $0, generated by GNU Autoconf 2.68,
7707 with options \\"\$ac_cs_config\\"
7708
7709Copyright (C) 2010 Free Software Foundation, Inc.
7710This config.status script is free software; the Free Software Foundation
7711gives unlimited permission to copy, distribute and modify it."
7712
7713ac_pwd='$ac_pwd'
7714srcdir='$srcdir'
7715INSTALL='$INSTALL'
7716test -n "\$AWK" || AWK=awk
7717_ACEOF
7718
7719cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7720# The default lists apply if the user does not specify any file.
7721ac_need_defaults=:
7722while test $# != 0
7723do
7724 case $1 in
7725 --*=?*)
7726 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7727 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7728 ac_shift=:
7729 ;;
7730 --*=)
7731 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7732 ac_optarg=
7733 ac_shift=:
7734 ;;
7735 *)
7736 ac_option=$1
7737 ac_optarg=$2
7738 ac_shift=shift
7739 ;;
7740 esac
7741
7742 case $ac_option in
7743 # Handling of the options.
7744 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7745 ac_cs_recheck=: ;;
7746 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7747 $as_echo "$ac_cs_version"; exit ;;
7748 --config | --confi | --conf | --con | --co | --c )
7749 $as_echo "$ac_cs_config"; exit ;;
7750 --debug | --debu | --deb | --de | --d | -d )
7751 debug=: ;;
7752 --file | --fil | --fi | --f )
7753 $ac_shift
7754 case $ac_optarg in
7755 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7756 '') as_fn_error $? "missing file argument" ;;
7757 esac
7758 as_fn_append CONFIG_FILES " '$ac_optarg'"
7759 ac_need_defaults=false;;
7760 --he | --h | --help | --hel | -h )
7761 $as_echo "$ac_cs_usage"; exit ;;
7762 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7763 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7764 ac_cs_silent=: ;;
7765
7766 # This is an error.
7767 -*) as_fn_error $? "unrecognized option: \`$1'
7768Try \`$0 --help' for more information." ;;
7769
7770 *) as_fn_append ac_config_targets " $1"
7771 ac_need_defaults=false ;;
7772
7773 esac
7774 shift
7775done
7776
7777ac_configure_extra_args=
7778
7779if $ac_cs_silent; then
7780 exec 6>/dev/null
7781 ac_configure_extra_args="$ac_configure_extra_args --silent"
7782fi
7783
7784_ACEOF
7785cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7786if \$ac_cs_recheck; then
7787 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7788 shift
7789 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7790 CONFIG_SHELL='$SHELL'
7791 export CONFIG_SHELL
7792 exec "\$@"
7793fi
7794
7795_ACEOF
7796cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7797exec 5>>config.log
7798{
7799 echo
7800 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7801## Running $as_me. ##
7802_ASBOX
7803 $as_echo "$ac_log"
7804} >&5
7805
7806_ACEOF
7807cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7808_ACEOF
7809
7810cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7811
7812# Handling of arguments.
7813for ac_config_target in $ac_config_targets
7814do
7815 case $ac_config_target in
7816 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7817
7818 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7819 esac
7820done
7821
7822
7823# If the user did not use the arguments to specify the items to instantiate,
7824# then the envvar interface is used. Set only those that are not.
7825# We use the long form for the default assignment because of an extremely
7826# bizarre bug on SunOS 4.1.3.
7827if $ac_need_defaults; then
7828 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7829fi
7830
7831# Have a temporary directory for convenience. Make it in the build tree
7832# simply because there is no reason against having it here, and in addition,
7833# creating and moving files from /tmp can sometimes cause problems.
7834# Hook for its removal unless debugging.
7835# Note that there is a small window in which the directory will not be cleaned:
7836# after its creation but before its name has been assigned to `$tmp'.
7837$debug ||
7838{
7839 tmp= ac_tmp=
7840 trap 'exit_status=$?
7841 : "${ac_tmp:=$tmp}"
7842 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7843' 0
7844 trap 'as_fn_exit 1' 1 2 13 15
7845}
7846# Create a (secure) tmp directory for tmp files.
7847
7848{
7849 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7850 test -d "$tmp"
7851} ||
7852{
7853 tmp=./conf$$-$RANDOM
7854 (umask 077 && mkdir "$tmp")
7855} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
7856ac_tmp=$tmp
7857
7858# Set up the scripts for CONFIG_FILES section.
7859# No need to generate them if there are no CONFIG_FILES.
7860# This happens for instance with `./config.status config.h'.
7861if test -n "$CONFIG_FILES"; then
7862
7863
7864ac_cr=`echo X | tr X '\015'`
7865# On cygwin, bash can eat \r inside `` if the user requested igncr.
7866# But we know of no other shell where ac_cr would be empty at this
7867# point, so we can use a bashism as a fallback.
7868if test "x$ac_cr" = x; then
7869 eval ac_cr=\$\'\\r\'
7870fi
7871ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7872if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7873 ac_cs_awk_cr='\\r'
7874else
7875 ac_cs_awk_cr=$ac_cr
7876fi
7877
7878echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7879_ACEOF
7880
7881
7882{
7883 echo "cat >conf$$subs.awk <<_ACEOF" &&
7884 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7885 echo "_ACEOF"
7886} >conf$$subs.sh ||
7887 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7888ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7889ac_delim='%!_!# '
7890for ac_last_try in false false false false false :; do
7891 . ./conf$$subs.sh ||
7892 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7893
7894 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7895 if test $ac_delim_n = $ac_delim_num; then
7896 break
7897 elif $ac_last_try; then
7898 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7899 else
7900 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7901 fi
7902done
7903rm -f conf$$subs.sh
7904
7905cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7906cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7907_ACEOF
7908sed -n '
7909h
7910s/^/S["/; s/!.*/"]=/
7911p
7912g
7913s/^[^!]*!//
7914:repl
7915t repl
7916s/'"$ac_delim"'$//
7917t delim
7918:nl
7919h
7920s/\(.\{148\}\)..*/\1/
7921t more1
7922s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7923p
7924n
7925b repl
7926:more1
7927s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7928p
7929g
7930s/.\{148\}//
7931t nl
7932:delim
7933h
7934s/\(.\{148\}\)..*/\1/
7935t more2
7936s/["\\]/\\&/g; s/^/"/; s/$/"/
7937p
7938b
7939:more2
7940s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7941p
7942g
7943s/.\{148\}//
7944t delim
7945' <conf$$subs.awk | sed '
7946/^[^""]/{
7947 N
7948 s/\n//
7949}
7950' >>$CONFIG_STATUS || ac_write_fail=1
7951rm -f conf$$subs.awk
7952cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7953_ACAWK
7954cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7955 for (key in S) S_is_set[key] = 1
7956 FS = ""
7957
7958}
7959{
7960 line = $ 0
7961 nfields = split(line, field, "@")
7962 substed = 0
7963 len = length(field[1])
7964 for (i = 2; i < nfields; i++) {
7965 key = field[i]
7966 keylen = length(key)
7967 if (S_is_set[key]) {
7968 value = S[key]
7969 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7970 len += length(value) + length(field[++i])
7971 substed = 1
7972 } else
7973 len += 1 + keylen
7974 }
7975
7976 print line
7977}
7978
7979_ACAWK
7980_ACEOF
7981cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7982if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7983 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7984else
7985 cat
7986fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
7987 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7988_ACEOF
7989
7990# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7991# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7992# trailing colons and then remove the whole line if VPATH becomes empty
7993# (actually we leave an empty line to preserve line numbers).
7994if test "x$srcdir" = x.; then
7995 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
7996h
7997s///
7998s/^/:/
7999s/[ ]*$/:/
8000s/:\$(srcdir):/:/g
8001s/:\${srcdir}:/:/g
8002s/:@srcdir@:/:/g
8003s/^:*//
8004s/:*$//
8005x
8006s/\(=[ ]*\).*/\1/
8007G
8008s/\n//
8009s/^[^=]*=[ ]*$//
8010}'
8011fi
8012
8013cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8014fi # test -n "$CONFIG_FILES"
8015
8016
8017eval set X " :F $CONFIG_FILES "
8018shift
8019for ac_tag
8020do
8021 case $ac_tag in
8022 :[FHLC]) ac_mode=$ac_tag; continue;;
8023 esac
8024 case $ac_mode$ac_tag in
8025 :[FHL]*:*);;
8026 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
8027 :[FH]-) ac_tag=-:-;;
8028 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8029 esac
8030 ac_save_IFS=$IFS
8031 IFS=:
8032 set x $ac_tag
8033 IFS=$ac_save_IFS
8034 shift
8035 ac_file=$1
8036 shift
8037
8038 case $ac_mode in
8039 :L) ac_source=$1;;
8040 :[FH])
8041 ac_file_inputs=
8042 for ac_f
8043 do
8044 case $ac_f in
8045 -) ac_f="$ac_tmp/stdin";;
8046 *) # Look for the file first in the build tree, then in the source tree
8047 # (if the path is not absolute). The absolute path cannot be DOS-style,
8048 # because $ac_f cannot contain `:'.
8049 test -f "$ac_f" ||
8050 case $ac_f in
8051 [\\/$]*) false;;
8052 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8053 esac ||
8054 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8055 esac
8056 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8057 as_fn_append ac_file_inputs " '$ac_f'"
8058 done
8059
8060 # Let's still pretend it is `configure' which instantiates (i.e., don't
8061 # use $as_me), people would be surprised to read:
8062 # /* config.h. Generated by config.status. */
8063 configure_input='Generated from '`
8064 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8065 `' by configure.'
8066 if test x"$ac_file" != x-; then
8067 configure_input="$ac_file. $configure_input"
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8069$as_echo "$as_me: creating $ac_file" >&6;}
8070 fi
8071 # Neutralize special characters interpreted by sed in replacement strings.
8072 case $configure_input in #(
8073 *\&* | *\|* | *\\* )
8074 ac_sed_conf_input=`$as_echo "$configure_input" |
8075 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8076 *) ac_sed_conf_input=$configure_input;;
8077 esac
8078
8079 case $ac_tag in
8080 *:-:* | *:-) cat >"$ac_tmp/stdin" \
8081 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8082 esac
8083 ;;
8084 esac
8085
8086 ac_dir=`$as_dirname -- "$ac_file" ||
8087$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8088 X"$ac_file" : 'X\(//\)[^/]' \| \
8089 X"$ac_file" : 'X\(//\)$' \| \
8090 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8091$as_echo X"$ac_file" |
8092 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8093 s//\1/
8094 q
8095 }
8096 /^X\(\/\/\)[^/].*/{
8097 s//\1/
8098 q
8099 }
8100 /^X\(\/\/\)$/{
8101 s//\1/
8102 q
8103 }
8104 /^X\(\/\).*/{
8105 s//\1/
8106 q
8107 }
8108 s/.*/./; q'`
8109 as_dir="$ac_dir"; as_fn_mkdir_p
8110 ac_builddir=.
8111
8112case "$ac_dir" in
8113.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8114*)
8115 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8116 # A ".." for each directory in $ac_dir_suffix.
8117 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8118 case $ac_top_builddir_sub in
8119 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8120 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8121 esac ;;
8122esac
8123ac_abs_top_builddir=$ac_pwd
8124ac_abs_builddir=$ac_pwd$ac_dir_suffix
8125# for backward compatibility:
8126ac_top_builddir=$ac_top_build_prefix
8127
8128case $srcdir in
8129 .) # We are building in place.
8130 ac_srcdir=.
8131 ac_top_srcdir=$ac_top_builddir_sub
8132 ac_abs_top_srcdir=$ac_pwd ;;
8133 [\\/]* | ?:[\\/]* ) # Absolute name.
8134 ac_srcdir=$srcdir$ac_dir_suffix;
8135 ac_top_srcdir=$srcdir
8136 ac_abs_top_srcdir=$srcdir ;;
8137 *) # Relative name.
8138 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8139 ac_top_srcdir=$ac_top_build_prefix$srcdir
8140 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8141esac
8142ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8143
8144
8145 case $ac_mode in
8146 :F)
8147 #
8148 # CONFIG_FILE
8149 #
8150
8151 case $INSTALL in
8152 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8153 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8154 esac
8155_ACEOF
8156
8157cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8158# If the template does not know about datarootdir, expand it.
8159# FIXME: This hack should be removed a few years after 2.60.
8160ac_datarootdir_hack=; ac_datarootdir_seen=
8161ac_sed_dataroot='
8162/datarootdir/ {
8163 p
8164 q
8165}
8166/@datadir@/p
8167/@docdir@/p
8168/@infodir@/p
8169/@localedir@/p
8170/@mandir@/p'
8171case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8172*datarootdir*) ac_datarootdir_seen=yes;;
8173*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8175$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8176_ACEOF
8177cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8178 ac_datarootdir_hack='
8179 s&@datadir@&$datadir&g
8180 s&@docdir@&$docdir&g
8181 s&@infodir@&$infodir&g
8182 s&@localedir@&$localedir&g
8183 s&@mandir@&$mandir&g
8184 s&\\\${datarootdir}&$datarootdir&g' ;;
8185esac
8186_ACEOF
8187
8188# Neutralize VPATH when `$srcdir' = `.'.
8189# Shell code in configure.ac might set extrasub.
8190# FIXME: do we really want to maintain this feature?
8191cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8192ac_sed_extra="$ac_vpsub
8193$extrasub
8194_ACEOF
8195cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8196:t
8197/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8198s|@configure_input@|$ac_sed_conf_input|;t t
8199s&@top_builddir@&$ac_top_builddir_sub&;t t
8200s&@top_build_prefix@&$ac_top_build_prefix&;t t
8201s&@srcdir@&$ac_srcdir&;t t
8202s&@abs_srcdir@&$ac_abs_srcdir&;t t
8203s&@top_srcdir@&$ac_top_srcdir&;t t
8204s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8205s&@builddir@&$ac_builddir&;t t
8206s&@abs_builddir@&$ac_abs_builddir&;t t
8207s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8208s&@INSTALL@&$ac_INSTALL&;t t
8209$ac_datarootdir_hack
8210"
8211eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
8212 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8213
8214test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8215 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
8216 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
8217 "$ac_tmp/out"`; test -z "$ac_out"; } &&
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8219which seems to be undefined. Please make sure it is defined" >&5
8220$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8221which seems to be undefined. Please make sure it is defined" >&2;}
8222
8223 rm -f "$ac_tmp/stdin"
8224 case $ac_file in
8225 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8226 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8227 esac \
8228 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8229 ;;
8230
8231
8232
8233 esac
8234
8235done # for ac_tag
8236
8237
8238as_fn_exit 0
8239_ACEOF
8240ac_clean_files=$ac_clean_files_save
8241
8242test $ac_write_fail = 0 ||
8243 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8244
8245
8246# configure is writing to config.log, and then calls config.status.
8247# config.status does its own redirection, appending to config.log.
8248# Unfortunately, on DOS this fails, as config.log is still kept open
8249# by configure, so config.status won't be able to write to it; its
8250# output is simply discarded. So we exec the FD to /dev/null,
8251# effectively closing config.log, so it can be properly (re)opened and
8252# appended to by config.status. When coming back to configure, we
8253# need to make the FD available again.
8254if test "$no_create" != yes; then
8255 ac_cs_success=:
8256 ac_config_status_args=
8257 test "$silent" = yes &&
8258 ac_config_status_args="$ac_config_status_args --quiet"
8259 exec 5>/dev/null
8260 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8261 exec 5>>config.log
8262 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8263 # would make configure fail if this is the last instruction.
8264 $ac_cs_success || as_fn_exit 1
8265fi
8266if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8268$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
8269fi
8270
8271
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette