1 | #! /bin/sh
|
---|
2 | # Guess values for system-dependent variables and create Makefiles.
|
---|
3 | # Generated by GNU Autoconf 2.67 for rdesktop 1.6.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
|
---|
18 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
19 | if 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
|
---|
26 | else
|
---|
27 | case `(set -o) 2>/dev/null` in #(
|
---|
28 | *posix*) :
|
---|
29 | set -o posix ;; #(
|
---|
30 | *) :
|
---|
31 | ;;
|
---|
32 | esac
|
---|
33 | fi
|
---|
34 |
|
---|
35 |
|
---|
36 | as_nl='
|
---|
37 | '
|
---|
38 | export as_nl
|
---|
39 | # Printing a long string crashes Solaris 7 /usr/bin/printf.
|
---|
40 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
|
---|
41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
|
---|
42 | as_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.
|
---|
45 | if 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 --'
|
---|
49 | elif (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'
|
---|
52 | else
|
---|
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'
|
---|
72 | fi
|
---|
73 |
|
---|
74 | # The user is always right.
|
---|
75 | if 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 | }
|
---|
81 | fi
|
---|
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.)
|
---|
89 | IFS=" "" $as_nl"
|
---|
90 |
|
---|
91 | # Find who we are. Look in the path if we contain no directory separator.
|
---|
92 | case $0 in #((
|
---|
93 | *[\\/]* ) as_myself=$0 ;;
|
---|
94 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
95 | for as_dir in $PATH
|
---|
96 | do
|
---|
97 | IFS=$as_save_IFS
|
---|
98 | test -z "$as_dir" && as_dir=.
|
---|
99 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
---|
100 | done
|
---|
101 | IFS=$as_save_IFS
|
---|
102 |
|
---|
103 | ;;
|
---|
104 | esac
|
---|
105 | # We did not find ourselves, most probably we were run as `sh COMMAND'
|
---|
106 | # in which case we are not to be found in the path.
|
---|
107 | if test "x$as_myself" = x; then
|
---|
108 | as_myself=$0
|
---|
109 | fi
|
---|
110 | if test ! -f "$as_myself"; then
|
---|
111 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
|
---|
112 | exit 1
|
---|
113 | fi
|
---|
114 |
|
---|
115 | # Unset variables that we do not need and which cause bugs (e.g. in
|
---|
116 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
|
---|
117 | # suppresses any "Segmentation fault" message there. '((' could
|
---|
118 | # trigger a bug in pdksh 5.2.14.
|
---|
119 | for as_var in BASH_ENV ENV MAIL MAILPATH
|
---|
120 | do eval test x\${$as_var+set} = xset \
|
---|
121 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
|
---|
122 | done
|
---|
123 | PS1='$ '
|
---|
124 | PS2='> '
|
---|
125 | PS4='+ '
|
---|
126 |
|
---|
127 | # NLS nuisances.
|
---|
128 | LC_ALL=C
|
---|
129 | export LC_ALL
|
---|
130 | LANGUAGE=C
|
---|
131 | export LANGUAGE
|
---|
132 |
|
---|
133 | # CDPATH.
|
---|
134 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
---|
135 |
|
---|
136 | if test "x$CONFIG_SHELL" = x; then
|
---|
137 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
|
---|
138 | emulate sh
|
---|
139 | NULLCMD=:
|
---|
140 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
|
---|
141 | # is contrary to our usage. Disable this feature.
|
---|
142 | alias -g '\${1+\"\$@\"}'='\"\$@\"'
|
---|
143 | setopt NO_GLOB_SUBST
|
---|
144 | else
|
---|
145 | case \`(set -o) 2>/dev/null\` in #(
|
---|
146 | *posix*) :
|
---|
147 | set -o posix ;; #(
|
---|
148 | *) :
|
---|
149 | ;;
|
---|
150 | esac
|
---|
151 | fi
|
---|
152 | "
|
---|
153 | as_required="as_fn_return () { (exit \$1); }
|
---|
154 | as_fn_success () { as_fn_return 0; }
|
---|
155 | as_fn_failure () { as_fn_return 1; }
|
---|
156 | as_fn_ret_success () { return 0; }
|
---|
157 | as_fn_ret_failure () { return 1; }
|
---|
158 |
|
---|
159 | exitcode=0
|
---|
160 | as_fn_success || { exitcode=1; echo as_fn_success failed.; }
|
---|
161 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
|
---|
162 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
|
---|
163 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
|
---|
164 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
|
---|
165 |
|
---|
166 | else
|
---|
167 | exitcode=1; echo positional parameters were not saved.
|
---|
168 | fi
|
---|
169 | test x\$exitcode = x0 || exit 1"
|
---|
170 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
|
---|
171 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
|
---|
172 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
|
---|
173 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
|
---|
174 | test \$(( 1 + 1 )) = 2 || exit 1"
|
---|
175 | if (eval "$as_required") 2>/dev/null; then :
|
---|
176 | as_have_required=yes
|
---|
177 | else
|
---|
178 | as_have_required=no
|
---|
179 | fi
|
---|
180 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
|
---|
181 |
|
---|
182 | else
|
---|
183 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
184 | as_found=false
|
---|
185 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
|
---|
186 | do
|
---|
187 | IFS=$as_save_IFS
|
---|
188 | test -z "$as_dir" && as_dir=.
|
---|
189 | as_found=:
|
---|
190 | case $as_dir in #(
|
---|
191 | /*)
|
---|
192 | for as_base in sh bash ksh sh5; do
|
---|
193 | # Try only shells that exist, to save several forks.
|
---|
194 | as_shell=$as_dir/$as_base
|
---|
195 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
|
---|
196 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
|
---|
197 | CONFIG_SHELL=$as_shell as_have_required=yes
|
---|
198 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
|
---|
199 | break 2
|
---|
200 | fi
|
---|
201 | fi
|
---|
202 | done;;
|
---|
203 | esac
|
---|
204 | as_found=false
|
---|
205 | done
|
---|
206 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
|
---|
207 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
|
---|
208 | CONFIG_SHELL=$SHELL as_have_required=yes
|
---|
209 | fi; }
|
---|
210 | IFS=$as_save_IFS
|
---|
211 |
|
---|
212 |
|
---|
213 | if test "x$CONFIG_SHELL" != x; then :
|
---|
214 | # We cannot yet assume a decent shell, so we have to provide a
|
---|
215 | # neutralization value for shells without unset; and this also
|
---|
216 | # works around shells that cannot unset nonexistent variables.
|
---|
217 | BASH_ENV=/dev/null
|
---|
218 | ENV=/dev/null
|
---|
219 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
|
---|
220 | export CONFIG_SHELL
|
---|
221 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
|
---|
222 | fi
|
---|
223 |
|
---|
224 | if test x$as_have_required = xno; then :
|
---|
225 | $as_echo "$0: This script requires a shell more modern than all"
|
---|
226 | $as_echo "$0: the shells that I found on your system."
|
---|
227 | if test x${ZSH_VERSION+set} = xset ; then
|
---|
228 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
|
---|
229 | $as_echo "$0: be upgraded to zsh 4.3.4 or later."
|
---|
230 | else
|
---|
231 | $as_echo "$0: Please tell [email protected] about your system,
|
---|
232 | $0: including any error possibly output before this
|
---|
233 | $0: message. Then install a modern shell, or manually run
|
---|
234 | $0: the script under such a shell if you do have one."
|
---|
235 | fi
|
---|
236 | exit 1
|
---|
237 | fi
|
---|
238 | fi
|
---|
239 | fi
|
---|
240 | SHELL=${CONFIG_SHELL-/bin/sh}
|
---|
241 | export SHELL
|
---|
242 | # Unset more variables known to interfere with behavior of common tools.
|
---|
243 | CLICOLOR_FORCE= GREP_OPTIONS=
|
---|
244 | unset CLICOLOR_FORCE GREP_OPTIONS
|
---|
245 |
|
---|
246 | ## --------------------- ##
|
---|
247 | ## M4sh Shell Functions. ##
|
---|
248 | ## --------------------- ##
|
---|
249 | # as_fn_unset VAR
|
---|
250 | # ---------------
|
---|
251 | # Portably unset VAR.
|
---|
252 | as_fn_unset ()
|
---|
253 | {
|
---|
254 | { eval $1=; unset $1;}
|
---|
255 | }
|
---|
256 | as_unset=as_fn_unset
|
---|
257 |
|
---|
258 | # as_fn_set_status STATUS
|
---|
259 | # -----------------------
|
---|
260 | # Set $? to STATUS, without forking.
|
---|
261 | as_fn_set_status ()
|
---|
262 | {
|
---|
263 | return $1
|
---|
264 | } # as_fn_set_status
|
---|
265 |
|
---|
266 | # as_fn_exit STATUS
|
---|
267 | # -----------------
|
---|
268 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
|
---|
269 | as_fn_exit ()
|
---|
270 | {
|
---|
271 | set +e
|
---|
272 | as_fn_set_status $1
|
---|
273 | exit $1
|
---|
274 | } # as_fn_exit
|
---|
275 |
|
---|
276 | # as_fn_mkdir_p
|
---|
277 | # -------------
|
---|
278 | # Create "$as_dir" as a directory, including parents if necessary.
|
---|
279 | as_fn_mkdir_p ()
|
---|
280 | {
|
---|
281 |
|
---|
282 | case $as_dir in #(
|
---|
283 | -*) as_dir=./$as_dir;;
|
---|
284 | esac
|
---|
285 | test -d "$as_dir" || eval $as_mkdir_p || {
|
---|
286 | as_dirs=
|
---|
287 | while :; do
|
---|
288 | case $as_dir in #(
|
---|
289 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
|
---|
290 | *) as_qdir=$as_dir;;
|
---|
291 | esac
|
---|
292 | as_dirs="'$as_qdir' $as_dirs"
|
---|
293 | as_dir=`$as_dirname -- "$as_dir" ||
|
---|
294 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
295 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
296 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
297 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
298 | $as_echo X"$as_dir" |
|
---|
299 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
300 | s//\1/
|
---|
301 | q
|
---|
302 | }
|
---|
303 | /^X\(\/\/\)[^/].*/{
|
---|
304 | s//\1/
|
---|
305 | q
|
---|
306 | }
|
---|
307 | /^X\(\/\/\)$/{
|
---|
308 | s//\1/
|
---|
309 | q
|
---|
310 | }
|
---|
311 | /^X\(\/\).*/{
|
---|
312 | s//\1/
|
---|
313 | q
|
---|
314 | }
|
---|
315 | s/.*/./; q'`
|
---|
316 | test -d "$as_dir" && break
|
---|
317 | done
|
---|
318 | test -z "$as_dirs" || eval "mkdir $as_dirs"
|
---|
319 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
|
---|
320 |
|
---|
321 |
|
---|
322 | } # as_fn_mkdir_p
|
---|
323 | # as_fn_append VAR VALUE
|
---|
324 | # ----------------------
|
---|
325 | # Append the text in VALUE to the end of the definition contained in VAR. Take
|
---|
326 | # advantage of any shell optimizations that allow amortized linear growth over
|
---|
327 | # repeated appends, instead of the typical quadratic growth present in naive
|
---|
328 | # implementations.
|
---|
329 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
|
---|
330 | eval 'as_fn_append ()
|
---|
331 | {
|
---|
332 | eval $1+=\$2
|
---|
333 | }'
|
---|
334 | else
|
---|
335 | as_fn_append ()
|
---|
336 | {
|
---|
337 | eval $1=\$$1\$2
|
---|
338 | }
|
---|
339 | fi # as_fn_append
|
---|
340 |
|
---|
341 | # as_fn_arith ARG...
|
---|
342 | # ------------------
|
---|
343 | # Perform arithmetic evaluation on the ARGs, and store the result in the
|
---|
344 | # global $as_val. Take advantage of shells that can avoid forks. The arguments
|
---|
345 | # must be portable across $(()) and expr.
|
---|
346 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
|
---|
347 | eval 'as_fn_arith ()
|
---|
348 | {
|
---|
349 | as_val=$(( $* ))
|
---|
350 | }'
|
---|
351 | else
|
---|
352 | as_fn_arith ()
|
---|
353 | {
|
---|
354 | as_val=`expr "$@" || test $? -eq 1`
|
---|
355 | }
|
---|
356 | fi # as_fn_arith
|
---|
357 |
|
---|
358 |
|
---|
359 | # as_fn_error STATUS ERROR [LINENO LOG_FD]
|
---|
360 | # ----------------------------------------
|
---|
361 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
|
---|
362 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
|
---|
363 | # script with STATUS, using 1 if that was 0.
|
---|
364 | as_fn_error ()
|
---|
365 | {
|
---|
366 | as_status=$1; test $as_status -eq 0 && as_status=1
|
---|
367 | if test "$4"; then
|
---|
368 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
369 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
|
---|
370 | fi
|
---|
371 | $as_echo "$as_me: error: $2" >&2
|
---|
372 | as_fn_exit $as_status
|
---|
373 | } # as_fn_error
|
---|
374 |
|
---|
375 | if expr a : '\(a\)' >/dev/null 2>&1 &&
|
---|
376 | test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
---|
377 | as_expr=expr
|
---|
378 | else
|
---|
379 | as_expr=false
|
---|
380 | fi
|
---|
381 |
|
---|
382 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
|
---|
383 | as_basename=basename
|
---|
384 | else
|
---|
385 | as_basename=false
|
---|
386 | fi
|
---|
387 |
|
---|
388 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
|
---|
389 | as_dirname=dirname
|
---|
390 | else
|
---|
391 | as_dirname=false
|
---|
392 | fi
|
---|
393 |
|
---|
394 | as_me=`$as_basename -- "$0" ||
|
---|
395 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
396 | X"$0" : 'X\(//\)$' \| \
|
---|
397 | X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
398 | $as_echo X/"$0" |
|
---|
399 | sed '/^.*\/\([^/][^/]*\)\/*$/{
|
---|
400 | s//\1/
|
---|
401 | q
|
---|
402 | }
|
---|
403 | /^X\/\(\/\/\)$/{
|
---|
404 | s//\1/
|
---|
405 | q
|
---|
406 | }
|
---|
407 | /^X\/\(\/\).*/{
|
---|
408 | s//\1/
|
---|
409 | q
|
---|
410 | }
|
---|
411 | s/.*/./; q'`
|
---|
412 |
|
---|
413 | # Avoid depending upon Character Ranges.
|
---|
414 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
415 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
416 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
417 | as_cr_digits='0123456789'
|
---|
418 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
419 |
|
---|
420 |
|
---|
421 | as_lineno_1=$LINENO as_lineno_1a=$LINENO
|
---|
422 | as_lineno_2=$LINENO as_lineno_2a=$LINENO
|
---|
423 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
|
---|
424 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
|
---|
425 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
|
---|
426 | sed -n '
|
---|
427 | p
|
---|
428 | /[$]LINENO/=
|
---|
429 | ' <$as_myself |
|
---|
430 | sed '
|
---|
431 | s/[$]LINENO.*/&-/
|
---|
432 | t lineno
|
---|
433 | b
|
---|
434 | :lineno
|
---|
435 | N
|
---|
436 | :loop
|
---|
437 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
|
---|
438 | t loop
|
---|
439 | s/-\n.*//
|
---|
440 | ' >$as_me.lineno &&
|
---|
441 | chmod +x "$as_me.lineno" ||
|
---|
442 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
|
---|
443 |
|
---|
444 | # Don't try to exec as it changes $[0], causing all sort of problems
|
---|
445 | # (the dirname of $[0] is not the place where we might find the
|
---|
446 | # original and so on. Autoconf is especially sensitive to this).
|
---|
447 | . "./$as_me.lineno"
|
---|
448 | # Exit status is that of the last command.
|
---|
449 | exit
|
---|
450 | }
|
---|
451 |
|
---|
452 | ECHO_C= ECHO_N= ECHO_T=
|
---|
453 | case `echo -n x` in #(((((
|
---|
454 | -n*)
|
---|
455 | case `echo 'xy\c'` in
|
---|
456 | *c*) ECHO_T=' ';; # ECHO_T is single tab character.
|
---|
457 | xy) ECHO_C='\c';;
|
---|
458 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
|
---|
459 | ECHO_T=' ';;
|
---|
460 | esac;;
|
---|
461 | *)
|
---|
462 | ECHO_N='-n';;
|
---|
463 | esac
|
---|
464 |
|
---|
465 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
466 | if test -d conf$$.dir; then
|
---|
467 | rm -f conf$$.dir/conf$$.file
|
---|
468 | else
|
---|
469 | rm -f conf$$.dir
|
---|
470 | mkdir conf$$.dir 2>/dev/null
|
---|
471 | fi
|
---|
472 | if (echo >conf$$.file) 2>/dev/null; then
|
---|
473 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
474 | as_ln_s='ln -s'
|
---|
475 | # ... but there are two gotchas:
|
---|
476 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
|
---|
477 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
|
---|
478 | # In both cases, we have to default to `cp -p'.
|
---|
479 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
|
---|
480 | as_ln_s='cp -p'
|
---|
481 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
482 | as_ln_s=ln
|
---|
483 | else
|
---|
484 | as_ln_s='cp -p'
|
---|
485 | fi
|
---|
486 | else
|
---|
487 | as_ln_s='cp -p'
|
---|
488 | fi
|
---|
489 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
|
---|
490 | rmdir conf$$.dir 2>/dev/null
|
---|
491 |
|
---|
492 | if mkdir -p . 2>/dev/null; then
|
---|
493 | as_mkdir_p='mkdir -p "$as_dir"'
|
---|
494 | else
|
---|
495 | test -d ./-p && rmdir ./-p
|
---|
496 | as_mkdir_p=false
|
---|
497 | fi
|
---|
498 |
|
---|
499 | if test -x / >/dev/null 2>&1; then
|
---|
500 | as_test_x='test -x'
|
---|
501 | else
|
---|
502 | if ls -dL / >/dev/null 2>&1; then
|
---|
503 | as_ls_L_option=L
|
---|
504 | else
|
---|
505 | as_ls_L_option=
|
---|
506 | fi
|
---|
507 | as_test_x='
|
---|
508 | eval sh -c '\''
|
---|
509 | if test -d "$1"; then
|
---|
510 | test -d "$1/.";
|
---|
511 | else
|
---|
512 | case $1 in #(
|
---|
513 | -*)set "./$1";;
|
---|
514 | esac;
|
---|
515 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
|
---|
516 | ???[sx]*):;;*)false;;esac;fi
|
---|
517 | '\'' sh
|
---|
518 | '
|
---|
519 | fi
|
---|
520 | as_executable_p=$as_test_x
|
---|
521 |
|
---|
522 | # Sed expression to map a string onto a valid CPP name.
|
---|
523 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
---|
524 |
|
---|
525 | # Sed expression to map a string onto a valid variable name.
|
---|
526 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
---|
527 |
|
---|
528 |
|
---|
529 | test -n "$DJDIR" || exec 7<&0 </dev/null
|
---|
530 | exec 6>&1
|
---|
531 |
|
---|
532 | # Name of the host.
|
---|
533 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
|
---|
534 | # so uname gets run too.
|
---|
535 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
536 |
|
---|
537 | #
|
---|
538 | # Initializations.
|
---|
539 | #
|
---|
540 | ac_default_prefix=/usr/local
|
---|
541 | ac_clean_files=
|
---|
542 | ac_config_libobj_dir=.
|
---|
543 | LIBOBJS=
|
---|
544 | cross_compiling=no
|
---|
545 | subdirs=
|
---|
546 | MFLAGS=
|
---|
547 | MAKEFLAGS=
|
---|
548 |
|
---|
549 | # Identity of this package.
|
---|
550 | PACKAGE_NAME='rdesktop'
|
---|
551 | PACKAGE_TARNAME='rdesktop'
|
---|
552 | PACKAGE_VERSION='1.6.0'
|
---|
553 | PACKAGE_STRING='rdesktop 1.6.0'
|
---|
554 | PACKAGE_BUGREPORT=''
|
---|
555 | PACKAGE_URL=''
|
---|
556 |
|
---|
557 | ac_unique_file="rdesktop.c"
|
---|
558 | # Factoring default headers for most tests.
|
---|
559 | ac_includes_default="\
|
---|
560 | #include <stdio.h>
|
---|
561 | #ifdef HAVE_SYS_TYPES_H
|
---|
562 | # include <sys/types.h>
|
---|
563 | #endif
|
---|
564 | #ifdef HAVE_SYS_STAT_H
|
---|
565 | # include <sys/stat.h>
|
---|
566 | #endif
|
---|
567 | #ifdef STDC_HEADERS
|
---|
568 | # include <stdlib.h>
|
---|
569 | # include <stddef.h>
|
---|
570 | #else
|
---|
571 | # ifdef HAVE_STDLIB_H
|
---|
572 | # include <stdlib.h>
|
---|
573 | # endif
|
---|
574 | #endif
|
---|
575 | #ifdef HAVE_STRING_H
|
---|
576 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
|
---|
577 | # include <memory.h>
|
---|
578 | # endif
|
---|
579 | # include <string.h>
|
---|
580 | #endif
|
---|
581 | #ifdef HAVE_STRINGS_H
|
---|
582 | # include <strings.h>
|
---|
583 | #endif
|
---|
584 | #ifdef HAVE_INTTYPES_H
|
---|
585 | # include <inttypes.h>
|
---|
586 | #endif
|
---|
587 | #ifdef HAVE_STDINT_H
|
---|
588 | # include <stdint.h>
|
---|
589 | #endif
|
---|
590 | #ifdef HAVE_UNISTD_H
|
---|
591 | # include <unistd.h>
|
---|
592 | #endif"
|
---|
593 |
|
---|
594 | ac_subst_vars='LTLIBOBJS
|
---|
595 | host_os
|
---|
596 | host_vendor
|
---|
597 | host_cpu
|
---|
598 | host
|
---|
599 | build_os
|
---|
600 | build_vendor
|
---|
601 | build_cpu
|
---|
602 | build
|
---|
603 | LIBICONV
|
---|
604 | LIBOBJS
|
---|
605 | SOUNDOBJ
|
---|
606 | RDP2VNCTARGET
|
---|
607 | VNCLINK
|
---|
608 | LDVNC
|
---|
609 | VNCINC
|
---|
610 | SCARDOBJ
|
---|
611 | ssldir
|
---|
612 | STRIP
|
---|
613 | PKG_CONFIG
|
---|
614 | X_EXTRA_LIBS
|
---|
615 | X_LIBS
|
---|
616 | X_PRE_LIBS
|
---|
617 | X_CFLAGS
|
---|
618 | XMKMF
|
---|
619 | EGREP
|
---|
620 | GREP
|
---|
621 | CPP
|
---|
622 | INSTALL_DATA
|
---|
623 | INSTALL_SCRIPT
|
---|
624 | INSTALL_PROGRAM
|
---|
625 | ac_ct_CXX
|
---|
626 | CXXFLAGS
|
---|
627 | CXX
|
---|
628 | OBJEXT
|
---|
629 | EXEEXT
|
---|
630 | ac_ct_CC
|
---|
631 | CPPFLAGS
|
---|
632 | LDFLAGS
|
---|
633 | CFLAGS
|
---|
634 | CC
|
---|
635 | target_alias
|
---|
636 | host_alias
|
---|
637 | build_alias
|
---|
638 | LIBS
|
---|
639 | ECHO_T
|
---|
640 | ECHO_N
|
---|
641 | ECHO_C
|
---|
642 | DEFS
|
---|
643 | mandir
|
---|
644 | localedir
|
---|
645 | libdir
|
---|
646 | psdir
|
---|
647 | pdfdir
|
---|
648 | dvidir
|
---|
649 | htmldir
|
---|
650 | infodir
|
---|
651 | docdir
|
---|
652 | oldincludedir
|
---|
653 | includedir
|
---|
654 | localstatedir
|
---|
655 | sharedstatedir
|
---|
656 | sysconfdir
|
---|
657 | datadir
|
---|
658 | datarootdir
|
---|
659 | libexecdir
|
---|
660 | sbindir
|
---|
661 | bindir
|
---|
662 | program_transform_name
|
---|
663 | prefix
|
---|
664 | exec_prefix
|
---|
665 | PACKAGE_URL
|
---|
666 | PACKAGE_BUGREPORT
|
---|
667 | PACKAGE_STRING
|
---|
668 | PACKAGE_VERSION
|
---|
669 | PACKAGE_TARNAME
|
---|
670 | PACKAGE_NAME
|
---|
671 | PATH_SEPARATOR
|
---|
672 | SHELL'
|
---|
673 | ac_subst_files=''
|
---|
674 | ac_user_opts='
|
---|
675 | enable_option_checking
|
---|
676 | with_x
|
---|
677 | with_openssl
|
---|
678 | enable_static_openssl
|
---|
679 | enable_smartcard
|
---|
680 | with_egd_socket
|
---|
681 | with_libvncserver_config
|
---|
682 | with_libvncserver
|
---|
683 | with_sound
|
---|
684 | enable_static_libsamplerate
|
---|
685 | with_libiconv_prefix
|
---|
686 | enable_largefile
|
---|
687 | with_ipv6
|
---|
688 | with_debug
|
---|
689 | with_debug_kbd
|
---|
690 | with_debug_rdp5
|
---|
691 | with_debug_clipboard
|
---|
692 | with_debug_sound
|
---|
693 | with_debug_channel
|
---|
694 | with_debug_seamless
|
---|
695 | with_debug_smartcard
|
---|
696 | '
|
---|
697 | ac_precious_vars='build_alias
|
---|
698 | host_alias
|
---|
699 | target_alias
|
---|
700 | CC
|
---|
701 | CFLAGS
|
---|
702 | LDFLAGS
|
---|
703 | LIBS
|
---|
704 | CPPFLAGS
|
---|
705 | CXX
|
---|
706 | CXXFLAGS
|
---|
707 | CCC
|
---|
708 | CPP
|
---|
709 | XMKMF'
|
---|
710 |
|
---|
711 |
|
---|
712 | # Initialize some variables set by options.
|
---|
713 | ac_init_help=
|
---|
714 | ac_init_version=false
|
---|
715 | ac_unrecognized_opts=
|
---|
716 | ac_unrecognized_sep=
|
---|
717 | # The variables have the same names as the options, with
|
---|
718 | # dashes changed to underlines.
|
---|
719 | cache_file=/dev/null
|
---|
720 | exec_prefix=NONE
|
---|
721 | no_create=
|
---|
722 | no_recursion=
|
---|
723 | prefix=NONE
|
---|
724 | program_prefix=NONE
|
---|
725 | program_suffix=NONE
|
---|
726 | program_transform_name=s,x,x,
|
---|
727 | silent=
|
---|
728 | site=
|
---|
729 | srcdir=
|
---|
730 | verbose=
|
---|
731 | x_includes=NONE
|
---|
732 | x_libraries=NONE
|
---|
733 |
|
---|
734 | # Installation directory options.
|
---|
735 | # These are left unexpanded so users can "make install exec_prefix=/foo"
|
---|
736 | # and all the variables that are supposed to be based on exec_prefix
|
---|
737 | # by default will actually change.
|
---|
738 | # Use braces instead of parens because sh, perl, etc. also accept them.
|
---|
739 | # (The list follows the same order as the GNU Coding Standards.)
|
---|
740 | bindir='${exec_prefix}/bin'
|
---|
741 | sbindir='${exec_prefix}/sbin'
|
---|
742 | libexecdir='${exec_prefix}/libexec'
|
---|
743 | datarootdir='${prefix}/share'
|
---|
744 | datadir='${datarootdir}'
|
---|
745 | sysconfdir='${prefix}/etc'
|
---|
746 | sharedstatedir='${prefix}/com'
|
---|
747 | localstatedir='${prefix}/var'
|
---|
748 | includedir='${prefix}/include'
|
---|
749 | oldincludedir='/usr/include'
|
---|
750 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
|
---|
751 | infodir='${datarootdir}/info'
|
---|
752 | htmldir='${docdir}'
|
---|
753 | dvidir='${docdir}'
|
---|
754 | pdfdir='${docdir}'
|
---|
755 | psdir='${docdir}'
|
---|
756 | libdir='${exec_prefix}/lib'
|
---|
757 | localedir='${datarootdir}/locale'
|
---|
758 | mandir='${datarootdir}/man'
|
---|
759 |
|
---|
760 | ac_prev=
|
---|
761 | ac_dashdash=
|
---|
762 | for ac_option
|
---|
763 | do
|
---|
764 | # If the previous option needs an argument, assign it.
|
---|
765 | if test -n "$ac_prev"; then
|
---|
766 | eval $ac_prev=\$ac_option
|
---|
767 | ac_prev=
|
---|
768 | continue
|
---|
769 | fi
|
---|
770 |
|
---|
771 | case $ac_option in
|
---|
772 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
|
---|
773 | *=) ac_optarg= ;;
|
---|
774 | *) ac_optarg=yes ;;
|
---|
775 | esac
|
---|
776 |
|
---|
777 | # Accept the important Cygnus configure options, so we can diagnose typos.
|
---|
778 |
|
---|
779 | case $ac_dashdash$ac_option in
|
---|
780 | --)
|
---|
781 | ac_dashdash=yes ;;
|
---|
782 |
|
---|
783 | -bindir | --bindir | --bindi | --bind | --bin | --bi)
|
---|
784 | ac_prev=bindir ;;
|
---|
785 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
---|
786 | bindir=$ac_optarg ;;
|
---|
787 |
|
---|
788 | -build | --build | --buil | --bui | --bu)
|
---|
789 | ac_prev=build_alias ;;
|
---|
790 | -build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
---|
791 | build_alias=$ac_optarg ;;
|
---|
792 |
|
---|
793 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
794 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
795 | ac_prev=cache_file ;;
|
---|
796 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
797 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
---|
798 | cache_file=$ac_optarg ;;
|
---|
799 |
|
---|
800 | --config-cache | -C)
|
---|
801 | cache_file=config.cache ;;
|
---|
802 |
|
---|
803 | -datadir | --datadir | --datadi | --datad)
|
---|
804 | ac_prev=datadir ;;
|
---|
805 | -datadir=* | --datadir=* | --datadi=* | --datad=*)
|
---|
806 | datadir=$ac_optarg ;;
|
---|
807 |
|
---|
808 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
|
---|
809 | | --dataroo | --dataro | --datar)
|
---|
810 | ac_prev=datarootdir ;;
|
---|
811 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
|
---|
812 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
|
---|
813 | datarootdir=$ac_optarg ;;
|
---|
814 |
|
---|
815 | -disable-* | --disable-*)
|
---|
816 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
|
---|
817 | # Reject names that are not valid shell variable names.
|
---|
818 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
819 | as_fn_error $? "invalid feature name: $ac_useropt"
|
---|
820 | ac_useropt_orig=$ac_useropt
|
---|
821 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
822 | case $ac_user_opts in
|
---|
823 | *"
|
---|
824 | "enable_$ac_useropt"
|
---|
825 | "*) ;;
|
---|
826 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
|
---|
827 | ac_unrecognized_sep=', ';;
|
---|
828 | esac
|
---|
829 | eval enable_$ac_useropt=no ;;
|
---|
830 |
|
---|
831 | -docdir | --docdir | --docdi | --doc | --do)
|
---|
832 | ac_prev=docdir ;;
|
---|
833 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
|
---|
834 | docdir=$ac_optarg ;;
|
---|
835 |
|
---|
836 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
|
---|
837 | ac_prev=dvidir ;;
|
---|
838 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
|
---|
839 | dvidir=$ac_optarg ;;
|
---|
840 |
|
---|
841 | -enable-* | --enable-*)
|
---|
842 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
|
---|
843 | # Reject names that are not valid shell variable names.
|
---|
844 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
845 | as_fn_error $? "invalid feature name: $ac_useropt"
|
---|
846 | ac_useropt_orig=$ac_useropt
|
---|
847 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
848 | case $ac_user_opts in
|
---|
849 | *"
|
---|
850 | "enable_$ac_useropt"
|
---|
851 | "*) ;;
|
---|
852 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
|
---|
853 | ac_unrecognized_sep=', ';;
|
---|
854 | esac
|
---|
855 | eval enable_$ac_useropt=\$ac_optarg ;;
|
---|
856 |
|
---|
857 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
---|
858 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
---|
859 | | --exec | --exe | --ex)
|
---|
860 | ac_prev=exec_prefix ;;
|
---|
861 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
---|
862 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
---|
863 | | --exec=* | --exe=* | --ex=*)
|
---|
864 | exec_prefix=$ac_optarg ;;
|
---|
865 |
|
---|
866 | -gas | --gas | --ga | --g)
|
---|
867 | # Obsolete; use --with-gas.
|
---|
868 | with_gas=yes ;;
|
---|
869 |
|
---|
870 | -help | --help | --hel | --he | -h)
|
---|
871 | ac_init_help=long ;;
|
---|
872 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
|
---|
873 | ac_init_help=recursive ;;
|
---|
874 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
|
---|
875 | ac_init_help=short ;;
|
---|
876 |
|
---|
877 | -host | --host | --hos | --ho)
|
---|
878 | ac_prev=host_alias ;;
|
---|
879 | -host=* | --host=* | --hos=* | --ho=*)
|
---|
880 | host_alias=$ac_optarg ;;
|
---|
881 |
|
---|
882 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
|
---|
883 | ac_prev=htmldir ;;
|
---|
884 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
|
---|
885 | | --ht=*)
|
---|
886 | htmldir=$ac_optarg ;;
|
---|
887 |
|
---|
888 | -includedir | --includedir | --includedi | --included | --include \
|
---|
889 | | --includ | --inclu | --incl | --inc)
|
---|
890 | ac_prev=includedir ;;
|
---|
891 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
---|
892 | | --includ=* | --inclu=* | --incl=* | --inc=*)
|
---|
893 | includedir=$ac_optarg ;;
|
---|
894 |
|
---|
895 | -infodir | --infodir | --infodi | --infod | --info | --inf)
|
---|
896 | ac_prev=infodir ;;
|
---|
897 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
---|
898 | infodir=$ac_optarg ;;
|
---|
899 |
|
---|
900 | -libdir | --libdir | --libdi | --libd)
|
---|
901 | ac_prev=libdir ;;
|
---|
902 | -libdir=* | --libdir=* | --libdi=* | --libd=*)
|
---|
903 | libdir=$ac_optarg ;;
|
---|
904 |
|
---|
905 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
---|
906 | | --libexe | --libex | --libe)
|
---|
907 | ac_prev=libexecdir ;;
|
---|
908 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
---|
909 | | --libexe=* | --libex=* | --libe=*)
|
---|
910 | libexecdir=$ac_optarg ;;
|
---|
911 |
|
---|
912 | -localedir | --localedir | --localedi | --localed | --locale)
|
---|
913 | ac_prev=localedir ;;
|
---|
914 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
|
---|
915 | localedir=$ac_optarg ;;
|
---|
916 |
|
---|
917 | -localstatedir | --localstatedir | --localstatedi | --localstated \
|
---|
918 | | --localstate | --localstat | --localsta | --localst | --locals)
|
---|
919 | ac_prev=localstatedir ;;
|
---|
920 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
---|
921 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
|
---|
922 | localstatedir=$ac_optarg ;;
|
---|
923 |
|
---|
924 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
---|
925 | ac_prev=mandir ;;
|
---|
926 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
---|
927 | mandir=$ac_optarg ;;
|
---|
928 |
|
---|
929 | -nfp | --nfp | --nf)
|
---|
930 | # Obsolete; use --without-fp.
|
---|
931 | with_fp=no ;;
|
---|
932 |
|
---|
933 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
---|
934 | | --no-cr | --no-c | -n)
|
---|
935 | no_create=yes ;;
|
---|
936 |
|
---|
937 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
---|
938 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
---|
939 | no_recursion=yes ;;
|
---|
940 |
|
---|
941 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
---|
942 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
---|
943 | | --oldin | --oldi | --old | --ol | --o)
|
---|
944 | ac_prev=oldincludedir ;;
|
---|
945 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
---|
946 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
---|
947 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
---|
948 | oldincludedir=$ac_optarg ;;
|
---|
949 |
|
---|
950 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
951 | ac_prev=prefix ;;
|
---|
952 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
953 | prefix=$ac_optarg ;;
|
---|
954 |
|
---|
955 | -program-prefix | --program-prefix | --program-prefi | --program-pref \
|
---|
956 | | --program-pre | --program-pr | --program-p)
|
---|
957 | ac_prev=program_prefix ;;
|
---|
958 | -program-prefix=* | --program-prefix=* | --program-prefi=* \
|
---|
959 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
---|
960 | program_prefix=$ac_optarg ;;
|
---|
961 |
|
---|
962 | -program-suffix | --program-suffix | --program-suffi | --program-suff \
|
---|
963 | | --program-suf | --program-su | --program-s)
|
---|
964 | ac_prev=program_suffix ;;
|
---|
965 | -program-suffix=* | --program-suffix=* | --program-suffi=* \
|
---|
966 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
---|
967 | program_suffix=$ac_optarg ;;
|
---|
968 |
|
---|
969 | -program-transform-name | --program-transform-name \
|
---|
970 | | --program-transform-nam | --program-transform-na \
|
---|
971 | | --program-transform-n | --program-transform- \
|
---|
972 | | --program-transform | --program-transfor \
|
---|
973 | | --program-transfo | --program-transf \
|
---|
974 | | --program-trans | --program-tran \
|
---|
975 | | --progr-tra | --program-tr | --program-t)
|
---|
976 | ac_prev=program_transform_name ;;
|
---|
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 | program_transform_name=$ac_optarg ;;
|
---|
985 |
|
---|
986 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
|
---|
987 | ac_prev=pdfdir ;;
|
---|
988 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
|
---|
989 | pdfdir=$ac_optarg ;;
|
---|
990 |
|
---|
991 | -psdir | --psdir | --psdi | --psd | --ps)
|
---|
992 | ac_prev=psdir ;;
|
---|
993 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
|
---|
994 | psdir=$ac_optarg ;;
|
---|
995 |
|
---|
996 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
997 | | -silent | --silent | --silen | --sile | --sil)
|
---|
998 | silent=yes ;;
|
---|
999 |
|
---|
1000 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
---|
1001 | ac_prev=sbindir ;;
|
---|
1002 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
---|
1003 | | --sbi=* | --sb=*)
|
---|
1004 | sbindir=$ac_optarg ;;
|
---|
1005 |
|
---|
1006 | -sharedstatedir | --sharedstatedir | --sharedstatedi \
|
---|
1007 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
---|
1008 | | --sharedst | --shareds | --shared | --share | --shar \
|
---|
1009 | | --sha | --sh)
|
---|
1010 | ac_prev=sharedstatedir ;;
|
---|
1011 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
---|
1012 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
---|
1013 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
---|
1014 | | --sha=* | --sh=*)
|
---|
1015 | sharedstatedir=$ac_optarg ;;
|
---|
1016 |
|
---|
1017 | -site | --site | --sit)
|
---|
1018 | ac_prev=site ;;
|
---|
1019 | -site=* | --site=* | --sit=*)
|
---|
1020 | site=$ac_optarg ;;
|
---|
1021 |
|
---|
1022 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
1023 | ac_prev=srcdir ;;
|
---|
1024 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
1025 | srcdir=$ac_optarg ;;
|
---|
1026 |
|
---|
1027 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
---|
1028 | | --syscon | --sysco | --sysc | --sys | --sy)
|
---|
1029 | ac_prev=sysconfdir ;;
|
---|
1030 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
---|
1031 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
---|
1032 | sysconfdir=$ac_optarg ;;
|
---|
1033 |
|
---|
1034 | -target | --target | --targe | --targ | --tar | --ta | --t)
|
---|
1035 | ac_prev=target_alias ;;
|
---|
1036 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
---|
1037 | target_alias=$ac_optarg ;;
|
---|
1038 |
|
---|
1039 | -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
---|
1040 | verbose=yes ;;
|
---|
1041 |
|
---|
1042 | -version | --version | --versio | --versi | --vers | -V)
|
---|
1043 | ac_init_version=: ;;
|
---|
1044 |
|
---|
1045 | -with-* | --with-*)
|
---|
1046 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
|
---|
1047 | # Reject names that are not valid shell variable names.
|
---|
1048 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
1049 | as_fn_error $? "invalid package name: $ac_useropt"
|
---|
1050 | ac_useropt_orig=$ac_useropt
|
---|
1051 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
1052 | case $ac_user_opts in
|
---|
1053 | *"
|
---|
1054 | "with_$ac_useropt"
|
---|
1055 | "*) ;;
|
---|
1056 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
|
---|
1057 | ac_unrecognized_sep=', ';;
|
---|
1058 | esac
|
---|
1059 | eval with_$ac_useropt=\$ac_optarg ;;
|
---|
1060 |
|
---|
1061 | -without-* | --without-*)
|
---|
1062 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
|
---|
1063 | # Reject names that are not valid shell variable names.
|
---|
1064 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
1065 | as_fn_error $? "invalid package name: $ac_useropt"
|
---|
1066 | ac_useropt_orig=$ac_useropt
|
---|
1067 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
1068 | case $ac_user_opts in
|
---|
1069 | *"
|
---|
1070 | "with_$ac_useropt"
|
---|
1071 | "*) ;;
|
---|
1072 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
|
---|
1073 | ac_unrecognized_sep=', ';;
|
---|
1074 | esac
|
---|
1075 | eval with_$ac_useropt=no ;;
|
---|
1076 |
|
---|
1077 | --x)
|
---|
1078 | # Obsolete; use --with-x.
|
---|
1079 | with_x=yes ;;
|
---|
1080 |
|
---|
1081 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
---|
1082 | | --x-incl | --x-inc | --x-in | --x-i)
|
---|
1083 | ac_prev=x_includes ;;
|
---|
1084 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
---|
1085 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
---|
1086 | x_includes=$ac_optarg ;;
|
---|
1087 |
|
---|
1088 | -x-libraries | --x-libraries | --x-librarie | --x-librari \
|
---|
1089 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
---|
1090 | ac_prev=x_libraries ;;
|
---|
1091 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
---|
1092 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
---|
1093 | x_libraries=$ac_optarg ;;
|
---|
1094 |
|
---|
1095 | -*) as_fn_error $? "unrecognized option: \`$ac_option'
|
---|
1096 | Try \`$0 --help' for more information"
|
---|
1097 | ;;
|
---|
1098 |
|
---|
1099 | *=*)
|
---|
1100 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
|
---|
1101 | # Reject names that are not valid shell variable names.
|
---|
1102 | case $ac_envvar in #(
|
---|
1103 | '' | [0-9]* | *[!_$as_cr_alnum]* )
|
---|
1104 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
|
---|
1105 | esac
|
---|
1106 | eval $ac_envvar=\$ac_optarg
|
---|
1107 | export $ac_envvar ;;
|
---|
1108 |
|
---|
1109 | *)
|
---|
1110 | # FIXME: should be removed in autoconf 3.0.
|
---|
1111 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
|
---|
1112 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
---|
1113 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
|
---|
1114 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
|
---|
1115 | ;;
|
---|
1116 |
|
---|
1117 | esac
|
---|
1118 | done
|
---|
1119 |
|
---|
1120 | if test -n "$ac_prev"; then
|
---|
1121 | ac_option=--`echo $ac_prev | sed 's/_/-/g'`
|
---|
1122 | as_fn_error $? "missing argument to $ac_option"
|
---|
1123 | fi
|
---|
1124 |
|
---|
1125 | if test -n "$ac_unrecognized_opts"; then
|
---|
1126 | case $enable_option_checking in
|
---|
1127 | no) ;;
|
---|
1128 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
|
---|
1129 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
|
---|
1130 | esac
|
---|
1131 | fi
|
---|
1132 |
|
---|
1133 | # Check all directory arguments for consistency.
|
---|
1134 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
|
---|
1135 | datadir sysconfdir sharedstatedir localstatedir includedir \
|
---|
1136 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
|
---|
1137 | libdir localedir mandir
|
---|
1138 | do
|
---|
1139 | eval ac_val=\$$ac_var
|
---|
1140 | # Remove trailing slashes.
|
---|
1141 | case $ac_val in
|
---|
1142 | */ )
|
---|
1143 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
|
---|
1144 | eval $ac_var=\$ac_val;;
|
---|
1145 | esac
|
---|
1146 | # Be sure to have absolute directory names.
|
---|
1147 | case $ac_val in
|
---|
1148 | [\\/$]* | ?:[\\/]* ) continue;;
|
---|
1149 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
|
---|
1150 | esac
|
---|
1151 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
|
---|
1152 | done
|
---|
1153 |
|
---|
1154 | # There might be people who depend on the old broken behavior: `$host'
|
---|
1155 | # used to hold the argument of --host etc.
|
---|
1156 | # FIXME: To remove some day.
|
---|
1157 | build=$build_alias
|
---|
1158 | host=$host_alias
|
---|
1159 | target=$target_alias
|
---|
1160 |
|
---|
1161 | # FIXME: To remove some day.
|
---|
1162 | if test "x$host_alias" != x; then
|
---|
1163 | if test "x$build_alias" = x; then
|
---|
1164 | cross_compiling=maybe
|
---|
1165 | $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
|
---|
1166 | If a cross compiler is detected then cross compile mode will be used" >&2
|
---|
1167 | elif test "x$build_alias" != "x$host_alias"; then
|
---|
1168 | cross_compiling=yes
|
---|
1169 | fi
|
---|
1170 | fi
|
---|
1171 |
|
---|
1172 | ac_tool_prefix=
|
---|
1173 | test -n "$host_alias" && ac_tool_prefix=$host_alias-
|
---|
1174 |
|
---|
1175 | test "$silent" = yes && exec 6>/dev/null
|
---|
1176 |
|
---|
1177 |
|
---|
1178 | ac_pwd=`pwd` && test -n "$ac_pwd" &&
|
---|
1179 | ac_ls_di=`ls -di .` &&
|
---|
1180 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
|
---|
1181 | as_fn_error $? "working directory cannot be determined"
|
---|
1182 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
|
---|
1183 | as_fn_error $? "pwd does not report name of working directory"
|
---|
1184 |
|
---|
1185 |
|
---|
1186 | # Find the source files, if location was not specified.
|
---|
1187 | if test -z "$srcdir"; then
|
---|
1188 | ac_srcdir_defaulted=yes
|
---|
1189 | # Try the directory containing this script, then the parent directory.
|
---|
1190 | ac_confdir=`$as_dirname -- "$as_myself" ||
|
---|
1191 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
1192 | X"$as_myself" : 'X\(//\)[^/]' \| \
|
---|
1193 | X"$as_myself" : 'X\(//\)$' \| \
|
---|
1194 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
1195 | $as_echo X"$as_myself" |
|
---|
1196 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
1197 | s//\1/
|
---|
1198 | q
|
---|
1199 | }
|
---|
1200 | /^X\(\/\/\)[^/].*/{
|
---|
1201 | s//\1/
|
---|
1202 | q
|
---|
1203 | }
|
---|
1204 | /^X\(\/\/\)$/{
|
---|
1205 | s//\1/
|
---|
1206 | q
|
---|
1207 | }
|
---|
1208 | /^X\(\/\).*/{
|
---|
1209 | s//\1/
|
---|
1210 | q
|
---|
1211 | }
|
---|
1212 | s/.*/./; q'`
|
---|
1213 | srcdir=$ac_confdir
|
---|
1214 | if test ! -r "$srcdir/$ac_unique_file"; then
|
---|
1215 | srcdir=..
|
---|
1216 | fi
|
---|
1217 | else
|
---|
1218 | ac_srcdir_defaulted=no
|
---|
1219 | fi
|
---|
1220 | if test ! -r "$srcdir/$ac_unique_file"; then
|
---|
1221 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
|
---|
1222 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
|
---|
1223 | fi
|
---|
1224 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
|
---|
1225 | ac_abs_confdir=`(
|
---|
1226 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
|
---|
1227 | pwd)`
|
---|
1228 | # When building in place, set srcdir=.
|
---|
1229 | if test "$ac_abs_confdir" = "$ac_pwd"; then
|
---|
1230 | srcdir=.
|
---|
1231 | fi
|
---|
1232 | # Remove unnecessary trailing slashes from srcdir.
|
---|
1233 | # Double slashes in file names in object file debugging info
|
---|
1234 | # mess up M-x gdb in Emacs.
|
---|
1235 | case $srcdir in
|
---|
1236 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
|
---|
1237 | esac
|
---|
1238 | for ac_var in $ac_precious_vars; do
|
---|
1239 | eval ac_env_${ac_var}_set=\${${ac_var}+set}
|
---|
1240 | eval ac_env_${ac_var}_value=\$${ac_var}
|
---|
1241 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
|
---|
1242 | eval ac_cv_env_${ac_var}_value=\$${ac_var}
|
---|
1243 | done
|
---|
1244 |
|
---|
1245 | #
|
---|
1246 | # Report the --help message.
|
---|
1247 | #
|
---|
1248 | if test "$ac_init_help" = "long"; then
|
---|
1249 | # Omit some internal or obsolete options to make the list less imposing.
|
---|
1250 | # This message is too long to be a string in the A/UX 3.1 sh.
|
---|
1251 | cat <<_ACEOF
|
---|
1252 | \`configure' configures rdesktop 1.6.0 to adapt to many kinds of systems.
|
---|
1253 |
|
---|
1254 | Usage: $0 [OPTION]... [VAR=VALUE]...
|
---|
1255 |
|
---|
1256 | To assign environment variables (e.g., CC, CFLAGS...), specify them as
|
---|
1257 | VAR=VALUE. See below for descriptions of some of the useful variables.
|
---|
1258 |
|
---|
1259 | Defaults for the options are specified in brackets.
|
---|
1260 |
|
---|
1261 | Configuration:
|
---|
1262 | -h, --help display this help and exit
|
---|
1263 | --help=short display options specific to this package
|
---|
1264 | --help=recursive display the short help of all the included packages
|
---|
1265 | -V, --version display version information and exit
|
---|
1266 | -q, --quiet, --silent do not print \`checking ...' messages
|
---|
1267 | --cache-file=FILE cache test results in FILE [disabled]
|
---|
1268 | -C, --config-cache alias for \`--cache-file=config.cache'
|
---|
1269 | -n, --no-create do not create output files
|
---|
1270 | --srcdir=DIR find the sources in DIR [configure dir or \`..']
|
---|
1271 |
|
---|
1272 | Installation directories:
|
---|
1273 | --prefix=PREFIX install architecture-independent files in PREFIX
|
---|
1274 | [$ac_default_prefix]
|
---|
1275 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
---|
1276 | [PREFIX]
|
---|
1277 |
|
---|
1278 | By default, \`make install' will install all the files in
|
---|
1279 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
|
---|
1280 | an installation prefix other than \`$ac_default_prefix' using \`--prefix',
|
---|
1281 | for instance \`--prefix=\$HOME'.
|
---|
1282 |
|
---|
1283 | For better control, use the options below.
|
---|
1284 |
|
---|
1285 | Fine tuning of the installation directories:
|
---|
1286 | --bindir=DIR user executables [EPREFIX/bin]
|
---|
1287 | --sbindir=DIR system admin executables [EPREFIX/sbin]
|
---|
1288 | --libexecdir=DIR program executables [EPREFIX/libexec]
|
---|
1289 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
|
---|
1290 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
|
---|
1291 | --localstatedir=DIR modifiable single-machine data [PREFIX/var]
|
---|
1292 | --libdir=DIR object code libraries [EPREFIX/lib]
|
---|
1293 | --includedir=DIR C header files [PREFIX/include]
|
---|
1294 | --oldincludedir=DIR C header files for non-gcc [/usr/include]
|
---|
1295 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
|
---|
1296 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
|
---|
1297 | --infodir=DIR info documentation [DATAROOTDIR/info]
|
---|
1298 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
|
---|
1299 | --mandir=DIR man documentation [DATAROOTDIR/man]
|
---|
1300 | --docdir=DIR documentation root [DATAROOTDIR/doc/rdesktop]
|
---|
1301 | --htmldir=DIR html documentation [DOCDIR]
|
---|
1302 | --dvidir=DIR dvi documentation [DOCDIR]
|
---|
1303 | --pdfdir=DIR pdf documentation [DOCDIR]
|
---|
1304 | --psdir=DIR ps documentation [DOCDIR]
|
---|
1305 | _ACEOF
|
---|
1306 |
|
---|
1307 | cat <<\_ACEOF
|
---|
1308 |
|
---|
1309 | X features:
|
---|
1310 | --x-includes=DIR X include files are in DIR
|
---|
1311 | --x-libraries=DIR X library files are in DIR
|
---|
1312 |
|
---|
1313 | System types:
|
---|
1314 | --build=BUILD configure for building on BUILD [guessed]
|
---|
1315 | --host=HOST cross-compile to build programs to run on HOST [BUILD]
|
---|
1316 | _ACEOF
|
---|
1317 | fi
|
---|
1318 |
|
---|
1319 | if test -n "$ac_init_help"; then
|
---|
1320 | case $ac_init_help in
|
---|
1321 | short | recursive ) echo "Configuration of rdesktop 1.6.0:";;
|
---|
1322 | esac
|
---|
1323 | cat <<\_ACEOF
|
---|
1324 |
|
---|
1325 | Optional Features:
|
---|
1326 | --disable-option-checking ignore unrecognized --enable/--with options
|
---|
1327 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
---|
1328 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
---|
1329 | --enable-static-openssl link OpenSSL statically
|
---|
1330 | --enable-smartcard Enables smart-card support.
|
---|
1331 |
|
---|
1332 | --enable-static-libsamplerate link libsamplerate statically
|
---|
1333 | --disable-largefile omit support for large files
|
---|
1334 |
|
---|
1335 | Optional Packages:
|
---|
1336 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
---|
1337 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
---|
1338 | --with-x use the X Window System
|
---|
1339 | --with-openssl=DIR look for OpenSSL at DIR/include, DIR/lib
|
---|
1340 | --with-egd-socket=PATH look for Entropy Gathering Daemon socket at PATH
|
---|
1341 | --with-libvncserver-config=CMD use CMD as libvncserver-config
|
---|
1342 | --with-libvncserver make rdp2vnc
|
---|
1343 | --with-sound select sound system ("oss", "sgi", "sun", "alsa" or "libao")
|
---|
1344 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
|
---|
1345 | --with-ipv6 enable IPv6-support
|
---|
1346 | --with-debug enable protocol debugging output
|
---|
1347 | --with-debug-kbd enable debugging of keyboard handling
|
---|
1348 | --with-debug-rdp5 enable debugging of RDP5 code
|
---|
1349 | --with-debug-clipboard enable debugging of clipboard code
|
---|
1350 | --with-debug-sound enable debugging of sound code
|
---|
1351 | --with-debug-channel enable debugging of virtual channel code
|
---|
1352 | --with-debug-seamless enable debugging of SeamlessRDP code
|
---|
1353 | --with-debug-smartcard enable debugging of smart-card code
|
---|
1354 |
|
---|
1355 | Some influential environment variables:
|
---|
1356 | CC C compiler command
|
---|
1357 | CFLAGS C compiler flags
|
---|
1358 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
|
---|
1359 | nonstandard directory <lib dir>
|
---|
1360 | LIBS libraries to pass to the linker, e.g. -l<library>
|
---|
1361 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
|
---|
1362 | you have headers in a nonstandard directory <include dir>
|
---|
1363 | CXX C++ compiler command
|
---|
1364 | CXXFLAGS C++ compiler flags
|
---|
1365 | CPP C preprocessor
|
---|
1366 | XMKMF Path to xmkmf, Makefile generator for X Window System
|
---|
1367 |
|
---|
1368 | Use these variables to override the choices made by `configure' or to help
|
---|
1369 | it to find libraries and programs with nonstandard names/locations.
|
---|
1370 |
|
---|
1371 | Report bugs to the package provider.
|
---|
1372 | _ACEOF
|
---|
1373 | ac_status=$?
|
---|
1374 | fi
|
---|
1375 |
|
---|
1376 | if test "$ac_init_help" = "recursive"; then
|
---|
1377 | # If there are subdirs, report their specific --help.
|
---|
1378 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
|
---|
1379 | test -d "$ac_dir" ||
|
---|
1380 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
|
---|
1381 | continue
|
---|
1382 | ac_builddir=.
|
---|
1383 |
|
---|
1384 | case "$ac_dir" in
|
---|
1385 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
1386 | *)
|
---|
1387 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
|
---|
1388 | # A ".." for each directory in $ac_dir_suffix.
|
---|
1389 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
|
---|
1390 | case $ac_top_builddir_sub in
|
---|
1391 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
1392 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
---|
1393 | esac ;;
|
---|
1394 | esac
|
---|
1395 | ac_abs_top_builddir=$ac_pwd
|
---|
1396 | ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
---|
1397 | # for backward compatibility:
|
---|
1398 | ac_top_builddir=$ac_top_build_prefix
|
---|
1399 |
|
---|
1400 | case $srcdir in
|
---|
1401 | .) # We are building in place.
|
---|
1402 | ac_srcdir=.
|
---|
1403 | ac_top_srcdir=$ac_top_builddir_sub
|
---|
1404 | ac_abs_top_srcdir=$ac_pwd ;;
|
---|
1405 | [\\/]* | ?:[\\/]* ) # Absolute name.
|
---|
1406 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
1407 | ac_top_srcdir=$srcdir
|
---|
1408 | ac_abs_top_srcdir=$srcdir ;;
|
---|
1409 | *) # Relative name.
|
---|
1410 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
---|
1411 | ac_top_srcdir=$ac_top_build_prefix$srcdir
|
---|
1412 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
---|
1413 | esac
|
---|
1414 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
---|
1415 |
|
---|
1416 | cd "$ac_dir" || { ac_status=$?; continue; }
|
---|
1417 | # Check for guested configure.
|
---|
1418 | if test -f "$ac_srcdir/configure.gnu"; then
|
---|
1419 | echo &&
|
---|
1420 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive
|
---|
1421 | elif test -f "$ac_srcdir/configure"; then
|
---|
1422 | echo &&
|
---|
1423 | $SHELL "$ac_srcdir/configure" --help=recursive
|
---|
1424 | else
|
---|
1425 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
|
---|
1426 | fi || ac_status=$?
|
---|
1427 | cd "$ac_pwd" || { ac_status=$?; break; }
|
---|
1428 | done
|
---|
1429 | fi
|
---|
1430 |
|
---|
1431 | test -n "$ac_init_help" && exit $ac_status
|
---|
1432 | if $ac_init_version; then
|
---|
1433 | cat <<\_ACEOF
|
---|
1434 | rdesktop configure 1.6.0
|
---|
1435 | generated by GNU Autoconf 2.67
|
---|
1436 |
|
---|
1437 | Copyright (C) 2010 Free Software Foundation, Inc.
|
---|
1438 | This configure script is free software; the Free Software Foundation
|
---|
1439 | gives unlimited permission to copy, distribute and modify it.
|
---|
1440 | _ACEOF
|
---|
1441 | exit
|
---|
1442 | fi
|
---|
1443 |
|
---|
1444 | ## ------------------------ ##
|
---|
1445 | ## Autoconf initialization. ##
|
---|
1446 | ## ------------------------ ##
|
---|
1447 |
|
---|
1448 | # ac_fn_c_try_compile LINENO
|
---|
1449 | # --------------------------
|
---|
1450 | # Try to compile conftest.$ac_ext, and return whether this succeeded.
|
---|
1451 | ac_fn_c_try_compile ()
|
---|
1452 | {
|
---|
1453 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1454 | rm -f conftest.$ac_objext
|
---|
1455 | if { { ac_try="$ac_compile"
|
---|
1456 | case "(($ac_try" in
|
---|
1457 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1458 | *) ac_try_echo=$ac_try;;
|
---|
1459 | esac
|
---|
1460 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1461 | $as_echo "$ac_try_echo"; } >&5
|
---|
1462 | (eval "$ac_compile") 2>conftest.err
|
---|
1463 | ac_status=$?
|
---|
1464 | if test -s conftest.err; then
|
---|
1465 | grep -v '^ *+' conftest.err >conftest.er1
|
---|
1466 | cat conftest.er1 >&5
|
---|
1467 | mv -f conftest.er1 conftest.err
|
---|
1468 | fi
|
---|
1469 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1470 | test $ac_status = 0; } && {
|
---|
1471 | test -z "$ac_c_werror_flag" ||
|
---|
1472 | test ! -s conftest.err
|
---|
1473 | } && test -s conftest.$ac_objext; then :
|
---|
1474 | ac_retval=0
|
---|
1475 | else
|
---|
1476 | $as_echo "$as_me: failed program was:" >&5
|
---|
1477 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1478 |
|
---|
1479 | ac_retval=1
|
---|
1480 | fi
|
---|
1481 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
|
---|
1482 | as_fn_set_status $ac_retval
|
---|
1483 |
|
---|
1484 | } # ac_fn_c_try_compile
|
---|
1485 |
|
---|
1486 | # ac_fn_cxx_try_compile LINENO
|
---|
1487 | # ----------------------------
|
---|
1488 | # Try to compile conftest.$ac_ext, and return whether this succeeded.
|
---|
1489 | ac_fn_cxx_try_compile ()
|
---|
1490 | {
|
---|
1491 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1492 | rm -f conftest.$ac_objext
|
---|
1493 | if { { ac_try="$ac_compile"
|
---|
1494 | case "(($ac_try" in
|
---|
1495 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1496 | *) ac_try_echo=$ac_try;;
|
---|
1497 | esac
|
---|
1498 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1499 | $as_echo "$ac_try_echo"; } >&5
|
---|
1500 | (eval "$ac_compile") 2>conftest.err
|
---|
1501 | ac_status=$?
|
---|
1502 | if test -s conftest.err; then
|
---|
1503 | grep -v '^ *+' conftest.err >conftest.er1
|
---|
1504 | cat conftest.er1 >&5
|
---|
1505 | mv -f conftest.er1 conftest.err
|
---|
1506 | fi
|
---|
1507 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1508 | test $ac_status = 0; } && {
|
---|
1509 | test -z "$ac_cxx_werror_flag" ||
|
---|
1510 | test ! -s conftest.err
|
---|
1511 | } && test -s conftest.$ac_objext; then :
|
---|
1512 | ac_retval=0
|
---|
1513 | else
|
---|
1514 | $as_echo "$as_me: failed program was:" >&5
|
---|
1515 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1516 |
|
---|
1517 | ac_retval=1
|
---|
1518 | fi
|
---|
1519 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
|
---|
1520 | as_fn_set_status $ac_retval
|
---|
1521 |
|
---|
1522 | } # ac_fn_cxx_try_compile
|
---|
1523 |
|
---|
1524 | # ac_fn_c_try_cpp LINENO
|
---|
1525 | # ----------------------
|
---|
1526 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
|
---|
1527 | ac_fn_c_try_cpp ()
|
---|
1528 | {
|
---|
1529 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1530 | if { { ac_try="$ac_cpp conftest.$ac_ext"
|
---|
1531 | case "(($ac_try" in
|
---|
1532 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1533 | *) ac_try_echo=$ac_try;;
|
---|
1534 | esac
|
---|
1535 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1536 | $as_echo "$ac_try_echo"; } >&5
|
---|
1537 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
|
---|
1538 | ac_status=$?
|
---|
1539 | if test -s conftest.err; then
|
---|
1540 | grep -v '^ *+' conftest.err >conftest.er1
|
---|
1541 | cat conftest.er1 >&5
|
---|
1542 | mv -f conftest.er1 conftest.err
|
---|
1543 | fi
|
---|
1544 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1545 | test $ac_status = 0; } > conftest.i && {
|
---|
1546 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
---|
1547 | test ! -s conftest.err
|
---|
1548 | }; then :
|
---|
1549 | ac_retval=0
|
---|
1550 | else
|
---|
1551 | $as_echo "$as_me: failed program was:" >&5
|
---|
1552 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1553 |
|
---|
1554 | ac_retval=1
|
---|
1555 | fi
|
---|
1556 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
|
---|
1557 | as_fn_set_status $ac_retval
|
---|
1558 |
|
---|
1559 | } # ac_fn_c_try_cpp
|
---|
1560 |
|
---|
1561 | # ac_fn_c_try_run LINENO
|
---|
1562 | # ----------------------
|
---|
1563 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
|
---|
1564 | # that executables *can* be run.
|
---|
1565 | ac_fn_c_try_run ()
|
---|
1566 | {
|
---|
1567 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1568 | if { { ac_try="$ac_link"
|
---|
1569 | case "(($ac_try" in
|
---|
1570 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1571 | *) ac_try_echo=$ac_try;;
|
---|
1572 | esac
|
---|
1573 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1574 | $as_echo "$ac_try_echo"; } >&5
|
---|
1575 | (eval "$ac_link") 2>&5
|
---|
1576 | ac_status=$?
|
---|
1577 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1578 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
|
---|
1579 | { { case "(($ac_try" in
|
---|
1580 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1581 | *) ac_try_echo=$ac_try;;
|
---|
1582 | esac
|
---|
1583 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1584 | $as_echo "$ac_try_echo"; } >&5
|
---|
1585 | (eval "$ac_try") 2>&5
|
---|
1586 | ac_status=$?
|
---|
1587 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1588 | test $ac_status = 0; }; }; then :
|
---|
1589 | ac_retval=0
|
---|
1590 | else
|
---|
1591 | $as_echo "$as_me: program exited with status $ac_status" >&5
|
---|
1592 | $as_echo "$as_me: failed program was:" >&5
|
---|
1593 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1594 |
|
---|
1595 | ac_retval=$ac_status
|
---|
1596 | fi
|
---|
1597 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo
|
---|
1598 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
|
---|
1599 | as_fn_set_status $ac_retval
|
---|
1600 |
|
---|
1601 | } # ac_fn_c_try_run
|
---|
1602 |
|
---|
1603 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
|
---|
1604 | # -------------------------------------------------------
|
---|
1605 | # Tests whether HEADER exists and can be compiled using the include files in
|
---|
1606 | # INCLUDES, setting the cache variable VAR accordingly.
|
---|
1607 | ac_fn_c_check_header_compile ()
|
---|
1608 | {
|
---|
1609 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1610 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
1611 | $as_echo_n "checking for $2... " >&6; }
|
---|
1612 | if eval "test \"\${$3+set}\"" = set; then :
|
---|
1613 | $as_echo_n "(cached) " >&6
|
---|
1614 | else
|
---|
1615 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1616 | /* end confdefs.h. */
|
---|
1617 | $4
|
---|
1618 | #include <$2>
|
---|
1619 | _ACEOF
|
---|
1620 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
1621 | eval "$3=yes"
|
---|
1622 | else
|
---|
1623 | eval "$3=no"
|
---|
1624 | fi
|
---|
1625 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
1626 | fi
|
---|
1627 | eval ac_res=\$$3
|
---|
1628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
1629 | $as_echo "$ac_res" >&6; }
|
---|
1630 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
|
---|
1631 |
|
---|
1632 | } # ac_fn_c_check_header_compile
|
---|
1633 |
|
---|
1634 | # ac_fn_c_try_link LINENO
|
---|
1635 | # -----------------------
|
---|
1636 | # Try to link conftest.$ac_ext, and return whether this succeeded.
|
---|
1637 | ac_fn_c_try_link ()
|
---|
1638 | {
|
---|
1639 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1640 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
1641 | if { { ac_try="$ac_link"
|
---|
1642 | case "(($ac_try" in
|
---|
1643 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1644 | *) ac_try_echo=$ac_try;;
|
---|
1645 | esac
|
---|
1646 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1647 | $as_echo "$ac_try_echo"; } >&5
|
---|
1648 | (eval "$ac_link") 2>conftest.err
|
---|
1649 | ac_status=$?
|
---|
1650 | if test -s conftest.err; then
|
---|
1651 | grep -v '^ *+' conftest.err >conftest.er1
|
---|
1652 | cat conftest.er1 >&5
|
---|
1653 | mv -f conftest.er1 conftest.err
|
---|
1654 | fi
|
---|
1655 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1656 | test $ac_status = 0; } && {
|
---|
1657 | test -z "$ac_c_werror_flag" ||
|
---|
1658 | test ! -s conftest.err
|
---|
1659 | } && test -s conftest$ac_exeext && {
|
---|
1660 | test "$cross_compiling" = yes ||
|
---|
1661 | $as_test_x conftest$ac_exeext
|
---|
1662 | }; then :
|
---|
1663 | ac_retval=0
|
---|
1664 | else
|
---|
1665 | $as_echo "$as_me: failed program was:" >&5
|
---|
1666 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1667 |
|
---|
1668 | ac_retval=1
|
---|
1669 | fi
|
---|
1670 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
|
---|
1671 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
|
---|
1672 | # interfere with the next link command; also delete a directory that is
|
---|
1673 | # left behind by Apple's compiler. We do this before executing the actions.
|
---|
1674 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo
|
---|
1675 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
|
---|
1676 | as_fn_set_status $ac_retval
|
---|
1677 |
|
---|
1678 | } # ac_fn_c_try_link
|
---|
1679 |
|
---|
1680 | # ac_fn_c_check_func LINENO FUNC VAR
|
---|
1681 | # ----------------------------------
|
---|
1682 | # Tests whether FUNC exists, setting the cache variable VAR accordingly
|
---|
1683 | ac_fn_c_check_func ()
|
---|
1684 | {
|
---|
1685 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1686 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
1687 | $as_echo_n "checking for $2... " >&6; }
|
---|
1688 | if eval "test \"\${$3+set}\"" = set; then :
|
---|
1689 | $as_echo_n "(cached) " >&6
|
---|
1690 | else
|
---|
1691 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1692 | /* end confdefs.h. */
|
---|
1693 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
|
---|
1694 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
1695 | #define $2 innocuous_$2
|
---|
1696 |
|
---|
1697 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
1698 | which can conflict with char $2 (); below.
|
---|
1699 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
1700 | <limits.h> exists even on freestanding compilers. */
|
---|
1701 |
|
---|
1702 | #ifdef __STDC__
|
---|
1703 | # include <limits.h>
|
---|
1704 | #else
|
---|
1705 | # include <assert.h>
|
---|
1706 | #endif
|
---|
1707 |
|
---|
1708 | #undef $2
|
---|
1709 |
|
---|
1710 | /* Override any GCC internal prototype to avoid an error.
|
---|
1711 | Use char because int might match the return type of a GCC
|
---|
1712 | builtin and then its argument prototype would still apply. */
|
---|
1713 | #ifdef __cplusplus
|
---|
1714 | extern "C"
|
---|
1715 | #endif
|
---|
1716 | char $2 ();
|
---|
1717 | /* The GNU C library defines this for functions which it implements
|
---|
1718 | to always fail with ENOSYS. Some functions are actually named
|
---|
1719 | something starting with __ and the normal name is an alias. */
|
---|
1720 | #if defined __stub_$2 || defined __stub___$2
|
---|
1721 | choke me
|
---|
1722 | #endif
|
---|
1723 |
|
---|
1724 | int
|
---|
1725 | main ()
|
---|
1726 | {
|
---|
1727 | return $2 ();
|
---|
1728 | ;
|
---|
1729 | return 0;
|
---|
1730 | }
|
---|
1731 | _ACEOF
|
---|
1732 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
1733 | eval "$3=yes"
|
---|
1734 | else
|
---|
1735 | eval "$3=no"
|
---|
1736 | fi
|
---|
1737 | rm -f core conftest.err conftest.$ac_objext \
|
---|
1738 | conftest$ac_exeext conftest.$ac_ext
|
---|
1739 | fi
|
---|
1740 | eval ac_res=\$$3
|
---|
1741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
1742 | $as_echo "$ac_res" >&6; }
|
---|
1743 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
|
---|
1744 |
|
---|
1745 | } # ac_fn_c_check_func
|
---|
1746 |
|
---|
1747 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
|
---|
1748 | # -------------------------------------------------------
|
---|
1749 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using
|
---|
1750 | # the include files in INCLUDES and setting the cache variable VAR
|
---|
1751 | # accordingly.
|
---|
1752 | ac_fn_c_check_header_mongrel ()
|
---|
1753 | {
|
---|
1754 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1755 | if eval "test \"\${$3+set}\"" = set; then :
|
---|
1756 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
1757 | $as_echo_n "checking for $2... " >&6; }
|
---|
1758 | if eval "test \"\${$3+set}\"" = set; then :
|
---|
1759 | $as_echo_n "(cached) " >&6
|
---|
1760 | fi
|
---|
1761 | eval ac_res=\$$3
|
---|
1762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
1763 | $as_echo "$ac_res" >&6; }
|
---|
1764 | else
|
---|
1765 | # Is the header compilable?
|
---|
1766 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
|
---|
1767 | $as_echo_n "checking $2 usability... " >&6; }
|
---|
1768 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1769 | /* end confdefs.h. */
|
---|
1770 | $4
|
---|
1771 | #include <$2>
|
---|
1772 | _ACEOF
|
---|
1773 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
1774 | ac_header_compiler=yes
|
---|
1775 | else
|
---|
1776 | ac_header_compiler=no
|
---|
1777 | fi
|
---|
1778 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
1779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
|
---|
1780 | $as_echo "$ac_header_compiler" >&6; }
|
---|
1781 |
|
---|
1782 | # Is the header present?
|
---|
1783 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
|
---|
1784 | $as_echo_n "checking $2 presence... " >&6; }
|
---|
1785 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1786 | /* end confdefs.h. */
|
---|
1787 | #include <$2>
|
---|
1788 | _ACEOF
|
---|
1789 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
1790 | ac_header_preproc=yes
|
---|
1791 | else
|
---|
1792 | ac_header_preproc=no
|
---|
1793 | fi
|
---|
1794 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
1795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
|
---|
1796 | $as_echo "$ac_header_preproc" >&6; }
|
---|
1797 |
|
---|
1798 | # So? What about this header?
|
---|
1799 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
|
---|
1800 | yes:no: )
|
---|
1801 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
1802 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
1803 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
|
---|
1804 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
|
---|
1805 | ;;
|
---|
1806 | no:yes:* )
|
---|
1807 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
|
---|
1808 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
|
---|
1809 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
|
---|
1810 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
|
---|
1811 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
|
---|
1812 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
|
---|
1813 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
|
---|
1814 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
1815 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
|
---|
1816 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
|
---|
1817 | ;;
|
---|
1818 | esac
|
---|
1819 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
1820 | $as_echo_n "checking for $2... " >&6; }
|
---|
1821 | if eval "test \"\${$3+set}\"" = set; then :
|
---|
1822 | $as_echo_n "(cached) " >&6
|
---|
1823 | else
|
---|
1824 | eval "$3=\$ac_header_compiler"
|
---|
1825 | fi
|
---|
1826 | eval ac_res=\$$3
|
---|
1827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
1828 | $as_echo "$ac_res" >&6; }
|
---|
1829 | fi
|
---|
1830 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
|
---|
1831 |
|
---|
1832 | } # ac_fn_c_check_header_mongrel
|
---|
1833 |
|
---|
1834 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
|
---|
1835 | # ---------------------------------------------
|
---|
1836 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
|
---|
1837 | # accordingly.
|
---|
1838 | ac_fn_c_check_decl ()
|
---|
1839 | {
|
---|
1840 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1841 | as_decl_name=`echo $2|sed 's/ *(.*//'`
|
---|
1842 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
|
---|
1843 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
|
---|
1844 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
|
---|
1845 | if eval "test \"\${$3+set}\"" = set; then :
|
---|
1846 | $as_echo_n "(cached) " >&6
|
---|
1847 | else
|
---|
1848 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1849 | /* end confdefs.h. */
|
---|
1850 | $4
|
---|
1851 | int
|
---|
1852 | main ()
|
---|
1853 | {
|
---|
1854 | #ifndef $as_decl_name
|
---|
1855 | #ifdef __cplusplus
|
---|
1856 | (void) $as_decl_use;
|
---|
1857 | #else
|
---|
1858 | (void) $as_decl_name;
|
---|
1859 | #endif
|
---|
1860 | #endif
|
---|
1861 |
|
---|
1862 | ;
|
---|
1863 | return 0;
|
---|
1864 | }
|
---|
1865 | _ACEOF
|
---|
1866 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
1867 | eval "$3=yes"
|
---|
1868 | else
|
---|
1869 | eval "$3=no"
|
---|
1870 | fi
|
---|
1871 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
1872 | fi
|
---|
1873 | eval ac_res=\$$3
|
---|
1874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
1875 | $as_echo "$ac_res" >&6; }
|
---|
1876 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
|
---|
1877 |
|
---|
1878 | } # ac_fn_c_check_decl
|
---|
1879 |
|
---|
1880 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
|
---|
1881 | # -------------------------------------------
|
---|
1882 | # Tests whether TYPE exists after having included INCLUDES, setting cache
|
---|
1883 | # variable VAR accordingly.
|
---|
1884 | ac_fn_c_check_type ()
|
---|
1885 | {
|
---|
1886 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1887 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
1888 | $as_echo_n "checking for $2... " >&6; }
|
---|
1889 | if eval "test \"\${$3+set}\"" = set; then :
|
---|
1890 | $as_echo_n "(cached) " >&6
|
---|
1891 | else
|
---|
1892 | eval "$3=no"
|
---|
1893 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1894 | /* end confdefs.h. */
|
---|
1895 | $4
|
---|
1896 | int
|
---|
1897 | main ()
|
---|
1898 | {
|
---|
1899 | if (sizeof ($2))
|
---|
1900 | return 0;
|
---|
1901 | ;
|
---|
1902 | return 0;
|
---|
1903 | }
|
---|
1904 | _ACEOF
|
---|
1905 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
1906 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1907 | /* end confdefs.h. */
|
---|
1908 | $4
|
---|
1909 | int
|
---|
1910 | main ()
|
---|
1911 | {
|
---|
1912 | if (sizeof (($2)))
|
---|
1913 | return 0;
|
---|
1914 | ;
|
---|
1915 | return 0;
|
---|
1916 | }
|
---|
1917 | _ACEOF
|
---|
1918 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
1919 |
|
---|
1920 | else
|
---|
1921 | eval "$3=yes"
|
---|
1922 | fi
|
---|
1923 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
1924 | fi
|
---|
1925 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
1926 | fi
|
---|
1927 | eval ac_res=\$$3
|
---|
1928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
1929 | $as_echo "$ac_res" >&6; }
|
---|
1930 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
|
---|
1931 |
|
---|
1932 | } # ac_fn_c_check_type
|
---|
1933 |
|
---|
1934 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
|
---|
1935 | # ----------------------------------------------------
|
---|
1936 | # Tries to find if the field MEMBER exists in type AGGR, after including
|
---|
1937 | # INCLUDES, setting cache variable VAR accordingly.
|
---|
1938 | ac_fn_c_check_member ()
|
---|
1939 | {
|
---|
1940 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1941 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
|
---|
1942 | $as_echo_n "checking for $2.$3... " >&6; }
|
---|
1943 | if eval "test \"\${$4+set}\"" = set; then :
|
---|
1944 | $as_echo_n "(cached) " >&6
|
---|
1945 | else
|
---|
1946 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1947 | /* end confdefs.h. */
|
---|
1948 | $5
|
---|
1949 | int
|
---|
1950 | main ()
|
---|
1951 | {
|
---|
1952 | static $2 ac_aggr;
|
---|
1953 | if (ac_aggr.$3)
|
---|
1954 | return 0;
|
---|
1955 | ;
|
---|
1956 | return 0;
|
---|
1957 | }
|
---|
1958 | _ACEOF
|
---|
1959 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
1960 | eval "$4=yes"
|
---|
1961 | else
|
---|
1962 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1963 | /* end confdefs.h. */
|
---|
1964 | $5
|
---|
1965 | int
|
---|
1966 | main ()
|
---|
1967 | {
|
---|
1968 | static $2 ac_aggr;
|
---|
1969 | if (sizeof ac_aggr.$3)
|
---|
1970 | return 0;
|
---|
1971 | ;
|
---|
1972 | return 0;
|
---|
1973 | }
|
---|
1974 | _ACEOF
|
---|
1975 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
1976 | eval "$4=yes"
|
---|
1977 | else
|
---|
1978 | eval "$4=no"
|
---|
1979 | fi
|
---|
1980 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
1981 | fi
|
---|
1982 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
1983 | fi
|
---|
1984 | eval ac_res=\$$4
|
---|
1985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
1986 | $as_echo "$ac_res" >&6; }
|
---|
1987 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
|
---|
1988 |
|
---|
1989 | } # ac_fn_c_check_member
|
---|
1990 | cat >config.log <<_ACEOF
|
---|
1991 | This file contains any messages produced by compilers while
|
---|
1992 | running configure, to aid debugging if configure makes a mistake.
|
---|
1993 |
|
---|
1994 | It was created by rdesktop $as_me 1.6.0, which was
|
---|
1995 | generated by GNU Autoconf 2.67. Invocation command line was
|
---|
1996 |
|
---|
1997 | $ $0 $@
|
---|
1998 |
|
---|
1999 | _ACEOF
|
---|
2000 | exec 5>>config.log
|
---|
2001 | {
|
---|
2002 | cat <<_ASUNAME
|
---|
2003 | ## --------- ##
|
---|
2004 | ## Platform. ##
|
---|
2005 | ## --------- ##
|
---|
2006 |
|
---|
2007 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
2008 | uname -m = `(uname -m) 2>/dev/null || echo unknown`
|
---|
2009 | uname -r = `(uname -r) 2>/dev/null || echo unknown`
|
---|
2010 | uname -s = `(uname -s) 2>/dev/null || echo unknown`
|
---|
2011 | uname -v = `(uname -v) 2>/dev/null || echo unknown`
|
---|
2012 |
|
---|
2013 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
|
---|
2014 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
|
---|
2015 |
|
---|
2016 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
|
---|
2017 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
|
---|
2018 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
|
---|
2019 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
|
---|
2020 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
|
---|
2021 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
|
---|
2022 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
|
---|
2023 |
|
---|
2024 | _ASUNAME
|
---|
2025 |
|
---|
2026 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2027 | for as_dir in $PATH
|
---|
2028 | do
|
---|
2029 | IFS=$as_save_IFS
|
---|
2030 | test -z "$as_dir" && as_dir=.
|
---|
2031 | $as_echo "PATH: $as_dir"
|
---|
2032 | done
|
---|
2033 | IFS=$as_save_IFS
|
---|
2034 |
|
---|
2035 | } >&5
|
---|
2036 |
|
---|
2037 | cat >&5 <<_ACEOF
|
---|
2038 |
|
---|
2039 |
|
---|
2040 | ## ----------- ##
|
---|
2041 | ## Core tests. ##
|
---|
2042 | ## ----------- ##
|
---|
2043 |
|
---|
2044 | _ACEOF
|
---|
2045 |
|
---|
2046 |
|
---|
2047 | # Keep a trace of the command line.
|
---|
2048 | # Strip out --no-create and --no-recursion so they do not pile up.
|
---|
2049 | # Strip out --silent because we don't want to record it for future runs.
|
---|
2050 | # Also quote any args containing shell meta-characters.
|
---|
2051 | # Make two passes to allow for proper duplicate-argument suppression.
|
---|
2052 | ac_configure_args=
|
---|
2053 | ac_configure_args0=
|
---|
2054 | ac_configure_args1=
|
---|
2055 | ac_must_keep_next=false
|
---|
2056 | for ac_pass in 1 2
|
---|
2057 | do
|
---|
2058 | for ac_arg
|
---|
2059 | do
|
---|
2060 | case $ac_arg in
|
---|
2061 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
|
---|
2062 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
2063 | | -silent | --silent | --silen | --sile | --sil)
|
---|
2064 | continue ;;
|
---|
2065 | *\'*)
|
---|
2066 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
2067 | esac
|
---|
2068 | case $ac_pass in
|
---|
2069 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
|
---|
2070 | 2)
|
---|
2071 | as_fn_append ac_configure_args1 " '$ac_arg'"
|
---|
2072 | if test $ac_must_keep_next = true; then
|
---|
2073 | ac_must_keep_next=false # Got value, back to normal.
|
---|
2074 | else
|
---|
2075 | case $ac_arg in
|
---|
2076 | *=* | --config-cache | -C | -disable-* | --disable-* \
|
---|
2077 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
|
---|
2078 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
|
---|
2079 | | -with-* | --with-* | -without-* | --without-* | --x)
|
---|
2080 | case "$ac_configure_args0 " in
|
---|
2081 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
|
---|
2082 | esac
|
---|
2083 | ;;
|
---|
2084 | -* ) ac_must_keep_next=true ;;
|
---|
2085 | esac
|
---|
2086 | fi
|
---|
2087 | as_fn_append ac_configure_args " '$ac_arg'"
|
---|
2088 | ;;
|
---|
2089 | esac
|
---|
2090 | done
|
---|
2091 | done
|
---|
2092 | { ac_configure_args0=; unset ac_configure_args0;}
|
---|
2093 | { ac_configure_args1=; unset ac_configure_args1;}
|
---|
2094 |
|
---|
2095 | # When interrupted or exit'd, cleanup temporary files, and complete
|
---|
2096 | # config.log. We remove comments because anyway the quotes in there
|
---|
2097 | # would cause problems or look ugly.
|
---|
2098 | # WARNING: Use '\'' to represent an apostrophe within the trap.
|
---|
2099 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
|
---|
2100 | trap 'exit_status=$?
|
---|
2101 | # Save into config.log some information that might help in debugging.
|
---|
2102 | {
|
---|
2103 | echo
|
---|
2104 |
|
---|
2105 | $as_echo "## ---------------- ##
|
---|
2106 | ## Cache variables. ##
|
---|
2107 | ## ---------------- ##"
|
---|
2108 | echo
|
---|
2109 | # The following way of writing the cache mishandles newlines in values,
|
---|
2110 | (
|
---|
2111 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
|
---|
2112 | eval ac_val=\$$ac_var
|
---|
2113 | case $ac_val in #(
|
---|
2114 | *${as_nl}*)
|
---|
2115 | case $ac_var in #(
|
---|
2116 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
|
---|
2117 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
|
---|
2118 | esac
|
---|
2119 | case $ac_var in #(
|
---|
2120 | _ | IFS | as_nl) ;; #(
|
---|
2121 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
|
---|
2122 | *) { eval $ac_var=; unset $ac_var;} ;;
|
---|
2123 | esac ;;
|
---|
2124 | esac
|
---|
2125 | done
|
---|
2126 | (set) 2>&1 |
|
---|
2127 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
|
---|
2128 | *${as_nl}ac_space=\ *)
|
---|
2129 | sed -n \
|
---|
2130 | "s/'\''/'\''\\\\'\'''\''/g;
|
---|
2131 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
|
---|
2132 | ;; #(
|
---|
2133 | *)
|
---|
2134 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
|
---|
2135 | ;;
|
---|
2136 | esac |
|
---|
2137 | sort
|
---|
2138 | )
|
---|
2139 | echo
|
---|
2140 |
|
---|
2141 | $as_echo "## ----------------- ##
|
---|
2142 | ## Output variables. ##
|
---|
2143 | ## ----------------- ##"
|
---|
2144 | echo
|
---|
2145 | for ac_var in $ac_subst_vars
|
---|
2146 | do
|
---|
2147 | eval ac_val=\$$ac_var
|
---|
2148 | case $ac_val in
|
---|
2149 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
|
---|
2150 | esac
|
---|
2151 | $as_echo "$ac_var='\''$ac_val'\''"
|
---|
2152 | done | sort
|
---|
2153 | echo
|
---|
2154 |
|
---|
2155 | if test -n "$ac_subst_files"; then
|
---|
2156 | $as_echo "## ------------------- ##
|
---|
2157 | ## File substitutions. ##
|
---|
2158 | ## ------------------- ##"
|
---|
2159 | echo
|
---|
2160 | for ac_var in $ac_subst_files
|
---|
2161 | do
|
---|
2162 | eval ac_val=\$$ac_var
|
---|
2163 | case $ac_val in
|
---|
2164 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
|
---|
2165 | esac
|
---|
2166 | $as_echo "$ac_var='\''$ac_val'\''"
|
---|
2167 | done | sort
|
---|
2168 | echo
|
---|
2169 | fi
|
---|
2170 |
|
---|
2171 | if test -s confdefs.h; then
|
---|
2172 | $as_echo "## ----------- ##
|
---|
2173 | ## confdefs.h. ##
|
---|
2174 | ## ----------- ##"
|
---|
2175 | echo
|
---|
2176 | cat confdefs.h
|
---|
2177 | echo
|
---|
2178 | fi
|
---|
2179 | test "$ac_signal" != 0 &&
|
---|
2180 | $as_echo "$as_me: caught signal $ac_signal"
|
---|
2181 | $as_echo "$as_me: exit $exit_status"
|
---|
2182 | } >&5
|
---|
2183 | rm -f core *.core core.conftest.* &&
|
---|
2184 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
|
---|
2185 | exit $exit_status
|
---|
2186 | ' 0
|
---|
2187 | for ac_signal in 1 2 13 15; do
|
---|
2188 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
|
---|
2189 | done
|
---|
2190 | ac_signal=0
|
---|
2191 |
|
---|
2192 | # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
---|
2193 | rm -f -r conftest* confdefs.h
|
---|
2194 |
|
---|
2195 | $as_echo "/* confdefs.h */" > confdefs.h
|
---|
2196 |
|
---|
2197 | # Predefined preprocessor variables.
|
---|
2198 |
|
---|
2199 | cat >>confdefs.h <<_ACEOF
|
---|
2200 | #define PACKAGE_NAME "$PACKAGE_NAME"
|
---|
2201 | _ACEOF
|
---|
2202 |
|
---|
2203 | cat >>confdefs.h <<_ACEOF
|
---|
2204 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
|
---|
2205 | _ACEOF
|
---|
2206 |
|
---|
2207 | cat >>confdefs.h <<_ACEOF
|
---|
2208 | #define PACKAGE_VERSION "$PACKAGE_VERSION"
|
---|
2209 | _ACEOF
|
---|
2210 |
|
---|
2211 | cat >>confdefs.h <<_ACEOF
|
---|
2212 | #define PACKAGE_STRING "$PACKAGE_STRING"
|
---|
2213 | _ACEOF
|
---|
2214 |
|
---|
2215 | cat >>confdefs.h <<_ACEOF
|
---|
2216 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
|
---|
2217 | _ACEOF
|
---|
2218 |
|
---|
2219 | cat >>confdefs.h <<_ACEOF
|
---|
2220 | #define PACKAGE_URL "$PACKAGE_URL"
|
---|
2221 | _ACEOF
|
---|
2222 |
|
---|
2223 |
|
---|
2224 | # Let the site file select an alternate cache file if it wants to.
|
---|
2225 | # Prefer an explicitly selected file to automatically selected ones.
|
---|
2226 | ac_site_file1=NONE
|
---|
2227 | ac_site_file2=NONE
|
---|
2228 | if test -n "$CONFIG_SITE"; then
|
---|
2229 | # We do not want a PATH search for config.site.
|
---|
2230 | case $CONFIG_SITE in #((
|
---|
2231 | -*) ac_site_file1=./$CONFIG_SITE;;
|
---|
2232 | */*) ac_site_file1=$CONFIG_SITE;;
|
---|
2233 | *) ac_site_file1=./$CONFIG_SITE;;
|
---|
2234 | esac
|
---|
2235 | elif test "x$prefix" != xNONE; then
|
---|
2236 | ac_site_file1=$prefix/share/config.site
|
---|
2237 | ac_site_file2=$prefix/etc/config.site
|
---|
2238 | else
|
---|
2239 | ac_site_file1=$ac_default_prefix/share/config.site
|
---|
2240 | ac_site_file2=$ac_default_prefix/etc/config.site
|
---|
2241 | fi
|
---|
2242 | for ac_site_file in "$ac_site_file1" "$ac_site_file2"
|
---|
2243 | do
|
---|
2244 | test "x$ac_site_file" = xNONE && continue
|
---|
2245 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
|
---|
2246 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
|
---|
2247 | $as_echo "$as_me: loading site script $ac_site_file" >&6;}
|
---|
2248 | sed 's/^/| /' "$ac_site_file" >&5
|
---|
2249 | . "$ac_site_file" \
|
---|
2250 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
2251 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
2252 | as_fn_error $? "failed to load site script $ac_site_file
|
---|
2253 | See \`config.log' for more details" "$LINENO" 5 ; }
|
---|
2254 | fi
|
---|
2255 | done
|
---|
2256 |
|
---|
2257 | if test -r "$cache_file"; then
|
---|
2258 | # Some versions of bash will fail to source /dev/null (special files
|
---|
2259 | # actually), so we avoid doing that. DJGPP emulates it as a regular file.
|
---|
2260 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then
|
---|
2261 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
|
---|
2262 | $as_echo "$as_me: loading cache $cache_file" >&6;}
|
---|
2263 | case $cache_file in
|
---|
2264 | [\\/]* | ?:[\\/]* ) . "$cache_file";;
|
---|
2265 | *) . "./$cache_file";;
|
---|
2266 | esac
|
---|
2267 | fi
|
---|
2268 | else
|
---|
2269 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
|
---|
2270 | $as_echo "$as_me: creating cache $cache_file" >&6;}
|
---|
2271 | >$cache_file
|
---|
2272 | fi
|
---|
2273 |
|
---|
2274 | # Check that the precious variables saved in the cache have kept the same
|
---|
2275 | # value.
|
---|
2276 | ac_cache_corrupted=false
|
---|
2277 | for ac_var in $ac_precious_vars; do
|
---|
2278 | eval ac_old_set=\$ac_cv_env_${ac_var}_set
|
---|
2279 | eval ac_new_set=\$ac_env_${ac_var}_set
|
---|
2280 | eval ac_old_val=\$ac_cv_env_${ac_var}_value
|
---|
2281 | eval ac_new_val=\$ac_env_${ac_var}_value
|
---|
2282 | case $ac_old_set,$ac_new_set in
|
---|
2283 | set,)
|
---|
2284 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
|
---|
2285 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
|
---|
2286 | ac_cache_corrupted=: ;;
|
---|
2287 | ,set)
|
---|
2288 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
|
---|
2289 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
|
---|
2290 | ac_cache_corrupted=: ;;
|
---|
2291 | ,);;
|
---|
2292 | *)
|
---|
2293 | if test "x$ac_old_val" != "x$ac_new_val"; then
|
---|
2294 | # differences in whitespace do not lead to failure.
|
---|
2295 | ac_old_val_w=`echo x $ac_old_val`
|
---|
2296 | ac_new_val_w=`echo x $ac_new_val`
|
---|
2297 | if test "$ac_old_val_w" != "$ac_new_val_w"; then
|
---|
2298 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
|
---|
2299 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
|
---|
2300 | ac_cache_corrupted=:
|
---|
2301 | else
|
---|
2302 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
|
---|
2303 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
|
---|
2304 | eval $ac_var=\$ac_old_val
|
---|
2305 | fi
|
---|
2306 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
|
---|
2307 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
|
---|
2308 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
|
---|
2309 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
|
---|
2310 | fi;;
|
---|
2311 | esac
|
---|
2312 | # Pass precious variables to config.status.
|
---|
2313 | if test "$ac_new_set" = set; then
|
---|
2314 | case $ac_new_val in
|
---|
2315 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
2316 | *) ac_arg=$ac_var=$ac_new_val ;;
|
---|
2317 | esac
|
---|
2318 | case " $ac_configure_args " in
|
---|
2319 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
|
---|
2320 | *) as_fn_append ac_configure_args " '$ac_arg'" ;;
|
---|
2321 | esac
|
---|
2322 | fi
|
---|
2323 | done
|
---|
2324 | if $ac_cache_corrupted; then
|
---|
2325 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
2326 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
2327 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
|
---|
2328 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
|
---|
2329 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
|
---|
2330 | fi
|
---|
2331 | ## -------------------- ##
|
---|
2332 | ## Main body of script. ##
|
---|
2333 | ## -------------------- ##
|
---|
2334 |
|
---|
2335 | ac_ext=c
|
---|
2336 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2337 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
2338 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
2339 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
2340 |
|
---|
2341 |
|
---|
2342 |
|
---|
2343 |
|
---|
2344 |
|
---|
2345 | ac_ext=c
|
---|
2346 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2347 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
2348 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
2349 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
2350 | if test -n "$ac_tool_prefix"; then
|
---|
2351 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
|
---|
2352 | set dummy ${ac_tool_prefix}gcc; ac_word=$2
|
---|
2353 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
2354 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
2355 | if test "${ac_cv_prog_CC+set}" = set; then :
|
---|
2356 | $as_echo_n "(cached) " >&6
|
---|
2357 | else
|
---|
2358 | if test -n "$CC"; then
|
---|
2359 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
2360 | else
|
---|
2361 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2362 | for as_dir in $PATH
|
---|
2363 | do
|
---|
2364 | IFS=$as_save_IFS
|
---|
2365 | test -z "$as_dir" && as_dir=.
|
---|
2366 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2367 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
2368 | ac_cv_prog_CC="${ac_tool_prefix}gcc"
|
---|
2369 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2370 | break 2
|
---|
2371 | fi
|
---|
2372 | done
|
---|
2373 | done
|
---|
2374 | IFS=$as_save_IFS
|
---|
2375 |
|
---|
2376 | fi
|
---|
2377 | fi
|
---|
2378 | CC=$ac_cv_prog_CC
|
---|
2379 | if test -n "$CC"; then
|
---|
2380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
2381 | $as_echo "$CC" >&6; }
|
---|
2382 | else
|
---|
2383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
2384 | $as_echo "no" >&6; }
|
---|
2385 | fi
|
---|
2386 |
|
---|
2387 |
|
---|
2388 | fi
|
---|
2389 | if test -z "$ac_cv_prog_CC"; then
|
---|
2390 | ac_ct_CC=$CC
|
---|
2391 | # Extract the first word of "gcc", so it can be a program name with args.
|
---|
2392 | set dummy gcc; ac_word=$2
|
---|
2393 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
2394 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
2395 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
|
---|
2396 | $as_echo_n "(cached) " >&6
|
---|
2397 | else
|
---|
2398 | if test -n "$ac_ct_CC"; then
|
---|
2399 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
2400 | else
|
---|
2401 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2402 | for as_dir in $PATH
|
---|
2403 | do
|
---|
2404 | IFS=$as_save_IFS
|
---|
2405 | test -z "$as_dir" && as_dir=.
|
---|
2406 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2407 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
2408 | ac_cv_prog_ac_ct_CC="gcc"
|
---|
2409 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2410 | break 2
|
---|
2411 | fi
|
---|
2412 | done
|
---|
2413 | done
|
---|
2414 | IFS=$as_save_IFS
|
---|
2415 |
|
---|
2416 | fi
|
---|
2417 | fi
|
---|
2418 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
2419 | if test -n "$ac_ct_CC"; then
|
---|
2420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
|
---|
2421 | $as_echo "$ac_ct_CC" >&6; }
|
---|
2422 | else
|
---|
2423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
2424 | $as_echo "no" >&6; }
|
---|
2425 | fi
|
---|
2426 |
|
---|
2427 | if test "x$ac_ct_CC" = x; then
|
---|
2428 | CC=""
|
---|
2429 | else
|
---|
2430 | case $cross_compiling:$ac_tool_warned in
|
---|
2431 | yes:)
|
---|
2432 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
2433 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
2434 | ac_tool_warned=yes ;;
|
---|
2435 | esac
|
---|
2436 | CC=$ac_ct_CC
|
---|
2437 | fi
|
---|
2438 | else
|
---|
2439 | CC="$ac_cv_prog_CC"
|
---|
2440 | fi
|
---|
2441 |
|
---|
2442 | if test -z "$CC"; then
|
---|
2443 | if test -n "$ac_tool_prefix"; then
|
---|
2444 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
|
---|
2445 | set dummy ${ac_tool_prefix}cc; ac_word=$2
|
---|
2446 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
2447 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
2448 | if test "${ac_cv_prog_CC+set}" = set; then :
|
---|
2449 | $as_echo_n "(cached) " >&6
|
---|
2450 | else
|
---|
2451 | if test -n "$CC"; then
|
---|
2452 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
2453 | else
|
---|
2454 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2455 | for as_dir in $PATH
|
---|
2456 | do
|
---|
2457 | IFS=$as_save_IFS
|
---|
2458 | test -z "$as_dir" && as_dir=.
|
---|
2459 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2460 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
2461 | ac_cv_prog_CC="${ac_tool_prefix}cc"
|
---|
2462 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2463 | break 2
|
---|
2464 | fi
|
---|
2465 | done
|
---|
2466 | done
|
---|
2467 | IFS=$as_save_IFS
|
---|
2468 |
|
---|
2469 | fi
|
---|
2470 | fi
|
---|
2471 | CC=$ac_cv_prog_CC
|
---|
2472 | if test -n "$CC"; then
|
---|
2473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
2474 | $as_echo "$CC" >&6; }
|
---|
2475 | else
|
---|
2476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
2477 | $as_echo "no" >&6; }
|
---|
2478 | fi
|
---|
2479 |
|
---|
2480 |
|
---|
2481 | fi
|
---|
2482 | fi
|
---|
2483 | if test -z "$CC"; then
|
---|
2484 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
2485 | set dummy cc; ac_word=$2
|
---|
2486 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
2487 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
2488 | if test "${ac_cv_prog_CC+set}" = set; then :
|
---|
2489 | $as_echo_n "(cached) " >&6
|
---|
2490 | else
|
---|
2491 | if test -n "$CC"; then
|
---|
2492 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
2493 | else
|
---|
2494 | ac_prog_rejected=no
|
---|
2495 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2496 | for as_dir in $PATH
|
---|
2497 | do
|
---|
2498 | IFS=$as_save_IFS
|
---|
2499 | test -z "$as_dir" && as_dir=.
|
---|
2500 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2501 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
2502 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
|
---|
2503 | ac_prog_rejected=yes
|
---|
2504 | continue
|
---|
2505 | fi
|
---|
2506 | ac_cv_prog_CC="cc"
|
---|
2507 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2508 | break 2
|
---|
2509 | fi
|
---|
2510 | done
|
---|
2511 | done
|
---|
2512 | IFS=$as_save_IFS
|
---|
2513 |
|
---|
2514 | if test $ac_prog_rejected = yes; then
|
---|
2515 | # We found a bogon in the path, so make sure we never use it.
|
---|
2516 | set dummy $ac_cv_prog_CC
|
---|
2517 | shift
|
---|
2518 | if test $# != 0; then
|
---|
2519 | # We chose a different compiler from the bogus one.
|
---|
2520 | # However, it has the same basename, so the bogon will be chosen
|
---|
2521 | # first if we set CC to just the basename; use the full file name.
|
---|
2522 | shift
|
---|
2523 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
|
---|
2524 | fi
|
---|
2525 | fi
|
---|
2526 | fi
|
---|
2527 | fi
|
---|
2528 | CC=$ac_cv_prog_CC
|
---|
2529 | if test -n "$CC"; then
|
---|
2530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
2531 | $as_echo "$CC" >&6; }
|
---|
2532 | else
|
---|
2533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
2534 | $as_echo "no" >&6; }
|
---|
2535 | fi
|
---|
2536 |
|
---|
2537 |
|
---|
2538 | fi
|
---|
2539 | if test -z "$CC"; then
|
---|
2540 | if test -n "$ac_tool_prefix"; then
|
---|
2541 | for ac_prog in cl.exe
|
---|
2542 | do
|
---|
2543 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
2544 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
2545 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
2546 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
2547 | if test "${ac_cv_prog_CC+set}" = set; then :
|
---|
2548 | $as_echo_n "(cached) " >&6
|
---|
2549 | else
|
---|
2550 | if test -n "$CC"; then
|
---|
2551 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
2552 | else
|
---|
2553 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2554 | for as_dir in $PATH
|
---|
2555 | do
|
---|
2556 | IFS=$as_save_IFS
|
---|
2557 | test -z "$as_dir" && as_dir=.
|
---|
2558 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2559 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
2560 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
|
---|
2561 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2562 | break 2
|
---|
2563 | fi
|
---|
2564 | done
|
---|
2565 | done
|
---|
2566 | IFS=$as_save_IFS
|
---|
2567 |
|
---|
2568 | fi
|
---|
2569 | fi
|
---|
2570 | CC=$ac_cv_prog_CC
|
---|
2571 | if test -n "$CC"; then
|
---|
2572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
2573 | $as_echo "$CC" >&6; }
|
---|
2574 | else
|
---|
2575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
2576 | $as_echo "no" >&6; }
|
---|
2577 | fi
|
---|
2578 |
|
---|
2579 |
|
---|
2580 | test -n "$CC" && break
|
---|
2581 | done
|
---|
2582 | fi
|
---|
2583 | if test -z "$CC"; then
|
---|
2584 | ac_ct_CC=$CC
|
---|
2585 | for ac_prog in cl.exe
|
---|
2586 | do
|
---|
2587 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
2588 | set dummy $ac_prog; ac_word=$2
|
---|
2589 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
2590 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
2591 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
|
---|
2592 | $as_echo_n "(cached) " >&6
|
---|
2593 | else
|
---|
2594 | if test -n "$ac_ct_CC"; then
|
---|
2595 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
2596 | else
|
---|
2597 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2598 | for as_dir in $PATH
|
---|
2599 | do
|
---|
2600 | IFS=$as_save_IFS
|
---|
2601 | test -z "$as_dir" && as_dir=.
|
---|
2602 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2603 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
2604 | ac_cv_prog_ac_ct_CC="$ac_prog"
|
---|
2605 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2606 | break 2
|
---|
2607 | fi
|
---|
2608 | done
|
---|
2609 | done
|
---|
2610 | IFS=$as_save_IFS
|
---|
2611 |
|
---|
2612 | fi
|
---|
2613 | fi
|
---|
2614 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
2615 | if test -n "$ac_ct_CC"; then
|
---|
2616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
|
---|
2617 | $as_echo "$ac_ct_CC" >&6; }
|
---|
2618 | else
|
---|
2619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
2620 | $as_echo "no" >&6; }
|
---|
2621 | fi
|
---|
2622 |
|
---|
2623 |
|
---|
2624 | test -n "$ac_ct_CC" && break
|
---|
2625 | done
|
---|
2626 |
|
---|
2627 | if test "x$ac_ct_CC" = x; then
|
---|
2628 | CC=""
|
---|
2629 | else
|
---|
2630 | case $cross_compiling:$ac_tool_warned in
|
---|
2631 | yes:)
|
---|
2632 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
2633 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
2634 | ac_tool_warned=yes ;;
|
---|
2635 | esac
|
---|
2636 | CC=$ac_ct_CC
|
---|
2637 | fi
|
---|
2638 | fi
|
---|
2639 |
|
---|
2640 | fi
|
---|
2641 |
|
---|
2642 |
|
---|
2643 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
2644 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
2645 | as_fn_error $? "no acceptable C compiler found in \$PATH
|
---|
2646 | See \`config.log' for more details" "$LINENO" 5 ; }
|
---|
2647 |
|
---|
2648 | # Provide some information about the compiler.
|
---|
2649 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
|
---|
2650 | set X $ac_compile
|
---|
2651 | ac_compiler=$2
|
---|
2652 | for ac_option in --version -v -V -qversion; do
|
---|
2653 | { { ac_try="$ac_compiler $ac_option >&5"
|
---|
2654 | case "(($ac_try" in
|
---|
2655 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2656 | *) ac_try_echo=$ac_try;;
|
---|
2657 | esac
|
---|
2658 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
2659 | $as_echo "$ac_try_echo"; } >&5
|
---|
2660 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err
|
---|
2661 | ac_status=$?
|
---|
2662 | if test -s conftest.err; then
|
---|
2663 | sed '10a\
|
---|
2664 | ... rest of stderr output deleted ...
|
---|
2665 | 10q' conftest.err >conftest.er1
|
---|
2666 | cat conftest.er1 >&5
|
---|
2667 | fi
|
---|
2668 | rm -f conftest.er1 conftest.err
|
---|
2669 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
2670 | test $ac_status = 0; }
|
---|
2671 | done
|
---|
2672 |
|
---|
2673 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
2674 | /* end confdefs.h. */
|
---|
2675 |
|
---|
2676 | int
|
---|
2677 | main ()
|
---|
2678 | {
|
---|
2679 |
|
---|
2680 | ;
|
---|
2681 | return 0;
|
---|
2682 | }
|
---|
2683 | _ACEOF
|
---|
2684 | ac_clean_files_save=$ac_clean_files
|
---|
2685 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
|
---|
2686 | # Try to create an executable without -o first, disregard a.out.
|
---|
2687 | # It will help us diagnose broken compilers, and finding out an intuition
|
---|
2688 | # of exeext.
|
---|
2689 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
|
---|
2690 | $as_echo_n "checking whether the C compiler works... " >&6; }
|
---|
2691 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
|
---|
2692 |
|
---|
2693 | # The possible output files:
|
---|
2694 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
|
---|
2695 |
|
---|
2696 | ac_rmfiles=
|
---|
2697 | for ac_file in $ac_files
|
---|
2698 | do
|
---|
2699 | case $ac_file in
|
---|
2700 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
|
---|
2701 | * ) ac_rmfiles="$ac_rmfiles $ac_file";;
|
---|
2702 | esac
|
---|
2703 | done
|
---|
2704 | rm -f $ac_rmfiles
|
---|
2705 |
|
---|
2706 | if { { ac_try="$ac_link_default"
|
---|
2707 | case "(($ac_try" in
|
---|
2708 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2709 | *) ac_try_echo=$ac_try;;
|
---|
2710 | esac
|
---|
2711 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
2712 | $as_echo "$ac_try_echo"; } >&5
|
---|
2713 | (eval "$ac_link_default") 2>&5
|
---|
2714 | ac_status=$?
|
---|
2715 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
2716 | test $ac_status = 0; }; then :
|
---|
2717 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
|
---|
2718 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
|
---|
2719 | # in a Makefile. We should not override ac_cv_exeext if it was cached,
|
---|
2720 | # so that the user can short-circuit this test for compilers unknown to
|
---|
2721 | # Autoconf.
|
---|
2722 | for ac_file in $ac_files ''
|
---|
2723 | do
|
---|
2724 | test -f "$ac_file" || continue
|
---|
2725 | case $ac_file in
|
---|
2726 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
|
---|
2727 | ;;
|
---|
2728 | [ab].out )
|
---|
2729 | # We found the default executable, but exeext='' is most
|
---|
2730 | # certainly right.
|
---|
2731 | break;;
|
---|
2732 | *.* )
|
---|
2733 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
|
---|
2734 | then :; else
|
---|
2735 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
2736 | fi
|
---|
2737 | # We set ac_cv_exeext here because the later test for it is not
|
---|
2738 | # safe: cross compilers may not add the suffix if given an `-o'
|
---|
2739 | # argument, so we may need to know it at that point already.
|
---|
2740 | # Even if this section looks crufty: it has the advantage of
|
---|
2741 | # actually working.
|
---|
2742 | break;;
|
---|
2743 | * )
|
---|
2744 | break;;
|
---|
2745 | esac
|
---|
2746 | done
|
---|
2747 | test "$ac_cv_exeext" = no && ac_cv_exeext=
|
---|
2748 |
|
---|
2749 | else
|
---|
2750 | ac_file=''
|
---|
2751 | fi
|
---|
2752 | if test -z "$ac_file"; then :
|
---|
2753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
2754 | $as_echo "no" >&6; }
|
---|
2755 | $as_echo "$as_me: failed program was:" >&5
|
---|
2756 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2757 |
|
---|
2758 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
2759 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
2760 | as_fn_error 77 "C compiler cannot create executables
|
---|
2761 | See \`config.log' for more details" "$LINENO" 5 ; }
|
---|
2762 | else
|
---|
2763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
2764 | $as_echo "yes" >&6; }
|
---|
2765 | fi
|
---|
2766 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
|
---|
2767 | $as_echo_n "checking for C compiler default output file name... " >&6; }
|
---|
2768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
|
---|
2769 | $as_echo "$ac_file" >&6; }
|
---|
2770 | ac_exeext=$ac_cv_exeext
|
---|
2771 |
|
---|
2772 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
|
---|
2773 | ac_clean_files=$ac_clean_files_save
|
---|
2774 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
|
---|
2775 | $as_echo_n "checking for suffix of executables... " >&6; }
|
---|
2776 | if { { ac_try="$ac_link"
|
---|
2777 | case "(($ac_try" in
|
---|
2778 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2779 | *) ac_try_echo=$ac_try;;
|
---|
2780 | esac
|
---|
2781 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
2782 | $as_echo "$ac_try_echo"; } >&5
|
---|
2783 | (eval "$ac_link") 2>&5
|
---|
2784 | ac_status=$?
|
---|
2785 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
2786 | test $ac_status = 0; }; then :
|
---|
2787 | # If both `conftest.exe' and `conftest' are `present' (well, observable)
|
---|
2788 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
|
---|
2789 | # work properly (i.e., refer to `conftest.exe'), while it won't with
|
---|
2790 | # `rm'.
|
---|
2791 | for ac_file in conftest.exe conftest conftest.*; do
|
---|
2792 | test -f "$ac_file" || continue
|
---|
2793 | case $ac_file in
|
---|
2794 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
|
---|
2795 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
2796 | break;;
|
---|
2797 | * ) break;;
|
---|
2798 | esac
|
---|
2799 | done
|
---|
2800 | else
|
---|
2801 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
2802 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
2803 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link
|
---|
2804 | See \`config.log' for more details" "$LINENO" 5 ; }
|
---|
2805 | fi
|
---|
2806 | rm -f conftest conftest$ac_cv_exeext
|
---|
2807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
|
---|
2808 | $as_echo "$ac_cv_exeext" >&6; }
|
---|
2809 |
|
---|
2810 | rm -f conftest.$ac_ext
|
---|
2811 | EXEEXT=$ac_cv_exeext
|
---|
2812 | ac_exeext=$EXEEXT
|
---|
2813 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
2814 | /* end confdefs.h. */
|
---|
2815 | #include <stdio.h>
|
---|
2816 | int
|
---|
2817 | main ()
|
---|
2818 | {
|
---|
2819 | FILE *f = fopen ("conftest.out", "w");
|
---|
2820 | return ferror (f) || fclose (f) != 0;
|
---|
2821 |
|
---|
2822 | ;
|
---|
2823 | return 0;
|
---|
2824 | }
|
---|
2825 | _ACEOF
|
---|
2826 | ac_clean_files="$ac_clean_files conftest.out"
|
---|
2827 | # Check that the compiler produces executables we can run. If not, either
|
---|
2828 | # the compiler is broken, or we cross compile.
|
---|
2829 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
|
---|
2830 | $as_echo_n "checking whether we are cross compiling... " >&6; }
|
---|
2831 | if test "$cross_compiling" != yes; then
|
---|
2832 | { { ac_try="$ac_link"
|
---|
2833 | case "(($ac_try" in
|
---|
2834 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2835 | *) ac_try_echo=$ac_try;;
|
---|
2836 | esac
|
---|
2837 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
2838 | $as_echo "$ac_try_echo"; } >&5
|
---|
2839 | (eval "$ac_link") 2>&5
|
---|
2840 | ac_status=$?
|
---|
2841 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
2842 | test $ac_status = 0; }
|
---|
2843 | if { ac_try='./conftest$ac_cv_exeext'
|
---|
2844 | { { case "(($ac_try" in
|
---|
2845 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2846 | *) ac_try_echo=$ac_try;;
|
---|
2847 | esac
|
---|
2848 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
2849 | $as_echo "$ac_try_echo"; } >&5
|
---|
2850 | (eval "$ac_try") 2>&5
|
---|
2851 | ac_status=$?
|
---|
2852 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
2853 | test $ac_status = 0; }; }; then
|
---|
2854 | cross_compiling=no
|
---|
2855 | else
|
---|
2856 | if test "$cross_compiling" = maybe; then
|
---|
2857 | cross_compiling=yes
|
---|
2858 | else
|
---|
2859 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
2860 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
2861 | as_fn_error $? "cannot run C compiled programs.
|
---|
2862 | If you meant to cross compile, use \`--host'.
|
---|
2863 | See \`config.log' for more details" "$LINENO" 5 ; }
|
---|
2864 | fi
|
---|
2865 | fi
|
---|
2866 | fi
|
---|
2867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
|
---|
2868 | $as_echo "$cross_compiling" >&6; }
|
---|
2869 |
|
---|
2870 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
|
---|
2871 | ac_clean_files=$ac_clean_files_save
|
---|
2872 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
|
---|
2873 | $as_echo_n "checking for suffix of object files... " >&6; }
|
---|
2874 | if test "${ac_cv_objext+set}" = set; then :
|
---|
2875 | $as_echo_n "(cached) " >&6
|
---|
2876 | else
|
---|
2877 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
2878 | /* end confdefs.h. */
|
---|
2879 |
|
---|
2880 | int
|
---|
2881 | main ()
|
---|
2882 | {
|
---|
2883 |
|
---|
2884 | ;
|
---|
2885 | return 0;
|
---|
2886 | }
|
---|
2887 | _ACEOF
|
---|
2888 | rm -f conftest.o conftest.obj
|
---|
2889 | if { { ac_try="$ac_compile"
|
---|
2890 | case "(($ac_try" in
|
---|
2891 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2892 | *) ac_try_echo=$ac_try;;
|
---|
2893 | esac
|
---|
2894 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
2895 | $as_echo "$ac_try_echo"; } >&5
|
---|
2896 | (eval "$ac_compile") 2>&5
|
---|
2897 | ac_status=$?
|
---|
2898 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
2899 | test $ac_status = 0; }; then :
|
---|
2900 | for ac_file in conftest.o conftest.obj conftest.*; do
|
---|
2901 | test -f "$ac_file" || continue;
|
---|
2902 | case $ac_file in
|
---|
2903 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
|
---|
2904 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
|
---|
2905 | break;;
|
---|
2906 | esac
|
---|
2907 | done
|
---|
2908 | else
|
---|
2909 | $as_echo "$as_me: failed program was:" >&5
|
---|
2910 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2911 |
|
---|
2912 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
2913 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
2914 | as_fn_error $? "cannot compute suffix of object files: cannot compile
|
---|
2915 | See \`config.log' for more details" "$LINENO" 5 ; }
|
---|
2916 | fi
|
---|
2917 | rm -f conftest.$ac_cv_objext conftest.$ac_ext
|
---|
2918 | fi
|
---|
2919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
|
---|
2920 | $as_echo "$ac_cv_objext" >&6; }
|
---|
2921 | OBJEXT=$ac_cv_objext
|
---|
2922 | ac_objext=$OBJEXT
|
---|
2923 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
|
---|
2924 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
|
---|
2925 | if test "${ac_cv_c_compiler_gnu+set}" = set; then :
|
---|
2926 | $as_echo_n "(cached) " >&6
|
---|
2927 | else
|
---|
2928 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
2929 | /* end confdefs.h. */
|
---|
2930 |
|
---|
2931 | int
|
---|
2932 | main ()
|
---|
2933 | {
|
---|
2934 | #ifndef __GNUC__
|
---|
2935 | choke me
|
---|
2936 | #endif
|
---|
2937 |
|
---|
2938 | ;
|
---|
2939 | return 0;
|
---|
2940 | }
|
---|
2941 | _ACEOF
|
---|
2942 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
2943 | ac_compiler_gnu=yes
|
---|
2944 | else
|
---|
2945 | ac_compiler_gnu=no
|
---|
2946 | fi
|
---|
2947 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2948 | ac_cv_c_compiler_gnu=$ac_compiler_gnu
|
---|
2949 |
|
---|
2950 | fi
|
---|
2951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
|
---|
2952 | $as_echo "$ac_cv_c_compiler_gnu" >&6; }
|
---|
2953 | if test $ac_compiler_gnu = yes; then
|
---|
2954 | GCC=yes
|
---|
2955 | else
|
---|
2956 | GCC=
|
---|
2957 | fi
|
---|
2958 | ac_test_CFLAGS=${CFLAGS+set}
|
---|
2959 | ac_save_CFLAGS=$CFLAGS
|
---|
2960 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
|
---|
2961 | $as_echo_n "checking whether $CC accepts -g... " >&6; }
|
---|
2962 | if test "${ac_cv_prog_cc_g+set}" = set; then :
|
---|
2963 | $as_echo_n "(cached) " >&6
|
---|
2964 | else
|
---|
2965 | ac_save_c_werror_flag=$ac_c_werror_flag
|
---|
2966 | ac_c_werror_flag=yes
|
---|
2967 | ac_cv_prog_cc_g=no
|
---|
2968 | CFLAGS="-g"
|
---|
2969 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
2970 | /* end confdefs.h. */
|
---|
2971 |
|
---|
2972 | int
|
---|
2973 | main ()
|
---|
2974 | {
|
---|
2975 |
|
---|
2976 | ;
|
---|
2977 | return 0;
|
---|
2978 | }
|
---|
2979 | _ACEOF
|
---|
2980 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
2981 | ac_cv_prog_cc_g=yes
|
---|
2982 | else
|
---|
2983 | CFLAGS=""
|
---|
2984 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
2985 | /* end confdefs.h. */
|
---|
2986 |
|
---|
2987 | int
|
---|
2988 | main ()
|
---|
2989 | {
|
---|
2990 |
|
---|
2991 | ;
|
---|
2992 | return 0;
|
---|
2993 | }
|
---|
2994 | _ACEOF
|
---|
2995 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
2996 |
|
---|
2997 | else
|
---|
2998 | ac_c_werror_flag=$ac_save_c_werror_flag
|
---|
2999 | CFLAGS="-g"
|
---|
3000 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3001 | /* end confdefs.h. */
|
---|
3002 |
|
---|
3003 | int
|
---|
3004 | main ()
|
---|
3005 | {
|
---|
3006 |
|
---|
3007 | ;
|
---|
3008 | return 0;
|
---|
3009 | }
|
---|
3010 | _ACEOF
|
---|
3011 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
3012 | ac_cv_prog_cc_g=yes
|
---|
3013 | fi
|
---|
3014 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3015 | fi
|
---|
3016 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3017 | fi
|
---|
3018 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3019 | ac_c_werror_flag=$ac_save_c_werror_flag
|
---|
3020 | fi
|
---|
3021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
|
---|
3022 | $as_echo "$ac_cv_prog_cc_g" >&6; }
|
---|
3023 | if test "$ac_test_CFLAGS" = set; then
|
---|
3024 | CFLAGS=$ac_save_CFLAGS
|
---|
3025 | elif test $ac_cv_prog_cc_g = yes; then
|
---|
3026 | if test "$GCC" = yes; then
|
---|
3027 | CFLAGS="-g -O2"
|
---|
3028 | else
|
---|
3029 | CFLAGS="-g"
|
---|
3030 | fi
|
---|
3031 | else
|
---|
3032 | if test "$GCC" = yes; then
|
---|
3033 | CFLAGS="-O2"
|
---|
3034 | else
|
---|
3035 | CFLAGS=
|
---|
3036 | fi
|
---|
3037 | fi
|
---|
3038 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
|
---|
3039 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
|
---|
3040 | if test "${ac_cv_prog_cc_c89+set}" = set; then :
|
---|
3041 | $as_echo_n "(cached) " >&6
|
---|
3042 | else
|
---|
3043 | ac_cv_prog_cc_c89=no
|
---|
3044 | ac_save_CC=$CC
|
---|
3045 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3046 | /* end confdefs.h. */
|
---|
3047 | #include <stdarg.h>
|
---|
3048 | #include <stdio.h>
|
---|
3049 | #include <sys/types.h>
|
---|
3050 | #include <sys/stat.h>
|
---|
3051 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
---|
3052 | struct buf { int x; };
|
---|
3053 | FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
---|
3054 | static char *e (p, i)
|
---|
3055 | char **p;
|
---|
3056 | int i;
|
---|
3057 | {
|
---|
3058 | return p[i];
|
---|
3059 | }
|
---|
3060 | static char *f (char * (*g) (char **, int), char **p, ...)
|
---|
3061 | {
|
---|
3062 | char *s;
|
---|
3063 | va_list v;
|
---|
3064 | va_start (v,p);
|
---|
3065 | s = g (p, va_arg (v,int));
|
---|
3066 | va_end (v);
|
---|
3067 | return s;
|
---|
3068 | }
|
---|
3069 |
|
---|
3070 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
|
---|
3071 | function prototypes and stuff, but not '\xHH' hex character constants.
|
---|
3072 | These don't provoke an error unfortunately, instead are silently treated
|
---|
3073 | as 'x'. The following induces an error, until -std is added to get
|
---|
3074 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
|
---|
3075 | array size at least. It's necessary to write '\x00'==0 to get something
|
---|
3076 | that's true only with -std. */
|
---|
3077 | int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
---|
3078 |
|
---|
3079 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
|
---|
3080 | inside strings and character constants. */
|
---|
3081 | #define FOO(x) 'x'
|
---|
3082 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
|
---|
3083 |
|
---|
3084 | int test (int i, double x);
|
---|
3085 | struct s1 {int (*f) (int a);};
|
---|
3086 | struct s2 {int (*f) (double a);};
|
---|
3087 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
|
---|
3088 | int argc;
|
---|
3089 | char **argv;
|
---|
3090 | int
|
---|
3091 | main ()
|
---|
3092 | {
|
---|
3093 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
---|
3094 | ;
|
---|
3095 | return 0;
|
---|
3096 | }
|
---|
3097 | _ACEOF
|
---|
3098 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
|
---|
3099 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
---|
3100 | do
|
---|
3101 | CC="$ac_save_CC $ac_arg"
|
---|
3102 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
3103 | ac_cv_prog_cc_c89=$ac_arg
|
---|
3104 | fi
|
---|
3105 | rm -f core conftest.err conftest.$ac_objext
|
---|
3106 | test "x$ac_cv_prog_cc_c89" != "xno" && break
|
---|
3107 | done
|
---|
3108 | rm -f conftest.$ac_ext
|
---|
3109 | CC=$ac_save_CC
|
---|
3110 |
|
---|
3111 | fi
|
---|
3112 | # AC_CACHE_VAL
|
---|
3113 | case "x$ac_cv_prog_cc_c89" in
|
---|
3114 | x)
|
---|
3115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
|
---|
3116 | $as_echo "none needed" >&6; } ;;
|
---|
3117 | xno)
|
---|
3118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
|
---|
3119 | $as_echo "unsupported" >&6; } ;;
|
---|
3120 | *)
|
---|
3121 | CC="$CC $ac_cv_prog_cc_c89"
|
---|
3122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
|
---|
3123 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
|
---|
3124 | esac
|
---|
3125 | if test "x$ac_cv_prog_cc_c89" != xno; then :
|
---|
3126 |
|
---|
3127 | fi
|
---|
3128 |
|
---|
3129 | ac_ext=c
|
---|
3130 | ac_cpp='$CPP $CPPFLAGS'
|
---|
3131 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
3132 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
3133 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
3134 |
|
---|
3135 | if test "$GCC" = yes; then
|
---|
3136 | CFLAGS="$CFLAGS -Wall"
|
---|
3137 | fi
|
---|
3138 | ac_ext=cpp
|
---|
3139 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
3140 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
3141 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
3142 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
---|
3143 | if test -z "$CXX"; then
|
---|
3144 | if test -n "$CCC"; then
|
---|
3145 | CXX=$CCC
|
---|
3146 | else
|
---|
3147 | if test -n "$ac_tool_prefix"; then
|
---|
3148 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
|
---|
3149 | do
|
---|
3150 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
3151 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
3152 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3153 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
3154 | if test "${ac_cv_prog_CXX+set}" = set; then :
|
---|
3155 | $as_echo_n "(cached) " >&6
|
---|
3156 | else
|
---|
3157 | if test -n "$CXX"; then
|
---|
3158 | ac_cv_prog_CXX="$CXX" # Let the user override the test.
|
---|
3159 | else
|
---|
3160 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3161 | for as_dir in $PATH
|
---|
3162 | do
|
---|
3163 | IFS=$as_save_IFS
|
---|
3164 | test -z "$as_dir" && as_dir=.
|
---|
3165 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3166 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
3167 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
|
---|
3168 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3169 | break 2
|
---|
3170 | fi
|
---|
3171 | done
|
---|
3172 | done
|
---|
3173 | IFS=$as_save_IFS
|
---|
3174 |
|
---|
3175 | fi
|
---|
3176 | fi
|
---|
3177 | CXX=$ac_cv_prog_CXX
|
---|
3178 | if test -n "$CXX"; then
|
---|
3179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
|
---|
3180 | $as_echo "$CXX" >&6; }
|
---|
3181 | else
|
---|
3182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3183 | $as_echo "no" >&6; }
|
---|
3184 | fi
|
---|
3185 |
|
---|
3186 |
|
---|
3187 | test -n "$CXX" && break
|
---|
3188 | done
|
---|
3189 | fi
|
---|
3190 | if test -z "$CXX"; then
|
---|
3191 | ac_ct_CXX=$CXX
|
---|
3192 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
|
---|
3193 | do
|
---|
3194 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
3195 | set dummy $ac_prog; ac_word=$2
|
---|
3196 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3197 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
3198 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
|
---|
3199 | $as_echo_n "(cached) " >&6
|
---|
3200 | else
|
---|
3201 | if test -n "$ac_ct_CXX"; then
|
---|
3202 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
|
---|
3203 | else
|
---|
3204 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3205 | for as_dir in $PATH
|
---|
3206 | do
|
---|
3207 | IFS=$as_save_IFS
|
---|
3208 | test -z "$as_dir" && as_dir=.
|
---|
3209 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3210 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
3211 | ac_cv_prog_ac_ct_CXX="$ac_prog"
|
---|
3212 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3213 | break 2
|
---|
3214 | fi
|
---|
3215 | done
|
---|
3216 | done
|
---|
3217 | IFS=$as_save_IFS
|
---|
3218 |
|
---|
3219 | fi
|
---|
3220 | fi
|
---|
3221 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
|
---|
3222 | if test -n "$ac_ct_CXX"; then
|
---|
3223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
|
---|
3224 | $as_echo "$ac_ct_CXX" >&6; }
|
---|
3225 | else
|
---|
3226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3227 | $as_echo "no" >&6; }
|
---|
3228 | fi
|
---|
3229 |
|
---|
3230 |
|
---|
3231 | test -n "$ac_ct_CXX" && break
|
---|
3232 | done
|
---|
3233 |
|
---|
3234 | if test "x$ac_ct_CXX" = x; then
|
---|
3235 | CXX="g++"
|
---|
3236 | else
|
---|
3237 | case $cross_compiling:$ac_tool_warned in
|
---|
3238 | yes:)
|
---|
3239 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
3240 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
3241 | ac_tool_warned=yes ;;
|
---|
3242 | esac
|
---|
3243 | CXX=$ac_ct_CXX
|
---|
3244 | fi
|
---|
3245 | fi
|
---|
3246 |
|
---|
3247 | fi
|
---|
3248 | fi
|
---|
3249 | # Provide some information about the compiler.
|
---|
3250 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
|
---|
3251 | set X $ac_compile
|
---|
3252 | ac_compiler=$2
|
---|
3253 | for ac_option in --version -v -V -qversion; do
|
---|
3254 | { { ac_try="$ac_compiler $ac_option >&5"
|
---|
3255 | case "(($ac_try" in
|
---|
3256 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3257 | *) ac_try_echo=$ac_try;;
|
---|
3258 | esac
|
---|
3259 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
3260 | $as_echo "$ac_try_echo"; } >&5
|
---|
3261 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err
|
---|
3262 | ac_status=$?
|
---|
3263 | if test -s conftest.err; then
|
---|
3264 | sed '10a\
|
---|
3265 | ... rest of stderr output deleted ...
|
---|
3266 | 10q' conftest.err >conftest.er1
|
---|
3267 | cat conftest.er1 >&5
|
---|
3268 | fi
|
---|
3269 | rm -f conftest.er1 conftest.err
|
---|
3270 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
3271 | test $ac_status = 0; }
|
---|
3272 | done
|
---|
3273 |
|
---|
3274 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
|
---|
3275 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
|
---|
3276 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
|
---|
3277 | $as_echo_n "(cached) " >&6
|
---|
3278 | else
|
---|
3279 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3280 | /* end confdefs.h. */
|
---|
3281 |
|
---|
3282 | int
|
---|
3283 | main ()
|
---|
3284 | {
|
---|
3285 | #ifndef __GNUC__
|
---|
3286 | choke me
|
---|
3287 | #endif
|
---|
3288 |
|
---|
3289 | ;
|
---|
3290 | return 0;
|
---|
3291 | }
|
---|
3292 | _ACEOF
|
---|
3293 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
3294 | ac_compiler_gnu=yes
|
---|
3295 | else
|
---|
3296 | ac_compiler_gnu=no
|
---|
3297 | fi
|
---|
3298 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3299 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
|
---|
3300 |
|
---|
3301 | fi
|
---|
3302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
|
---|
3303 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
|
---|
3304 | if test $ac_compiler_gnu = yes; then
|
---|
3305 | GXX=yes
|
---|
3306 | else
|
---|
3307 | GXX=
|
---|
3308 | fi
|
---|
3309 | ac_test_CXXFLAGS=${CXXFLAGS+set}
|
---|
3310 | ac_save_CXXFLAGS=$CXXFLAGS
|
---|
3311 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
|
---|
3312 | $as_echo_n "checking whether $CXX accepts -g... " >&6; }
|
---|
3313 | if test "${ac_cv_prog_cxx_g+set}" = set; then :
|
---|
3314 | $as_echo_n "(cached) " >&6
|
---|
3315 | else
|
---|
3316 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag
|
---|
3317 | ac_cxx_werror_flag=yes
|
---|
3318 | ac_cv_prog_cxx_g=no
|
---|
3319 | CXXFLAGS="-g"
|
---|
3320 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3321 | /* end confdefs.h. */
|
---|
3322 |
|
---|
3323 | int
|
---|
3324 | main ()
|
---|
3325 | {
|
---|
3326 |
|
---|
3327 | ;
|
---|
3328 | return 0;
|
---|
3329 | }
|
---|
3330 | _ACEOF
|
---|
3331 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
3332 | ac_cv_prog_cxx_g=yes
|
---|
3333 | else
|
---|
3334 | CXXFLAGS=""
|
---|
3335 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3336 | /* end confdefs.h. */
|
---|
3337 |
|
---|
3338 | int
|
---|
3339 | main ()
|
---|
3340 | {
|
---|
3341 |
|
---|
3342 | ;
|
---|
3343 | return 0;
|
---|
3344 | }
|
---|
3345 | _ACEOF
|
---|
3346 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
3347 |
|
---|
3348 | else
|
---|
3349 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag
|
---|
3350 | CXXFLAGS="-g"
|
---|
3351 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3352 | /* end confdefs.h. */
|
---|
3353 |
|
---|
3354 | int
|
---|
3355 | main ()
|
---|
3356 | {
|
---|
3357 |
|
---|
3358 | ;
|
---|
3359 | return 0;
|
---|
3360 | }
|
---|
3361 | _ACEOF
|
---|
3362 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
3363 | ac_cv_prog_cxx_g=yes
|
---|
3364 | fi
|
---|
3365 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3366 | fi
|
---|
3367 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3368 | fi
|
---|
3369 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3370 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag
|
---|
3371 | fi
|
---|
3372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
|
---|
3373 | $as_echo "$ac_cv_prog_cxx_g" >&6; }
|
---|
3374 | if test "$ac_test_CXXFLAGS" = set; then
|
---|
3375 | CXXFLAGS=$ac_save_CXXFLAGS
|
---|
3376 | elif test $ac_cv_prog_cxx_g = yes; then
|
---|
3377 | if test "$GXX" = yes; then
|
---|
3378 | CXXFLAGS="-g -O2"
|
---|
3379 | else
|
---|
3380 | CXXFLAGS="-g"
|
---|
3381 | fi
|
---|
3382 | else
|
---|
3383 | if test "$GXX" = yes; then
|
---|
3384 | CXXFLAGS="-O2"
|
---|
3385 | else
|
---|
3386 | CXXFLAGS=
|
---|
3387 | fi
|
---|
3388 | fi
|
---|
3389 | ac_ext=c
|
---|
3390 | ac_cpp='$CPP $CPPFLAGS'
|
---|
3391 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
3392 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
3393 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
3394 |
|
---|
3395 |
|
---|
3396 | ac_aux_dir=
|
---|
3397 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
|
---|
3398 | if test -f "$ac_dir/install-sh"; then
|
---|
3399 | ac_aux_dir=$ac_dir
|
---|
3400 | ac_install_sh="$ac_aux_dir/install-sh -c"
|
---|
3401 | break
|
---|
3402 | elif test -f "$ac_dir/install.sh"; then
|
---|
3403 | ac_aux_dir=$ac_dir
|
---|
3404 | ac_install_sh="$ac_aux_dir/install.sh -c"
|
---|
3405 | break
|
---|
3406 | elif test -f "$ac_dir/shtool"; then
|
---|
3407 | ac_aux_dir=$ac_dir
|
---|
3408 | ac_install_sh="$ac_aux_dir/shtool install -c"
|
---|
3409 | break
|
---|
3410 | fi
|
---|
3411 | done
|
---|
3412 | if test -z "$ac_aux_dir"; then
|
---|
3413 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
|
---|
3414 | fi
|
---|
3415 |
|
---|
3416 | # These three variables are undocumented and unsupported,
|
---|
3417 | # and are intended to be withdrawn in a future Autoconf release.
|
---|
3418 | # They can cause serious problems if a builder's source tree is in a directory
|
---|
3419 | # whose full name contains unusual characters.
|
---|
3420 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
|
---|
3421 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
|
---|
3422 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
|
---|
3423 |
|
---|
3424 |
|
---|
3425 | # Find a good install program. We prefer a C program (faster),
|
---|
3426 | # so one script is as good as another. But avoid the broken or
|
---|
3427 | # incompatible versions:
|
---|
3428 | # SysV /etc/install, /usr/sbin/install
|
---|
3429 | # SunOS /usr/etc/install
|
---|
3430 | # IRIX /sbin/install
|
---|
3431 | # AIX /bin/install
|
---|
3432 | # AmigaOS /C/install, which installs bootblocks on floppy discs
|
---|
3433 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
---|
3434 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
---|
3435 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
---|
3436 | # OS/2's system install, which has a completely different semantic
|
---|
3437 | # ./install, which can be erroneously created by make from ./install.sh.
|
---|
3438 | # Reject install programs that cannot install multiple files.
|
---|
3439 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
|
---|
3440 | $as_echo_n "checking for a BSD-compatible install... " >&6; }
|
---|
3441 | if test -z "$INSTALL"; then
|
---|
3442 | if test "${ac_cv_path_install+set}" = set; then :
|
---|
3443 | $as_echo_n "(cached) " >&6
|
---|
3444 | else
|
---|
3445 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3446 | for as_dir in $PATH
|
---|
3447 | do
|
---|
3448 | IFS=$as_save_IFS
|
---|
3449 | test -z "$as_dir" && as_dir=.
|
---|
3450 | # Account for people who put trailing slashes in PATH elements.
|
---|
3451 | case $as_dir/ in #((
|
---|
3452 | ./ | .// | /[cC]/* | \
|
---|
3453 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
|
---|
3454 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
|
---|
3455 | /usr/ucb/* ) ;;
|
---|
3456 | *)
|
---|
3457 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
---|
3458 | # Don't use installbsd from OSF since it installs stuff as root
|
---|
3459 | # by default.
|
---|
3460 | for ac_prog in ginstall scoinst install; do
|
---|
3461 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3462 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
|
---|
3463 | if test $ac_prog = install &&
|
---|
3464 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
3465 | # AIX install. It has an incompatible calling convention.
|
---|
3466 | :
|
---|
3467 | elif test $ac_prog = install &&
|
---|
3468 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
3469 | # program-specific install script used by HP pwplus--don't use.
|
---|
3470 | :
|
---|
3471 | else
|
---|
3472 | rm -rf conftest.one conftest.two conftest.dir
|
---|
3473 | echo one > conftest.one
|
---|
3474 | echo two > conftest.two
|
---|
3475 | mkdir conftest.dir
|
---|
3476 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
|
---|
3477 | test -s conftest.one && test -s conftest.two &&
|
---|
3478 | test -s conftest.dir/conftest.one &&
|
---|
3479 | test -s conftest.dir/conftest.two
|
---|
3480 | then
|
---|
3481 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
|
---|
3482 | break 3
|
---|
3483 | fi
|
---|
3484 | fi
|
---|
3485 | fi
|
---|
3486 | done
|
---|
3487 | done
|
---|
3488 | ;;
|
---|
3489 | esac
|
---|
3490 |
|
---|
3491 | done
|
---|
3492 | IFS=$as_save_IFS
|
---|
3493 |
|
---|
3494 | rm -rf conftest.one conftest.two conftest.dir
|
---|
3495 |
|
---|
3496 | fi
|
---|
3497 | if test "${ac_cv_path_install+set}" = set; then
|
---|
3498 | INSTALL=$ac_cv_path_install
|
---|
3499 | else
|
---|
3500 | # As a last resort, use the slow shell script. Don't cache a
|
---|
3501 | # value for INSTALL within a source directory, because that will
|
---|
3502 | # break other packages using the cache if that directory is
|
---|
3503 | # removed, or if the value is a relative name.
|
---|
3504 | INSTALL=$ac_install_sh
|
---|
3505 | fi
|
---|
3506 | fi
|
---|
3507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
|
---|
3508 | $as_echo "$INSTALL" >&6; }
|
---|
3509 |
|
---|
3510 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
---|
3511 | # It thinks the first close brace ends the variable substitution.
|
---|
3512 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
---|
3513 |
|
---|
3514 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
|
---|
3515 |
|
---|
3516 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
---|
3517 |
|
---|
3518 | ac_ext=c
|
---|
3519 | ac_cpp='$CPP $CPPFLAGS'
|
---|
3520 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
3521 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
3522 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
3523 |
|
---|
3524 |
|
---|
3525 | ac_ext=c
|
---|
3526 | ac_cpp='$CPP $CPPFLAGS'
|
---|
3527 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
3528 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
3529 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
3530 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
|
---|
3531 | $as_echo_n "checking how to run the C preprocessor... " >&6; }
|
---|
3532 | # On Suns, sometimes $CPP names a directory.
|
---|
3533 | if test -n "$CPP" && test -d "$CPP"; then
|
---|
3534 | CPP=
|
---|
3535 | fi
|
---|
3536 | if test -z "$CPP"; then
|
---|
3537 | if test "${ac_cv_prog_CPP+set}" = set; then :
|
---|
3538 | $as_echo_n "(cached) " >&6
|
---|
3539 | else
|
---|
3540 | # Double quotes because CPP needs to be expanded
|
---|
3541 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
|
---|
3542 | do
|
---|
3543 | ac_preproc_ok=false
|
---|
3544 | for ac_c_preproc_warn_flag in '' yes
|
---|
3545 | do
|
---|
3546 | # Use a header file that comes with gcc, so configuring glibc
|
---|
3547 | # with a fresh cross-compiler works.
|
---|
3548 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
3549 | # <limits.h> exists even on freestanding compilers.
|
---|
3550 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
3551 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
3552 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3553 | /* end confdefs.h. */
|
---|
3554 | #ifdef __STDC__
|
---|
3555 | # include <limits.h>
|
---|
3556 | #else
|
---|
3557 | # include <assert.h>
|
---|
3558 | #endif
|
---|
3559 | Syntax error
|
---|
3560 | _ACEOF
|
---|
3561 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
3562 |
|
---|
3563 | else
|
---|
3564 | # Broken: fails on valid input.
|
---|
3565 | continue
|
---|
3566 | fi
|
---|
3567 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
3568 |
|
---|
3569 | # OK, works on sane cases. Now check whether nonexistent headers
|
---|
3570 | # can be detected and how.
|
---|
3571 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3572 | /* end confdefs.h. */
|
---|
3573 | #include <ac_nonexistent.h>
|
---|
3574 | _ACEOF
|
---|
3575 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
3576 | # Broken: success on invalid input.
|
---|
3577 | continue
|
---|
3578 | else
|
---|
3579 | # Passes both tests.
|
---|
3580 | ac_preproc_ok=:
|
---|
3581 | break
|
---|
3582 | fi
|
---|
3583 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
3584 |
|
---|
3585 | done
|
---|
3586 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
3587 | rm -f conftest.i conftest.err conftest.$ac_ext
|
---|
3588 | if $ac_preproc_ok; then :
|
---|
3589 | break
|
---|
3590 | fi
|
---|
3591 |
|
---|
3592 | done
|
---|
3593 | ac_cv_prog_CPP=$CPP
|
---|
3594 |
|
---|
3595 | fi
|
---|
3596 | CPP=$ac_cv_prog_CPP
|
---|
3597 | else
|
---|
3598 | ac_cv_prog_CPP=$CPP
|
---|
3599 | fi
|
---|
3600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
|
---|
3601 | $as_echo "$CPP" >&6; }
|
---|
3602 | ac_preproc_ok=false
|
---|
3603 | for ac_c_preproc_warn_flag in '' yes
|
---|
3604 | do
|
---|
3605 | # Use a header file that comes with gcc, so configuring glibc
|
---|
3606 | # with a fresh cross-compiler works.
|
---|
3607 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
3608 | # <limits.h> exists even on freestanding compilers.
|
---|
3609 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
3610 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
3611 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3612 | /* end confdefs.h. */
|
---|
3613 | #ifdef __STDC__
|
---|
3614 | # include <limits.h>
|
---|
3615 | #else
|
---|
3616 | # include <assert.h>
|
---|
3617 | #endif
|
---|
3618 | Syntax error
|
---|
3619 | _ACEOF
|
---|
3620 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
3621 |
|
---|
3622 | else
|
---|
3623 | # Broken: fails on valid input.
|
---|
3624 | continue
|
---|
3625 | fi
|
---|
3626 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
3627 |
|
---|
3628 | # OK, works on sane cases. Now check whether nonexistent headers
|
---|
3629 | # can be detected and how.
|
---|
3630 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3631 | /* end confdefs.h. */
|
---|
3632 | #include <ac_nonexistent.h>
|
---|
3633 | _ACEOF
|
---|
3634 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
3635 | # Broken: success on invalid input.
|
---|
3636 | continue
|
---|
3637 | else
|
---|
3638 | # Passes both tests.
|
---|
3639 | ac_preproc_ok=:
|
---|
3640 | break
|
---|
3641 | fi
|
---|
3642 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
3643 |
|
---|
3644 | done
|
---|
3645 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
3646 | rm -f conftest.i conftest.err conftest.$ac_ext
|
---|
3647 | if $ac_preproc_ok; then :
|
---|
3648 |
|
---|
3649 | else
|
---|
3650 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
3651 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
3652 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
|
---|
3653 | See \`config.log' for more details" "$LINENO" 5 ; }
|
---|
3654 | fi
|
---|
3655 |
|
---|
3656 | ac_ext=c
|
---|
3657 | ac_cpp='$CPP $CPPFLAGS'
|
---|
3658 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
3659 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
3660 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
3661 |
|
---|
3662 |
|
---|
3663 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
|
---|
3664 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
|
---|
3665 | if test "${ac_cv_path_GREP+set}" = set; then :
|
---|
3666 | $as_echo_n "(cached) " >&6
|
---|
3667 | else
|
---|
3668 | if test -z "$GREP"; then
|
---|
3669 | ac_path_GREP_found=false
|
---|
3670 | # Loop through the user's path and test for each of PROGNAME-LIST
|
---|
3671 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3672 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
---|
3673 | do
|
---|
3674 | IFS=$as_save_IFS
|
---|
3675 | test -z "$as_dir" && as_dir=.
|
---|
3676 | for ac_prog in grep ggrep; do
|
---|
3677 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3678 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
|
---|
3679 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
|
---|
3680 | # Check for GNU ac_path_GREP and select it if it is found.
|
---|
3681 | # Check for GNU $ac_path_GREP
|
---|
3682 | case `"$ac_path_GREP" --version 2>&1` in
|
---|
3683 | *GNU*)
|
---|
3684 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
|
---|
3685 | *)
|
---|
3686 | ac_count=0
|
---|
3687 | $as_echo_n 0123456789 >"conftest.in"
|
---|
3688 | while :
|
---|
3689 | do
|
---|
3690 | cat "conftest.in" "conftest.in" >"conftest.tmp"
|
---|
3691 | mv "conftest.tmp" "conftest.in"
|
---|
3692 | cp "conftest.in" "conftest.nl"
|
---|
3693 | $as_echo 'GREP' >> "conftest.nl"
|
---|
3694 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
---|
3695 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
---|
3696 | as_fn_arith $ac_count + 1 && ac_count=$as_val
|
---|
3697 | if test $ac_count -gt ${ac_path_GREP_max-0}; then
|
---|
3698 | # Best one so far, save it but keep looking for a better one
|
---|
3699 | ac_cv_path_GREP="$ac_path_GREP"
|
---|
3700 | ac_path_GREP_max=$ac_count
|
---|
3701 | fi
|
---|
3702 | # 10*(2^10) chars as input seems more than enough
|
---|
3703 | test $ac_count -gt 10 && break
|
---|
3704 | done
|
---|
3705 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
---|
3706 | esac
|
---|
3707 |
|
---|
3708 | $ac_path_GREP_found && break 3
|
---|
3709 | done
|
---|
3710 | done
|
---|
3711 | done
|
---|
3712 | IFS=$as_save_IFS
|
---|
3713 | if test -z "$ac_cv_path_GREP"; then
|
---|
3714 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
|
---|
3715 | fi
|
---|
3716 | else
|
---|
3717 | ac_cv_path_GREP=$GREP
|
---|
3718 | fi
|
---|
3719 |
|
---|
3720 | fi
|
---|
3721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
|
---|
3722 | $as_echo "$ac_cv_path_GREP" >&6; }
|
---|
3723 | GREP="$ac_cv_path_GREP"
|
---|
3724 |
|
---|
3725 |
|
---|
3726 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
|
---|
3727 | $as_echo_n "checking for egrep... " >&6; }
|
---|
3728 | if test "${ac_cv_path_EGREP+set}" = set; then :
|
---|
3729 | $as_echo_n "(cached) " >&6
|
---|
3730 | else
|
---|
3731 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
|
---|
3732 | then ac_cv_path_EGREP="$GREP -E"
|
---|
3733 | else
|
---|
3734 | if test -z "$EGREP"; then
|
---|
3735 | ac_path_EGREP_found=false
|
---|
3736 | # Loop through the user's path and test for each of PROGNAME-LIST
|
---|
3737 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3738 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
---|
3739 | do
|
---|
3740 | IFS=$as_save_IFS
|
---|
3741 | test -z "$as_dir" && as_dir=.
|
---|
3742 | for ac_prog in egrep; do
|
---|
3743 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3744 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
|
---|
3745 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
|
---|
3746 | # Check for GNU ac_path_EGREP and select it if it is found.
|
---|
3747 | # Check for GNU $ac_path_EGREP
|
---|
3748 | case `"$ac_path_EGREP" --version 2>&1` in
|
---|
3749 | *GNU*)
|
---|
3750 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
|
---|
3751 | *)
|
---|
3752 | ac_count=0
|
---|
3753 | $as_echo_n 0123456789 >"conftest.in"
|
---|
3754 | while :
|
---|
3755 | do
|
---|
3756 | cat "conftest.in" "conftest.in" >"conftest.tmp"
|
---|
3757 | mv "conftest.tmp" "conftest.in"
|
---|
3758 | cp "conftest.in" "conftest.nl"
|
---|
3759 | $as_echo 'EGREP' >> "conftest.nl"
|
---|
3760 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
---|
3761 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
---|
3762 | as_fn_arith $ac_count + 1 && ac_count=$as_val
|
---|
3763 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then
|
---|
3764 | # Best one so far, save it but keep looking for a better one
|
---|
3765 | ac_cv_path_EGREP="$ac_path_EGREP"
|
---|
3766 | ac_path_EGREP_max=$ac_count
|
---|
3767 | fi
|
---|
3768 | # 10*(2^10) chars as input seems more than enough
|
---|
3769 | test $ac_count -gt 10 && break
|
---|
3770 | done
|
---|
3771 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
---|
3772 | esac
|
---|
3773 |
|
---|
3774 | $ac_path_EGREP_found && break 3
|
---|
3775 | done
|
---|
3776 | done
|
---|
3777 | done
|
---|
3778 | IFS=$as_save_IFS
|
---|
3779 | if test -z "$ac_cv_path_EGREP"; then
|
---|
3780 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
|
---|
3781 | fi
|
---|
3782 | else
|
---|
3783 | ac_cv_path_EGREP=$EGREP
|
---|
3784 | fi
|
---|
3785 |
|
---|
3786 | fi
|
---|
3787 | fi
|
---|
3788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
|
---|
3789 | $as_echo "$ac_cv_path_EGREP" >&6; }
|
---|
3790 | EGREP="$ac_cv_path_EGREP"
|
---|
3791 |
|
---|
3792 |
|
---|
3793 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
|
---|
3794 | $as_echo_n "checking for ANSI C header files... " >&6; }
|
---|
3795 | if test "${ac_cv_header_stdc+set}" = set; then :
|
---|
3796 | $as_echo_n "(cached) " >&6
|
---|
3797 | else
|
---|
3798 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3799 | /* end confdefs.h. */
|
---|
3800 | #include <stdlib.h>
|
---|
3801 | #include <stdarg.h>
|
---|
3802 | #include <string.h>
|
---|
3803 | #include <float.h>
|
---|
3804 |
|
---|
3805 | int
|
---|
3806 | main ()
|
---|
3807 | {
|
---|
3808 |
|
---|
3809 | ;
|
---|
3810 | return 0;
|
---|
3811 | }
|
---|
3812 | _ACEOF
|
---|
3813 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
3814 | ac_cv_header_stdc=yes
|
---|
3815 | else
|
---|
3816 | ac_cv_header_stdc=no
|
---|
3817 | fi
|
---|
3818 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3819 |
|
---|
3820 | if test $ac_cv_header_stdc = yes; then
|
---|
3821 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
3822 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3823 | /* end confdefs.h. */
|
---|
3824 | #include <string.h>
|
---|
3825 |
|
---|
3826 | _ACEOF
|
---|
3827 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
3828 | $EGREP "memchr" >/dev/null 2>&1; then :
|
---|
3829 |
|
---|
3830 | else
|
---|
3831 | ac_cv_header_stdc=no
|
---|
3832 | fi
|
---|
3833 | rm -f conftest*
|
---|
3834 |
|
---|
3835 | fi
|
---|
3836 |
|
---|
3837 | if test $ac_cv_header_stdc = yes; then
|
---|
3838 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
3839 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3840 | /* end confdefs.h. */
|
---|
3841 | #include <stdlib.h>
|
---|
3842 |
|
---|
3843 | _ACEOF
|
---|
3844 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
3845 | $EGREP "free" >/dev/null 2>&1; then :
|
---|
3846 |
|
---|
3847 | else
|
---|
3848 | ac_cv_header_stdc=no
|
---|
3849 | fi
|
---|
3850 | rm -f conftest*
|
---|
3851 |
|
---|
3852 | fi
|
---|
3853 |
|
---|
3854 | if test $ac_cv_header_stdc = yes; then
|
---|
3855 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
3856 | if test "$cross_compiling" = yes; then :
|
---|
3857 | :
|
---|
3858 | else
|
---|
3859 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3860 | /* end confdefs.h. */
|
---|
3861 | #include <ctype.h>
|
---|
3862 | #include <stdlib.h>
|
---|
3863 | #if ((' ' & 0x0FF) == 0x020)
|
---|
3864 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
3865 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
3866 | #else
|
---|
3867 | # define ISLOWER(c) \
|
---|
3868 | (('a' <= (c) && (c) <= 'i') \
|
---|
3869 | || ('j' <= (c) && (c) <= 'r') \
|
---|
3870 | || ('s' <= (c) && (c) <= 'z'))
|
---|
3871 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
3872 | #endif
|
---|
3873 |
|
---|
3874 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
3875 | int
|
---|
3876 | main ()
|
---|
3877 | {
|
---|
3878 | int i;
|
---|
3879 | for (i = 0; i < 256; i++)
|
---|
3880 | if (XOR (islower (i), ISLOWER (i))
|
---|
3881 | || toupper (i) != TOUPPER (i))
|
---|
3882 | return 2;
|
---|
3883 | return 0;
|
---|
3884 | }
|
---|
3885 | _ACEOF
|
---|
3886 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
3887 |
|
---|
3888 | else
|
---|
3889 | ac_cv_header_stdc=no
|
---|
3890 | fi
|
---|
3891 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
3892 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
3893 | fi
|
---|
3894 |
|
---|
3895 | fi
|
---|
3896 | fi
|
---|
3897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
|
---|
3898 | $as_echo "$ac_cv_header_stdc" >&6; }
|
---|
3899 | if test $ac_cv_header_stdc = yes; then
|
---|
3900 |
|
---|
3901 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h
|
---|
3902 |
|
---|
3903 | fi
|
---|
3904 |
|
---|
3905 | # On IRIX 5.3, sys/types and inttypes.h are conflicting.
|
---|
3906 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
|
---|
3907 | inttypes.h stdint.h unistd.h
|
---|
3908 | do :
|
---|
3909 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
3910 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
|
---|
3911 | "
|
---|
3912 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
|
---|
3913 | cat >>confdefs.h <<_ACEOF
|
---|
3914 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
3915 | _ACEOF
|
---|
3916 |
|
---|
3917 | fi
|
---|
3918 |
|
---|
3919 | done
|
---|
3920 |
|
---|
3921 |
|
---|
3922 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
|
---|
3923 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
|
---|
3924 | if test "${ac_cv_c_bigendian+set}" = set; then :
|
---|
3925 | $as_echo_n "(cached) " >&6
|
---|
3926 | else
|
---|
3927 | ac_cv_c_bigendian=unknown
|
---|
3928 | # See if we're dealing with a universal compiler.
|
---|
3929 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3930 | /* end confdefs.h. */
|
---|
3931 | #ifndef __APPLE_CC__
|
---|
3932 | not a universal capable compiler
|
---|
3933 | #endif
|
---|
3934 | typedef int dummy;
|
---|
3935 |
|
---|
3936 | _ACEOF
|
---|
3937 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
3938 |
|
---|
3939 | # Check for potential -arch flags. It is not universal unless
|
---|
3940 | # there are at least two -arch flags with different values.
|
---|
3941 | ac_arch=
|
---|
3942 | ac_prev=
|
---|
3943 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
|
---|
3944 | if test -n "$ac_prev"; then
|
---|
3945 | case $ac_word in
|
---|
3946 | i?86 | x86_64 | ppc | ppc64)
|
---|
3947 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
|
---|
3948 | ac_arch=$ac_word
|
---|
3949 | else
|
---|
3950 | ac_cv_c_bigendian=universal
|
---|
3951 | break
|
---|
3952 | fi
|
---|
3953 | ;;
|
---|
3954 | esac
|
---|
3955 | ac_prev=
|
---|
3956 | elif test "x$ac_word" = "x-arch"; then
|
---|
3957 | ac_prev=arch
|
---|
3958 | fi
|
---|
3959 | done
|
---|
3960 | fi
|
---|
3961 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3962 | if test $ac_cv_c_bigendian = unknown; then
|
---|
3963 | # See if sys/param.h defines the BYTE_ORDER macro.
|
---|
3964 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3965 | /* end confdefs.h. */
|
---|
3966 | #include <sys/types.h>
|
---|
3967 | #include <sys/param.h>
|
---|
3968 |
|
---|
3969 | int
|
---|
3970 | main ()
|
---|
3971 | {
|
---|
3972 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
|
---|
3973 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
|
---|
3974 | && LITTLE_ENDIAN)
|
---|
3975 | bogus endian macros
|
---|
3976 | #endif
|
---|
3977 |
|
---|
3978 | ;
|
---|
3979 | return 0;
|
---|
3980 | }
|
---|
3981 | _ACEOF
|
---|
3982 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
3983 | # It does; now see whether it defined to BIG_ENDIAN or not.
|
---|
3984 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3985 | /* end confdefs.h. */
|
---|
3986 | #include <sys/types.h>
|
---|
3987 | #include <sys/param.h>
|
---|
3988 |
|
---|
3989 | int
|
---|
3990 | main ()
|
---|
3991 | {
|
---|
3992 | #if BYTE_ORDER != BIG_ENDIAN
|
---|
3993 | not big endian
|
---|
3994 | #endif
|
---|
3995 |
|
---|
3996 | ;
|
---|
3997 | return 0;
|
---|
3998 | }
|
---|
3999 | _ACEOF
|
---|
4000 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
4001 | ac_cv_c_bigendian=yes
|
---|
4002 | else
|
---|
4003 | ac_cv_c_bigendian=no
|
---|
4004 | fi
|
---|
4005 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4006 | fi
|
---|
4007 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4008 | fi
|
---|
4009 | if test $ac_cv_c_bigendian = unknown; then
|
---|
4010 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
|
---|
4011 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4012 | /* end confdefs.h. */
|
---|
4013 | #include <limits.h>
|
---|
4014 |
|
---|
4015 | int
|
---|
4016 | main ()
|
---|
4017 | {
|
---|
4018 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
|
---|
4019 | bogus endian macros
|
---|
4020 | #endif
|
---|
4021 |
|
---|
4022 | ;
|
---|
4023 | return 0;
|
---|
4024 | }
|
---|
4025 | _ACEOF
|
---|
4026 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
4027 | # It does; now see whether it defined to _BIG_ENDIAN or not.
|
---|
4028 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4029 | /* end confdefs.h. */
|
---|
4030 | #include <limits.h>
|
---|
4031 |
|
---|
4032 | int
|
---|
4033 | main ()
|
---|
4034 | {
|
---|
4035 | #ifndef _BIG_ENDIAN
|
---|
4036 | not big endian
|
---|
4037 | #endif
|
---|
4038 |
|
---|
4039 | ;
|
---|
4040 | return 0;
|
---|
4041 | }
|
---|
4042 | _ACEOF
|
---|
4043 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
4044 | ac_cv_c_bigendian=yes
|
---|
4045 | else
|
---|
4046 | ac_cv_c_bigendian=no
|
---|
4047 | fi
|
---|
4048 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4049 | fi
|
---|
4050 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4051 | fi
|
---|
4052 | if test $ac_cv_c_bigendian = unknown; then
|
---|
4053 | # Compile a test program.
|
---|
4054 | if test "$cross_compiling" = yes; then :
|
---|
4055 | # Try to guess by grepping values from an object file.
|
---|
4056 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4057 | /* end confdefs.h. */
|
---|
4058 | short int ascii_mm[] =
|
---|
4059 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
|
---|
4060 | short int ascii_ii[] =
|
---|
4061 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
|
---|
4062 | int use_ascii (int i) {
|
---|
4063 | return ascii_mm[i] + ascii_ii[i];
|
---|
4064 | }
|
---|
4065 | short int ebcdic_ii[] =
|
---|
4066 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
|
---|
4067 | short int ebcdic_mm[] =
|
---|
4068 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
|
---|
4069 | int use_ebcdic (int i) {
|
---|
4070 | return ebcdic_mm[i] + ebcdic_ii[i];
|
---|
4071 | }
|
---|
4072 | extern int foo;
|
---|
4073 |
|
---|
4074 | int
|
---|
4075 | main ()
|
---|
4076 | {
|
---|
4077 | return use_ascii (foo) == use_ebcdic (foo);
|
---|
4078 | ;
|
---|
4079 | return 0;
|
---|
4080 | }
|
---|
4081 | _ACEOF
|
---|
4082 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
4083 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
|
---|
4084 | ac_cv_c_bigendian=yes
|
---|
4085 | fi
|
---|
4086 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
|
---|
4087 | if test "$ac_cv_c_bigendian" = unknown; then
|
---|
4088 | ac_cv_c_bigendian=no
|
---|
4089 | else
|
---|
4090 | # finding both strings is unlikely to happen, but who knows?
|
---|
4091 | ac_cv_c_bigendian=unknown
|
---|
4092 | fi
|
---|
4093 | fi
|
---|
4094 | fi
|
---|
4095 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4096 | else
|
---|
4097 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4098 | /* end confdefs.h. */
|
---|
4099 | $ac_includes_default
|
---|
4100 | int
|
---|
4101 | main ()
|
---|
4102 | {
|
---|
4103 |
|
---|
4104 | /* Are we little or big endian? From Harbison&Steele. */
|
---|
4105 | union
|
---|
4106 | {
|
---|
4107 | long int l;
|
---|
4108 | char c[sizeof (long int)];
|
---|
4109 | } u;
|
---|
4110 | u.l = 1;
|
---|
4111 | return u.c[sizeof (long int) - 1] == 1;
|
---|
4112 |
|
---|
4113 | ;
|
---|
4114 | return 0;
|
---|
4115 | }
|
---|
4116 | _ACEOF
|
---|
4117 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
4118 | ac_cv_c_bigendian=no
|
---|
4119 | else
|
---|
4120 | ac_cv_c_bigendian=yes
|
---|
4121 | fi
|
---|
4122 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
4123 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
4124 | fi
|
---|
4125 |
|
---|
4126 | fi
|
---|
4127 | fi
|
---|
4128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
|
---|
4129 | $as_echo "$ac_cv_c_bigendian" >&6; }
|
---|
4130 | case $ac_cv_c_bigendian in #(
|
---|
4131 | yes)
|
---|
4132 | $as_echo "#define B_ENDIAN 1" >>confdefs.h
|
---|
4133 | ;; #(
|
---|
4134 | no)
|
---|
4135 | $as_echo "#define L_ENDIAN 1" >>confdefs.h
|
---|
4136 | ;; #(
|
---|
4137 | universal)
|
---|
4138 |
|
---|
4139 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
|
---|
4140 |
|
---|
4141 | ;; #(
|
---|
4142 | *)
|
---|
4143 | as_fn_error $? "unknown endianness
|
---|
4144 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
|
---|
4145 | esac
|
---|
4146 |
|
---|
4147 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
|
---|
4148 | $as_echo_n "checking for X... " >&6; }
|
---|
4149 |
|
---|
4150 |
|
---|
4151 | # Check whether --with-x was given.
|
---|
4152 | if test "${with_x+set}" = set; then :
|
---|
4153 | withval=$with_x;
|
---|
4154 | fi
|
---|
4155 |
|
---|
4156 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
|
---|
4157 | if test "x$with_x" = xno; then
|
---|
4158 | # The user explicitly disabled X.
|
---|
4159 | have_x=disabled
|
---|
4160 | else
|
---|
4161 | case $x_includes,$x_libraries in #(
|
---|
4162 | *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 ;; #(
|
---|
4163 | *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
|
---|
4164 | $as_echo_n "(cached) " >&6
|
---|
4165 | else
|
---|
4166 | # One or both of the vars are not set, and there is no cached value.
|
---|
4167 | ac_x_includes=no ac_x_libraries=no
|
---|
4168 | rm -f -r conftest.dir
|
---|
4169 | if mkdir conftest.dir; then
|
---|
4170 | cd conftest.dir
|
---|
4171 | cat >Imakefile <<'_ACEOF'
|
---|
4172 | incroot:
|
---|
4173 | @echo incroot='${INCROOT}'
|
---|
4174 | usrlibdir:
|
---|
4175 | @echo usrlibdir='${USRLIBDIR}'
|
---|
4176 | libdir:
|
---|
4177 | @echo libdir='${LIBDIR}'
|
---|
4178 | _ACEOF
|
---|
4179 | if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
|
---|
4180 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
|
---|
4181 | for ac_var in incroot usrlibdir libdir; do
|
---|
4182 | eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
|
---|
4183 | done
|
---|
4184 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
|
---|
4185 | for ac_extension in a so sl dylib la dll; do
|
---|
4186 | if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
|
---|
4187 | test -f "$ac_im_libdir/libX11.$ac_extension"; then
|
---|
4188 | ac_im_usrlibdir=$ac_im_libdir; break
|
---|
4189 | fi
|
---|
4190 | done
|
---|
4191 | # Screen out bogus values from the imake configuration. They are
|
---|
4192 | # bogus both because they are the default anyway, and because
|
---|
4193 | # using them would break gcc on systems where it needs fixed includes.
|
---|
4194 | case $ac_im_incroot in
|
---|
4195 | /usr/include) ac_x_includes= ;;
|
---|
4196 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
|
---|
4197 | esac
|
---|
4198 | case $ac_im_usrlibdir in
|
---|
4199 | /usr/lib | /usr/lib64 | /lib | /lib64) ;;
|
---|
4200 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
|
---|
4201 | esac
|
---|
4202 | fi
|
---|
4203 | cd ..
|
---|
4204 | rm -f -r conftest.dir
|
---|
4205 | fi
|
---|
4206 |
|
---|
4207 | # Standard set of common directories for X headers.
|
---|
4208 | # Check X11 before X11Rn because it is often a symlink to the current release.
|
---|
4209 | ac_x_header_dirs='
|
---|
4210 | /usr/X11/include
|
---|
4211 | /usr/X11R7/include
|
---|
4212 | /usr/X11R6/include
|
---|
4213 | /usr/X11R5/include
|
---|
4214 | /usr/X11R4/include
|
---|
4215 |
|
---|
4216 | /usr/include/X11
|
---|
4217 | /usr/include/X11R7
|
---|
4218 | /usr/include/X11R6
|
---|
4219 | /usr/include/X11R5
|
---|
4220 | /usr/include/X11R4
|
---|
4221 |
|
---|
4222 | /usr/local/X11/include
|
---|
4223 | /usr/local/X11R7/include
|
---|
4224 | /usr/local/X11R6/include
|
---|
4225 | /usr/local/X11R5/include
|
---|
4226 | /usr/local/X11R4/include
|
---|
4227 |
|
---|
4228 | /usr/local/include/X11
|
---|
4229 | /usr/local/include/X11R7
|
---|
4230 | /usr/local/include/X11R6
|
---|
4231 | /usr/local/include/X11R5
|
---|
4232 | /usr/local/include/X11R4
|
---|
4233 |
|
---|
4234 | /usr/X386/include
|
---|
4235 | /usr/x386/include
|
---|
4236 | /usr/XFree86/include/X11
|
---|
4237 |
|
---|
4238 | /usr/include
|
---|
4239 | /usr/local/include
|
---|
4240 | /usr/unsupported/include
|
---|
4241 | /usr/athena/include
|
---|
4242 | /usr/local/x11r5/include
|
---|
4243 | /usr/lpp/Xamples/include
|
---|
4244 |
|
---|
4245 | /usr/openwin/include
|
---|
4246 | /usr/openwin/share/include'
|
---|
4247 |
|
---|
4248 | if test "$ac_x_includes" = no; then
|
---|
4249 | # Guess where to find include files, by looking for Xlib.h.
|
---|
4250 | # First, try using that file with no special directory specified.
|
---|
4251 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4252 | /* end confdefs.h. */
|
---|
4253 | #include <X11/Xlib.h>
|
---|
4254 | _ACEOF
|
---|
4255 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
4256 | # We can compile using X headers with no special include directory.
|
---|
4257 | ac_x_includes=
|
---|
4258 | else
|
---|
4259 | for ac_dir in $ac_x_header_dirs; do
|
---|
4260 | if test -r "$ac_dir/X11/Xlib.h"; then
|
---|
4261 | ac_x_includes=$ac_dir
|
---|
4262 | break
|
---|
4263 | fi
|
---|
4264 | done
|
---|
4265 | fi
|
---|
4266 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
4267 | fi # $ac_x_includes = no
|
---|
4268 |
|
---|
4269 | if test "$ac_x_libraries" = no; then
|
---|
4270 | # Check for the libraries.
|
---|
4271 | # See if we find them without any special options.
|
---|
4272 | # Don't add to $LIBS permanently.
|
---|
4273 | ac_save_LIBS=$LIBS
|
---|
4274 | LIBS="-lX11 $LIBS"
|
---|
4275 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4276 | /* end confdefs.h. */
|
---|
4277 | #include <X11/Xlib.h>
|
---|
4278 | int
|
---|
4279 | main ()
|
---|
4280 | {
|
---|
4281 | XrmInitialize ()
|
---|
4282 | ;
|
---|
4283 | return 0;
|
---|
4284 | }
|
---|
4285 | _ACEOF
|
---|
4286 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
4287 | LIBS=$ac_save_LIBS
|
---|
4288 | # We can link X programs with no special library path.
|
---|
4289 | ac_x_libraries=
|
---|
4290 | else
|
---|
4291 | LIBS=$ac_save_LIBS
|
---|
4292 | for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
|
---|
4293 | do
|
---|
4294 | # Don't even attempt the hair of trying to link an X program!
|
---|
4295 | for ac_extension in a so sl dylib la dll; do
|
---|
4296 | if test -r "$ac_dir/libX11.$ac_extension"; then
|
---|
4297 | ac_x_libraries=$ac_dir
|
---|
4298 | break 2
|
---|
4299 | fi
|
---|
4300 | done
|
---|
4301 | done
|
---|
4302 | fi
|
---|
4303 | rm -f core conftest.err conftest.$ac_objext \
|
---|
4304 | conftest$ac_exeext conftest.$ac_ext
|
---|
4305 | fi # $ac_x_libraries = no
|
---|
4306 |
|
---|
4307 | case $ac_x_includes,$ac_x_libraries in #(
|
---|
4308 | no,* | *,no | *\'*)
|
---|
4309 | # Didn't find X, or a directory has "'" in its name.
|
---|
4310 | ac_cv_have_x="have_x=no";; #(
|
---|
4311 | *)
|
---|
4312 | # Record where we found X for the cache.
|
---|
4313 | ac_cv_have_x="have_x=yes\
|
---|
4314 | ac_x_includes='$ac_x_includes'\
|
---|
4315 | ac_x_libraries='$ac_x_libraries'"
|
---|
4316 | esac
|
---|
4317 | fi
|
---|
4318 | ;; #(
|
---|
4319 | *) have_x=yes;;
|
---|
4320 | esac
|
---|
4321 | eval "$ac_cv_have_x"
|
---|
4322 | fi # $with_x != no
|
---|
4323 |
|
---|
4324 | if test "$have_x" != yes; then
|
---|
4325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
|
---|
4326 | $as_echo "$have_x" >&6; }
|
---|
4327 | no_x=yes
|
---|
4328 | else
|
---|
4329 | # If each of the values was on the command line, it overrides each guess.
|
---|
4330 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes
|
---|
4331 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
|
---|
4332 | # Update the cache value to reflect the command line values.
|
---|
4333 | ac_cv_have_x="have_x=yes\
|
---|
4334 | ac_x_includes='$x_includes'\
|
---|
4335 | ac_x_libraries='$x_libraries'"
|
---|
4336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
|
---|
4337 | $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
|
---|
4338 | fi
|
---|
4339 |
|
---|
4340 | if test "$no_x" = yes; then
|
---|
4341 | # Not all programs may use this symbol, but it does not hurt to define it.
|
---|
4342 |
|
---|
4343 | $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
|
---|
4344 |
|
---|
4345 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
|
---|
4346 | else
|
---|
4347 | if test -n "$x_includes"; then
|
---|
4348 | X_CFLAGS="$X_CFLAGS -I$x_includes"
|
---|
4349 | fi
|
---|
4350 |
|
---|
4351 | # It would also be nice to do this for all -L options, not just this one.
|
---|
4352 | if test -n "$x_libraries"; then
|
---|
4353 | X_LIBS="$X_LIBS -L$x_libraries"
|
---|
4354 | # For Solaris; some versions of Sun CC require a space after -R and
|
---|
4355 | # others require no space. Words are not sufficient . . . .
|
---|
4356 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
|
---|
4357 | $as_echo_n "checking whether -R must be followed by a space... " >&6; }
|
---|
4358 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
|
---|
4359 | ac_xsave_c_werror_flag=$ac_c_werror_flag
|
---|
4360 | ac_c_werror_flag=yes
|
---|
4361 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4362 | /* end confdefs.h. */
|
---|
4363 |
|
---|
4364 | int
|
---|
4365 | main ()
|
---|
4366 | {
|
---|
4367 |
|
---|
4368 | ;
|
---|
4369 | return 0;
|
---|
4370 | }
|
---|
4371 | _ACEOF
|
---|
4372 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
4373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
4374 | $as_echo "no" >&6; }
|
---|
4375 | X_LIBS="$X_LIBS -R$x_libraries"
|
---|
4376 | else
|
---|
4377 | LIBS="$ac_xsave_LIBS -R $x_libraries"
|
---|
4378 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4379 | /* end confdefs.h. */
|
---|
4380 |
|
---|
4381 | int
|
---|
4382 | main ()
|
---|
4383 | {
|
---|
4384 |
|
---|
4385 | ;
|
---|
4386 | return 0;
|
---|
4387 | }
|
---|
4388 | _ACEOF
|
---|
4389 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
4390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
4391 | $as_echo "yes" >&6; }
|
---|
4392 | X_LIBS="$X_LIBS -R $x_libraries"
|
---|
4393 | else
|
---|
4394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
|
---|
4395 | $as_echo "neither works" >&6; }
|
---|
4396 | fi
|
---|
4397 | rm -f core conftest.err conftest.$ac_objext \
|
---|
4398 | conftest$ac_exeext conftest.$ac_ext
|
---|
4399 | fi
|
---|
4400 | rm -f core conftest.err conftest.$ac_objext \
|
---|
4401 | conftest$ac_exeext conftest.$ac_ext
|
---|
4402 | ac_c_werror_flag=$ac_xsave_c_werror_flag
|
---|
4403 | LIBS=$ac_xsave_LIBS
|
---|
4404 | fi
|
---|
4405 |
|
---|
4406 | # Check for system-dependent libraries X programs must link with.
|
---|
4407 | # Do this before checking for the system-independent R6 libraries
|
---|
4408 | # (-lICE), since we may need -lsocket or whatever for X linking.
|
---|
4409 |
|
---|
4410 | if test "$ISC" = yes; then
|
---|
4411 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
|
---|
4412 | else
|
---|
4413 | # Martyn Johnson says this is needed for Ultrix, if the X
|
---|
4414 | # libraries were built with DECnet support. And Karl Berry says
|
---|
4415 | # the Alpha needs dnet_stub (dnet does not exist).
|
---|
4416 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
|
---|
4417 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4418 | /* end confdefs.h. */
|
---|
4419 |
|
---|
4420 | /* Override any GCC internal prototype to avoid an error.
|
---|
4421 | Use char because int might match the return type of a GCC
|
---|
4422 | builtin and then its argument prototype would still apply. */
|
---|
4423 | #ifdef __cplusplus
|
---|
4424 | extern "C"
|
---|
4425 | #endif
|
---|
4426 | char XOpenDisplay ();
|
---|
4427 | int
|
---|
4428 | main ()
|
---|
4429 | {
|
---|
4430 | return XOpenDisplay ();
|
---|
4431 | ;
|
---|
4432 | return 0;
|
---|
4433 | }
|
---|
4434 | _ACEOF
|
---|
4435 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
4436 |
|
---|
4437 | else
|
---|
4438 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
|
---|
4439 | $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
|
---|
4440 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
|
---|
4441 | $as_echo_n "(cached) " >&6
|
---|
4442 | else
|
---|
4443 | ac_check_lib_save_LIBS=$LIBS
|
---|
4444 | LIBS="-ldnet $LIBS"
|
---|
4445 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4446 | /* end confdefs.h. */
|
---|
4447 |
|
---|
4448 | /* Override any GCC internal prototype to avoid an error.
|
---|
4449 | Use char because int might match the return type of a GCC
|
---|
4450 | builtin and then its argument prototype would still apply. */
|
---|
4451 | #ifdef __cplusplus
|
---|
4452 | extern "C"
|
---|
4453 | #endif
|
---|
4454 | char dnet_ntoa ();
|
---|
4455 | int
|
---|
4456 | main ()
|
---|
4457 | {
|
---|
4458 | return dnet_ntoa ();
|
---|
4459 | ;
|
---|
4460 | return 0;
|
---|
4461 | }
|
---|
4462 | _ACEOF
|
---|
4463 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
4464 | ac_cv_lib_dnet_dnet_ntoa=yes
|
---|
4465 | else
|
---|
4466 | ac_cv_lib_dnet_dnet_ntoa=no
|
---|
4467 | fi
|
---|
4468 | rm -f core conftest.err conftest.$ac_objext \
|
---|
4469 | conftest$ac_exeext conftest.$ac_ext
|
---|
4470 | LIBS=$ac_check_lib_save_LIBS
|
---|
4471 | fi
|
---|
4472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
|
---|
4473 | $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
|
---|
4474 | if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
|
---|
4475 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
|
---|
4476 | fi
|
---|
4477 |
|
---|
4478 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then
|
---|
4479 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
|
---|
4480 | $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
|
---|
4481 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
|
---|
4482 | $as_echo_n "(cached) " >&6
|
---|
4483 | else
|
---|
4484 | ac_check_lib_save_LIBS=$LIBS
|
---|
4485 | LIBS="-ldnet_stub $LIBS"
|
---|
4486 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4487 | /* end confdefs.h. */
|
---|
4488 |
|
---|
4489 | /* Override any GCC internal prototype to avoid an error.
|
---|
4490 | Use char because int might match the return type of a GCC
|
---|
4491 | builtin and then its argument prototype would still apply. */
|
---|
4492 | #ifdef __cplusplus
|
---|
4493 | extern "C"
|
---|
4494 | #endif
|
---|
4495 | char dnet_ntoa ();
|
---|
4496 | int
|
---|
4497 | main ()
|
---|
4498 | {
|
---|
4499 | return dnet_ntoa ();
|
---|
4500 | ;
|
---|
4501 | return 0;
|
---|
4502 | }
|
---|
4503 | _ACEOF
|
---|
4504 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
4505 | ac_cv_lib_dnet_stub_dnet_ntoa=yes
|
---|
4506 | else
|
---|
4507 | ac_cv_lib_dnet_stub_dnet_ntoa=no
|
---|
4508 | fi
|
---|
4509 | rm -f core conftest.err conftest.$ac_objext \
|
---|
4510 | conftest$ac_exeext conftest.$ac_ext
|
---|
4511 | LIBS=$ac_check_lib_save_LIBS
|
---|
4512 | fi
|
---|
4513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
|
---|
4514 | $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
|
---|
4515 | if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
|
---|
4516 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
|
---|
4517 | fi
|
---|
4518 |
|
---|
4519 | fi
|
---|
4520 | fi
|
---|
4521 | rm -f core conftest.err conftest.$ac_objext \
|
---|
4522 | conftest$ac_exeext conftest.$ac_ext
|
---|
4523 | LIBS="$ac_xsave_LIBS"
|
---|
4524 |
|
---|
4525 | # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
|
---|
4526 | # to get the SysV transport functions.
|
---|
4527 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
|
---|
4528 | # needs -lnsl.
|
---|
4529 | # The nsl library prevents programs from opening the X display
|
---|
4530 | # on Irix 5.2, according to T.E. Dickey.
|
---|
4531 | # The functions gethostbyname, getservbyname, and inet_addr are
|
---|
4532 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
|
---|
4533 | ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
|
---|
4534 | if test "x$ac_cv_func_gethostbyname" = x""yes; then :
|
---|
4535 |
|
---|
4536 | fi
|
---|
4537 |
|
---|
4538 | if test $ac_cv_func_gethostbyname = no; then
|
---|
4539 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
|
---|
4540 | $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
|
---|
4541 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
|
---|
4542 | $as_echo_n "(cached) " >&6
|
---|
4543 | else
|
---|
4544 | ac_check_lib_save_LIBS=$LIBS
|
---|
4545 | LIBS="-lnsl $LIBS"
|
---|
4546 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4547 | /* end confdefs.h. */
|
---|
4548 |
|
---|
4549 | /* Override any GCC internal prototype to avoid an error.
|
---|
4550 | Use char because int might match the return type of a GCC
|
---|
4551 | builtin and then its argument prototype would still apply. */
|
---|
4552 | #ifdef __cplusplus
|
---|
4553 | extern "C"
|
---|
4554 | #endif
|
---|
4555 | char gethostbyname ();
|
---|
4556 | int
|
---|
4557 | main ()
|
---|
4558 | {
|
---|
4559 | return gethostbyname ();
|
---|
4560 | ;
|
---|
4561 | return 0;
|
---|
4562 | }
|
---|
4563 | _ACEOF
|
---|
4564 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
4565 | ac_cv_lib_nsl_gethostbyname=yes
|
---|
4566 | else
|
---|
4567 | ac_cv_lib_nsl_gethostbyname=no
|
---|
4568 | fi
|
---|
4569 | rm -f core conftest.err conftest.$ac_objext \
|
---|
4570 | conftest$ac_exeext conftest.$ac_ext
|
---|
4571 | LIBS=$ac_check_lib_save_LIBS
|
---|
4572 | fi
|
---|
4573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
|
---|
4574 | $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
|
---|
4575 | if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
|
---|
4576 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
|
---|
4577 | fi
|
---|
4578 |
|
---|
4579 | if test $ac_cv_lib_nsl_gethostbyname = no; then
|
---|
4580 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
|
---|
4581 | $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
|
---|
4582 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
|
---|
4583 | $as_echo_n "(cached) " >&6
|
---|
4584 | else
|
---|
4585 | ac_check_lib_save_LIBS=$LIBS
|
---|
4586 | LIBS="-lbsd $LIBS"
|
---|
4587 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4588 | /* end confdefs.h. */
|
---|
4589 |
|
---|
4590 | /* Override any GCC internal prototype to avoid an error.
|
---|
4591 | Use char because int might match the return type of a GCC
|
---|
4592 | builtin and then its argument prototype would still apply. */
|
---|
4593 | #ifdef __cplusplus
|
---|
4594 | extern "C"
|
---|
4595 | #endif
|
---|
4596 | char gethostbyname ();
|
---|
4597 | int
|
---|
4598 | main ()
|
---|
4599 | {
|
---|
4600 | return gethostbyname ();
|
---|
4601 | ;
|
---|
4602 | return 0;
|
---|
4603 | }
|
---|
4604 | _ACEOF
|
---|
4605 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
4606 | ac_cv_lib_bsd_gethostbyname=yes
|
---|
4607 | else
|
---|
4608 | ac_cv_lib_bsd_gethostbyname=no
|
---|
4609 | fi
|
---|
4610 | rm -f core conftest.err conftest.$ac_objext \
|
---|
4611 | conftest$ac_exeext conftest.$ac_ext
|
---|
4612 | LIBS=$ac_check_lib_save_LIBS
|
---|
4613 | fi
|
---|
4614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
|
---|
4615 | $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
|
---|
4616 | if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
|
---|
4617 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
|
---|
4618 | fi
|
---|
4619 |
|
---|
4620 | fi
|
---|
4621 | fi
|
---|
4622 |
|
---|
4623 | # [email protected] says without -lsocket,
|
---|
4624 | # socket/setsockopt and other routines are undefined under SCO ODT
|
---|
4625 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
|
---|
4626 | # on later versions), says Simon Leinen: it contains gethostby*
|
---|
4627 | # variants that don't use the name server (or something). -lsocket
|
---|
4628 | # must be given before -lnsl if both are needed. We assume that
|
---|
4629 | # if connect needs -lnsl, so does gethostbyname.
|
---|
4630 | ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
|
---|
4631 | if test "x$ac_cv_func_connect" = x""yes; then :
|
---|
4632 |
|
---|
4633 | fi
|
---|
4634 |
|
---|
4635 | if test $ac_cv_func_connect = no; then
|
---|
4636 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
|
---|
4637 | $as_echo_n "checking for connect in -lsocket... " >&6; }
|
---|
4638 | if test "${ac_cv_lib_socket_connect+set}" = set; then :
|
---|
4639 | $as_echo_n "(cached) " >&6
|
---|
4640 | else
|
---|
4641 | ac_check_lib_save_LIBS=$LIBS
|
---|
4642 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
|
---|
4643 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4644 | /* end confdefs.h. */
|
---|
4645 |
|
---|
4646 | /* Override any GCC internal prototype to avoid an error.
|
---|
4647 | Use char because int might match the return type of a GCC
|
---|
4648 | builtin and then its argument prototype would still apply. */
|
---|
4649 | #ifdef __cplusplus
|
---|
4650 | extern "C"
|
---|
4651 | #endif
|
---|
4652 | char connect ();
|
---|
4653 | int
|
---|
4654 | main ()
|
---|
4655 | {
|
---|
4656 | return connect ();
|
---|
4657 | ;
|
---|
4658 | return 0;
|
---|
4659 | }
|
---|
4660 | _ACEOF
|
---|
4661 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
4662 | ac_cv_lib_socket_connect=yes
|
---|
4663 | else
|
---|
4664 | ac_cv_lib_socket_connect=no
|
---|
4665 | fi
|
---|
4666 | rm -f core conftest.err conftest.$ac_objext \
|
---|
4667 | conftest$ac_exeext conftest.$ac_ext
|
---|
4668 | LIBS=$ac_check_lib_save_LIBS
|
---|
4669 | fi
|
---|
4670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
|
---|
4671 | $as_echo "$ac_cv_lib_socket_connect" >&6; }
|
---|
4672 | if test "x$ac_cv_lib_socket_connect" = x""yes; then :
|
---|
4673 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
|
---|
4674 | fi
|
---|
4675 |
|
---|
4676 | fi
|
---|
4677 |
|
---|
4678 | # Guillermo Gomez says -lposix is necessary on A/UX.
|
---|
4679 | ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
|
---|
4680 | if test "x$ac_cv_func_remove" = x""yes; then :
|
---|
4681 |
|
---|
4682 | fi
|
---|
4683 |
|
---|
4684 | if test $ac_cv_func_remove = no; then
|
---|
4685 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
|
---|
4686 | $as_echo_n "checking for remove in -lposix... " >&6; }
|
---|
4687 | if test "${ac_cv_lib_posix_remove+set}" = set; then :
|
---|
4688 | $as_echo_n "(cached) " >&6
|
---|
4689 | else
|
---|
4690 | ac_check_lib_save_LIBS=$LIBS
|
---|
4691 | LIBS="-lposix $LIBS"
|
---|
4692 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4693 | /* end confdefs.h. */
|
---|
4694 |
|
---|
4695 | /* Override any GCC internal prototype to avoid an error.
|
---|
4696 | Use char because int might match the return type of a GCC
|
---|
4697 | builtin and then its argument prototype would still apply. */
|
---|
4698 | #ifdef __cplusplus
|
---|
4699 | extern "C"
|
---|
4700 | #endif
|
---|
4701 | char remove ();
|
---|
4702 | int
|
---|
4703 | main ()
|
---|
4704 | {
|
---|
4705 | return remove ();
|
---|
4706 | ;
|
---|
4707 | return 0;
|
---|
4708 | }
|
---|
4709 | _ACEOF
|
---|
4710 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
4711 | ac_cv_lib_posix_remove=yes
|
---|
4712 | else
|
---|
4713 | ac_cv_lib_posix_remove=no
|
---|
4714 | fi
|
---|
4715 | rm -f core conftest.err conftest.$ac_objext \
|
---|
4716 | conftest$ac_exeext conftest.$ac_ext
|
---|
4717 | LIBS=$ac_check_lib_save_LIBS
|
---|
4718 | fi
|
---|
4719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
|
---|
4720 | $as_echo "$ac_cv_lib_posix_remove" >&6; }
|
---|
4721 | if test "x$ac_cv_lib_posix_remove" = x""yes; then :
|
---|
4722 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
|
---|
4723 | fi
|
---|
4724 |
|
---|
4725 | fi
|
---|
4726 |
|
---|
4727 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
|
---|
4728 | ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
|
---|
4729 | if test "x$ac_cv_func_shmat" = x""yes; then :
|
---|
4730 |
|
---|
4731 | fi
|
---|
4732 |
|
---|
4733 | if test $ac_cv_func_shmat = no; then
|
---|
4734 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
|
---|
4735 | $as_echo_n "checking for shmat in -lipc... " >&6; }
|
---|
4736 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
|
---|
4737 | $as_echo_n "(cached) " >&6
|
---|
4738 | else
|
---|
4739 | ac_check_lib_save_LIBS=$LIBS
|
---|
4740 | LIBS="-lipc $LIBS"
|
---|
4741 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4742 | /* end confdefs.h. */
|
---|
4743 |
|
---|
4744 | /* Override any GCC internal prototype to avoid an error.
|
---|
4745 | Use char because int might match the return type of a GCC
|
---|
4746 | builtin and then its argument prototype would still apply. */
|
---|
4747 | #ifdef __cplusplus
|
---|
4748 | extern "C"
|
---|
4749 | #endif
|
---|
4750 | char shmat ();
|
---|
4751 | int
|
---|
4752 | main ()
|
---|
4753 | {
|
---|
4754 | return shmat ();
|
---|
4755 | ;
|
---|
4756 | return 0;
|
---|
4757 | }
|
---|
4758 | _ACEOF
|
---|
4759 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
4760 | ac_cv_lib_ipc_shmat=yes
|
---|
4761 | else
|
---|
4762 | ac_cv_lib_ipc_shmat=no
|
---|
4763 | fi
|
---|
4764 | rm -f core conftest.err conftest.$ac_objext \
|
---|
4765 | conftest$ac_exeext conftest.$ac_ext
|
---|
4766 | LIBS=$ac_check_lib_save_LIBS
|
---|
4767 | fi
|
---|
4768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
|
---|
4769 | $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
|
---|
4770 | if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
|
---|
4771 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
|
---|
4772 | fi
|
---|
4773 |
|
---|
4774 | fi
|
---|
4775 | fi
|
---|
4776 |
|
---|
4777 | # Check for libraries that X11R6 Xt/Xaw programs need.
|
---|
4778 | ac_save_LDFLAGS=$LDFLAGS
|
---|
4779 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
|
---|
4780 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
|
---|
4781 | # check for ICE first), but we must link in the order -lSM -lICE or
|
---|
4782 | # we get undefined symbols. So assume we have SM if we have ICE.
|
---|
4783 | # These have to be linked with before -lX11, unlike the other
|
---|
4784 | # libraries we check for below, so use a different variable.
|
---|
4785 | # John Interrante, Karl Berry
|
---|
4786 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
|
---|
4787 | $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
|
---|
4788 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
|
---|
4789 | $as_echo_n "(cached) " >&6
|
---|
4790 | else
|
---|
4791 | ac_check_lib_save_LIBS=$LIBS
|
---|
4792 | LIBS="-lICE $X_EXTRA_LIBS $LIBS"
|
---|
4793 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4794 | /* end confdefs.h. */
|
---|
4795 |
|
---|
4796 | /* Override any GCC internal prototype to avoid an error.
|
---|
4797 | Use char because int might match the return type of a GCC
|
---|
4798 | builtin and then its argument prototype would still apply. */
|
---|
4799 | #ifdef __cplusplus
|
---|
4800 | extern "C"
|
---|
4801 | #endif
|
---|
4802 | char IceConnectionNumber ();
|
---|
4803 | int
|
---|
4804 | main ()
|
---|
4805 | {
|
---|
4806 | return IceConnectionNumber ();
|
---|
4807 | ;
|
---|
4808 | return 0;
|
---|
4809 | }
|
---|
4810 | _ACEOF
|
---|
4811 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
4812 | ac_cv_lib_ICE_IceConnectionNumber=yes
|
---|
4813 | else
|
---|
4814 | ac_cv_lib_ICE_IceConnectionNumber=no
|
---|
4815 | fi
|
---|
4816 | rm -f core conftest.err conftest.$ac_objext \
|
---|
4817 | conftest$ac_exeext conftest.$ac_ext
|
---|
4818 | LIBS=$ac_check_lib_save_LIBS
|
---|
4819 | fi
|
---|
4820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
|
---|
4821 | $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
|
---|
4822 | if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
|
---|
4823 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
|
---|
4824 | fi
|
---|
4825 |
|
---|
4826 | LDFLAGS=$ac_save_LDFLAGS
|
---|
4827 |
|
---|
4828 | fi
|
---|
4829 |
|
---|
4830 | if test "$no_x" = "yes"; then
|
---|
4831 | echo
|
---|
4832 | echo "ERROR: Could not find X Window System headers/libraries."
|
---|
4833 | if test -f /etc/debian_version; then
|
---|
4834 | echo "Probably you need to install the libx11-dev package."
|
---|
4835 | elif test -f /etc/redhat-release; then
|
---|
4836 | echo "Probably you need to install the libX11-devel package."
|
---|
4837 | fi
|
---|
4838 | echo "To specify paths manually, use the options --x-includes and --x-libraries."
|
---|
4839 | echo
|
---|
4840 | exit 1
|
---|
4841 | fi
|
---|
4842 |
|
---|
4843 | # Extract the first word of "pkg-config", so it can be a program name with args.
|
---|
4844 | set dummy pkg-config; ac_word=$2
|
---|
4845 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
4846 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
4847 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
|
---|
4848 | $as_echo_n "(cached) " >&6
|
---|
4849 | else
|
---|
4850 | case $PKG_CONFIG in
|
---|
4851 | [\\/]* | ?:[\\/]*)
|
---|
4852 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
|
---|
4853 | ;;
|
---|
4854 | *)
|
---|
4855 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
4856 | for as_dir in $PATH
|
---|
4857 | do
|
---|
4858 | IFS=$as_save_IFS
|
---|
4859 | test -z "$as_dir" && as_dir=.
|
---|
4860 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4861 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
4862 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
|
---|
4863 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
4864 | break 2
|
---|
4865 | fi
|
---|
4866 | done
|
---|
4867 | done
|
---|
4868 | IFS=$as_save_IFS
|
---|
4869 |
|
---|
4870 | ;;
|
---|
4871 | esac
|
---|
4872 | fi
|
---|
4873 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG
|
---|
4874 | if test -n "$PKG_CONFIG"; then
|
---|
4875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
|
---|
4876 | $as_echo "$PKG_CONFIG" >&6; }
|
---|
4877 | else
|
---|
4878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
4879 | $as_echo "no" >&6; }
|
---|
4880 | fi
|
---|
4881 |
|
---|
4882 |
|
---|
4883 |
|
---|
4884 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
|
---|
4885 | $as_echo_n "checking for library containing socket... " >&6; }
|
---|
4886 | if test "${ac_cv_search_socket+set}" = set; then :
|
---|
4887 | $as_echo_n "(cached) " >&6
|
---|
4888 | else
|
---|
4889 | ac_func_search_save_LIBS=$LIBS
|
---|
4890 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4891 | /* end confdefs.h. */
|
---|
4892 |
|
---|
4893 | /* Override any GCC internal prototype to avoid an error.
|
---|
4894 | Use char because int might match the return type of a GCC
|
---|
4895 | builtin and then its argument prototype would still apply. */
|
---|
4896 | #ifdef __cplusplus
|
---|
4897 | extern "C"
|
---|
4898 | #endif
|
---|
4899 | char socket ();
|
---|
4900 | int
|
---|
4901 | main ()
|
---|
4902 | {
|
---|
4903 | return socket ();
|
---|
4904 | ;
|
---|
4905 | return 0;
|
---|
4906 | }
|
---|
4907 | _ACEOF
|
---|
4908 | for ac_lib in '' socket; do
|
---|
4909 | if test -z "$ac_lib"; then
|
---|
4910 | ac_res="none required"
|
---|
4911 | else
|
---|
4912 | ac_res=-l$ac_lib
|
---|
4913 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
4914 | fi
|
---|
4915 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
4916 | ac_cv_search_socket=$ac_res
|
---|
4917 | fi
|
---|
4918 | rm -f core conftest.err conftest.$ac_objext \
|
---|
4919 | conftest$ac_exeext
|
---|
4920 | if test "${ac_cv_search_socket+set}" = set; then :
|
---|
4921 | break
|
---|
4922 | fi
|
---|
4923 | done
|
---|
4924 | if test "${ac_cv_search_socket+set}" = set; then :
|
---|
4925 |
|
---|
4926 | else
|
---|
4927 | ac_cv_search_socket=no
|
---|
4928 | fi
|
---|
4929 | rm conftest.$ac_ext
|
---|
4930 | LIBS=$ac_func_search_save_LIBS
|
---|
4931 | fi
|
---|
4932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
|
---|
4933 | $as_echo "$ac_cv_search_socket" >&6; }
|
---|
4934 | ac_res=$ac_cv_search_socket
|
---|
4935 | if test "$ac_res" != no; then :
|
---|
4936 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
---|
4937 |
|
---|
4938 | fi
|
---|
4939 |
|
---|
4940 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
|
---|
4941 | $as_echo_n "checking for library containing inet_aton... " >&6; }
|
---|
4942 | if test "${ac_cv_search_inet_aton+set}" = set; then :
|
---|
4943 | $as_echo_n "(cached) " >&6
|
---|
4944 | else
|
---|
4945 | ac_func_search_save_LIBS=$LIBS
|
---|
4946 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4947 | /* end confdefs.h. */
|
---|
4948 |
|
---|
4949 | /* Override any GCC internal prototype to avoid an error.
|
---|
4950 | Use char because int might match the return type of a GCC
|
---|
4951 | builtin and then its argument prototype would still apply. */
|
---|
4952 | #ifdef __cplusplus
|
---|
4953 | extern "C"
|
---|
4954 | #endif
|
---|
4955 | char inet_aton ();
|
---|
4956 | int
|
---|
4957 | main ()
|
---|
4958 | {
|
---|
4959 | return inet_aton ();
|
---|
4960 | ;
|
---|
4961 | return 0;
|
---|
4962 | }
|
---|
4963 | _ACEOF
|
---|
4964 | for ac_lib in '' resolv; do
|
---|
4965 | if test -z "$ac_lib"; then
|
---|
4966 | ac_res="none required"
|
---|
4967 | else
|
---|
4968 | ac_res=-l$ac_lib
|
---|
4969 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
4970 | fi
|
---|
4971 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
4972 | ac_cv_search_inet_aton=$ac_res
|
---|
4973 | fi
|
---|
4974 | rm -f core conftest.err conftest.$ac_objext \
|
---|
4975 | conftest$ac_exeext
|
---|
4976 | if test "${ac_cv_search_inet_aton+set}" = set; then :
|
---|
4977 | break
|
---|
4978 | fi
|
---|
4979 | done
|
---|
4980 | if test "${ac_cv_search_inet_aton+set}" = set; then :
|
---|
4981 |
|
---|
4982 | else
|
---|
4983 | ac_cv_search_inet_aton=no
|
---|
4984 | fi
|
---|
4985 | rm conftest.$ac_ext
|
---|
4986 | LIBS=$ac_func_search_save_LIBS
|
---|
4987 | fi
|
---|
4988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
|
---|
4989 | $as_echo "$ac_cv_search_inet_aton" >&6; }
|
---|
4990 | ac_res=$ac_cv_search_inet_aton
|
---|
4991 | if test "$ac_res" != no; then :
|
---|
4992 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
---|
4993 |
|
---|
4994 | fi
|
---|
4995 |
|
---|
4996 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
|
---|
4997 | $as_echo_n "checking for library containing clock_gettime... " >&6; }
|
---|
4998 | if test "${ac_cv_search_clock_gettime+set}" = set; then :
|
---|
4999 | $as_echo_n "(cached) " >&6
|
---|
5000 | else
|
---|
5001 | ac_func_search_save_LIBS=$LIBS
|
---|
5002 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5003 | /* end confdefs.h. */
|
---|
5004 |
|
---|
5005 | /* Override any GCC internal prototype to avoid an error.
|
---|
5006 | Use char because int might match the return type of a GCC
|
---|
5007 | builtin and then its argument prototype would still apply. */
|
---|
5008 | #ifdef __cplusplus
|
---|
5009 | extern "C"
|
---|
5010 | #endif
|
---|
5011 | char clock_gettime ();
|
---|
5012 | int
|
---|
5013 | main ()
|
---|
5014 | {
|
---|
5015 | return clock_gettime ();
|
---|
5016 | ;
|
---|
5017 | return 0;
|
---|
5018 | }
|
---|
5019 | _ACEOF
|
---|
5020 | for ac_lib in '' rt; do
|
---|
5021 | if test -z "$ac_lib"; then
|
---|
5022 | ac_res="none required"
|
---|
5023 | else
|
---|
5024 | ac_res=-l$ac_lib
|
---|
5025 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
5026 | fi
|
---|
5027 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
5028 | ac_cv_search_clock_gettime=$ac_res
|
---|
5029 | fi
|
---|
5030 | rm -f core conftest.err conftest.$ac_objext \
|
---|
5031 | conftest$ac_exeext
|
---|
5032 | if test "${ac_cv_search_clock_gettime+set}" = set; then :
|
---|
5033 | break
|
---|
5034 | fi
|
---|
5035 | done
|
---|
5036 | if test "${ac_cv_search_clock_gettime+set}" = set; then :
|
---|
5037 |
|
---|
5038 | else
|
---|
5039 | ac_cv_search_clock_gettime=no
|
---|
5040 | fi
|
---|
5041 | rm conftest.$ac_ext
|
---|
5042 | LIBS=$ac_func_search_save_LIBS
|
---|
5043 | fi
|
---|
5044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
|
---|
5045 | $as_echo "$ac_cv_search_clock_gettime" >&6; }
|
---|
5046 | ac_res=$ac_cv_search_clock_gettime
|
---|
5047 | if test "$ac_res" != no; then :
|
---|
5048 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
---|
5049 |
|
---|
5050 | fi
|
---|
5051 |
|
---|
5052 |
|
---|
5053 | ac_fn_c_check_header_mongrel "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
|
---|
5054 | if test "x$ac_cv_header_sys_select_h" = x""yes; then :
|
---|
5055 | $as_echo "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
|
---|
5056 |
|
---|
5057 | fi
|
---|
5058 |
|
---|
5059 |
|
---|
5060 | ac_fn_c_check_header_mongrel "$LINENO" "sys/modem.h" "ac_cv_header_sys_modem_h" "$ac_includes_default"
|
---|
5061 | if test "x$ac_cv_header_sys_modem_h" = x""yes; then :
|
---|
5062 | $as_echo "#define HAVE_SYS_MODEM_H 1" >>confdefs.h
|
---|
5063 |
|
---|
5064 | fi
|
---|
5065 |
|
---|
5066 |
|
---|
5067 | ac_fn_c_check_header_mongrel "$LINENO" "sys/filio.h" "ac_cv_header_sys_filio_h" "$ac_includes_default"
|
---|
5068 | if test "x$ac_cv_header_sys_filio_h" = x""yes; then :
|
---|
5069 | $as_echo "#define HAVE_SYS_FILIO_H 1" >>confdefs.h
|
---|
5070 |
|
---|
5071 | fi
|
---|
5072 |
|
---|
5073 |
|
---|
5074 | ac_fn_c_check_header_mongrel "$LINENO" "sys/strtio.h" "ac_cv_header_sys_strtio_h" "$ac_includes_default"
|
---|
5075 | if test "x$ac_cv_header_sys_strtio_h" = x""yes; then :
|
---|
5076 | $as_echo "#define HAVE_SYS_STRTIO_H 1" >>confdefs.h
|
---|
5077 |
|
---|
5078 | fi
|
---|
5079 |
|
---|
5080 |
|
---|
5081 | ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
|
---|
5082 | if test "x$ac_cv_header_locale_h" = x""yes; then :
|
---|
5083 | $as_echo "#define HAVE_LOCALE_H 1" >>confdefs.h
|
---|
5084 |
|
---|
5085 | fi
|
---|
5086 |
|
---|
5087 |
|
---|
5088 | ac_fn_c_check_header_mongrel "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
|
---|
5089 | if test "x$ac_cv_header_langinfo_h" = x""yes; then :
|
---|
5090 | $as_echo "#define HAVE_LANGINFO_H 1" >>confdefs.h
|
---|
5091 |
|
---|
5092 | fi
|
---|
5093 |
|
---|
5094 |
|
---|
5095 |
|
---|
5096 | if test -n "$ac_tool_prefix"; then
|
---|
5097 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
|
---|
5098 | set dummy ${ac_tool_prefix}strip; ac_word=$2
|
---|
5099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
5100 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
5101 | if test "${ac_cv_prog_STRIP+set}" = set; then :
|
---|
5102 | $as_echo_n "(cached) " >&6
|
---|
5103 | else
|
---|
5104 | if test -n "$STRIP"; then
|
---|
5105 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
---|
5106 | else
|
---|
5107 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
5108 | for as_dir in $PATH
|
---|
5109 | do
|
---|
5110 | IFS=$as_save_IFS
|
---|
5111 | test -z "$as_dir" && as_dir=.
|
---|
5112 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
5113 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
5114 | ac_cv_prog_STRIP="${ac_tool_prefix}strip"
|
---|
5115 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
5116 | break 2
|
---|
5117 | fi
|
---|
5118 | done
|
---|
5119 | done
|
---|
5120 | IFS=$as_save_IFS
|
---|
5121 |
|
---|
5122 | fi
|
---|
5123 | fi
|
---|
5124 | STRIP=$ac_cv_prog_STRIP
|
---|
5125 | if test -n "$STRIP"; then
|
---|
5126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
|
---|
5127 | $as_echo "$STRIP" >&6; }
|
---|
5128 | else
|
---|
5129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
5130 | $as_echo "no" >&6; }
|
---|
5131 | fi
|
---|
5132 |
|
---|
5133 |
|
---|
5134 | fi
|
---|
5135 | if test -z "$ac_cv_prog_STRIP"; then
|
---|
5136 | ac_ct_STRIP=$STRIP
|
---|
5137 | # Extract the first word of "strip", so it can be a program name with args.
|
---|
5138 | set dummy strip; ac_word=$2
|
---|
5139 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
5140 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
5141 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
|
---|
5142 | $as_echo_n "(cached) " >&6
|
---|
5143 | else
|
---|
5144 | if test -n "$ac_ct_STRIP"; then
|
---|
5145 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
|
---|
5146 | else
|
---|
5147 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
5148 | for as_dir in $PATH
|
---|
5149 | do
|
---|
5150 | IFS=$as_save_IFS
|
---|
5151 | test -z "$as_dir" && as_dir=.
|
---|
5152 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
5153 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
5154 | ac_cv_prog_ac_ct_STRIP="strip"
|
---|
5155 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
5156 | break 2
|
---|
5157 | fi
|
---|
5158 | done
|
---|
5159 | done
|
---|
5160 | IFS=$as_save_IFS
|
---|
5161 |
|
---|
5162 | fi
|
---|
5163 | fi
|
---|
5164 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
|
---|
5165 | if test -n "$ac_ct_STRIP"; then
|
---|
5166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
|
---|
5167 | $as_echo "$ac_ct_STRIP" >&6; }
|
---|
5168 | else
|
---|
5169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
5170 | $as_echo "no" >&6; }
|
---|
5171 | fi
|
---|
5172 |
|
---|
5173 | if test "x$ac_ct_STRIP" = x; then
|
---|
5174 | STRIP=":"
|
---|
5175 | else
|
---|
5176 | case $cross_compiling:$ac_tool_warned in
|
---|
5177 | yes:)
|
---|
5178 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
5179 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
5180 | ac_tool_warned=yes ;;
|
---|
5181 | esac
|
---|
5182 | STRIP=$ac_ct_STRIP
|
---|
5183 | fi
|
---|
5184 | else
|
---|
5185 | STRIP="$ac_cv_prog_STRIP"
|
---|
5186 | fi
|
---|
5187 |
|
---|
5188 |
|
---|
5189 |
|
---|
5190 |
|
---|
5191 |
|
---|
5192 |
|
---|
5193 |
|
---|
5194 | rpath=""
|
---|
5195 |
|
---|
5196 | #
|
---|
5197 | # OpenSSL detection borrowed from stunnel
|
---|
5198 | #
|
---|
5199 | checkssldir() { :
|
---|
5200 | if test -f "$1/include/openssl/ssl.h"; then
|
---|
5201 | ssldir="$1"
|
---|
5202 | return 0
|
---|
5203 | fi
|
---|
5204 | return 1
|
---|
5205 | }
|
---|
5206 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL directory" >&5
|
---|
5207 | $as_echo_n "checking for OpenSSL directory... " >&6; }
|
---|
5208 |
|
---|
5209 | # Check whether --with-openssl was given.
|
---|
5210 | if test "${with_openssl+set}" = set; then :
|
---|
5211 | withval=$with_openssl;
|
---|
5212 | checkssldir "$withval"
|
---|
5213 |
|
---|
5214 | else
|
---|
5215 |
|
---|
5216 | for maindir in /usr/local /usr/lib /usr/pkg /usr /var/ssl /opt; do
|
---|
5217 | for dir in $maindir $maindir/openssl $maindir/ssl; do
|
---|
5218 | checkssldir $dir && break 2
|
---|
5219 | done
|
---|
5220 | done
|
---|
5221 |
|
---|
5222 |
|
---|
5223 | fi
|
---|
5224 |
|
---|
5225 | if test -z "$ssldir"; then
|
---|
5226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
|
---|
5227 | $as_echo "Not found" >&6; }
|
---|
5228 | echo
|
---|
5229 | echo "ERROR: Could not find OpenSSL headers/libraries."
|
---|
5230 | if test -f /etc/debian_version; then
|
---|
5231 | echo "Probably you need to install the libssl-dev package."
|
---|
5232 | elif test -f /etc/redhat-release; then
|
---|
5233 | echo "Probably you need to install the openssl-devel package."
|
---|
5234 | fi
|
---|
5235 | echo "To specify a path manually, use the --with-openssl option."
|
---|
5236 | echo
|
---|
5237 | exit 1
|
---|
5238 | fi
|
---|
5239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssldir" >&5
|
---|
5240 | $as_echo "$ssldir" >&6; }
|
---|
5241 |
|
---|
5242 | cat >>confdefs.h <<_ACEOF
|
---|
5243 | #define ssldir "$ssldir"
|
---|
5244 | _ACEOF
|
---|
5245 |
|
---|
5246 |
|
---|
5247 | CFLAGS="$CFLAGS -I$ssldir/include"
|
---|
5248 | # Check whether --enable-static-openssl was given.
|
---|
5249 | if test "${enable_static_openssl+set}" = set; then :
|
---|
5250 | enableval=$enable_static_openssl;
|
---|
5251 | LIBS="$LIBS $ssldir/lib/libcrypto.a"
|
---|
5252 |
|
---|
5253 | else
|
---|
5254 |
|
---|
5255 | LIBS="$LIBS -L$ssldir/lib -lcrypto"
|
---|
5256 | rpath="$rpath:$ssldir/lib"
|
---|
5257 |
|
---|
5258 | fi
|
---|
5259 |
|
---|
5260 |
|
---|
5261 | # Check whether --enable-smartcard was given.
|
---|
5262 | if test "${enable_smartcard+set}" = set; then :
|
---|
5263 | enableval=$enable_smartcard;
|
---|
5264 | case "$OSTYPE" in
|
---|
5265 | darwin*)
|
---|
5266 | ac_fn_c_check_header_mongrel "$LINENO" "PCSC/pcsclite.h" "ac_cv_header_PCSC_pcsclite_h" "$ac_includes_default"
|
---|
5267 | if test "x$ac_cv_header_PCSC_pcsclite_h" = x""yes; then :
|
---|
5268 | WITH_SCARD=1
|
---|
5269 | else
|
---|
5270 | WITH_SCARD=0
|
---|
5271 | fi
|
---|
5272 |
|
---|
5273 |
|
---|
5274 | PCSCLITE_CFLAGS=""
|
---|
5275 | PCSCLITE_LIBS="-framework PCSC"
|
---|
5276 | ;;
|
---|
5277 | *)
|
---|
5278 | if test -n "$PKG_CONFIG"; then
|
---|
5279 |
|
---|
5280 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not available, cannot check for libpcsclite" >&5
|
---|
5281 | $as_echo "$as_me: WARNING: pkg-config not available, cannot check for libpcsclite" >&2;}
|
---|
5282 | WITH_SCARD=0
|
---|
5283 |
|
---|
5284 | fi
|
---|
5285 | ;;
|
---|
5286 | esac
|
---|
5287 |
|
---|
5288 | if test x"$WITH_SCARD" = "x1"; then
|
---|
5289 | SCARDOBJ="scard.o"
|
---|
5290 | CFLAGS="$CFLAGS $PCSCLITE_CFLAGS"
|
---|
5291 | LIBS="$LIBS $PCSCLITE_LIBS"
|
---|
5292 | $as_echo "#define WITH_SCARD 1" >>confdefs.h
|
---|
5293 |
|
---|
5294 | fi
|
---|
5295 |
|
---|
5296 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for old version of PCSC" >&5
|
---|
5297 | $as_echo_n "checking for old version of PCSC... " >&6; }
|
---|
5298 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5299 | /* end confdefs.h. */
|
---|
5300 |
|
---|
5301 | #include <stdlib.h>
|
---|
5302 | #ifdef __APPLE__
|
---|
5303 | #include <PCSC/wintypes.h>
|
---|
5304 | #include <PCSC/winscard.h>
|
---|
5305 | #else
|
---|
5306 | #include <winscard.h>
|
---|
5307 | #endif
|
---|
5308 |
|
---|
5309 | int
|
---|
5310 | main ()
|
---|
5311 | {
|
---|
5312 | SCardControl(NULL, NULL, 0, NULL, NULL);
|
---|
5313 | ;
|
---|
5314 | return 0;
|
---|
5315 | }
|
---|
5316 | _ACEOF
|
---|
5317 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
5318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
5319 | $as_echo "yes" >&6; }
|
---|
5320 | $as_echo "#define WITH_PCSC120 1" >>confdefs.h
|
---|
5321 |
|
---|
5322 | else
|
---|
5323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
5324 | $as_echo "no" >&6; }
|
---|
5325 |
|
---|
5326 | fi
|
---|
5327 | rm -f core conftest.err conftest.$ac_objext \
|
---|
5328 | conftest$ac_exeext conftest.$ac_ext
|
---|
5329 |
|
---|
5330 | fi
|
---|
5331 |
|
---|
5332 |
|
---|
5333 |
|
---|
5334 |
|
---|
5335 | #
|
---|
5336 | # Alignment
|
---|
5337 | #
|
---|
5338 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if architecture needs alignment" >&5
|
---|
5339 | $as_echo_n "checking if architecture needs alignment... " >&6; }
|
---|
5340 | if test "$cross_compiling" = yes; then :
|
---|
5341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming yes" >&5
|
---|
5342 | $as_echo "assuming yes" >&6; }
|
---|
5343 | $as_echo "#define NEED_ALIGN 1" >>confdefs.h
|
---|
5344 |
|
---|
5345 | else
|
---|
5346 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5347 | /* end confdefs.h. */
|
---|
5348 |
|
---|
5349 | #include <stdlib.h>
|
---|
5350 | #include <signal.h>
|
---|
5351 | int main(int argc, char **argv)
|
---|
5352 | {
|
---|
5353 | unsigned char test[8] = { 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x88 };
|
---|
5354 | signal(SIGBUS, exit);
|
---|
5355 | signal(SIGABRT, exit);
|
---|
5356 | signal(SIGSEGV, exit);
|
---|
5357 | if (*((unsigned int *)(test + 1)) != 0x55443322 && *((unsigned int *)(test + 1)) != 0x22334455) {
|
---|
5358 | return 1;
|
---|
5359 | }
|
---|
5360 | return 0;
|
---|
5361 | }
|
---|
5362 | _ACEOF
|
---|
5363 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
5364 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
5365 | $as_echo "no" >&6; }
|
---|
5366 | else
|
---|
5367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
5368 | $as_echo "yes" >&6; }
|
---|
5369 | $as_echo "#define NEED_ALIGN 1" >>confdefs.h
|
---|
5370 |
|
---|
5371 | fi
|
---|
5372 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
5373 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
5374 | fi
|
---|
5375 |
|
---|
5376 |
|
---|
5377 | #
|
---|
5378 | # linux/compiler.h
|
---|
5379 | #
|
---|
5380 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linux/compiler.h is required" >&5
|
---|
5381 | $as_echo_n "checking if linux/compiler.h is required... " >&6; }
|
---|
5382 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5383 | /* end confdefs.h. */
|
---|
5384 |
|
---|
5385 | #include <linux/compiler.h>
|
---|
5386 |
|
---|
5387 | int
|
---|
5388 | main ()
|
---|
5389 | {
|
---|
5390 |
|
---|
5391 | ;
|
---|
5392 | return 0;
|
---|
5393 | }
|
---|
5394 | _ACEOF
|
---|
5395 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
5396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
5397 | $as_echo "yes" >&6; }
|
---|
5398 | $as_echo "#define VBOX_WITH_LINUX_COMPILER_H 1" >>confdefs.h
|
---|
5399 |
|
---|
5400 | else
|
---|
5401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
5402 | $as_echo "no" >&6; }
|
---|
5403 | fi
|
---|
5404 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5405 |
|
---|
5406 |
|
---|
5407 | #
|
---|
5408 | # EGD
|
---|
5409 | #
|
---|
5410 |
|
---|
5411 | # Check whether --with-egd-socket was given.
|
---|
5412 | if test "${with_egd_socket+set}" = set; then :
|
---|
5413 | withval=$with_egd_socket; EGD_SOCKET="$withval"
|
---|
5414 | else
|
---|
5415 | EGD_SOCKET="/var/run/egd-pool"
|
---|
5416 |
|
---|
5417 | fi
|
---|
5418 |
|
---|
5419 | cat >>confdefs.h <<_ACEOF
|
---|
5420 | #define EGD_SOCKET "$EGD_SOCKET"
|
---|
5421 | _ACEOF
|
---|
5422 |
|
---|
5423 |
|
---|
5424 |
|
---|
5425 | #
|
---|
5426 | # rdp2vnc
|
---|
5427 | #
|
---|
5428 | vncserverconfig=libvncserver-config
|
---|
5429 |
|
---|
5430 | # Check whether --with-libvncserver-config was given.
|
---|
5431 | if test "${with_libvncserver_config+set}" = set; then :
|
---|
5432 | withval=$with_libvncserver_config; vncserverconfig="$withval"
|
---|
5433 |
|
---|
5434 | fi
|
---|
5435 |
|
---|
5436 |
|
---|
5437 | # Check whether --with-libvncserver was given.
|
---|
5438 | if test "${with_libvncserver+set}" = set; then :
|
---|
5439 | withval=$with_libvncserver;
|
---|
5440 | VNCINC=`$vncserverconfig --cflags`
|
---|
5441 |
|
---|
5442 | LDVNC=`$vncserverconfig --libs`
|
---|
5443 |
|
---|
5444 | VNCLINK=`$vncserverconfig --link`
|
---|
5445 |
|
---|
5446 | RDP2VNCTARGET="rdp2vnc"
|
---|
5447 |
|
---|
5448 |
|
---|
5449 |
|
---|
5450 | fi
|
---|
5451 |
|
---|
5452 |
|
---|
5453 | #
|
---|
5454 | # sound
|
---|
5455 | #
|
---|
5456 |
|
---|
5457 | sound="yes"
|
---|
5458 |
|
---|
5459 | # Check whether --with-sound was given.
|
---|
5460 | if test "${with_sound+set}" = set; then :
|
---|
5461 | withval=$with_sound;
|
---|
5462 | sound="$withval"
|
---|
5463 |
|
---|
5464 | fi
|
---|
5465 |
|
---|
5466 |
|
---|
5467 | ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
|
---|
5468 | if test "x$ac_cv_header_sys_soundcard_h" = x""yes; then :
|
---|
5469 | HAVE_OSS=1
|
---|
5470 | else
|
---|
5471 | HAVE_OSS=0
|
---|
5472 | fi
|
---|
5473 |
|
---|
5474 |
|
---|
5475 | ac_fn_c_check_header_mongrel "$LINENO" "dmedia/audio.h" "ac_cv_header_dmedia_audio_h" "$ac_includes_default"
|
---|
5476 | if test "x$ac_cv_header_dmedia_audio_h" = x""yes; then :
|
---|
5477 | HAVE_SGI=1
|
---|
5478 | else
|
---|
5479 | HAVE_SGI=0
|
---|
5480 | fi
|
---|
5481 |
|
---|
5482 |
|
---|
5483 | ac_fn_c_check_header_mongrel "$LINENO" "sys/audioio.h" "ac_cv_header_sys_audioio_h" "$ac_includes_default"
|
---|
5484 | if test "x$ac_cv_header_sys_audioio_h" = x""yes; then :
|
---|
5485 | HAVE_SUN=1
|
---|
5486 | else
|
---|
5487 | HAVE_SUN=0
|
---|
5488 | fi
|
---|
5489 |
|
---|
5490 |
|
---|
5491 |
|
---|
5492 | # Check whether --enable-static-libsamplerate was given.
|
---|
5493 | if test "${enable_static_libsamplerate+set}" = set; then :
|
---|
5494 | enableval=$enable_static_libsamplerate; static_libsamplerate=yes
|
---|
5495 | else
|
---|
5496 | static_libsamplerate=no
|
---|
5497 | fi
|
---|
5498 |
|
---|
5499 |
|
---|
5500 | if test -n "$PKG_CONFIG"; then
|
---|
5501 |
|
---|
5502 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not available, cannot check for ao" >&5
|
---|
5503 | $as_echo "$as_me: WARNING: pkg-config not available, cannot check for ao" >&2;}
|
---|
5504 | HAVE_LIBAO=0
|
---|
5505 |
|
---|
5506 |
|
---|
5507 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not available, cannot check for alsa" >&5
|
---|
5508 | $as_echo "$as_me: WARNING: pkg-config not available, cannot check for alsa" >&2;}
|
---|
5509 | HAVE_ALSA=0
|
---|
5510 |
|
---|
5511 |
|
---|
5512 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not available, cannot check for samplerate" >&5
|
---|
5513 | $as_echo "$as_me: WARNING: pkg-config not available, cannot check for samplerate" >&2;}
|
---|
5514 | HAVE_LIBSAMPLERATE=0
|
---|
5515 |
|
---|
5516 | if test x"$HAVE_LIBSAMPLERATE" = "x1"; then
|
---|
5517 | $as_echo "#define HAVE_LIBSAMPLERATE 1" >>confdefs.h
|
---|
5518 |
|
---|
5519 | if test x"$static_libsamplerate" = "xyes"; then
|
---|
5520 | _libsamplerate_libdir=`$PKG_CONFIG --errors-to-stdout --variable=libdir samplerate`
|
---|
5521 | LIBSAMPLERATE_LIBS="$_libsamplerate_libdir""/libsamplerate.a"
|
---|
5522 | fi
|
---|
5523 | LIBSAMPLERATE_LIBS="$LIBSAMPLERATE_LIBS -lm"
|
---|
5524 | fi
|
---|
5525 | fi
|
---|
5526 |
|
---|
5527 | if test "$sound" != "no"; then
|
---|
5528 | SOUNDOBJ="$SOUNDOBJ rdpsnd.o rdpsnd_dsp.o"
|
---|
5529 | CFLAGS="$CFLAGS $LIBSAMPLERATE_CFLAGS"
|
---|
5530 | LIBS="$LIBS $LIBSAMPLERATE_LIBS"
|
---|
5531 | $as_echo "#define WITH_RDPSND 1" >>confdefs.h
|
---|
5532 |
|
---|
5533 | fi
|
---|
5534 |
|
---|
5535 | case $sound in
|
---|
5536 | yes)
|
---|
5537 | if test x"$HAVE_OSS" = "x1"; then
|
---|
5538 | SOUNDOBJ="$SOUNDOBJ rdpsnd_oss.o"
|
---|
5539 | $as_echo "#define RDPSND_OSS 1" >>confdefs.h
|
---|
5540 |
|
---|
5541 | fi
|
---|
5542 |
|
---|
5543 | if test x"$HAVE_SGI" = "x1"; then
|
---|
5544 | SOUNDOBJ="$SOUNDOBJ rdpsnd_sgi.o"
|
---|
5545 | LIBS="$LIBS -laudio"
|
---|
5546 | $as_echo "#define RDPSND_SGI 1" >>confdefs.h
|
---|
5547 |
|
---|
5548 | fi
|
---|
5549 |
|
---|
5550 | if test x"$HAVE_SUN" = "x1"; then
|
---|
5551 | SOUNDOBJ="$SOUNDOBJ rdpsnd_sun.o"
|
---|
5552 | $as_echo "#define RDPSND_SUN 1" >>confdefs.h
|
---|
5553 |
|
---|
5554 | fi
|
---|
5555 |
|
---|
5556 | if test x"$HAVE_ALSA" = "x1"; then
|
---|
5557 | SOUNDOBJ="$SOUNDOBJ rdpsnd_alsa.o"
|
---|
5558 | CFLAGS="$CFLAGS $ALSA_CFLAGS"
|
---|
5559 | LIBS="$LIBS $ALSA_LIBS"
|
---|
5560 | $as_echo "#define RDPSND_ALSA 1" >>confdefs.h
|
---|
5561 |
|
---|
5562 | fi
|
---|
5563 |
|
---|
5564 | if test x"$HAVE_LIBAO" = "x1"; then
|
---|
5565 | SOUNDOBJ="$SOUNDOBJ rdpsnd_libao.o"
|
---|
5566 | CFLAGS="$CFLAGS $LIBAO_CFLAGS"
|
---|
5567 | LIBS="$LIBS $LIBAO_LIBS"
|
---|
5568 | $as_echo "#define RDPSND_LIBAO 1" >>confdefs.h
|
---|
5569 |
|
---|
5570 | fi
|
---|
5571 |
|
---|
5572 | ;;
|
---|
5573 |
|
---|
5574 | oss)
|
---|
5575 | if test x"$HAVE_OSS" = "x1"; then
|
---|
5576 | SOUNDOBJ="$SOUNDOBJ rdpsnd_oss.o"
|
---|
5577 | $as_echo "#define RDPSND_OSS 1" >>confdefs.h
|
---|
5578 |
|
---|
5579 | else
|
---|
5580 | as_fn_error $? "Selected sound system is not available." "$LINENO" 5
|
---|
5581 | fi
|
---|
5582 | ;;
|
---|
5583 |
|
---|
5584 | sgi)
|
---|
5585 | if test x"$HAVE_SGI" = "x1"; then
|
---|
5586 | SOUNDOBJ="$SOUNDOBJ rdpsnd_sgi.o"
|
---|
5587 | LIBS="$LIBS -laudio"
|
---|
5588 | $as_echo "#define RDPSND_SGI 1" >>confdefs.h
|
---|
5589 |
|
---|
5590 | else
|
---|
5591 | as_fn_error $? "Selected sound system is not available." "$LINENO" 5
|
---|
5592 | fi
|
---|
5593 | ;;
|
---|
5594 |
|
---|
5595 | sun)
|
---|
5596 | if test x"$HAVE_SUN" = "x1"; then
|
---|
5597 | SOUNDOBJ="$SOUNDOBJ rdpsnd_sun.o"
|
---|
5598 | $as_echo "#define RDPSND_SUN 1" >>confdefs.h
|
---|
5599 |
|
---|
5600 | else
|
---|
5601 | as_fn_error $? "Selected sound system is not available." "$LINENO" 5
|
---|
5602 | fi
|
---|
5603 | ;;
|
---|
5604 |
|
---|
5605 | alsa)
|
---|
5606 | if test x"$HAVE_ALSA" = "x1"; then
|
---|
5607 | SOUNDOBJ="$SOUNDOBJ rdpsnd_alsa.o"
|
---|
5608 | CFLAGS="$CFLAGS $ALSA_CFLAGS"
|
---|
5609 | LIBS="$LIBS $ALSA_LIBS"
|
---|
5610 | $as_echo "#define RDPSND_ALSA 1" >>confdefs.h
|
---|
5611 |
|
---|
5612 | else
|
---|
5613 | as_fn_error $? "Selected sound system is not available." "$LINENO" 5
|
---|
5614 | fi
|
---|
5615 | ;;
|
---|
5616 |
|
---|
5617 | libao)
|
---|
5618 | if test x"$HAVE_LIBAO" = "x1"; then
|
---|
5619 | SOUNDOBJ="$SOUNDOBJ rdpsnd_libao.o"
|
---|
5620 | CFLAGS="$CFLAGS $LIBAO_CFLAGS"
|
---|
5621 | LIBS="$LIBS $LIBAO_LIBS"
|
---|
5622 | $as_echo "#define RDPSND_LIBAO 1" >>confdefs.h
|
---|
5623 |
|
---|
5624 | else
|
---|
5625 | as_fn_error $? "Selected sound system is not available." "$LINENO" 5
|
---|
5626 | fi
|
---|
5627 | ;;
|
---|
5628 |
|
---|
5629 | no)
|
---|
5630 | ;;
|
---|
5631 |
|
---|
5632 | *)
|
---|
5633 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: sound support disabled" >&5
|
---|
5634 | $as_echo "$as_me: WARNING: sound support disabled" >&2;}
|
---|
5635 | { $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
|
---|
5636 | $as_echo "$as_me: WARNING: Currently supported systems are Open Sound System (oss), SGI AL (sgi), Sun/BSD (sun), ALSA (alsa) and libao" >&2;}
|
---|
5637 | ;;
|
---|
5638 | esac
|
---|
5639 |
|
---|
5640 |
|
---|
5641 |
|
---|
5642 | #
|
---|
5643 | # dirfd
|
---|
5644 | #
|
---|
5645 |
|
---|
5646 |
|
---|
5647 |
|
---|
5648 |
|
---|
5649 |
|
---|
5650 | ac_header_dirent=no
|
---|
5651 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
|
---|
5652 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
|
---|
5653 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
|
---|
5654 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
|
---|
5655 | if eval "test \"\${$as_ac_Header+set}\"" = set; then :
|
---|
5656 | $as_echo_n "(cached) " >&6
|
---|
5657 | else
|
---|
5658 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5659 | /* end confdefs.h. */
|
---|
5660 | #include <sys/types.h>
|
---|
5661 | #include <$ac_hdr>
|
---|
5662 |
|
---|
5663 | int
|
---|
5664 | main ()
|
---|
5665 | {
|
---|
5666 | if ((DIR *) 0)
|
---|
5667 | return 0;
|
---|
5668 | ;
|
---|
5669 | return 0;
|
---|
5670 | }
|
---|
5671 | _ACEOF
|
---|
5672 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
5673 | eval "$as_ac_Header=yes"
|
---|
5674 | else
|
---|
5675 | eval "$as_ac_Header=no"
|
---|
5676 | fi
|
---|
5677 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5678 | fi
|
---|
5679 | eval ac_res=\$$as_ac_Header
|
---|
5680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
5681 | $as_echo "$ac_res" >&6; }
|
---|
5682 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
|
---|
5683 | cat >>confdefs.h <<_ACEOF
|
---|
5684 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
|
---|
5685 | _ACEOF
|
---|
5686 |
|
---|
5687 | ac_header_dirent=$ac_hdr; break
|
---|
5688 | fi
|
---|
5689 |
|
---|
5690 | done
|
---|
5691 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
|
---|
5692 | if test $ac_header_dirent = dirent.h; then
|
---|
5693 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
|
---|
5694 | $as_echo_n "checking for library containing opendir... " >&6; }
|
---|
5695 | if test "${ac_cv_search_opendir+set}" = set; then :
|
---|
5696 | $as_echo_n "(cached) " >&6
|
---|
5697 | else
|
---|
5698 | ac_func_search_save_LIBS=$LIBS
|
---|
5699 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5700 | /* end confdefs.h. */
|
---|
5701 |
|
---|
5702 | /* Override any GCC internal prototype to avoid an error.
|
---|
5703 | Use char because int might match the return type of a GCC
|
---|
5704 | builtin and then its argument prototype would still apply. */
|
---|
5705 | #ifdef __cplusplus
|
---|
5706 | extern "C"
|
---|
5707 | #endif
|
---|
5708 | char opendir ();
|
---|
5709 | int
|
---|
5710 | main ()
|
---|
5711 | {
|
---|
5712 | return opendir ();
|
---|
5713 | ;
|
---|
5714 | return 0;
|
---|
5715 | }
|
---|
5716 | _ACEOF
|
---|
5717 | for ac_lib in '' dir; do
|
---|
5718 | if test -z "$ac_lib"; then
|
---|
5719 | ac_res="none required"
|
---|
5720 | else
|
---|
5721 | ac_res=-l$ac_lib
|
---|
5722 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
5723 | fi
|
---|
5724 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
5725 | ac_cv_search_opendir=$ac_res
|
---|
5726 | fi
|
---|
5727 | rm -f core conftest.err conftest.$ac_objext \
|
---|
5728 | conftest$ac_exeext
|
---|
5729 | if test "${ac_cv_search_opendir+set}" = set; then :
|
---|
5730 | break
|
---|
5731 | fi
|
---|
5732 | done
|
---|
5733 | if test "${ac_cv_search_opendir+set}" = set; then :
|
---|
5734 |
|
---|
5735 | else
|
---|
5736 | ac_cv_search_opendir=no
|
---|
5737 | fi
|
---|
5738 | rm conftest.$ac_ext
|
---|
5739 | LIBS=$ac_func_search_save_LIBS
|
---|
5740 | fi
|
---|
5741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
|
---|
5742 | $as_echo "$ac_cv_search_opendir" >&6; }
|
---|
5743 | ac_res=$ac_cv_search_opendir
|
---|
5744 | if test "$ac_res" != no; then :
|
---|
5745 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
---|
5746 |
|
---|
5747 | fi
|
---|
5748 |
|
---|
5749 | else
|
---|
5750 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
|
---|
5751 | $as_echo_n "checking for library containing opendir... " >&6; }
|
---|
5752 | if test "${ac_cv_search_opendir+set}" = set; then :
|
---|
5753 | $as_echo_n "(cached) " >&6
|
---|
5754 | else
|
---|
5755 | ac_func_search_save_LIBS=$LIBS
|
---|
5756 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5757 | /* end confdefs.h. */
|
---|
5758 |
|
---|
5759 | /* Override any GCC internal prototype to avoid an error.
|
---|
5760 | Use char because int might match the return type of a GCC
|
---|
5761 | builtin and then its argument prototype would still apply. */
|
---|
5762 | #ifdef __cplusplus
|
---|
5763 | extern "C"
|
---|
5764 | #endif
|
---|
5765 | char opendir ();
|
---|
5766 | int
|
---|
5767 | main ()
|
---|
5768 | {
|
---|
5769 | return opendir ();
|
---|
5770 | ;
|
---|
5771 | return 0;
|
---|
5772 | }
|
---|
5773 | _ACEOF
|
---|
5774 | for ac_lib in '' x; do
|
---|
5775 | if test -z "$ac_lib"; then
|
---|
5776 | ac_res="none required"
|
---|
5777 | else
|
---|
5778 | ac_res=-l$ac_lib
|
---|
5779 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
5780 | fi
|
---|
5781 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
5782 | ac_cv_search_opendir=$ac_res
|
---|
5783 | fi
|
---|
5784 | rm -f core conftest.err conftest.$ac_objext \
|
---|
5785 | conftest$ac_exeext
|
---|
5786 | if test "${ac_cv_search_opendir+set}" = set; then :
|
---|
5787 | break
|
---|
5788 | fi
|
---|
5789 | done
|
---|
5790 | if test "${ac_cv_search_opendir+set}" = set; then :
|
---|
5791 |
|
---|
5792 | else
|
---|
5793 | ac_cv_search_opendir=no
|
---|
5794 | fi
|
---|
5795 | rm conftest.$ac_ext
|
---|
5796 | LIBS=$ac_func_search_save_LIBS
|
---|
5797 | fi
|
---|
5798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
|
---|
5799 | $as_echo "$ac_cv_search_opendir" >&6; }
|
---|
5800 | ac_res=$ac_cv_search_opendir
|
---|
5801 | if test "$ac_res" != no; then :
|
---|
5802 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
---|
5803 |
|
---|
5804 | fi
|
---|
5805 |
|
---|
5806 | fi
|
---|
5807 |
|
---|
5808 | dirfd_headers='
|
---|
5809 | #if HAVE_DIRENT_H
|
---|
5810 | # include <dirent.h>
|
---|
5811 | #else /* not HAVE_DIRENT_H */
|
---|
5812 | # define dirent direct
|
---|
5813 | # if HAVE_SYS_NDIR_H
|
---|
5814 | # include <sys/ndir.h>
|
---|
5815 | # endif /* HAVE_SYS_NDIR_H */
|
---|
5816 | # if HAVE_SYS_DIR_H
|
---|
5817 | # include <sys/dir.h>
|
---|
5818 | # endif /* HAVE_SYS_DIR_H */
|
---|
5819 | # if HAVE_NDIR_H
|
---|
5820 | # include <ndir.h>
|
---|
5821 | # endif /* HAVE_NDIR_H */
|
---|
5822 | #endif /* HAVE_DIRENT_H */
|
---|
5823 | '
|
---|
5824 | for ac_func in dirfd
|
---|
5825 | do :
|
---|
5826 | ac_fn_c_check_func "$LINENO" "dirfd" "ac_cv_func_dirfd"
|
---|
5827 | if test "x$ac_cv_func_dirfd" = x""yes; then :
|
---|
5828 | cat >>confdefs.h <<_ACEOF
|
---|
5829 | #define HAVE_DIRFD 1
|
---|
5830 | _ACEOF
|
---|
5831 |
|
---|
5832 | fi
|
---|
5833 | done
|
---|
5834 |
|
---|
5835 | ac_fn_c_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "$dirfd_headers
|
---|
5836 | "
|
---|
5837 | if test "x$ac_cv_have_decl_dirfd" = x""yes; then :
|
---|
5838 | ac_have_decl=1
|
---|
5839 | else
|
---|
5840 | ac_have_decl=0
|
---|
5841 | fi
|
---|
5842 |
|
---|
5843 | cat >>confdefs.h <<_ACEOF
|
---|
5844 | #define HAVE_DECL_DIRFD $ac_have_decl
|
---|
5845 | _ACEOF
|
---|
5846 |
|
---|
5847 |
|
---|
5848 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dirfd is a macro" >&5
|
---|
5849 | $as_echo_n "checking whether dirfd is a macro... " >&6; }
|
---|
5850 | if test "${jm_cv_func_dirfd_macro+set}" = set; then :
|
---|
5851 | $as_echo_n "(cached) " >&6
|
---|
5852 | else
|
---|
5853 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5854 | /* end confdefs.h. */
|
---|
5855 | $dirfd_headers
|
---|
5856 | #ifdef dirfd
|
---|
5857 | dirent_header_defines_dirfd
|
---|
5858 | #endif
|
---|
5859 | _ACEOF
|
---|
5860 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5861 | $EGREP "dirent_header_defines_dirfd" >/dev/null 2>&1; then :
|
---|
5862 | jm_cv_func_dirfd_macro=yes
|
---|
5863 | else
|
---|
5864 | jm_cv_func_dirfd_macro=no
|
---|
5865 | fi
|
---|
5866 | rm -f conftest*
|
---|
5867 |
|
---|
5868 | fi
|
---|
5869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_cv_func_dirfd_macro" >&5
|
---|
5870 | $as_echo "$jm_cv_func_dirfd_macro" >&6; }
|
---|
5871 |
|
---|
5872 | # Use the replacement only if we have no function, macro,
|
---|
5873 | # or declaration with that name.
|
---|
5874 | if test $ac_cv_func_dirfd,$ac_cv_have_decl_dirfd,$jm_cv_func_dirfd_macro \
|
---|
5875 | = no,no,no; then
|
---|
5876 | ac_fn_c_check_func "$LINENO" "dirfd" "ac_cv_func_dirfd"
|
---|
5877 | if test "x$ac_cv_func_dirfd" = x""yes; then :
|
---|
5878 | $as_echo "#define HAVE_DIRFD 1" >>confdefs.h
|
---|
5879 |
|
---|
5880 | else
|
---|
5881 | case " $LIBOBJS " in
|
---|
5882 | *" dirfd.$ac_objext "* ) ;;
|
---|
5883 | *) LIBOBJS="$LIBOBJS dirfd.$ac_objext"
|
---|
5884 | ;;
|
---|
5885 | esac
|
---|
5886 |
|
---|
5887 | fi
|
---|
5888 |
|
---|
5889 |
|
---|
5890 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get the file descriptor associated with an open DIR*" >&5
|
---|
5891 | $as_echo_n "checking how to get the file descriptor associated with an open DIR*... " >&6; }
|
---|
5892 | if test "${gl_cv_sys_dir_fd_member_name+set}" = set; then :
|
---|
5893 | $as_echo_n "(cached) " >&6
|
---|
5894 | else
|
---|
5895 |
|
---|
5896 | dirfd_save_CFLAGS=$CFLAGS
|
---|
5897 | for ac_expr in d_fd dd_fd; do
|
---|
5898 |
|
---|
5899 | CFLAGS="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
|
---|
5900 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5901 | /* end confdefs.h. */
|
---|
5902 | $dirfd_headers
|
---|
5903 |
|
---|
5904 | int
|
---|
5905 | main ()
|
---|
5906 | {
|
---|
5907 | DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
|
---|
5908 | ;
|
---|
5909 | return 0;
|
---|
5910 | }
|
---|
5911 | _ACEOF
|
---|
5912 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
5913 | dir_fd_found=yes
|
---|
5914 |
|
---|
5915 | fi
|
---|
5916 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5917 | CFLAGS=$dirfd_save_CFLAGS
|
---|
5918 | test "$dir_fd_found" = yes && break
|
---|
5919 | done
|
---|
5920 | test "$dir_fd_found" = yes || ac_expr=no_such_member
|
---|
5921 |
|
---|
5922 | gl_cv_sys_dir_fd_member_name=$ac_expr
|
---|
5923 |
|
---|
5924 |
|
---|
5925 | fi
|
---|
5926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_dir_fd_member_name" >&5
|
---|
5927 | $as_echo "$gl_cv_sys_dir_fd_member_name" >&6; }
|
---|
5928 | if test $gl_cv_sys_dir_fd_member_name != no_such_member; then
|
---|
5929 |
|
---|
5930 | cat >>confdefs.h <<_ACEOF
|
---|
5931 | #define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name
|
---|
5932 | _ACEOF
|
---|
5933 |
|
---|
5934 | fi
|
---|
5935 |
|
---|
5936 | fi
|
---|
5937 |
|
---|
5938 |
|
---|
5939 | #
|
---|
5940 | # iconv
|
---|
5941 | #
|
---|
5942 |
|
---|
5943 |
|
---|
5944 |
|
---|
5945 |
|
---|
5946 |
|
---|
5947 |
|
---|
5948 |
|
---|
5949 | # Check whether --with-libiconv-prefix was given.
|
---|
5950 | if test "${with_libiconv_prefix+set}" = set; then :
|
---|
5951 | withval=$with_libiconv_prefix;
|
---|
5952 | for dir in `echo "$withval" | tr : ' '`; do
|
---|
5953 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
|
---|
5954 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
|
---|
5955 | done
|
---|
5956 |
|
---|
5957 | fi
|
---|
5958 |
|
---|
5959 | ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
|
---|
5960 | if test "x$ac_cv_header_iconv_h" = x""yes; then :
|
---|
5961 | $as_echo "#define HAVE_ICONV_H 1" >>confdefs.h
|
---|
5962 |
|
---|
5963 | fi
|
---|
5964 |
|
---|
5965 |
|
---|
5966 |
|
---|
5967 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
|
---|
5968 | $as_echo_n "checking for iconv... " >&6; }
|
---|
5969 | if test "${am_cv_func_iconv+set}" = set; then :
|
---|
5970 | $as_echo_n "(cached) " >&6
|
---|
5971 | else
|
---|
5972 |
|
---|
5973 | am_cv_func_iconv="no, consider installing GNU libiconv"
|
---|
5974 | am_cv_lib_iconv=no
|
---|
5975 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5976 | /* end confdefs.h. */
|
---|
5977 | #include <stdlib.h>
|
---|
5978 | #include <iconv.h>
|
---|
5979 | int
|
---|
5980 | main ()
|
---|
5981 | {
|
---|
5982 | iconv_t cd = iconv_open("","");
|
---|
5983 | iconv(cd,NULL,NULL,NULL,NULL);
|
---|
5984 | iconv_close(cd);
|
---|
5985 | ;
|
---|
5986 | return 0;
|
---|
5987 | }
|
---|
5988 | _ACEOF
|
---|
5989 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
5990 | am_cv_func_iconv=yes
|
---|
5991 | fi
|
---|
5992 | rm -f core conftest.err conftest.$ac_objext \
|
---|
5993 | conftest$ac_exeext conftest.$ac_ext
|
---|
5994 | if test "$am_cv_func_iconv" != yes; then
|
---|
5995 | am_save_LIBS="$LIBS"
|
---|
5996 | LIBS="$LIBS -liconv"
|
---|
5997 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5998 | /* end confdefs.h. */
|
---|
5999 | #include <stdlib.h>
|
---|
6000 | #include <iconv.h>
|
---|
6001 | int
|
---|
6002 | main ()
|
---|
6003 | {
|
---|
6004 | iconv_t cd = iconv_open("","");
|
---|
6005 | iconv(cd,NULL,NULL,NULL,NULL);
|
---|
6006 | iconv_close(cd);
|
---|
6007 | ;
|
---|
6008 | return 0;
|
---|
6009 | }
|
---|
6010 | _ACEOF
|
---|
6011 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
6012 | am_cv_lib_iconv=yes
|
---|
6013 | am_cv_func_iconv=yes
|
---|
6014 | fi
|
---|
6015 | rm -f core conftest.err conftest.$ac_objext \
|
---|
6016 | conftest$ac_exeext conftest.$ac_ext
|
---|
6017 | LIBS="$am_save_LIBS"
|
---|
6018 | fi
|
---|
6019 |
|
---|
6020 | fi
|
---|
6021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
|
---|
6022 | $as_echo "$am_cv_func_iconv" >&6; }
|
---|
6023 | if test "$am_cv_func_iconv" = yes; then
|
---|
6024 |
|
---|
6025 | $as_echo "#define HAVE_ICONV 1" >>confdefs.h
|
---|
6026 |
|
---|
6027 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
|
---|
6028 | $as_echo_n "checking for iconv declaration... " >&6; }
|
---|
6029 | if test "${am_cv_proto_iconv+set}" = set; then :
|
---|
6030 | $as_echo_n "(cached) " >&6
|
---|
6031 | else
|
---|
6032 |
|
---|
6033 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6034 | /* end confdefs.h. */
|
---|
6035 |
|
---|
6036 | #include <stdlib.h>
|
---|
6037 | #include <iconv.h>
|
---|
6038 | extern
|
---|
6039 | #ifdef __cplusplus
|
---|
6040 | "C"
|
---|
6041 | #endif
|
---|
6042 | #if defined(__STDC__) || defined(__cplusplus)
|
---|
6043 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
|
---|
6044 | #else
|
---|
6045 | size_t iconv();
|
---|
6046 | #endif
|
---|
6047 |
|
---|
6048 | int
|
---|
6049 | main ()
|
---|
6050 | {
|
---|
6051 |
|
---|
6052 | ;
|
---|
6053 | return 0;
|
---|
6054 | }
|
---|
6055 | _ACEOF
|
---|
6056 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
6057 | am_cv_proto_iconv_arg1=""
|
---|
6058 | else
|
---|
6059 | am_cv_proto_iconv_arg1="const"
|
---|
6060 | fi
|
---|
6061 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6062 | 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);"
|
---|
6063 | fi
|
---|
6064 |
|
---|
6065 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
|
---|
6066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
|
---|
6067 | }$am_cv_proto_iconv" >&5
|
---|
6068 | $as_echo "${ac_t:-
|
---|
6069 | }$am_cv_proto_iconv" >&6; }
|
---|
6070 |
|
---|
6071 | cat >>confdefs.h <<_ACEOF
|
---|
6072 | #define ICONV_CONST $am_cv_proto_iconv_arg1
|
---|
6073 | _ACEOF
|
---|
6074 |
|
---|
6075 | fi
|
---|
6076 | LIBICONV=
|
---|
6077 | if test "$am_cv_lib_iconv" = yes; then
|
---|
6078 | LIBICONV="-liconv"
|
---|
6079 | fi
|
---|
6080 |
|
---|
6081 |
|
---|
6082 | LIBS="$LIBS $LIBICONV"
|
---|
6083 |
|
---|
6084 | #
|
---|
6085 | # socklen_t
|
---|
6086 | # from curl
|
---|
6087 |
|
---|
6088 |
|
---|
6089 |
|
---|
6090 |
|
---|
6091 | ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
|
---|
6092 | #include <sys/socket.h>
|
---|
6093 | "
|
---|
6094 | if test "x$ac_cv_type_socklen_t" = x""yes; then :
|
---|
6095 |
|
---|
6096 | else
|
---|
6097 |
|
---|
6098 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
|
---|
6099 | $as_echo_n "checking for socklen_t equivalent... " >&6; }
|
---|
6100 | if test "${socklen_t_equiv+set}" = set; then :
|
---|
6101 | $as_echo_n "(cached) " >&6
|
---|
6102 | else
|
---|
6103 |
|
---|
6104 | # Systems have either "struct sockaddr *" or
|
---|
6105 | # "void *" as the second argument to getpeername
|
---|
6106 | socklen_t_equiv=
|
---|
6107 | for arg2 in "struct sockaddr" void; do
|
---|
6108 | for t in int size_t unsigned long "unsigned long"; do
|
---|
6109 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6110 | /* end confdefs.h. */
|
---|
6111 |
|
---|
6112 | #include <sys/types.h>
|
---|
6113 | #include <sys/socket.h>
|
---|
6114 |
|
---|
6115 | int getpeername (int, $arg2 *, $t *);
|
---|
6116 |
|
---|
6117 | int
|
---|
6118 | main ()
|
---|
6119 | {
|
---|
6120 |
|
---|
6121 | $t len;
|
---|
6122 | getpeername(0,0,&len);
|
---|
6123 |
|
---|
6124 | ;
|
---|
6125 | return 0;
|
---|
6126 | }
|
---|
6127 | _ACEOF
|
---|
6128 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
6129 |
|
---|
6130 | socklen_t_equiv="$t"
|
---|
6131 | break
|
---|
6132 |
|
---|
6133 | fi
|
---|
6134 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6135 | done
|
---|
6136 | done
|
---|
6137 |
|
---|
6138 | if test "x$socklen_t_equiv" = x; then
|
---|
6139 | as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
|
---|
6140 | fi
|
---|
6141 |
|
---|
6142 | fi
|
---|
6143 |
|
---|
6144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $socklen_t_equiv" >&5
|
---|
6145 | $as_echo "$socklen_t_equiv" >&6; }
|
---|
6146 |
|
---|
6147 | cat >>confdefs.h <<_ACEOF
|
---|
6148 | #define socklen_t $socklen_t_equiv
|
---|
6149 | _ACEOF
|
---|
6150 |
|
---|
6151 | fi
|
---|
6152 |
|
---|
6153 |
|
---|
6154 |
|
---|
6155 | #
|
---|
6156 | # statfs stuff
|
---|
6157 | #
|
---|
6158 | for ac_header in sys/vfs.h
|
---|
6159 | do :
|
---|
6160 | ac_fn_c_check_header_mongrel "$LINENO" "sys/vfs.h" "ac_cv_header_sys_vfs_h" "$ac_includes_default"
|
---|
6161 | if test "x$ac_cv_header_sys_vfs_h" = x""yes; then :
|
---|
6162 | cat >>confdefs.h <<_ACEOF
|
---|
6163 | #define HAVE_SYS_VFS_H 1
|
---|
6164 | _ACEOF
|
---|
6165 |
|
---|
6166 | fi
|
---|
6167 |
|
---|
6168 | done
|
---|
6169 |
|
---|
6170 | for ac_header in sys/statvfs.h
|
---|
6171 | do :
|
---|
6172 | ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
|
---|
6173 | if test "x$ac_cv_header_sys_statvfs_h" = x""yes; then :
|
---|
6174 | cat >>confdefs.h <<_ACEOF
|
---|
6175 | #define HAVE_SYS_STATVFS_H 1
|
---|
6176 | _ACEOF
|
---|
6177 |
|
---|
6178 | fi
|
---|
6179 |
|
---|
6180 | done
|
---|
6181 |
|
---|
6182 | for ac_header in sys/statfs.h
|
---|
6183 | do :
|
---|
6184 | ac_fn_c_check_header_mongrel "$LINENO" "sys/statfs.h" "ac_cv_header_sys_statfs_h" "$ac_includes_default"
|
---|
6185 | if test "x$ac_cv_header_sys_statfs_h" = x""yes; then :
|
---|
6186 | cat >>confdefs.h <<_ACEOF
|
---|
6187 | #define HAVE_SYS_STATFS_H 1
|
---|
6188 | _ACEOF
|
---|
6189 |
|
---|
6190 | fi
|
---|
6191 |
|
---|
6192 | done
|
---|
6193 |
|
---|
6194 | for ac_header in sys/param.h
|
---|
6195 | do :
|
---|
6196 | ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
|
---|
6197 | if test "x$ac_cv_header_sys_param_h" = x""yes; then :
|
---|
6198 | cat >>confdefs.h <<_ACEOF
|
---|
6199 | #define HAVE_SYS_PARAM_H 1
|
---|
6200 | _ACEOF
|
---|
6201 |
|
---|
6202 | fi
|
---|
6203 |
|
---|
6204 | done
|
---|
6205 |
|
---|
6206 |
|
---|
6207 | mount_includes="\
|
---|
6208 | $ac_includes_default
|
---|
6209 | #if HAVE_SYS_PARAM_H
|
---|
6210 | # include <sys/param.h>
|
---|
6211 | #endif
|
---|
6212 | "
|
---|
6213 |
|
---|
6214 | for ac_header in sys/mount.h
|
---|
6215 | do :
|
---|
6216 | ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$mount_includes
|
---|
6217 | "
|
---|
6218 | if test "x$ac_cv_header_sys_mount_h" = x""yes; then :
|
---|
6219 | cat >>confdefs.h <<_ACEOF
|
---|
6220 | #define HAVE_SYS_MOUNT_H 1
|
---|
6221 | _ACEOF
|
---|
6222 |
|
---|
6223 | fi
|
---|
6224 |
|
---|
6225 | done
|
---|
6226 |
|
---|
6227 |
|
---|
6228 | #################################################
|
---|
6229 | # these tests are taken from the GNU fileutils package
|
---|
6230 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get filesystem space usage..." >&5
|
---|
6231 | $as_echo "$as_me: checking how to get filesystem space usage..." >&6;}
|
---|
6232 | space=no
|
---|
6233 |
|
---|
6234 | # Test for statvfs64.
|
---|
6235 | if test $space = no; then
|
---|
6236 | # SVR4
|
---|
6237 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking statvfs64 function (SVR4)" >&5
|
---|
6238 | $as_echo_n "checking statvfs64 function (SVR4)... " >&6; }
|
---|
6239 | if test "${fu_cv_sys_stat_statvfs64+set}" = set; then :
|
---|
6240 | $as_echo_n "(cached) " >&6
|
---|
6241 | else
|
---|
6242 | if test "$cross_compiling" = yes; then :
|
---|
6243 | fu_cv_sys_stat_statvfs64=cross
|
---|
6244 | else
|
---|
6245 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6246 | /* end confdefs.h. */
|
---|
6247 |
|
---|
6248 | #if defined(HAVE_UNISTD_H)
|
---|
6249 | #include <unistd.h>
|
---|
6250 | #endif
|
---|
6251 | #include <sys/types.h>
|
---|
6252 | #include <sys/statvfs.h>
|
---|
6253 | main ()
|
---|
6254 | {
|
---|
6255 | struct statvfs64 fsd;
|
---|
6256 | exit (statvfs64 (".", &fsd));
|
---|
6257 | }
|
---|
6258 | _ACEOF
|
---|
6259 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
6260 | fu_cv_sys_stat_statvfs64=yes
|
---|
6261 | else
|
---|
6262 | fu_cv_sys_stat_statvfs64=no
|
---|
6263 | fi
|
---|
6264 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
6265 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
6266 | fi
|
---|
6267 |
|
---|
6268 | fi
|
---|
6269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statvfs64" >&5
|
---|
6270 | $as_echo "$fu_cv_sys_stat_statvfs64" >&6; }
|
---|
6271 | if test $fu_cv_sys_stat_statvfs64 = yes; then
|
---|
6272 | space=yes
|
---|
6273 |
|
---|
6274 | $as_echo "#define STAT_STATVFS64 1" >>confdefs.h
|
---|
6275 |
|
---|
6276 | fi
|
---|
6277 | fi
|
---|
6278 |
|
---|
6279 | # Perform only the link test since it seems there are no variants of the
|
---|
6280 | # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
|
---|
6281 | # because that got a false positive on SCO OSR5. Adding the declaration
|
---|
6282 | # of a `struct statvfs' causes this test to fail (as it should) on such
|
---|
6283 | # systems. That system is reported to work fine with STAT_STATFS4 which
|
---|
6284 | # is what it gets when this test fails.
|
---|
6285 | if test $space = no; then
|
---|
6286 | # SVR4
|
---|
6287 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking statvfs function (SVR4)" >&5
|
---|
6288 | $as_echo_n "checking statvfs function (SVR4)... " >&6; }
|
---|
6289 | if test "${fu_cv_sys_stat_statvfs+set}" = set; then :
|
---|
6290 | $as_echo_n "(cached) " >&6
|
---|
6291 | else
|
---|
6292 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6293 | /* end confdefs.h. */
|
---|
6294 | #include <sys/types.h>
|
---|
6295 | #include <sys/statvfs.h>
|
---|
6296 | int
|
---|
6297 | main ()
|
---|
6298 | {
|
---|
6299 | struct statvfs fsd; statvfs (0, &fsd);
|
---|
6300 | ;
|
---|
6301 | return 0;
|
---|
6302 | }
|
---|
6303 | _ACEOF
|
---|
6304 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
6305 | fu_cv_sys_stat_statvfs=yes
|
---|
6306 | else
|
---|
6307 | fu_cv_sys_stat_statvfs=no
|
---|
6308 | fi
|
---|
6309 | rm -f core conftest.err conftest.$ac_objext \
|
---|
6310 | conftest$ac_exeext conftest.$ac_ext
|
---|
6311 | fi
|
---|
6312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statvfs" >&5
|
---|
6313 | $as_echo "$fu_cv_sys_stat_statvfs" >&6; }
|
---|
6314 | if test $fu_cv_sys_stat_statvfs = yes; then
|
---|
6315 | space=yes
|
---|
6316 |
|
---|
6317 | $as_echo "#define STAT_STATVFS 1" >>confdefs.h
|
---|
6318 |
|
---|
6319 | fi
|
---|
6320 | fi
|
---|
6321 |
|
---|
6322 | if test $space = no; then
|
---|
6323 | # DEC Alpha running OSF/1
|
---|
6324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 3-argument statfs function (DEC OSF/1)" >&5
|
---|
6325 | $as_echo_n "checking for 3-argument statfs function (DEC OSF/1)... " >&6; }
|
---|
6326 | if test "${fu_cv_sys_stat_statfs3_osf1+set}" = set; then :
|
---|
6327 | $as_echo_n "(cached) " >&6
|
---|
6328 | else
|
---|
6329 | if test "$cross_compiling" = yes; then :
|
---|
6330 | fu_cv_sys_stat_statfs3_osf1=no
|
---|
6331 | else
|
---|
6332 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6333 | /* end confdefs.h. */
|
---|
6334 |
|
---|
6335 | #include <sys/param.h>
|
---|
6336 | #include <sys/types.h>
|
---|
6337 | #include <sys/mount.h>
|
---|
6338 | main ()
|
---|
6339 | {
|
---|
6340 | struct statfs fsd;
|
---|
6341 | fsd.f_fsize = 0;
|
---|
6342 | exit (statfs (".", &fsd, sizeof (struct statfs)));
|
---|
6343 | }
|
---|
6344 | _ACEOF
|
---|
6345 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
6346 | fu_cv_sys_stat_statfs3_osf1=yes
|
---|
6347 | else
|
---|
6348 | fu_cv_sys_stat_statfs3_osf1=no
|
---|
6349 | fi
|
---|
6350 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
6351 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
6352 | fi
|
---|
6353 |
|
---|
6354 | fi
|
---|
6355 |
|
---|
6356 |
|
---|
6357 |
|
---|
6358 | #C_MSG_RESULT($fu_cv_sys_stat_statfs3_osf1)
|
---|
6359 | if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
|
---|
6360 | space=yes
|
---|
6361 |
|
---|
6362 | $as_echo "#define STAT_STATFS3_OSF1 1" >>confdefs.h
|
---|
6363 |
|
---|
6364 | fi
|
---|
6365 | fi
|
---|
6366 |
|
---|
6367 | if test $space = no; then
|
---|
6368 | # AIX
|
---|
6369 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
|
---|
6370 | $as_echo_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)... " >&6; }
|
---|
6371 | if test "${fu_cv_sys_stat_statfs2_bsize+set}" = set; then :
|
---|
6372 | $as_echo_n "(cached) " >&6
|
---|
6373 | else
|
---|
6374 | if test "$cross_compiling" = yes; then :
|
---|
6375 | fu_cv_sys_stat_statfs2_bsize=no
|
---|
6376 | else
|
---|
6377 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6378 | /* end confdefs.h. */
|
---|
6379 |
|
---|
6380 | #ifdef HAVE_SYS_PARAM_H
|
---|
6381 | #include <sys/param.h>
|
---|
6382 | #endif
|
---|
6383 | #ifdef HAVE_SYS_MOUNT_H
|
---|
6384 | #include <sys/mount.h>
|
---|
6385 | #endif
|
---|
6386 | #ifdef HAVE_SYS_VFS_H
|
---|
6387 | #include <sys/vfs.h>
|
---|
6388 | #endif
|
---|
6389 | main ()
|
---|
6390 | {
|
---|
6391 | struct statfs fsd;
|
---|
6392 | fsd.f_bsize = 0;
|
---|
6393 | exit (statfs (".", &fsd));
|
---|
6394 | }
|
---|
6395 | _ACEOF
|
---|
6396 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
6397 | fu_cv_sys_stat_statfs2_bsize=yes
|
---|
6398 | else
|
---|
6399 | fu_cv_sys_stat_statfs2_bsize=no
|
---|
6400 | fi
|
---|
6401 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
6402 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
6403 | fi
|
---|
6404 |
|
---|
6405 | fi
|
---|
6406 |
|
---|
6407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statfs2_bsize" >&5
|
---|
6408 | $as_echo "$fu_cv_sys_stat_statfs2_bsize" >&6; }
|
---|
6409 | if test $fu_cv_sys_stat_statfs2_bsize = yes; then
|
---|
6410 | space=yes
|
---|
6411 |
|
---|
6412 | $as_echo "#define STAT_STATFS2_BSIZE 1" >>confdefs.h
|
---|
6413 |
|
---|
6414 | fi
|
---|
6415 | fi
|
---|
6416 |
|
---|
6417 | if test $space = no; then
|
---|
6418 | # SVR3
|
---|
6419 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
|
---|
6420 | $as_echo_n "checking for four-argument statfs (AIX-3.2.5, SVR3)... " >&6; }
|
---|
6421 | if test "${fu_cv_sys_stat_statfs4+set}" = set; then :
|
---|
6422 | $as_echo_n "(cached) " >&6
|
---|
6423 | else
|
---|
6424 | if test "$cross_compiling" = yes; then :
|
---|
6425 | fu_cv_sys_stat_statfs4=no
|
---|
6426 | else
|
---|
6427 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6428 | /* end confdefs.h. */
|
---|
6429 | #include <sys/types.h>
|
---|
6430 | #include <sys/statfs.h>
|
---|
6431 | main ()
|
---|
6432 | {
|
---|
6433 | struct statfs fsd;
|
---|
6434 | exit (statfs (".", &fsd, sizeof fsd, 0));
|
---|
6435 | }
|
---|
6436 | _ACEOF
|
---|
6437 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
6438 | fu_cv_sys_stat_statfs4=yes
|
---|
6439 | else
|
---|
6440 | fu_cv_sys_stat_statfs4=no
|
---|
6441 | fi
|
---|
6442 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
6443 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
6444 | fi
|
---|
6445 |
|
---|
6446 | fi
|
---|
6447 |
|
---|
6448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statfs4" >&5
|
---|
6449 | $as_echo "$fu_cv_sys_stat_statfs4" >&6; }
|
---|
6450 | if test $fu_cv_sys_stat_statfs4 = yes; then
|
---|
6451 | space=yes
|
---|
6452 |
|
---|
6453 | $as_echo "#define STAT_STATFS4 1" >>confdefs.h
|
---|
6454 |
|
---|
6455 | fi
|
---|
6456 | fi
|
---|
6457 |
|
---|
6458 | if test $space = no; then
|
---|
6459 | # 4.4BSD and NetBSD
|
---|
6460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
|
---|
6461 | $as_echo_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)... " >&6; }
|
---|
6462 | if test "${fu_cv_sys_stat_statfs2_fsize+set}" = set; then :
|
---|
6463 | $as_echo_n "(cached) " >&6
|
---|
6464 | else
|
---|
6465 | if test "$cross_compiling" = yes; then :
|
---|
6466 | fu_cv_sys_stat_statfs2_fsize=no
|
---|
6467 | else
|
---|
6468 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6469 | /* end confdefs.h. */
|
---|
6470 | #include <sys/types.h>
|
---|
6471 | #ifdef HAVE_SYS_PARAM_H
|
---|
6472 | #include <sys/param.h>
|
---|
6473 | #endif
|
---|
6474 | #ifdef HAVE_SYS_MOUNT_H
|
---|
6475 | #include <sys/mount.h>
|
---|
6476 | #endif
|
---|
6477 | main ()
|
---|
6478 | {
|
---|
6479 | struct statfs fsd;
|
---|
6480 | fsd.f_fsize = 0;
|
---|
6481 | exit (statfs (".", &fsd));
|
---|
6482 | }
|
---|
6483 | _ACEOF
|
---|
6484 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
6485 | fu_cv_sys_stat_statfs2_fsize=yes
|
---|
6486 | else
|
---|
6487 | fu_cv_sys_stat_statfs2_fsize=no
|
---|
6488 | fi
|
---|
6489 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
6490 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
6491 | fi
|
---|
6492 |
|
---|
6493 | fi
|
---|
6494 |
|
---|
6495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statfs2_fsize" >&5
|
---|
6496 | $as_echo "$fu_cv_sys_stat_statfs2_fsize" >&6; }
|
---|
6497 | if test $fu_cv_sys_stat_statfs2_fsize = yes; then
|
---|
6498 | space=yes
|
---|
6499 |
|
---|
6500 | $as_echo "#define STAT_STATFS2_FSIZE 1" >>confdefs.h
|
---|
6501 |
|
---|
6502 | fi
|
---|
6503 | fi
|
---|
6504 |
|
---|
6505 | if test $space = no; then
|
---|
6506 | # Ultrix
|
---|
6507 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
|
---|
6508 | $as_echo_n "checking for two-argument statfs with struct fs_data (Ultrix)... " >&6; }
|
---|
6509 | if test "${fu_cv_sys_stat_fs_data+set}" = set; then :
|
---|
6510 | $as_echo_n "(cached) " >&6
|
---|
6511 | else
|
---|
6512 | if test "$cross_compiling" = yes; then :
|
---|
6513 | fu_cv_sys_stat_fs_data=no
|
---|
6514 | else
|
---|
6515 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6516 | /* end confdefs.h. */
|
---|
6517 | #include <sys/types.h>
|
---|
6518 | #ifdef HAVE_SYS_PARAM_H
|
---|
6519 | #include <sys/param.h>
|
---|
6520 | #endif
|
---|
6521 | #ifdef HAVE_SYS_MOUNT_H
|
---|
6522 | #include <sys/mount.h>
|
---|
6523 | #endif
|
---|
6524 | #ifdef HAVE_SYS_FS_TYPES_H
|
---|
6525 | #include <sys/fs_types.h>
|
---|
6526 | #endif
|
---|
6527 | main ()
|
---|
6528 | {
|
---|
6529 | struct fs_data fsd;
|
---|
6530 | /* Ultrix's statfs returns 1 for success,
|
---|
6531 | 0 for not mounted, -1 for failure. */
|
---|
6532 | exit (statfs (".", &fsd) != 1);
|
---|
6533 | }
|
---|
6534 | _ACEOF
|
---|
6535 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
6536 | fu_cv_sys_stat_fs_data=yes
|
---|
6537 | else
|
---|
6538 | fu_cv_sys_stat_fs_data=no
|
---|
6539 | fi
|
---|
6540 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
6541 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
6542 | fi
|
---|
6543 |
|
---|
6544 | fi
|
---|
6545 |
|
---|
6546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_fs_data" >&5
|
---|
6547 | $as_echo "$fu_cv_sys_stat_fs_data" >&6; }
|
---|
6548 | if test $fu_cv_sys_stat_fs_data = yes; then
|
---|
6549 | space=yes
|
---|
6550 |
|
---|
6551 | $as_echo "#define STAT_STATFS2_FS_DATA 1" >>confdefs.h
|
---|
6552 |
|
---|
6553 | fi
|
---|
6554 | fi
|
---|
6555 |
|
---|
6556 | statxfs_includes="\
|
---|
6557 | $ac_includes_default
|
---|
6558 | #if HAVE_SYS_STATVFS_H
|
---|
6559 | # include <sys/statvfs.h>
|
---|
6560 | #endif
|
---|
6561 | #if HAVE_SYS_VFS_H
|
---|
6562 | # include <sys/vfs.h>
|
---|
6563 | #endif
|
---|
6564 | #if !HAVE_SYS_STATVFS_H && !HAVE_SYS_VFS_H
|
---|
6565 | # if HAVE_SYS_MOUNT_H && HAVE_SYS_PARAM_H
|
---|
6566 | /* NetBSD 1.5.2 needs these, for the declaration of struct statfs. */
|
---|
6567 | # include <sys/param.h>
|
---|
6568 | # include <sys/mount.h>
|
---|
6569 | # elif HAVE_NETINET_IN_H && HAVE_NFS_NFS_CLNT_H && HAVE_NFS_VFS_H
|
---|
6570 | /* Ultrix 4.4 needs these for the declaration of struct statfs. */
|
---|
6571 | # include <netinet/in.h>
|
---|
6572 | # include <nfs/nfs_clnt.h>
|
---|
6573 | # include <nfs/vfs.h>
|
---|
6574 | # endif
|
---|
6575 | #endif
|
---|
6576 | "
|
---|
6577 |
|
---|
6578 | ac_fn_c_check_member "$LINENO" "struct statfs" "f_namemax" "ac_cv_member_struct_statfs_f_namemax" "$statxfs_includes
|
---|
6579 | "
|
---|
6580 | if test "x$ac_cv_member_struct_statfs_f_namemax" = x""yes; then :
|
---|
6581 |
|
---|
6582 | cat >>confdefs.h <<_ACEOF
|
---|
6583 | #define HAVE_STRUCT_STATFS_F_NAMEMAX 1
|
---|
6584 | _ACEOF
|
---|
6585 |
|
---|
6586 |
|
---|
6587 | fi
|
---|
6588 |
|
---|
6589 | ac_fn_c_check_member "$LINENO" "struct statvfs" "f_namemax" "ac_cv_member_struct_statvfs_f_namemax" "$statxfs_includes
|
---|
6590 | "
|
---|
6591 | if test "x$ac_cv_member_struct_statvfs_f_namemax" = x""yes; then :
|
---|
6592 |
|
---|
6593 | cat >>confdefs.h <<_ACEOF
|
---|
6594 | #define HAVE_STRUCT_STATVFS_F_NAMEMAX 1
|
---|
6595 | _ACEOF
|
---|
6596 |
|
---|
6597 |
|
---|
6598 | fi
|
---|
6599 |
|
---|
6600 | ac_fn_c_check_member "$LINENO" "struct statfs" "f_namelen" "ac_cv_member_struct_statfs_f_namelen" "$statxfs_includes
|
---|
6601 | "
|
---|
6602 | if test "x$ac_cv_member_struct_statfs_f_namelen" = x""yes; then :
|
---|
6603 |
|
---|
6604 | cat >>confdefs.h <<_ACEOF
|
---|
6605 | #define HAVE_STRUCT_STATFS_F_NAMELEN 1
|
---|
6606 | _ACEOF
|
---|
6607 |
|
---|
6608 |
|
---|
6609 | fi
|
---|
6610 |
|
---|
6611 | ac_fn_c_check_member "$LINENO" "struct statvfs" "f_namelen" "ac_cv_member_struct_statvfs_f_namelen" "$statxfs_includes
|
---|
6612 | "
|
---|
6613 | if test "x$ac_cv_member_struct_statvfs_f_namelen" = x""yes; then :
|
---|
6614 |
|
---|
6615 | cat >>confdefs.h <<_ACEOF
|
---|
6616 | #define HAVE_STRUCT_STATVFS_F_NAMELEN 1
|
---|
6617 | _ACEOF
|
---|
6618 |
|
---|
6619 |
|
---|
6620 | fi
|
---|
6621 |
|
---|
6622 |
|
---|
6623 | #
|
---|
6624 | # Large file support
|
---|
6625 | #
|
---|
6626 | # Check whether --enable-largefile was given.
|
---|
6627 | if test "${enable_largefile+set}" = set; then :
|
---|
6628 | enableval=$enable_largefile;
|
---|
6629 | fi
|
---|
6630 |
|
---|
6631 | if test "$enable_largefile" != no; then
|
---|
6632 |
|
---|
6633 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
|
---|
6634 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
|
---|
6635 | if test "${ac_cv_sys_largefile_CC+set}" = set; then :
|
---|
6636 | $as_echo_n "(cached) " >&6
|
---|
6637 | else
|
---|
6638 | ac_cv_sys_largefile_CC=no
|
---|
6639 | if test "$GCC" != yes; then
|
---|
6640 | ac_save_CC=$CC
|
---|
6641 | while :; do
|
---|
6642 | # IRIX 6.2 and later do not support large files by default,
|
---|
6643 | # so use the C compiler's -n32 option if that helps.
|
---|
6644 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6645 | /* end confdefs.h. */
|
---|
6646 | #include <sys/types.h>
|
---|
6647 | /* Check that off_t can represent 2**63 - 1 correctly.
|
---|
6648 | We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
---|
6649 | since some C++ compilers masquerading as C compilers
|
---|
6650 | incorrectly reject 9223372036854775807. */
|
---|
6651 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
---|
6652 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
---|
6653 | && LARGE_OFF_T % 2147483647 == 1)
|
---|
6654 | ? 1 : -1];
|
---|
6655 | int
|
---|
6656 | main ()
|
---|
6657 | {
|
---|
6658 |
|
---|
6659 | ;
|
---|
6660 | return 0;
|
---|
6661 | }
|
---|
6662 | _ACEOF
|
---|
6663 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
6664 | break
|
---|
6665 | fi
|
---|
6666 | rm -f core conftest.err conftest.$ac_objext
|
---|
6667 | CC="$CC -n32"
|
---|
6668 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
6669 | ac_cv_sys_largefile_CC=' -n32'; break
|
---|
6670 | fi
|
---|
6671 | rm -f core conftest.err conftest.$ac_objext
|
---|
6672 | break
|
---|
6673 | done
|
---|
6674 | CC=$ac_save_CC
|
---|
6675 | rm -f conftest.$ac_ext
|
---|
6676 | fi
|
---|
6677 | fi
|
---|
6678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
|
---|
6679 | $as_echo "$ac_cv_sys_largefile_CC" >&6; }
|
---|
6680 | if test "$ac_cv_sys_largefile_CC" != no; then
|
---|
6681 | CC=$CC$ac_cv_sys_largefile_CC
|
---|
6682 | fi
|
---|
6683 |
|
---|
6684 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
|
---|
6685 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
|
---|
6686 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
|
---|
6687 | $as_echo_n "(cached) " >&6
|
---|
6688 | else
|
---|
6689 | while :; do
|
---|
6690 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6691 | /* end confdefs.h. */
|
---|
6692 | #include <sys/types.h>
|
---|
6693 | /* Check that off_t can represent 2**63 - 1 correctly.
|
---|
6694 | We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
---|
6695 | since some C++ compilers masquerading as C compilers
|
---|
6696 | incorrectly reject 9223372036854775807. */
|
---|
6697 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
---|
6698 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
---|
6699 | && LARGE_OFF_T % 2147483647 == 1)
|
---|
6700 | ? 1 : -1];
|
---|
6701 | int
|
---|
6702 | main ()
|
---|
6703 | {
|
---|
6704 |
|
---|
6705 | ;
|
---|
6706 | return 0;
|
---|
6707 | }
|
---|
6708 | _ACEOF
|
---|
6709 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
6710 | ac_cv_sys_file_offset_bits=no; break
|
---|
6711 | fi
|
---|
6712 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6713 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6714 | /* end confdefs.h. */
|
---|
6715 | #define _FILE_OFFSET_BITS 64
|
---|
6716 | #include <sys/types.h>
|
---|
6717 | /* Check that off_t can represent 2**63 - 1 correctly.
|
---|
6718 | We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
---|
6719 | since some C++ compilers masquerading as C compilers
|
---|
6720 | incorrectly reject 9223372036854775807. */
|
---|
6721 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
---|
6722 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
---|
6723 | && LARGE_OFF_T % 2147483647 == 1)
|
---|
6724 | ? 1 : -1];
|
---|
6725 | int
|
---|
6726 | main ()
|
---|
6727 | {
|
---|
6728 |
|
---|
6729 | ;
|
---|
6730 | return 0;
|
---|
6731 | }
|
---|
6732 | _ACEOF
|
---|
6733 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
6734 | ac_cv_sys_file_offset_bits=64; break
|
---|
6735 | fi
|
---|
6736 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6737 | ac_cv_sys_file_offset_bits=unknown
|
---|
6738 | break
|
---|
6739 | done
|
---|
6740 | fi
|
---|
6741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
|
---|
6742 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
|
---|
6743 | case $ac_cv_sys_file_offset_bits in #(
|
---|
6744 | no | unknown) ;;
|
---|
6745 | *)
|
---|
6746 | cat >>confdefs.h <<_ACEOF
|
---|
6747 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
|
---|
6748 | _ACEOF
|
---|
6749 | ;;
|
---|
6750 | esac
|
---|
6751 | rm -rf conftest*
|
---|
6752 | if test $ac_cv_sys_file_offset_bits = unknown; then
|
---|
6753 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
|
---|
6754 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
|
---|
6755 | if test "${ac_cv_sys_large_files+set}" = set; then :
|
---|
6756 | $as_echo_n "(cached) " >&6
|
---|
6757 | else
|
---|
6758 | while :; do
|
---|
6759 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6760 | /* end confdefs.h. */
|
---|
6761 | #include <sys/types.h>
|
---|
6762 | /* Check that off_t can represent 2**63 - 1 correctly.
|
---|
6763 | We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
---|
6764 | since some C++ compilers masquerading as C compilers
|
---|
6765 | incorrectly reject 9223372036854775807. */
|
---|
6766 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
---|
6767 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
---|
6768 | && LARGE_OFF_T % 2147483647 == 1)
|
---|
6769 | ? 1 : -1];
|
---|
6770 | int
|
---|
6771 | main ()
|
---|
6772 | {
|
---|
6773 |
|
---|
6774 | ;
|
---|
6775 | return 0;
|
---|
6776 | }
|
---|
6777 | _ACEOF
|
---|
6778 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
6779 | ac_cv_sys_large_files=no; break
|
---|
6780 | fi
|
---|
6781 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6782 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6783 | /* end confdefs.h. */
|
---|
6784 | #define _LARGE_FILES 1
|
---|
6785 | #include <sys/types.h>
|
---|
6786 | /* Check that off_t can represent 2**63 - 1 correctly.
|
---|
6787 | We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
---|
6788 | since some C++ compilers masquerading as C compilers
|
---|
6789 | incorrectly reject 9223372036854775807. */
|
---|
6790 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
---|
6791 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
---|
6792 | && LARGE_OFF_T % 2147483647 == 1)
|
---|
6793 | ? 1 : -1];
|
---|
6794 | int
|
---|
6795 | main ()
|
---|
6796 | {
|
---|
6797 |
|
---|
6798 | ;
|
---|
6799 | return 0;
|
---|
6800 | }
|
---|
6801 | _ACEOF
|
---|
6802 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
6803 | ac_cv_sys_large_files=1; break
|
---|
6804 | fi
|
---|
6805 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6806 | ac_cv_sys_large_files=unknown
|
---|
6807 | break
|
---|
6808 | done
|
---|
6809 | fi
|
---|
6810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
|
---|
6811 | $as_echo "$ac_cv_sys_large_files" >&6; }
|
---|
6812 | case $ac_cv_sys_large_files in #(
|
---|
6813 | no | unknown) ;;
|
---|
6814 | *)
|
---|
6815 | cat >>confdefs.h <<_ACEOF
|
---|
6816 | #define _LARGE_FILES $ac_cv_sys_large_files
|
---|
6817 | _ACEOF
|
---|
6818 | ;;
|
---|
6819 | esac
|
---|
6820 | rm -rf conftest*
|
---|
6821 | fi
|
---|
6822 | fi
|
---|
6823 |
|
---|
6824 |
|
---|
6825 | #
|
---|
6826 | # mntent
|
---|
6827 | #
|
---|
6828 | ac_fn_c_check_header_mongrel "$LINENO" "mntent.h" "ac_cv_header_mntent_h" "$ac_includes_default"
|
---|
6829 | if test "x$ac_cv_header_mntent_h" = x""yes; then :
|
---|
6830 | $as_echo "#define HAVE_MNTENT_H 1" >>confdefs.h
|
---|
6831 |
|
---|
6832 | fi
|
---|
6833 |
|
---|
6834 |
|
---|
6835 | for ac_func in setmntent
|
---|
6836 | do :
|
---|
6837 | ac_fn_c_check_func "$LINENO" "setmntent" "ac_cv_func_setmntent"
|
---|
6838 | if test "x$ac_cv_func_setmntent" = x""yes; then :
|
---|
6839 | cat >>confdefs.h <<_ACEOF
|
---|
6840 | #define HAVE_SETMNTENT 1
|
---|
6841 | _ACEOF
|
---|
6842 |
|
---|
6843 | fi
|
---|
6844 | done
|
---|
6845 |
|
---|
6846 |
|
---|
6847 | #
|
---|
6848 | # IPv6
|
---|
6849 | #
|
---|
6850 |
|
---|
6851 | # Check whether --with-ipv6 was given.
|
---|
6852 | if test "${with_ipv6+set}" = set; then :
|
---|
6853 | withval=$with_ipv6;
|
---|
6854 | if test $withval != "no";
|
---|
6855 | then
|
---|
6856 | $as_echo "#define IPv6 1" >>confdefs.h
|
---|
6857 |
|
---|
6858 | fi
|
---|
6859 |
|
---|
6860 | fi
|
---|
6861 |
|
---|
6862 |
|
---|
6863 |
|
---|
6864 | #
|
---|
6865 | # debugging
|
---|
6866 | #
|
---|
6867 |
|
---|
6868 | # Check whether --with-debug was given.
|
---|
6869 | if test "${with_debug+set}" = set; then :
|
---|
6870 | withval=$with_debug;
|
---|
6871 | if test $withval != "no";
|
---|
6872 | then
|
---|
6873 | $as_echo "#define WITH_DEBUG 1" >>confdefs.h
|
---|
6874 |
|
---|
6875 | fi
|
---|
6876 |
|
---|
6877 | fi
|
---|
6878 |
|
---|
6879 |
|
---|
6880 |
|
---|
6881 | # Check whether --with-debug-kbd was given.
|
---|
6882 | if test "${with_debug_kbd+set}" = set; then :
|
---|
6883 | withval=$with_debug_kbd;
|
---|
6884 | if test $withval != "no";
|
---|
6885 | then
|
---|
6886 | $as_echo "#define WITH_DEBUG_KBD 1" >>confdefs.h
|
---|
6887 |
|
---|
6888 | fi
|
---|
6889 |
|
---|
6890 | fi
|
---|
6891 |
|
---|
6892 |
|
---|
6893 |
|
---|
6894 | # Check whether --with-debug-rdp5 was given.
|
---|
6895 | if test "${with_debug_rdp5+set}" = set; then :
|
---|
6896 | withval=$with_debug_rdp5;
|
---|
6897 | if test $withval != "no";
|
---|
6898 | then
|
---|
6899 | $as_echo "#define WITH_DEBUG_RDP5 1" >>confdefs.h
|
---|
6900 |
|
---|
6901 | fi
|
---|
6902 |
|
---|
6903 | fi
|
---|
6904 |
|
---|
6905 |
|
---|
6906 |
|
---|
6907 | # Check whether --with-debug-clipboard was given.
|
---|
6908 | if test "${with_debug_clipboard+set}" = set; then :
|
---|
6909 | withval=$with_debug_clipboard;
|
---|
6910 | if test $withval != "no";
|
---|
6911 | then
|
---|
6912 | $as_echo "#define WITH_DEBUG_CLIPBOARD 1" >>confdefs.h
|
---|
6913 |
|
---|
6914 | fi
|
---|
6915 |
|
---|
6916 | fi
|
---|
6917 |
|
---|
6918 |
|
---|
6919 |
|
---|
6920 | # Check whether --with-debug-sound was given.
|
---|
6921 | if test "${with_debug_sound+set}" = set; then :
|
---|
6922 | withval=$with_debug_sound;
|
---|
6923 | if test $withval != "no";
|
---|
6924 | then
|
---|
6925 | $as_echo "#define WITH_DEBUG_SOUND 1" >>confdefs.h
|
---|
6926 |
|
---|
6927 | fi
|
---|
6928 |
|
---|
6929 | fi
|
---|
6930 |
|
---|
6931 |
|
---|
6932 |
|
---|
6933 | # Check whether --with-debug-channel was given.
|
---|
6934 | if test "${with_debug_channel+set}" = set; then :
|
---|
6935 | withval=$with_debug_channel;
|
---|
6936 | if test $withval != "no";
|
---|
6937 | then
|
---|
6938 | $as_echo "#define WITH_DEBUG_CHANNEL 1" >>confdefs.h
|
---|
6939 |
|
---|
6940 | fi
|
---|
6941 |
|
---|
6942 | fi
|
---|
6943 |
|
---|
6944 |
|
---|
6945 |
|
---|
6946 | # Check whether --with-debug-seamless was given.
|
---|
6947 | if test "${with_debug_seamless+set}" = set; then :
|
---|
6948 | withval=$with_debug_seamless;
|
---|
6949 | if test $withval != "no";
|
---|
6950 | then
|
---|
6951 | $as_echo "#define WITH_DEBUG_SEAMLESS 1" >>confdefs.h
|
---|
6952 |
|
---|
6953 | fi
|
---|
6954 |
|
---|
6955 | fi
|
---|
6956 |
|
---|
6957 |
|
---|
6958 |
|
---|
6959 | # Check whether --with-debug-smartcard was given.
|
---|
6960 | if test "${with_debug_smartcard+set}" = set; then :
|
---|
6961 | withval=$with_debug_smartcard;
|
---|
6962 | if test $withval != "no";
|
---|
6963 | then
|
---|
6964 | if test x"$WITH_SCARD" = "x1"; then
|
---|
6965 | $as_echo "#define WITH_DEBUG_SCARD 1" >>confdefs.h
|
---|
6966 |
|
---|
6967 | fi
|
---|
6968 | fi
|
---|
6969 |
|
---|
6970 | fi
|
---|
6971 |
|
---|
6972 |
|
---|
6973 | #
|
---|
6974 | # target-specific stuff
|
---|
6975 | #
|
---|
6976 | # strip leading colon from rpath
|
---|
6977 | rpath=`echo $rpath |sed 's/^://'`
|
---|
6978 | # Make sure we can run config.sub.
|
---|
6979 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
|
---|
6980 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
|
---|
6981 |
|
---|
6982 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
|
---|
6983 | $as_echo_n "checking build system type... " >&6; }
|
---|
6984 | if test "${ac_cv_build+set}" = set; then :
|
---|
6985 | $as_echo_n "(cached) " >&6
|
---|
6986 | else
|
---|
6987 | ac_build_alias=$build_alias
|
---|
6988 | test "x$ac_build_alias" = x &&
|
---|
6989 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
|
---|
6990 | test "x$ac_build_alias" = x &&
|
---|
6991 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
|
---|
6992 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
|
---|
6993 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
|
---|
6994 |
|
---|
6995 | fi
|
---|
6996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
|
---|
6997 | $as_echo "$ac_cv_build" >&6; }
|
---|
6998 | case $ac_cv_build in
|
---|
6999 | *-*-*) ;;
|
---|
7000 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
|
---|
7001 | esac
|
---|
7002 | build=$ac_cv_build
|
---|
7003 | ac_save_IFS=$IFS; IFS='-'
|
---|
7004 | set x $ac_cv_build
|
---|
7005 | shift
|
---|
7006 | build_cpu=$1
|
---|
7007 | build_vendor=$2
|
---|
7008 | shift; shift
|
---|
7009 | # Remember, the first character of IFS is used to create $*,
|
---|
7010 | # except with old shells:
|
---|
7011 | build_os=$*
|
---|
7012 | IFS=$ac_save_IFS
|
---|
7013 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
|
---|
7014 |
|
---|
7015 |
|
---|
7016 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
|
---|
7017 | $as_echo_n "checking host system type... " >&6; }
|
---|
7018 | if test "${ac_cv_host+set}" = set; then :
|
---|
7019 | $as_echo_n "(cached) " >&6
|
---|
7020 | else
|
---|
7021 | if test "x$host_alias" = x; then
|
---|
7022 | ac_cv_host=$ac_cv_build
|
---|
7023 | else
|
---|
7024 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
|
---|
7025 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
|
---|
7026 | fi
|
---|
7027 |
|
---|
7028 | fi
|
---|
7029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
|
---|
7030 | $as_echo "$ac_cv_host" >&6; }
|
---|
7031 | case $ac_cv_host in
|
---|
7032 | *-*-*) ;;
|
---|
7033 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
|
---|
7034 | esac
|
---|
7035 | host=$ac_cv_host
|
---|
7036 | ac_save_IFS=$IFS; IFS='-'
|
---|
7037 | set x $ac_cv_host
|
---|
7038 | shift
|
---|
7039 | host_cpu=$1
|
---|
7040 | host_vendor=$2
|
---|
7041 | shift; shift
|
---|
7042 | # Remember, the first character of IFS is used to create $*,
|
---|
7043 | # except with old shells:
|
---|
7044 | host_os=$*
|
---|
7045 | IFS=$ac_save_IFS
|
---|
7046 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
|
---|
7047 |
|
---|
7048 |
|
---|
7049 | case "$host" in
|
---|
7050 | *-*-solaris*)
|
---|
7051 | LDFLAGS="$LDFLAGS -R$rpath"
|
---|
7052 | ;;
|
---|
7053 | *-dec-osf*)
|
---|
7054 | LDFLAGS="$LDFLAGS -Wl,-rpath,$rpath"
|
---|
7055 | ;;
|
---|
7056 | *-*-hpux*)
|
---|
7057 | CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED"
|
---|
7058 | ;;
|
---|
7059 | *-*-irix6.5*)
|
---|
7060 | LIBS="$LIBS -L$ssldir/lib32 -lcrypto"
|
---|
7061 | CFLAGS="$CFLAGS -D__SGI_IRIX__"
|
---|
7062 | ;;
|
---|
7063 | esac
|
---|
7064 |
|
---|
7065 |
|
---|
7066 | ac_config_files="$ac_config_files Makefile"
|
---|
7067 |
|
---|
7068 | cat >confcache <<\_ACEOF
|
---|
7069 | # This file is a shell script that caches the results of configure
|
---|
7070 | # tests run on this system so they can be shared between configure
|
---|
7071 | # scripts and configure runs, see configure's option --config-cache.
|
---|
7072 | # It is not useful on other systems. If it contains results you don't
|
---|
7073 | # want to keep, you may remove or edit it.
|
---|
7074 | #
|
---|
7075 | # config.status only pays attention to the cache file if you give it
|
---|
7076 | # the --recheck option to rerun configure.
|
---|
7077 | #
|
---|
7078 | # `ac_cv_env_foo' variables (set or unset) will be overridden when
|
---|
7079 | # loading this file, other *unset* `ac_cv_foo' will be assigned the
|
---|
7080 | # following values.
|
---|
7081 |
|
---|
7082 | _ACEOF
|
---|
7083 |
|
---|
7084 | # The following way of writing the cache mishandles newlines in values,
|
---|
7085 | # but we know of no workaround that is simple, portable, and efficient.
|
---|
7086 | # So, we kill variables containing newlines.
|
---|
7087 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
7088 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
7089 | (
|
---|
7090 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
|
---|
7091 | eval ac_val=\$$ac_var
|
---|
7092 | case $ac_val in #(
|
---|
7093 | *${as_nl}*)
|
---|
7094 | case $ac_var in #(
|
---|
7095 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
|
---|
7096 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
|
---|
7097 | esac
|
---|
7098 | case $ac_var in #(
|
---|
7099 | _ | IFS | as_nl) ;; #(
|
---|
7100 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
|
---|
7101 | *) { eval $ac_var=; unset $ac_var;} ;;
|
---|
7102 | esac ;;
|
---|
7103 | esac
|
---|
7104 | done
|
---|
7105 |
|
---|
7106 | (set) 2>&1 |
|
---|
7107 | case $as_nl`(ac_space=' '; set) 2>&1` in #(
|
---|
7108 | *${as_nl}ac_space=\ *)
|
---|
7109 | # `set' does not quote correctly, so add quotes: double-quote
|
---|
7110 | # substitution turns \\\\ into \\, and sed turns \\ into \.
|
---|
7111 | sed -n \
|
---|
7112 | "s/'/'\\\\''/g;
|
---|
7113 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
|
---|
7114 | ;; #(
|
---|
7115 | *)
|
---|
7116 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
---|
7117 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
|
---|
7118 | ;;
|
---|
7119 | esac |
|
---|
7120 | sort
|
---|
7121 | ) |
|
---|
7122 | sed '
|
---|
7123 | /^ac_cv_env_/b end
|
---|
7124 | t clear
|
---|
7125 | :clear
|
---|
7126 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
|
---|
7127 | t end
|
---|
7128 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
|
---|
7129 | :end' >>confcache
|
---|
7130 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
|
---|
7131 | if test -w "$cache_file"; then
|
---|
7132 | test "x$cache_file" != "x/dev/null" &&
|
---|
7133 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
|
---|
7134 | $as_echo "$as_me: updating cache $cache_file" >&6;}
|
---|
7135 | cat confcache >$cache_file
|
---|
7136 | else
|
---|
7137 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
|
---|
7138 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
|
---|
7139 | fi
|
---|
7140 | fi
|
---|
7141 | rm -f confcache
|
---|
7142 |
|
---|
7143 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
---|
7144 | # Let make expand exec_prefix.
|
---|
7145 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
---|
7146 |
|
---|
7147 | # Transform confdefs.h into DEFS.
|
---|
7148 | # Protect against shell expansion while executing Makefile rules.
|
---|
7149 | # Protect against Makefile macro expansion.
|
---|
7150 | #
|
---|
7151 | # If the first sed substitution is executed (which looks for macros that
|
---|
7152 | # take arguments), then branch to the quote section. Otherwise,
|
---|
7153 | # look for a macro that doesn't take arguments.
|
---|
7154 | ac_script='
|
---|
7155 | :mline
|
---|
7156 | /\\$/{
|
---|
7157 | N
|
---|
7158 | s,\\\n,,
|
---|
7159 | b mline
|
---|
7160 | }
|
---|
7161 | t clear
|
---|
7162 | :clear
|
---|
7163 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
|
---|
7164 | t quote
|
---|
7165 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
|
---|
7166 | t quote
|
---|
7167 | b any
|
---|
7168 | :quote
|
---|
7169 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
|
---|
7170 | s/\[/\\&/g
|
---|
7171 | s/\]/\\&/g
|
---|
7172 | s/\$/$$/g
|
---|
7173 | H
|
---|
7174 | :any
|
---|
7175 | ${
|
---|
7176 | g
|
---|
7177 | s/^\n//
|
---|
7178 | s/\n/ /g
|
---|
7179 | p
|
---|
7180 | }
|
---|
7181 | '
|
---|
7182 | DEFS=`sed -n "$ac_script" confdefs.h`
|
---|
7183 |
|
---|
7184 |
|
---|
7185 | ac_libobjs=
|
---|
7186 | ac_ltlibobjs=
|
---|
7187 | U=
|
---|
7188 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
|
---|
7189 | # 1. Remove the extension, and $U if already installed.
|
---|
7190 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
|
---|
7191 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
|
---|
7192 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
|
---|
7193 | # will be set to the directory where LIBOBJS objects are built.
|
---|
7194 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
|
---|
7195 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
|
---|
7196 | done
|
---|
7197 | LIBOBJS=$ac_libobjs
|
---|
7198 |
|
---|
7199 | LTLIBOBJS=$ac_ltlibobjs
|
---|
7200 |
|
---|
7201 |
|
---|
7202 |
|
---|
7203 |
|
---|
7204 | : ${CONFIG_STATUS=./config.status}
|
---|
7205 | ac_write_fail=0
|
---|
7206 | ac_clean_files_save=$ac_clean_files
|
---|
7207 | ac_clean_files="$ac_clean_files $CONFIG_STATUS"
|
---|
7208 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
|
---|
7209 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
|
---|
7210 | as_write_fail=0
|
---|
7211 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
|
---|
7212 | #! $SHELL
|
---|
7213 | # Generated by $as_me.
|
---|
7214 | # Run this file to recreate the current configuration.
|
---|
7215 | # Compiler output produced by configure, useful for debugging
|
---|
7216 | # configure, is in config.log if it exists.
|
---|
7217 |
|
---|
7218 | debug=false
|
---|
7219 | ac_cs_recheck=false
|
---|
7220 | ac_cs_silent=false
|
---|
7221 |
|
---|
7222 | SHELL=\${CONFIG_SHELL-$SHELL}
|
---|
7223 | export SHELL
|
---|
7224 | _ASEOF
|
---|
7225 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
|
---|
7226 | ## -------------------- ##
|
---|
7227 | ## M4sh Initialization. ##
|
---|
7228 | ## -------------------- ##
|
---|
7229 |
|
---|
7230 | # Be more Bourne compatible
|
---|
7231 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
7232 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
|
---|
7233 | emulate sh
|
---|
7234 | NULLCMD=:
|
---|
7235 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
|
---|
7236 | # is contrary to our usage. Disable this feature.
|
---|
7237 | alias -g '${1+"$@"}'='"$@"'
|
---|
7238 | setopt NO_GLOB_SUBST
|
---|
7239 | else
|
---|
7240 | case `(set -o) 2>/dev/null` in #(
|
---|
7241 | *posix*) :
|
---|
7242 | set -o posix ;; #(
|
---|
7243 | *) :
|
---|
7244 | ;;
|
---|
7245 | esac
|
---|
7246 | fi
|
---|
7247 |
|
---|
7248 |
|
---|
7249 | as_nl='
|
---|
7250 | '
|
---|
7251 | export as_nl
|
---|
7252 | # Printing a long string crashes Solaris 7 /usr/bin/printf.
|
---|
7253 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
|
---|
7254 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
|
---|
7255 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
|
---|
7256 | # Prefer a ksh shell builtin over an external printf program on Solaris,
|
---|
7257 | # but without wasting forks for bash or zsh.
|
---|
7258 | if test -z "$BASH_VERSION$ZSH_VERSION" \
|
---|
7259 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
|
---|
7260 | as_echo='print -r --'
|
---|
7261 | as_echo_n='print -rn --'
|
---|
7262 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
|
---|
7263 | as_echo='printf %s\n'
|
---|
7264 | as_echo_n='printf %s'
|
---|
7265 | else
|
---|
7266 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
|
---|
7267 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
|
---|
7268 | as_echo_n='/usr/ucb/echo -n'
|
---|
7269 | else
|
---|
7270 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
|
---|
7271 | as_echo_n_body='eval
|
---|
7272 | arg=$1;
|
---|
7273 | case $arg in #(
|
---|
7274 | *"$as_nl"*)
|
---|
7275 | expr "X$arg" : "X\\(.*\\)$as_nl";
|
---|
7276 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
|
---|
7277 | esac;
|
---|
7278 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
|
---|
7279 | '
|
---|
7280 | export as_echo_n_body
|
---|
7281 | as_echo_n='sh -c $as_echo_n_body as_echo'
|
---|
7282 | fi
|
---|
7283 | export as_echo_body
|
---|
7284 | as_echo='sh -c $as_echo_body as_echo'
|
---|
7285 | fi
|
---|
7286 |
|
---|
7287 | # The user is always right.
|
---|
7288 | if test "${PATH_SEPARATOR+set}" != set; then
|
---|
7289 | PATH_SEPARATOR=:
|
---|
7290 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
|
---|
7291 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
|
---|
7292 | PATH_SEPARATOR=';'
|
---|
7293 | }
|
---|
7294 | fi
|
---|
7295 |
|
---|
7296 |
|
---|
7297 | # IFS
|
---|
7298 | # We need space, tab and new line, in precisely that order. Quoting is
|
---|
7299 | # there to prevent editors from complaining about space-tab.
|
---|
7300 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word
|
---|
7301 | # splitting by setting IFS to empty value.)
|
---|
7302 | IFS=" "" $as_nl"
|
---|
7303 |
|
---|
7304 | # Find who we are. Look in the path if we contain no directory separator.
|
---|
7305 | case $0 in #((
|
---|
7306 | *[\\/]* ) as_myself=$0 ;;
|
---|
7307 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
7308 | for as_dir in $PATH
|
---|
7309 | do
|
---|
7310 | IFS=$as_save_IFS
|
---|
7311 | test -z "$as_dir" && as_dir=.
|
---|
7312 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
---|
7313 | done
|
---|
7314 | IFS=$as_save_IFS
|
---|
7315 |
|
---|
7316 | ;;
|
---|
7317 | esac
|
---|
7318 | # We did not find ourselves, most probably we were run as `sh COMMAND'
|
---|
7319 | # in which case we are not to be found in the path.
|
---|
7320 | if test "x$as_myself" = x; then
|
---|
7321 | as_myself=$0
|
---|
7322 | fi
|
---|
7323 | if test ! -f "$as_myself"; then
|
---|
7324 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
|
---|
7325 | exit 1
|
---|
7326 | fi
|
---|
7327 |
|
---|
7328 | # Unset variables that we do not need and which cause bugs (e.g. in
|
---|
7329 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
|
---|
7330 | # suppresses any "Segmentation fault" message there. '((' could
|
---|
7331 | # trigger a bug in pdksh 5.2.14.
|
---|
7332 | for as_var in BASH_ENV ENV MAIL MAILPATH
|
---|
7333 | do eval test x\${$as_var+set} = xset \
|
---|
7334 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
|
---|
7335 | done
|
---|
7336 | PS1='$ '
|
---|
7337 | PS2='> '
|
---|
7338 | PS4='+ '
|
---|
7339 |
|
---|
7340 | # NLS nuisances.
|
---|
7341 | LC_ALL=C
|
---|
7342 | export LC_ALL
|
---|
7343 | LANGUAGE=C
|
---|
7344 | export LANGUAGE
|
---|
7345 |
|
---|
7346 | # CDPATH.
|
---|
7347 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
---|
7348 |
|
---|
7349 |
|
---|
7350 | # as_fn_error STATUS ERROR [LINENO LOG_FD]
|
---|
7351 | # ----------------------------------------
|
---|
7352 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
|
---|
7353 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
|
---|
7354 | # script with STATUS, using 1 if that was 0.
|
---|
7355 | as_fn_error ()
|
---|
7356 | {
|
---|
7357 | as_status=$1; test $as_status -eq 0 && as_status=1
|
---|
7358 | if test "$4"; then
|
---|
7359 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
7360 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
|
---|
7361 | fi
|
---|
7362 | $as_echo "$as_me: error: $2" >&2
|
---|
7363 | as_fn_exit $as_status
|
---|
7364 | } # as_fn_error
|
---|
7365 |
|
---|
7366 |
|
---|
7367 | # as_fn_set_status STATUS
|
---|
7368 | # -----------------------
|
---|
7369 | # Set $? to STATUS, without forking.
|
---|
7370 | as_fn_set_status ()
|
---|
7371 | {
|
---|
7372 | return $1
|
---|
7373 | } # as_fn_set_status
|
---|
7374 |
|
---|
7375 | # as_fn_exit STATUS
|
---|
7376 | # -----------------
|
---|
7377 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
|
---|
7378 | as_fn_exit ()
|
---|
7379 | {
|
---|
7380 | set +e
|
---|
7381 | as_fn_set_status $1
|
---|
7382 | exit $1
|
---|
7383 | } # as_fn_exit
|
---|
7384 |
|
---|
7385 | # as_fn_unset VAR
|
---|
7386 | # ---------------
|
---|
7387 | # Portably unset VAR.
|
---|
7388 | as_fn_unset ()
|
---|
7389 | {
|
---|
7390 | { eval $1=; unset $1;}
|
---|
7391 | }
|
---|
7392 | as_unset=as_fn_unset
|
---|
7393 | # as_fn_append VAR VALUE
|
---|
7394 | # ----------------------
|
---|
7395 | # Append the text in VALUE to the end of the definition contained in VAR. Take
|
---|
7396 | # advantage of any shell optimizations that allow amortized linear growth over
|
---|
7397 | # repeated appends, instead of the typical quadratic growth present in naive
|
---|
7398 | # implementations.
|
---|
7399 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
|
---|
7400 | eval 'as_fn_append ()
|
---|
7401 | {
|
---|
7402 | eval $1+=\$2
|
---|
7403 | }'
|
---|
7404 | else
|
---|
7405 | as_fn_append ()
|
---|
7406 | {
|
---|
7407 | eval $1=\$$1\$2
|
---|
7408 | }
|
---|
7409 | fi # as_fn_append
|
---|
7410 |
|
---|
7411 | # as_fn_arith ARG...
|
---|
7412 | # ------------------
|
---|
7413 | # Perform arithmetic evaluation on the ARGs, and store the result in the
|
---|
7414 | # global $as_val. Take advantage of shells that can avoid forks. The arguments
|
---|
7415 | # must be portable across $(()) and expr.
|
---|
7416 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
|
---|
7417 | eval 'as_fn_arith ()
|
---|
7418 | {
|
---|
7419 | as_val=$(( $* ))
|
---|
7420 | }'
|
---|
7421 | else
|
---|
7422 | as_fn_arith ()
|
---|
7423 | {
|
---|
7424 | as_val=`expr "$@" || test $? -eq 1`
|
---|
7425 | }
|
---|
7426 | fi # as_fn_arith
|
---|
7427 |
|
---|
7428 |
|
---|
7429 | if expr a : '\(a\)' >/dev/null 2>&1 &&
|
---|
7430 | test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
---|
7431 | as_expr=expr
|
---|
7432 | else
|
---|
7433 | as_expr=false
|
---|
7434 | fi
|
---|
7435 |
|
---|
7436 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
|
---|
7437 | as_basename=basename
|
---|
7438 | else
|
---|
7439 | as_basename=false
|
---|
7440 | fi
|
---|
7441 |
|
---|
7442 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
|
---|
7443 | as_dirname=dirname
|
---|
7444 | else
|
---|
7445 | as_dirname=false
|
---|
7446 | fi
|
---|
7447 |
|
---|
7448 | as_me=`$as_basename -- "$0" ||
|
---|
7449 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
7450 | X"$0" : 'X\(//\)$' \| \
|
---|
7451 | X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
7452 | $as_echo X/"$0" |
|
---|
7453 | sed '/^.*\/\([^/][^/]*\)\/*$/{
|
---|
7454 | s//\1/
|
---|
7455 | q
|
---|
7456 | }
|
---|
7457 | /^X\/\(\/\/\)$/{
|
---|
7458 | s//\1/
|
---|
7459 | q
|
---|
7460 | }
|
---|
7461 | /^X\/\(\/\).*/{
|
---|
7462 | s//\1/
|
---|
7463 | q
|
---|
7464 | }
|
---|
7465 | s/.*/./; q'`
|
---|
7466 |
|
---|
7467 | # Avoid depending upon Character Ranges.
|
---|
7468 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
7469 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
7470 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
7471 | as_cr_digits='0123456789'
|
---|
7472 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
7473 |
|
---|
7474 | ECHO_C= ECHO_N= ECHO_T=
|
---|
7475 | case `echo -n x` in #(((((
|
---|
7476 | -n*)
|
---|
7477 | case `echo 'xy\c'` in
|
---|
7478 | *c*) ECHO_T=' ';; # ECHO_T is single tab character.
|
---|
7479 | xy) ECHO_C='\c';;
|
---|
7480 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
|
---|
7481 | ECHO_T=' ';;
|
---|
7482 | esac;;
|
---|
7483 | *)
|
---|
7484 | ECHO_N='-n';;
|
---|
7485 | esac
|
---|
7486 |
|
---|
7487 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
7488 | if test -d conf$$.dir; then
|
---|
7489 | rm -f conf$$.dir/conf$$.file
|
---|
7490 | else
|
---|
7491 | rm -f conf$$.dir
|
---|
7492 | mkdir conf$$.dir 2>/dev/null
|
---|
7493 | fi
|
---|
7494 | if (echo >conf$$.file) 2>/dev/null; then
|
---|
7495 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
7496 | as_ln_s='ln -s'
|
---|
7497 | # ... but there are two gotchas:
|
---|
7498 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
|
---|
7499 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
|
---|
7500 | # In both cases, we have to default to `cp -p'.
|
---|
7501 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
|
---|
7502 | as_ln_s='cp -p'
|
---|
7503 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
7504 | as_ln_s=ln
|
---|
7505 | else
|
---|
7506 | as_ln_s='cp -p'
|
---|
7507 | fi
|
---|
7508 | else
|
---|
7509 | as_ln_s='cp -p'
|
---|
7510 | fi
|
---|
7511 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
|
---|
7512 | rmdir conf$$.dir 2>/dev/null
|
---|
7513 |
|
---|
7514 |
|
---|
7515 | # as_fn_mkdir_p
|
---|
7516 | # -------------
|
---|
7517 | # Create "$as_dir" as a directory, including parents if necessary.
|
---|
7518 | as_fn_mkdir_p ()
|
---|
7519 | {
|
---|
7520 |
|
---|
7521 | case $as_dir in #(
|
---|
7522 | -*) as_dir=./$as_dir;;
|
---|
7523 | esac
|
---|
7524 | test -d "$as_dir" || eval $as_mkdir_p || {
|
---|
7525 | as_dirs=
|
---|
7526 | while :; do
|
---|
7527 | case $as_dir in #(
|
---|
7528 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
|
---|
7529 | *) as_qdir=$as_dir;;
|
---|
7530 | esac
|
---|
7531 | as_dirs="'$as_qdir' $as_dirs"
|
---|
7532 | as_dir=`$as_dirname -- "$as_dir" ||
|
---|
7533 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
7534 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
7535 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
7536 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
7537 | $as_echo X"$as_dir" |
|
---|
7538 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
7539 | s//\1/
|
---|
7540 | q
|
---|
7541 | }
|
---|
7542 | /^X\(\/\/\)[^/].*/{
|
---|
7543 | s//\1/
|
---|
7544 | q
|
---|
7545 | }
|
---|
7546 | /^X\(\/\/\)$/{
|
---|
7547 | s//\1/
|
---|
7548 | q
|
---|
7549 | }
|
---|
7550 | /^X\(\/\).*/{
|
---|
7551 | s//\1/
|
---|
7552 | q
|
---|
7553 | }
|
---|
7554 | s/.*/./; q'`
|
---|
7555 | test -d "$as_dir" && break
|
---|
7556 | done
|
---|
7557 | test -z "$as_dirs" || eval "mkdir $as_dirs"
|
---|
7558 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
|
---|
7559 |
|
---|
7560 |
|
---|
7561 | } # as_fn_mkdir_p
|
---|
7562 | if mkdir -p . 2>/dev/null; then
|
---|
7563 | as_mkdir_p='mkdir -p "$as_dir"'
|
---|
7564 | else
|
---|
7565 | test -d ./-p && rmdir ./-p
|
---|
7566 | as_mkdir_p=false
|
---|
7567 | fi
|
---|
7568 |
|
---|
7569 | if test -x / >/dev/null 2>&1; then
|
---|
7570 | as_test_x='test -x'
|
---|
7571 | else
|
---|
7572 | if ls -dL / >/dev/null 2>&1; then
|
---|
7573 | as_ls_L_option=L
|
---|
7574 | else
|
---|
7575 | as_ls_L_option=
|
---|
7576 | fi
|
---|
7577 | as_test_x='
|
---|
7578 | eval sh -c '\''
|
---|
7579 | if test -d "$1"; then
|
---|
7580 | test -d "$1/.";
|
---|
7581 | else
|
---|
7582 | case $1 in #(
|
---|
7583 | -*)set "./$1";;
|
---|
7584 | esac;
|
---|
7585 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
|
---|
7586 | ???[sx]*):;;*)false;;esac;fi
|
---|
7587 | '\'' sh
|
---|
7588 | '
|
---|
7589 | fi
|
---|
7590 | as_executable_p=$as_test_x
|
---|
7591 |
|
---|
7592 | # Sed expression to map a string onto a valid CPP name.
|
---|
7593 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
---|
7594 |
|
---|
7595 | # Sed expression to map a string onto a valid variable name.
|
---|
7596 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
---|
7597 |
|
---|
7598 |
|
---|
7599 | exec 6>&1
|
---|
7600 | ## ----------------------------------- ##
|
---|
7601 | ## Main body of $CONFIG_STATUS script. ##
|
---|
7602 | ## ----------------------------------- ##
|
---|
7603 | _ASEOF
|
---|
7604 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
|
---|
7605 |
|
---|
7606 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
7607 | # Save the log message, to keep $0 and so on meaningful, and to
|
---|
7608 | # report actual input values of CONFIG_FILES etc. instead of their
|
---|
7609 | # values after options handling.
|
---|
7610 | ac_log="
|
---|
7611 | This file was extended by rdesktop $as_me 1.6.0, which was
|
---|
7612 | generated by GNU Autoconf 2.67. Invocation command line was
|
---|
7613 |
|
---|
7614 | CONFIG_FILES = $CONFIG_FILES
|
---|
7615 | CONFIG_HEADERS = $CONFIG_HEADERS
|
---|
7616 | CONFIG_LINKS = $CONFIG_LINKS
|
---|
7617 | CONFIG_COMMANDS = $CONFIG_COMMANDS
|
---|
7618 | $ $0 $@
|
---|
7619 |
|
---|
7620 | on `(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
7621 | "
|
---|
7622 |
|
---|
7623 | _ACEOF
|
---|
7624 |
|
---|
7625 | case $ac_config_files in *"
|
---|
7626 | "*) set x $ac_config_files; shift; ac_config_files=$*;;
|
---|
7627 | esac
|
---|
7628 |
|
---|
7629 |
|
---|
7630 |
|
---|
7631 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
7632 | # Files that config.status was made for.
|
---|
7633 | config_files="$ac_config_files"
|
---|
7634 |
|
---|
7635 | _ACEOF
|
---|
7636 |
|
---|
7637 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
7638 | ac_cs_usage="\
|
---|
7639 | \`$as_me' instantiates files and other configuration actions
|
---|
7640 | from templates according to the current configuration. Unless the files
|
---|
7641 | and actions are specified as TAGs, all are instantiated by default.
|
---|
7642 |
|
---|
7643 | Usage: $0 [OPTION]... [TAG]...
|
---|
7644 |
|
---|
7645 | -h, --help print this help, then exit
|
---|
7646 | -V, --version print version number and configuration settings, then exit
|
---|
7647 | --config print configuration, then exit
|
---|
7648 | -q, --quiet, --silent
|
---|
7649 | do not print progress messages
|
---|
7650 | -d, --debug don't remove temporary files
|
---|
7651 | --recheck update $as_me by reconfiguring in the same conditions
|
---|
7652 | --file=FILE[:TEMPLATE]
|
---|
7653 | instantiate the configuration file FILE
|
---|
7654 |
|
---|
7655 | Configuration files:
|
---|
7656 | $config_files
|
---|
7657 |
|
---|
7658 | Report bugs to the package provider."
|
---|
7659 |
|
---|
7660 | _ACEOF
|
---|
7661 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
7662 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
|
---|
7663 | ac_cs_version="\\
|
---|
7664 | rdesktop config.status 1.6.0
|
---|
7665 | configured by $0, generated by GNU Autoconf 2.67,
|
---|
7666 | with options \\"\$ac_cs_config\\"
|
---|
7667 |
|
---|
7668 | Copyright (C) 2010 Free Software Foundation, Inc.
|
---|
7669 | This config.status script is free software; the Free Software Foundation
|
---|
7670 | gives unlimited permission to copy, distribute and modify it."
|
---|
7671 |
|
---|
7672 | ac_pwd='$ac_pwd'
|
---|
7673 | srcdir='$srcdir'
|
---|
7674 | INSTALL='$INSTALL'
|
---|
7675 | test -n "\$AWK" || AWK=awk
|
---|
7676 | _ACEOF
|
---|
7677 |
|
---|
7678 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
7679 | # The default lists apply if the user does not specify any file.
|
---|
7680 | ac_need_defaults=:
|
---|
7681 | while test $# != 0
|
---|
7682 | do
|
---|
7683 | case $1 in
|
---|
7684 | --*=?*)
|
---|
7685 | ac_option=`expr "X$1" : 'X\([^=]*\)='`
|
---|
7686 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
|
---|
7687 | ac_shift=:
|
---|
7688 | ;;
|
---|
7689 | --*=)
|
---|
7690 | ac_option=`expr "X$1" : 'X\([^=]*\)='`
|
---|
7691 | ac_optarg=
|
---|
7692 | ac_shift=:
|
---|
7693 | ;;
|
---|
7694 | *)
|
---|
7695 | ac_option=$1
|
---|
7696 | ac_optarg=$2
|
---|
7697 | ac_shift=shift
|
---|
7698 | ;;
|
---|
7699 | esac
|
---|
7700 |
|
---|
7701 | case $ac_option in
|
---|
7702 | # Handling of the options.
|
---|
7703 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
---|
7704 | ac_cs_recheck=: ;;
|
---|
7705 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
|
---|
7706 | $as_echo "$ac_cs_version"; exit ;;
|
---|
7707 | --config | --confi | --conf | --con | --co | --c )
|
---|
7708 | $as_echo "$ac_cs_config"; exit ;;
|
---|
7709 | --debug | --debu | --deb | --de | --d | -d )
|
---|
7710 | debug=: ;;
|
---|
7711 | --file | --fil | --fi | --f )
|
---|
7712 | $ac_shift
|
---|
7713 | case $ac_optarg in
|
---|
7714 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
7715 | '') as_fn_error $? "missing file argument" ;;
|
---|
7716 | esac
|
---|
7717 | as_fn_append CONFIG_FILES " '$ac_optarg'"
|
---|
7718 | ac_need_defaults=false;;
|
---|
7719 | --he | --h | --help | --hel | -h )
|
---|
7720 | $as_echo "$ac_cs_usage"; exit ;;
|
---|
7721 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
7722 | | -silent | --silent | --silen | --sile | --sil | --si | --s)
|
---|
7723 | ac_cs_silent=: ;;
|
---|
7724 |
|
---|
7725 | # This is an error.
|
---|
7726 | -*) as_fn_error $? "unrecognized option: \`$1'
|
---|
7727 | Try \`$0 --help' for more information." ;;
|
---|
7728 |
|
---|
7729 | *) as_fn_append ac_config_targets " $1"
|
---|
7730 | ac_need_defaults=false ;;
|
---|
7731 |
|
---|
7732 | esac
|
---|
7733 | shift
|
---|
7734 | done
|
---|
7735 |
|
---|
7736 | ac_configure_extra_args=
|
---|
7737 |
|
---|
7738 | if $ac_cs_silent; then
|
---|
7739 | exec 6>/dev/null
|
---|
7740 | ac_configure_extra_args="$ac_configure_extra_args --silent"
|
---|
7741 | fi
|
---|
7742 |
|
---|
7743 | _ACEOF
|
---|
7744 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
7745 | if \$ac_cs_recheck; then
|
---|
7746 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
|
---|
7747 | shift
|
---|
7748 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
|
---|
7749 | CONFIG_SHELL='$SHELL'
|
---|
7750 | export CONFIG_SHELL
|
---|
7751 | exec "\$@"
|
---|
7752 | fi
|
---|
7753 |
|
---|
7754 | _ACEOF
|
---|
7755 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
7756 | exec 5>>config.log
|
---|
7757 | {
|
---|
7758 | echo
|
---|
7759 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
|
---|
7760 | ## Running $as_me. ##
|
---|
7761 | _ASBOX
|
---|
7762 | $as_echo "$ac_log"
|
---|
7763 | } >&5
|
---|
7764 |
|
---|
7765 | _ACEOF
|
---|
7766 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
7767 | _ACEOF
|
---|
7768 |
|
---|
7769 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
7770 |
|
---|
7771 | # Handling of arguments.
|
---|
7772 | for ac_config_target in $ac_config_targets
|
---|
7773 | do
|
---|
7774 | case $ac_config_target in
|
---|
7775 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
|
---|
7776 |
|
---|
7777 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
|
---|
7778 | esac
|
---|
7779 | done
|
---|
7780 |
|
---|
7781 |
|
---|
7782 | # If the user did not use the arguments to specify the items to instantiate,
|
---|
7783 | # then the envvar interface is used. Set only those that are not.
|
---|
7784 | # We use the long form for the default assignment because of an extremely
|
---|
7785 | # bizarre bug on SunOS 4.1.3.
|
---|
7786 | if $ac_need_defaults; then
|
---|
7787 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
|
---|
7788 | fi
|
---|
7789 |
|
---|
7790 | # Have a temporary directory for convenience. Make it in the build tree
|
---|
7791 | # simply because there is no reason against having it here, and in addition,
|
---|
7792 | # creating and moving files from /tmp can sometimes cause problems.
|
---|
7793 | # Hook for its removal unless debugging.
|
---|
7794 | # Note that there is a small window in which the directory will not be cleaned:
|
---|
7795 | # after its creation but before its name has been assigned to `$tmp'.
|
---|
7796 | $debug ||
|
---|
7797 | {
|
---|
7798 | tmp=
|
---|
7799 | trap 'exit_status=$?
|
---|
7800 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
|
---|
7801 | ' 0
|
---|
7802 | trap 'as_fn_exit 1' 1 2 13 15
|
---|
7803 | }
|
---|
7804 | # Create a (secure) tmp directory for tmp files.
|
---|
7805 |
|
---|
7806 | {
|
---|
7807 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
|
---|
7808 | test -n "$tmp" && test -d "$tmp"
|
---|
7809 | } ||
|
---|
7810 | {
|
---|
7811 | tmp=./conf$$-$RANDOM
|
---|
7812 | (umask 077 && mkdir "$tmp")
|
---|
7813 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
|
---|
7814 |
|
---|
7815 | # Set up the scripts for CONFIG_FILES section.
|
---|
7816 | # No need to generate them if there are no CONFIG_FILES.
|
---|
7817 | # This happens for instance with `./config.status config.h'.
|
---|
7818 | if test -n "$CONFIG_FILES"; then
|
---|
7819 |
|
---|
7820 |
|
---|
7821 | ac_cr=`echo X | tr X '\015'`
|
---|
7822 | # On cygwin, bash can eat \r inside `` if the user requested igncr.
|
---|
7823 | # But we know of no other shell where ac_cr would be empty at this
|
---|
7824 | # point, so we can use a bashism as a fallback.
|
---|
7825 | if test "x$ac_cr" = x; then
|
---|
7826 | eval ac_cr=\$\'\\r\'
|
---|
7827 | fi
|
---|
7828 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
|
---|
7829 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
|
---|
7830 | ac_cs_awk_cr='\\r'
|
---|
7831 | else
|
---|
7832 | ac_cs_awk_cr=$ac_cr
|
---|
7833 | fi
|
---|
7834 |
|
---|
7835 | echo 'BEGIN {' >"$tmp/subs1.awk" &&
|
---|
7836 | _ACEOF
|
---|
7837 |
|
---|
7838 |
|
---|
7839 | {
|
---|
7840 | echo "cat >conf$$subs.awk <<_ACEOF" &&
|
---|
7841 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
|
---|
7842 | echo "_ACEOF"
|
---|
7843 | } >conf$$subs.sh ||
|
---|
7844 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
|
---|
7845 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
|
---|
7846 | ac_delim='%!_!# '
|
---|
7847 | for ac_last_try in false false false false false :; do
|
---|
7848 | . ./conf$$subs.sh ||
|
---|
7849 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
|
---|
7850 |
|
---|
7851 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
|
---|
7852 | if test $ac_delim_n = $ac_delim_num; then
|
---|
7853 | break
|
---|
7854 | elif $ac_last_try; then
|
---|
7855 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
|
---|
7856 | else
|
---|
7857 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
|
---|
7858 | fi
|
---|
7859 | done
|
---|
7860 | rm -f conf$$subs.sh
|
---|
7861 |
|
---|
7862 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
7863 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
|
---|
7864 | _ACEOF
|
---|
7865 | sed -n '
|
---|
7866 | h
|
---|
7867 | s/^/S["/; s/!.*/"]=/
|
---|
7868 | p
|
---|
7869 | g
|
---|
7870 | s/^[^!]*!//
|
---|
7871 | :repl
|
---|
7872 | t repl
|
---|
7873 | s/'"$ac_delim"'$//
|
---|
7874 | t delim
|
---|
7875 | :nl
|
---|
7876 | h
|
---|
7877 | s/\(.\{148\}\)..*/\1/
|
---|
7878 | t more1
|
---|
7879 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
|
---|
7880 | p
|
---|
7881 | n
|
---|
7882 | b repl
|
---|
7883 | :more1
|
---|
7884 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/
|
---|
7885 | p
|
---|
7886 | g
|
---|
7887 | s/.\{148\}//
|
---|
7888 | t nl
|
---|
7889 | :delim
|
---|
7890 | h
|
---|
7891 | s/\(.\{148\}\)..*/\1/
|
---|
7892 | t more2
|
---|
7893 | s/["\\]/\\&/g; s/^/"/; s/$/"/
|
---|
7894 | p
|
---|
7895 | b
|
---|
7896 | :more2
|
---|
7897 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/
|
---|
7898 | p
|
---|
7899 | g
|
---|
7900 | s/.\{148\}//
|
---|
7901 | t delim
|
---|
7902 | ' <conf$$subs.awk | sed '
|
---|
7903 | /^[^""]/{
|
---|
7904 | N
|
---|
7905 | s/\n//
|
---|
7906 | }
|
---|
7907 | ' >>$CONFIG_STATUS || ac_write_fail=1
|
---|
7908 | rm -f conf$$subs.awk
|
---|
7909 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
7910 | _ACAWK
|
---|
7911 | cat >>"\$tmp/subs1.awk" <<_ACAWK &&
|
---|
7912 | for (key in S) S_is_set[key] = 1
|
---|
7913 | FS = ""
|
---|
7914 |
|
---|
7915 | }
|
---|
7916 | {
|
---|
7917 | line = $ 0
|
---|
7918 | nfields = split(line, field, "@")
|
---|
7919 | substed = 0
|
---|
7920 | len = length(field[1])
|
---|
7921 | for (i = 2; i < nfields; i++) {
|
---|
7922 | key = field[i]
|
---|
7923 | keylen = length(key)
|
---|
7924 | if (S_is_set[key]) {
|
---|
7925 | value = S[key]
|
---|
7926 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
|
---|
7927 | len += length(value) + length(field[++i])
|
---|
7928 | substed = 1
|
---|
7929 | } else
|
---|
7930 | len += 1 + keylen
|
---|
7931 | }
|
---|
7932 |
|
---|
7933 | print line
|
---|
7934 | }
|
---|
7935 |
|
---|
7936 | _ACAWK
|
---|
7937 | _ACEOF
|
---|
7938 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
7939 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
|
---|
7940 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
|
---|
7941 | else
|
---|
7942 | cat
|
---|
7943 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
|
---|
7944 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
|
---|
7945 | _ACEOF
|
---|
7946 |
|
---|
7947 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
|
---|
7948 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
|
---|
7949 | # trailing colons and then remove the whole line if VPATH becomes empty
|
---|
7950 | # (actually we leave an empty line to preserve line numbers).
|
---|
7951 | if test "x$srcdir" = x.; then
|
---|
7952 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
|
---|
7953 | h
|
---|
7954 | s///
|
---|
7955 | s/^/:/
|
---|
7956 | s/[ ]*$/:/
|
---|
7957 | s/:\$(srcdir):/:/g
|
---|
7958 | s/:\${srcdir}:/:/g
|
---|
7959 | s/:@srcdir@:/:/g
|
---|
7960 | s/^:*//
|
---|
7961 | s/:*$//
|
---|
7962 | x
|
---|
7963 | s/\(=[ ]*\).*/\1/
|
---|
7964 | G
|
---|
7965 | s/\n//
|
---|
7966 | s/^[^=]*=[ ]*$//
|
---|
7967 | }'
|
---|
7968 | fi
|
---|
7969 |
|
---|
7970 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
7971 | fi # test -n "$CONFIG_FILES"
|
---|
7972 |
|
---|
7973 |
|
---|
7974 | eval set X " :F $CONFIG_FILES "
|
---|
7975 | shift
|
---|
7976 | for ac_tag
|
---|
7977 | do
|
---|
7978 | case $ac_tag in
|
---|
7979 | :[FHLC]) ac_mode=$ac_tag; continue;;
|
---|
7980 | esac
|
---|
7981 | case $ac_mode$ac_tag in
|
---|
7982 | :[FHL]*:*);;
|
---|
7983 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
|
---|
7984 | :[FH]-) ac_tag=-:-;;
|
---|
7985 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
|
---|
7986 | esac
|
---|
7987 | ac_save_IFS=$IFS
|
---|
7988 | IFS=:
|
---|
7989 | set x $ac_tag
|
---|
7990 | IFS=$ac_save_IFS
|
---|
7991 | shift
|
---|
7992 | ac_file=$1
|
---|
7993 | shift
|
---|
7994 |
|
---|
7995 | case $ac_mode in
|
---|
7996 | :L) ac_source=$1;;
|
---|
7997 | :[FH])
|
---|
7998 | ac_file_inputs=
|
---|
7999 | for ac_f
|
---|
8000 | do
|
---|
8001 | case $ac_f in
|
---|
8002 | -) ac_f="$tmp/stdin";;
|
---|
8003 | *) # Look for the file first in the build tree, then in the source tree
|
---|
8004 | # (if the path is not absolute). The absolute path cannot be DOS-style,
|
---|
8005 | # because $ac_f cannot contain `:'.
|
---|
8006 | test -f "$ac_f" ||
|
---|
8007 | case $ac_f in
|
---|
8008 | [\\/$]*) false;;
|
---|
8009 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
|
---|
8010 | esac ||
|
---|
8011 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
|
---|
8012 | esac
|
---|
8013 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
|
---|
8014 | as_fn_append ac_file_inputs " '$ac_f'"
|
---|
8015 | done
|
---|
8016 |
|
---|
8017 | # Let's still pretend it is `configure' which instantiates (i.e., don't
|
---|
8018 | # use $as_me), people would be surprised to read:
|
---|
8019 | # /* config.h. Generated by config.status. */
|
---|
8020 | configure_input='Generated from '`
|
---|
8021 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
|
---|
8022 | `' by configure.'
|
---|
8023 | if test x"$ac_file" != x-; then
|
---|
8024 | configure_input="$ac_file. $configure_input"
|
---|
8025 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
|
---|
8026 | $as_echo "$as_me: creating $ac_file" >&6;}
|
---|
8027 | fi
|
---|
8028 | # Neutralize special characters interpreted by sed in replacement strings.
|
---|
8029 | case $configure_input in #(
|
---|
8030 | *\&* | *\|* | *\\* )
|
---|
8031 | ac_sed_conf_input=`$as_echo "$configure_input" |
|
---|
8032 | sed 's/[\\\\&|]/\\\\&/g'`;; #(
|
---|
8033 | *) ac_sed_conf_input=$configure_input;;
|
---|
8034 | esac
|
---|
8035 |
|
---|
8036 | case $ac_tag in
|
---|
8037 | *:-:* | *:-) cat >"$tmp/stdin" \
|
---|
8038 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
|
---|
8039 | esac
|
---|
8040 | ;;
|
---|
8041 | esac
|
---|
8042 |
|
---|
8043 | ac_dir=`$as_dirname -- "$ac_file" ||
|
---|
8044 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
8045 | X"$ac_file" : 'X\(//\)[^/]' \| \
|
---|
8046 | X"$ac_file" : 'X\(//\)$' \| \
|
---|
8047 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
8048 | $as_echo X"$ac_file" |
|
---|
8049 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
8050 | s//\1/
|
---|
8051 | q
|
---|
8052 | }
|
---|
8053 | /^X\(\/\/\)[^/].*/{
|
---|
8054 | s//\1/
|
---|
8055 | q
|
---|
8056 | }
|
---|
8057 | /^X\(\/\/\)$/{
|
---|
8058 | s//\1/
|
---|
8059 | q
|
---|
8060 | }
|
---|
8061 | /^X\(\/\).*/{
|
---|
8062 | s//\1/
|
---|
8063 | q
|
---|
8064 | }
|
---|
8065 | s/.*/./; q'`
|
---|
8066 | as_dir="$ac_dir"; as_fn_mkdir_p
|
---|
8067 | ac_builddir=.
|
---|
8068 |
|
---|
8069 | case "$ac_dir" in
|
---|
8070 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
8071 | *)
|
---|
8072 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
|
---|
8073 | # A ".." for each directory in $ac_dir_suffix.
|
---|
8074 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
|
---|
8075 | case $ac_top_builddir_sub in
|
---|
8076 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
8077 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
---|
8078 | esac ;;
|
---|
8079 | esac
|
---|
8080 | ac_abs_top_builddir=$ac_pwd
|
---|
8081 | ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
---|
8082 | # for backward compatibility:
|
---|
8083 | ac_top_builddir=$ac_top_build_prefix
|
---|
8084 |
|
---|
8085 | case $srcdir in
|
---|
8086 | .) # We are building in place.
|
---|
8087 | ac_srcdir=.
|
---|
8088 | ac_top_srcdir=$ac_top_builddir_sub
|
---|
8089 | ac_abs_top_srcdir=$ac_pwd ;;
|
---|
8090 | [\\/]* | ?:[\\/]* ) # Absolute name.
|
---|
8091 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
8092 | ac_top_srcdir=$srcdir
|
---|
8093 | ac_abs_top_srcdir=$srcdir ;;
|
---|
8094 | *) # Relative name.
|
---|
8095 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
---|
8096 | ac_top_srcdir=$ac_top_build_prefix$srcdir
|
---|
8097 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
---|
8098 | esac
|
---|
8099 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
---|
8100 |
|
---|
8101 |
|
---|
8102 | case $ac_mode in
|
---|
8103 | :F)
|
---|
8104 | #
|
---|
8105 | # CONFIG_FILE
|
---|
8106 | #
|
---|
8107 |
|
---|
8108 | case $INSTALL in
|
---|
8109 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
|
---|
8110 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
|
---|
8111 | esac
|
---|
8112 | _ACEOF
|
---|
8113 |
|
---|
8114 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
8115 | # If the template does not know about datarootdir, expand it.
|
---|
8116 | # FIXME: This hack should be removed a few years after 2.60.
|
---|
8117 | ac_datarootdir_hack=; ac_datarootdir_seen=
|
---|
8118 | ac_sed_dataroot='
|
---|
8119 | /datarootdir/ {
|
---|
8120 | p
|
---|
8121 | q
|
---|
8122 | }
|
---|
8123 | /@datadir@/p
|
---|
8124 | /@docdir@/p
|
---|
8125 | /@infodir@/p
|
---|
8126 | /@localedir@/p
|
---|
8127 | /@mandir@/p'
|
---|
8128 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
|
---|
8129 | *datarootdir*) ac_datarootdir_seen=yes;;
|
---|
8130 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
|
---|
8131 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
|
---|
8132 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
|
---|
8133 | _ACEOF
|
---|
8134 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
8135 | ac_datarootdir_hack='
|
---|
8136 | s&@datadir@&$datadir&g
|
---|
8137 | s&@docdir@&$docdir&g
|
---|
8138 | s&@infodir@&$infodir&g
|
---|
8139 | s&@localedir@&$localedir&g
|
---|
8140 | s&@mandir@&$mandir&g
|
---|
8141 | s&\\\${datarootdir}&$datarootdir&g' ;;
|
---|
8142 | esac
|
---|
8143 | _ACEOF
|
---|
8144 |
|
---|
8145 | # Neutralize VPATH when `$srcdir' = `.'.
|
---|
8146 | # Shell code in configure.ac might set extrasub.
|
---|
8147 | # FIXME: do we really want to maintain this feature?
|
---|
8148 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
8149 | ac_sed_extra="$ac_vpsub
|
---|
8150 | $extrasub
|
---|
8151 | _ACEOF
|
---|
8152 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
8153 | :t
|
---|
8154 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
|
---|
8155 | s|@configure_input@|$ac_sed_conf_input|;t t
|
---|
8156 | s&@top_builddir@&$ac_top_builddir_sub&;t t
|
---|
8157 | s&@top_build_prefix@&$ac_top_build_prefix&;t t
|
---|
8158 | s&@srcdir@&$ac_srcdir&;t t
|
---|
8159 | s&@abs_srcdir@&$ac_abs_srcdir&;t t
|
---|
8160 | s&@top_srcdir@&$ac_top_srcdir&;t t
|
---|
8161 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
|
---|
8162 | s&@builddir@&$ac_builddir&;t t
|
---|
8163 | s&@abs_builddir@&$ac_abs_builddir&;t t
|
---|
8164 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
|
---|
8165 | s&@INSTALL@&$ac_INSTALL&;t t
|
---|
8166 | $ac_datarootdir_hack
|
---|
8167 | "
|
---|
8168 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
|
---|
8169 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
---|
8170 |
|
---|
8171 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
|
---|
8172 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
|
---|
8173 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
|
---|
8174 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
|
---|
8175 | which seems to be undefined. Please make sure it is defined" >&5
|
---|
8176 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
|
---|
8177 | which seems to be undefined. Please make sure it is defined" >&2;}
|
---|
8178 |
|
---|
8179 | rm -f "$tmp/stdin"
|
---|
8180 | case $ac_file in
|
---|
8181 | -) cat "$tmp/out" && rm -f "$tmp/out";;
|
---|
8182 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
|
---|
8183 | esac \
|
---|
8184 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
---|
8185 | ;;
|
---|
8186 |
|
---|
8187 |
|
---|
8188 |
|
---|
8189 | esac
|
---|
8190 |
|
---|
8191 | done # for ac_tag
|
---|
8192 |
|
---|
8193 |
|
---|
8194 | as_fn_exit 0
|
---|
8195 | _ACEOF
|
---|
8196 | ac_clean_files=$ac_clean_files_save
|
---|
8197 |
|
---|
8198 | test $ac_write_fail = 0 ||
|
---|
8199 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
|
---|
8200 |
|
---|
8201 |
|
---|
8202 | # configure is writing to config.log, and then calls config.status.
|
---|
8203 | # config.status does its own redirection, appending to config.log.
|
---|
8204 | # Unfortunately, on DOS this fails, as config.log is still kept open
|
---|
8205 | # by configure, so config.status won't be able to write to it; its
|
---|
8206 | # output is simply discarded. So we exec the FD to /dev/null,
|
---|
8207 | # effectively closing config.log, so it can be properly (re)opened and
|
---|
8208 | # appended to by config.status. When coming back to configure, we
|
---|
8209 | # need to make the FD available again.
|
---|
8210 | if test "$no_create" != yes; then
|
---|
8211 | ac_cs_success=:
|
---|
8212 | ac_config_status_args=
|
---|
8213 | test "$silent" = yes &&
|
---|
8214 | ac_config_status_args="$ac_config_status_args --quiet"
|
---|
8215 | exec 5>/dev/null
|
---|
8216 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
|
---|
8217 | exec 5>>config.log
|
---|
8218 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which
|
---|
8219 | # would make configure fail if this is the last instruction.
|
---|
8220 | $ac_cs_success || as_fn_exit 1
|
---|
8221 | fi
|
---|
8222 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
|
---|
8223 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
|
---|
8224 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
|
---|
8225 | fi
|
---|
8226 |
|
---|
8227 |
|
---|