Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for pgqd 3.5.
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 [email protected] 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='pgqd'
579 PACKAGE_TARNAME='pgqd'
580 PACKAGE_VERSION='3.5'
581 PACKAGE_STRING='pgqd 3.5'
582 PACKAGE_BUGREPORT=''
583 PACKAGE_URL=''
584
585 ac_unique_file="src/pgqd.c"
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 enable_debug
625 LIBEVENT_LIBS
626 LIBEVENT_CFLAGS
627 PKG_CONFIG_LIBDIR
628 PKG_CONFIG_PATH
629 PKG_CONFIG
630 ARFLAGS
631 AR
632 RANLIB
633 STRIP
634 SED
635 MKDIR_P
636 AWK
637 EGREP
638 GREP
639 LN_S
640 INSTALL_DATA
641 INSTALL_SCRIPT
642 INSTALL_PROGRAM
643 WFLAGS
644 HAVE_CC_DEPFLAG
645 CPP
646 OBJEXT
647 EXEEXT
648 ac_ct_CC
649 CPPFLAGS
650 LDFLAGS
651 CFLAGS
652 CC
653 pkgconfigdir
654 pkgdatadir
655 PORTNAME
656 host_os
657 host_vendor
658 host_cpu
659 host
660 build_os
661 build_vendor
662 build_cpu
663 build
664 PG_CONFIG
665 target_alias
666 host_alias
667 build_alias
668 LIBS
669 ECHO_T
670 ECHO_N
671 ECHO_C
672 DEFS
673 mandir
674 localedir
675 libdir
676 psdir
677 pdfdir
678 dvidir
679 htmldir
680 infodir
681 docdir
682 oldincludedir
683 includedir
684 runstatedir
685 localstatedir
686 sharedstatedir
687 sysconfdir
688 datadir
689 datarootdir
690 libexecdir
691 sbindir
692 bindir
693 program_transform_name
694 prefix
695 exec_prefix
696 PACKAGE_URL
697 PACKAGE_BUGREPORT
698 PACKAGE_STRING
699 PACKAGE_VERSION
700 PACKAGE_TARNAME
701 PACKAGE_NAME
702 PATH_SEPARATOR
703 SHELL'
704 ac_subst_files=''
705 ac_user_opts='
706 enable_option_checking
707 with_pgconfig
708 enable_largefile
709 enable_debug
710 enable_cassert
711 '
712 ac_precious_vars='build_alias
713 host_alias
714 target_alias
715 CC
716 CFLAGS
717 LDFLAGS
718 LIBS
719 CPPFLAGS
720 CPP
721 PKG_CONFIG
722 PKG_CONFIG_PATH
723 PKG_CONFIG_LIBDIR
724 LIBEVENT_CFLAGS
725 LIBEVENT_LIBS'
726
727
728 # Initialize some variables set by options.
729 ac_init_help=
730 ac_init_version=false
731 ac_unrecognized_opts=
732 ac_unrecognized_sep=
733 # The variables have the same names as the options, with
734 # dashes changed to underlines.
735 cache_file=/dev/null
736 exec_prefix=NONE
737 no_create=
738 no_recursion=
739 prefix=NONE
740 program_prefix=NONE
741 program_suffix=NONE
742 program_transform_name=s,x,x,
743 silent=
744 site=
745 srcdir=
746 verbose=
747 x_includes=NONE
748 x_libraries=NONE
749
750 # Installation directory options.
751 # These are left unexpanded so users can "make install exec_prefix=/foo"
752 # and all the variables that are supposed to be based on exec_prefix
753 # by default will actually change.
754 # Use braces instead of parens because sh, perl, etc. also accept them.
755 # (The list follows the same order as the GNU Coding Standards.)
756 bindir='${exec_prefix}/bin'
757 sbindir='${exec_prefix}/sbin'
758 libexecdir='${exec_prefix}/libexec'
759 datarootdir='${prefix}/share'
760 datadir='${datarootdir}'
761 sysconfdir='${prefix}/etc'
762 sharedstatedir='${prefix}/com'
763 localstatedir='${prefix}/var'
764 runstatedir='${localstatedir}/run'
765 includedir='${prefix}/include'
766 oldincludedir='/usr/include'
767 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
768 infodir='${datarootdir}/info'
769 htmldir='${docdir}'
770 dvidir='${docdir}'
771 pdfdir='${docdir}'
772 psdir='${docdir}'
773 libdir='${exec_prefix}/lib'
774 localedir='${datarootdir}/locale'
775 mandir='${datarootdir}/man'
776
777 ac_prev=
778 ac_dashdash=
779 for ac_option
780 do
781 # If the previous option needs an argument, assign it.
782 if test -n "$ac_prev"; then
783 eval $ac_prev=\$ac_option
784 ac_prev=
785 continue
786 fi
787
788 case $ac_option in
789 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
790 *=) ac_optarg= ;;
791 *) ac_optarg=yes ;;
792 esac
793
794 # Accept the important Cygnus configure options, so we can diagnose typos.
795
796 case $ac_dashdash$ac_option in
797 --)
798 ac_dashdash=yes ;;
799
800 -bindir | --bindir | --bindi | --bind | --bin | --bi)
801 ac_prev=bindir ;;
802 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
803 bindir=$ac_optarg ;;
804
805 -build | --build | --buil | --bui | --bu)
806 ac_prev=build_alias ;;
807 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
808 build_alias=$ac_optarg ;;
809
810 -cache-file | --cache-file | --cache-fil | --cache-fi \
811 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
812 ac_prev=cache_file ;;
813 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
814 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
815 cache_file=$ac_optarg ;;
816
817 --config-cache | -C)
818 cache_file=config.cache ;;
819
820 -datadir | --datadir | --datadi | --datad)
821 ac_prev=datadir ;;
822 -datadir=* | --datadir=* | --datadi=* | --datad=*)
823 datadir=$ac_optarg ;;
824
825 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
826 | --dataroo | --dataro | --datar)
827 ac_prev=datarootdir ;;
828 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
829 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
830 datarootdir=$ac_optarg ;;
831
832 -disable-* | --disable-*)
833 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
834 # Reject names that are not valid shell variable names.
835 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
836 as_fn_error $? "invalid feature name: $ac_useropt"
837 ac_useropt_orig=$ac_useropt
838 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
839 case $ac_user_opts in
840 *"
841 "enable_$ac_useropt"
842 "*) ;;
843 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
844 ac_unrecognized_sep=', ';;
845 esac
846 eval enable_$ac_useropt=no ;;
847
848 -docdir | --docdir | --docdi | --doc | --do)
849 ac_prev=docdir ;;
850 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
851 docdir=$ac_optarg ;;
852
853 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
854 ac_prev=dvidir ;;
855 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
856 dvidir=$ac_optarg ;;
857
858 -enable-* | --enable-*)
859 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
860 # Reject names that are not valid shell variable names.
861 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
862 as_fn_error $? "invalid feature name: $ac_useropt"
863 ac_useropt_orig=$ac_useropt
864 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
865 case $ac_user_opts in
866 *"
867 "enable_$ac_useropt"
868 "*) ;;
869 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
870 ac_unrecognized_sep=', ';;
871 esac
872 eval enable_$ac_useropt=\$ac_optarg ;;
873
874 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
875 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
876 | --exec | --exe | --ex)
877 ac_prev=exec_prefix ;;
878 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
879 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
880 | --exec=* | --exe=* | --ex=*)
881 exec_prefix=$ac_optarg ;;
882
883 -gas | --gas | --ga | --g)
884 # Obsolete; use --with-gas.
885 with_gas=yes ;;
886
887 -help | --help | --hel | --he | -h)
888 ac_init_help=long ;;
889 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
890 ac_init_help=recursive ;;
891 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
892 ac_init_help=short ;;
893
894 -host | --host | --hos | --ho)
895 ac_prev=host_alias ;;
896 -host=* | --host=* | --hos=* | --ho=*)
897 host_alias=$ac_optarg ;;
898
899 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
900 ac_prev=htmldir ;;
901 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
902 | --ht=*)
903 htmldir=$ac_optarg ;;
904
905 -includedir | --includedir | --includedi | --included | --include \
906 | --includ | --inclu | --incl | --inc)
907 ac_prev=includedir ;;
908 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
909 | --includ=* | --inclu=* | --incl=* | --inc=*)
910 includedir=$ac_optarg ;;
911
912 -infodir | --infodir | --infodi | --infod | --info | --inf)
913 ac_prev=infodir ;;
914 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
915 infodir=$ac_optarg ;;
916
917 -libdir | --libdir | --libdi | --libd)
918 ac_prev=libdir ;;
919 -libdir=* | --libdir=* | --libdi=* | --libd=*)
920 libdir=$ac_optarg ;;
921
922 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
923 | --libexe | --libex | --libe)
924 ac_prev=libexecdir ;;
925 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
926 | --libexe=* | --libex=* | --libe=*)
927 libexecdir=$ac_optarg ;;
928
929 -localedir | --localedir | --localedi | --localed | --locale)
930 ac_prev=localedir ;;
931 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
932 localedir=$ac_optarg ;;
933
934 -localstatedir | --localstatedir | --localstatedi | --localstated \
935 | --localstate | --localstat | --localsta | --localst | --locals)
936 ac_prev=localstatedir ;;
937 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
938 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
939 localstatedir=$ac_optarg ;;
940
941 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
942 ac_prev=mandir ;;
943 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
944 mandir=$ac_optarg ;;
945
946 -nfp | --nfp | --nf)
947 # Obsolete; use --without-fp.
948 with_fp=no ;;
949
950 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
951 | --no-cr | --no-c | -n)
952 no_create=yes ;;
953
954 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
955 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
956 no_recursion=yes ;;
957
958 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
959 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
960 | --oldin | --oldi | --old | --ol | --o)
961 ac_prev=oldincludedir ;;
962 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
963 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
964 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
965 oldincludedir=$ac_optarg ;;
966
967 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
968 ac_prev=prefix ;;
969 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
970 prefix=$ac_optarg ;;
971
972 -program-prefix | --program-prefix | --program-prefi | --program-pref \
973 | --program-pre | --program-pr | --program-p)
974 ac_prev=program_prefix ;;
975 -program-prefix=* | --program-prefix=* | --program-prefi=* \
976 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
977 program_prefix=$ac_optarg ;;
978
979 -program-suffix | --program-suffix | --program-suffi | --program-suff \
980 | --program-suf | --program-su | --program-s)
981 ac_prev=program_suffix ;;
982 -program-suffix=* | --program-suffix=* | --program-suffi=* \
983 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
984 program_suffix=$ac_optarg ;;
985
986 -program-transform-name | --program-transform-name \
987 | --program-transform-nam | --program-transform-na \
988 | --program-transform-n | --program-transform- \
989 | --program-transform | --program-transfor \
990 | --program-transfo | --program-transf \
991 | --program-trans | --program-tran \
992 | --progr-tra | --program-tr | --program-t)
993 ac_prev=program_transform_name ;;
994 -program-transform-name=* | --program-transform-name=* \
995 | --program-transform-nam=* | --program-transform-na=* \
996 | --program-transform-n=* | --program-transform-=* \
997 | --program-transform=* | --program-transfor=* \
998 | --program-transfo=* | --program-transf=* \
999 | --program-trans=* | --program-tran=* \
1000 | --progr-tra=* | --program-tr=* | --program-t=*)
1001 program_transform_name=$ac_optarg ;;
1002
1003 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1004 ac_prev=pdfdir ;;
1005 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1006 pdfdir=$ac_optarg ;;
1007
1008 -psdir | --psdir | --psdi | --psd | --ps)
1009 ac_prev=psdir ;;
1010 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1011 psdir=$ac_optarg ;;
1012
1013 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1014 | -silent | --silent | --silen | --sile | --sil)
1015 silent=yes ;;
1016
1017 -runstatedir | --runstatedir | --runstatedi | --runstated \
1018 | --runstate | --runstat | --runsta | --runst | --runs \
1019 | --run | --ru | --r)
1020 ac_prev=runstatedir ;;
1021 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1022 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1023 | --run=* | --ru=* | --r=*)
1024 runstatedir=$ac_optarg ;;
1025
1026 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1027 ac_prev=sbindir ;;
1028 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1029 | --sbi=* | --sb=*)
1030 sbindir=$ac_optarg ;;
1031
1032 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1033 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1034 | --sharedst | --shareds | --shared | --share | --shar \
1035 | --sha | --sh)
1036 ac_prev=sharedstatedir ;;
1037 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1038 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1039 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1040 | --sha=* | --sh=*)
1041 sharedstatedir=$ac_optarg ;;
1042
1043 -site | --site | --sit)
1044 ac_prev=site ;;
1045 -site=* | --site=* | --sit=*)
1046 site=$ac_optarg ;;
1047
1048 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1049 ac_prev=srcdir ;;
1050 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1051 srcdir=$ac_optarg ;;
1052
1053 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1054 | --syscon | --sysco | --sysc | --sys | --sy)
1055 ac_prev=sysconfdir ;;
1056 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1057 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1058 sysconfdir=$ac_optarg ;;
1059
1060 -target | --target | --targe | --targ | --tar | --ta | --t)
1061 ac_prev=target_alias ;;
1062 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1063 target_alias=$ac_optarg ;;
1064
1065 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1066 verbose=yes ;;
1067
1068 -version | --version | --versio | --versi | --vers | -V)
1069 ac_init_version=: ;;
1070
1071 -with-* | --with-*)
1072 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1073 # Reject names that are not valid shell variable names.
1074 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1075 as_fn_error $? "invalid package name: $ac_useropt"
1076 ac_useropt_orig=$ac_useropt
1077 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1078 case $ac_user_opts in
1079 *"
1080 "with_$ac_useropt"
1081 "*) ;;
1082 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1083 ac_unrecognized_sep=', ';;
1084 esac
1085 eval with_$ac_useropt=\$ac_optarg ;;
1086
1087 -without-* | --without-*)
1088 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1089 # Reject names that are not valid shell variable names.
1090 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1091 as_fn_error $? "invalid package name: $ac_useropt"
1092 ac_useropt_orig=$ac_useropt
1093 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1094 case $ac_user_opts in
1095 *"
1096 "with_$ac_useropt"
1097 "*) ;;
1098 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1099 ac_unrecognized_sep=', ';;
1100 esac
1101 eval with_$ac_useropt=no ;;
1102
1103 --x)
1104 # Obsolete; use --with-x.
1105 with_x=yes ;;
1106
1107 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1108 | --x-incl | --x-inc | --x-in | --x-i)
1109 ac_prev=x_includes ;;
1110 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1111 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1112 x_includes=$ac_optarg ;;
1113
1114 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1115 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1116 ac_prev=x_libraries ;;
1117 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1118 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1119 x_libraries=$ac_optarg ;;
1120
1121 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1122 Try \`$0 --help' for more information"
1123 ;;
1124
1125 *=*)
1126 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1127 # Reject names that are not valid shell variable names.
1128 case $ac_envvar in #(
1129 '' | [0-9]* | *[!_$as_cr_alnum]* )
1130 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1131 esac
1132 eval $ac_envvar=\$ac_optarg
1133 export $ac_envvar ;;
1134
1135 *)
1136 # FIXME: should be removed in autoconf 3.0.
1137 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1138 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1139 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1140 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1141 ;;
1142
1143 esac
1144 done
1145
1146 if test -n "$ac_prev"; then
1147 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1148 as_fn_error $? "missing argument to $ac_option"
1149 fi
1150
1151 if test -n "$ac_unrecognized_opts"; then
1152 case $enable_option_checking in
1153 no) ;;
1154 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1155 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1156 esac
1157 fi
1158
1159 # Check all directory arguments for consistency.
1160 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1161 datadir sysconfdir sharedstatedir localstatedir includedir \
1162 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1163 libdir localedir mandir runstatedir
1164 do
1165 eval ac_val=\$$ac_var
1166 # Remove trailing slashes.
1167 case $ac_val in
1168 */ )
1169 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1170 eval $ac_var=\$ac_val;;
1171 esac
1172 # Be sure to have absolute directory names.
1173 case $ac_val in
1174 [\\/$]* | ?:[\\/]* ) continue;;
1175 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1176 esac
1177 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1178 done
1179
1180 # There might be people who depend on the old broken behavior: `$host'
1181 # used to hold the argument of --host etc.
1182 # FIXME: To remove some day.
1183 build=$build_alias
1184 host=$host_alias
1185 target=$target_alias
1186
1187 # FIXME: To remove some day.
1188 if test "x$host_alias" != x; then
1189 if test "x$build_alias" = x; then
1190 cross_compiling=maybe
1191 elif test "x$build_alias" != "x$host_alias"; then
1192 cross_compiling=yes
1193 fi
1194 fi
1195
1196 ac_tool_prefix=
1197 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1198
1199 test "$silent" = yes && exec 6>/dev/null
1200
1201
1202 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1203 ac_ls_di=`ls -di .` &&
1204 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1205 as_fn_error $? "working directory cannot be determined"
1206 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1207 as_fn_error $? "pwd does not report name of working directory"
1208
1209
1210 # Find the source files, if location was not specified.
1211 if test -z "$srcdir"; then
1212 ac_srcdir_defaulted=yes
1213 # Try the directory containing this script, then the parent directory.
1214 ac_confdir=`$as_dirname -- "$as_myself" ||
1215 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1216 X"$as_myself" : 'X\(//\)[^/]' \| \
1217 X"$as_myself" : 'X\(//\)$' \| \
1218 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1219 $as_echo X"$as_myself" |
1220 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1221 s//\1/
1222 q
1223 }
1224 /^X\(\/\/\)[^/].*/{
1225 s//\1/
1226 q
1227 }
1228 /^X\(\/\/\)$/{
1229 s//\1/
1230 q
1231 }
1232 /^X\(\/\).*/{
1233 s//\1/
1234 q
1235 }
1236 s/.*/./; q'`
1237 srcdir=$ac_confdir
1238 if test ! -r "$srcdir/$ac_unique_file"; then
1239 srcdir=..
1240 fi
1241 else
1242 ac_srcdir_defaulted=no
1243 fi
1244 if test ! -r "$srcdir/$ac_unique_file"; then
1245 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1246 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1247 fi
1248 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1249 ac_abs_confdir=`(
1250 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1251 pwd)`
1252 # When building in place, set srcdir=.
1253 if test "$ac_abs_confdir" = "$ac_pwd"; then
1254 srcdir=.
1255 fi
1256 # Remove unnecessary trailing slashes from srcdir.
1257 # Double slashes in file names in object file debugging info
1258 # mess up M-x gdb in Emacs.
1259 case $srcdir in
1260 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1261 esac
1262 for ac_var in $ac_precious_vars; do
1263 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1264 eval ac_env_${ac_var}_value=\$${ac_var}
1265 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1266 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1267 done
1268
1269 #
1270 # Report the --help message.
1271 #
1272 if test "$ac_init_help" = "long"; then
1273 # Omit some internal or obsolete options to make the list less imposing.
1274 # This message is too long to be a string in the A/UX 3.1 sh.
1275 cat <<_ACEOF
1276 \`configure' configures pgqd 3.5 to adapt to many kinds of systems.
1277
1278 Usage: $0 [OPTION]... [VAR=VALUE]...
1279
1280 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1281 VAR=VALUE. See below for descriptions of some of the useful variables.
1282
1283 Defaults for the options are specified in brackets.
1284
1285 Configuration:
1286 -h, --help display this help and exit
1287 --help=short display options specific to this package
1288 --help=recursive display the short help of all the included packages
1289 -V, --version display version information and exit
1290 -q, --quiet, --silent do not print \`checking ...' messages
1291 --cache-file=FILE cache test results in FILE [disabled]
1292 -C, --config-cache alias for \`--cache-file=config.cache'
1293 -n, --no-create do not create output files
1294 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1295
1296 Installation directories:
1297 --prefix=PREFIX install architecture-independent files in PREFIX
1298 [$ac_default_prefix]
1299 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1300 [PREFIX]
1301
1302 By default, \`make install' will install all the files in
1303 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1304 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1305 for instance \`--prefix=\$HOME'.
1306
1307 For better control, use the options below.
1308
1309 Fine tuning of the installation directories:
1310 --bindir=DIR user executables [EPREFIX/bin]
1311 --sbindir=DIR system admin executables [EPREFIX/sbin]
1312 --libexecdir=DIR program executables [EPREFIX/libexec]
1313 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1314 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1315 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1316 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1317 --libdir=DIR object code libraries [EPREFIX/lib]
1318 --includedir=DIR C header files [PREFIX/include]
1319 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1320 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1321 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1322 --infodir=DIR info documentation [DATAROOTDIR/info]
1323 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1324 --mandir=DIR man documentation [DATAROOTDIR/man]
1325 --docdir=DIR documentation root [DATAROOTDIR/doc/pgqd]
1326 --htmldir=DIR html documentation [DOCDIR]
1327 --dvidir=DIR dvi documentation [DOCDIR]
1328 --pdfdir=DIR pdf documentation [DOCDIR]
1329 --psdir=DIR ps documentation [DOCDIR]
1330 _ACEOF
1331
1332 cat <<\_ACEOF
1333
1334 System types:
1335 --build=BUILD configure for building on BUILD [guessed]
1336 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1337 _ACEOF
1338 fi
1339
1340 if test -n "$ac_init_help"; then
1341 case $ac_init_help in
1342 short | recursive ) echo "Configuration of pgqd 3.5:";;
1343 esac
1344 cat <<\_ACEOF
1345
1346 Optional Features:
1347 --disable-option-checking ignore unrecognized --enable/--with options
1348 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1349 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1350 --disable-largefile omit support for large files
1351 --disable-debug strip binary
1352 --enable-cassert turn on assert checking in code
1353
1354 Optional Packages:
1355 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1356 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1357 --with-pgconfig=PG_CONFIG path to pg_config (default: pg_config)
1358
1359 Some influential environment variables:
1360 CC C compiler command
1361 CFLAGS C compiler flags
1362 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1363 nonstandard directory <lib dir>
1364 LIBS libraries to pass to the linker, e.g. -l<library>
1365 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1366 you have headers in a nonstandard directory <include dir>
1367 CPP C preprocessor
1368 PKG_CONFIG path to pkg-config utility
1369 PKG_CONFIG_PATH
1370 directories to add to pkg-config's search path
1371 PKG_CONFIG_LIBDIR
1372 path overriding pkg-config's built-in search path
1373 LIBEVENT_CFLAGS
1374 C compiler flags for LIBEVENT, overriding pkg-config
1375 LIBEVENT_LIBS
1376 linker flags for LIBEVENT, overriding pkg-config
1377
1378 Use these variables to override the choices made by `configure' or to help
1379 it to find libraries and programs with nonstandard names/locations.
1380
1381 Report bugs to the package provider.
1382 _ACEOF
1383 ac_status=$?
1384 fi
1385
1386 if test "$ac_init_help" = "recursive"; then
1387 # If there are subdirs, report their specific --help.
1388 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1389 test -d "$ac_dir" ||
1390 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1391 continue
1392 ac_builddir=.
1393
1394 case "$ac_dir" in
1395 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1396 *)
1397 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1398 # A ".." for each directory in $ac_dir_suffix.
1399 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1400 case $ac_top_builddir_sub in
1401 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1402 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1403 esac ;;
1404 esac
1405 ac_abs_top_builddir=$ac_pwd
1406 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1407 # for backward compatibility:
1408 ac_top_builddir=$ac_top_build_prefix
1409
1410 case $srcdir in
1411 .) # We are building in place.
1412 ac_srcdir=.
1413 ac_top_srcdir=$ac_top_builddir_sub
1414 ac_abs_top_srcdir=$ac_pwd ;;
1415 [\\/]* | ?:[\\/]* ) # Absolute name.
1416 ac_srcdir=$srcdir$ac_dir_suffix;
1417 ac_top_srcdir=$srcdir
1418 ac_abs_top_srcdir=$srcdir ;;
1419 *) # Relative name.
1420 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1421 ac_top_srcdir=$ac_top_build_prefix$srcdir
1422 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1423 esac
1424 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1425
1426 cd "$ac_dir" || { ac_status=$?; continue; }
1427 # Check for guested configure.
1428 if test -f "$ac_srcdir/configure.gnu"; then
1429 echo &&
1430 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1431 elif test -f "$ac_srcdir/configure"; then
1432 echo &&
1433 $SHELL "$ac_srcdir/configure" --help=recursive
1434 else
1435 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1436 fi || ac_status=$?
1437 cd "$ac_pwd" || { ac_status=$?; break; }
1438 done
1439 fi
1440
1441 test -n "$ac_init_help" && exit $ac_status
1442 if $ac_init_version; then
1443 cat <<\_ACEOF
1444 pgqd configure 3.5
1445 generated by GNU Autoconf 2.69
1446
1447 Copyright (C) 2012 Free Software Foundation, Inc.
1448 This configure script is free software; the Free Software Foundation
1449 gives unlimited permission to copy, distribute and modify it.
1450 _ACEOF
1451 exit
1452 fi
1453
1454 ## ------------------------ ##
1455 ## Autoconf initialization. ##
1456 ## ------------------------ ##
1457
1458 # ac_fn_c_try_compile LINENO
1459 # --------------------------
1460 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1461 ac_fn_c_try_compile ()
1462 {
1463 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1464 rm -f conftest.$ac_objext
1465 if { { ac_try="$ac_compile"
1466 case "(($ac_try" in
1467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1468 *) ac_try_echo=$ac_try;;
1469 esac
1470 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1471 $as_echo "$ac_try_echo"; } >&5
1472 (eval "$ac_compile") 2>conftest.err
1473 ac_status=$?
1474 if test -s conftest.err; then
1475 grep -v '^ *+' conftest.err >conftest.er1
1476 cat conftest.er1 >&5
1477 mv -f conftest.er1 conftest.err
1478 fi
1479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1480 test $ac_status = 0; } && {
1481 test -z "$ac_c_werror_flag" ||
1482 test ! -s conftest.err
1483 } && test -s conftest.$ac_objext; then :
1484 ac_retval=0
1485 else
1486 $as_echo "$as_me: failed program was:" >&5
1487 sed 's/^/| /' conftest.$ac_ext >&5
1488
1489 ac_retval=1
1490 fi
1491 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1492 as_fn_set_status $ac_retval
1493
1494 } # ac_fn_c_try_compile
1495
1496 # ac_fn_c_try_cpp LINENO
1497 # ----------------------
1498 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1499 ac_fn_c_try_cpp ()
1500 {
1501 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1502 if { { ac_try="$ac_cpp conftest.$ac_ext"
1503 case "(($ac_try" in
1504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1505 *) ac_try_echo=$ac_try;;
1506 esac
1507 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1508 $as_echo "$ac_try_echo"; } >&5
1509 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1510 ac_status=$?
1511 if test -s conftest.err; then
1512 grep -v '^ *+' conftest.err >conftest.er1
1513 cat conftest.er1 >&5
1514 mv -f conftest.er1 conftest.err
1515 fi
1516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1517 test $ac_status = 0; } > conftest.i && {
1518 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1519 test ! -s conftest.err
1520 }; then :
1521 ac_retval=0
1522 else
1523 $as_echo "$as_me: failed program was:" >&5
1524 sed 's/^/| /' conftest.$ac_ext >&5
1525
1526 ac_retval=1
1527 fi
1528 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1529 as_fn_set_status $ac_retval
1530
1531 } # ac_fn_c_try_cpp
1532
1533 # ac_fn_c_try_link LINENO
1534 # -----------------------
1535 # Try to link conftest.$ac_ext, and return whether this succeeded.
1536 ac_fn_c_try_link ()
1537 {
1538 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1539 rm -f conftest.$ac_objext conftest$ac_exeext
1540 if { { ac_try="$ac_link"
1541 case "(($ac_try" in
1542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1543 *) ac_try_echo=$ac_try;;
1544 esac
1545 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1546 $as_echo "$ac_try_echo"; } >&5
1547 (eval "$ac_link") 2>conftest.err
1548 ac_status=$?
1549 if test -s conftest.err; then
1550 grep -v '^ *+' conftest.err >conftest.er1
1551 cat conftest.er1 >&5
1552 mv -f conftest.er1 conftest.err
1553 fi
1554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1555 test $ac_status = 0; } && {
1556 test -z "$ac_c_werror_flag" ||
1557 test ! -s conftest.err
1558 } && test -s conftest$ac_exeext && {
1559 test "$cross_compiling" = yes ||
1560 test -x conftest$ac_exeext
1561 }; then :
1562 ac_retval=0
1563 else
1564 $as_echo "$as_me: failed program was:" >&5
1565 sed 's/^/| /' conftest.$ac_ext >&5
1566
1567 ac_retval=1
1568 fi
1569 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1570 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1571 # interfere with the next link command; also delete a directory that is
1572 # left behind by Apple's compiler. We do this before executing the actions.
1573 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1574 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1575 as_fn_set_status $ac_retval
1576
1577 } # ac_fn_c_try_link
1578
1579 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1580 # -------------------------------------------------------
1581 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1582 # the include files in INCLUDES and setting the cache variable VAR
1583 # accordingly.
1584 ac_fn_c_check_header_mongrel ()
1585 {
1586 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1587 if eval \${$3+:} false; then :
1588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1589 $as_echo_n "checking for $2... " >&6; }
1590 if eval \${$3+:} false; then :
1591 $as_echo_n "(cached) " >&6
1592 fi
1593 eval ac_res=\$$3
1594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1595 $as_echo "$ac_res" >&6; }
1596 else
1597 # Is the header compilable?
1598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1599 $as_echo_n "checking $2 usability... " >&6; }
1600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1601 /* end confdefs.h. */
1602 $4
1603 #include <$2>
1604 _ACEOF
1605 if ac_fn_c_try_compile "$LINENO"; then :
1606 ac_header_compiler=yes
1607 else
1608 ac_header_compiler=no
1609 fi
1610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1612 $as_echo "$ac_header_compiler" >&6; }
1613
1614 # Is the header present?
1615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1616 $as_echo_n "checking $2 presence... " >&6; }
1617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1618 /* end confdefs.h. */
1619 #include <$2>
1620 _ACEOF
1621 if ac_fn_c_try_cpp "$LINENO"; then :
1622 ac_header_preproc=yes
1623 else
1624 ac_header_preproc=no
1625 fi
1626 rm -f conftest.err conftest.i conftest.$ac_ext
1627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1628 $as_echo "$ac_header_preproc" >&6; }
1629
1630 # So? What about this header?
1631 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1632 yes:no: )
1633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1634 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1636 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1637 ;;
1638 no:yes:* )
1639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1640 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1642 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1644 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1646 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1648 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1649 ;;
1650 esac
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1652 $as_echo_n "checking for $2... " >&6; }
1653 if eval \${$3+:} false; then :
1654 $as_echo_n "(cached) " >&6
1655 else
1656 eval "$3=\$ac_header_compiler"
1657 fi
1658 eval ac_res=\$$3
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1660 $as_echo "$ac_res" >&6; }
1661 fi
1662 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1663
1664 } # ac_fn_c_check_header_mongrel
1665
1666 # ac_fn_c_try_run LINENO
1667 # ----------------------
1668 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1669 # that executables *can* be run.
1670 ac_fn_c_try_run ()
1671 {
1672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673 if { { ac_try="$ac_link"
1674 case "(($ac_try" in
1675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1676 *) ac_try_echo=$ac_try;;
1677 esac
1678 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1679 $as_echo "$ac_try_echo"; } >&5
1680 (eval "$ac_link") 2>&5
1681 ac_status=$?
1682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1683 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1684 { { case "(($ac_try" in
1685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1686 *) ac_try_echo=$ac_try;;
1687 esac
1688 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1689 $as_echo "$ac_try_echo"; } >&5
1690 (eval "$ac_try") 2>&5
1691 ac_status=$?
1692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693 test $ac_status = 0; }; }; then :
1694 ac_retval=0
1695 else
1696 $as_echo "$as_me: program exited with status $ac_status" >&5
1697 $as_echo "$as_me: failed program was:" >&5
1698 sed 's/^/| /' conftest.$ac_ext >&5
1699
1700 ac_retval=$ac_status
1701 fi
1702 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1703 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1704 as_fn_set_status $ac_retval
1705
1706 } # ac_fn_c_try_run
1707
1708 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1709 # -------------------------------------------------------
1710 # Tests whether HEADER exists and can be compiled using the include files in
1711 # INCLUDES, setting the cache variable VAR accordingly.
1712 ac_fn_c_check_header_compile ()
1713 {
1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1716 $as_echo_n "checking for $2... " >&6; }
1717 if eval \${$3+:} false; then :
1718 $as_echo_n "(cached) " >&6
1719 else
1720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1721 /* end confdefs.h. */
1722 $4
1723 #include <$2>
1724 _ACEOF
1725 if ac_fn_c_try_compile "$LINENO"; then :
1726 eval "$3=yes"
1727 else
1728 eval "$3=no"
1729 fi
1730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1731 fi
1732 eval ac_res=\$$3
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1734 $as_echo "$ac_res" >&6; }
1735 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1736
1737 } # ac_fn_c_check_header_compile
1738
1739 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1740 # -------------------------------------------
1741 # Tests whether TYPE exists after having included INCLUDES, setting cache
1742 # variable VAR accordingly.
1743 ac_fn_c_check_type ()
1744 {
1745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1747 $as_echo_n "checking for $2... " >&6; }
1748 if eval \${$3+:} false; then :
1749 $as_echo_n "(cached) " >&6
1750 else
1751 eval "$3=no"
1752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1753 /* end confdefs.h. */
1754 $4
1755 int
1756 main ()
1757 {
1758 if (sizeof ($2))
1759 return 0;
1760 ;
1761 return 0;
1762 }
1763 _ACEOF
1764 if ac_fn_c_try_compile "$LINENO"; then :
1765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1766 /* end confdefs.h. */
1767 $4
1768 int
1769 main ()
1770 {
1771 if (sizeof (($2)))
1772 return 0;
1773 ;
1774 return 0;
1775 }
1776 _ACEOF
1777 if ac_fn_c_try_compile "$LINENO"; then :
1778
1779 else
1780 eval "$3=yes"
1781 fi
1782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1783 fi
1784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1785 fi
1786 eval ac_res=\$$3
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1788 $as_echo "$ac_res" >&6; }
1789 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1790
1791 } # ac_fn_c_check_type
1792
1793 # ac_fn_c_check_func LINENO FUNC VAR
1794 # ----------------------------------
1795 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1796 ac_fn_c_check_func ()
1797 {
1798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1800 $as_echo_n "checking for $2... " >&6; }
1801 if eval \${$3+:} false; then :
1802 $as_echo_n "(cached) " >&6
1803 else
1804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1805 /* end confdefs.h. */
1806 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1807 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1808 #define $2 innocuous_$2
1809
1810 /* System header to define __stub macros and hopefully few prototypes,
1811 which can conflict with char $2 (); below.
1812 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1813 <limits.h> exists even on freestanding compilers. */
1814
1815 #ifdef __STDC__
1816 # include <limits.h>
1817 #else
1818 # include <assert.h>
1819 #endif
1820
1821 #undef $2
1822
1823 /* Override any GCC internal prototype to avoid an error.
1824 Use char because int might match the return type of a GCC
1825 builtin and then its argument prototype would still apply. */
1826 #ifdef __cplusplus
1827 extern "C"
1828 #endif
1829 char $2 ();
1830 /* The GNU C library defines this for functions which it implements
1831 to always fail with ENOSYS. Some functions are actually named
1832 something starting with __ and the normal name is an alias. */
1833 #if defined __stub_$2 || defined __stub___$2
1834 choke me
1835 #endif
1836
1837 int
1838 main ()
1839 {
1840 return $2 ();
1841 ;
1842 return 0;
1843 }
1844 _ACEOF
1845 if ac_fn_c_try_link "$LINENO"; then :
1846 eval "$3=yes"
1847 else
1848 eval "$3=no"
1849 fi
1850 rm -f core conftest.err conftest.$ac_objext \
1851 conftest$ac_exeext conftest.$ac_ext
1852 fi
1853 eval ac_res=\$$3
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1855 $as_echo "$ac_res" >&6; }
1856 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1857
1858 } # ac_fn_c_check_func
1859
1860 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1861 # ---------------------------------------------
1862 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1863 # accordingly.
1864 ac_fn_c_check_decl ()
1865 {
1866 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1867 as_decl_name=`echo $2|sed 's/ *(.*//'`
1868 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1870 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1871 if eval \${$3+:} false; then :
1872 $as_echo_n "(cached) " >&6
1873 else
1874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1875 /* end confdefs.h. */
1876 $4
1877 int
1878 main ()
1879 {
1880 #ifndef $as_decl_name
1881 #ifdef __cplusplus
1882 (void) $as_decl_use;
1883 #else
1884 (void) $as_decl_name;
1885 #endif
1886 #endif
1887
1888 ;
1889 return 0;
1890 }
1891 _ACEOF
1892 if ac_fn_c_try_compile "$LINENO"; then :
1893 eval "$3=yes"
1894 else
1895 eval "$3=no"
1896 fi
1897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1898 fi
1899 eval ac_res=\$$3
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1901 $as_echo "$ac_res" >&6; }
1902 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1903
1904 } # ac_fn_c_check_decl
1905 cat >config.log <<_ACEOF
1906 This file contains any messages produced by compilers while
1907 running configure, to aid debugging if configure makes a mistake.
1908
1909 It was created by pgqd $as_me 3.5, which was
1910 generated by GNU Autoconf 2.69. Invocation command line was
1911
1912 $ $0 $@
1913
1914 _ACEOF
1915 exec 5>>config.log
1916 {
1917 cat <<_ASUNAME
1918 ## --------- ##
1919 ## Platform. ##
1920 ## --------- ##
1921
1922 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1923 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1924 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1925 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1926 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1927
1928 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1929 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1930
1931 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1932 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1933 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1934 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1935 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1936 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1937 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1938
1939 _ASUNAME
1940
1941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1942 for as_dir in $PATH
1943 do
1944 IFS=$as_save_IFS
1945 test -z "$as_dir" && as_dir=.
1946 $as_echo "PATH: $as_dir"
1947 done
1948 IFS=$as_save_IFS
1949
1950 } >&5
1951
1952 cat >&5 <<_ACEOF
1953
1954
1955 ## ----------- ##
1956 ## Core tests. ##
1957 ## ----------- ##
1958
1959 _ACEOF
1960
1961
1962 # Keep a trace of the command line.
1963 # Strip out --no-create and --no-recursion so they do not pile up.
1964 # Strip out --silent because we don't want to record it for future runs.
1965 # Also quote any args containing shell meta-characters.
1966 # Make two passes to allow for proper duplicate-argument suppression.
1967 ac_configure_args=
1968 ac_configure_args0=
1969 ac_configure_args1=
1970 ac_must_keep_next=false
1971 for ac_pass in 1 2
1972 do
1973 for ac_arg
1974 do
1975 case $ac_arg in
1976 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1977 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1978 | -silent | --silent | --silen | --sile | --sil)
1979 continue ;;
1980 *\'*)
1981 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1982 esac
1983 case $ac_pass in
1984 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1985 2)
1986 as_fn_append ac_configure_args1 " '$ac_arg'"
1987 if test $ac_must_keep_next = true; then
1988 ac_must_keep_next=false # Got value, back to normal.
1989 else
1990 case $ac_arg in
1991 *=* | --config-cache | -C | -disable-* | --disable-* \
1992 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1993 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1994 | -with-* | --with-* | -without-* | --without-* | --x)
1995 case "$ac_configure_args0 " in
1996 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1997 esac
1998 ;;
1999 -* ) ac_must_keep_next=true ;;
2000 esac
2001 fi
2002 as_fn_append ac_configure_args " '$ac_arg'"
2003 ;;
2004 esac
2005 done
2006 done
2007 { ac_configure_args0=; unset ac_configure_args0;}
2008 { ac_configure_args1=; unset ac_configure_args1;}
2009
2010 # When interrupted or exit'd, cleanup temporary files, and complete
2011 # config.log. We remove comments because anyway the quotes in there
2012 # would cause problems or look ugly.
2013 # WARNING: Use '\'' to represent an apostrophe within the trap.
2014 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2015 trap 'exit_status=$?
2016 # Save into config.log some information that might help in debugging.
2017 {
2018 echo
2019
2020 $as_echo "## ---------------- ##
2021 ## Cache variables. ##
2022 ## ---------------- ##"
2023 echo
2024 # The following way of writing the cache mishandles newlines in values,
2025 (
2026 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2027 eval ac_val=\$$ac_var
2028 case $ac_val in #(
2029 *${as_nl}*)
2030 case $ac_var in #(
2031 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2032 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2033 esac
2034 case $ac_var in #(
2035 _ | IFS | as_nl) ;; #(
2036 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2037 *) { eval $ac_var=; unset $ac_var;} ;;
2038 esac ;;
2039 esac
2040 done
2041 (set) 2>&1 |
2042 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2043 *${as_nl}ac_space=\ *)
2044 sed -n \
2045 "s/'\''/'\''\\\\'\'''\''/g;
2046 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2047 ;; #(
2048 *)
2049 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2050 ;;
2051 esac |
2052 sort
2053 )
2054 echo
2055
2056 $as_echo "## ----------------- ##
2057 ## Output variables. ##
2058 ## ----------------- ##"
2059 echo
2060 for ac_var in $ac_subst_vars
2061 do
2062 eval ac_val=\$$ac_var
2063 case $ac_val in
2064 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2065 esac
2066 $as_echo "$ac_var='\''$ac_val'\''"
2067 done | sort
2068 echo
2069
2070 if test -n "$ac_subst_files"; then
2071 $as_echo "## ------------------- ##
2072 ## File substitutions. ##
2073 ## ------------------- ##"
2074 echo
2075 for ac_var in $ac_subst_files
2076 do
2077 eval ac_val=\$$ac_var
2078 case $ac_val in
2079 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2080 esac
2081 $as_echo "$ac_var='\''$ac_val'\''"
2082 done | sort
2083 echo
2084 fi
2085
2086 if test -s confdefs.h; then
2087 $as_echo "## ----------- ##
2088 ## confdefs.h. ##
2089 ## ----------- ##"
2090 echo
2091 cat confdefs.h
2092 echo
2093 fi
2094 test "$ac_signal" != 0 &&
2095 $as_echo "$as_me: caught signal $ac_signal"
2096 $as_echo "$as_me: exit $exit_status"
2097 } >&5
2098 rm -f core *.core core.conftest.* &&
2099 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2100 exit $exit_status
2101 ' 0
2102 for ac_signal in 1 2 13 15; do
2103 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2104 done
2105 ac_signal=0
2106
2107 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2108 rm -f -r conftest* confdefs.h
2109
2110 $as_echo "/* confdefs.h */" > confdefs.h
2111
2112 # Predefined preprocessor variables.
2113
2114 cat >>confdefs.h <<_ACEOF
2115 #define PACKAGE_NAME "$PACKAGE_NAME"
2116 _ACEOF
2117
2118 cat >>confdefs.h <<_ACEOF
2119 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2120 _ACEOF
2121
2122 cat >>confdefs.h <<_ACEOF
2123 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2124 _ACEOF
2125
2126 cat >>confdefs.h <<_ACEOF
2127 #define PACKAGE_STRING "$PACKAGE_STRING"
2128 _ACEOF
2129
2130 cat >>confdefs.h <<_ACEOF
2131 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2132 _ACEOF
2133
2134 cat >>confdefs.h <<_ACEOF
2135 #define PACKAGE_URL "$PACKAGE_URL"
2136 _ACEOF
2137
2138
2139 # Let the site file select an alternate cache file if it wants to.
2140 # Prefer an explicitly selected file to automatically selected ones.
2141 ac_site_file1=NONE
2142 ac_site_file2=NONE
2143 if test -n "$CONFIG_SITE"; then
2144 # We do not want a PATH search for config.site.
2145 case $CONFIG_SITE in #((
2146 -*) ac_site_file1=./$CONFIG_SITE;;
2147 */*) ac_site_file1=$CONFIG_SITE;;
2148 *) ac_site_file1=./$CONFIG_SITE;;
2149 esac
2150 elif test "x$prefix" != xNONE; then
2151 ac_site_file1=$prefix/share/config.site
2152 ac_site_file2=$prefix/etc/config.site
2153 else
2154 ac_site_file1=$ac_default_prefix/share/config.site
2155 ac_site_file2=$ac_default_prefix/etc/config.site
2156 fi
2157 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2158 do
2159 test "x$ac_site_file" = xNONE && continue
2160 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2162 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2163 sed 's/^/| /' "$ac_site_file" >&5
2164 . "$ac_site_file" \
2165 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2166 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2167 as_fn_error $? "failed to load site script $ac_site_file
2168 See \`config.log' for more details" "$LINENO" 5; }
2169 fi
2170 done
2171
2172 if test -r "$cache_file"; then
2173 # Some versions of bash will fail to source /dev/null (special files
2174 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2175 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2177 $as_echo "$as_me: loading cache $cache_file" >&6;}
2178 case $cache_file in
2179 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2180 *) . "./$cache_file";;
2181 esac
2182 fi
2183 else
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2185 $as_echo "$as_me: creating cache $cache_file" >&6;}
2186 >$cache_file
2187 fi
2188
2189 # Check that the precious variables saved in the cache have kept the same
2190 # value.
2191 ac_cache_corrupted=false
2192 for ac_var in $ac_precious_vars; do
2193 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2194 eval ac_new_set=\$ac_env_${ac_var}_set
2195 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2196 eval ac_new_val=\$ac_env_${ac_var}_value
2197 case $ac_old_set,$ac_new_set in
2198 set,)
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2200 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2201 ac_cache_corrupted=: ;;
2202 ,set)
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2204 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2205 ac_cache_corrupted=: ;;
2206 ,);;
2207 *)
2208 if test "x$ac_old_val" != "x$ac_new_val"; then
2209 # differences in whitespace do not lead to failure.
2210 ac_old_val_w=`echo x $ac_old_val`
2211 ac_new_val_w=`echo x $ac_new_val`
2212 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2214 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2215 ac_cache_corrupted=:
2216 else
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2218 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2219 eval $ac_var=\$ac_old_val
2220 fi
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2222 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2224 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2225 fi;;
2226 esac
2227 # Pass precious variables to config.status.
2228 if test "$ac_new_set" = set; then
2229 case $ac_new_val in
2230 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2231 *) ac_arg=$ac_var=$ac_new_val ;;
2232 esac
2233 case " $ac_configure_args " in
2234 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2235 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2236 esac
2237 fi
2238 done
2239 if $ac_cache_corrupted; then
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2241 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2243 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2244 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2245 fi
2246 ## -------------------- ##
2247 ## Main body of script. ##
2248 ## -------------------- ##
2249
2250 ac_ext=c
2251 ac_cpp='$CPP $CPPFLAGS'
2252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2255
2256
2257
2258 ac_config_headers="$ac_config_headers lib/usual/config.h"
2259
2260
2261
2262
2263 # Check whether --with-pgconfig was given.
2264 if test "${with_pgconfig+set}" = set; then :
2265 withval=$with_pgconfig; { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pg_config" >&5
2266 $as_echo_n "checking for pg_config... " >&6; }
2267 PG_CONFIG=$withval
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5
2269 $as_echo "$PG_CONFIG" >&6; }
2270 else
2271 for ac_prog in pg_config
2272 do
2273 # Extract the first word of "$ac_prog", so it can be a program name with args.
2274 set dummy $ac_prog; ac_word=$2
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2276 $as_echo_n "checking for $ac_word... " >&6; }
2277 if ${ac_cv_path_PG_CONFIG+:} false; then :
2278 $as_echo_n "(cached) " >&6
2279 else
2280 case $PG_CONFIG in
2281 [\\/]* | ?:[\\/]*)
2282 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
2283 ;;
2284 *)
2285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2286 for as_dir in $PATH
2287 do
2288 IFS=$as_save_IFS
2289 test -z "$as_dir" && as_dir=.
2290 for ac_exec_ext in '' $ac_executable_extensions; do
2291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2292 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2294 break 2
2295 fi
2296 done
2297 done
2298 IFS=$as_save_IFS
2299
2300 ;;
2301 esac
2302 fi
2303 PG_CONFIG=$ac_cv_path_PG_CONFIG
2304 if test -n "$PG_CONFIG"; then
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5
2306 $as_echo "$PG_CONFIG" >&6; }
2307 else
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2309 $as_echo "no" >&6; }
2310 fi
2311
2312
2313 test -n "$PG_CONFIG" && break
2314 done
2315
2316 fi
2317
2318 test -n "$PG_CONFIG" || as_fn_error $? "Cannot continue without pg_config" "$LINENO" 5
2319
2320 ac_aux_dir=
2321 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2322 if test -f "$ac_dir/install-sh"; then
2323 ac_aux_dir=$ac_dir
2324 ac_install_sh="$ac_aux_dir/install-sh -c"
2325 break
2326 elif test -f "$ac_dir/install.sh"; then
2327 ac_aux_dir=$ac_dir
2328 ac_install_sh="$ac_aux_dir/install.sh -c"
2329 break
2330 elif test -f "$ac_dir/shtool"; then
2331 ac_aux_dir=$ac_dir
2332 ac_install_sh="$ac_aux_dir/shtool install -c"
2333 break
2334 fi
2335 done
2336 if test -z "$ac_aux_dir"; then
2337 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2338 fi
2339
2340 # These three variables are undocumented and unsupported,
2341 # and are intended to be withdrawn in a future Autoconf release.
2342 # They can cause serious problems if a builder's source tree is in a directory
2343 # whose full name contains unusual characters.
2344 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2345 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2346 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2347
2348
2349 # Make sure we can run config.sub.
2350 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2351 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2352
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2354 $as_echo_n "checking build system type... " >&6; }
2355 if ${ac_cv_build+:} false; then :
2356 $as_echo_n "(cached) " >&6
2357 else
2358 ac_build_alias=$build_alias
2359 test "x$ac_build_alias" = x &&
2360 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2361 test "x$ac_build_alias" = x &&
2362 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2363 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2364 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2365
2366 fi
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2368 $as_echo "$ac_cv_build" >&6; }
2369 case $ac_cv_build in
2370 *-*-*) ;;
2371 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2372 esac
2373 build=$ac_cv_build
2374 ac_save_IFS=$IFS; IFS='-'
2375 set x $ac_cv_build
2376 shift
2377 build_cpu=$1
2378 build_vendor=$2
2379 shift; shift
2380 # Remember, the first character of IFS is used to create $*,
2381 # except with old shells:
2382 build_os=$*
2383 IFS=$ac_save_IFS
2384 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2385
2386
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2388 $as_echo_n "checking host system type... " >&6; }
2389 if ${ac_cv_host+:} false; then :
2390 $as_echo_n "(cached) " >&6
2391 else
2392 if test "x$host_alias" = x; then
2393 ac_cv_host=$ac_cv_build
2394 else
2395 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2396 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2397 fi
2398
2399 fi
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2401 $as_echo "$ac_cv_host" >&6; }
2402 case $ac_cv_host in
2403 *-*-*) ;;
2404 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2405 esac
2406 host=$ac_cv_host
2407 ac_save_IFS=$IFS; IFS='-'
2408 set x $ac_cv_host
2409 shift
2410 host_cpu=$1
2411 host_vendor=$2
2412 shift; shift
2413 # Remember, the first character of IFS is used to create $*,
2414 # except with old shells:
2415 host_os=$*
2416 IFS=$ac_save_IFS
2417 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2418
2419
2420
2421
2422 # if building separately from srcdir, write top-level makefile
2423 if test "$srcdir" != "."; then
2424 echo "include $srcdir/Makefile" > Makefile
2425 fi
2426
2427
2428
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target host type" >&5
2430 $as_echo_n "checking target host type... " >&6; }
2431 xhost="$host_alias"
2432 if test "x$xhost" = "x"; then
2433 xhost=`uname -s`
2434 fi
2435 case "$xhost" in
2436 *cygwin* | *mingw* | *pw32* | *MINGW*)
2437 LIBS="$LIBS -lws2_32"
2438 PORTNAME=win32;;
2439 *) PORTNAME=unix ;;
2440 esac
2441
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PORTNAME" >&5
2443 $as_echo "$PORTNAME" >&6; }
2444 if test "$PORTNAME" = "win32"; then
2445
2446 $as_echo "#define WIN32_LEAN_AND_MEAN 1" >>confdefs.h
2447
2448
2449 $as_echo "#define WINVER 0x0600" >>confdefs.h
2450
2451 fi
2452
2453 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
2454
2455
2456 pkgdatadir='${datarootdir}'/${PACKAGE_TARNAME}
2457
2458 pkgconfigdir='${libdir}/pkgconfig'
2459
2460
2461
2462 ac_ext=c
2463 ac_cpp='$CPP $CPPFLAGS'
2464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2467 if test -n "$ac_tool_prefix"; then
2468 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2469 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2471 $as_echo_n "checking for $ac_word... " >&6; }
2472 if ${ac_cv_prog_CC+:} false; then :
2473 $as_echo_n "(cached) " >&6
2474 else
2475 if test -n "$CC"; then
2476 ac_cv_prog_CC="$CC" # Let the user override the test.
2477 else
2478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2479 for as_dir in $PATH
2480 do
2481 IFS=$as_save_IFS
2482 test -z "$as_dir" && as_dir=.
2483 for ac_exec_ext in '' $ac_executable_extensions; do
2484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2485 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2487 break 2
2488 fi
2489 done
2490 done
2491 IFS=$as_save_IFS
2492
2493 fi
2494 fi
2495 CC=$ac_cv_prog_CC
2496 if test -n "$CC"; then
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2498 $as_echo "$CC" >&6; }
2499 else
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2501 $as_echo "no" >&6; }
2502 fi
2503
2504
2505 fi
2506 if test -z "$ac_cv_prog_CC"; then
2507 ac_ct_CC=$CC
2508 # Extract the first word of "gcc", so it can be a program name with args.
2509 set dummy gcc; ac_word=$2
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2511 $as_echo_n "checking for $ac_word... " >&6; }
2512 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2513 $as_echo_n "(cached) " >&6
2514 else
2515 if test -n "$ac_ct_CC"; then
2516 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2517 else
2518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2519 for as_dir in $PATH
2520 do
2521 IFS=$as_save_IFS
2522 test -z "$as_dir" && as_dir=.
2523 for ac_exec_ext in '' $ac_executable_extensions; do
2524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2525 ac_cv_prog_ac_ct_CC="gcc"
2526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2527 break 2
2528 fi
2529 done
2530 done
2531 IFS=$as_save_IFS
2532
2533 fi
2534 fi
2535 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2536 if test -n "$ac_ct_CC"; then
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2538 $as_echo "$ac_ct_CC" >&6; }
2539 else
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2541 $as_echo "no" >&6; }
2542 fi
2543
2544 if test "x$ac_ct_CC" = x; then
2545 CC=""
2546 else
2547 case $cross_compiling:$ac_tool_warned in
2548 yes:)
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2550 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2551 ac_tool_warned=yes ;;
2552 esac
2553 CC=$ac_ct_CC
2554 fi
2555 else
2556 CC="$ac_cv_prog_CC"
2557 fi
2558
2559 if test -z "$CC"; then
2560 if test -n "$ac_tool_prefix"; then
2561 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2562 set dummy ${ac_tool_prefix}cc; ac_word=$2
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2564 $as_echo_n "checking for $ac_word... " >&6; }
2565 if ${ac_cv_prog_CC+:} false; then :
2566 $as_echo_n "(cached) " >&6
2567 else
2568 if test -n "$CC"; then
2569 ac_cv_prog_CC="$CC" # Let the user override the test.
2570 else
2571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2572 for as_dir in $PATH
2573 do
2574 IFS=$as_save_IFS
2575 test -z "$as_dir" && as_dir=.
2576 for ac_exec_ext in '' $ac_executable_extensions; do
2577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2578 ac_cv_prog_CC="${ac_tool_prefix}cc"
2579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2580 break 2
2581 fi
2582 done
2583 done
2584 IFS=$as_save_IFS
2585
2586 fi
2587 fi
2588 CC=$ac_cv_prog_CC
2589 if test -n "$CC"; then
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2591 $as_echo "$CC" >&6; }
2592 else
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2594 $as_echo "no" >&6; }
2595 fi
2596
2597
2598 fi
2599 fi
2600 if test -z "$CC"; then
2601 # Extract the first word of "cc", so it can be a program name with args.
2602 set dummy cc; ac_word=$2
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2604 $as_echo_n "checking for $ac_word... " >&6; }
2605 if ${ac_cv_prog_CC+:} false; then :
2606 $as_echo_n "(cached) " >&6
2607 else
2608 if test -n "$CC"; then
2609 ac_cv_prog_CC="$CC" # Let the user override the test.
2610 else
2611 ac_prog_rejected=no
2612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2613 for as_dir in $PATH
2614 do
2615 IFS=$as_save_IFS
2616 test -z "$as_dir" && as_dir=.
2617 for ac_exec_ext in '' $ac_executable_extensions; do
2618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2619 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2620 ac_prog_rejected=yes
2621 continue
2622 fi
2623 ac_cv_prog_CC="cc"
2624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2625 break 2
2626 fi
2627 done
2628 done
2629 IFS=$as_save_IFS
2630
2631 if test $ac_prog_rejected = yes; then
2632 # We found a bogon in the path, so make sure we never use it.
2633 set dummy $ac_cv_prog_CC
2634 shift
2635 if test $# != 0; then
2636 # We chose a different compiler from the bogus one.
2637 # However, it has the same basename, so the bogon will be chosen
2638 # first if we set CC to just the basename; use the full file name.
2639 shift
2640 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2641 fi
2642 fi
2643 fi
2644 fi
2645 CC=$ac_cv_prog_CC
2646 if test -n "$CC"; then
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2648 $as_echo "$CC" >&6; }
2649 else
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2651 $as_echo "no" >&6; }
2652 fi
2653
2654
2655 fi
2656 if test -z "$CC"; then
2657 if test -n "$ac_tool_prefix"; then
2658 for ac_prog in cl.exe
2659 do
2660 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2661 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2663 $as_echo_n "checking for $ac_word... " >&6; }
2664 if ${ac_cv_prog_CC+:} false; then :
2665 $as_echo_n "(cached) " >&6
2666 else
2667 if test -n "$CC"; then
2668 ac_cv_prog_CC="$CC" # Let the user override the test.
2669 else
2670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2671 for as_dir in $PATH
2672 do
2673 IFS=$as_save_IFS
2674 test -z "$as_dir" && as_dir=.
2675 for ac_exec_ext in '' $ac_executable_extensions; do
2676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2677 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2679 break 2
2680 fi
2681 done
2682 done
2683 IFS=$as_save_IFS
2684
2685 fi
2686 fi
2687 CC=$ac_cv_prog_CC
2688 if test -n "$CC"; then
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2690 $as_echo "$CC" >&6; }
2691 else
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2693 $as_echo "no" >&6; }
2694 fi
2695
2696
2697 test -n "$CC" && break
2698 done
2699 fi
2700 if test -z "$CC"; then
2701 ac_ct_CC=$CC
2702 for ac_prog in cl.exe
2703 do
2704 # Extract the first word of "$ac_prog", so it can be a program name with args.
2705 set dummy $ac_prog; ac_word=$2
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2707 $as_echo_n "checking for $ac_word... " >&6; }
2708 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2709 $as_echo_n "(cached) " >&6
2710 else
2711 if test -n "$ac_ct_CC"; then
2712 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2713 else
2714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2715 for as_dir in $PATH
2716 do
2717 IFS=$as_save_IFS
2718 test -z "$as_dir" && as_dir=.
2719 for ac_exec_ext in '' $ac_executable_extensions; do
2720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2721 ac_cv_prog_ac_ct_CC="$ac_prog"
2722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2723 break 2
2724 fi
2725 done
2726 done
2727 IFS=$as_save_IFS
2728
2729 fi
2730 fi
2731 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2732 if test -n "$ac_ct_CC"; then
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2734 $as_echo "$ac_ct_CC" >&6; }
2735 else
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2737 $as_echo "no" >&6; }
2738 fi
2739
2740
2741 test -n "$ac_ct_CC" && break
2742 done
2743
2744 if test "x$ac_ct_CC" = x; then
2745 CC=""
2746 else
2747 case $cross_compiling:$ac_tool_warned in
2748 yes:)
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2750 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2751 ac_tool_warned=yes ;;
2752 esac
2753 CC=$ac_ct_CC
2754 fi
2755 fi
2756
2757 fi
2758
2759
2760 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2761 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2762 as_fn_error $? "no acceptable C compiler found in \$PATH
2763 See \`config.log' for more details" "$LINENO" 5; }
2764
2765 # Provide some information about the compiler.
2766 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2767 set X $ac_compile
2768 ac_compiler=$2
2769 for ac_option in --version -v -V -qversion; do
2770 { { ac_try="$ac_compiler $ac_option >&5"
2771 case "(($ac_try" in
2772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2773 *) ac_try_echo=$ac_try;;
2774 esac
2775 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2776 $as_echo "$ac_try_echo"; } >&5
2777 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2778 ac_status=$?
2779 if test -s conftest.err; then
2780 sed '10a\
2781 ... rest of stderr output deleted ...
2782 10q' conftest.err >conftest.er1
2783 cat conftest.er1 >&5
2784 fi
2785 rm -f conftest.er1 conftest.err
2786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2787 test $ac_status = 0; }
2788 done
2789
2790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2791 /* end confdefs.h. */
2792
2793 int
2794 main ()
2795 {
2796
2797 ;
2798 return 0;
2799 }
2800 _ACEOF
2801 ac_clean_files_save=$ac_clean_files
2802 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2803 # Try to create an executable without -o first, disregard a.out.
2804 # It will help us diagnose broken compilers, and finding out an intuition
2805 # of exeext.
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2807 $as_echo_n "checking whether the C compiler works... " >&6; }
2808 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2809
2810 # The possible output files:
2811 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2812
2813 ac_rmfiles=
2814 for ac_file in $ac_files
2815 do
2816 case $ac_file in
2817 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2818 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2819 esac
2820 done
2821 rm -f $ac_rmfiles
2822
2823 if { { ac_try="$ac_link_default"
2824 case "(($ac_try" in
2825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2826 *) ac_try_echo=$ac_try;;
2827 esac
2828 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2829 $as_echo "$ac_try_echo"; } >&5
2830 (eval "$ac_link_default") 2>&5
2831 ac_status=$?
2832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2833 test $ac_status = 0; }; then :
2834 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2835 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2836 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2837 # so that the user can short-circuit this test for compilers unknown to
2838 # Autoconf.
2839 for ac_file in $ac_files ''
2840 do
2841 test -f "$ac_file" || continue
2842 case $ac_file in
2843 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2844 ;;
2845 [ab].out )
2846 # We found the default executable, but exeext='' is most
2847 # certainly right.
2848 break;;
2849 *.* )
2850 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2851 then :; else
2852 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2853 fi
2854 # We set ac_cv_exeext here because the later test for it is not
2855 # safe: cross compilers may not add the suffix if given an `-o'
2856 # argument, so we may need to know it at that point already.
2857 # Even if this section looks crufty: it has the advantage of
2858 # actually working.
2859 break;;
2860 * )
2861 break;;
2862 esac
2863 done
2864 test "$ac_cv_exeext" = no && ac_cv_exeext=
2865
2866 else
2867 ac_file=''
2868 fi
2869 if test -z "$ac_file"; then :
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2871 $as_echo "no" >&6; }
2872 $as_echo "$as_me: failed program was:" >&5
2873 sed 's/^/| /' conftest.$ac_ext >&5
2874
2875 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2876 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2877 as_fn_error 77 "C compiler cannot create executables
2878 See \`config.log' for more details" "$LINENO" 5; }
2879 else
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2881 $as_echo "yes" >&6; }
2882 fi
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2884 $as_echo_n "checking for C compiler default output file name... " >&6; }
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2886 $as_echo "$ac_file" >&6; }
2887 ac_exeext=$ac_cv_exeext
2888
2889 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2890 ac_clean_files=$ac_clean_files_save
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2892 $as_echo_n "checking for suffix of executables... " >&6; }
2893 if { { ac_try="$ac_link"
2894 case "(($ac_try" in
2895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2896 *) ac_try_echo=$ac_try;;
2897 esac
2898 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2899 $as_echo "$ac_try_echo"; } >&5
2900 (eval "$ac_link") 2>&5
2901 ac_status=$?
2902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2903 test $ac_status = 0; }; then :
2904 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2905 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2906 # work properly (i.e., refer to `conftest.exe'), while it won't with
2907 # `rm'.
2908 for ac_file in conftest.exe conftest conftest.*; do
2909 test -f "$ac_file" || continue
2910 case $ac_file in
2911 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2912 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2913 break;;
2914 * ) break;;
2915 esac
2916 done
2917 else
2918 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2919 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2920 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2921 See \`config.log' for more details" "$LINENO" 5; }
2922 fi
2923 rm -f conftest conftest$ac_cv_exeext
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2925 $as_echo "$ac_cv_exeext" >&6; }
2926
2927 rm -f conftest.$ac_ext
2928 EXEEXT=$ac_cv_exeext
2929 ac_exeext=$EXEEXT
2930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2931 /* end confdefs.h. */
2932 #include <stdio.h>
2933 int
2934 main ()
2935 {
2936 FILE *f = fopen ("conftest.out", "w");
2937 return ferror (f) || fclose (f) != 0;
2938
2939 ;
2940 return 0;
2941 }
2942 _ACEOF
2943 ac_clean_files="$ac_clean_files conftest.out"
2944 # Check that the compiler produces executables we can run. If not, either
2945 # the compiler is broken, or we cross compile.
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2947 $as_echo_n "checking whether we are cross compiling... " >&6; }
2948 if test "$cross_compiling" != yes; then
2949 { { ac_try="$ac_link"
2950 case "(($ac_try" in
2951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2952 *) ac_try_echo=$ac_try;;
2953 esac
2954 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2955 $as_echo "$ac_try_echo"; } >&5
2956 (eval "$ac_link") 2>&5
2957 ac_status=$?
2958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2959 test $ac_status = 0; }
2960 if { ac_try='./conftest$ac_cv_exeext'
2961 { { case "(($ac_try" in
2962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2963 *) ac_try_echo=$ac_try;;
2964 esac
2965 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2966 $as_echo "$ac_try_echo"; } >&5
2967 (eval "$ac_try") 2>&5
2968 ac_status=$?
2969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2970 test $ac_status = 0; }; }; then
2971 cross_compiling=no
2972 else
2973 if test "$cross_compiling" = maybe; then
2974 cross_compiling=yes
2975 else
2976 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2977 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2978 as_fn_error $? "cannot run C compiled programs.
2979 If you meant to cross compile, use \`--host'.
2980 See \`config.log' for more details" "$LINENO" 5; }
2981 fi
2982 fi
2983 fi
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2985 $as_echo "$cross_compiling" >&6; }
2986
2987 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2988 ac_clean_files=$ac_clean_files_save
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2990 $as_echo_n "checking for suffix of object files... " >&6; }
2991 if ${ac_cv_objext+:} false; then :
2992 $as_echo_n "(cached) " >&6
2993 else
2994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2995 /* end confdefs.h. */
2996
2997 int
2998 main ()
2999 {
3000
3001 ;
3002 return 0;
3003 }
3004 _ACEOF
3005 rm -f conftest.o conftest.obj
3006 if { { ac_try="$ac_compile"
3007 case "(($ac_try" in
3008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3009 *) ac_try_echo=$ac_try;;
3010 esac
3011 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3012 $as_echo "$ac_try_echo"; } >&5
3013 (eval "$ac_compile") 2>&5
3014 ac_status=$?
3015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3016 test $ac_status = 0; }; then :
3017 for ac_file in conftest.o conftest.obj conftest.*; do
3018 test -f "$ac_file" || continue;
3019 case $ac_file in
3020 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3021 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3022 break;;
3023 esac
3024 done
3025 else
3026 $as_echo "$as_me: failed program was:" >&5
3027 sed 's/^/| /' conftest.$ac_ext >&5
3028
3029 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3030 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3031 as_fn_error $? "cannot compute suffix of object files: cannot compile
3032 See \`config.log' for more details" "$LINENO" 5; }
3033 fi
3034 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3035 fi
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3037 $as_echo "$ac_cv_objext" >&6; }
3038 OBJEXT=$ac_cv_objext
3039 ac_objext=$OBJEXT
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3041 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3042 if ${ac_cv_c_compiler_gnu+:} false; then :
3043 $as_echo_n "(cached) " >&6
3044 else
3045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3046 /* end confdefs.h. */
3047
3048 int
3049 main ()
3050 {
3051 #ifndef __GNUC__
3052 choke me
3053 #endif
3054
3055 ;
3056 return 0;
3057 }
3058 _ACEOF
3059 if ac_fn_c_try_compile "$LINENO"; then :
3060 ac_compiler_gnu=yes
3061 else
3062 ac_compiler_gnu=no
3063 fi
3064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3065 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3066
3067 fi
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3069 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3070 if test $ac_compiler_gnu = yes; then
3071 GCC=yes
3072 else
3073 GCC=
3074 fi
3075 ac_test_CFLAGS=${CFLAGS+set}
3076 ac_save_CFLAGS=$CFLAGS
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3078 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3079 if ${ac_cv_prog_cc_g+:} false; then :
3080 $as_echo_n "(cached) " >&6
3081 else
3082 ac_save_c_werror_flag=$ac_c_werror_flag
3083 ac_c_werror_flag=yes
3084 ac_cv_prog_cc_g=no
3085 CFLAGS="-g"
3086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3087 /* end confdefs.h. */
3088
3089 int
3090 main ()
3091 {
3092
3093 ;
3094 return 0;
3095 }
3096 _ACEOF
3097 if ac_fn_c_try_compile "$LINENO"; then :
3098 ac_cv_prog_cc_g=yes
3099 else
3100 CFLAGS=""
3101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3102 /* end confdefs.h. */
3103
3104 int
3105 main ()
3106 {
3107
3108 ;
3109 return 0;
3110 }
3111 _ACEOF
3112 if ac_fn_c_try_compile "$LINENO"; then :
3113
3114 else
3115 ac_c_werror_flag=$ac_save_c_werror_flag
3116 CFLAGS="-g"
3117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3118 /* end confdefs.h. */
3119
3120 int
3121 main ()
3122 {
3123
3124 ;
3125 return 0;
3126 }
3127 _ACEOF
3128 if ac_fn_c_try_compile "$LINENO"; then :
3129 ac_cv_prog_cc_g=yes
3130 fi
3131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3132 fi
3133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3134 fi
3135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3136 ac_c_werror_flag=$ac_save_c_werror_flag
3137 fi
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3139 $as_echo "$ac_cv_prog_cc_g" >&6; }
3140 if test "$ac_test_CFLAGS" = set; then
3141 CFLAGS=$ac_save_CFLAGS
3142 elif test $ac_cv_prog_cc_g = yes; then
3143 if test "$GCC" = yes; then
3144 CFLAGS="-g -O2"
3145 else
3146 CFLAGS="-g"
3147 fi
3148 else
3149 if test "$GCC" = yes; then
3150 CFLAGS="-O2"
3151 else
3152 CFLAGS=
3153 fi
3154 fi
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3156 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3157 if ${ac_cv_prog_cc_c89+:} false; then :
3158 $as_echo_n "(cached) " >&6
3159 else
3160 ac_cv_prog_cc_c89=no
3161 ac_save_CC=$CC
3162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3163 /* end confdefs.h. */
3164 #include <stdarg.h>
3165 #include <stdio.h>
3166 struct stat;
3167 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3168 struct buf { int x; };
3169 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3170 static char *e (p, i)
3171 char **p;
3172 int i;
3173 {
3174 return p[i];
3175 }
3176 static char *f (char * (*g) (char **, int), char **p, ...)
3177 {
3178 char *s;
3179 va_list v;
3180 va_start (v,p);
3181 s = g (p, va_arg (v,int));
3182 va_end (v);
3183 return s;
3184 }
3185
3186 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3187 function prototypes and stuff, but not '\xHH' hex character constants.
3188 These don't provoke an error unfortunately, instead are silently treated
3189 as 'x'. The following induces an error, until -std is added to get
3190 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3191 array size at least. It's necessary to write '\x00'==0 to get something
3192 that's true only with -std. */
3193 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3194
3195 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3196 inside strings and character constants. */
3197 #define FOO(x) 'x'
3198 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3199
3200 int test (int i, double x);
3201 struct s1 {int (*f) (int a);};
3202 struct s2 {int (*f) (double a);};
3203 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3204 int argc;
3205 char **argv;
3206 int
3207 main ()
3208 {
3209 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3210 ;
3211 return 0;
3212 }
3213 _ACEOF
3214 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3215 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3216 do
3217 CC="$ac_save_CC $ac_arg"
3218 if ac_fn_c_try_compile "$LINENO"; then :
3219 ac_cv_prog_cc_c89=$ac_arg
3220 fi
3221 rm -f core conftest.err conftest.$ac_objext
3222 test "x$ac_cv_prog_cc_c89" != "xno" && break
3223 done
3224 rm -f conftest.$ac_ext
3225 CC=$ac_save_CC
3226
3227 fi
3228 # AC_CACHE_VAL
3229 case "x$ac_cv_prog_cc_c89" in
3230 x)
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3232 $as_echo "none needed" >&6; } ;;
3233 xno)
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3235 $as_echo "unsupported" >&6; } ;;
3236 *)
3237 CC="$CC $ac_cv_prog_cc_c89"
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3239 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3240 esac
3241 if test "x$ac_cv_prog_cc_c89" != xno; then :
3242
3243 fi
3244
3245 ac_ext=c
3246 ac_cpp='$CPP $CPPFLAGS'
3247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3250
3251
3252 # Find a good install program. We prefer a C program (faster),
3253 # so one script is as good as another. But avoid the broken or
3254 # incompatible versions:
3255 # SysV /etc/install, /usr/sbin/install
3256 # SunOS /usr/etc/install
3257 # IRIX /sbin/install
3258 # AIX /bin/install
3259 # AmigaOS /C/install, which installs bootblocks on floppy discs
3260 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3261 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3262 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3263 # OS/2's system install, which has a completely different semantic
3264 # ./install, which can be erroneously created by make from ./install.sh.
3265 # Reject install programs that cannot install multiple files.
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3267 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3268 if test -z "$INSTALL"; then
3269 if ${ac_cv_path_install+:} false; then :
3270 $as_echo_n "(cached) " >&6
3271 else
3272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3273 for as_dir in $PATH
3274 do
3275 IFS=$as_save_IFS
3276 test -z "$as_dir" && as_dir=.
3277 # Account for people who put trailing slashes in PATH elements.
3278 case $as_dir/ in #((
3279 ./ | .// | /[cC]/* | \
3280 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3281 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3282 /usr/ucb/* ) ;;
3283 *)
3284 # OSF1 and SCO ODT 3.0 have their own names for install.
3285 # Don't use installbsd from OSF since it installs stuff as root
3286 # by default.
3287 for ac_prog in ginstall scoinst install; do
3288 for ac_exec_ext in '' $ac_executable_extensions; do
3289 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3290 if test $ac_prog = install &&
3291 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3292 # AIX install. It has an incompatible calling convention.
3293 :
3294 elif test $ac_prog = install &&
3295 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3296 # program-specific install script used by HP pwplus--don't use.
3297 :
3298 else
3299 rm -rf conftest.one conftest.two conftest.dir
3300 echo one > conftest.one
3301 echo two > conftest.two
3302 mkdir conftest.dir
3303 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3304 test -s conftest.one && test -s conftest.two &&
3305 test -s conftest.dir/conftest.one &&
3306 test -s conftest.dir/conftest.two
3307 then
3308 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3309 break 3
3310 fi
3311 fi
3312 fi
3313 done
3314 done
3315 ;;
3316 esac
3317
3318 done
3319 IFS=$as_save_IFS
3320
3321 rm -rf conftest.one conftest.two conftest.dir
3322
3323 fi
3324 if test "${ac_cv_path_install+set}" = set; then
3325 INSTALL=$ac_cv_path_install
3326 else
3327 # As a last resort, use the slow shell script. Don't cache a
3328 # value for INSTALL within a source directory, because that will
3329 # break other packages using the cache if that directory is
3330 # removed, or if the value is a relative name.
3331 INSTALL=$ac_install_sh
3332 fi
3333 fi
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3335 $as_echo "$INSTALL" >&6; }
3336
3337 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3338 # It thinks the first close brace ends the variable substitution.
3339 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3340
3341 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3342
3343 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3344
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3346 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3347 if ${ac_cv_path_GREP+:} false; then :
3348 $as_echo_n "(cached) " >&6
3349 else
3350 if test -z "$GREP"; then
3351 ac_path_GREP_found=false
3352 # Loop through the user's path and test for each of PROGNAME-LIST
3353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3354 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3355 do
3356 IFS=$as_save_IFS
3357 test -z "$as_dir" && as_dir=.
3358 for ac_prog in grep ggrep; do
3359 for ac_exec_ext in '' $ac_executable_extensions; do
3360 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3361 as_fn_executable_p "$ac_path_GREP" || continue
3362 # Check for GNU ac_path_GREP and select it if it is found.
3363 # Check for GNU $ac_path_GREP
3364 case `"$ac_path_GREP" --version 2>&1` in
3365 *GNU*)
3366 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3367 *)
3368 ac_count=0
3369 $as_echo_n 0123456789 >"conftest.in"
3370 while :
3371 do
3372 cat "conftest.in" "conftest.in" >"conftest.tmp"
3373 mv "conftest.tmp" "conftest.in"
3374 cp "conftest.in" "conftest.nl"
3375 $as_echo 'GREP' >> "conftest.nl"
3376 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3377 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3378 as_fn_arith $ac_count + 1 && ac_count=$as_val
3379 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3380 # Best one so far, save it but keep looking for a better one
3381 ac_cv_path_GREP="$ac_path_GREP"
3382 ac_path_GREP_max=$ac_count
3383 fi
3384 # 10*(2^10) chars as input seems more than enough
3385 test $ac_count -gt 10 && break
3386 done
3387 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3388 esac
3389
3390 $ac_path_GREP_found && break 3
3391 done
3392 done
3393 done
3394 IFS=$as_save_IFS
3395 if test -z "$ac_cv_path_GREP"; then
3396 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3397 fi
3398 else
3399 ac_cv_path_GREP=$GREP
3400 fi
3401
3402 fi
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3404 $as_echo "$ac_cv_path_GREP" >&6; }
3405 GREP="$ac_cv_path_GREP"
3406
3407
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3409 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3410 if test -z "$MKDIR_P"; then
3411 if ${ac_cv_path_mkdir+:} false; then :
3412 $as_echo_n "(cached) " >&6
3413 else
3414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3415 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3416 do
3417 IFS=$as_save_IFS
3418 test -z "$as_dir" && as_dir=.
3419 for ac_prog in mkdir gmkdir; do
3420 for ac_exec_ext in '' $ac_executable_extensions; do
3421 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3422 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3423 'mkdir (GNU coreutils) '* | \
3424 'mkdir (coreutils) '* | \
3425 'mkdir (fileutils) '4.1*)
3426 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3427 break 3;;
3428 esac
3429 done
3430 done
3431 done
3432 IFS=$as_save_IFS
3433
3434 fi
3435
3436 test -d ./--version && rmdir ./--version
3437 if test "${ac_cv_path_mkdir+set}" = set; then
3438 MKDIR_P="$ac_cv_path_mkdir -p"
3439 else
3440 # As a last resort, use the slow shell script. Don't cache a
3441 # value for MKDIR_P within a source directory, because that will
3442 # break other packages using the cache if that directory is
3443 # removed, or if the value is a relative name.
3444 MKDIR_P="$ac_install_sh -d"
3445 fi
3446 fi
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3448 $as_echo "$MKDIR_P" >&6; }
3449
3450
3451 case $ac_cv_prog_cc_stdc in #(
3452 no) :
3453 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3454 *) :
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3456 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3457 if ${ac_cv_prog_cc_c99+:} false; then :
3458 $as_echo_n "(cached) " >&6
3459 else
3460 ac_cv_prog_cc_c99=no
3461 ac_save_CC=$CC
3462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3463 /* end confdefs.h. */
3464 #include <stdarg.h>
3465 #include <stdbool.h>
3466 #include <stdlib.h>
3467 #include <wchar.h>
3468 #include <stdio.h>
3469
3470 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3471 #define debug(...) fprintf (stderr, __VA_ARGS__)
3472 #define showlist(...) puts (#__VA_ARGS__)
3473 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3474 static void
3475 test_varargs_macros (void)
3476 {
3477 int x = 1234;
3478 int y = 5678;
3479 debug ("Flag");
3480 debug ("X = %d\n", x);
3481 showlist (The first, second, and third items.);
3482 report (x>y, "x is %d but y is %d", x, y);
3483 }
3484
3485 // Check long long types.
3486 #define BIG64 18446744073709551615ull
3487 #define BIG32 4294967295ul
3488 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3489 #if !BIG_OK
3490 your preprocessor is broken;
3491 #endif
3492 #if BIG_OK
3493 #else
3494 your preprocessor is broken;
3495 #endif
3496 static long long int bignum = -9223372036854775807LL;
3497 static unsigned long long int ubignum = BIG64;
3498
3499 struct incomplete_array
3500 {
3501 int datasize;
3502 double data[];
3503 };
3504
3505 struct named_init {
3506 int number;
3507 const wchar_t *name;
3508 double average;
3509 };
3510
3511 typedef const char *ccp;
3512
3513 static inline int
3514 test_restrict (ccp restrict text)
3515 {
3516 // See if C++-style comments work.
3517 // Iterate through items via the restricted pointer.
3518 // Also check for declarations in for loops.
3519 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3520 continue;
3521 return 0;
3522 }
3523
3524 // Check varargs and va_copy.
3525 static void
3526 test_varargs (const char *format, ...)
3527 {
3528 va_list args;
3529 va_start (args, format);
3530 va_list args_copy;
3531 va_copy (args_copy, args);
3532
3533 const char *str;
3534 int number;
3535 float fnumber;
3536
3537 while (*format)
3538 {
3539 switch (*format++)
3540 {
3541 case 's': // string
3542 str = va_arg (args_copy, const char *);
3543 break;
3544 case 'd': // int
3545 number = va_arg (args_copy, int);
3546 break;
3547 case 'f': // float
3548 fnumber = va_arg (args_copy, double);
3549 break;
3550 default:
3551 break;
3552 }
3553 }
3554 va_end (args_copy);
3555 va_end (args);
3556 }
3557
3558 int
3559 main ()
3560 {
3561
3562 // Check bool.
3563 _Bool success = false;
3564
3565 // Check restrict.
3566 if (test_restrict ("String literal") == 0)
3567 success = true;
3568 char *restrict newvar = "Another string";
3569
3570 // Check varargs.
3571 test_varargs ("s, d' f .", "string", 65, 34.234);
3572 test_varargs_macros ();
3573
3574 // Check flexible array members.
3575 struct incomplete_array *ia =
3576 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3577 ia->datasize = 10;
3578 for (int i = 0; i < ia->datasize; ++i)
3579 ia->data[i] = i * 1.234;
3580
3581 // Check named initializers.
3582 struct named_init ni = {
3583 .number = 34,
3584 .name = L"Test wide string",
3585 .average = 543.34343,
3586 };
3587
3588 ni.number = 58;
3589
3590 int dynamic_array[ni.number];
3591 dynamic_array[ni.number - 1] = 543;
3592
3593 // work around unused variable warnings
3594 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3595 || dynamic_array[ni.number - 1] != 543);
3596
3597 ;
3598 return 0;
3599 }
3600 _ACEOF
3601 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3602 do
3603 CC="$ac_save_CC $ac_arg"
3604 if ac_fn_c_try_compile "$LINENO"; then :
3605 ac_cv_prog_cc_c99=$ac_arg
3606 fi
3607 rm -f core conftest.err conftest.$ac_objext
3608 test "x$ac_cv_prog_cc_c99" != "xno" && break
3609 done
3610 rm -f conftest.$ac_ext
3611 CC=$ac_save_CC
3612
3613 fi
3614 # AC_CACHE_VAL
3615 case "x$ac_cv_prog_cc_c99" in
3616 x)
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3618 $as_echo "none needed" >&6; } ;;
3619 xno)
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3621 $as_echo "unsupported" >&6; } ;;
3622 *)
3623 CC="$CC $ac_cv_prog_cc_c99"
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3625 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3626 esac
3627 if test "x$ac_cv_prog_cc_c99" != xno; then :
3628 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3629 else
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3631 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3632 if ${ac_cv_prog_cc_c89+:} false; then :
3633 $as_echo_n "(cached) " >&6
3634 else
3635 ac_cv_prog_cc_c89=no
3636 ac_save_CC=$CC
3637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3638 /* end confdefs.h. */
3639 #include <stdarg.h>
3640 #include <stdio.h>
3641 struct stat;
3642 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3643 struct buf { int x; };
3644 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3645 static char *e (p, i)
3646 char **p;
3647 int i;
3648 {
3649 return p[i];
3650 }
3651 static char *f (char * (*g) (char **, int), char **p, ...)
3652 {
3653 char *s;
3654 va_list v;
3655 va_start (v,p);
3656 s = g (p, va_arg (v,int));
3657 va_end (v);
3658 return s;
3659 }
3660
3661 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3662 function prototypes and stuff, but not '\xHH' hex character constants.
3663 These don't provoke an error unfortunately, instead are silently treated
3664 as 'x'. The following induces an error, until -std is added to get
3665 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3666 array size at least. It's necessary to write '\x00'==0 to get something
3667 that's true only with -std. */
3668 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3669
3670 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3671 inside strings and character constants. */
3672 #define FOO(x) 'x'
3673 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3674
3675 int test (int i, double x);
3676 struct s1 {int (*f) (int a);};
3677 struct s2 {int (*f) (double a);};
3678 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3679 int argc;
3680 char **argv;
3681 int
3682 main ()
3683 {
3684 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3685 ;
3686 return 0;
3687 }
3688 _ACEOF
3689 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3690 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3691 do
3692 CC="$ac_save_CC $ac_arg"
3693 if ac_fn_c_try_compile "$LINENO"; then :
3694 ac_cv_prog_cc_c89=$ac_arg
3695 fi
3696 rm -f core conftest.err conftest.$ac_objext
3697 test "x$ac_cv_prog_cc_c89" != "xno" && break
3698 done
3699 rm -f conftest.$ac_ext
3700 CC=$ac_save_CC
3701
3702 fi
3703 # AC_CACHE_VAL
3704 case "x$ac_cv_prog_cc_c89" in
3705 x)
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3707 $as_echo "none needed" >&6; } ;;
3708 xno)
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3710 $as_echo "unsupported" >&6; } ;;
3711 *)
3712 CC="$CC $ac_cv_prog_cc_c89"
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3714 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3715 esac
3716 if test "x$ac_cv_prog_cc_c89" != xno; then :
3717 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3718 else
3719 ac_cv_prog_cc_stdc=no
3720 fi
3721
3722 fi
3723 ;;
3724 esac
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
3726 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
3727 if ${ac_cv_prog_cc_stdc+:} false; then :
3728 $as_echo_n "(cached) " >&6
3729 fi
3730
3731 case $ac_cv_prog_cc_stdc in #(
3732 no) :
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3734 $as_echo "unsupported" >&6; } ;; #(
3735 '') :
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3737 $as_echo "none needed" >&6; } ;; #(
3738 *) :
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
3740 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
3741 esac
3742
3743 ac_ext=c
3744 ac_cpp='$CPP $CPPFLAGS'
3745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3749 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3750 # On Suns, sometimes $CPP names a directory.
3751 if test -n "$CPP" && test -d "$CPP"; then
3752 CPP=
3753 fi
3754 if test -z "$CPP"; then
3755 if ${ac_cv_prog_CPP+:} false; then :
3756 $as_echo_n "(cached) " >&6
3757 else
3758 # Double quotes because CPP needs to be expanded
3759 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3760 do
3761 ac_preproc_ok=false
3762 for ac_c_preproc_warn_flag in '' yes
3763 do
3764 # Use a header file that comes with gcc, so configuring glibc
3765 # with a fresh cross-compiler works.
3766 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3767 # <limits.h> exists even on freestanding compilers.
3768 # On the NeXT, cc -E runs the code through the compiler's parser,
3769 # not just through cpp. "Syntax error" is here to catch this case.
3770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3771 /* end confdefs.h. */
3772 #ifdef __STDC__
3773 # include <limits.h>
3774 #else
3775 # include <assert.h>
3776 #endif
3777 Syntax error
3778 _ACEOF
3779 if ac_fn_c_try_cpp "$LINENO"; then :
3780
3781 else
3782 # Broken: fails on valid input.
3783 continue
3784 fi
3785 rm -f conftest.err conftest.i conftest.$ac_ext
3786
3787 # OK, works on sane cases. Now check whether nonexistent headers
3788 # can be detected and how.
3789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3790 /* end confdefs.h. */
3791 #include <ac_nonexistent.h>
3792 _ACEOF
3793 if ac_fn_c_try_cpp "$LINENO"; then :
3794 # Broken: success on invalid input.
3795 continue
3796 else
3797 # Passes both tests.
3798 ac_preproc_ok=:
3799 break
3800 fi
3801 rm -f conftest.err conftest.i conftest.$ac_ext
3802
3803 done
3804 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3805 rm -f conftest.i conftest.err conftest.$ac_ext
3806 if $ac_preproc_ok; then :
3807 break
3808 fi
3809
3810 done
3811 ac_cv_prog_CPP=$CPP
3812
3813 fi
3814 CPP=$ac_cv_prog_CPP
3815 else
3816 ac_cv_prog_CPP=$CPP
3817 fi
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3819 $as_echo "$CPP" >&6; }
3820 ac_preproc_ok=false
3821 for ac_c_preproc_warn_flag in '' yes
3822 do
3823 # Use a header file that comes with gcc, so configuring glibc
3824 # with a fresh cross-compiler works.
3825 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3826 # <limits.h> exists even on freestanding compilers.
3827 # On the NeXT, cc -E runs the code through the compiler's parser,
3828 # not just through cpp. "Syntax error" is here to catch this case.
3829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3830 /* end confdefs.h. */
3831 #ifdef __STDC__
3832 # include <limits.h>
3833 #else
3834 # include <assert.h>
3835 #endif
3836 Syntax error
3837 _ACEOF
3838 if ac_fn_c_try_cpp "$LINENO"; then :
3839
3840 else
3841 # Broken: fails on valid input.
3842 continue
3843 fi
3844 rm -f conftest.err conftest.i conftest.$ac_ext
3845
3846 # OK, works on sane cases. Now check whether nonexistent headers
3847 # can be detected and how.
3848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3849 /* end confdefs.h. */
3850 #include <ac_nonexistent.h>
3851 _ACEOF
3852 if ac_fn_c_try_cpp "$LINENO"; then :
3853 # Broken: success on invalid input.
3854 continue
3855 else
3856 # Passes both tests.
3857 ac_preproc_ok=:
3858 break
3859 fi
3860 rm -f conftest.err conftest.i conftest.$ac_ext
3861
3862 done
3863 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3864 rm -f conftest.i conftest.err conftest.$ac_ext
3865 if $ac_preproc_ok; then :
3866
3867 else
3868 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3869 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3870 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3871 See \`config.log' for more details" "$LINENO" 5; }
3872 fi
3873
3874 ac_ext=c
3875 ac_cpp='$CPP $CPPFLAGS'
3876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3879
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports __func__" >&5
3881 $as_echo_n "checking whether compiler supports __func__... " >&6; }
3882 if ${pgac_cv_funcname_func+:} false; then :
3883 $as_echo_n "(cached) " >&6
3884 else
3885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3886 /* end confdefs.h. */
3887 #include <stdio.h>
3888 int
3889 main ()
3890 {
3891 printf("%s\n", __func__);
3892 ;
3893 return 0;
3894 }
3895 _ACEOF
3896 if ac_fn_c_try_compile "$LINENO"; then :
3897 pgac_cv_funcname_func=yes
3898 else
3899 pgac_cv_funcname_func=no
3900 fi
3901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3902 fi
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_funcname_func" >&5
3904 $as_echo "$pgac_cv_funcname_func" >&6; }
3905 if test x"$pgac_cv_funcname_func" = xyes ; then
3906
3907 $as_echo "#define HAVE_FUNCNAME__FUNC 1" >>confdefs.h
3908
3909 fi
3910 if test "$GCC" = "yes"; then
3911 old_LDFLAGS="$LDFLAGS"
3912 LDFLAGS="$LDFLAGS -Wl,--as-needed"
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports --as-needed" >&5
3914 $as_echo_n "checking whether linker supports --as-needed... " >&6; }
3915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3916 /* end confdefs.h. */
3917 int main(void) { return 0; }
3918 _ACEOF
3919 if ac_fn_c_try_link "$LINENO"; then :
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3921 $as_echo "yes" >&6; }
3922 else
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3924 $as_echo "no" >&6; }
3925 LDFLAGS="$old_LDFLAGS"
3926 fi
3927 rm -f core conftest.err conftest.$ac_objext \
3928 conftest$ac_exeext conftest.$ac_ext
3929 fi
3930
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports dependency generation" >&5
3932 $as_echo_n "checking whether compiler supports dependency generation... " >&6; }
3933 old_CFLAGS="$CFLAGS"
3934 CFLAGS="$CFLAGS -MD -MP -MT conftest.o -MF conftest.o.d"
3935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3936 /* end confdefs.h. */
3937 void foo(void){}
3938 _ACEOF
3939 if ac_fn_c_try_compile "$LINENO"; then :
3940 HAVE_CC_DEPFLAG=yes
3941 else
3942 HAVE_CC_DEPFLAG=no
3943 fi
3944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3945 rm -f conftest.d
3946 CFLAGS="$old_CFLAGS"
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_CC_DEPFLAG" >&5
3948 $as_echo "$HAVE_CC_DEPFLAG" >&6; }
3949
3950
3951 WFLAGS=""
3952 if test x"$GCC" = xyes; then
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working warning switches" >&5
3954 $as_echo_n "checking for working warning switches... " >&6; }
3955 good_CFLAGS="$CFLAGS"
3956 flags="-Wall -Wextra"
3957 # turn off noise from Wextra
3958 flags="$flags -Wno-unused-parameter -Wno-missing-field-initializers"
3959 # Wextra does not turn those on?
3960 flags="$flags -Wmissing-prototypes -Wpointer-arith -Wendif-labels"
3961 flags="$flags -Wdeclaration-after-statement -Wold-style-definition"
3962 flags="$flags -Wstrict-prototypes -Wundef -Wformat=2"
3963 flags="$flags -Wuninitialized -Wmissing-format-attribute"
3964 for f in $flags; do
3965 CFLAGS="$good_CFLAGS $WFLAGS $f"
3966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3967 /* end confdefs.h. */
3968 void foo(void){}
3969 _ACEOF
3970 if ac_fn_c_try_compile "$LINENO"; then :
3971 WFLAGS="$WFLAGS $f"
3972 fi
3973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3974 done
3975
3976 # avoid -Wextra if missing-field.initializers does not work
3977 echo "$WFLAGS" | grep missing-field-initializers > /dev/null \
3978 || WFLAGS=`echo "$WFLAGS"|sed 's/ -Wextra//'`
3979
3980 CFLAGS="$good_CFLAGS"
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
3982 $as_echo "done" >&6; }
3983 fi
3984
3985
3986
3987
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3989 $as_echo_n "checking whether ln -s works... " >&6; }
3990 LN_S=$as_ln_s
3991 if test "$LN_S" = "ln -s"; then
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3993 $as_echo "yes" >&6; }
3994 else
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3996 $as_echo "no, using $LN_S" >&6; }
3997 fi
3998
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4000 $as_echo_n "checking for egrep... " >&6; }
4001 if ${ac_cv_path_EGREP+:} false; then :
4002 $as_echo_n "(cached) " >&6
4003 else
4004 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4005 then ac_cv_path_EGREP="$GREP -E"
4006 else
4007 if test -z "$EGREP"; then
4008 ac_path_EGREP_found=false
4009 # Loop through the user's path and test for each of PROGNAME-LIST
4010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4011 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4012 do
4013 IFS=$as_save_IFS
4014 test -z "$as_dir" && as_dir=.
4015 for ac_prog in egrep; do
4016 for ac_exec_ext in '' $ac_executable_extensions; do
4017 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4018 as_fn_executable_p "$ac_path_EGREP" || continue
4019 # Check for GNU ac_path_EGREP and select it if it is found.
4020 # Check for GNU $ac_path_EGREP
4021 case `"$ac_path_EGREP" --version 2>&1` in
4022 *GNU*)
4023 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4024 *)
4025 ac_count=0
4026 $as_echo_n 0123456789 >"conftest.in"
4027 while :
4028 do
4029 cat "conftest.in" "conftest.in" >"conftest.tmp"
4030 mv "conftest.tmp" "conftest.in"
4031 cp "conftest.in" "conftest.nl"
4032 $as_echo 'EGREP' >> "conftest.nl"
4033 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4034 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4035 as_fn_arith $ac_count + 1 && ac_count=$as_val
4036 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4037 # Best one so far, save it but keep looking for a better one
4038 ac_cv_path_EGREP="$ac_path_EGREP"
4039 ac_path_EGREP_max=$ac_count
4040 fi
4041 # 10*(2^10) chars as input seems more than enough
4042 test $ac_count -gt 10 && break
4043 done
4044 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4045 esac
4046
4047 $ac_path_EGREP_found && break 3
4048 done
4049 done
4050 done
4051 IFS=$as_save_IFS
4052 if test -z "$ac_cv_path_EGREP"; then
4053 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4054 fi
4055 else
4056 ac_cv_path_EGREP=$EGREP
4057 fi
4058
4059 fi
4060 fi
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4062 $as_echo "$ac_cv_path_EGREP" >&6; }
4063 EGREP="$ac_cv_path_EGREP"
4064
4065
4066 for ac_prog in gawk mawk nawk awk
4067 do
4068 # Extract the first word of "$ac_prog", so it can be a program name with args.
4069 set dummy $ac_prog; ac_word=$2
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4071 $as_echo_n "checking for $ac_word... " >&6; }
4072 if ${ac_cv_prog_AWK+:} false; then :
4073 $as_echo_n "(cached) " >&6
4074 else
4075 if test -n "$AWK"; then
4076 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4077 else
4078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4079 for as_dir in $PATH
4080 do
4081 IFS=$as_save_IFS
4082 test -z "$as_dir" && as_dir=.
4083 for ac_exec_ext in '' $ac_executable_extensions; do
4084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4085 ac_cv_prog_AWK="$ac_prog"
4086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4087 break 2
4088 fi
4089 done
4090 done
4091 IFS=$as_save_IFS
4092
4093 fi
4094 fi
4095 AWK=$ac_cv_prog_AWK
4096 if test -n "$AWK"; then
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4098 $as_echo "$AWK" >&6; }
4099 else
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4101 $as_echo "no" >&6; }
4102 fi
4103
4104
4105 test -n "$AWK" && break
4106 done
4107
4108
4109
4110
4111
4112
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4114 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4115 if ${ac_cv_path_SED+:} false; then :
4116 $as_echo_n "(cached) " >&6
4117 else
4118 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4119 for ac_i in 1 2 3 4 5 6 7; do
4120 ac_script="$ac_script$as_nl$ac_script"
4121 done
4122 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4123 { ac_script=; unset ac_script;}
4124 if test -z "$SED"; then
4125 ac_path_SED_found=false
4126 # Loop through the user's path and test for each of PROGNAME-LIST
4127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4128 for as_dir in $PATH
4129 do
4130 IFS=$as_save_IFS
4131 test -z "$as_dir" && as_dir=.
4132 for ac_prog in sed gsed; do
4133 for ac_exec_ext in '' $ac_executable_extensions; do
4134 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4135 as_fn_executable_p "$ac_path_SED" || continue
4136 # Check for GNU ac_path_SED and select it if it is found.
4137 # Check for GNU $ac_path_SED
4138 case `"$ac_path_SED" --version 2>&1` in
4139 *GNU*)
4140 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4141 *)
4142 ac_count=0
4143 $as_echo_n 0123456789 >"conftest.in"
4144 while :
4145 do
4146 cat "conftest.in" "conftest.in" >"conftest.tmp"
4147 mv "conftest.tmp" "conftest.in"
4148 cp "conftest.in" "conftest.nl"
4149 $as_echo '' >> "conftest.nl"
4150 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4151 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4152 as_fn_arith $ac_count + 1 && ac_count=$as_val
4153 if test $ac_count -gt ${ac_path_SED_max-0}; then
4154 # Best one so far, save it but keep looking for a better one
4155 ac_cv_path_SED="$ac_path_SED"
4156 ac_path_SED_max=$ac_count
4157 fi
4158 # 10*(2^10) chars as input seems more than enough
4159 test $ac_count -gt 10 && break
4160 done
4161 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4162 esac
4163
4164 $ac_path_SED_found && break 3
4165 done
4166 done
4167 done
4168 IFS=$as_save_IFS
4169 if test -z "$ac_cv_path_SED"; then
4170 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4171 fi
4172 else
4173 ac_cv_path_SED=$SED
4174 fi
4175
4176 fi
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4178 $as_echo "$ac_cv_path_SED" >&6; }
4179 SED="$ac_cv_path_SED"
4180 rm -f conftest.sed
4181
4182
4183
4184 case "$ac_install_sh" in
4185 ./*) ac_install_sh="`pwd`/${ac_install_sh}" ;;
4186 ../*) ac_install_sh="`pwd`/${ac_install_sh}" ;;
4187 esac
4188 case "$INSTALL" in
4189 ./*) INSTALL="`pwd`/${INSTALL}" ;;
4190 ../*) INSTALL="`pwd`/${INSTALL}" ;;
4191 esac
4192 case "$MKDIR_P" in
4193 ./*) MKDIR_P="`pwd`/${MKDIR_P}" ;;
4194 ../*) MKDIR_P="`pwd`/${MKDIR_P}" ;;
4195 esac
4196
4197 if test -n "$ac_tool_prefix"; then
4198 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4199 set dummy ${ac_tool_prefix}strip; ac_word=$2
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4201 $as_echo_n "checking for $ac_word... " >&6; }
4202 if ${ac_cv_prog_STRIP+:} false; then :
4203 $as_echo_n "(cached) " >&6
4204 else
4205 if test -n "$STRIP"; then
4206 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4207 else
4208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4209 for as_dir in $PATH
4210 do
4211 IFS=$as_save_IFS
4212 test -z "$as_dir" && as_dir=.
4213 for ac_exec_ext in '' $ac_executable_extensions; do
4214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4215 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4217 break 2
4218 fi
4219 done
4220 done
4221 IFS=$as_save_IFS
4222
4223 fi
4224 fi
4225 STRIP=$ac_cv_prog_STRIP
4226 if test -n "$STRIP"; then
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4228 $as_echo "$STRIP" >&6; }
4229 else
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4231 $as_echo "no" >&6; }
4232 fi
4233
4234
4235 fi
4236 if test -z "$ac_cv_prog_STRIP"; then
4237 ac_ct_STRIP=$STRIP
4238 # Extract the first word of "strip", so it can be a program name with args.
4239 set dummy strip; ac_word=$2
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4241 $as_echo_n "checking for $ac_word... " >&6; }
4242 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4243 $as_echo_n "(cached) " >&6
4244 else
4245 if test -n "$ac_ct_STRIP"; then
4246 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4247 else
4248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4249 for as_dir in $PATH
4250 do
4251 IFS=$as_save_IFS
4252 test -z "$as_dir" && as_dir=.
4253 for ac_exec_ext in '' $ac_executable_extensions; do
4254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4255 ac_cv_prog_ac_ct_STRIP="strip"
4256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4257 break 2
4258 fi
4259 done
4260 done
4261 IFS=$as_save_IFS
4262
4263 fi
4264 fi
4265 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4266 if test -n "$ac_ct_STRIP"; then
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4268 $as_echo "$ac_ct_STRIP" >&6; }
4269 else
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4271 $as_echo "no" >&6; }
4272 fi
4273
4274 if test "x$ac_ct_STRIP" = x; then
4275 STRIP=""
4276 else
4277 case $cross_compiling:$ac_tool_warned in
4278 yes:)
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4280 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4281 ac_tool_warned=yes ;;
4282 esac
4283 STRIP=$ac_ct_STRIP
4284 fi
4285 else
4286 STRIP="$ac_cv_prog_STRIP"
4287 fi
4288
4289 if test -n "$ac_tool_prefix"; then
4290 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4291 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4293 $as_echo_n "checking for $ac_word... " >&6; }
4294 if ${ac_cv_prog_RANLIB+:} false; then :
4295 $as_echo_n "(cached) " >&6
4296 else
4297 if test -n "$RANLIB"; then
4298 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4299 else
4300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4301 for as_dir in $PATH
4302 do
4303 IFS=$as_save_IFS
4304 test -z "$as_dir" && as_dir=.
4305 for ac_exec_ext in '' $ac_executable_extensions; do
4306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4307 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4309 break 2
4310 fi
4311 done
4312 done
4313 IFS=$as_save_IFS
4314
4315 fi
4316 fi
4317 RANLIB=$ac_cv_prog_RANLIB
4318 if test -n "$RANLIB"; then
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4320 $as_echo "$RANLIB" >&6; }
4321 else
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4323 $as_echo "no" >&6; }
4324 fi
4325
4326
4327 fi
4328 if test -z "$ac_cv_prog_RANLIB"; then
4329 ac_ct_RANLIB=$RANLIB
4330 # Extract the first word of "ranlib", so it can be a program name with args.
4331 set dummy ranlib; ac_word=$2
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4333 $as_echo_n "checking for $ac_word... " >&6; }
4334 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4335 $as_echo_n "(cached) " >&6
4336 else
4337 if test -n "$ac_ct_RANLIB"; then
4338 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4339 else
4340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4341 for as_dir in $PATH
4342 do
4343 IFS=$as_save_IFS
4344 test -z "$as_dir" && as_dir=.
4345 for ac_exec_ext in '' $ac_executable_extensions; do
4346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4347 ac_cv_prog_ac_ct_RANLIB="ranlib"
4348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4349 break 2
4350 fi
4351 done
4352 done
4353 IFS=$as_save_IFS
4354
4355 fi
4356 fi
4357 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4358 if test -n "$ac_ct_RANLIB"; then
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4360 $as_echo "$ac_ct_RANLIB" >&6; }
4361 else
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4363 $as_echo "no" >&6; }
4364 fi
4365
4366 if test "x$ac_ct_RANLIB" = x; then
4367 RANLIB="true"
4368 else
4369 case $cross_compiling:$ac_tool_warned in
4370 yes:)
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4372 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4373 ac_tool_warned=yes ;;
4374 esac
4375 RANLIB=$ac_ct_RANLIB
4376 fi
4377 else
4378 RANLIB="$ac_cv_prog_RANLIB"
4379 fi
4380
4381 if test -n "$ac_tool_prefix"; then
4382 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4383 set dummy ${ac_tool_prefix}ar; ac_word=$2
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4385 $as_echo_n "checking for $ac_word... " >&6; }
4386 if ${ac_cv_prog_AR+:} false; then :
4387 $as_echo_n "(cached) " >&6
4388 else
4389 if test -n "$AR"; then
4390 ac_cv_prog_AR="$AR" # Let the user override the test.
4391 else
4392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4393 for as_dir in $PATH
4394 do
4395 IFS=$as_save_IFS
4396 test -z "$as_dir" && as_dir=.
4397 for ac_exec_ext in '' $ac_executable_extensions; do
4398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4399 ac_cv_prog_AR="${ac_tool_prefix}ar"
4400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4401 break 2
4402 fi
4403 done
4404 done
4405 IFS=$as_save_IFS
4406
4407 fi
4408 fi
4409 AR=$ac_cv_prog_AR
4410 if test -n "$AR"; then
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4412 $as_echo "$AR" >&6; }
4413 else
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4415 $as_echo "no" >&6; }
4416 fi
4417
4418
4419 fi
4420 if test -z "$ac_cv_prog_AR"; then
4421 ac_ct_AR=$AR
4422 # Extract the first word of "ar", so it can be a program name with args.
4423 set dummy ar; ac_word=$2
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4425 $as_echo_n "checking for $ac_word... " >&6; }
4426 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4427 $as_echo_n "(cached) " >&6
4428 else
4429 if test -n "$ac_ct_AR"; then
4430 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4431 else
4432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4433 for as_dir in $PATH
4434 do
4435 IFS=$as_save_IFS
4436 test -z "$as_dir" && as_dir=.
4437 for ac_exec_ext in '' $ac_executable_extensions; do
4438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4439 ac_cv_prog_ac_ct_AR="ar"
4440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4441 break 2
4442 fi
4443 done
4444 done
4445 IFS=$as_save_IFS
4446
4447 fi
4448 fi
4449 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4450 if test -n "$ac_ct_AR"; then
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4452 $as_echo "$ac_ct_AR" >&6; }
4453 else
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4455 $as_echo "no" >&6; }
4456 fi
4457
4458 if test "x$ac_ct_AR" = x; then
4459 AR=""
4460 else
4461 case $cross_compiling:$ac_tool_warned in
4462 yes:)
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4464 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4465 ac_tool_warned=yes ;;
4466 esac
4467 AR=$ac_ct_AR
4468 fi
4469 else
4470 AR="$ac_cv_prog_AR"
4471 fi
4472
4473 ARFLAGS=rcu
4474
4475
4476
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4478 $as_echo_n "checking for ANSI C header files... " >&6; }
4479 if ${ac_cv_header_stdc+:} false; then :
4480 $as_echo_n "(cached) " >&6
4481 else
4482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4483 /* end confdefs.h. */
4484 #include <stdlib.h>
4485 #include <stdarg.h>
4486 #include <string.h>
4487 #include <float.h>
4488
4489 int
4490 main ()
4491 {
4492
4493 ;
4494 return 0;
4495 }
4496 _ACEOF
4497 if ac_fn_c_try_compile "$LINENO"; then :
4498 ac_cv_header_stdc=yes
4499 else
4500 ac_cv_header_stdc=no
4501 fi
4502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4503
4504 if test $ac_cv_header_stdc = yes; then
4505 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4507 /* end confdefs.h. */
4508 #include <string.h>
4509
4510 _ACEOF
4511 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4512 $EGREP "memchr" >/dev/null 2>&1; then :
4513
4514 else
4515 ac_cv_header_stdc=no
4516 fi
4517 rm -f conftest*
4518
4519 fi
4520
4521 if test $ac_cv_header_stdc = yes; then
4522 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4524 /* end confdefs.h. */
4525 #include <stdlib.h>
4526
4527 _ACEOF
4528 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4529 $EGREP "free" >/dev/null 2>&1; then :
4530
4531 else
4532 ac_cv_header_stdc=no
4533 fi
4534 rm -f conftest*
4535
4536 fi
4537
4538 if test $ac_cv_header_stdc = yes; then
4539 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4540 if test "$cross_compiling" = yes; then :
4541 :
4542 else
4543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4544 /* end confdefs.h. */
4545 #include <ctype.h>
4546 #include <stdlib.h>
4547 #if ((' ' & 0x0FF) == 0x020)
4548 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4549 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4550 #else
4551 # define ISLOWER(c) \
4552 (('a' <= (c) && (c) <= 'i') \
4553 || ('j' <= (c) && (c) <= 'r') \
4554 || ('s' <= (c) && (c) <= 'z'))
4555 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4556 #endif
4557
4558 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4559 int
4560 main ()
4561 {
4562 int i;
4563 for (i = 0; i < 256; i++)
4564 if (XOR (islower (i), ISLOWER (i))
4565 || toupper (i) != TOUPPER (i))
4566 return 2;
4567 return 0;
4568 }
4569 _ACEOF
4570 if ac_fn_c_try_run "$LINENO"; then :
4571
4572 else
4573 ac_cv_header_stdc=no
4574 fi
4575 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4576 conftest.$ac_objext conftest.beam conftest.$ac_ext
4577 fi
4578
4579 fi
4580 fi
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4582 $as_echo "$ac_cv_header_stdc" >&6; }
4583 if test $ac_cv_header_stdc = yes; then
4584
4585 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4586
4587 fi
4588
4589 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4590 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4591 inttypes.h stdint.h unistd.h
4592 do :
4593 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4594 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4595 "
4596 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4597 cat >>confdefs.h <<_ACEOF
4598 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4599 _ACEOF
4600
4601 fi
4602
4603 done
4604
4605
4606
4607 for ac_header in inttypes.h stdbool.h unistd.h sys/time.h
4608 do :
4609 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4610 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4611 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4612 cat >>confdefs.h <<_ACEOF
4613 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4614 _ACEOF
4615
4616 fi
4617
4618 done
4619
4620 for ac_header in sys/socket.h poll.h sys/un.h
4621 do :
4622 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4623 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4624 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4625 cat >>confdefs.h <<_ACEOF
4626 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4627 _ACEOF
4628
4629 fi
4630
4631 done
4632
4633 for ac_header in arpa/inet.h netinet/in.h netinet/tcp.h
4634 do :
4635 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4636 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4637 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4638 cat >>confdefs.h <<_ACEOF
4639 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4640 _ACEOF
4641
4642 fi
4643
4644 done
4645
4646 for ac_header in sys/param.h sys/uio.h pwd.h grp.h
4647 do :
4648 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4649 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4650 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4651 cat >>confdefs.h <<_ACEOF
4652 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4653 _ACEOF
4654
4655 fi
4656
4657 done
4658
4659 for ac_header in sys/wait.h sys/mman.h syslog.h netdb.h dlfcn.h
4660 do :
4661 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4662 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4663 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4664 cat >>confdefs.h <<_ACEOF
4665 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4666 _ACEOF
4667
4668 fi
4669
4670 done
4671
4672 for ac_header in err.h pthread.h endian.h sys/endian.h byteswap.h
4673 do :
4674 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4675 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4676 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4677 cat >>confdefs.h <<_ACEOF
4678 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4679 _ACEOF
4680
4681 fi
4682
4683 done
4684
4685 for ac_header in malloc.h regex.h getopt.h fnmatch.h
4686 do :
4687 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4688 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4689 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4690 cat >>confdefs.h <<_ACEOF
4691 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4692 _ACEOF
4693
4694 fi
4695
4696 done
4697
4698 for ac_header in langinfo.h xlocale.h linux/random.h
4699 do :
4700 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4701 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4702 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4703 cat >>confdefs.h <<_ACEOF
4704 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4705 _ACEOF
4706
4707 fi
4708
4709 done
4710
4711 for ac_header in ucred.h sys/ucred.h
4712 do :
4713 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4714 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
4715 #ifdef HAVE_SYS_TYPES_H
4716 #include <sys/types.h>
4717 #endif
4718 #ifdef HAVE_SYS_PARAM_H
4719 #include <sys/param.h>
4720 #endif
4721
4722 "
4723 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4724 cat >>confdefs.h <<_ACEOF
4725 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4726 _ACEOF
4727
4728 fi
4729
4730 done
4731
4732
4733
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4735 $as_echo_n "checking for inline... " >&6; }
4736 if ${ac_cv_c_inline+:} false; then :
4737 $as_echo_n "(cached) " >&6
4738 else
4739 ac_cv_c_inline=no
4740 for ac_kw in inline __inline__ __inline; do
4741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4742 /* end confdefs.h. */
4743 #ifndef __cplusplus
4744 typedef int foo_t;
4745 static $ac_kw foo_t static_foo () {return 0; }
4746 $ac_kw foo_t foo () {return 0; }
4747 #endif
4748
4749 _ACEOF
4750 if ac_fn_c_try_compile "$LINENO"; then :
4751 ac_cv_c_inline=$ac_kw
4752 fi
4753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4754 test "$ac_cv_c_inline" != no && break
4755 done
4756
4757 fi
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4759 $as_echo "$ac_cv_c_inline" >&6; }
4760
4761 case $ac_cv_c_inline in
4762 inline | yes) ;;
4763 *)
4764 case $ac_cv_c_inline in
4765 no) ac_val=;;
4766 *) ac_val=$ac_cv_c_inline;;
4767 esac
4768 cat >>confdefs.h <<_ACEOF
4769 #ifndef __cplusplus
4770 #define inline $ac_val
4771 #endif
4772 _ACEOF
4773 ;;
4774 esac
4775
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
4777 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
4778 if ${ac_cv_c_restrict+:} false; then :
4779 $as_echo_n "(cached) " >&6
4780 else
4781 ac_cv_c_restrict=no
4782 # The order here caters to the fact that C++ does not require restrict.
4783 for ac_kw in __restrict __restrict__ _Restrict restrict; do
4784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4785 /* end confdefs.h. */
4786 typedef int * int_ptr;
4787 int foo (int_ptr $ac_kw ip) {
4788 return ip[0];
4789 }
4790 int
4791 main ()
4792 {
4793 int s[1];
4794 int * $ac_kw t = s;
4795 t[0] = 0;
4796 return foo(t)
4797 ;
4798 return 0;
4799 }
4800 _ACEOF
4801 if ac_fn_c_try_compile "$LINENO"; then :
4802 ac_cv_c_restrict=$ac_kw
4803 fi
4804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4805 test "$ac_cv_c_restrict" != no && break
4806 done
4807
4808 fi
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
4810 $as_echo "$ac_cv_c_restrict" >&6; }
4811
4812 case $ac_cv_c_restrict in
4813 restrict) ;;
4814 no) $as_echo "#define restrict /**/" >>confdefs.h
4815 ;;
4816 *) cat >>confdefs.h <<_ACEOF
4817 #define restrict $ac_cv_c_restrict
4818 _ACEOF
4819 ;;
4820 esac
4821
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4823 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4824 if ${ac_cv_c_bigendian+:} false; then :
4825 $as_echo_n "(cached) " >&6
4826 else
4827 ac_cv_c_bigendian=unknown
4828 # See if we're dealing with a universal compiler.
4829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4830 /* end confdefs.h. */
4831 #ifndef __APPLE_CC__
4832 not a universal capable compiler
4833 #endif
4834 typedef int dummy;
4835
4836 _ACEOF
4837 if ac_fn_c_try_compile "$LINENO"; then :
4838
4839 # Check for potential -arch flags. It is not universal unless
4840 # there are at least two -arch flags with different values.
4841 ac_arch=
4842 ac_prev=
4843 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4844 if test -n "$ac_prev"; then
4845 case $ac_word in
4846 i?86 | x86_64 | ppc | ppc64)
4847 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4848 ac_arch=$ac_word
4849 else
4850 ac_cv_c_bigendian=universal
4851 break
4852 fi
4853 ;;
4854 esac
4855 ac_prev=
4856 elif test "x$ac_word" = "x-arch"; then
4857 ac_prev=arch
4858 fi
4859 done
4860 fi
4861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4862 if test $ac_cv_c_bigendian = unknown; then
4863 # See if sys/param.h defines the BYTE_ORDER macro.
4864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4865 /* end confdefs.h. */
4866 #include <sys/types.h>
4867 #include <sys/param.h>
4868
4869 int
4870 main ()
4871 {
4872 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4873 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4874 && LITTLE_ENDIAN)
4875 bogus endian macros
4876 #endif
4877
4878 ;
4879 return 0;
4880 }
4881 _ACEOF
4882 if ac_fn_c_try_compile "$LINENO"; then :
4883 # It does; now see whether it defined to BIG_ENDIAN or not.
4884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4885 /* end confdefs.h. */
4886 #include <sys/types.h>
4887 #include <sys/param.h>
4888
4889 int
4890 main ()
4891 {
4892 #if BYTE_ORDER != BIG_ENDIAN
4893 not big endian
4894 #endif
4895
4896 ;
4897 return 0;
4898 }
4899 _ACEOF
4900 if ac_fn_c_try_compile "$LINENO"; then :
4901 ac_cv_c_bigendian=yes
4902 else
4903 ac_cv_c_bigendian=no
4904 fi
4905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4906 fi
4907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4908 fi
4909 if test $ac_cv_c_bigendian = unknown; then
4910 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4912 /* end confdefs.h. */
4913 #include <limits.h>
4914
4915 int
4916 main ()
4917 {
4918 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4919 bogus endian macros
4920 #endif
4921
4922 ;
4923 return 0;
4924 }
4925 _ACEOF
4926 if ac_fn_c_try_compile "$LINENO"; then :
4927 # It does; now see whether it defined to _BIG_ENDIAN or not.
4928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4929 /* end confdefs.h. */
4930 #include <limits.h>
4931
4932 int
4933 main ()
4934 {
4935 #ifndef _BIG_ENDIAN
4936 not big endian
4937 #endif
4938
4939 ;
4940 return 0;
4941 }
4942 _ACEOF
4943 if ac_fn_c_try_compile "$LINENO"; then :
4944 ac_cv_c_bigendian=yes
4945 else
4946 ac_cv_c_bigendian=no
4947 fi
4948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4949 fi
4950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4951 fi
4952 if test $ac_cv_c_bigendian = unknown; then
4953 # Compile a test program.
4954 if test "$cross_compiling" = yes; then :
4955 # Try to guess by grepping values from an object file.
4956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4957 /* end confdefs.h. */
4958 short int ascii_mm[] =
4959 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4960 short int ascii_ii[] =
4961 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4962 int use_ascii (int i) {
4963 return ascii_mm[i] + ascii_ii[i];
4964 }
4965 short int ebcdic_ii[] =
4966 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4967 short int ebcdic_mm[] =
4968 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4969 int use_ebcdic (int i) {
4970 return ebcdic_mm[i] + ebcdic_ii[i];
4971 }
4972 extern int foo;
4973
4974 int
4975 main ()
4976 {
4977 return use_ascii (foo) == use_ebcdic (foo);
4978 ;
4979 return 0;
4980 }
4981 _ACEOF
4982 if ac_fn_c_try_compile "$LINENO"; then :
4983 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4984 ac_cv_c_bigendian=yes
4985 fi
4986 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4987 if test "$ac_cv_c_bigendian" = unknown; then
4988 ac_cv_c_bigendian=no
4989 else
4990 # finding both strings is unlikely to happen, but who knows?
4991 ac_cv_c_bigendian=unknown
4992 fi
4993 fi
4994 fi
4995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4996 else
4997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4998 /* end confdefs.h. */
4999 $ac_includes_default
5000 int
5001 main ()
5002 {
5003
5004 /* Are we little or big endian? From Harbison&Steele. */
5005 union
5006 {
5007 long int l;
5008 char c[sizeof (long int)];
5009 } u;
5010 u.l = 1;
5011 return u.c[sizeof (long int) - 1] == 1;
5012
5013 ;
5014 return 0;
5015 }
5016 _ACEOF
5017 if ac_fn_c_try_run "$LINENO"; then :
5018 ac_cv_c_bigendian=no
5019 else
5020 ac_cv_c_bigendian=yes
5021 fi
5022 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5023 conftest.$ac_objext conftest.beam conftest.$ac_ext
5024 fi
5025
5026 fi
5027 fi
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5029 $as_echo "$ac_cv_c_bigendian" >&6; }
5030 case $ac_cv_c_bigendian in #(
5031 yes)
5032 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5033 ;; #(
5034 no)
5035 ;; #(
5036 universal)
5037
5038 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5039
5040 ;; #(
5041 *)
5042 as_fn_error $? "unknown endianness
5043 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5044 esac
5045
5046 # Check whether --enable-largefile was given.
5047 if test "${enable_largefile+set}" = set; then :
5048 enableval=$enable_largefile;
5049 fi
5050
5051 if test "$enable_largefile" != no; then
5052
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5054 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5055 if ${ac_cv_sys_largefile_CC+:} false; then :
5056 $as_echo_n "(cached) " >&6
5057 else
5058 ac_cv_sys_largefile_CC=no
5059 if test "$GCC" != yes; then
5060 ac_save_CC=$CC
5061 while :; do
5062 # IRIX 6.2 and later do not support large files by default,
5063 # so use the C compiler's -n32 option if that helps.
5064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5065 /* end confdefs.h. */
5066 #include <sys/types.h>
5067 /* Check that off_t can represent 2**63 - 1 correctly.
5068 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5069 since some C++ compilers masquerading as C compilers
5070 incorrectly reject 9223372036854775807. */
5071 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
5072 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5073 && LARGE_OFF_T % 2147483647 == 1)
5074 ? 1 : -1];
5075 int
5076 main ()
5077 {
5078
5079 ;
5080 return 0;
5081 }
5082 _ACEOF
5083 if ac_fn_c_try_compile "$LINENO"; then :
5084 break
5085 fi
5086 rm -f core conftest.err conftest.$ac_objext
5087 CC="$CC -n32"
5088 if ac_fn_c_try_compile "$LINENO"; then :
5089 ac_cv_sys_largefile_CC=' -n32'; break
5090 fi
5091 rm -f core conftest.err conftest.$ac_objext
5092 break
5093 done
5094 CC=$ac_save_CC
5095 rm -f conftest.$ac_ext
5096 fi
5097 fi
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5099 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5100 if test "$ac_cv_sys_largefile_CC" != no; then
5101 CC=$CC$ac_cv_sys_largefile_CC
5102 fi
5103
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5105 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5106 if ${ac_cv_sys_file_offset_bits+:} false; then :
5107 $as_echo_n "(cached) " >&6
5108 else
5109 while :; do
5110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5111 /* end confdefs.h. */
5112 #include <sys/types.h>
5113 /* Check that off_t can represent 2**63 - 1 correctly.
5114 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5115 since some C++ compilers masquerading as C compilers
5116 incorrectly reject 9223372036854775807. */
5117 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
5118 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5119 && LARGE_OFF_T % 2147483647 == 1)
5120 ? 1 : -1];
5121 int
5122 main ()
5123 {
5124
5125 ;
5126 return 0;
5127 }
5128 _ACEOF
5129 if ac_fn_c_try_compile "$LINENO"; then :
5130 ac_cv_sys_file_offset_bits=no; break
5131 fi
5132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5134 /* end confdefs.h. */
5135 #define _FILE_OFFSET_BITS 64
5136 #include <sys/types.h>
5137 /* Check that off_t can represent 2**63 - 1 correctly.
5138 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5139 since some C++ compilers masquerading as C compilers
5140 incorrectly reject 9223372036854775807. */
5141 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
5142 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5143 && LARGE_OFF_T % 2147483647 == 1)
5144 ? 1 : -1];
5145 int
5146 main ()
5147 {
5148
5149 ;
5150 return 0;
5151 }
5152 _ACEOF
5153 if ac_fn_c_try_compile "$LINENO"; then :
5154 ac_cv_sys_file_offset_bits=64; break
5155 fi
5156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5157 ac_cv_sys_file_offset_bits=unknown
5158 break
5159 done
5160 fi
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5162 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5163 case $ac_cv_sys_file_offset_bits in #(
5164 no | unknown) ;;
5165 *)
5166 cat >>confdefs.h <<_ACEOF
5167 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5168 _ACEOF
5169 ;;
5170 esac
5171 rm -rf conftest*
5172 if test $ac_cv_sys_file_offset_bits = unknown; then
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5174 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5175 if ${ac_cv_sys_large_files+:} false; then :
5176 $as_echo_n "(cached) " >&6
5177 else
5178 while :; do
5179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5180 /* end confdefs.h. */
5181 #include <sys/types.h>
5182 /* Check that off_t can represent 2**63 - 1 correctly.
5183 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5184 since some C++ compilers masquerading as C compilers
5185 incorrectly reject 9223372036854775807. */
5186 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
5187 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5188 && LARGE_OFF_T % 2147483647 == 1)
5189 ? 1 : -1];
5190 int
5191 main ()
5192 {
5193
5194 ;
5195 return 0;
5196 }
5197 _ACEOF
5198 if ac_fn_c_try_compile "$LINENO"; then :
5199 ac_cv_sys_large_files=no; break
5200 fi
5201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5203 /* end confdefs.h. */
5204 #define _LARGE_FILES 1
5205 #include <sys/types.h>
5206 /* Check that off_t can represent 2**63 - 1 correctly.
5207 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5208 since some C++ compilers masquerading as C compilers
5209 incorrectly reject 9223372036854775807. */
5210 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
5211 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5212 && LARGE_OFF_T % 2147483647 == 1)
5213 ? 1 : -1];
5214 int
5215 main ()
5216 {
5217
5218 ;
5219 return 0;
5220 }
5221 _ACEOF
5222 if ac_fn_c_try_compile "$LINENO"; then :
5223 ac_cv_sys_large_files=1; break
5224 fi
5225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5226 ac_cv_sys_large_files=unknown
5227 break
5228 done
5229 fi
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5231 $as_echo "$ac_cv_sys_large_files" >&6; }
5232 case $ac_cv_sys_large_files in #(
5233 no | unknown) ;;
5234 *)
5235 cat >>confdefs.h <<_ACEOF
5236 #define _LARGE_FILES $ac_cv_sys_large_files
5237 _ACEOF
5238 ;;
5239 esac
5240 rm -rf conftest*
5241 fi
5242
5243
5244 fi
5245
5246 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5247 if test "x$ac_cv_type_pid_t" = xyes; then :
5248
5249 else
5250
5251 cat >>confdefs.h <<_ACEOF
5252 #define pid_t int
5253 _ACEOF
5254
5255 fi
5256
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5258 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5259 if ${ac_cv_type_uid_t+:} false; then :
5260 $as_echo_n "(cached) " >&6
5261 else
5262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5263 /* end confdefs.h. */
5264 #include <sys/types.h>
5265
5266 _ACEOF
5267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5268 $EGREP "uid_t" >/dev/null 2>&1; then :
5269 ac_cv_type_uid_t=yes
5270 else
5271 ac_cv_type_uid_t=no
5272 fi
5273 rm -f conftest*
5274
5275 fi
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5277 $as_echo "$ac_cv_type_uid_t" >&6; }
5278 if test $ac_cv_type_uid_t = no; then
5279
5280 $as_echo "#define uid_t int" >>confdefs.h
5281
5282
5283 $as_echo "#define gid_t int" >>confdefs.h
5284
5285 fi
5286
5287 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5288 if test "x$ac_cv_type_size_t" = xyes; then :
5289
5290 else
5291
5292 cat >>confdefs.h <<_ACEOF
5293 #define size_t unsigned int
5294 _ACEOF
5295
5296 fi
5297
5298
5299
5300 ### Functions provided if missing
5301 for ac_func in strlcpy strlcat strnlen strsep getpeereid sigaction sigqueue
5302 do :
5303 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5304 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5305 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5306 cat >>confdefs.h <<_ACEOF
5307 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5308 _ACEOF
5309
5310 fi
5311 done
5312
5313 for ac_func in memmem memrchr mempcpy
5314 do :
5315 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5316 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5317 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5318 cat >>confdefs.h <<_ACEOF
5319 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5320 _ACEOF
5321
5322 fi
5323 done
5324
5325 for ac_func in inet_ntop inet_pton poll getline regcomp
5326 do :
5327 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5328 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5329 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5330 cat >>confdefs.h <<_ACEOF
5331 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5332 _ACEOF
5333
5334 fi
5335 done
5336
5337 for ac_func in err errx warn warnx getprogname setprogname
5338 do :
5339 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5340 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5341 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5342 cat >>confdefs.h <<_ACEOF
5343 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5344 _ACEOF
5345
5346 fi
5347 done
5348
5349 for ac_func in posix_memalign memalign valloc explicit_bzero memset_s reallocarray
5350 do :
5351 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5352 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5353 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5354 cat >>confdefs.h <<_ACEOF
5355 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5356 _ACEOF
5357
5358 fi
5359 done
5360
5361 for ac_func in getopt getopt_long getopt_long_only
5362 do :
5363 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5364 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5365 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5366 cat >>confdefs.h <<_ACEOF
5367 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5368 _ACEOF
5369
5370 fi
5371 done
5372
5373 for ac_func in fls flsl flsll ffs ffsl ffsll
5374 do :
5375 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5376 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5377 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5378 cat >>confdefs.h <<_ACEOF
5379 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5380 _ACEOF
5381
5382 fi
5383 done
5384
5385 for ac_func in fnmatch mbsnrtowcs nl_langinfo strtod_l strtonum
5386 do :
5387 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5388 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5389 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5390 cat >>confdefs.h <<_ACEOF
5391 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5392 _ACEOF
5393
5394 fi
5395 done
5396
5397 for ac_func in asprintf vasprintf timegm
5398 do :
5399 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5400 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5401 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5402 cat >>confdefs.h <<_ACEOF
5403 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5404 _ACEOF
5405
5406 fi
5407 done
5408
5409 ### Functions provided only on win32
5410 for ac_func in localtime_r gettimeofday recvmsg sendmsg usleep getrusage
5411 do :
5412 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5413 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5414 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5415 cat >>confdefs.h <<_ACEOF
5416 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5417 _ACEOF
5418
5419 fi
5420 done
5421
5422 ### Functions used by libusual itself
5423 for ac_func in syslog mmap getpeerucred arc4random_buf getentropy getrandom
5424 do :
5425 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5426 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5427 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5428 cat >>confdefs.h <<_ACEOF
5429 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5430 _ACEOF
5431
5432 fi
5433 done
5434
5435 ### win32: link with ws2_32
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing WSAGetLastError" >&5
5437 $as_echo_n "checking for library containing WSAGetLastError... " >&6; }
5438 if ${ac_cv_search_WSAGetLastError+:} false; then :
5439 $as_echo_n "(cached) " >&6
5440 else
5441 ac_func_search_save_LIBS=$LIBS
5442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5443 /* end confdefs.h. */
5444
5445 /* Override any GCC internal prototype to avoid an error.
5446 Use char because int might match the return type of a GCC
5447 builtin and then its argument prototype would still apply. */
5448 #ifdef __cplusplus
5449 extern "C"
5450 #endif
5451 char WSAGetLastError ();
5452 int
5453 main ()
5454 {
5455 return WSAGetLastError ();
5456 ;
5457 return 0;
5458 }
5459 _ACEOF
5460 for ac_lib in '' ws2_32; do
5461 if test -z "$ac_lib"; then
5462 ac_res="none required"
5463 else
5464 ac_res=-l$ac_lib
5465 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5466 fi
5467 if ac_fn_c_try_link "$LINENO"; then :
5468 ac_cv_search_WSAGetLastError=$ac_res
5469 fi
5470 rm -f core conftest.err conftest.$ac_objext \
5471 conftest$ac_exeext
5472 if ${ac_cv_search_WSAGetLastError+:} false; then :
5473 break
5474 fi
5475 done
5476 if ${ac_cv_search_WSAGetLastError+:} false; then :
5477
5478 else
5479 ac_cv_search_WSAGetLastError=no
5480 fi
5481 rm conftest.$ac_ext
5482 LIBS=$ac_func_search_save_LIBS
5483 fi
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_WSAGetLastError" >&5
5485 $as_echo "$ac_cv_search_WSAGetLastError" >&6; }
5486 ac_res=$ac_cv_search_WSAGetLastError
5487 if test "$ac_res" != no; then :
5488 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5489
5490 fi
5491
5492 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
5493 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
5494 ac_have_decl=1
5495 else
5496 ac_have_decl=0
5497 fi
5498
5499 cat >>confdefs.h <<_ACEOF
5500 #define HAVE_DECL_STRERROR_R $ac_have_decl
5501 _ACEOF
5502
5503 for ac_func in strerror_r
5504 do :
5505 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
5506 if test "x$ac_cv_func_strerror_r" = xyes; then :
5507 cat >>confdefs.h <<_ACEOF
5508 #define HAVE_STRERROR_R 1
5509 _ACEOF
5510
5511 fi
5512 done
5513
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
5515 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
5516 if ${ac_cv_func_strerror_r_char_p+:} false; then :
5517 $as_echo_n "(cached) " >&6
5518 else
5519
5520 ac_cv_func_strerror_r_char_p=no
5521 if test $ac_cv_have_decl_strerror_r = yes; then
5522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5523 /* end confdefs.h. */
5524 $ac_includes_default
5525 int
5526 main ()
5527 {
5528
5529 char buf[100];
5530 char x = *strerror_r (0, buf, sizeof buf);
5531 char *p = strerror_r (0, buf, sizeof buf);
5532 return !p || x;
5533
5534 ;
5535 return 0;
5536 }
5537 _ACEOF
5538 if ac_fn_c_try_compile "$LINENO"; then :
5539 ac_cv_func_strerror_r_char_p=yes
5540 fi
5541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5542 else
5543 # strerror_r is not declared. Choose between
5544 # systems that have relatively inaccessible declarations for the
5545 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
5546 # former has a strerror_r that returns char*, while the latter
5547 # has a strerror_r that returns `int'.
5548 # This test should segfault on the DEC system.
5549 if test "$cross_compiling" = yes; then :
5550 :
5551 else
5552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5553 /* end confdefs.h. */
5554 $ac_includes_default
5555 extern char *strerror_r ();
5556 int
5557 main ()
5558 {
5559 char buf[100];
5560 char x = *strerror_r (0, buf, sizeof buf);
5561 return ! isalpha (x);
5562 ;
5563 return 0;
5564 }
5565 _ACEOF
5566 if ac_fn_c_try_run "$LINENO"; then :
5567 ac_cv_func_strerror_r_char_p=yes
5568 fi
5569 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5570 conftest.$ac_objext conftest.beam conftest.$ac_ext
5571 fi
5572
5573 fi
5574
5575 fi
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
5577 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
5578 if test $ac_cv_func_strerror_r_char_p = yes; then
5579
5580 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
5581
5582 fi
5583
5584 ###
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for integer enc/dec functions" >&5
5586 $as_echo_n "checking for integer enc/dec functions... " >&6; }
5587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5588 /* end confdefs.h. */
5589
5590 #include <sys/types.h>
5591 #ifdef HAVE_SYS_ENDIAN_H
5592 #include <sys/endian.h>
5593 #endif
5594 #ifdef HAVE_ENDIAN_H
5595 #include <endian.h>
5596 #endif
5597 char p[] = "01234567";
5598 int main(void) {
5599 be16enc(p, 0); be32enc(p, 1); be64enc(p, 2);
5600 le16enc(p, 2); le32enc(p, 3); le64enc(p, 4);
5601 return (int)(be16dec(p) + be32dec(p) + be64dec(p)) +
5602 (int)(le16dec(p) + le32dec(p) + le64dec(p));
5603 }
5604 _ACEOF
5605 if ac_fn_c_try_link "$LINENO"; then :
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
5607 $as_echo "found" >&6; }
5608
5609 $as_echo "#define HAVE_ENCDEC_FUNCS 1" >>confdefs.h
5610
5611 else
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5613 $as_echo "not found" >&6; }
5614 fi
5615 rm -f core conftest.err conftest.$ac_objext \
5616 conftest$ac_exeext conftest.$ac_ext
5617
5618
5619
5620 for ac_func in unsetenv
5621 do :
5622 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
5623 if test "x$ac_cv_func_unsetenv" = xyes; then :
5624 cat >>confdefs.h <<_ACEOF
5625 #define HAVE_UNSETENV 1
5626 _ACEOF
5627
5628 fi
5629 done
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5640 if test -n "$ac_tool_prefix"; then
5641 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5642 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5644 $as_echo_n "checking for $ac_word... " >&6; }
5645 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5646 $as_echo_n "(cached) " >&6
5647 else
5648 case $PKG_CONFIG in
5649 [\\/]* | ?:[\\/]*)
5650 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5651 ;;
5652 *)
5653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5654 for as_dir in $PATH
5655 do
5656 IFS=$as_save_IFS
5657 test -z "$as_dir" && as_dir=.
5658 for ac_exec_ext in '' $ac_executable_extensions; do
5659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5660 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5662 break 2
5663 fi
5664 done
5665 done
5666 IFS=$as_save_IFS
5667
5668 ;;
5669 esac
5670 fi
5671 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5672 if test -n "$PKG_CONFIG"; then
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5674 $as_echo "$PKG_CONFIG" >&6; }
5675 else
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5677 $as_echo "no" >&6; }
5678 fi
5679
5680
5681 fi
5682 if test -z "$ac_cv_path_PKG_CONFIG"; then
5683 ac_pt_PKG_CONFIG=$PKG_CONFIG
5684 # Extract the first word of "pkg-config", so it can be a program name with args.
5685 set dummy pkg-config; ac_word=$2
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5687 $as_echo_n "checking for $ac_word... " >&6; }
5688 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5689 $as_echo_n "(cached) " >&6
5690 else
5691 case $ac_pt_PKG_CONFIG in
5692 [\\/]* | ?:[\\/]*)
5693 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5694 ;;
5695 *)
5696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5697 for as_dir in $PATH
5698 do
5699 IFS=$as_save_IFS
5700 test -z "$as_dir" && as_dir=.
5701 for ac_exec_ext in '' $ac_executable_extensions; do
5702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5703 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5705 break 2
5706 fi
5707 done
5708 done
5709 IFS=$as_save_IFS
5710
5711 ;;
5712 esac
5713 fi
5714 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5715 if test -n "$ac_pt_PKG_CONFIG"; then
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5717 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5718 else
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5720 $as_echo "no" >&6; }
5721 fi
5722
5723 if test "x$ac_pt_PKG_CONFIG" = x; then
5724 PKG_CONFIG=""
5725 else
5726 case $cross_compiling:$ac_tool_warned in
5727 yes:)
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5729 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5730 ac_tool_warned=yes ;;
5731 esac
5732 PKG_CONFIG=$ac_pt_PKG_CONFIG
5733 fi
5734 else
5735 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5736 fi
5737
5738 fi
5739 if test -n "$PKG_CONFIG"; then
5740 _pkg_min_version=0.9.0
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5742 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5743 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5745 $as_echo "yes" >&6; }
5746 else
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5748 $as_echo "no" >&6; }
5749 PKG_CONFIG=""
5750 fi
5751 fi
5752
5753 pkg_failed=no
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBEVENT" >&5
5755 $as_echo_n "checking for LIBEVENT... " >&6; }
5756
5757 if test -n "$LIBEVENT_CFLAGS"; then
5758 pkg_cv_LIBEVENT_CFLAGS="$LIBEVENT_CFLAGS"
5759 elif test -n "$PKG_CONFIG"; then
5760 if test -n "$PKG_CONFIG" && \
5761 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libevent >= 2.0\""; } >&5
5762 ($PKG_CONFIG --exists --print-errors "libevent >= 2.0") 2>&5
5763 ac_status=$?
5764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5765 test $ac_status = 0; }; then
5766 pkg_cv_LIBEVENT_CFLAGS=`$PKG_CONFIG --cflags "libevent >= 2.0" 2>/dev/null`
5767 test "x$?" != "x0" && pkg_failed=yes
5768 else
5769 pkg_failed=yes
5770 fi
5771 else
5772 pkg_failed=untried
5773 fi
5774 if test -n "$LIBEVENT_LIBS"; then
5775 pkg_cv_LIBEVENT_LIBS="$LIBEVENT_LIBS"
5776 elif test -n "$PKG_CONFIG"; then
5777 if test -n "$PKG_CONFIG" && \
5778 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libevent >= 2.0\""; } >&5
5779 ($PKG_CONFIG --exists --print-errors "libevent >= 2.0") 2>&5
5780 ac_status=$?
5781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5782 test $ac_status = 0; }; then
5783 pkg_cv_LIBEVENT_LIBS=`$PKG_CONFIG --libs "libevent >= 2.0" 2>/dev/null`
5784 test "x$?" != "x0" && pkg_failed=yes
5785 else
5786 pkg_failed=yes
5787 fi
5788 else
5789 pkg_failed=untried
5790 fi
5791
5792
5793
5794 if test $pkg_failed = yes; then
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5796 $as_echo "no" >&6; }
5797
5798 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5799 _pkg_short_errors_supported=yes
5800 else
5801 _pkg_short_errors_supported=no
5802 fi
5803 if test $_pkg_short_errors_supported = yes; then
5804 LIBEVENT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libevent >= 2.0" 2>&1`
5805 else
5806 LIBEVENT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libevent >= 2.0" 2>&1`
5807 fi
5808 # Put the nasty error message in config.log where it belongs
5809 echo "$LIBEVENT_PKG_ERRORS" >&5
5810
5811 as_fn_error $? "pgqd requires libevent >= 2.0" "$LINENO" 5
5812 elif test $pkg_failed = untried; then
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5814 $as_echo "no" >&6; }
5815 as_fn_error $? "pgqd requires libevent >= 2.0" "$LINENO" 5
5816 else
5817 LIBEVENT_CFLAGS=$pkg_cv_LIBEVENT_CFLAGS
5818 LIBEVENT_LIBS=$pkg_cv_LIBEVENT_LIBS
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5820 $as_echo "yes" >&6; }
5821
5822 CFLAGS="${CFLAGS} ${LIBEVENT_CFLAGS}"
5823 LIBS="${LIBS} ${LIBEVENT_LIBS}"
5824
5825 fi
5826
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
5828 $as_echo_n "checking for library containing socket... " >&6; }
5829 if ${ac_cv_search_socket+:} false; then :
5830 $as_echo_n "(cached) " >&6
5831 else
5832 ac_func_search_save_LIBS=$LIBS
5833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5834 /* end confdefs.h. */
5835
5836 /* Override any GCC internal prototype to avoid an error.
5837 Use char because int might match the return type of a GCC
5838 builtin and then its argument prototype would still apply. */
5839 #ifdef __cplusplus
5840 extern "C"
5841 #endif
5842 char socket ();
5843 int
5844 main ()
5845 {
5846 return socket ();
5847 ;
5848 return 0;
5849 }
5850 _ACEOF
5851 for ac_lib in '' socket; do
5852 if test -z "$ac_lib"; then
5853 ac_res="none required"
5854 else
5855 ac_res=-l$ac_lib
5856 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5857 fi
5858 if ac_fn_c_try_link "$LINENO"; then :
5859 ac_cv_search_socket=$ac_res
5860 fi
5861 rm -f core conftest.err conftest.$ac_objext \
5862 conftest$ac_exeext
5863 if ${ac_cv_search_socket+:} false; then :
5864 break
5865 fi
5866 done
5867 if ${ac_cv_search_socket+:} false; then :
5868
5869 else
5870 ac_cv_search_socket=no
5871 fi
5872 rm conftest.$ac_ext
5873 LIBS=$ac_func_search_save_LIBS
5874 fi
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
5876 $as_echo "$ac_cv_search_socket" >&6; }
5877 ac_res=$ac_cv_search_socket
5878 if test "$ac_res" != no; then :
5879 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5880
5881 fi
5882
5883
5884
5885 # Check whether --enable-debug was given.
5886 if test "${enable_debug+set}" = set; then :
5887 enableval=$enable_debug;
5888 else
5889 enable_debug=yes
5890 fi
5891
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build debug binary" >&5
5893 $as_echo_n "checking whether to build debug binary... " >&6; }
5894 if test "$enable_debug" = "yes"; then
5895 LDFLAGS="-g $LDFLAGS"
5896 BININSTALL="$INSTALL"
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5898 $as_echo "yes" >&6; }
5899 else
5900 BININSTALL="$INSTALL -s"
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5902 $as_echo "no" >&6; }
5903 fi
5904
5905
5906
5907 # Check whether --enable-cassert was given.
5908 if test "${enable_cassert+set}" = set; then :
5909 enableval=$enable_cassert;
5910 fi
5911
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable asserts" >&5
5913 $as_echo_n "checking whether to enable asserts... " >&6; }
5914 if test "$enable_cassert" = "yes"; then
5915
5916 $as_echo "#define CASSERT 1" >>confdefs.h
5917
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5919 $as_echo "yes" >&6; }
5920 else
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5922 $as_echo "no" >&6; }
5923 fi
5924
5925
5926 ac_config_files="$ac_config_files config.mak"
5927
5928 cat >confcache <<\_ACEOF
5929 # This file is a shell script that caches the results of configure
5930 # tests run on this system so they can be shared between configure
5931 # scripts and configure runs, see configure's option --config-cache.
5932 # It is not useful on other systems. If it contains results you don't
5933 # want to keep, you may remove or edit it.
5934 #
5935 # config.status only pays attention to the cache file if you give it
5936 # the --recheck option to rerun configure.
5937 #
5938 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5939 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5940 # following values.
5941
5942 _ACEOF
5943
5944 # The following way of writing the cache mishandles newlines in values,
5945 # but we know of no workaround that is simple, portable, and efficient.
5946 # So, we kill variables containing newlines.
5947 # Ultrix sh set writes to stderr and can't be redirected directly,
5948 # and sets the high bit in the cache file unless we assign to the vars.
5949 (
5950 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5951 eval ac_val=\$$ac_var
5952 case $ac_val in #(
5953 *${as_nl}*)
5954 case $ac_var in #(
5955 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5956 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5957 esac
5958 case $ac_var in #(
5959 _ | IFS | as_nl) ;; #(
5960 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5961 *) { eval $ac_var=; unset $ac_var;} ;;
5962 esac ;;
5963 esac
5964 done
5965
5966 (set) 2>&1 |
5967 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5968 *${as_nl}ac_space=\ *)
5969 # `set' does not quote correctly, so add quotes: double-quote
5970 # substitution turns \\\\ into \\, and sed turns \\ into \.
5971 sed -n \
5972 "s/'/'\\\\''/g;
5973 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5974 ;; #(
5975 *)
5976 # `set' quotes correctly as required by POSIX, so do not add quotes.
5977 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5978 ;;
5979 esac |
5980 sort
5981 ) |
5982 sed '
5983 /^ac_cv_env_/b end
5984 t clear
5985 :clear
5986 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5987 t end
5988 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5989 :end' >>confcache
5990 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5991 if test -w "$cache_file"; then
5992 if test "x$cache_file" != "x/dev/null"; then
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5994 $as_echo "$as_me: updating cache $cache_file" >&6;}
5995 if test ! -f "$cache_file" || test -h "$cache_file"; then
5996 cat confcache >"$cache_file"
5997 else
5998 case $cache_file in #(
5999 */* | ?:*)
6000 mv -f confcache "$cache_file"$$ &&
6001 mv -f "$cache_file"$$ "$cache_file" ;; #(
6002 *)
6003 mv -f confcache "$cache_file" ;;
6004 esac
6005 fi
6006 fi
6007 else
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6009 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6010 fi
6011 fi
6012 rm -f confcache
6013
6014 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6015 # Let make expand exec_prefix.
6016 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6017
6018 DEFS=-DHAVE_CONFIG_H
6019
6020 ac_libobjs=
6021 ac_ltlibobjs=
6022 U=
6023 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6024 # 1. Remove the extension, and $U if already installed.
6025 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6026 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6027 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6028 # will be set to the directory where LIBOBJS objects are built.
6029 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6030 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6031 done
6032 LIBOBJS=$ac_libobjs
6033
6034 LTLIBOBJS=$ac_ltlibobjs
6035
6036
6037
6038
6039 : "${CONFIG_STATUS=./config.status}"
6040 ac_write_fail=0
6041 ac_clean_files_save=$ac_clean_files
6042 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6044 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6045 as_write_fail=0
6046 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6047 #! $SHELL
6048 # Generated by $as_me.
6049 # Run this file to recreate the current configuration.
6050 # Compiler output produced by configure, useful for debugging
6051 # configure, is in config.log if it exists.
6052
6053 debug=false
6054 ac_cs_recheck=false
6055 ac_cs_silent=false
6056
6057 SHELL=\${CONFIG_SHELL-$SHELL}
6058 export SHELL
6059 _ASEOF
6060 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6061 ## -------------------- ##
6062 ## M4sh Initialization. ##
6063 ## -------------------- ##
6064
6065 # Be more Bourne compatible
6066 DUALCASE=1; export DUALCASE # for MKS sh
6067 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6068 emulate sh
6069 NULLCMD=:
6070 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6071 # is contrary to our usage. Disable this feature.
6072 alias -g '${1+"$@"}'='"$@"'
6073 setopt NO_GLOB_SUBST
6074 else
6075 case `(set -o) 2>/dev/null` in #(
6076 *posix*) :
6077 set -o posix ;; #(
6078 *) :
6079 ;;
6080 esac
6081 fi
6082
6083
6084 as_nl='
6085 '
6086 export as_nl
6087 # Printing a long string crashes Solaris 7 /usr/bin/printf.
6088 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6089 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6090 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6091 # Prefer a ksh shell builtin over an external printf program on Solaris,
6092 # but without wasting forks for bash or zsh.
6093 if test -z "$BASH_VERSION$ZSH_VERSION" \
6094 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6095 as_echo='print -r --'
6096 as_echo_n='print -rn --'
6097 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6098 as_echo='printf %s\n'
6099 as_echo_n='printf %s'
6100 else
6101 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6102 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6103 as_echo_n='/usr/ucb/echo -n'
6104 else
6105 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6106 as_echo_n_body='eval
6107 arg=$1;
6108 case $arg in #(
6109 *"$as_nl"*)
6110 expr "X$arg" : "X\\(.*\\)$as_nl";
6111 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6112 esac;
6113 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6114 '
6115 export as_echo_n_body
6116 as_echo_n='sh -c $as_echo_n_body as_echo'
6117 fi
6118 export as_echo_body
6119 as_echo='sh -c $as_echo_body as_echo'
6120 fi
6121
6122 # The user is always right.
6123 if test "${PATH_SEPARATOR+set}" != set; then
6124 PATH_SEPARATOR=:
6125 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6126 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6127 PATH_SEPARATOR=';'
6128 }
6129 fi
6130
6131
6132 # IFS
6133 # We need space, tab and new line, in precisely that order. Quoting is
6134 # there to prevent editors from complaining about space-tab.
6135 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6136 # splitting by setting IFS to empty value.)
6137 IFS=" "" $as_nl"
6138
6139 # Find who we are. Look in the path if we contain no directory separator.
6140 as_myself=
6141 case $0 in #((
6142 *[\\/]* ) as_myself=$0 ;;
6143 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6144 for as_dir in $PATH
6145 do
6146 IFS=$as_save_IFS
6147 test -z "$as_dir" && as_dir=.
6148 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6149 done
6150 IFS=$as_save_IFS
6151
6152 ;;
6153 esac
6154 # We did not find ourselves, most probably we were run as `sh COMMAND'
6155 # in which case we are not to be found in the path.
6156 if test "x$as_myself" = x; then
6157 as_myself=$0
6158 fi
6159 if test ! -f "$as_myself"; then
6160 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6161 exit 1
6162 fi
6163
6164 # Unset variables that we do not need and which cause bugs (e.g. in
6165 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6166 # suppresses any "Segmentation fault" message there. '((' could
6167 # trigger a bug in pdksh 5.2.14.
6168 for as_var in BASH_ENV ENV MAIL MAILPATH
6169 do eval test x\${$as_var+set} = xset \
6170 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6171 done
6172 PS1='$ '
6173 PS2='> '
6174 PS4='+ '
6175
6176 # NLS nuisances.
6177 LC_ALL=C
6178 export LC_ALL
6179 LANGUAGE=C
6180 export LANGUAGE
6181
6182 # CDPATH.
6183 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6184
6185
6186 # as_fn_error STATUS ERROR [LINENO LOG_FD]
6187 # ----------------------------------------
6188 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6189 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6190 # script with STATUS, using 1 if that was 0.
6191 as_fn_error ()
6192 {
6193 as_status=$1; test $as_status -eq 0 && as_status=1
6194 if test "$4"; then
6195 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6196 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
6197 fi
6198 $as_echo "$as_me: error: $2" >&2
6199 as_fn_exit $as_status
6200 } # as_fn_error
6201
6202
6203 # as_fn_set_status STATUS
6204 # -----------------------
6205 # Set $? to STATUS, without forking.
6206 as_fn_set_status ()
6207 {
6208 return $1
6209 } # as_fn_set_status
6210
6211 # as_fn_exit STATUS
6212 # -----------------
6213 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6214 as_fn_exit ()
6215 {
6216 set +e
6217 as_fn_set_status $1
6218 exit $1
6219 } # as_fn_exit
6220
6221 # as_fn_unset VAR
6222 # ---------------
6223 # Portably unset VAR.
6224 as_fn_unset ()
6225 {
6226 { eval $1=; unset $1;}
6227 }
6228 as_unset=as_fn_unset
6229 # as_fn_append VAR VALUE
6230 # ----------------------
6231 # Append the text in VALUE to the end of the definition contained in VAR. Take
6232 # advantage of any shell optimizations that allow amortized linear growth over
6233 # repeated appends, instead of the typical quadratic growth present in naive
6234 # implementations.
6235 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6236 eval 'as_fn_append ()
6237 {
6238 eval $1+=\$2
6239 }'
6240 else
6241 as_fn_append ()
6242 {
6243 eval $1=\$$1\$2
6244 }
6245 fi # as_fn_append
6246
6247 # as_fn_arith ARG...
6248 # ------------------
6249 # Perform arithmetic evaluation on the ARGs, and store the result in the
6250 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6251 # must be portable across $(()) and expr.
6252 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6253 eval 'as_fn_arith ()
6254 {
6255 as_val=$(( $* ))
6256 }'
6257 else
6258 as_fn_arith ()
6259 {
6260 as_val=`expr "$@" || test $? -eq 1`
6261 }
6262 fi # as_fn_arith
6263
6264
6265 if expr a : '\(a\)' >/dev/null 2>&1 &&
6266 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6267 as_expr=expr
6268 else
6269 as_expr=false
6270 fi
6271
6272 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6273 as_basename=basename
6274 else
6275 as_basename=false
6276 fi
6277
6278 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6279 as_dirname=dirname
6280 else
6281 as_dirname=false
6282 fi
6283
6284 as_me=`$as_basename -- "$0" ||
6285 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6286 X"$0" : 'X\(//\)$' \| \
6287 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6288 $as_echo X/"$0" |
6289 sed '/^.*\/\([^/][^/]*\)\/*$/{
6290 s//\1/
6291 q
6292 }
6293 /^X\/\(\/\/\)$/{
6294 s//\1/
6295 q
6296 }
6297 /^X\/\(\/\).*/{
6298 s//\1/
6299 q
6300 }
6301 s/.*/./; q'`
6302
6303 # Avoid depending upon Character Ranges.
6304 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6305 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6306 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6307 as_cr_digits='0123456789'
6308 as_cr_alnum=$as_cr_Letters$as_cr_digits
6309
6310 ECHO_C= ECHO_N= ECHO_T=
6311 case `echo -n x` in #(((((
6312 -n*)
6313 case `echo 'xy\c'` in
6314 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6315 xy) ECHO_C='\c';;
6316 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6317 ECHO_T=' ';;
6318 esac;;
6319 *)
6320 ECHO_N='-n';;
6321 esac
6322
6323 rm -f conf$$ conf$$.exe conf$$.file
6324 if test -d conf$$.dir; then
6325 rm -f conf$$.dir/conf$$.file
6326 else
6327 rm -f conf$$.dir
6328 mkdir conf$$.dir 2>/dev/null
6329 fi
6330 if (echo >conf$$.file) 2>/dev/null; then
6331 if ln -s conf$$.file conf$$ 2>/dev/null; then
6332 as_ln_s='ln -s'
6333 # ... but there are two gotchas:
6334 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6335 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6336 # In both cases, we have to default to `cp -pR'.
6337 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6338 as_ln_s='cp -pR'
6339 elif ln conf$$.file conf$$ 2>/dev/null; then
6340 as_ln_s=ln
6341 else
6342 as_ln_s='cp -pR'
6343 fi
6344 else
6345 as_ln_s='cp -pR'
6346 fi
6347 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6348 rmdir conf$$.dir 2>/dev/null
6349
6350
6351 # as_fn_mkdir_p
6352 # -------------
6353 # Create "$as_dir" as a directory, including parents if necessary.
6354 as_fn_mkdir_p ()
6355 {
6356
6357 case $as_dir in #(
6358 -*) as_dir=./$as_dir;;
6359 esac
6360 test -d "$as_dir" || eval $as_mkdir_p || {
6361 as_dirs=
6362 while :; do
6363 case $as_dir in #(
6364 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6365 *) as_qdir=$as_dir;;
6366 esac
6367 as_dirs="'$as_qdir' $as_dirs"
6368 as_dir=`$as_dirname -- "$as_dir" ||
6369 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6370 X"$as_dir" : 'X\(//\)[^/]' \| \
6371 X"$as_dir" : 'X\(//\)$' \| \
6372 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6373 $as_echo X"$as_dir" |
6374 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6375 s//\1/
6376 q
6377 }
6378 /^X\(\/\/\)[^/].*/{
6379 s//\1/
6380 q
6381 }
6382 /^X\(\/\/\)$/{
6383 s//\1/
6384 q
6385 }
6386 /^X\(\/\).*/{
6387 s//\1/
6388 q
6389 }
6390 s/.*/./; q'`
6391 test -d "$as_dir" && break
6392 done
6393 test -z "$as_dirs" || eval "mkdir $as_dirs"
6394 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
6395
6396
6397 } # as_fn_mkdir_p
6398 if mkdir -p . 2>/dev/null; then
6399 as_mkdir_p='mkdir -p "$as_dir"'
6400 else
6401 test -d ./-p && rmdir ./-p
6402 as_mkdir_p=false
6403 fi
6404
6405
6406 # as_fn_executable_p FILE
6407 # -----------------------
6408 # Test if FILE is an executable regular file.
6409 as_fn_executable_p ()
6410 {
6411 test -f "$1" && test -x "$1"
6412 } # as_fn_executable_p
6413 as_test_x='test -x'
6414 as_executable_p=as_fn_executable_p
6415
6416 # Sed expression to map a string onto a valid CPP name.
6417 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6418
6419 # Sed expression to map a string onto a valid variable name.
6420 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6421
6422
6423 exec 6>&1
6424 ## ----------------------------------- ##
6425 ## Main body of $CONFIG_STATUS script. ##
6426 ## ----------------------------------- ##
6427 _ASEOF
6428 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6429
6430 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6431 # Save the log message, to keep $0 and so on meaningful, and to
6432 # report actual input values of CONFIG_FILES etc. instead of their
6433 # values after options handling.
6434 ac_log="
6435 This file was extended by pgqd $as_me 3.5, which was
6436 generated by GNU Autoconf 2.69. Invocation command line was
6437
6438 CONFIG_FILES = $CONFIG_FILES
6439 CONFIG_HEADERS = $CONFIG_HEADERS
6440 CONFIG_LINKS = $CONFIG_LINKS
6441 CONFIG_COMMANDS = $CONFIG_COMMANDS
6442 $ $0 $@
6443
6444 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6445 "
6446
6447 _ACEOF
6448
6449 case $ac_config_files in *"
6450 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6451 esac
6452
6453 case $ac_config_headers in *"
6454 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6455 esac
6456
6457
6458 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6459 # Files that config.status was made for.
6460 config_files="$ac_config_files"
6461 config_headers="$ac_config_headers"
6462
6463 _ACEOF
6464
6465 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6466 ac_cs_usage="\
6467 \`$as_me' instantiates files and other configuration actions
6468 from templates according to the current configuration. Unless the files
6469 and actions are specified as TAGs, all are instantiated by default.
6470
6471 Usage: $0 [OPTION]... [TAG]...
6472
6473 -h, --help print this help, then exit
6474 -V, --version print version number and configuration settings, then exit
6475 --config print configuration, then exit
6476 -q, --quiet, --silent
6477 do not print progress messages
6478 -d, --debug don't remove temporary files
6479 --recheck update $as_me by reconfiguring in the same conditions
6480 --file=FILE[:TEMPLATE]
6481 instantiate the configuration file FILE
6482 --header=FILE[:TEMPLATE]
6483 instantiate the configuration header FILE
6484
6485 Configuration files:
6486 $config_files
6487
6488 Configuration headers:
6489 $config_headers
6490
6491 Report bugs to the package provider."
6492
6493 _ACEOF
6494 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6495 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6496 ac_cs_version="\\
6497 pgqd config.status 3.5
6498 configured by $0, generated by GNU Autoconf 2.69,
6499 with options \\"\$ac_cs_config\\"
6500
6501 Copyright (C) 2012 Free Software Foundation, Inc.
6502 This config.status script is free software; the Free Software Foundation
6503 gives unlimited permission to copy, distribute and modify it."
6504
6505 ac_pwd='$ac_pwd'
6506 srcdir='$srcdir'
6507 INSTALL='$INSTALL'
6508 MKDIR_P='$MKDIR_P'
6509 AWK='$AWK'
6510 test -n "\$AWK" || AWK=awk
6511 _ACEOF
6512
6513 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6514 # The default lists apply if the user does not specify any file.
6515 ac_need_defaults=:
6516 while test $# != 0
6517 do
6518 case $1 in
6519 --*=?*)
6520 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6521 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6522 ac_shift=:
6523 ;;
6524 --*=)
6525 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6526 ac_optarg=
6527 ac_shift=:
6528 ;;
6529 *)
6530 ac_option=$1
6531 ac_optarg=$2
6532 ac_shift=shift
6533 ;;
6534 esac
6535
6536 case $ac_option in
6537 # Handling of the options.
6538 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6539 ac_cs_recheck=: ;;
6540 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6541 $as_echo "$ac_cs_version"; exit ;;
6542 --config | --confi | --conf | --con | --co | --c )
6543 $as_echo "$ac_cs_config"; exit ;;
6544 --debug | --debu | --deb | --de | --d | -d )
6545 debug=: ;;
6546 --file | --fil | --fi | --f )
6547 $ac_shift
6548 case $ac_optarg in
6549 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6550 '') as_fn_error $? "missing file argument" ;;
6551 esac
6552 as_fn_append CONFIG_FILES " '$ac_optarg'"
6553 ac_need_defaults=false;;
6554 --header | --heade | --head | --hea )
6555 $ac_shift
6556 case $ac_optarg in
6557 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6558 esac
6559 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6560 ac_need_defaults=false;;
6561 --he | --h)
6562 # Conflict between --help and --header
6563 as_fn_error $? "ambiguous option: \`$1'
6564 Try \`$0 --help' for more information.";;
6565 --help | --hel | -h )
6566 $as_echo "$ac_cs_usage"; exit ;;
6567 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6568 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6569 ac_cs_silent=: ;;
6570
6571 # This is an error.
6572 -*) as_fn_error $? "unrecognized option: \`$1'
6573 Try \`$0 --help' for more information." ;;
6574
6575 *) as_fn_append ac_config_targets " $1"
6576 ac_need_defaults=false ;;
6577
6578 esac
6579 shift
6580 done
6581
6582 ac_configure_extra_args=
6583
6584 if $ac_cs_silent; then
6585 exec 6>/dev/null
6586 ac_configure_extra_args="$ac_configure_extra_args --silent"
6587 fi
6588
6589 _ACEOF
6590 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6591 if \$ac_cs_recheck; then
6592 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6593 shift
6594 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6595 CONFIG_SHELL='$SHELL'
6596 export CONFIG_SHELL
6597 exec "\$@"
6598 fi
6599
6600 _ACEOF
6601 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6602 exec 5>>config.log
6603 {
6604 echo
6605 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6606 ## Running $as_me. ##
6607 _ASBOX
6608 $as_echo "$ac_log"
6609 } >&5
6610
6611 _ACEOF
6612 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6613 _ACEOF
6614
6615 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6616
6617 # Handling of arguments.
6618 for ac_config_target in $ac_config_targets
6619 do
6620 case $ac_config_target in
6621 "lib/usual/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/usual/config.h" ;;
6622 "config.mak") CONFIG_FILES="$CONFIG_FILES config.mak" ;;
6623
6624 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6625 esac
6626 done
6627
6628
6629 # If the user did not use the arguments to specify the items to instantiate,
6630 # then the envvar interface is used. Set only those that are not.
6631 # We use the long form for the default assignment because of an extremely
6632 # bizarre bug on SunOS 4.1.3.
6633 if $ac_need_defaults; then
6634 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6635 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6636 fi
6637
6638 # Have a temporary directory for convenience. Make it in the build tree
6639 # simply because there is no reason against having it here, and in addition,
6640 # creating and moving files from /tmp can sometimes cause problems.
6641 # Hook for its removal unless debugging.
6642 # Note that there is a small window in which the directory will not be cleaned:
6643 # after its creation but before its name has been assigned to `$tmp'.
6644 $debug ||
6645 {
6646 tmp= ac_tmp=
6647 trap 'exit_status=$?
6648 : "${ac_tmp:=$tmp}"
6649 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6650 ' 0
6651 trap 'as_fn_exit 1' 1 2 13 15
6652 }
6653 # Create a (secure) tmp directory for tmp files.
6654
6655 {
6656 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6657 test -d "$tmp"
6658 } ||
6659 {
6660 tmp=./conf$$-$RANDOM
6661 (umask 077 && mkdir "$tmp")
6662 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6663 ac_tmp=$tmp
6664
6665 # Set up the scripts for CONFIG_FILES section.
6666 # No need to generate them if there are no CONFIG_FILES.
6667 # This happens for instance with `./config.status config.h'.
6668 if test -n "$CONFIG_FILES"; then
6669
6670
6671 ac_cr=`echo X | tr X '\015'`
6672 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6673 # But we know of no other shell where ac_cr would be empty at this
6674 # point, so we can use a bashism as a fallback.
6675 if test "x$ac_cr" = x; then
6676 eval ac_cr=\$\'\\r\'
6677 fi
6678 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6679 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6680 ac_cs_awk_cr='\\r'
6681 else
6682 ac_cs_awk_cr=$ac_cr
6683 fi
6684
6685 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6686 _ACEOF
6687
6688
6689 {
6690 echo "cat >conf$$subs.awk <<_ACEOF" &&
6691 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6692 echo "_ACEOF"
6693 } >conf$$subs.sh ||
6694 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6695 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6696 ac_delim='%!_!# '
6697 for ac_last_try in false false false false false :; do
6698 . ./conf$$subs.sh ||
6699 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6700
6701 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6702 if test $ac_delim_n = $ac_delim_num; then
6703 break
6704 elif $ac_last_try; then
6705 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6706 else
6707 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6708 fi
6709 done
6710 rm -f conf$$subs.sh
6711
6712 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6713 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
6714 _ACEOF
6715 sed -n '
6716 h
6717 s/^/S["/; s/!.*/"]=/
6718 p
6719 g
6720 s/^[^!]*!//
6721 :repl
6722 t repl
6723 s/'"$ac_delim"'$//
6724 t delim
6725 :nl
6726 h
6727 s/\(.\{148\}\)..*/\1/
6728 t more1
6729 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6730 p
6731 n
6732 b repl
6733 :more1
6734 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6735 p
6736 g
6737 s/.\{148\}//
6738 t nl
6739 :delim
6740 h
6741 s/\(.\{148\}\)..*/\1/
6742 t more2
6743 s/["\\]/\\&/g; s/^/"/; s/$/"/
6744 p
6745 b
6746 :more2
6747 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6748 p
6749 g
6750 s/.\{148\}//
6751 t delim
6752 ' <conf$$subs.awk | sed '
6753 /^[^""]/{
6754 N
6755 s/\n//
6756 }
6757 ' >>$CONFIG_STATUS || ac_write_fail=1
6758 rm -f conf$$subs.awk
6759 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6760 _ACAWK
6761 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6762 for (key in S) S_is_set[key] = 1
6763 FS = ""
6764
6765 }
6766 {
6767 line = $ 0
6768 nfields = split(line, field, "@")
6769 substed = 0
6770 len = length(field[1])
6771 for (i = 2; i < nfields; i++) {
6772 key = field[i]
6773 keylen = length(key)
6774 if (S_is_set[key]) {
6775 value = S[key]
6776 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6777 len += length(value) + length(field[++i])
6778 substed = 1
6779 } else
6780 len += 1 + keylen
6781 }
6782
6783 print line
6784 }
6785
6786 _ACAWK
6787 _ACEOF
6788 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6789 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6790 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6791 else
6792 cat
6793 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6794 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6795 _ACEOF
6796
6797 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6798 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6799 # trailing colons and then remove the whole line if VPATH becomes empty
6800 # (actually we leave an empty line to preserve line numbers).
6801 if test "x$srcdir" = x.; then
6802 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6803 h
6804 s///
6805 s/^/:/
6806 s/[ ]*$/:/
6807 s/:\$(srcdir):/:/g
6808 s/:\${srcdir}:/:/g
6809 s/:@srcdir@:/:/g
6810 s/^:*//
6811 s/:*$//
6812 x
6813 s/\(=[ ]*\).*/\1/
6814 G
6815 s/\n//
6816 s/^[^=]*=[ ]*$//
6817 }'
6818 fi
6819
6820 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6821 fi # test -n "$CONFIG_FILES"
6822
6823 # Set up the scripts for CONFIG_HEADERS section.
6824 # No need to generate them if there are no CONFIG_HEADERS.
6825 # This happens for instance with `./config.status Makefile'.
6826 if test -n "$CONFIG_HEADERS"; then
6827 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
6828 BEGIN {
6829 _ACEOF
6830
6831 # Transform confdefs.h into an awk script `defines.awk', embedded as
6832 # here-document in config.status, that substitutes the proper values into
6833 # config.h.in to produce config.h.
6834
6835 # Create a delimiter string that does not exist in confdefs.h, to ease
6836 # handling of long lines.
6837 ac_delim='%!_!# '
6838 for ac_last_try in false false :; do
6839 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
6840 if test -z "$ac_tt"; then
6841 break
6842 elif $ac_last_try; then
6843 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
6844 else
6845 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6846 fi
6847 done
6848
6849 # For the awk script, D is an array of macro values keyed by name,
6850 # likewise P contains macro parameters if any. Preserve backslash
6851 # newline sequences.
6852
6853 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6854 sed -n '
6855 s/.\{148\}/&'"$ac_delim"'/g
6856 t rset
6857 :rset
6858 s/^[ ]*#[ ]*define[ ][ ]*/ /
6859 t def
6860 d
6861 :def
6862 s/\\$//
6863 t bsnl
6864 s/["\\]/\\&/g
6865 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6866 D["\1"]=" \3"/p
6867 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6868 d
6869 :bsnl
6870 s/["\\]/\\&/g
6871 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6872 D["\1"]=" \3\\\\\\n"\\/p
6873 t cont
6874 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6875 t cont
6876 d
6877 :cont
6878 n
6879 s/.\{148\}/&'"$ac_delim"'/g
6880 t clear
6881 :clear
6882 s/\\$//
6883 t bsnlc
6884 s/["\\]/\\&/g; s/^/"/; s/$/"/p
6885 d
6886 :bsnlc
6887 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6888 b cont
6889 ' <confdefs.h | sed '
6890 s/'"$ac_delim"'/"\\\
6891 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6892
6893 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6894 for (key in D) D_is_set[key] = 1
6895 FS = ""
6896 }
6897 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6898 line = \$ 0
6899 split(line, arg, " ")
6900 if (arg[1] == "#") {
6901 defundef = arg[2]
6902 mac1 = arg[3]
6903 } else {
6904 defundef = substr(arg[1], 2)
6905 mac1 = arg[2]
6906 }
6907 split(mac1, mac2, "(") #)
6908 macro = mac2[1]
6909 prefix = substr(line, 1, index(line, defundef) - 1)
6910 if (D_is_set[macro]) {
6911 # Preserve the white space surrounding the "#".
6912 print prefix "define", macro P[macro] D[macro]
6913 next
6914 } else {
6915 # Replace #undef with comments. This is necessary, for example,
6916 # in the case of _POSIX_SOURCE, which is predefined and required
6917 # on some systems where configure will not decide to define it.
6918 if (defundef == "undef") {
6919 print "/*", prefix defundef, macro, "*/"
6920 next
6921 }
6922 }
6923 }
6924 { print }
6925 _ACAWK
6926 _ACEOF
6927 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6928 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
6929 fi # test -n "$CONFIG_HEADERS"
6930
6931
6932 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
6933 shift
6934 for ac_tag
6935 do
6936 case $ac_tag in
6937 :[FHLC]) ac_mode=$ac_tag; continue;;
6938 esac
6939 case $ac_mode$ac_tag in
6940 :[FHL]*:*);;
6941 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6942 :[FH]-) ac_tag=-:-;;
6943 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6944 esac
6945 ac_save_IFS=$IFS
6946 IFS=:
6947 set x $ac_tag
6948 IFS=$ac_save_IFS
6949 shift
6950 ac_file=$1
6951 shift
6952
6953 case $ac_mode in
6954 :L) ac_source=$1;;
6955 :[FH])
6956 ac_file_inputs=
6957 for ac_f
6958 do
6959 case $ac_f in
6960 -) ac_f="$ac_tmp/stdin";;
6961 *) # Look for the file first in the build tree, then in the source tree
6962 # (if the path is not absolute). The absolute path cannot be DOS-style,
6963 # because $ac_f cannot contain `:'.
6964 test -f "$ac_f" ||
6965 case $ac_f in
6966 [\\/$]*) false;;
6967 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6968 esac ||
6969 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6970 esac
6971 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6972 as_fn_append ac_file_inputs " '$ac_f'"
6973 done
6974
6975 # Let's still pretend it is `configure' which instantiates (i.e., don't
6976 # use $as_me), people would be surprised to read:
6977 # /* config.h. Generated by config.status. */
6978 configure_input='Generated from '`
6979 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6980 `' by configure.'
6981 if test x"$ac_file" != x-; then
6982 configure_input="$ac_file. $configure_input"
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6984 $as_echo "$as_me: creating $ac_file" >&6;}
6985 fi
6986 # Neutralize special characters interpreted by sed in replacement strings.
6987 case $configure_input in #(
6988 *\&* | *\|* | *\\* )
6989 ac_sed_conf_input=`$as_echo "$configure_input" |
6990 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6991 *) ac_sed_conf_input=$configure_input;;
6992 esac
6993
6994 case $ac_tag in
6995 *:-:* | *:-) cat >"$ac_tmp/stdin" \
6996 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6997 esac
6998 ;;
6999 esac
7000
7001 ac_dir=`$as_dirname -- "$ac_file" ||
7002 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7003 X"$ac_file" : 'X\(//\)[^/]' \| \
7004 X"$ac_file" : 'X\(//\)$' \| \
7005 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7006 $as_echo X"$ac_file" |
7007 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7008 s//\1/
7009 q
7010 }
7011 /^X\(\/\/\)[^/].*/{
7012 s//\1/
7013 q
7014 }
7015 /^X\(\/\/\)$/{
7016 s//\1/
7017 q
7018 }
7019 /^X\(\/\).*/{
7020 s//\1/
7021 q
7022 }
7023 s/.*/./; q'`
7024 as_dir="$ac_dir"; as_fn_mkdir_p
7025 ac_builddir=.
7026
7027 case "$ac_dir" in
7028 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7029 *)
7030 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7031 # A ".." for each directory in $ac_dir_suffix.
7032 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7033 case $ac_top_builddir_sub in
7034 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7035 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7036 esac ;;
7037 esac
7038 ac_abs_top_builddir=$ac_pwd
7039 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7040 # for backward compatibility:
7041 ac_top_builddir=$ac_top_build_prefix
7042
7043 case $srcdir in
7044 .) # We are building in place.
7045 ac_srcdir=.
7046 ac_top_srcdir=$ac_top_builddir_sub
7047 ac_abs_top_srcdir=$ac_pwd ;;
7048 [\\/]* | ?:[\\/]* ) # Absolute name.
7049 ac_srcdir=$srcdir$ac_dir_suffix;
7050 ac_top_srcdir=$srcdir
7051 ac_abs_top_srcdir=$srcdir ;;
7052 *) # Relative name.
7053 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7054 ac_top_srcdir=$ac_top_build_prefix$srcdir
7055 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7056 esac
7057 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7058
7059
7060 case $ac_mode in
7061 :F)
7062 #
7063 # CONFIG_FILE
7064 #
7065
7066 case $INSTALL in
7067 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7068 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7069 esac
7070 ac_MKDIR_P=$MKDIR_P
7071 case $MKDIR_P in
7072 [\\/$]* | ?:[\\/]* ) ;;
7073 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
7074 esac
7075 _ACEOF
7076
7077 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7078 # If the template does not know about datarootdir, expand it.
7079 # FIXME: This hack should be removed a few years after 2.60.
7080 ac_datarootdir_hack=; ac_datarootdir_seen=
7081 ac_sed_dataroot='
7082 /datarootdir/ {
7083 p
7084 q
7085 }
7086 /@datadir@/p
7087 /@docdir@/p
7088 /@infodir@/p
7089 /@localedir@/p
7090 /@mandir@/p'
7091 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7092 *datarootdir*) ac_datarootdir_seen=yes;;
7093 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7095 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7096 _ACEOF
7097 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7098 ac_datarootdir_hack='
7099 s&@datadir@&$datadir&g
7100 s&@docdir@&$docdir&g
7101 s&@infodir@&$infodir&g
7102 s&@localedir@&$localedir&g
7103 s&@mandir@&$mandir&g
7104 s&\\\${datarootdir}&$datarootdir&g' ;;
7105 esac
7106 _ACEOF
7107
7108 # Neutralize VPATH when `$srcdir' = `.'.
7109 # Shell code in configure.ac might set extrasub.
7110 # FIXME: do we really want to maintain this feature?
7111 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7112 ac_sed_extra="$ac_vpsub
7113 $extrasub
7114 _ACEOF
7115 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7116 :t
7117 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7118 s|@configure_input@|$ac_sed_conf_input|;t t
7119 s&@top_builddir@&$ac_top_builddir_sub&;t t
7120 s&@top_build_prefix@&$ac_top_build_prefix&;t t
7121 s&@srcdir@&$ac_srcdir&;t t
7122 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7123 s&@top_srcdir@&$ac_top_srcdir&;t t
7124 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7125 s&@builddir@&$ac_builddir&;t t
7126 s&@abs_builddir@&$ac_abs_builddir&;t t
7127 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7128 s&@INSTALL@&$ac_INSTALL&;t t
7129 s&@MKDIR_P@&$ac_MKDIR_P&;t t
7130 $ac_datarootdir_hack
7131 "
7132 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
7133 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7134
7135 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7136 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
7137 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
7138 "$ac_tmp/out"`; test -z "$ac_out"; } &&
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7140 which seems to be undefined. Please make sure it is defined" >&5
7141 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7142 which seems to be undefined. Please make sure it is defined" >&2;}
7143
7144 rm -f "$ac_tmp/stdin"
7145 case $ac_file in
7146 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
7147 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7148 esac \
7149 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7150 ;;
7151 :H)
7152 #
7153 # CONFIG_HEADER
7154 #
7155 if test x"$ac_file" != x-; then
7156 {
7157 $as_echo "/* $configure_input */" \
7158 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
7159 } >"$ac_tmp/config.h" \
7160 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7161 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7163 $as_echo "$as_me: $ac_file is unchanged" >&6;}
7164 else
7165 rm -f "$ac_file"
7166 mv "$ac_tmp/config.h" "$ac_file" \
7167 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7168 fi
7169 else
7170 $as_echo "/* $configure_input */" \
7171 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
7172 || as_fn_error $? "could not create -" "$LINENO" 5
7173 fi
7174 ;;
7175
7176
7177 esac
7178
7179 done # for ac_tag
7180
7181
7182 as_fn_exit 0
7183 _ACEOF
7184 ac_clean_files=$ac_clean_files_save
7185
7186 test $ac_write_fail = 0 ||
7187 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7188
7189
7190 # configure is writing to config.log, and then calls config.status.
7191 # config.status does its own redirection, appending to config.log.
7192 # Unfortunately, on DOS this fails, as config.log is still kept open
7193 # by configure, so config.status won't be able to write to it; its
7194 # output is simply discarded. So we exec the FD to /dev/null,
7195 # effectively closing config.log, so it can be properly (re)opened and
7196 # appended to by config.status. When coming back to configure, we
7197 # need to make the FD available again.
7198 if test "$no_create" != yes; then
7199 ac_cs_success=:
7200 ac_config_status_args=
7201 test "$silent" = yes &&
7202 ac_config_status_args="$ac_config_status_args --quiet"
7203 exec 5>/dev/null
7204 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7205 exec 5>>config.log
7206 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7207 # would make configure fail if this is the last instruction.
7208 $ac_cs_success || as_fn_exit 1
7209 fi
7210 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7212 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
7213 fi
7214