"Fossies" - the Fresh Open Source Software Archive 
Member "postal-0.76/configure" (13 Dec 2016, 154653 Bytes) of package /linux/privat/postal-0.76.tgz:
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style:
standard) with prefixed line numbers and
code folding option.
Alternatively you can here
view or
download the uninterpreted source code file.
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
204 fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211 do
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225 fi
226 fi
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
258 fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
271 fi
272 exit 1
273 fi
274 fi
275 fi
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
281
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
289 {
290 { eval $1=; unset $1;}
291 }
292 as_unset=as_fn_unset
293
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
298 {
299 return $1
300 } # as_fn_set_status
301
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
306 {
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
311
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
316 {
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358 } # as_fn_mkdir_p
359
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
364 {
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378 else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383 fi # as_fn_append
384
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395 else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400 fi # as_fn_arith
401
402
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
409 {
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414 fi
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
418
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
424 fi
425
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
430 fi
431
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
436 fi
437
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
456
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
479 N
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
498 }
499
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
509 *)
510 ECHO_N='-n';;
511 esac
512
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
519 fi
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
533 fi
534 else
535 as_ln_s='cp -pR'
536 fi
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
539
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545 fi
546
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
549
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
559
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565 #
566 # Initializations.
567 #
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
576
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
584
585 ac_unique_file="postal.cpp"
586 # Factoring default headers for most tests.
587 ac_includes_default="\
588 #include <stdio.h>
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
591 #endif
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
594 #endif
595 #ifdef STDC_HEADERS
596 # include <stdlib.h>
597 # include <stddef.h>
598 #else
599 # ifdef HAVE_STDLIB_H
600 # include <stdlib.h>
601 # endif
602 #endif
603 #ifdef HAVE_STRING_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 # include <memory.h>
606 # endif
607 # include <string.h>
608 #endif
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
611 #endif
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
614 #endif
615 #ifdef HAVE_STDINT_H
616 # include <stdint.h>
617 #endif
618 #ifdef HAVE_UNISTD_H
619 # include <unistd.h>
620 #endif"
621
622 ac_subst_vars='LTLIBOBJS
623 LIBOBJS
624 socklen_t
625 large_file
626 crypt_ldflags
627 linux_pthread
628 extra_objs
629 openssl
630 gnutls
631 extra_ldflags
632 snprintf
633 true_false
634 bool
635 semun
636 EGREP
637 GREP
638 INSTALL_DATA
639 INSTALL_SCRIPT
640 INSTALL_PROGRAM
641 CXXCPP
642 ac_ct_CXX
643 CXXFLAGS
644 CXX
645 OBJEXT
646 EXEEXT
647 ac_ct_CC
648 CPPFLAGS
649 LDFLAGS
650 CFLAGS
651 CC
652 version
653 target_alias
654 host_alias
655 build_alias
656 LIBS
657 ECHO_T
658 ECHO_N
659 ECHO_C
660 DEFS
661 mandir
662 localedir
663 libdir
664 psdir
665 pdfdir
666 dvidir
667 htmldir
668 infodir
669 docdir
670 oldincludedir
671 includedir
672 runstatedir
673 localstatedir
674 sharedstatedir
675 sysconfdir
676 datadir
677 datarootdir
678 libexecdir
679 sbindir
680 bindir
681 program_transform_name
682 prefix
683 exec_prefix
684 PACKAGE_URL
685 PACKAGE_BUGREPORT
686 PACKAGE_STRING
687 PACKAGE_VERSION
688 PACKAGE_TARNAME
689 PACKAGE_NAME
690 PATH_SEPARATOR
691 SHELL'
692 ac_subst_files=''
693 ac_user_opts='
694 enable_option_checking
695 enable_openssl
696 enable_gnutls
697 with_extra_libs
698 '
699 ac_precious_vars='build_alias
700 host_alias
701 target_alias
702 CC
703 CFLAGS
704 LDFLAGS
705 LIBS
706 CPPFLAGS
707 CXX
708 CXXFLAGS
709 CCC
710 CXXCPP'
711
712
713 # Initialize some variables set by options.
714 ac_init_help=
715 ac_init_version=false
716 ac_unrecognized_opts=
717 ac_unrecognized_sep=
718 # The variables have the same names as the options, with
719 # dashes changed to underlines.
720 cache_file=/dev/null
721 exec_prefix=NONE
722 no_create=
723 no_recursion=
724 prefix=NONE
725 program_prefix=NONE
726 program_suffix=NONE
727 program_transform_name=s,x,x,
728 silent=
729 site=
730 srcdir=
731 verbose=
732 x_includes=NONE
733 x_libraries=NONE
734
735 # Installation directory options.
736 # These are left unexpanded so users can "make install exec_prefix=/foo"
737 # and all the variables that are supposed to be based on exec_prefix
738 # by default will actually change.
739 # Use braces instead of parens because sh, perl, etc. also accept them.
740 # (The list follows the same order as the GNU Coding Standards.)
741 bindir='${exec_prefix}/bin'
742 sbindir='${exec_prefix}/sbin'
743 libexecdir='${exec_prefix}/libexec'
744 datarootdir='${prefix}/share'
745 datadir='${datarootdir}'
746 sysconfdir='${prefix}/etc'
747 sharedstatedir='${prefix}/com'
748 localstatedir='${prefix}/var'
749 runstatedir='${localstatedir}/run'
750 includedir='${prefix}/include'
751 oldincludedir='/usr/include'
752 docdir='${datarootdir}/doc/${PACKAGE}'
753 infodir='${datarootdir}/info'
754 htmldir='${docdir}'
755 dvidir='${docdir}'
756 pdfdir='${docdir}'
757 psdir='${docdir}'
758 libdir='${exec_prefix}/lib'
759 localedir='${datarootdir}/locale'
760 mandir='${datarootdir}/man'
761
762 ac_prev=
763 ac_dashdash=
764 for ac_option
765 do
766 # If the previous option needs an argument, assign it.
767 if test -n "$ac_prev"; then
768 eval $ac_prev=\$ac_option
769 ac_prev=
770 continue
771 fi
772
773 case $ac_option in
774 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
775 *=) ac_optarg= ;;
776 *) ac_optarg=yes ;;
777 esac
778
779 # Accept the important Cygnus configure options, so we can diagnose typos.
780
781 case $ac_dashdash$ac_option in
782 --)
783 ac_dashdash=yes ;;
784
785 -bindir | --bindir | --bindi | --bind | --bin | --bi)
786 ac_prev=bindir ;;
787 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
788 bindir=$ac_optarg ;;
789
790 -build | --build | --buil | --bui | --bu)
791 ac_prev=build_alias ;;
792 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
793 build_alias=$ac_optarg ;;
794
795 -cache-file | --cache-file | --cache-fil | --cache-fi \
796 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
797 ac_prev=cache_file ;;
798 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
799 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
800 cache_file=$ac_optarg ;;
801
802 --config-cache | -C)
803 cache_file=config.cache ;;
804
805 -datadir | --datadir | --datadi | --datad)
806 ac_prev=datadir ;;
807 -datadir=* | --datadir=* | --datadi=* | --datad=*)
808 datadir=$ac_optarg ;;
809
810 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
811 | --dataroo | --dataro | --datar)
812 ac_prev=datarootdir ;;
813 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
814 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
815 datarootdir=$ac_optarg ;;
816
817 -disable-* | --disable-*)
818 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
819 # Reject names that are not valid shell variable names.
820 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
821 as_fn_error $? "invalid feature name: $ac_useropt"
822 ac_useropt_orig=$ac_useropt
823 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
824 case $ac_user_opts in
825 *"
826 "enable_$ac_useropt"
827 "*) ;;
828 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
829 ac_unrecognized_sep=', ';;
830 esac
831 eval enable_$ac_useropt=no ;;
832
833 -docdir | --docdir | --docdi | --doc | --do)
834 ac_prev=docdir ;;
835 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
836 docdir=$ac_optarg ;;
837
838 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
839 ac_prev=dvidir ;;
840 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
841 dvidir=$ac_optarg ;;
842
843 -enable-* | --enable-*)
844 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
845 # Reject names that are not valid shell variable names.
846 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
847 as_fn_error $? "invalid feature name: $ac_useropt"
848 ac_useropt_orig=$ac_useropt
849 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
850 case $ac_user_opts in
851 *"
852 "enable_$ac_useropt"
853 "*) ;;
854 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
855 ac_unrecognized_sep=', ';;
856 esac
857 eval enable_$ac_useropt=\$ac_optarg ;;
858
859 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
860 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
861 | --exec | --exe | --ex)
862 ac_prev=exec_prefix ;;
863 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
864 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
865 | --exec=* | --exe=* | --ex=*)
866 exec_prefix=$ac_optarg ;;
867
868 -gas | --gas | --ga | --g)
869 # Obsolete; use --with-gas.
870 with_gas=yes ;;
871
872 -help | --help | --hel | --he | -h)
873 ac_init_help=long ;;
874 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
875 ac_init_help=recursive ;;
876 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
877 ac_init_help=short ;;
878
879 -host | --host | --hos | --ho)
880 ac_prev=host_alias ;;
881 -host=* | --host=* | --hos=* | --ho=*)
882 host_alias=$ac_optarg ;;
883
884 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
885 ac_prev=htmldir ;;
886 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
887 | --ht=*)
888 htmldir=$ac_optarg ;;
889
890 -includedir | --includedir | --includedi | --included | --include \
891 | --includ | --inclu | --incl | --inc)
892 ac_prev=includedir ;;
893 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
894 | --includ=* | --inclu=* | --incl=* | --inc=*)
895 includedir=$ac_optarg ;;
896
897 -infodir | --infodir | --infodi | --infod | --info | --inf)
898 ac_prev=infodir ;;
899 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
900 infodir=$ac_optarg ;;
901
902 -libdir | --libdir | --libdi | --libd)
903 ac_prev=libdir ;;
904 -libdir=* | --libdir=* | --libdi=* | --libd=*)
905 libdir=$ac_optarg ;;
906
907 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
908 | --libexe | --libex | --libe)
909 ac_prev=libexecdir ;;
910 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
911 | --libexe=* | --libex=* | --libe=*)
912 libexecdir=$ac_optarg ;;
913
914 -localedir | --localedir | --localedi | --localed | --locale)
915 ac_prev=localedir ;;
916 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
917 localedir=$ac_optarg ;;
918
919 -localstatedir | --localstatedir | --localstatedi | --localstated \
920 | --localstate | --localstat | --localsta | --localst | --locals)
921 ac_prev=localstatedir ;;
922 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
923 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
924 localstatedir=$ac_optarg ;;
925
926 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
927 ac_prev=mandir ;;
928 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
929 mandir=$ac_optarg ;;
930
931 -nfp | --nfp | --nf)
932 # Obsolete; use --without-fp.
933 with_fp=no ;;
934
935 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
936 | --no-cr | --no-c | -n)
937 no_create=yes ;;
938
939 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
940 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
941 no_recursion=yes ;;
942
943 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
944 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
945 | --oldin | --oldi | --old | --ol | --o)
946 ac_prev=oldincludedir ;;
947 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
948 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
949 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
950 oldincludedir=$ac_optarg ;;
951
952 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
953 ac_prev=prefix ;;
954 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
955 prefix=$ac_optarg ;;
956
957 -program-prefix | --program-prefix | --program-prefi | --program-pref \
958 | --program-pre | --program-pr | --program-p)
959 ac_prev=program_prefix ;;
960 -program-prefix=* | --program-prefix=* | --program-prefi=* \
961 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
962 program_prefix=$ac_optarg ;;
963
964 -program-suffix | --program-suffix | --program-suffi | --program-suff \
965 | --program-suf | --program-su | --program-s)
966 ac_prev=program_suffix ;;
967 -program-suffix=* | --program-suffix=* | --program-suffi=* \
968 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
969 program_suffix=$ac_optarg ;;
970
971 -program-transform-name | --program-transform-name \
972 | --program-transform-nam | --program-transform-na \
973 | --program-transform-n | --program-transform- \
974 | --program-transform | --program-transfor \
975 | --program-transfo | --program-transf \
976 | --program-trans | --program-tran \
977 | --progr-tra | --program-tr | --program-t)
978 ac_prev=program_transform_name ;;
979 -program-transform-name=* | --program-transform-name=* \
980 | --program-transform-nam=* | --program-transform-na=* \
981 | --program-transform-n=* | --program-transform-=* \
982 | --program-transform=* | --program-transfor=* \
983 | --program-transfo=* | --program-transf=* \
984 | --program-trans=* | --program-tran=* \
985 | --progr-tra=* | --program-tr=* | --program-t=*)
986 program_transform_name=$ac_optarg ;;
987
988 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
989 ac_prev=pdfdir ;;
990 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
991 pdfdir=$ac_optarg ;;
992
993 -psdir | --psdir | --psdi | --psd | --ps)
994 ac_prev=psdir ;;
995 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
996 psdir=$ac_optarg ;;
997
998 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
999 | -silent | --silent | --silen | --sile | --sil)
1000 silent=yes ;;
1001
1002 -runstatedir | --runstatedir | --runstatedi | --runstated \
1003 | --runstate | --runstat | --runsta | --runst | --runs \
1004 | --run | --ru | --r)
1005 ac_prev=runstatedir ;;
1006 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1007 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1008 | --run=* | --ru=* | --r=*)
1009 runstatedir=$ac_optarg ;;
1010
1011 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1012 ac_prev=sbindir ;;
1013 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1014 | --sbi=* | --sb=*)
1015 sbindir=$ac_optarg ;;
1016
1017 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1018 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1019 | --sharedst | --shareds | --shared | --share | --shar \
1020 | --sha | --sh)
1021 ac_prev=sharedstatedir ;;
1022 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1023 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1024 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1025 | --sha=* | --sh=*)
1026 sharedstatedir=$ac_optarg ;;
1027
1028 -site | --site | --sit)
1029 ac_prev=site ;;
1030 -site=* | --site=* | --sit=*)
1031 site=$ac_optarg ;;
1032
1033 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1034 ac_prev=srcdir ;;
1035 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1036 srcdir=$ac_optarg ;;
1037
1038 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1039 | --syscon | --sysco | --sysc | --sys | --sy)
1040 ac_prev=sysconfdir ;;
1041 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1042 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1043 sysconfdir=$ac_optarg ;;
1044
1045 -target | --target | --targe | --targ | --tar | --ta | --t)
1046 ac_prev=target_alias ;;
1047 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1048 target_alias=$ac_optarg ;;
1049
1050 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1051 verbose=yes ;;
1052
1053 -version | --version | --versio | --versi | --vers | -V)
1054 ac_init_version=: ;;
1055
1056 -with-* | --with-*)
1057 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1058 # Reject names that are not valid shell variable names.
1059 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1060 as_fn_error $? "invalid package name: $ac_useropt"
1061 ac_useropt_orig=$ac_useropt
1062 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1063 case $ac_user_opts in
1064 *"
1065 "with_$ac_useropt"
1066 "*) ;;
1067 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1068 ac_unrecognized_sep=', ';;
1069 esac
1070 eval with_$ac_useropt=\$ac_optarg ;;
1071
1072 -without-* | --without-*)
1073 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1074 # Reject names that are not valid shell variable names.
1075 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1076 as_fn_error $? "invalid package name: $ac_useropt"
1077 ac_useropt_orig=$ac_useropt
1078 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1079 case $ac_user_opts in
1080 *"
1081 "with_$ac_useropt"
1082 "*) ;;
1083 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1084 ac_unrecognized_sep=', ';;
1085 esac
1086 eval with_$ac_useropt=no ;;
1087
1088 --x)
1089 # Obsolete; use --with-x.
1090 with_x=yes ;;
1091
1092 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1093 | --x-incl | --x-inc | --x-in | --x-i)
1094 ac_prev=x_includes ;;
1095 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1096 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1097 x_includes=$ac_optarg ;;
1098
1099 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1100 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1101 ac_prev=x_libraries ;;
1102 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1103 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1104 x_libraries=$ac_optarg ;;
1105
1106 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1107 Try \`$0 --help' for more information"
1108 ;;
1109
1110 *=*)
1111 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1112 # Reject names that are not valid shell variable names.
1113 case $ac_envvar in #(
1114 '' | [0-9]* | *[!_$as_cr_alnum]* )
1115 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1116 esac
1117 eval $ac_envvar=\$ac_optarg
1118 export $ac_envvar ;;
1119
1120 *)
1121 # FIXME: should be removed in autoconf 3.0.
1122 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1123 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1124 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1125 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1126 ;;
1127
1128 esac
1129 done
1130
1131 if test -n "$ac_prev"; then
1132 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1133 as_fn_error $? "missing argument to $ac_option"
1134 fi
1135
1136 if test -n "$ac_unrecognized_opts"; then
1137 case $enable_option_checking in
1138 no) ;;
1139 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1140 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1141 esac
1142 fi
1143
1144 # Check all directory arguments for consistency.
1145 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1146 datadir sysconfdir sharedstatedir localstatedir includedir \
1147 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1148 libdir localedir mandir runstatedir
1149 do
1150 eval ac_val=\$$ac_var
1151 # Remove trailing slashes.
1152 case $ac_val in
1153 */ )
1154 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1155 eval $ac_var=\$ac_val;;
1156 esac
1157 # Be sure to have absolute directory names.
1158 case $ac_val in
1159 [\\/$]* | ?:[\\/]* ) continue;;
1160 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1161 esac
1162 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1163 done
1164
1165 # There might be people who depend on the old broken behavior: `$host'
1166 # used to hold the argument of --host etc.
1167 # FIXME: To remove some day.
1168 build=$build_alias
1169 host=$host_alias
1170 target=$target_alias
1171
1172 # FIXME: To remove some day.
1173 if test "x$host_alias" != x; then
1174 if test "x$build_alias" = x; then
1175 cross_compiling=maybe
1176 elif test "x$build_alias" != "x$host_alias"; then
1177 cross_compiling=yes
1178 fi
1179 fi
1180
1181 ac_tool_prefix=
1182 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1183
1184 test "$silent" = yes && exec 6>/dev/null
1185
1186
1187 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1188 ac_ls_di=`ls -di .` &&
1189 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1190 as_fn_error $? "working directory cannot be determined"
1191 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1192 as_fn_error $? "pwd does not report name of working directory"
1193
1194
1195 # Find the source files, if location was not specified.
1196 if test -z "$srcdir"; then
1197 ac_srcdir_defaulted=yes
1198 # Try the directory containing this script, then the parent directory.
1199 ac_confdir=`$as_dirname -- "$as_myself" ||
1200 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1201 X"$as_myself" : 'X\(//\)[^/]' \| \
1202 X"$as_myself" : 'X\(//\)$' \| \
1203 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1204 $as_echo X"$as_myself" |
1205 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1206 s//\1/
1207 q
1208 }
1209 /^X\(\/\/\)[^/].*/{
1210 s//\1/
1211 q
1212 }
1213 /^X\(\/\/\)$/{
1214 s//\1/
1215 q
1216 }
1217 /^X\(\/\).*/{
1218 s//\1/
1219 q
1220 }
1221 s/.*/./; q'`
1222 srcdir=$ac_confdir
1223 if test ! -r "$srcdir/$ac_unique_file"; then
1224 srcdir=..
1225 fi
1226 else
1227 ac_srcdir_defaulted=no
1228 fi
1229 if test ! -r "$srcdir/$ac_unique_file"; then
1230 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1231 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1232 fi
1233 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1234 ac_abs_confdir=`(
1235 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1236 pwd)`
1237 # When building in place, set srcdir=.
1238 if test "$ac_abs_confdir" = "$ac_pwd"; then
1239 srcdir=.
1240 fi
1241 # Remove unnecessary trailing slashes from srcdir.
1242 # Double slashes in file names in object file debugging info
1243 # mess up M-x gdb in Emacs.
1244 case $srcdir in
1245 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1246 esac
1247 for ac_var in $ac_precious_vars; do
1248 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1249 eval ac_env_${ac_var}_value=\$${ac_var}
1250 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1251 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1252 done
1253
1254 #
1255 # Report the --help message.
1256 #
1257 if test "$ac_init_help" = "long"; then
1258 # Omit some internal or obsolete options to make the list less imposing.
1259 # This message is too long to be a string in the A/UX 3.1 sh.
1260 cat <<_ACEOF
1261 \`configure' configures this package to adapt to many kinds of systems.
1262
1263 Usage: $0 [OPTION]... [VAR=VALUE]...
1264
1265 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1266 VAR=VALUE. See below for descriptions of some of the useful variables.
1267
1268 Defaults for the options are specified in brackets.
1269
1270 Configuration:
1271 -h, --help display this help and exit
1272 --help=short display options specific to this package
1273 --help=recursive display the short help of all the included packages
1274 -V, --version display version information and exit
1275 -q, --quiet, --silent do not print \`checking ...' messages
1276 --cache-file=FILE cache test results in FILE [disabled]
1277 -C, --config-cache alias for \`--cache-file=config.cache'
1278 -n, --no-create do not create output files
1279 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1280
1281 Installation directories:
1282 --prefix=PREFIX install architecture-independent files in PREFIX
1283 [$ac_default_prefix]
1284 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1285 [PREFIX]
1286
1287 By default, \`make install' will install all the files in
1288 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1289 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1290 for instance \`--prefix=\$HOME'.
1291
1292 For better control, use the options below.
1293
1294 Fine tuning of the installation directories:
1295 --bindir=DIR user executables [EPREFIX/bin]
1296 --sbindir=DIR system admin executables [EPREFIX/sbin]
1297 --libexecdir=DIR program executables [EPREFIX/libexec]
1298 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1299 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1300 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1301 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1302 --libdir=DIR object code libraries [EPREFIX/lib]
1303 --includedir=DIR C header files [PREFIX/include]
1304 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1305 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1306 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1307 --infodir=DIR info documentation [DATAROOTDIR/info]
1308 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1309 --mandir=DIR man documentation [DATAROOTDIR/man]
1310 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1311 --htmldir=DIR html documentation [DOCDIR]
1312 --dvidir=DIR dvi documentation [DOCDIR]
1313 --pdfdir=DIR pdf documentation [DOCDIR]
1314 --psdir=DIR ps documentation [DOCDIR]
1315 _ACEOF
1316
1317 cat <<\_ACEOF
1318 _ACEOF
1319 fi
1320
1321 if test -n "$ac_init_help"; then
1322
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 --disable-openssl disables openssl support
1330 --disable-gnutls disables gnutls support
1331
1332 Optional Packages:
1333 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1334 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1335 --with-extra-libs=DIR adds non standard library paths
1336
1337 Some influential environment variables:
1338 CC C compiler command
1339 CFLAGS C compiler flags
1340 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1341 nonstandard directory <lib dir>
1342 LIBS libraries to pass to the linker, e.g. -l<library>
1343 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1344 you have headers in a nonstandard directory <include dir>
1345 CXX C++ compiler command
1346 CXXFLAGS C++ compiler flags
1347 CXXCPP C++ preprocessor
1348
1349 Use these variables to override the choices made by `configure' or to help
1350 it to find libraries and programs with nonstandard names/locations.
1351
1352 Report bugs to the package provider.
1353 _ACEOF
1354 ac_status=$?
1355 fi
1356
1357 if test "$ac_init_help" = "recursive"; then
1358 # If there are subdirs, report their specific --help.
1359 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1360 test -d "$ac_dir" ||
1361 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1362 continue
1363 ac_builddir=.
1364
1365 case "$ac_dir" in
1366 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1367 *)
1368 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1369 # A ".." for each directory in $ac_dir_suffix.
1370 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1371 case $ac_top_builddir_sub in
1372 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1373 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1374 esac ;;
1375 esac
1376 ac_abs_top_builddir=$ac_pwd
1377 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1378 # for backward compatibility:
1379 ac_top_builddir=$ac_top_build_prefix
1380
1381 case $srcdir in
1382 .) # We are building in place.
1383 ac_srcdir=.
1384 ac_top_srcdir=$ac_top_builddir_sub
1385 ac_abs_top_srcdir=$ac_pwd ;;
1386 [\\/]* | ?:[\\/]* ) # Absolute name.
1387 ac_srcdir=$srcdir$ac_dir_suffix;
1388 ac_top_srcdir=$srcdir
1389 ac_abs_top_srcdir=$srcdir ;;
1390 *) # Relative name.
1391 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1392 ac_top_srcdir=$ac_top_build_prefix$srcdir
1393 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1394 esac
1395 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1396
1397 cd "$ac_dir" || { ac_status=$?; continue; }
1398 # Check for guested configure.
1399 if test -f "$ac_srcdir/configure.gnu"; then
1400 echo &&
1401 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1402 elif test -f "$ac_srcdir/configure"; then
1403 echo &&
1404 $SHELL "$ac_srcdir/configure" --help=recursive
1405 else
1406 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1407 fi || ac_status=$?
1408 cd "$ac_pwd" || { ac_status=$?; break; }
1409 done
1410 fi
1411
1412 test -n "$ac_init_help" && exit $ac_status
1413 if $ac_init_version; then
1414 cat <<\_ACEOF
1415 configure
1416 generated by GNU Autoconf 2.69
1417
1418 Copyright (C) 2012 Free Software Foundation, Inc.
1419 This configure script is free software; the Free Software Foundation
1420 gives unlimited permission to copy, distribute and modify it.
1421 _ACEOF
1422 exit
1423 fi
1424
1425 ## ------------------------ ##
1426 ## Autoconf initialization. ##
1427 ## ------------------------ ##
1428
1429 # ac_fn_c_try_compile LINENO
1430 # --------------------------
1431 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1432 ac_fn_c_try_compile ()
1433 {
1434 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1435 rm -f conftest.$ac_objext
1436 if { { ac_try="$ac_compile"
1437 case "(($ac_try" in
1438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1439 *) ac_try_echo=$ac_try;;
1440 esac
1441 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1442 $as_echo "$ac_try_echo"; } >&5
1443 (eval "$ac_compile") 2>conftest.err
1444 ac_status=$?
1445 if test -s conftest.err; then
1446 grep -v '^ *+' conftest.err >conftest.er1
1447 cat conftest.er1 >&5
1448 mv -f conftest.er1 conftest.err
1449 fi
1450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1451 test $ac_status = 0; } && {
1452 test -z "$ac_c_werror_flag" ||
1453 test ! -s conftest.err
1454 } && test -s conftest.$ac_objext; then :
1455 ac_retval=0
1456 else
1457 $as_echo "$as_me: failed program was:" >&5
1458 sed 's/^/| /' conftest.$ac_ext >&5
1459
1460 ac_retval=1
1461 fi
1462 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1463 as_fn_set_status $ac_retval
1464
1465 } # ac_fn_c_try_compile
1466
1467 # ac_fn_cxx_try_compile LINENO
1468 # ----------------------------
1469 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1470 ac_fn_cxx_try_compile ()
1471 {
1472 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1473 rm -f conftest.$ac_objext
1474 if { { ac_try="$ac_compile"
1475 case "(($ac_try" in
1476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1477 *) ac_try_echo=$ac_try;;
1478 esac
1479 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1480 $as_echo "$ac_try_echo"; } >&5
1481 (eval "$ac_compile") 2>conftest.err
1482 ac_status=$?
1483 if test -s conftest.err; then
1484 grep -v '^ *+' conftest.err >conftest.er1
1485 cat conftest.er1 >&5
1486 mv -f conftest.er1 conftest.err
1487 fi
1488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1489 test $ac_status = 0; } && {
1490 test -z "$ac_cxx_werror_flag" ||
1491 test ! -s conftest.err
1492 } && test -s conftest.$ac_objext; then :
1493 ac_retval=0
1494 else
1495 $as_echo "$as_me: failed program was:" >&5
1496 sed 's/^/| /' conftest.$ac_ext >&5
1497
1498 ac_retval=1
1499 fi
1500 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1501 as_fn_set_status $ac_retval
1502
1503 } # ac_fn_cxx_try_compile
1504
1505 # ac_fn_cxx_try_cpp LINENO
1506 # ------------------------
1507 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1508 ac_fn_cxx_try_cpp ()
1509 {
1510 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1511 if { { ac_try="$ac_cpp conftest.$ac_ext"
1512 case "(($ac_try" in
1513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1514 *) ac_try_echo=$ac_try;;
1515 esac
1516 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1517 $as_echo "$ac_try_echo"; } >&5
1518 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1519 ac_status=$?
1520 if test -s conftest.err; then
1521 grep -v '^ *+' conftest.err >conftest.er1
1522 cat conftest.er1 >&5
1523 mv -f conftest.er1 conftest.err
1524 fi
1525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1526 test $ac_status = 0; } > conftest.i && {
1527 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1528 test ! -s conftest.err
1529 }; then :
1530 ac_retval=0
1531 else
1532 $as_echo "$as_me: failed program was:" >&5
1533 sed 's/^/| /' conftest.$ac_ext >&5
1534
1535 ac_retval=1
1536 fi
1537 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1538 as_fn_set_status $ac_retval
1539
1540 } # ac_fn_cxx_try_cpp
1541
1542 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
1543 # ---------------------------------------------
1544 # Tests whether TYPE exists after having included INCLUDES, setting cache
1545 # variable VAR accordingly.
1546 ac_fn_cxx_check_type ()
1547 {
1548 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1550 $as_echo_n "checking for $2... " >&6; }
1551 if eval \${$3+:} false; then :
1552 $as_echo_n "(cached) " >&6
1553 else
1554 eval "$3=no"
1555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1556 /* end confdefs.h. */
1557 $4
1558 int
1559 main ()
1560 {
1561 if (sizeof ($2))
1562 return 0;
1563 ;
1564 return 0;
1565 }
1566 _ACEOF
1567 if ac_fn_cxx_try_compile "$LINENO"; then :
1568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1569 /* end confdefs.h. */
1570 $4
1571 int
1572 main ()
1573 {
1574 if (sizeof (($2)))
1575 return 0;
1576 ;
1577 return 0;
1578 }
1579 _ACEOF
1580 if ac_fn_cxx_try_compile "$LINENO"; then :
1581
1582 else
1583 eval "$3=yes"
1584 fi
1585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1586 fi
1587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1588 fi
1589 eval ac_res=\$$3
1590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1591 $as_echo "$ac_res" >&6; }
1592 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1593
1594 } # ac_fn_cxx_check_type
1595
1596 # ac_fn_cxx_try_run LINENO
1597 # ------------------------
1598 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1599 # that executables *can* be run.
1600 ac_fn_cxx_try_run ()
1601 {
1602 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1603 if { { ac_try="$ac_link"
1604 case "(($ac_try" in
1605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1606 *) ac_try_echo=$ac_try;;
1607 esac
1608 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1609 $as_echo "$ac_try_echo"; } >&5
1610 (eval "$ac_link") 2>&5
1611 ac_status=$?
1612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1613 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1614 { { case "(($ac_try" in
1615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1616 *) ac_try_echo=$ac_try;;
1617 esac
1618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1619 $as_echo "$ac_try_echo"; } >&5
1620 (eval "$ac_try") 2>&5
1621 ac_status=$?
1622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1623 test $ac_status = 0; }; }; then :
1624 ac_retval=0
1625 else
1626 $as_echo "$as_me: program exited with status $ac_status" >&5
1627 $as_echo "$as_me: failed program was:" >&5
1628 sed 's/^/| /' conftest.$ac_ext >&5
1629
1630 ac_retval=$ac_status
1631 fi
1632 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1633 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1634 as_fn_set_status $ac_retval
1635
1636 } # ac_fn_cxx_try_run
1637
1638 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
1639 # ---------------------------------------------------------
1640 # Tests whether HEADER exists and can be compiled using the include files in
1641 # INCLUDES, setting the cache variable VAR accordingly.
1642 ac_fn_cxx_check_header_compile ()
1643 {
1644 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1646 $as_echo_n "checking for $2... " >&6; }
1647 if eval \${$3+:} false; then :
1648 $as_echo_n "(cached) " >&6
1649 else
1650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1651 /* end confdefs.h. */
1652 $4
1653 #include <$2>
1654 _ACEOF
1655 if ac_fn_cxx_try_compile "$LINENO"; then :
1656 eval "$3=yes"
1657 else
1658 eval "$3=no"
1659 fi
1660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1661 fi
1662 eval ac_res=\$$3
1663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1664 $as_echo "$ac_res" >&6; }
1665 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1666
1667 } # ac_fn_cxx_check_header_compile
1668
1669 # ac_fn_cxx_try_link LINENO
1670 # -------------------------
1671 # Try to link conftest.$ac_ext, and return whether this succeeded.
1672 ac_fn_cxx_try_link ()
1673 {
1674 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1675 rm -f conftest.$ac_objext conftest$ac_exeext
1676 if { { ac_try="$ac_link"
1677 case "(($ac_try" in
1678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1679 *) ac_try_echo=$ac_try;;
1680 esac
1681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1682 $as_echo "$ac_try_echo"; } >&5
1683 (eval "$ac_link") 2>conftest.err
1684 ac_status=$?
1685 if test -s conftest.err; then
1686 grep -v '^ *+' conftest.err >conftest.er1
1687 cat conftest.er1 >&5
1688 mv -f conftest.er1 conftest.err
1689 fi
1690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1691 test $ac_status = 0; } && {
1692 test -z "$ac_cxx_werror_flag" ||
1693 test ! -s conftest.err
1694 } && test -s conftest$ac_exeext && {
1695 test "$cross_compiling" = yes ||
1696 test -x conftest$ac_exeext
1697 }; then :
1698 ac_retval=0
1699 else
1700 $as_echo "$as_me: failed program was:" >&5
1701 sed 's/^/| /' conftest.$ac_ext >&5
1702
1703 ac_retval=1
1704 fi
1705 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1706 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1707 # interfere with the next link command; also delete a directory that is
1708 # left behind by Apple's compiler. We do this before executing the actions.
1709 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1710 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1711 as_fn_set_status $ac_retval
1712
1713 } # ac_fn_cxx_try_link
1714
1715 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1716 # ---------------------------------------------------------
1717 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1718 # the include files in INCLUDES and setting the cache variable VAR
1719 # accordingly.
1720 ac_fn_cxx_check_header_mongrel ()
1721 {
1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723 if eval \${$3+:} false; then :
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1725 $as_echo_n "checking for $2... " >&6; }
1726 if eval \${$3+:} false; then :
1727 $as_echo_n "(cached) " >&6
1728 fi
1729 eval ac_res=\$$3
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1731 $as_echo "$ac_res" >&6; }
1732 else
1733 # Is the header compilable?
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1735 $as_echo_n "checking $2 usability... " >&6; }
1736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1737 /* end confdefs.h. */
1738 $4
1739 #include <$2>
1740 _ACEOF
1741 if ac_fn_cxx_try_compile "$LINENO"; then :
1742 ac_header_compiler=yes
1743 else
1744 ac_header_compiler=no
1745 fi
1746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1748 $as_echo "$ac_header_compiler" >&6; }
1749
1750 # Is the header present?
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1752 $as_echo_n "checking $2 presence... " >&6; }
1753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1754 /* end confdefs.h. */
1755 #include <$2>
1756 _ACEOF
1757 if ac_fn_cxx_try_cpp "$LINENO"; then :
1758 ac_header_preproc=yes
1759 else
1760 ac_header_preproc=no
1761 fi
1762 rm -f conftest.err conftest.i conftest.$ac_ext
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1764 $as_echo "$ac_header_preproc" >&6; }
1765
1766 # So? What about this header?
1767 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
1768 yes:no: )
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1770 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1772 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1773 ;;
1774 no:yes:* )
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1776 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1778 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1780 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1782 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1784 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1785 ;;
1786 esac
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1788 $as_echo_n "checking for $2... " >&6; }
1789 if eval \${$3+:} false; then :
1790 $as_echo_n "(cached) " >&6
1791 else
1792 eval "$3=\$ac_header_compiler"
1793 fi
1794 eval ac_res=\$$3
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1796 $as_echo "$ac_res" >&6; }
1797 fi
1798 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1799
1800 } # ac_fn_cxx_check_header_mongrel
1801 cat >config.log <<_ACEOF
1802 This file contains any messages produced by compilers while
1803 running configure, to aid debugging if configure makes a mistake.
1804
1805 It was created by $as_me, which was
1806 generated by GNU Autoconf 2.69. Invocation command line was
1807
1808 $ $0 $@
1809
1810 _ACEOF
1811 exec 5>>config.log
1812 {
1813 cat <<_ASUNAME
1814 ## --------- ##
1815 ## Platform. ##
1816 ## --------- ##
1817
1818 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1819 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1820 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1821 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1822 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1823
1824 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1825 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1826
1827 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1828 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1829 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1830 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1831 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1832 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1833 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1834
1835 _ASUNAME
1836
1837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1838 for as_dir in $PATH
1839 do
1840 IFS=$as_save_IFS
1841 test -z "$as_dir" && as_dir=.
1842 $as_echo "PATH: $as_dir"
1843 done
1844 IFS=$as_save_IFS
1845
1846 } >&5
1847
1848 cat >&5 <<_ACEOF
1849
1850
1851 ## ----------- ##
1852 ## Core tests. ##
1853 ## ----------- ##
1854
1855 _ACEOF
1856
1857
1858 # Keep a trace of the command line.
1859 # Strip out --no-create and --no-recursion so they do not pile up.
1860 # Strip out --silent because we don't want to record it for future runs.
1861 # Also quote any args containing shell meta-characters.
1862 # Make two passes to allow for proper duplicate-argument suppression.
1863 ac_configure_args=
1864 ac_configure_args0=
1865 ac_configure_args1=
1866 ac_must_keep_next=false
1867 for ac_pass in 1 2
1868 do
1869 for ac_arg
1870 do
1871 case $ac_arg in
1872 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1873 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1874 | -silent | --silent | --silen | --sile | --sil)
1875 continue ;;
1876 *\'*)
1877 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1878 esac
1879 case $ac_pass in
1880 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1881 2)
1882 as_fn_append ac_configure_args1 " '$ac_arg'"
1883 if test $ac_must_keep_next = true; then
1884 ac_must_keep_next=false # Got value, back to normal.
1885 else
1886 case $ac_arg in
1887 *=* | --config-cache | -C | -disable-* | --disable-* \
1888 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1889 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1890 | -with-* | --with-* | -without-* | --without-* | --x)
1891 case "$ac_configure_args0 " in
1892 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1893 esac
1894 ;;
1895 -* ) ac_must_keep_next=true ;;
1896 esac
1897 fi
1898 as_fn_append ac_configure_args " '$ac_arg'"
1899 ;;
1900 esac
1901 done
1902 done
1903 { ac_configure_args0=; unset ac_configure_args0;}
1904 { ac_configure_args1=; unset ac_configure_args1;}
1905
1906 # When interrupted or exit'd, cleanup temporary files, and complete
1907 # config.log. We remove comments because anyway the quotes in there
1908 # would cause problems or look ugly.
1909 # WARNING: Use '\'' to represent an apostrophe within the trap.
1910 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1911 trap 'exit_status=$?
1912 # Save into config.log some information that might help in debugging.
1913 {
1914 echo
1915
1916 $as_echo "## ---------------- ##
1917 ## Cache variables. ##
1918 ## ---------------- ##"
1919 echo
1920 # The following way of writing the cache mishandles newlines in values,
1921 (
1922 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1923 eval ac_val=\$$ac_var
1924 case $ac_val in #(
1925 *${as_nl}*)
1926 case $ac_var in #(
1927 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1928 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1929 esac
1930 case $ac_var in #(
1931 _ | IFS | as_nl) ;; #(
1932 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1933 *) { eval $ac_var=; unset $ac_var;} ;;
1934 esac ;;
1935 esac
1936 done
1937 (set) 2>&1 |
1938 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1939 *${as_nl}ac_space=\ *)
1940 sed -n \
1941 "s/'\''/'\''\\\\'\'''\''/g;
1942 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1943 ;; #(
1944 *)
1945 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1946 ;;
1947 esac |
1948 sort
1949 )
1950 echo
1951
1952 $as_echo "## ----------------- ##
1953 ## Output variables. ##
1954 ## ----------------- ##"
1955 echo
1956 for ac_var in $ac_subst_vars
1957 do
1958 eval ac_val=\$$ac_var
1959 case $ac_val in
1960 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1961 esac
1962 $as_echo "$ac_var='\''$ac_val'\''"
1963 done | sort
1964 echo
1965
1966 if test -n "$ac_subst_files"; then
1967 $as_echo "## ------------------- ##
1968 ## File substitutions. ##
1969 ## ------------------- ##"
1970 echo
1971 for ac_var in $ac_subst_files
1972 do
1973 eval ac_val=\$$ac_var
1974 case $ac_val in
1975 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1976 esac
1977 $as_echo "$ac_var='\''$ac_val'\''"
1978 done | sort
1979 echo
1980 fi
1981
1982 if test -s confdefs.h; then
1983 $as_echo "## ----------- ##
1984 ## confdefs.h. ##
1985 ## ----------- ##"
1986 echo
1987 cat confdefs.h
1988 echo
1989 fi
1990 test "$ac_signal" != 0 &&
1991 $as_echo "$as_me: caught signal $ac_signal"
1992 $as_echo "$as_me: exit $exit_status"
1993 } >&5
1994 rm -f core *.core core.conftest.* &&
1995 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1996 exit $exit_status
1997 ' 0
1998 for ac_signal in 1 2 13 15; do
1999 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2000 done
2001 ac_signal=0
2002
2003 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2004 rm -f -r conftest* confdefs.h
2005
2006 $as_echo "/* confdefs.h */" > confdefs.h
2007
2008 # Predefined preprocessor variables.
2009
2010 cat >>confdefs.h <<_ACEOF
2011 #define PACKAGE_NAME "$PACKAGE_NAME"
2012 _ACEOF
2013
2014 cat >>confdefs.h <<_ACEOF
2015 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2016 _ACEOF
2017
2018 cat >>confdefs.h <<_ACEOF
2019 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2020 _ACEOF
2021
2022 cat >>confdefs.h <<_ACEOF
2023 #define PACKAGE_STRING "$PACKAGE_STRING"
2024 _ACEOF
2025
2026 cat >>confdefs.h <<_ACEOF
2027 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2028 _ACEOF
2029
2030 cat >>confdefs.h <<_ACEOF
2031 #define PACKAGE_URL "$PACKAGE_URL"
2032 _ACEOF
2033
2034
2035 # Let the site file select an alternate cache file if it wants to.
2036 # Prefer an explicitly selected file to automatically selected ones.
2037 ac_site_file1=NONE
2038 ac_site_file2=NONE
2039 if test -n "$CONFIG_SITE"; then
2040 # We do not want a PATH search for config.site.
2041 case $CONFIG_SITE in #((
2042 -*) ac_site_file1=./$CONFIG_SITE;;
2043 */*) ac_site_file1=$CONFIG_SITE;;
2044 *) ac_site_file1=./$CONFIG_SITE;;
2045 esac
2046 elif test "x$prefix" != xNONE; then
2047 ac_site_file1=$prefix/share/config.site
2048 ac_site_file2=$prefix/etc/config.site
2049 else
2050 ac_site_file1=$ac_default_prefix/share/config.site
2051 ac_site_file2=$ac_default_prefix/etc/config.site
2052 fi
2053 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2054 do
2055 test "x$ac_site_file" = xNONE && continue
2056 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2058 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2059 sed 's/^/| /' "$ac_site_file" >&5
2060 . "$ac_site_file" \
2061 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2062 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2063 as_fn_error $? "failed to load site script $ac_site_file
2064 See \`config.log' for more details" "$LINENO" 5; }
2065 fi
2066 done
2067
2068 if test -r "$cache_file"; then
2069 # Some versions of bash will fail to source /dev/null (special files
2070 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2071 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2073 $as_echo "$as_me: loading cache $cache_file" >&6;}
2074 case $cache_file in
2075 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2076 *) . "./$cache_file";;
2077 esac
2078 fi
2079 else
2080 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2081 $as_echo "$as_me: creating cache $cache_file" >&6;}
2082 >$cache_file
2083 fi
2084
2085 # Check that the precious variables saved in the cache have kept the same
2086 # value.
2087 ac_cache_corrupted=false
2088 for ac_var in $ac_precious_vars; do
2089 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2090 eval ac_new_set=\$ac_env_${ac_var}_set
2091 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2092 eval ac_new_val=\$ac_env_${ac_var}_value
2093 case $ac_old_set,$ac_new_set in
2094 set,)
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2096 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2097 ac_cache_corrupted=: ;;
2098 ,set)
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2100 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2101 ac_cache_corrupted=: ;;
2102 ,);;
2103 *)
2104 if test "x$ac_old_val" != "x$ac_new_val"; then
2105 # differences in whitespace do not lead to failure.
2106 ac_old_val_w=`echo x $ac_old_val`
2107 ac_new_val_w=`echo x $ac_new_val`
2108 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2110 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2111 ac_cache_corrupted=:
2112 else
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2114 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2115 eval $ac_var=\$ac_old_val
2116 fi
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2118 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2120 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2121 fi;;
2122 esac
2123 # Pass precious variables to config.status.
2124 if test "$ac_new_set" = set; then
2125 case $ac_new_val in
2126 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2127 *) ac_arg=$ac_var=$ac_new_val ;;
2128 esac
2129 case " $ac_configure_args " in
2130 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2131 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2132 esac
2133 fi
2134 done
2135 if $ac_cache_corrupted; then
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2137 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2139 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2140 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2141 fi
2142 ## -------------------- ##
2143 ## Main body of script. ##
2144 ## -------------------- ##
2145
2146 ac_ext=c
2147 ac_cpp='$CPP $CPPFLAGS'
2148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2151
2152
2153 ac_config_headers="$ac_config_headers conf.h"
2154
2155
2156 version="0.75"
2157
2158 # Check whether --enable-openssl was given.
2159 if test "${enable_openssl+set}" = set; then :
2160 enableval=$enable_openssl; DISABLEOPENSSL=$opensslval
2161 else
2162 DISABLEOPENSSL=no
2163 fi
2164
2165 # Check whether --enable-gnutls was given.
2166 if test "${enable_gnutls+set}" = set; then :
2167 enableval=$enable_gnutls; DISABLEGNUTLS=$gnutlsval
2168 else
2169 DISABLEGNUTLS=no
2170 fi
2171
2172
2173 ac_ext=cpp
2174 ac_cpp='$CXXCPP $CPPFLAGS'
2175 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2176 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2177 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2178
2179 ac_ext=c
2180 ac_cpp='$CPP $CPPFLAGS'
2181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2184 if test -n "$ac_tool_prefix"; then
2185 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2186 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2188 $as_echo_n "checking for $ac_word... " >&6; }
2189 if ${ac_cv_prog_CC+:} false; then :
2190 $as_echo_n "(cached) " >&6
2191 else
2192 if test -n "$CC"; then
2193 ac_cv_prog_CC="$CC" # Let the user override the test.
2194 else
2195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2196 for as_dir in $PATH
2197 do
2198 IFS=$as_save_IFS
2199 test -z "$as_dir" && as_dir=.
2200 for ac_exec_ext in '' $ac_executable_extensions; do
2201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2202 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2204 break 2
2205 fi
2206 done
2207 done
2208 IFS=$as_save_IFS
2209
2210 fi
2211 fi
2212 CC=$ac_cv_prog_CC
2213 if test -n "$CC"; then
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2215 $as_echo "$CC" >&6; }
2216 else
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2218 $as_echo "no" >&6; }
2219 fi
2220
2221
2222 fi
2223 if test -z "$ac_cv_prog_CC"; then
2224 ac_ct_CC=$CC
2225 # Extract the first word of "gcc", so it can be a program name with args.
2226 set dummy gcc; ac_word=$2
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2228 $as_echo_n "checking for $ac_word... " >&6; }
2229 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2230 $as_echo_n "(cached) " >&6
2231 else
2232 if test -n "$ac_ct_CC"; then
2233 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2234 else
2235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2236 for as_dir in $PATH
2237 do
2238 IFS=$as_save_IFS
2239 test -z "$as_dir" && as_dir=.
2240 for ac_exec_ext in '' $ac_executable_extensions; do
2241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2242 ac_cv_prog_ac_ct_CC="gcc"
2243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2244 break 2
2245 fi
2246 done
2247 done
2248 IFS=$as_save_IFS
2249
2250 fi
2251 fi
2252 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2253 if test -n "$ac_ct_CC"; then
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2255 $as_echo "$ac_ct_CC" >&6; }
2256 else
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2258 $as_echo "no" >&6; }
2259 fi
2260
2261 if test "x$ac_ct_CC" = x; then
2262 CC=""
2263 else
2264 case $cross_compiling:$ac_tool_warned in
2265 yes:)
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2267 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2268 ac_tool_warned=yes ;;
2269 esac
2270 CC=$ac_ct_CC
2271 fi
2272 else
2273 CC="$ac_cv_prog_CC"
2274 fi
2275
2276 if test -z "$CC"; then
2277 if test -n "$ac_tool_prefix"; then
2278 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2279 set dummy ${ac_tool_prefix}cc; ac_word=$2
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2281 $as_echo_n "checking for $ac_word... " >&6; }
2282 if ${ac_cv_prog_CC+:} false; then :
2283 $as_echo_n "(cached) " >&6
2284 else
2285 if test -n "$CC"; then
2286 ac_cv_prog_CC="$CC" # Let the user override the test.
2287 else
2288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2289 for as_dir in $PATH
2290 do
2291 IFS=$as_save_IFS
2292 test -z "$as_dir" && as_dir=.
2293 for ac_exec_ext in '' $ac_executable_extensions; do
2294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2295 ac_cv_prog_CC="${ac_tool_prefix}cc"
2296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2297 break 2
2298 fi
2299 done
2300 done
2301 IFS=$as_save_IFS
2302
2303 fi
2304 fi
2305 CC=$ac_cv_prog_CC
2306 if test -n "$CC"; then
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2308 $as_echo "$CC" >&6; }
2309 else
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2311 $as_echo "no" >&6; }
2312 fi
2313
2314
2315 fi
2316 fi
2317 if test -z "$CC"; then
2318 # Extract the first word of "cc", so it can be a program name with args.
2319 set dummy cc; ac_word=$2
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2321 $as_echo_n "checking for $ac_word... " >&6; }
2322 if ${ac_cv_prog_CC+:} false; then :
2323 $as_echo_n "(cached) " >&6
2324 else
2325 if test -n "$CC"; then
2326 ac_cv_prog_CC="$CC" # Let the user override the test.
2327 else
2328 ac_prog_rejected=no
2329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2330 for as_dir in $PATH
2331 do
2332 IFS=$as_save_IFS
2333 test -z "$as_dir" && as_dir=.
2334 for ac_exec_ext in '' $ac_executable_extensions; do
2335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2336 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2337 ac_prog_rejected=yes
2338 continue
2339 fi
2340 ac_cv_prog_CC="cc"
2341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2342 break 2
2343 fi
2344 done
2345 done
2346 IFS=$as_save_IFS
2347
2348 if test $ac_prog_rejected = yes; then
2349 # We found a bogon in the path, so make sure we never use it.
2350 set dummy $ac_cv_prog_CC
2351 shift
2352 if test $# != 0; then
2353 # We chose a different compiler from the bogus one.
2354 # However, it has the same basename, so the bogon will be chosen
2355 # first if we set CC to just the basename; use the full file name.
2356 shift
2357 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2358 fi
2359 fi
2360 fi
2361 fi
2362 CC=$ac_cv_prog_CC
2363 if test -n "$CC"; then
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2365 $as_echo "$CC" >&6; }
2366 else
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2368 $as_echo "no" >&6; }
2369 fi
2370
2371
2372 fi
2373 if test -z "$CC"; then
2374 if test -n "$ac_tool_prefix"; then
2375 for ac_prog in cl.exe
2376 do
2377 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2378 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2380 $as_echo_n "checking for $ac_word... " >&6; }
2381 if ${ac_cv_prog_CC+:} false; then :
2382 $as_echo_n "(cached) " >&6
2383 else
2384 if test -n "$CC"; then
2385 ac_cv_prog_CC="$CC" # Let the user override the test.
2386 else
2387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2388 for as_dir in $PATH
2389 do
2390 IFS=$as_save_IFS
2391 test -z "$as_dir" && as_dir=.
2392 for ac_exec_ext in '' $ac_executable_extensions; do
2393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2394 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2396 break 2
2397 fi
2398 done
2399 done
2400 IFS=$as_save_IFS
2401
2402 fi
2403 fi
2404 CC=$ac_cv_prog_CC
2405 if test -n "$CC"; then
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2407 $as_echo "$CC" >&6; }
2408 else
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2410 $as_echo "no" >&6; }
2411 fi
2412
2413
2414 test -n "$CC" && break
2415 done
2416 fi
2417 if test -z "$CC"; then
2418 ac_ct_CC=$CC
2419 for ac_prog in cl.exe
2420 do
2421 # Extract the first word of "$ac_prog", so it can be a program name with args.
2422 set dummy $ac_prog; ac_word=$2
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2424 $as_echo_n "checking for $ac_word... " >&6; }
2425 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2426 $as_echo_n "(cached) " >&6
2427 else
2428 if test -n "$ac_ct_CC"; then
2429 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2430 else
2431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2432 for as_dir in $PATH
2433 do
2434 IFS=$as_save_IFS
2435 test -z "$as_dir" && as_dir=.
2436 for ac_exec_ext in '' $ac_executable_extensions; do
2437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2438 ac_cv_prog_ac_ct_CC="$ac_prog"
2439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2440 break 2
2441 fi
2442 done
2443 done
2444 IFS=$as_save_IFS
2445
2446 fi
2447 fi
2448 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2449 if test -n "$ac_ct_CC"; then
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2451 $as_echo "$ac_ct_CC" >&6; }
2452 else
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2454 $as_echo "no" >&6; }
2455 fi
2456
2457
2458 test -n "$ac_ct_CC" && break
2459 done
2460
2461 if test "x$ac_ct_CC" = x; then
2462 CC=""
2463 else
2464 case $cross_compiling:$ac_tool_warned in
2465 yes:)
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2467 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2468 ac_tool_warned=yes ;;
2469 esac
2470 CC=$ac_ct_CC
2471 fi
2472 fi
2473
2474 fi
2475
2476
2477 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2478 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2479 as_fn_error $? "no acceptable C compiler found in \$PATH
2480 See \`config.log' for more details" "$LINENO" 5; }
2481
2482 # Provide some information about the compiler.
2483 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2484 set X $ac_compile
2485 ac_compiler=$2
2486 for ac_option in --version -v -V -qversion; do
2487 { { ac_try="$ac_compiler $ac_option >&5"
2488 case "(($ac_try" in
2489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2490 *) ac_try_echo=$ac_try;;
2491 esac
2492 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2493 $as_echo "$ac_try_echo"; } >&5
2494 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2495 ac_status=$?
2496 if test -s conftest.err; then
2497 sed '10a\
2498 ... rest of stderr output deleted ...
2499 10q' conftest.err >conftest.er1
2500 cat conftest.er1 >&5
2501 fi
2502 rm -f conftest.er1 conftest.err
2503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2504 test $ac_status = 0; }
2505 done
2506
2507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2508 /* end confdefs.h. */
2509
2510 int
2511 main ()
2512 {
2513
2514 ;
2515 return 0;
2516 }
2517 _ACEOF
2518 ac_clean_files_save=$ac_clean_files
2519 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2520 # Try to create an executable without -o first, disregard a.out.
2521 # It will help us diagnose broken compilers, and finding out an intuition
2522 # of exeext.
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2524 $as_echo_n "checking whether the C compiler works... " >&6; }
2525 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2526
2527 # The possible output files:
2528 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2529
2530 ac_rmfiles=
2531 for ac_file in $ac_files
2532 do
2533 case $ac_file in
2534 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2535 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2536 esac
2537 done
2538 rm -f $ac_rmfiles
2539
2540 if { { ac_try="$ac_link_default"
2541 case "(($ac_try" in
2542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2543 *) ac_try_echo=$ac_try;;
2544 esac
2545 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2546 $as_echo "$ac_try_echo"; } >&5
2547 (eval "$ac_link_default") 2>&5
2548 ac_status=$?
2549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2550 test $ac_status = 0; }; then :
2551 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2552 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2553 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2554 # so that the user can short-circuit this test for compilers unknown to
2555 # Autoconf.
2556 for ac_file in $ac_files ''
2557 do
2558 test -f "$ac_file" || continue
2559 case $ac_file in
2560 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2561 ;;
2562 [ab].out )
2563 # We found the default executable, but exeext='' is most
2564 # certainly right.
2565 break;;
2566 *.* )
2567 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2568 then :; else
2569 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2570 fi
2571 # We set ac_cv_exeext here because the later test for it is not
2572 # safe: cross compilers may not add the suffix if given an `-o'
2573 # argument, so we may need to know it at that point already.
2574 # Even if this section looks crufty: it has the advantage of
2575 # actually working.
2576 break;;
2577 * )
2578 break;;
2579 esac
2580 done
2581 test "$ac_cv_exeext" = no && ac_cv_exeext=
2582
2583 else
2584 ac_file=''
2585 fi
2586 if test -z "$ac_file"; then :
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2588 $as_echo "no" >&6; }
2589 $as_echo "$as_me: failed program was:" >&5
2590 sed 's/^/| /' conftest.$ac_ext >&5
2591
2592 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2593 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2594 as_fn_error 77 "C compiler cannot create executables
2595 See \`config.log' for more details" "$LINENO" 5; }
2596 else
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2598 $as_echo "yes" >&6; }
2599 fi
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2601 $as_echo_n "checking for C compiler default output file name... " >&6; }
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2603 $as_echo "$ac_file" >&6; }
2604 ac_exeext=$ac_cv_exeext
2605
2606 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2607 ac_clean_files=$ac_clean_files_save
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2609 $as_echo_n "checking for suffix of executables... " >&6; }
2610 if { { ac_try="$ac_link"
2611 case "(($ac_try" in
2612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2613 *) ac_try_echo=$ac_try;;
2614 esac
2615 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2616 $as_echo "$ac_try_echo"; } >&5
2617 (eval "$ac_link") 2>&5
2618 ac_status=$?
2619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2620 test $ac_status = 0; }; then :
2621 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2622 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2623 # work properly (i.e., refer to `conftest.exe'), while it won't with
2624 # `rm'.
2625 for ac_file in conftest.exe conftest conftest.*; do
2626 test -f "$ac_file" || continue
2627 case $ac_file in
2628 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2629 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2630 break;;
2631 * ) break;;
2632 esac
2633 done
2634 else
2635 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2636 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2637 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2638 See \`config.log' for more details" "$LINENO" 5; }
2639 fi
2640 rm -f conftest conftest$ac_cv_exeext
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2642 $as_echo "$ac_cv_exeext" >&6; }
2643
2644 rm -f conftest.$ac_ext
2645 EXEEXT=$ac_cv_exeext
2646 ac_exeext=$EXEEXT
2647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2648 /* end confdefs.h. */
2649 #include <stdio.h>
2650 int
2651 main ()
2652 {
2653 FILE *f = fopen ("conftest.out", "w");
2654 return ferror (f) || fclose (f) != 0;
2655
2656 ;
2657 return 0;
2658 }
2659 _ACEOF
2660 ac_clean_files="$ac_clean_files conftest.out"
2661 # Check that the compiler produces executables we can run. If not, either
2662 # the compiler is broken, or we cross compile.
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2664 $as_echo_n "checking whether we are cross compiling... " >&6; }
2665 if test "$cross_compiling" != yes; then
2666 { { ac_try="$ac_link"
2667 case "(($ac_try" in
2668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2669 *) ac_try_echo=$ac_try;;
2670 esac
2671 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2672 $as_echo "$ac_try_echo"; } >&5
2673 (eval "$ac_link") 2>&5
2674 ac_status=$?
2675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2676 test $ac_status = 0; }
2677 if { ac_try='./conftest$ac_cv_exeext'
2678 { { case "(($ac_try" in
2679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2680 *) ac_try_echo=$ac_try;;
2681 esac
2682 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2683 $as_echo "$ac_try_echo"; } >&5
2684 (eval "$ac_try") 2>&5
2685 ac_status=$?
2686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2687 test $ac_status = 0; }; }; then
2688 cross_compiling=no
2689 else
2690 if test "$cross_compiling" = maybe; then
2691 cross_compiling=yes
2692 else
2693 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2694 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2695 as_fn_error $? "cannot run C compiled programs.
2696 If you meant to cross compile, use \`--host'.
2697 See \`config.log' for more details" "$LINENO" 5; }
2698 fi
2699 fi
2700 fi
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2702 $as_echo "$cross_compiling" >&6; }
2703
2704 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2705 ac_clean_files=$ac_clean_files_save
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2707 $as_echo_n "checking for suffix of object files... " >&6; }
2708 if ${ac_cv_objext+:} false; then :
2709 $as_echo_n "(cached) " >&6
2710 else
2711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2712 /* end confdefs.h. */
2713
2714 int
2715 main ()
2716 {
2717
2718 ;
2719 return 0;
2720 }
2721 _ACEOF
2722 rm -f conftest.o conftest.obj
2723 if { { ac_try="$ac_compile"
2724 case "(($ac_try" in
2725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2726 *) ac_try_echo=$ac_try;;
2727 esac
2728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2729 $as_echo "$ac_try_echo"; } >&5
2730 (eval "$ac_compile") 2>&5
2731 ac_status=$?
2732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2733 test $ac_status = 0; }; then :
2734 for ac_file in conftest.o conftest.obj conftest.*; do
2735 test -f "$ac_file" || continue;
2736 case $ac_file in
2737 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2738 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2739 break;;
2740 esac
2741 done
2742 else
2743 $as_echo "$as_me: failed program was:" >&5
2744 sed 's/^/| /' conftest.$ac_ext >&5
2745
2746 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2747 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2748 as_fn_error $? "cannot compute suffix of object files: cannot compile
2749 See \`config.log' for more details" "$LINENO" 5; }
2750 fi
2751 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2752 fi
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2754 $as_echo "$ac_cv_objext" >&6; }
2755 OBJEXT=$ac_cv_objext
2756 ac_objext=$OBJEXT
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2758 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2759 if ${ac_cv_c_compiler_gnu+:} false; then :
2760 $as_echo_n "(cached) " >&6
2761 else
2762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2763 /* end confdefs.h. */
2764
2765 int
2766 main ()
2767 {
2768 #ifndef __GNUC__
2769 choke me
2770 #endif
2771
2772 ;
2773 return 0;
2774 }
2775 _ACEOF
2776 if ac_fn_c_try_compile "$LINENO"; then :
2777 ac_compiler_gnu=yes
2778 else
2779 ac_compiler_gnu=no
2780 fi
2781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2782 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2783
2784 fi
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2786 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2787 if test $ac_compiler_gnu = yes; then
2788 GCC=yes
2789 else
2790 GCC=
2791 fi
2792 ac_test_CFLAGS=${CFLAGS+set}
2793 ac_save_CFLAGS=$CFLAGS
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2795 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2796 if ${ac_cv_prog_cc_g+:} false; then :
2797 $as_echo_n "(cached) " >&6
2798 else
2799 ac_save_c_werror_flag=$ac_c_werror_flag
2800 ac_c_werror_flag=yes
2801 ac_cv_prog_cc_g=no
2802 CFLAGS="-g"
2803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2804 /* end confdefs.h. */
2805
2806 int
2807 main ()
2808 {
2809
2810 ;
2811 return 0;
2812 }
2813 _ACEOF
2814 if ac_fn_c_try_compile "$LINENO"; then :
2815 ac_cv_prog_cc_g=yes
2816 else
2817 CFLAGS=""
2818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2819 /* end confdefs.h. */
2820
2821 int
2822 main ()
2823 {
2824
2825 ;
2826 return 0;
2827 }
2828 _ACEOF
2829 if ac_fn_c_try_compile "$LINENO"; then :
2830
2831 else
2832 ac_c_werror_flag=$ac_save_c_werror_flag
2833 CFLAGS="-g"
2834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2835 /* end confdefs.h. */
2836
2837 int
2838 main ()
2839 {
2840
2841 ;
2842 return 0;
2843 }
2844 _ACEOF
2845 if ac_fn_c_try_compile "$LINENO"; then :
2846 ac_cv_prog_cc_g=yes
2847 fi
2848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2849 fi
2850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2851 fi
2852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2853 ac_c_werror_flag=$ac_save_c_werror_flag
2854 fi
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2856 $as_echo "$ac_cv_prog_cc_g" >&6; }
2857 if test "$ac_test_CFLAGS" = set; then
2858 CFLAGS=$ac_save_CFLAGS
2859 elif test $ac_cv_prog_cc_g = yes; then
2860 if test "$GCC" = yes; then
2861 CFLAGS="-g -O2"
2862 else
2863 CFLAGS="-g"
2864 fi
2865 else
2866 if test "$GCC" = yes; then
2867 CFLAGS="-O2"
2868 else
2869 CFLAGS=
2870 fi
2871 fi
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2873 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2874 if ${ac_cv_prog_cc_c89+:} false; then :
2875 $as_echo_n "(cached) " >&6
2876 else
2877 ac_cv_prog_cc_c89=no
2878 ac_save_CC=$CC
2879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2880 /* end confdefs.h. */
2881 #include <stdarg.h>
2882 #include <stdio.h>
2883 struct stat;
2884 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2885 struct buf { int x; };
2886 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2887 static char *e (p, i)
2888 char **p;
2889 int i;
2890 {
2891 return p[i];
2892 }
2893 static char *f (char * (*g) (char **, int), char **p, ...)
2894 {
2895 char *s;
2896 va_list v;
2897 va_start (v,p);
2898 s = g (p, va_arg (v,int));
2899 va_end (v);
2900 return s;
2901 }
2902
2903 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2904 function prototypes and stuff, but not '\xHH' hex character constants.
2905 These don't provoke an error unfortunately, instead are silently treated
2906 as 'x'. The following induces an error, until -std is added to get
2907 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2908 array size at least. It's necessary to write '\x00'==0 to get something
2909 that's true only with -std. */
2910 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2911
2912 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2913 inside strings and character constants. */
2914 #define FOO(x) 'x'
2915 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2916
2917 int test (int i, double x);
2918 struct s1 {int (*f) (int a);};
2919 struct s2 {int (*f) (double a);};
2920 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2921 int argc;
2922 char **argv;
2923 int
2924 main ()
2925 {
2926 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2927 ;
2928 return 0;
2929 }
2930 _ACEOF
2931 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2932 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2933 do
2934 CC="$ac_save_CC $ac_arg"
2935 if ac_fn_c_try_compile "$LINENO"; then :
2936 ac_cv_prog_cc_c89=$ac_arg
2937 fi
2938 rm -f core conftest.err conftest.$ac_objext
2939 test "x$ac_cv_prog_cc_c89" != "xno" && break
2940 done
2941 rm -f conftest.$ac_ext
2942 CC=$ac_save_CC
2943
2944 fi
2945 # AC_CACHE_VAL
2946 case "x$ac_cv_prog_cc_c89" in
2947 x)
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2949 $as_echo "none needed" >&6; } ;;
2950 xno)
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2952 $as_echo "unsupported" >&6; } ;;
2953 *)
2954 CC="$CC $ac_cv_prog_cc_c89"
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2956 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2957 esac
2958 if test "x$ac_cv_prog_cc_c89" != xno; then :
2959
2960 fi
2961
2962 ac_ext=cpp
2963 ac_cpp='$CXXCPP $CPPFLAGS'
2964 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2965 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2966 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2967
2968 ac_ext=cpp
2969 ac_cpp='$CXXCPP $CPPFLAGS'
2970 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2971 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2972 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2973 if test -z "$CXX"; then
2974 if test -n "$CCC"; then
2975 CXX=$CCC
2976 else
2977 if test -n "$ac_tool_prefix"; then
2978 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2979 do
2980 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2981 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2983 $as_echo_n "checking for $ac_word... " >&6; }
2984 if ${ac_cv_prog_CXX+:} false; then :
2985 $as_echo_n "(cached) " >&6
2986 else
2987 if test -n "$CXX"; then
2988 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2989 else
2990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2991 for as_dir in $PATH
2992 do
2993 IFS=$as_save_IFS
2994 test -z "$as_dir" && as_dir=.
2995 for ac_exec_ext in '' $ac_executable_extensions; do
2996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2997 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2999 break 2
3000 fi
3001 done
3002 done
3003 IFS=$as_save_IFS
3004
3005 fi
3006 fi
3007 CXX=$ac_cv_prog_CXX
3008 if test -n "$CXX"; then
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3010 $as_echo "$CXX" >&6; }
3011 else
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3013 $as_echo "no" >&6; }
3014 fi
3015
3016
3017 test -n "$CXX" && break
3018 done
3019 fi
3020 if test -z "$CXX"; then
3021 ac_ct_CXX=$CXX
3022 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3023 do
3024 # Extract the first word of "$ac_prog", so it can be a program name with args.
3025 set dummy $ac_prog; ac_word=$2
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3027 $as_echo_n "checking for $ac_word... " >&6; }
3028 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3029 $as_echo_n "(cached) " >&6
3030 else
3031 if test -n "$ac_ct_CXX"; then
3032 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3033 else
3034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3035 for as_dir in $PATH
3036 do
3037 IFS=$as_save_IFS
3038 test -z "$as_dir" && as_dir=.
3039 for ac_exec_ext in '' $ac_executable_extensions; do
3040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3041 ac_cv_prog_ac_ct_CXX="$ac_prog"
3042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3043 break 2
3044 fi
3045 done
3046 done
3047 IFS=$as_save_IFS
3048
3049 fi
3050 fi
3051 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3052 if test -n "$ac_ct_CXX"; then
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3054 $as_echo "$ac_ct_CXX" >&6; }
3055 else
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3057 $as_echo "no" >&6; }
3058 fi
3059
3060
3061 test -n "$ac_ct_CXX" && break
3062 done
3063
3064 if test "x$ac_ct_CXX" = x; then
3065 CXX="g++"
3066 else
3067 case $cross_compiling:$ac_tool_warned in
3068 yes:)
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3070 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3071 ac_tool_warned=yes ;;
3072 esac
3073 CXX=$ac_ct_CXX
3074 fi
3075 fi
3076
3077 fi
3078 fi
3079 # Provide some information about the compiler.
3080 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3081 set X $ac_compile
3082 ac_compiler=$2
3083 for ac_option in --version -v -V -qversion; do
3084 { { ac_try="$ac_compiler $ac_option >&5"
3085 case "(($ac_try" in
3086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087 *) ac_try_echo=$ac_try;;
3088 esac
3089 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3090 $as_echo "$ac_try_echo"; } >&5
3091 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3092 ac_status=$?
3093 if test -s conftest.err; then
3094 sed '10a\
3095 ... rest of stderr output deleted ...
3096 10q' conftest.err >conftest.er1
3097 cat conftest.er1 >&5
3098 fi
3099 rm -f conftest.er1 conftest.err
3100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3101 test $ac_status = 0; }
3102 done
3103
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3105 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3106 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3107 $as_echo_n "(cached) " >&6
3108 else
3109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3110 /* end confdefs.h. */
3111
3112 int
3113 main ()
3114 {
3115 #ifndef __GNUC__
3116 choke me
3117 #endif
3118
3119 ;
3120 return 0;
3121 }
3122 _ACEOF
3123 if ac_fn_cxx_try_compile "$LINENO"; then :
3124 ac_compiler_gnu=yes
3125 else
3126 ac_compiler_gnu=no
3127 fi
3128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3129 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3130
3131 fi
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3133 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3134 if test $ac_compiler_gnu = yes; then
3135 GXX=yes
3136 else
3137 GXX=
3138 fi
3139 ac_test_CXXFLAGS=${CXXFLAGS+set}
3140 ac_save_CXXFLAGS=$CXXFLAGS
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3142 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3143 if ${ac_cv_prog_cxx_g+:} false; then :
3144 $as_echo_n "(cached) " >&6
3145 else
3146 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3147 ac_cxx_werror_flag=yes
3148 ac_cv_prog_cxx_g=no
3149 CXXFLAGS="-g"
3150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3151 /* end confdefs.h. */
3152
3153 int
3154 main ()
3155 {
3156
3157 ;
3158 return 0;
3159 }
3160 _ACEOF
3161 if ac_fn_cxx_try_compile "$LINENO"; then :
3162 ac_cv_prog_cxx_g=yes
3163 else
3164 CXXFLAGS=""
3165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3166 /* end confdefs.h. */
3167
3168 int
3169 main ()
3170 {
3171
3172 ;
3173 return 0;
3174 }
3175 _ACEOF
3176 if ac_fn_cxx_try_compile "$LINENO"; then :
3177
3178 else
3179 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3180 CXXFLAGS="-g"
3181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3182 /* end confdefs.h. */
3183
3184 int
3185 main ()
3186 {
3187
3188 ;
3189 return 0;
3190 }
3191 _ACEOF
3192 if ac_fn_cxx_try_compile "$LINENO"; then :
3193 ac_cv_prog_cxx_g=yes
3194 fi
3195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3196 fi
3197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3198 fi
3199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3200 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3201 fi
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3203 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3204 if test "$ac_test_CXXFLAGS" = set; then
3205 CXXFLAGS=$ac_save_CXXFLAGS
3206 elif test $ac_cv_prog_cxx_g = yes; then
3207 if test "$GXX" = yes; then
3208 CXXFLAGS="-g -O2"
3209 else
3210 CXXFLAGS="-g"
3211 fi
3212 else
3213 if test "$GXX" = yes; then
3214 CXXFLAGS="-O2"
3215 else
3216 CXXFLAGS=
3217 fi
3218 fi
3219 ac_ext=cpp
3220 ac_cpp='$CXXCPP $CPPFLAGS'
3221 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3222 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3223 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3224
3225 ac_ext=cpp
3226 ac_cpp='$CXXCPP $CPPFLAGS'
3227 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3228 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3229 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
3231 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
3232 if test -z "$CXXCPP"; then
3233 if ${ac_cv_prog_CXXCPP+:} false; then :
3234 $as_echo_n "(cached) " >&6
3235 else
3236 # Double quotes because CXXCPP needs to be expanded
3237 for CXXCPP in "$CXX -E" "/lib/cpp"
3238 do
3239 ac_preproc_ok=false
3240 for ac_cxx_preproc_warn_flag in '' yes
3241 do
3242 # Use a header file that comes with gcc, so configuring glibc
3243 # with a fresh cross-compiler works.
3244 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3245 # <limits.h> exists even on freestanding compilers.
3246 # On the NeXT, cc -E runs the code through the compiler's parser,
3247 # not just through cpp. "Syntax error" is here to catch this case.
3248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3249 /* end confdefs.h. */
3250 #ifdef __STDC__
3251 # include <limits.h>
3252 #else
3253 # include <assert.h>
3254 #endif
3255 Syntax error
3256 _ACEOF
3257 if ac_fn_cxx_try_cpp "$LINENO"; then :
3258
3259 else
3260 # Broken: fails on valid input.
3261 continue
3262 fi
3263 rm -f conftest.err conftest.i conftest.$ac_ext
3264
3265 # OK, works on sane cases. Now check whether nonexistent headers
3266 # can be detected and how.
3267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3268 /* end confdefs.h. */
3269 #include <ac_nonexistent.h>
3270 _ACEOF
3271 if ac_fn_cxx_try_cpp "$LINENO"; then :
3272 # Broken: success on invalid input.
3273 continue
3274 else
3275 # Passes both tests.
3276 ac_preproc_ok=:
3277 break
3278 fi
3279 rm -f conftest.err conftest.i conftest.$ac_ext
3280
3281 done
3282 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3283 rm -f conftest.i conftest.err conftest.$ac_ext
3284 if $ac_preproc_ok; then :
3285 break
3286 fi
3287
3288 done
3289 ac_cv_prog_CXXCPP=$CXXCPP
3290
3291 fi
3292 CXXCPP=$ac_cv_prog_CXXCPP
3293 else
3294 ac_cv_prog_CXXCPP=$CXXCPP
3295 fi
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
3297 $as_echo "$CXXCPP" >&6; }
3298 ac_preproc_ok=false
3299 for ac_cxx_preproc_warn_flag in '' yes
3300 do
3301 # Use a header file that comes with gcc, so configuring glibc
3302 # with a fresh cross-compiler works.
3303 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3304 # <limits.h> exists even on freestanding compilers.
3305 # On the NeXT, cc -E runs the code through the compiler's parser,
3306 # not just through cpp. "Syntax error" is here to catch this case.
3307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3308 /* end confdefs.h. */
3309 #ifdef __STDC__
3310 # include <limits.h>
3311 #else
3312 # include <assert.h>
3313 #endif
3314 Syntax error
3315 _ACEOF
3316 if ac_fn_cxx_try_cpp "$LINENO"; then :
3317
3318 else
3319 # Broken: fails on valid input.
3320 continue
3321 fi
3322 rm -f conftest.err conftest.i conftest.$ac_ext
3323
3324 # OK, works on sane cases. Now check whether nonexistent headers
3325 # can be detected and how.
3326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3327 /* end confdefs.h. */
3328 #include <ac_nonexistent.h>
3329 _ACEOF
3330 if ac_fn_cxx_try_cpp "$LINENO"; then :
3331 # Broken: success on invalid input.
3332 continue
3333 else
3334 # Passes both tests.
3335 ac_preproc_ok=:
3336 break
3337 fi
3338 rm -f conftest.err conftest.i conftest.$ac_ext
3339
3340 done
3341 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3342 rm -f conftest.i conftest.err conftest.$ac_ext
3343 if $ac_preproc_ok; then :
3344
3345 else
3346 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3347 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3348 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
3349 See \`config.log' for more details" "$LINENO" 5; }
3350 fi
3351
3352 ac_ext=cpp
3353 ac_cpp='$CXXCPP $CPPFLAGS'
3354 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3355 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3356 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3357
3358 ac_aux_dir=
3359 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3360 if test -f "$ac_dir/install-sh"; then
3361 ac_aux_dir=$ac_dir
3362 ac_install_sh="$ac_aux_dir/install-sh -c"
3363 break
3364 elif test -f "$ac_dir/install.sh"; then
3365 ac_aux_dir=$ac_dir
3366 ac_install_sh="$ac_aux_dir/install.sh -c"
3367 break
3368 elif test -f "$ac_dir/shtool"; then
3369 ac_aux_dir=$ac_dir
3370 ac_install_sh="$ac_aux_dir/shtool install -c"
3371 break
3372 fi
3373 done
3374 if test -z "$ac_aux_dir"; then
3375 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3376 fi
3377
3378 # These three variables are undocumented and unsupported,
3379 # and are intended to be withdrawn in a future Autoconf release.
3380 # They can cause serious problems if a builder's source tree is in a directory
3381 # whose full name contains unusual characters.
3382 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3383 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3384 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3385
3386
3387 # Find a good install program. We prefer a C program (faster),
3388 # so one script is as good as another. But avoid the broken or
3389 # incompatible versions:
3390 # SysV /etc/install, /usr/sbin/install
3391 # SunOS /usr/etc/install
3392 # IRIX /sbin/install
3393 # AIX /bin/install
3394 # AmigaOS /C/install, which installs bootblocks on floppy discs
3395 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3396 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3397 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3398 # OS/2's system install, which has a completely different semantic
3399 # ./install, which can be erroneously created by make from ./install.sh.
3400 # Reject install programs that cannot install multiple files.
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3402 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3403 if test -z "$INSTALL"; then
3404 if ${ac_cv_path_install+:} false; then :
3405 $as_echo_n "(cached) " >&6
3406 else
3407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3408 for as_dir in $PATH
3409 do
3410 IFS=$as_save_IFS
3411 test -z "$as_dir" && as_dir=.
3412 # Account for people who put trailing slashes in PATH elements.
3413 case $as_dir/ in #((
3414 ./ | .// | /[cC]/* | \
3415 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3416 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3417 /usr/ucb/* ) ;;
3418 *)
3419 # OSF1 and SCO ODT 3.0 have their own names for install.
3420 # Don't use installbsd from OSF since it installs stuff as root
3421 # by default.
3422 for ac_prog in ginstall scoinst install; do
3423 for ac_exec_ext in '' $ac_executable_extensions; do
3424 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3425 if test $ac_prog = install &&
3426 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3427 # AIX install. It has an incompatible calling convention.
3428 :
3429 elif test $ac_prog = install &&
3430 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3431 # program-specific install script used by HP pwplus--don't use.
3432 :
3433 else
3434 rm -rf conftest.one conftest.two conftest.dir
3435 echo one > conftest.one
3436 echo two > conftest.two
3437 mkdir conftest.dir
3438 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3439 test -s conftest.one && test -s conftest.two &&
3440 test -s conftest.dir/conftest.one &&
3441 test -s conftest.dir/conftest.two
3442 then
3443 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3444 break 3
3445 fi
3446 fi
3447 fi
3448 done
3449 done
3450 ;;
3451 esac
3452
3453 done
3454 IFS=$as_save_IFS
3455
3456 rm -rf conftest.one conftest.two conftest.dir
3457
3458 fi
3459 if test "${ac_cv_path_install+set}" = set; then
3460 INSTALL=$ac_cv_path_install
3461 else
3462 # As a last resort, use the slow shell script. Don't cache a
3463 # value for INSTALL within a source directory, because that will
3464 # break other packages using the cache if that directory is
3465 # removed, or if the value is a relative name.
3466 INSTALL=$ac_install_sh
3467 fi
3468 fi
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3470 $as_echo "$INSTALL" >&6; }
3471
3472 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3473 # It thinks the first close brace ends the variable substitution.
3474 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3475
3476 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3477
3478 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3479
3480
3481
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
3483 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
3484 if ${ac_cv_c_const+:} false; then :
3485 $as_echo_n "(cached) " >&6
3486 else
3487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3488 /* end confdefs.h. */
3489
3490 int
3491 main ()
3492 {
3493
3494 #ifndef __cplusplus
3495 /* Ultrix mips cc rejects this sort of thing. */
3496 typedef int charset[2];
3497 const charset cs = { 0, 0 };
3498 /* SunOS 4.1.1 cc rejects this. */
3499 char const *const *pcpcc;
3500 char **ppc;
3501 /* NEC SVR4.0.2 mips cc rejects this. */
3502 struct point {int x, y;};
3503 static struct point const zero = {0,0};
3504 /* AIX XL C 1.02.0.0 rejects this.
3505 It does not let you subtract one const X* pointer from another in
3506 an arm of an if-expression whose if-part is not a constant
3507 expression */
3508 const char *g = "string";
3509 pcpcc = &g + (g ? g-g : 0);
3510 /* HPUX 7.0 cc rejects these. */
3511 ++pcpcc;
3512 ppc = (char**) pcpcc;
3513 pcpcc = (char const *const *) ppc;
3514 { /* SCO 3.2v4 cc rejects this sort of thing. */
3515 char tx;
3516 char *t = &tx;
3517 char const *s = 0 ? (char *) 0 : (char const *) 0;
3518
3519 *t++ = 0;
3520 if (s) return 0;
3521 }
3522 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3523 int x[] = {25, 17};
3524 const int *foo = &x[0];
3525 ++foo;
3526 }
3527 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3528 typedef const int *iptr;
3529 iptr p = 0;
3530 ++p;
3531 }
3532 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
3533 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3534 struct s { int j; const int *ap[3]; } bx;
3535 struct s *b = &bx; b->j = 5;
3536 }
3537 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3538 const int foo = 10;
3539 if (!foo) return 0;
3540 }
3541 return !cs[0] && !zero.x;
3542 #endif
3543
3544 ;
3545 return 0;
3546 }
3547 _ACEOF
3548 if ac_fn_cxx_try_compile "$LINENO"; then :
3549 ac_cv_c_const=yes
3550 else
3551 ac_cv_c_const=no
3552 fi
3553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3554 fi
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
3556 $as_echo "$ac_cv_c_const" >&6; }
3557 if test $ac_cv_c_const = no; then
3558
3559 $as_echo "#define const /**/" >>confdefs.h
3560
3561 fi
3562
3563
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3565 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3566 if ${ac_cv_path_GREP+:} false; then :
3567 $as_echo_n "(cached) " >&6
3568 else
3569 if test -z "$GREP"; then
3570 ac_path_GREP_found=false
3571 # Loop through the user's path and test for each of PROGNAME-LIST
3572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3573 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3574 do
3575 IFS=$as_save_IFS
3576 test -z "$as_dir" && as_dir=.
3577 for ac_prog in grep ggrep; do
3578 for ac_exec_ext in '' $ac_executable_extensions; do
3579 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3580 as_fn_executable_p "$ac_path_GREP" || continue
3581 # Check for GNU ac_path_GREP and select it if it is found.
3582 # Check for GNU $ac_path_GREP
3583 case `"$ac_path_GREP" --version 2>&1` in
3584 *GNU*)
3585 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3586 *)
3587 ac_count=0
3588 $as_echo_n 0123456789 >"conftest.in"
3589 while :
3590 do
3591 cat "conftest.in" "conftest.in" >"conftest.tmp"
3592 mv "conftest.tmp" "conftest.in"
3593 cp "conftest.in" "conftest.nl"
3594 $as_echo 'GREP' >> "conftest.nl"
3595 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3596 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3597 as_fn_arith $ac_count + 1 && ac_count=$as_val
3598 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3599 # Best one so far, save it but keep looking for a better one
3600 ac_cv_path_GREP="$ac_path_GREP"
3601 ac_path_GREP_max=$ac_count
3602 fi
3603 # 10*(2^10) chars as input seems more than enough
3604 test $ac_count -gt 10 && break
3605 done
3606 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3607 esac
3608
3609 $ac_path_GREP_found && break 3
3610 done
3611 done
3612 done
3613 IFS=$as_save_IFS
3614 if test -z "$ac_cv_path_GREP"; then
3615 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3616 fi
3617 else
3618 ac_cv_path_GREP=$GREP
3619 fi
3620
3621 fi
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3623 $as_echo "$ac_cv_path_GREP" >&6; }
3624 GREP="$ac_cv_path_GREP"
3625
3626
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3628 $as_echo_n "checking for egrep... " >&6; }
3629 if ${ac_cv_path_EGREP+:} false; then :
3630 $as_echo_n "(cached) " >&6
3631 else
3632 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3633 then ac_cv_path_EGREP="$GREP -E"
3634 else
3635 if test -z "$EGREP"; then
3636 ac_path_EGREP_found=false
3637 # Loop through the user's path and test for each of PROGNAME-LIST
3638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3639 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3640 do
3641 IFS=$as_save_IFS
3642 test -z "$as_dir" && as_dir=.
3643 for ac_prog in egrep; do
3644 for ac_exec_ext in '' $ac_executable_extensions; do
3645 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3646 as_fn_executable_p "$ac_path_EGREP" || continue
3647 # Check for GNU ac_path_EGREP and select it if it is found.
3648 # Check for GNU $ac_path_EGREP
3649 case `"$ac_path_EGREP" --version 2>&1` in
3650 *GNU*)
3651 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3652 *)
3653 ac_count=0
3654 $as_echo_n 0123456789 >"conftest.in"
3655 while :
3656 do
3657 cat "conftest.in" "conftest.in" >"conftest.tmp"
3658 mv "conftest.tmp" "conftest.in"
3659 cp "conftest.in" "conftest.nl"
3660 $as_echo 'EGREP' >> "conftest.nl"
3661 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3662 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3663 as_fn_arith $ac_count + 1 && ac_count=$as_val
3664 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3665 # Best one so far, save it but keep looking for a better one
3666 ac_cv_path_EGREP="$ac_path_EGREP"
3667 ac_path_EGREP_max=$ac_count
3668 fi
3669 # 10*(2^10) chars as input seems more than enough
3670 test $ac_count -gt 10 && break
3671 done
3672 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3673 esac
3674
3675 $ac_path_EGREP_found && break 3
3676 done
3677 done
3678 done
3679 IFS=$as_save_IFS
3680 if test -z "$ac_cv_path_EGREP"; then
3681 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3682 fi
3683 else
3684 ac_cv_path_EGREP=$EGREP
3685 fi
3686
3687 fi
3688 fi
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3690 $as_echo "$ac_cv_path_EGREP" >&6; }
3691 EGREP="$ac_cv_path_EGREP"
3692
3693
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3695 $as_echo_n "checking for ANSI C header files... " >&6; }
3696 if ${ac_cv_header_stdc+:} false; then :
3697 $as_echo_n "(cached) " >&6
3698 else
3699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3700 /* end confdefs.h. */
3701 #include <stdlib.h>
3702 #include <stdarg.h>
3703 #include <string.h>
3704 #include <float.h>
3705
3706 int
3707 main ()
3708 {
3709
3710 ;
3711 return 0;
3712 }
3713 _ACEOF
3714 if ac_fn_cxx_try_compile "$LINENO"; then :
3715 ac_cv_header_stdc=yes
3716 else
3717 ac_cv_header_stdc=no
3718 fi
3719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3720
3721 if test $ac_cv_header_stdc = yes; then
3722 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3724 /* end confdefs.h. */
3725 #include <string.h>
3726
3727 _ACEOF
3728 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3729 $EGREP "memchr" >/dev/null 2>&1; then :
3730
3731 else
3732 ac_cv_header_stdc=no
3733 fi
3734 rm -f conftest*
3735
3736 fi
3737
3738 if test $ac_cv_header_stdc = yes; then
3739 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3741 /* end confdefs.h. */
3742 #include <stdlib.h>
3743
3744 _ACEOF
3745 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3746 $EGREP "free" >/dev/null 2>&1; then :
3747
3748 else
3749 ac_cv_header_stdc=no
3750 fi
3751 rm -f conftest*
3752
3753 fi
3754
3755 if test $ac_cv_header_stdc = yes; then
3756 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3757 if test "$cross_compiling" = yes; then :
3758 :
3759 else
3760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3761 /* end confdefs.h. */
3762 #include <ctype.h>
3763 #include <stdlib.h>
3764 #if ((' ' & 0x0FF) == 0x020)
3765 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3766 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3767 #else
3768 # define ISLOWER(c) \
3769 (('a' <= (c) && (c) <= 'i') \
3770 || ('j' <= (c) && (c) <= 'r') \
3771 || ('s' <= (c) && (c) <= 'z'))
3772 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3773 #endif
3774
3775 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3776 int
3777 main ()
3778 {
3779 int i;
3780 for (i = 0; i < 256; i++)
3781 if (XOR (islower (i), ISLOWER (i))
3782 || toupper (i) != TOUPPER (i))
3783 return 2;
3784 return 0;
3785 }
3786 _ACEOF
3787 if ac_fn_cxx_try_run "$LINENO"; then :
3788
3789 else
3790 ac_cv_header_stdc=no
3791 fi
3792 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3793 conftest.$ac_objext conftest.beam conftest.$ac_ext
3794 fi
3795
3796 fi
3797 fi
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3799 $as_echo "$ac_cv_header_stdc" >&6; }
3800 if test $ac_cv_header_stdc = yes; then
3801
3802 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3803
3804 fi
3805
3806 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3807 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3808 inttypes.h stdint.h unistd.h
3809 do :
3810 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3811 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3812 "
3813 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3814 cat >>confdefs.h <<_ACEOF
3815 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3816 _ACEOF
3817
3818 fi
3819
3820 done
3821
3822
3823 ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
3824 if test "x$ac_cv_type_size_t" = xyes; then :
3825
3826 else
3827
3828 cat >>confdefs.h <<_ACEOF
3829 #define size_t unsigned int
3830 _ACEOF
3831
3832 fi
3833
3834
3835
3836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3837 /* end confdefs.h. */
3838 #include <sys/types.h>
3839 #include <sys/ipc.h>
3840 #include <sys/sem.h>
3841
3842 int
3843 main ()
3844 {
3845 union semun sem;
3846 ;
3847 return 0;
3848 }
3849 _ACEOF
3850 if ac_fn_cxx_try_compile "$LINENO"; then :
3851 semun="yes"
3852 fi
3853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3854 if [ -n "$semun" ]; then
3855 semun="#define SEMUN_IN_SEM_H"
3856 fi
3857
3858
3859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3860 /* end confdefs.h. */
3861
3862 int
3863 main ()
3864 {
3865 bool var;
3866 ;
3867 return 0;
3868 }
3869 _ACEOF
3870 if ac_fn_cxx_try_compile "$LINENO"; then :
3871
3872 else
3873 bool="typedef bool char;"
3874 fi
3875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3876
3877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3878 /* end confdefs.h. */
3879
3880 int
3881 main ()
3882 {
3883 char c = true; char d = false;
3884
3885 ;
3886 return 0;
3887 }
3888 _ACEOF
3889 if ac_fn_cxx_try_compile "$LINENO"; then :
3890 true_false="0"
3891 else
3892 true_false="1"
3893 fi
3894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3895
3896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3897 /* end confdefs.h. */
3898 #include <stdio.h>
3899 int
3900 main ()
3901 {
3902 char buf[10]; snprintf(buf, sizeof(buf), "abc");
3903 ;
3904 return 0;
3905 }
3906 _ACEOF
3907 if ac_fn_cxx_try_link "$LINENO"; then :
3908
3909 else
3910 snprintf="no"
3911 fi
3912 rm -f core conftest.err conftest.$ac_objext \
3913 conftest$ac_exeext conftest.$ac_ext;
3914 if [ -n "$snprintf" ]; then
3915 snprintf="#define NO_SNPRINTF"
3916 fi
3917
3918
3919 extra_ldflags=
3920
3921 # Check whether --with-extra-libs was given.
3922 if test "${with_extra_libs+set}" = set; then :
3923 withval=$with_extra_libs; use_extra_libs=$withval
3924 else
3925 use_extra_libs=NONE
3926
3927 fi
3928
3929 if test -n "$use_extra_libs" && \
3930 test "$use_extra_libs" != "NONE"; then
3931
3932 ac_save_ifs=$IFS
3933 IFS=':'
3934 for dir in $use_extra_libs; do
3935 extra_ldflags="$extra_ldflags -L$dir"
3936 done
3937 IFS=$ac_save_ifs
3938 fi
3939
3940 extra_ldflags=`/usr/bin/uname -a | grep -q SunOS && echo -lrt`
3941
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
3943 $as_echo_n "checking for bind in -lsocket... " >&6; }
3944 if ${ac_cv_lib_socket_bind+:} false; then :
3945 $as_echo_n "(cached) " >&6
3946 else
3947 ac_check_lib_save_LIBS=$LIBS
3948 LIBS="-lsocket $LIBS"
3949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3950 /* end confdefs.h. */
3951
3952 /* Override any GCC internal prototype to avoid an error.
3953 Use char because int might match the return type of a GCC
3954 builtin and then its argument prototype would still apply. */
3955 #ifdef __cplusplus
3956 extern "C"
3957 #endif
3958 char bind ();
3959 int
3960 main ()
3961 {
3962 return bind ();
3963 ;
3964 return 0;
3965 }
3966 _ACEOF
3967 if ac_fn_cxx_try_link "$LINENO"; then :
3968 ac_cv_lib_socket_bind=yes
3969 else
3970 ac_cv_lib_socket_bind=no
3971 fi
3972 rm -f core conftest.err conftest.$ac_objext \
3973 conftest$ac_exeext conftest.$ac_ext
3974 LIBS=$ac_check_lib_save_LIBS
3975 fi
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
3977 $as_echo "$ac_cv_lib_socket_bind" >&6; }
3978 if test "x$ac_cv_lib_socket_bind" = xyes; then :
3979 extra_ldflags="$extra_ldflags -lsocket -lnsl"
3980 fi
3981
3982
3983
3984
3985
3986 if [ "$DISABLEGNUTLS" = "no" ]; then
3987 ac_fn_cxx_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
3988 if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then :
3989 GNUTLS=yes
3990 else
3991 GNUTLS=no
3992 fi
3993
3994
3995 else
3996 GNUTLS=no
3997 fi
3998 if [ "$GNUTLS" = "yes" ]; then
3999 DISABLEOPENSSL=yes
4000 fi
4001 if [ "$DISABLEOPENSSL" = "no" ]; then
4002 ac_fn_cxx_check_header_mongrel "$LINENO" "openssl/crypto.h" "ac_cv_header_openssl_crypto_h" "$ac_includes_default"
4003 if test "x$ac_cv_header_openssl_crypto_h" = xyes; then :
4004 OPENSSL=yes
4005 else
4006 OPENSSL=no
4007 fi
4008
4009
4010 else
4011 OPENSSL=no
4012 fi
4013 if [ "$OPENSSL" = "no" ]; then
4014 extra_objs="md5.o"
4015 fi
4016
4017
4018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4019 /* end confdefs.h. */
4020 #define _GNU_SOURCE
4021 #include <pthread.h>
4022
4023 int
4024 main ()
4025 {
4026 pthread_mutexattr_t attr;
4027 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
4028
4029 ;
4030 return 0;
4031 }
4032 _ACEOF
4033 if ac_fn_cxx_try_compile "$LINENO"; then :
4034 linux_pthread="yes"
4035 fi
4036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4037 if [ -n "$linux_pthread" ]; then
4038 linux_pthread="#define LINUX_PTHREAD"
4039 fi
4040
4041 LDFLAGS=-lpthread
4042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4043 /* end confdefs.h. */
4044 #include <pthread.h>
4045 void * thread_func(void * param) { return NULL; }
4046
4047 int
4048 main ()
4049 {
4050 pthread_t thread_info;
4051 pthread_attr_t attr;
4052 pthread_create(&thread_info, &attr, &thread_func, NULL);
4053
4054 ;
4055 return 0;
4056 }
4057 _ACEOF
4058 if ac_fn_cxx_try_link "$LINENO"; then :
4059 extra_ldflags="$extra_ldflags -lpthread"
4060
4061 else
4062 extra_ldflags="$extra_ldflags -pthread"
4063 fi
4064 rm -f core conftest.err conftest.$ac_objext \
4065 conftest$ac_exeext conftest.$ac_ext
4066
4067
4068 crypt_ldflags="$extra_ldflags"
4069 if [ "$GNUTLS" = "no" ]; then
4070 gnutls=""
4071 else
4072 gnutls="#define USE_GNUTLS"
4073 crypt_ldflags="$extra_ldflags -lgnutls"
4074 fi
4075 if [ "$OPENSSL" = "no" ]; then
4076 openssl=""
4077 else
4078 openssl="#define USE_OPENSSL"
4079 crypt_ldflags="$extra_ldflags -lssl -lcrypto"
4080 fi
4081
4082
4083 large_file=""
4084
4085
4086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4087 /* end confdefs.h. */
4088 #include <sys/types.h>
4089 #include <sys/socket.h>
4090
4091 int
4092 main ()
4093 {
4094 socklen_t * namelen;
4095 ;
4096 return 0;
4097 }
4098 _ACEOF
4099 if ac_fn_cxx_try_compile "$LINENO"; then :
4100
4101 else
4102 no_socklen_t="true"
4103 fi
4104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4105 if [ -n "$no_socklen_t" ]; then
4106 socklen_t="#define socklen_t int"
4107 fi
4108
4109 for ac_header in vector
4110 do :
4111 ac_fn_cxx_check_header_mongrel "$LINENO" "vector" "ac_cv_header_vector" "$ac_includes_default"
4112 if test "x$ac_cv_header_vector" = xyes; then :
4113 cat >>confdefs.h <<_ACEOF
4114 #define HAVE_VECTOR 1
4115 _ACEOF
4116
4117 fi
4118
4119 done
4120
4121
4122
4123 ac_config_files="$ac_config_files Makefile postal.h port.h postal.spec sun/pkginfo"
4124
4125 cat >confcache <<\_ACEOF
4126 # This file is a shell script that caches the results of configure
4127 # tests run on this system so they can be shared between configure
4128 # scripts and configure runs, see configure's option --config-cache.
4129 # It is not useful on other systems. If it contains results you don't
4130 # want to keep, you may remove or edit it.
4131 #
4132 # config.status only pays attention to the cache file if you give it
4133 # the --recheck option to rerun configure.
4134 #
4135 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4136 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4137 # following values.
4138
4139 _ACEOF
4140
4141 # The following way of writing the cache mishandles newlines in values,
4142 # but we know of no workaround that is simple, portable, and efficient.
4143 # So, we kill variables containing newlines.
4144 # Ultrix sh set writes to stderr and can't be redirected directly,
4145 # and sets the high bit in the cache file unless we assign to the vars.
4146 (
4147 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4148 eval ac_val=\$$ac_var
4149 case $ac_val in #(
4150 *${as_nl}*)
4151 case $ac_var in #(
4152 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4153 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4154 esac
4155 case $ac_var in #(
4156 _ | IFS | as_nl) ;; #(
4157 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4158 *) { eval $ac_var=; unset $ac_var;} ;;
4159 esac ;;
4160 esac
4161 done
4162
4163 (set) 2>&1 |
4164 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4165 *${as_nl}ac_space=\ *)
4166 # `set' does not quote correctly, so add quotes: double-quote
4167 # substitution turns \\\\ into \\, and sed turns \\ into \.
4168 sed -n \
4169 "s/'/'\\\\''/g;
4170 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4171 ;; #(
4172 *)
4173 # `set' quotes correctly as required by POSIX, so do not add quotes.
4174 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4175 ;;
4176 esac |
4177 sort
4178 ) |
4179 sed '
4180 /^ac_cv_env_/b end
4181 t clear
4182 :clear
4183 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4184 t end
4185 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4186 :end' >>confcache
4187 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4188 if test -w "$cache_file"; then
4189 if test "x$cache_file" != "x/dev/null"; then
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4191 $as_echo "$as_me: updating cache $cache_file" >&6;}
4192 if test ! -f "$cache_file" || test -h "$cache_file"; then
4193 cat confcache >"$cache_file"
4194 else
4195 case $cache_file in #(
4196 */* | ?:*)
4197 mv -f confcache "$cache_file"$$ &&
4198 mv -f "$cache_file"$$ "$cache_file" ;; #(
4199 *)
4200 mv -f confcache "$cache_file" ;;
4201 esac
4202 fi
4203 fi
4204 else
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4206 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4207 fi
4208 fi
4209 rm -f confcache
4210
4211 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4212 # Let make expand exec_prefix.
4213 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4214
4215 DEFS=-DHAVE_CONFIG_H
4216
4217 ac_libobjs=
4218 ac_ltlibobjs=
4219 U=
4220 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4221 # 1. Remove the extension, and $U if already installed.
4222 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4223 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4224 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4225 # will be set to the directory where LIBOBJS objects are built.
4226 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4227 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4228 done
4229 LIBOBJS=$ac_libobjs
4230
4231 LTLIBOBJS=$ac_ltlibobjs
4232
4233
4234
4235 : "${CONFIG_STATUS=./config.status}"
4236 ac_write_fail=0
4237 ac_clean_files_save=$ac_clean_files
4238 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4240 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4241 as_write_fail=0
4242 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4243 #! $SHELL
4244 # Generated by $as_me.
4245 # Run this file to recreate the current configuration.
4246 # Compiler output produced by configure, useful for debugging
4247 # configure, is in config.log if it exists.
4248
4249 debug=false
4250 ac_cs_recheck=false
4251 ac_cs_silent=false
4252
4253 SHELL=\${CONFIG_SHELL-$SHELL}
4254 export SHELL
4255 _ASEOF
4256 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4257 ## -------------------- ##
4258 ## M4sh Initialization. ##
4259 ## -------------------- ##
4260
4261 # Be more Bourne compatible
4262 DUALCASE=1; export DUALCASE # for MKS sh
4263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
4264 emulate sh
4265 NULLCMD=:
4266 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4267 # is contrary to our usage. Disable this feature.
4268 alias -g '${1+"$@"}'='"$@"'
4269 setopt NO_GLOB_SUBST
4270 else
4271 case `(set -o) 2>/dev/null` in #(
4272 *posix*) :
4273 set -o posix ;; #(
4274 *) :
4275 ;;
4276 esac
4277 fi
4278
4279
4280 as_nl='
4281 '
4282 export as_nl
4283 # Printing a long string crashes Solaris 7 /usr/bin/printf.
4284 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4285 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4286 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4287 # Prefer a ksh shell builtin over an external printf program on Solaris,
4288 # but without wasting forks for bash or zsh.
4289 if test -z "$BASH_VERSION$ZSH_VERSION" \
4290 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4291 as_echo='print -r --'
4292 as_echo_n='print -rn --'
4293 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4294 as_echo='printf %s\n'
4295 as_echo_n='printf %s'
4296 else
4297 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4298 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
4299 as_echo_n='/usr/ucb/echo -n'
4300 else
4301 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4302 as_echo_n_body='eval
4303 arg=$1;
4304 case $arg in #(
4305 *"$as_nl"*)
4306 expr "X$arg" : "X\\(.*\\)$as_nl";
4307 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4308 esac;
4309 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
4310 '
4311 export as_echo_n_body
4312 as_echo_n='sh -c $as_echo_n_body as_echo'
4313 fi
4314 export as_echo_body
4315 as_echo='sh -c $as_echo_body as_echo'
4316 fi
4317
4318 # The user is always right.
4319 if test "${PATH_SEPARATOR+set}" != set; then
4320 PATH_SEPARATOR=:
4321 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4322 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4323 PATH_SEPARATOR=';'
4324 }
4325 fi
4326
4327
4328 # IFS
4329 # We need space, tab and new line, in precisely that order. Quoting is
4330 # there to prevent editors from complaining about space-tab.
4331 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
4332 # splitting by setting IFS to empty value.)
4333 IFS=" "" $as_nl"
4334
4335 # Find who we are. Look in the path if we contain no directory separator.
4336 as_myself=
4337 case $0 in #((
4338 *[\\/]* ) as_myself=$0 ;;
4339 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4340 for as_dir in $PATH
4341 do
4342 IFS=$as_save_IFS
4343 test -z "$as_dir" && as_dir=.
4344 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4345 done
4346 IFS=$as_save_IFS
4347
4348 ;;
4349 esac
4350 # We did not find ourselves, most probably we were run as `sh COMMAND'
4351 # in which case we are not to be found in the path.
4352 if test "x$as_myself" = x; then
4353 as_myself=$0
4354 fi
4355 if test ! -f "$as_myself"; then
4356 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4357 exit 1
4358 fi
4359
4360 # Unset variables that we do not need and which cause bugs (e.g. in
4361 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
4362 # suppresses any "Segmentation fault" message there. '((' could
4363 # trigger a bug in pdksh 5.2.14.
4364 for as_var in BASH_ENV ENV MAIL MAILPATH
4365 do eval test x\${$as_var+set} = xset \
4366 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4367 done
4368 PS1='$ '
4369 PS2='> '
4370 PS4='+ '
4371
4372 # NLS nuisances.
4373 LC_ALL=C
4374 export LC_ALL
4375 LANGUAGE=C
4376 export LANGUAGE
4377
4378 # CDPATH.
4379 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4380
4381
4382 # as_fn_error STATUS ERROR [LINENO LOG_FD]
4383 # ----------------------------------------
4384 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4385 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4386 # script with STATUS, using 1 if that was 0.
4387 as_fn_error ()
4388 {
4389 as_status=$1; test $as_status -eq 0 && as_status=1
4390 if test "$4"; then
4391 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4392 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4393 fi
4394 $as_echo "$as_me: error: $2" >&2
4395 as_fn_exit $as_status
4396 } # as_fn_error
4397
4398
4399 # as_fn_set_status STATUS
4400 # -----------------------
4401 # Set $? to STATUS, without forking.
4402 as_fn_set_status ()
4403 {
4404 return $1
4405 } # as_fn_set_status
4406
4407 # as_fn_exit STATUS
4408 # -----------------
4409 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4410 as_fn_exit ()
4411 {
4412 set +e
4413 as_fn_set_status $1
4414 exit $1
4415 } # as_fn_exit
4416
4417 # as_fn_unset VAR
4418 # ---------------
4419 # Portably unset VAR.
4420 as_fn_unset ()
4421 {
4422 { eval $1=; unset $1;}
4423 }
4424 as_unset=as_fn_unset
4425 # as_fn_append VAR VALUE
4426 # ----------------------
4427 # Append the text in VALUE to the end of the definition contained in VAR. Take
4428 # advantage of any shell optimizations that allow amortized linear growth over
4429 # repeated appends, instead of the typical quadratic growth present in naive
4430 # implementations.
4431 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
4432 eval 'as_fn_append ()
4433 {
4434 eval $1+=\$2
4435 }'
4436 else
4437 as_fn_append ()
4438 {
4439 eval $1=\$$1\$2
4440 }
4441 fi # as_fn_append
4442
4443 # as_fn_arith ARG...
4444 # ------------------
4445 # Perform arithmetic evaluation on the ARGs, and store the result in the
4446 # global $as_val. Take advantage of shells that can avoid forks. The arguments
4447 # must be portable across $(()) and expr.
4448 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
4449 eval 'as_fn_arith ()
4450 {
4451 as_val=$(( $* ))
4452 }'
4453 else
4454 as_fn_arith ()
4455 {
4456 as_val=`expr "$@" || test $? -eq 1`
4457 }
4458 fi # as_fn_arith
4459
4460
4461 if expr a : '\(a\)' >/dev/null 2>&1 &&
4462 test "X`expr 00001 : '.*\(...\)'`" = X001; then
4463 as_expr=expr
4464 else
4465 as_expr=false
4466 fi
4467
4468 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4469 as_basename=basename
4470 else
4471 as_basename=false
4472 fi
4473
4474 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4475 as_dirname=dirname
4476 else
4477 as_dirname=false
4478 fi
4479
4480 as_me=`$as_basename -- "$0" ||
4481 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4482 X"$0" : 'X\(//\)$' \| \
4483 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4484 $as_echo X/"$0" |
4485 sed '/^.*\/\([^/][^/]*\)\/*$/{
4486 s//\1/
4487 q
4488 }
4489 /^X\/\(\/\/\)$/{
4490 s//\1/
4491 q
4492 }
4493 /^X\/\(\/\).*/{
4494 s//\1/
4495 q
4496 }
4497 s/.*/./; q'`
4498
4499 # Avoid depending upon Character Ranges.
4500 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4501 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4502 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4503 as_cr_digits='0123456789'
4504 as_cr_alnum=$as_cr_Letters$as_cr_digits
4505
4506 ECHO_C= ECHO_N= ECHO_T=
4507 case `echo -n x` in #(((((
4508 -n*)
4509 case `echo 'xy\c'` in
4510 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
4511 xy) ECHO_C='\c';;
4512 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
4513 ECHO_T=' ';;
4514 esac;;
4515 *)
4516 ECHO_N='-n';;
4517 esac
4518
4519 rm -f conf$$ conf$$.exe conf$$.file
4520 if test -d conf$$.dir; then
4521 rm -f conf$$.dir/conf$$.file
4522 else
4523 rm -f conf$$.dir
4524 mkdir conf$$.dir 2>/dev/null
4525 fi
4526 if (echo >conf$$.file) 2>/dev/null; then
4527 if ln -s conf$$.file conf$$ 2>/dev/null; then
4528 as_ln_s='ln -s'
4529 # ... but there are two gotchas:
4530 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4531 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4532 # In both cases, we have to default to `cp -pR'.
4533 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4534 as_ln_s='cp -pR'
4535 elif ln conf$$.file conf$$ 2>/dev/null; then
4536 as_ln_s=ln
4537 else
4538 as_ln_s='cp -pR'
4539 fi
4540 else
4541 as_ln_s='cp -pR'
4542 fi
4543 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4544 rmdir conf$$.dir 2>/dev/null
4545
4546
4547 # as_fn_mkdir_p
4548 # -------------
4549 # Create "$as_dir" as a directory, including parents if necessary.
4550 as_fn_mkdir_p ()
4551 {
4552
4553 case $as_dir in #(
4554 -*) as_dir=./$as_dir;;
4555 esac
4556 test -d "$as_dir" || eval $as_mkdir_p || {
4557 as_dirs=
4558 while :; do
4559 case $as_dir in #(
4560 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4561 *) as_qdir=$as_dir;;
4562 esac
4563 as_dirs="'$as_qdir' $as_dirs"
4564 as_dir=`$as_dirname -- "$as_dir" ||
4565 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4566 X"$as_dir" : 'X\(//\)[^/]' \| \
4567 X"$as_dir" : 'X\(//\)$' \| \
4568 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4569 $as_echo X"$as_dir" |
4570 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4571 s//\1/
4572 q
4573 }
4574 /^X\(\/\/\)[^/].*/{
4575 s//\1/
4576 q
4577 }
4578 /^X\(\/\/\)$/{
4579 s//\1/
4580 q
4581 }
4582 /^X\(\/\).*/{
4583 s//\1/
4584 q
4585 }
4586 s/.*/./; q'`
4587 test -d "$as_dir" && break
4588 done
4589 test -z "$as_dirs" || eval "mkdir $as_dirs"
4590 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
4591
4592
4593 } # as_fn_mkdir_p
4594 if mkdir -p . 2>/dev/null; then
4595 as_mkdir_p='mkdir -p "$as_dir"'
4596 else
4597 test -d ./-p && rmdir ./-p
4598 as_mkdir_p=false
4599 fi
4600
4601
4602 # as_fn_executable_p FILE
4603 # -----------------------
4604 # Test if FILE is an executable regular file.
4605 as_fn_executable_p ()
4606 {
4607 test -f "$1" && test -x "$1"
4608 } # as_fn_executable_p
4609 as_test_x='test -x'
4610 as_executable_p=as_fn_executable_p
4611
4612 # Sed expression to map a string onto a valid CPP name.
4613 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4614
4615 # Sed expression to map a string onto a valid variable name.
4616 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4617
4618
4619 exec 6>&1
4620 ## ----------------------------------- ##
4621 ## Main body of $CONFIG_STATUS script. ##
4622 ## ----------------------------------- ##
4623 _ASEOF
4624 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
4625
4626 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4627 # Save the log message, to keep $0 and so on meaningful, and to
4628 # report actual input values of CONFIG_FILES etc. instead of their
4629 # values after options handling.
4630 ac_log="
4631 This file was extended by $as_me, which was
4632 generated by GNU Autoconf 2.69. Invocation command line was
4633
4634 CONFIG_FILES = $CONFIG_FILES
4635 CONFIG_HEADERS = $CONFIG_HEADERS
4636 CONFIG_LINKS = $CONFIG_LINKS
4637 CONFIG_COMMANDS = $CONFIG_COMMANDS
4638 $ $0 $@
4639
4640 on `(hostname || uname -n) 2>/dev/null | sed 1q`
4641 "
4642
4643 _ACEOF
4644
4645 case $ac_config_files in *"
4646 "*) set x $ac_config_files; shift; ac_config_files=$*;;
4647 esac
4648
4649 case $ac_config_headers in *"
4650 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
4651 esac
4652
4653
4654 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4655 # Files that config.status was made for.
4656 config_files="$ac_config_files"
4657 config_headers="$ac_config_headers"
4658
4659 _ACEOF
4660
4661 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4662 ac_cs_usage="\
4663 \`$as_me' instantiates files and other configuration actions
4664 from templates according to the current configuration. Unless the files
4665 and actions are specified as TAGs, all are instantiated by default.
4666
4667 Usage: $0 [OPTION]... [TAG]...
4668
4669 -h, --help print this help, then exit
4670 -V, --version print version number and configuration settings, then exit
4671 --config print configuration, then exit
4672 -q, --quiet, --silent
4673 do not print progress messages
4674 -d, --debug don't remove temporary files
4675 --recheck update $as_me by reconfiguring in the same conditions
4676 --file=FILE[:TEMPLATE]
4677 instantiate the configuration file FILE
4678 --header=FILE[:TEMPLATE]
4679 instantiate the configuration header FILE
4680
4681 Configuration files:
4682 $config_files
4683
4684 Configuration headers:
4685 $config_headers
4686
4687 Report bugs to the package provider."
4688
4689 _ACEOF
4690 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4691 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
4692 ac_cs_version="\\
4693 config.status
4694 configured by $0, generated by GNU Autoconf 2.69,
4695 with options \\"\$ac_cs_config\\"
4696
4697 Copyright (C) 2012 Free Software Foundation, Inc.
4698 This config.status script is free software; the Free Software Foundation
4699 gives unlimited permission to copy, distribute and modify it."
4700
4701 ac_pwd='$ac_pwd'
4702 srcdir='$srcdir'
4703 INSTALL='$INSTALL'
4704 test -n "\$AWK" || AWK=awk
4705 _ACEOF
4706
4707 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4708 # The default lists apply if the user does not specify any file.
4709 ac_need_defaults=:
4710 while test $# != 0
4711 do
4712 case $1 in
4713 --*=?*)
4714 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4715 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4716 ac_shift=:
4717 ;;
4718 --*=)
4719 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4720 ac_optarg=
4721 ac_shift=:
4722 ;;
4723 *)
4724 ac_option=$1
4725 ac_optarg=$2
4726 ac_shift=shift
4727 ;;
4728 esac
4729
4730 case $ac_option in
4731 # Handling of the options.
4732 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4733 ac_cs_recheck=: ;;
4734 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4735 $as_echo "$ac_cs_version"; exit ;;
4736 --config | --confi | --conf | --con | --co | --c )
4737 $as_echo "$ac_cs_config"; exit ;;
4738 --debug | --debu | --deb | --de | --d | -d )
4739 debug=: ;;
4740 --file | --fil | --fi | --f )
4741 $ac_shift
4742 case $ac_optarg in
4743 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4744 '') as_fn_error $? "missing file argument" ;;
4745 esac
4746 as_fn_append CONFIG_FILES " '$ac_optarg'"
4747 ac_need_defaults=false;;
4748 --header | --heade | --head | --hea )
4749 $ac_shift
4750 case $ac_optarg in
4751 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4752 esac
4753 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
4754 ac_need_defaults=false;;
4755 --he | --h)
4756 # Conflict between --help and --header
4757 as_fn_error $? "ambiguous option: \`$1'
4758 Try \`$0 --help' for more information.";;
4759 --help | --hel | -h )
4760 $as_echo "$ac_cs_usage"; exit ;;
4761 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4762 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4763 ac_cs_silent=: ;;
4764
4765 # This is an error.
4766 -*) as_fn_error $? "unrecognized option: \`$1'
4767 Try \`$0 --help' for more information." ;;
4768
4769 *) as_fn_append ac_config_targets " $1"
4770 ac_need_defaults=false ;;
4771
4772 esac
4773 shift
4774 done
4775
4776 ac_configure_extra_args=
4777
4778 if $ac_cs_silent; then
4779 exec 6>/dev/null
4780 ac_configure_extra_args="$ac_configure_extra_args --silent"
4781 fi
4782
4783 _ACEOF
4784 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4785 if \$ac_cs_recheck; then
4786 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4787 shift
4788 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
4789 CONFIG_SHELL='$SHELL'
4790 export CONFIG_SHELL
4791 exec "\$@"
4792 fi
4793
4794 _ACEOF
4795 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4796 exec 5>>config.log
4797 {
4798 echo
4799 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4800 ## Running $as_me. ##
4801 _ASBOX
4802 $as_echo "$ac_log"
4803 } >&5
4804
4805 _ACEOF
4806 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4807 _ACEOF
4808
4809 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4810
4811 # Handling of arguments.
4812 for ac_config_target in $ac_config_targets
4813 do
4814 case $ac_config_target in
4815 "conf.h") CONFIG_HEADERS="$CONFIG_HEADERS conf.h" ;;
4816 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4817 "postal.h") CONFIG_FILES="$CONFIG_FILES postal.h" ;;
4818 "port.h") CONFIG_FILES="$CONFIG_FILES port.h" ;;
4819 "postal.spec") CONFIG_FILES="$CONFIG_FILES postal.spec" ;;
4820 "sun/pkginfo") CONFIG_FILES="$CONFIG_FILES sun/pkginfo" ;;
4821
4822 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
4823 esac
4824 done
4825
4826
4827 # If the user did not use the arguments to specify the items to instantiate,
4828 # then the envvar interface is used. Set only those that are not.
4829 # We use the long form for the default assignment because of an extremely
4830 # bizarre bug on SunOS 4.1.3.
4831 if $ac_need_defaults; then
4832 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4833 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4834 fi
4835
4836 # Have a temporary directory for convenience. Make it in the build tree
4837 # simply because there is no reason against having it here, and in addition,
4838 # creating and moving files from /tmp can sometimes cause problems.
4839 # Hook for its removal unless debugging.
4840 # Note that there is a small window in which the directory will not be cleaned:
4841 # after its creation but before its name has been assigned to `$tmp'.
4842 $debug ||
4843 {
4844 tmp= ac_tmp=
4845 trap 'exit_status=$?
4846 : "${ac_tmp:=$tmp}"
4847 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
4848 ' 0
4849 trap 'as_fn_exit 1' 1 2 13 15
4850 }
4851 # Create a (secure) tmp directory for tmp files.
4852
4853 {
4854 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4855 test -d "$tmp"
4856 } ||
4857 {
4858 tmp=./conf$$-$RANDOM
4859 (umask 077 && mkdir "$tmp")
4860 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
4861 ac_tmp=$tmp
4862
4863 # Set up the scripts for CONFIG_FILES section.
4864 # No need to generate them if there are no CONFIG_FILES.
4865 # This happens for instance with `./config.status config.h'.
4866 if test -n "$CONFIG_FILES"; then
4867
4868
4869 ac_cr=`echo X | tr X '\015'`
4870 # On cygwin, bash can eat \r inside `` if the user requested igncr.
4871 # But we know of no other shell where ac_cr would be empty at this
4872 # point, so we can use a bashism as a fallback.
4873 if test "x$ac_cr" = x; then
4874 eval ac_cr=\$\'\\r\'
4875 fi
4876 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
4877 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
4878 ac_cs_awk_cr='\\r'
4879 else
4880 ac_cs_awk_cr=$ac_cr
4881 fi
4882
4883 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
4884 _ACEOF
4885
4886
4887 {
4888 echo "cat >conf$$subs.awk <<_ACEOF" &&
4889 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
4890 echo "_ACEOF"
4891 } >conf$$subs.sh ||
4892 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4893 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
4894 ac_delim='%!_!# '
4895 for ac_last_try in false false false false false :; do
4896 . ./conf$$subs.sh ||
4897 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4898
4899 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
4900 if test $ac_delim_n = $ac_delim_num; then
4901 break
4902 elif $ac_last_try; then
4903 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4904 else
4905 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4906 fi
4907 done
4908 rm -f conf$$subs.sh
4909
4910 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4911 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
4912 _ACEOF
4913 sed -n '
4914 h
4915 s/^/S["/; s/!.*/"]=/
4916 p
4917 g
4918 s/^[^!]*!//
4919 :repl
4920 t repl
4921 s/'"$ac_delim"'$//
4922 t delim
4923 :nl
4924 h
4925 s/\(.\{148\}\)..*/\1/
4926 t more1
4927 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
4928 p
4929 n
4930 b repl
4931 :more1
4932 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4933 p
4934 g
4935 s/.\{148\}//
4936 t nl
4937 :delim
4938 h
4939 s/\(.\{148\}\)..*/\1/
4940 t more2
4941 s/["\\]/\\&/g; s/^/"/; s/$/"/
4942 p
4943 b
4944 :more2
4945 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4946 p
4947 g
4948 s/.\{148\}//
4949 t delim
4950 ' <conf$$subs.awk | sed '
4951 /^[^""]/{
4952 N
4953 s/\n//
4954 }
4955 ' >>$CONFIG_STATUS || ac_write_fail=1
4956 rm -f conf$$subs.awk
4957 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4958 _ACAWK
4959 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
4960 for (key in S) S_is_set[key] = 1
4961 FS = ""
4962
4963 }
4964 {
4965 line = $ 0
4966 nfields = split(line, field, "@")
4967 substed = 0
4968 len = length(field[1])
4969 for (i = 2; i < nfields; i++) {
4970 key = field[i]
4971 keylen = length(key)
4972 if (S_is_set[key]) {
4973 value = S[key]
4974 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
4975 len += length(value) + length(field[++i])
4976 substed = 1
4977 } else
4978 len += 1 + keylen
4979 }
4980
4981 print line
4982 }
4983
4984 _ACAWK
4985 _ACEOF
4986 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4987 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
4988 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
4989 else
4990 cat
4991 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
4992 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
4993 _ACEOF
4994
4995 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
4996 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
4997 # trailing colons and then remove the whole line if VPATH becomes empty
4998 # (actually we leave an empty line to preserve line numbers).
4999 if test "x$srcdir" = x.; then
5000 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
5001 h
5002 s///
5003 s/^/:/
5004 s/[ ]*$/:/
5005 s/:\$(srcdir):/:/g
5006 s/:\${srcdir}:/:/g
5007 s/:@srcdir@:/:/g
5008 s/^:*//
5009 s/:*$//
5010 x
5011 s/\(=[ ]*\).*/\1/
5012 G
5013 s/\n//
5014 s/^[^=]*=[ ]*$//
5015 }'
5016 fi
5017
5018 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5019 fi # test -n "$CONFIG_FILES"
5020
5021 # Set up the scripts for CONFIG_HEADERS section.
5022 # No need to generate them if there are no CONFIG_HEADERS.
5023 # This happens for instance with `./config.status Makefile'.
5024 if test -n "$CONFIG_HEADERS"; then
5025 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
5026 BEGIN {
5027 _ACEOF
5028
5029 # Transform confdefs.h into an awk script `defines.awk', embedded as
5030 # here-document in config.status, that substitutes the proper values into
5031 # config.h.in to produce config.h.
5032
5033 # Create a delimiter string that does not exist in confdefs.h, to ease
5034 # handling of long lines.
5035 ac_delim='%!_!# '
5036 for ac_last_try in false false :; do
5037 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
5038 if test -z "$ac_tt"; then
5039 break
5040 elif $ac_last_try; then
5041 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
5042 else
5043 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5044 fi
5045 done
5046
5047 # For the awk script, D is an array of macro values keyed by name,
5048 # likewise P contains macro parameters if any. Preserve backslash
5049 # newline sequences.
5050
5051 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5052 sed -n '
5053 s/.\{148\}/&'"$ac_delim"'/g
5054 t rset
5055 :rset
5056 s/^[ ]*#[ ]*define[ ][ ]*/ /
5057 t def
5058 d
5059 :def
5060 s/\\$//
5061 t bsnl
5062 s/["\\]/\\&/g
5063 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5064 D["\1"]=" \3"/p
5065 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
5066 d
5067 :bsnl
5068 s/["\\]/\\&/g
5069 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5070 D["\1"]=" \3\\\\\\n"\\/p
5071 t cont
5072 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
5073 t cont
5074 d
5075 :cont
5076 n
5077 s/.\{148\}/&'"$ac_delim"'/g
5078 t clear
5079 :clear
5080 s/\\$//
5081 t bsnlc
5082 s/["\\]/\\&/g; s/^/"/; s/$/"/p
5083 d
5084 :bsnlc
5085 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
5086 b cont
5087 ' <confdefs.h | sed '
5088 s/'"$ac_delim"'/"\\\
5089 "/g' >>$CONFIG_STATUS || ac_write_fail=1
5090
5091 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5092 for (key in D) D_is_set[key] = 1
5093 FS = ""
5094 }
5095 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5096 line = \$ 0
5097 split(line, arg, " ")
5098 if (arg[1] == "#") {
5099 defundef = arg[2]
5100 mac1 = arg[3]
5101 } else {
5102 defundef = substr(arg[1], 2)
5103 mac1 = arg[2]
5104 }
5105 split(mac1, mac2, "(") #)
5106 macro = mac2[1]
5107 prefix = substr(line, 1, index(line, defundef) - 1)
5108 if (D_is_set[macro]) {
5109 # Preserve the white space surrounding the "#".
5110 print prefix "define", macro P[macro] D[macro]
5111 next
5112 } else {
5113 # Replace #undef with comments. This is necessary, for example,
5114 # in the case of _POSIX_SOURCE, which is predefined and required
5115 # on some systems where configure will not decide to define it.
5116 if (defundef == "undef") {
5117 print "/*", prefix defundef, macro, "*/"
5118 next
5119 }
5120 }
5121 }
5122 { print }
5123 _ACAWK
5124 _ACEOF
5125 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5126 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
5127 fi # test -n "$CONFIG_HEADERS"
5128
5129
5130 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
5131 shift
5132 for ac_tag
5133 do
5134 case $ac_tag in
5135 :[FHLC]) ac_mode=$ac_tag; continue;;
5136 esac
5137 case $ac_mode$ac_tag in
5138 :[FHL]*:*);;
5139 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5140 :[FH]-) ac_tag=-:-;;
5141 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5142 esac
5143 ac_save_IFS=$IFS
5144 IFS=:
5145 set x $ac_tag
5146 IFS=$ac_save_IFS
5147 shift
5148 ac_file=$1
5149 shift
5150
5151 case $ac_mode in
5152 :L) ac_source=$1;;
5153 :[FH])
5154 ac_file_inputs=
5155 for ac_f
5156 do
5157 case $ac_f in
5158 -) ac_f="$ac_tmp/stdin";;
5159 *) # Look for the file first in the build tree, then in the source tree
5160 # (if the path is not absolute). The absolute path cannot be DOS-style,
5161 # because $ac_f cannot contain `:'.
5162 test -f "$ac_f" ||
5163 case $ac_f in
5164 [\\/$]*) false;;
5165 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5166 esac ||
5167 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5168 esac
5169 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5170 as_fn_append ac_file_inputs " '$ac_f'"
5171 done
5172
5173 # Let's still pretend it is `configure' which instantiates (i.e., don't
5174 # use $as_me), people would be surprised to read:
5175 # /* config.h. Generated by config.status. */
5176 configure_input='Generated from '`
5177 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5178 `' by configure.'
5179 if test x"$ac_file" != x-; then
5180 configure_input="$ac_file. $configure_input"
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5182 $as_echo "$as_me: creating $ac_file" >&6;}
5183 fi
5184 # Neutralize special characters interpreted by sed in replacement strings.
5185 case $configure_input in #(
5186 *\&* | *\|* | *\\* )
5187 ac_sed_conf_input=`$as_echo "$configure_input" |
5188 sed 's/[\\\\&|]/\\\\&/g'`;; #(
5189 *) ac_sed_conf_input=$configure_input;;
5190 esac
5191
5192 case $ac_tag in
5193 *:-:* | *:-) cat >"$ac_tmp/stdin" \
5194 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5195 esac
5196 ;;
5197 esac
5198
5199 ac_dir=`$as_dirname -- "$ac_file" ||
5200 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5201 X"$ac_file" : 'X\(//\)[^/]' \| \
5202 X"$ac_file" : 'X\(//\)$' \| \
5203 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5204 $as_echo X"$ac_file" |
5205 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5206 s//\1/
5207 q
5208 }
5209 /^X\(\/\/\)[^/].*/{
5210 s//\1/
5211 q
5212 }
5213 /^X\(\/\/\)$/{
5214 s//\1/
5215 q
5216 }
5217 /^X\(\/\).*/{
5218 s//\1/
5219 q
5220 }
5221 s/.*/./; q'`
5222 as_dir="$ac_dir"; as_fn_mkdir_p
5223 ac_builddir=.
5224
5225 case "$ac_dir" in
5226 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5227 *)
5228 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5229 # A ".." for each directory in $ac_dir_suffix.
5230 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5231 case $ac_top_builddir_sub in
5232 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5233 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5234 esac ;;
5235 esac
5236 ac_abs_top_builddir=$ac_pwd
5237 ac_abs_builddir=$ac_pwd$ac_dir_suffix
5238 # for backward compatibility:
5239 ac_top_builddir=$ac_top_build_prefix
5240
5241 case $srcdir in
5242 .) # We are building in place.
5243 ac_srcdir=.
5244 ac_top_srcdir=$ac_top_builddir_sub
5245 ac_abs_top_srcdir=$ac_pwd ;;
5246 [\\/]* | ?:[\\/]* ) # Absolute name.
5247 ac_srcdir=$srcdir$ac_dir_suffix;
5248 ac_top_srcdir=$srcdir
5249 ac_abs_top_srcdir=$srcdir ;;
5250 *) # Relative name.
5251 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5252 ac_top_srcdir=$ac_top_build_prefix$srcdir
5253 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5254 esac
5255 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5256
5257
5258 case $ac_mode in
5259 :F)
5260 #
5261 # CONFIG_FILE
5262 #
5263
5264 case $INSTALL in
5265 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5266 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
5267 esac
5268 _ACEOF
5269
5270 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5271 # If the template does not know about datarootdir, expand it.
5272 # FIXME: This hack should be removed a few years after 2.60.
5273 ac_datarootdir_hack=; ac_datarootdir_seen=
5274 ac_sed_dataroot='
5275 /datarootdir/ {
5276 p
5277 q
5278 }
5279 /@datadir@/p
5280 /@docdir@/p
5281 /@infodir@/p
5282 /@localedir@/p
5283 /@mandir@/p'
5284 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5285 *datarootdir*) ac_datarootdir_seen=yes;;
5286 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5288 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5289 _ACEOF
5290 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5291 ac_datarootdir_hack='
5292 s&@datadir@&$datadir&g
5293 s&@docdir@&$docdir&g
5294 s&@infodir@&$infodir&g
5295 s&@localedir@&$localedir&g
5296 s&@mandir@&$mandir&g
5297 s&\\\${datarootdir}&$datarootdir&g' ;;
5298 esac
5299 _ACEOF
5300
5301 # Neutralize VPATH when `$srcdir' = `.'.
5302 # Shell code in configure.ac might set extrasub.
5303 # FIXME: do we really want to maintain this feature?
5304 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5305 ac_sed_extra="$ac_vpsub
5306 $extrasub
5307 _ACEOF
5308 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5309 :t
5310 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5311 s|@configure_input@|$ac_sed_conf_input|;t t
5312 s&@top_builddir@&$ac_top_builddir_sub&;t t
5313 s&@top_build_prefix@&$ac_top_build_prefix&;t t
5314 s&@srcdir@&$ac_srcdir&;t t
5315 s&@abs_srcdir@&$ac_abs_srcdir&;t t
5316 s&@top_srcdir@&$ac_top_srcdir&;t t
5317 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5318 s&@builddir@&$ac_builddir&;t t
5319 s&@abs_builddir@&$ac_abs_builddir&;t t
5320 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5321 s&@INSTALL@&$ac_INSTALL&;t t
5322 $ac_datarootdir_hack
5323 "
5324 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
5325 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5326
5327 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5328 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
5329 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
5330 "$ac_tmp/out"`; test -z "$ac_out"; } &&
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5332 which seems to be undefined. Please make sure it is defined" >&5
5333 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5334 which seems to be undefined. Please make sure it is defined" >&2;}
5335
5336 rm -f "$ac_tmp/stdin"
5337 case $ac_file in
5338 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
5339 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5340 esac \
5341 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5342 ;;
5343 :H)
5344 #
5345 # CONFIG_HEADER
5346 #
5347 if test x"$ac_file" != x-; then
5348 {
5349 $as_echo "/* $configure_input */" \
5350 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
5351 } >"$ac_tmp/config.h" \
5352 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5353 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
5355 $as_echo "$as_me: $ac_file is unchanged" >&6;}
5356 else
5357 rm -f "$ac_file"
5358 mv "$ac_tmp/config.h" "$ac_file" \
5359 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5360 fi
5361 else
5362 $as_echo "/* $configure_input */" \
5363 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
5364 || as_fn_error $? "could not create -" "$LINENO" 5
5365 fi
5366 ;;
5367
5368
5369 esac
5370
5371 done # for ac_tag
5372
5373
5374 as_fn_exit 0
5375 _ACEOF
5376 ac_clean_files=$ac_clean_files_save
5377
5378 test $ac_write_fail = 0 ||
5379 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5380
5381
5382 # configure is writing to config.log, and then calls config.status.
5383 # config.status does its own redirection, appending to config.log.
5384 # Unfortunately, on DOS this fails, as config.log is still kept open
5385 # by configure, so config.status won't be able to write to it; its
5386 # output is simply discarded. So we exec the FD to /dev/null,
5387 # effectively closing config.log, so it can be properly (re)opened and
5388 # appended to by config.status. When coming back to configure, we
5389 # need to make the FD available again.
5390 if test "$no_create" != yes; then
5391 ac_cs_success=:
5392 ac_config_status_args=
5393 test "$silent" = yes &&
5394 ac_config_status_args="$ac_config_status_args --quiet"
5395 exec 5>/dev/null
5396 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5397 exec 5>>config.log
5398 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5399 # would make configure fail if this is the last instruction.
5400 $ac_cs_success || as_fn_exit 1
5401 fi
5402 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5404 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
5405 fi
5406