Debian Codegraph @

src/client/cxx/configure

raw symbols SCIP
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for Rserve-cxx-client 0.1.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 as_nop=:
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29 else $as_nop
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
34 ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146 emulate sh
147 NULLCMD=:
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 setopt NO_GLOB_SUBST
152 else \$as_nop
153 case \`(set -o) 2>/dev/null\` in #(
154 *posix*) :
155 set -o posix ;; #(
156 *) :
157 ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else \$as_nop
176 exitcode=1; echo positional parameters were not saved.
177 fi
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
181 test -x / || exit 1"
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
186 if (eval "$as_required") 2>/dev/null
187 then :
188 as_have_required=yes
189 else $as_nop
190 as_have_required=no
191 fi
192 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
193 then :
194
195 else $as_nop
196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
197 as_found=false
198 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
199 do
200 IFS=$as_save_IFS
201 case $as_dir in #(((
202 '') as_dir=./ ;;
203 */) ;;
204 *) as_dir=$as_dir/ ;;
205 esac
206 as_found=:
207 case $as_dir in #(
208 /*)
209 for as_base in sh bash ksh sh5; do
210 # Try only shells that exist, to save several forks.
211 as_shell=$as_dir$as_base
212 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
213 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
214 then :
215 CONFIG_SHELL=$as_shell as_have_required=yes
216 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
217 then :
218 break 2
219 fi
220 fi
221 done;;
222 esac
223 as_found=false
224 done
225 IFS=$as_save_IFS
226 if $as_found
227 then :
228
229 else $as_nop
230 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
231 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
232 then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi
235 fi
236
237
238 if test "x$CONFIG_SHELL" != x
239 then :
240 export CONFIG_SHELL
241 # We cannot yet assume a decent shell, so we have to provide a
242 # neutralization value for shells without unset; and this also
243 # works around shells that cannot unset nonexistent variables.
244 # Preserve -v and -x to the replacement shell.
245 BASH_ENV=/dev/null
246 ENV=/dev/null
247 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
248 case $- in # ((((
249 *v*x* | *x*v* ) as_opts=-vx ;;
250 *v* ) as_opts=-v ;;
251 *x* ) as_opts=-x ;;
252 * ) as_opts= ;;
253 esac
254 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
255 # Admittedly, this is quite paranoid, since all the known shells bail
256 # out after a failed `exec'.
257 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
258 exit 255
259 fi
260
261 if test x$as_have_required = xno
262 then :
263 printf "%s\n" "$0: This script requires a shell more modern than all"
264 printf "%s\n" "$0: the shells that I found on your system."
265 if test ${ZSH_VERSION+y} ; then
266 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 printf "%s\n" "$0: Please tell [email protected] and
270 $0: [email protected] about your system,
271 $0: including any error possibly output before this
272 $0: message. Then install a modern shell, or manually run
273 $0: the script under such a shell if you do have one."
274 fi
275 exit 1
276 fi
277 fi
278 fi
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
284
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
292 {
293 { eval $1=; unset $1;}
294 }
295 as_unset=as_fn_unset
296
297
298 # as_fn_set_status STATUS
299 # -----------------------
300 # Set $? to STATUS, without forking.
301 as_fn_set_status ()
302 {
303 return $1
304 } # as_fn_set_status
305
306 # as_fn_exit STATUS
307 # -----------------
308 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
309 as_fn_exit ()
310 {
311 set +e
312 as_fn_set_status $1
313 exit $1
314 } # as_fn_exit
315 # as_fn_nop
316 # ---------
317 # Do nothing but, unlike ":", preserve the value of $?.
318 as_fn_nop ()
319 {
320 return $?
321 }
322 as_nop=as_fn_nop
323
324 # as_fn_mkdir_p
325 # -------------
326 # Create "$as_dir" as a directory, including parents if necessary.
327 as_fn_mkdir_p ()
328 {
329
330 case $as_dir in #(
331 -*) as_dir=./$as_dir;;
332 esac
333 test -d "$as_dir" || eval $as_mkdir_p || {
334 as_dirs=
335 while :; do
336 case $as_dir in #(
337 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338 *) as_qdir=$as_dir;;
339 esac
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 printf "%s\n" X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)[^/].*/{
352 s//\1/
353 q
354 }
355 /^X\(\/\/\)$/{
356 s//\1/
357 q
358 }
359 /^X\(\/\).*/{
360 s//\1/
361 q
362 }
363 s/.*/./; q'`
364 test -d "$as_dir" && break
365 done
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370 } # as_fn_mkdir_p
371
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
376 {
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
384 # implementations.
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
386 then :
387 eval 'as_fn_append ()
388 {
389 eval $1+=\$2
390 }'
391 else $as_nop
392 as_fn_append ()
393 {
394 eval $1=\$$1\$2
395 }
396 fi # as_fn_append
397
398 # as_fn_arith ARG...
399 # ------------------
400 # Perform arithmetic evaluation on the ARGs, and store the result in the
401 # global $as_val. Take advantage of shells that can avoid forks. The arguments
402 # must be portable across $(()) and expr.
403 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
404 then :
405 eval 'as_fn_arith ()
406 {
407 as_val=$(( $* ))
408 }'
409 else $as_nop
410 as_fn_arith ()
411 {
412 as_val=`expr "$@" || test $? -eq 1`
413 }
414 fi # as_fn_arith
415
416 # as_fn_nop
417 # ---------
418 # Do nothing but, unlike ":", preserve the value of $?.
419 as_fn_nop ()
420 {
421 return $?
422 }
423 as_nop=as_fn_nop
424
425 # as_fn_error STATUS ERROR [LINENO LOG_FD]
426 # ----------------------------------------
427 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
428 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
429 # script with STATUS, using 1 if that was 0.
430 as_fn_error ()
431 {
432 as_status=$1; test $as_status -eq 0 && as_status=1
433 if test "$4"; then
434 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
435 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
436 fi
437 printf "%s\n" "$as_me: error: $2" >&2
438 as_fn_exit $as_status
439 } # as_fn_error
440
441 if expr a : '\(a\)' >/dev/null 2>&1 &&
442 test "X`expr 00001 : '.*\(...\)'`" = X001; then
443 as_expr=expr
444 else
445 as_expr=false
446 fi
447
448 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
449 as_basename=basename
450 else
451 as_basename=false
452 fi
453
454 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
455 as_dirname=dirname
456 else
457 as_dirname=false
458 fi
459
460 as_me=`$as_basename -- "$0" ||
461 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
462 X"$0" : 'X\(//\)$' \| \
463 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
464 printf "%s\n" X/"$0" |
465 sed '/^.*\/\([^/][^/]*\)\/*$/{
466 s//\1/
467 q
468 }
469 /^X\/\(\/\/\)$/{
470 s//\1/
471 q
472 }
473 /^X\/\(\/\).*/{
474 s//\1/
475 q
476 }
477 s/.*/./; q'`
478
479 # Avoid depending upon Character Ranges.
480 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
481 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
482 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
483 as_cr_digits='0123456789'
484 as_cr_alnum=$as_cr_Letters$as_cr_digits
485
486
487 as_lineno_1=$LINENO as_lineno_1a=$LINENO
488 as_lineno_2=$LINENO as_lineno_2a=$LINENO
489 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
490 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
491 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492 sed -n '
493 p
494 /[$]LINENO/=
495 ' <$as_myself |
496 sed '
497 s/[$]LINENO.*/&-/
498 t lineno
499 b
500 :lineno
501 N
502 :loop
503 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
504 t loop
505 s/-\n.*//
506 ' >$as_me.lineno &&
507 chmod +x "$as_me.lineno" ||
508 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
509
510 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
511 # already done that, so ensure we don't try to do so again and fall
512 # in an infinite loop. This has already happened in practice.
513 _as_can_reexec=no; export _as_can_reexec
514 # Don't try to exec as it changes $[0], causing all sort of problems
515 # (the dirname of $[0] is not the place where we might find the
516 # original and so on. Autoconf is especially sensitive to this).
517 . "./$as_me.lineno"
518 # Exit status is that of the last command.
519 exit
520 }
521
522
523 # Determine whether it's possible to make 'echo' print without a newline.
524 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
525 # for compatibility with existing Makefiles.
526 ECHO_C= ECHO_N= ECHO_T=
527 case `echo -n x` in #(((((
528 -n*)
529 case `echo 'xy\c'` in
530 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
531 xy) ECHO_C='\c';;
532 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
533 ECHO_T=' ';;
534 esac;;
535 *)
536 ECHO_N='-n';;
537 esac
538
539 # For backward compatibility with old third-party macros, we provide
540 # the shell variables $as_echo and $as_echo_n. New code should use
541 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
542 as_echo='printf %s\n'
543 as_echo_n='printf %s'
544
545
546 rm -f conf$$ conf$$.exe conf$$.file
547 if test -d conf$$.dir; then
548 rm -f conf$$.dir/conf$$.file
549 else
550 rm -f conf$$.dir
551 mkdir conf$$.dir 2>/dev/null
552 fi
553 if (echo >conf$$.file) 2>/dev/null; then
554 if ln -s conf$$.file conf$$ 2>/dev/null; then
555 as_ln_s='ln -s'
556 # ... but there are two gotchas:
557 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
558 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
559 # In both cases, we have to default to `cp -pR'.
560 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
561 as_ln_s='cp -pR'
562 elif ln conf$$.file conf$$ 2>/dev/null; then
563 as_ln_s=ln
564 else
565 as_ln_s='cp -pR'
566 fi
567 else
568 as_ln_s='cp -pR'
569 fi
570 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
571 rmdir conf$$.dir 2>/dev/null
572
573 if mkdir -p . 2>/dev/null; then
574 as_mkdir_p='mkdir -p "$as_dir"'
575 else
576 test -d ./-p && rmdir ./-p
577 as_mkdir_p=false
578 fi
579
580 as_test_x='test -x'
581 as_executable_p=as_fn_executable_p
582
583 # Sed expression to map a string onto a valid CPP name.
584 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
585
586 # Sed expression to map a string onto a valid variable name.
587 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
588
589
590 test -n "$DJDIR" || exec 7<&0 </dev/null
591 exec 6>&1
592
593 # Name of the host.
594 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
595 # so uname gets run too.
596 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
597
598 #
599 # Initializations.
600 #
601 ac_default_prefix=/usr/local
602 ac_clean_files=
603 ac_config_libobj_dir=.
604 LIBOBJS=
605 cross_compiling=no
606 subdirs=
607 MFLAGS=
608 MAKEFLAGS=
609
610 # Identity of this package.
611 PACKAGE_NAME='Rserve-cxx-client'
612 PACKAGE_TARNAME='rserve-cxx-client'
613 PACKAGE_VERSION='0.1'
614 PACKAGE_STRING='Rserve-cxx-client 0.1'
615 PACKAGE_BUGREPORT='[email protected]'
616 PACKAGE_URL=''
617
618 ac_unique_file="Rconnection.cc"
619 # Factoring default headers for most tests.
620 ac_includes_default="\
621 #include <stddef.h>
622 #ifdef HAVE_STDIO_H
623 # include <stdio.h>
624 #endif
625 #ifdef HAVE_STDLIB_H
626 # include <stdlib.h>
627 #endif
628 #ifdef HAVE_STRING_H
629 # include <string.h>
630 #endif
631 #ifdef HAVE_INTTYPES_H
632 # include <inttypes.h>
633 #endif
634 #ifdef HAVE_STDINT_H
635 # include <stdint.h>
636 #endif
637 #ifdef HAVE_STRINGS_H
638 # include <strings.h>
639 #endif
640 #ifdef HAVE_SYS_TYPES_H
641 # include <sys/types.h>
642 #endif
643 #ifdef HAVE_SYS_STAT_H
644 # include <sys/stat.h>
645 #endif
646 #ifdef HAVE_UNISTD_H
647 # include <unistd.h>
648 #endif"
649
650 ac_header_c_list=
651 ac_func_c_list=
652 ac_subst_vars='LTLIBOBJS
653 LIBOBJS
654 ac_ct_CXX
655 CXXFLAGS
656 CXX
657 OBJEXT
658 EXEEXT
659 ac_ct_CC
660 CPPFLAGS
661 LDFLAGS
662 CFLAGS
663 CC
664 target_alias
665 host_alias
666 build_alias
667 LIBS
668 ECHO_T
669 ECHO_N
670 ECHO_C
671 DEFS
672 mandir
673 localedir
674 libdir
675 psdir
676 pdfdir
677 dvidir
678 htmldir
679 infodir
680 docdir
681 oldincludedir
682 includedir
683 runstatedir
684 localstatedir
685 sharedstatedir
686 sysconfdir
687 datadir
688 datarootdir
689 libexecdir
690 sbindir
691 bindir
692 program_transform_name
693 prefix
694 exec_prefix
695 PACKAGE_URL
696 PACKAGE_BUGREPORT
697 PACKAGE_STRING
698 PACKAGE_VERSION
699 PACKAGE_TARNAME
700 PACKAGE_NAME
701 PATH_SEPARATOR
702 SHELL'
703 ac_subst_files=''
704 ac_user_opts='
705 enable_option_checking
706 '
707 ac_precious_vars='build_alias
708 host_alias
709 target_alias
710 CC
711 CFLAGS
712 LDFLAGS
713 LIBS
714 CPPFLAGS
715 CXX
716 CXXFLAGS
717 CCC'
718
719
720 # Initialize some variables set by options.
721 ac_init_help=
722 ac_init_version=false
723 ac_unrecognized_opts=
724 ac_unrecognized_sep=
725 # The variables have the same names as the options, with
726 # dashes changed to underlines.
727 cache_file=/dev/null
728 exec_prefix=NONE
729 no_create=
730 no_recursion=
731 prefix=NONE
732 program_prefix=NONE
733 program_suffix=NONE
734 program_transform_name=s,x,x,
735 silent=
736 site=
737 srcdir=
738 verbose=
739 x_includes=NONE
740 x_libraries=NONE
741
742 # Installation directory options.
743 # These are left unexpanded so users can "make install exec_prefix=/foo"
744 # and all the variables that are supposed to be based on exec_prefix
745 # by default will actually change.
746 # Use braces instead of parens because sh, perl, etc. also accept them.
747 # (The list follows the same order as the GNU Coding Standards.)
748 bindir='${exec_prefix}/bin'
749 sbindir='${exec_prefix}/sbin'
750 libexecdir='${exec_prefix}/libexec'
751 datarootdir='${prefix}/share'
752 datadir='${datarootdir}'
753 sysconfdir='${prefix}/etc'
754 sharedstatedir='${prefix}/com'
755 localstatedir='${prefix}/var'
756 runstatedir='${localstatedir}/run'
757 includedir='${prefix}/include'
758 oldincludedir='/usr/include'
759 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
760 infodir='${datarootdir}/info'
761 htmldir='${docdir}'
762 dvidir='${docdir}'
763 pdfdir='${docdir}'
764 psdir='${docdir}'
765 libdir='${exec_prefix}/lib'
766 localedir='${datarootdir}/locale'
767 mandir='${datarootdir}/man'
768
769 ac_prev=
770 ac_dashdash=
771 for ac_option
772 do
773 # If the previous option needs an argument, assign it.
774 if test -n "$ac_prev"; then
775 eval $ac_prev=\$ac_option
776 ac_prev=
777 continue
778 fi
779
780 case $ac_option in
781 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
782 *=) ac_optarg= ;;
783 *) ac_optarg=yes ;;
784 esac
785
786 case $ac_dashdash$ac_option in
787 --)
788 ac_dashdash=yes ;;
789
790 -bindir | --bindir | --bindi | --bind | --bin | --bi)
791 ac_prev=bindir ;;
792 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
793 bindir=$ac_optarg ;;
794
795 -build | --build | --buil | --bui | --bu)
796 ac_prev=build_alias ;;
797 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
798 build_alias=$ac_optarg ;;
799
800 -cache-file | --cache-file | --cache-fil | --cache-fi \
801 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
802 ac_prev=cache_file ;;
803 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
804 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
805 cache_file=$ac_optarg ;;
806
807 --config-cache | -C)
808 cache_file=config.cache ;;
809
810 -datadir | --datadir | --datadi | --datad)
811 ac_prev=datadir ;;
812 -datadir=* | --datadir=* | --datadi=* | --datad=*)
813 datadir=$ac_optarg ;;
814
815 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
816 | --dataroo | --dataro | --datar)
817 ac_prev=datarootdir ;;
818 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
819 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
820 datarootdir=$ac_optarg ;;
821
822 -disable-* | --disable-*)
823 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
824 # Reject names that are not valid shell variable names.
825 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
826 as_fn_error $? "invalid feature name: \`$ac_useropt'"
827 ac_useropt_orig=$ac_useropt
828 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
829 case $ac_user_opts in
830 *"
831 "enable_$ac_useropt"
832 "*) ;;
833 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
834 ac_unrecognized_sep=', ';;
835 esac
836 eval enable_$ac_useropt=no ;;
837
838 -docdir | --docdir | --docdi | --doc | --do)
839 ac_prev=docdir ;;
840 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
841 docdir=$ac_optarg ;;
842
843 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
844 ac_prev=dvidir ;;
845 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
846 dvidir=$ac_optarg ;;
847
848 -enable-* | --enable-*)
849 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
850 # Reject names that are not valid shell variable names.
851 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
852 as_fn_error $? "invalid feature name: \`$ac_useropt'"
853 ac_useropt_orig=$ac_useropt
854 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
855 case $ac_user_opts in
856 *"
857 "enable_$ac_useropt"
858 "*) ;;
859 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
860 ac_unrecognized_sep=', ';;
861 esac
862 eval enable_$ac_useropt=\$ac_optarg ;;
863
864 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
865 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
866 | --exec | --exe | --ex)
867 ac_prev=exec_prefix ;;
868 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
869 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
870 | --exec=* | --exe=* | --ex=*)
871 exec_prefix=$ac_optarg ;;
872
873 -gas | --gas | --ga | --g)
874 # Obsolete; use --with-gas.
875 with_gas=yes ;;
876
877 -help | --help | --hel | --he | -h)
878 ac_init_help=long ;;
879 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
880 ac_init_help=recursive ;;
881 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
882 ac_init_help=short ;;
883
884 -host | --host | --hos | --ho)
885 ac_prev=host_alias ;;
886 -host=* | --host=* | --hos=* | --ho=*)
887 host_alias=$ac_optarg ;;
888
889 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
890 ac_prev=htmldir ;;
891 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
892 | --ht=*)
893 htmldir=$ac_optarg ;;
894
895 -includedir | --includedir | --includedi | --included | --include \
896 | --includ | --inclu | --incl | --inc)
897 ac_prev=includedir ;;
898 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
899 | --includ=* | --inclu=* | --incl=* | --inc=*)
900 includedir=$ac_optarg ;;
901
902 -infodir | --infodir | --infodi | --infod | --info | --inf)
903 ac_prev=infodir ;;
904 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
905 infodir=$ac_optarg ;;
906
907 -libdir | --libdir | --libdi | --libd)
908 ac_prev=libdir ;;
909 -libdir=* | --libdir=* | --libdi=* | --libd=*)
910 libdir=$ac_optarg ;;
911
912 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
913 | --libexe | --libex | --libe)
914 ac_prev=libexecdir ;;
915 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
916 | --libexe=* | --libex=* | --libe=*)
917 libexecdir=$ac_optarg ;;
918
919 -localedir | --localedir | --localedi | --localed | --locale)
920 ac_prev=localedir ;;
921 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
922 localedir=$ac_optarg ;;
923
924 -localstatedir | --localstatedir | --localstatedi | --localstated \
925 | --localstate | --localstat | --localsta | --localst | --locals)
926 ac_prev=localstatedir ;;
927 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
928 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
929 localstatedir=$ac_optarg ;;
930
931 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
932 ac_prev=mandir ;;
933 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
934 mandir=$ac_optarg ;;
935
936 -nfp | --nfp | --nf)
937 # Obsolete; use --without-fp.
938 with_fp=no ;;
939
940 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
941 | --no-cr | --no-c | -n)
942 no_create=yes ;;
943
944 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
945 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
946 no_recursion=yes ;;
947
948 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
949 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
950 | --oldin | --oldi | --old | --ol | --o)
951 ac_prev=oldincludedir ;;
952 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
953 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
954 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
955 oldincludedir=$ac_optarg ;;
956
957 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
958 ac_prev=prefix ;;
959 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
960 prefix=$ac_optarg ;;
961
962 -program-prefix | --program-prefix | --program-prefi | --program-pref \
963 | --program-pre | --program-pr | --program-p)
964 ac_prev=program_prefix ;;
965 -program-prefix=* | --program-prefix=* | --program-prefi=* \
966 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
967 program_prefix=$ac_optarg ;;
968
969 -program-suffix | --program-suffix | --program-suffi | --program-suff \
970 | --program-suf | --program-su | --program-s)
971 ac_prev=program_suffix ;;
972 -program-suffix=* | --program-suffix=* | --program-suffi=* \
973 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
974 program_suffix=$ac_optarg ;;
975
976 -program-transform-name | --program-transform-name \
977 | --program-transform-nam | --program-transform-na \
978 | --program-transform-n | --program-transform- \
979 | --program-transform | --program-transfor \
980 | --program-transfo | --program-transf \
981 | --program-trans | --program-tran \
982 | --progr-tra | --program-tr | --program-t)
983 ac_prev=program_transform_name ;;
984 -program-transform-name=* | --program-transform-name=* \
985 | --program-transform-nam=* | --program-transform-na=* \
986 | --program-transform-n=* | --program-transform-=* \
987 | --program-transform=* | --program-transfor=* \
988 | --program-transfo=* | --program-transf=* \
989 | --program-trans=* | --program-tran=* \
990 | --progr-tra=* | --program-tr=* | --program-t=*)
991 program_transform_name=$ac_optarg ;;
992
993 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
994 ac_prev=pdfdir ;;
995 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
996 pdfdir=$ac_optarg ;;
997
998 -psdir | --psdir | --psdi | --psd | --ps)
999 ac_prev=psdir ;;
1000 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1001 psdir=$ac_optarg ;;
1002
1003 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1004 | -silent | --silent | --silen | --sile | --sil)
1005 silent=yes ;;
1006
1007 -runstatedir | --runstatedir | --runstatedi | --runstated \
1008 | --runstate | --runstat | --runsta | --runst | --runs \
1009 | --run | --ru | --r)
1010 ac_prev=runstatedir ;;
1011 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1012 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1013 | --run=* | --ru=* | --r=*)
1014 runstatedir=$ac_optarg ;;
1015
1016 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1017 ac_prev=sbindir ;;
1018 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1019 | --sbi=* | --sb=*)
1020 sbindir=$ac_optarg ;;
1021
1022 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1023 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1024 | --sharedst | --shareds | --shared | --share | --shar \
1025 | --sha | --sh)
1026 ac_prev=sharedstatedir ;;
1027 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1028 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1029 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1030 | --sha=* | --sh=*)
1031 sharedstatedir=$ac_optarg ;;
1032
1033 -site | --site | --sit)
1034 ac_prev=site ;;
1035 -site=* | --site=* | --sit=*)
1036 site=$ac_optarg ;;
1037
1038 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1039 ac_prev=srcdir ;;
1040 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1041 srcdir=$ac_optarg ;;
1042
1043 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1044 | --syscon | --sysco | --sysc | --sys | --sy)
1045 ac_prev=sysconfdir ;;
1046 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1047 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1048 sysconfdir=$ac_optarg ;;
1049
1050 -target | --target | --targe | --targ | --tar | --ta | --t)
1051 ac_prev=target_alias ;;
1052 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1053 target_alias=$ac_optarg ;;
1054
1055 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1056 verbose=yes ;;
1057
1058 -version | --version | --versio | --versi | --vers | -V)
1059 ac_init_version=: ;;
1060
1061 -with-* | --with-*)
1062 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1063 # Reject names that are not valid shell variable names.
1064 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1065 as_fn_error $? "invalid package name: \`$ac_useropt'"
1066 ac_useropt_orig=$ac_useropt
1067 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1068 case $ac_user_opts in
1069 *"
1070 "with_$ac_useropt"
1071 "*) ;;
1072 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1073 ac_unrecognized_sep=', ';;
1074 esac
1075 eval with_$ac_useropt=\$ac_optarg ;;
1076
1077 -without-* | --without-*)
1078 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1079 # Reject names that are not valid shell variable names.
1080 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1081 as_fn_error $? "invalid package name: \`$ac_useropt'"
1082 ac_useropt_orig=$ac_useropt
1083 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1084 case $ac_user_opts in
1085 *"
1086 "with_$ac_useropt"
1087 "*) ;;
1088 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1089 ac_unrecognized_sep=', ';;
1090 esac
1091 eval with_$ac_useropt=no ;;
1092
1093 --x)
1094 # Obsolete; use --with-x.
1095 with_x=yes ;;
1096
1097 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1098 | --x-incl | --x-inc | --x-in | --x-i)
1099 ac_prev=x_includes ;;
1100 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1101 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1102 x_includes=$ac_optarg ;;
1103
1104 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1105 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1106 ac_prev=x_libraries ;;
1107 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1108 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1109 x_libraries=$ac_optarg ;;
1110
1111 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1112 Try \`$0 --help' for more information"
1113 ;;
1114
1115 *=*)
1116 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1117 # Reject names that are not valid shell variable names.
1118 case $ac_envvar in #(
1119 '' | [0-9]* | *[!_$as_cr_alnum]* )
1120 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1121 esac
1122 eval $ac_envvar=\$ac_optarg
1123 export $ac_envvar ;;
1124
1125 *)
1126 # FIXME: should be removed in autoconf 3.0.
1127 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1128 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1129 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1130 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1131 ;;
1132
1133 esac
1134 done
1135
1136 if test -n "$ac_prev"; then
1137 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1138 as_fn_error $? "missing argument to $ac_option"
1139 fi
1140
1141 if test -n "$ac_unrecognized_opts"; then
1142 case $enable_option_checking in
1143 no) ;;
1144 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1145 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1146 esac
1147 fi
1148
1149 # Check all directory arguments for consistency.
1150 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1151 datadir sysconfdir sharedstatedir localstatedir includedir \
1152 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1153 libdir localedir mandir runstatedir
1154 do
1155 eval ac_val=\$$ac_var
1156 # Remove trailing slashes.
1157 case $ac_val in
1158 */ )
1159 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1160 eval $ac_var=\$ac_val;;
1161 esac
1162 # Be sure to have absolute directory names.
1163 case $ac_val in
1164 [\\/$]* | ?:[\\/]* ) continue;;
1165 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1166 esac
1167 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1168 done
1169
1170 # There might be people who depend on the old broken behavior: `$host'
1171 # used to hold the argument of --host etc.
1172 # FIXME: To remove some day.
1173 build=$build_alias
1174 host=$host_alias
1175 target=$target_alias
1176
1177 # FIXME: To remove some day.
1178 if test "x$host_alias" != x; then
1179 if test "x$build_alias" = x; then
1180 cross_compiling=maybe
1181 elif test "x$build_alias" != "x$host_alias"; then
1182 cross_compiling=yes
1183 fi
1184 fi
1185
1186 ac_tool_prefix=
1187 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1188
1189 test "$silent" = yes && exec 6>/dev/null
1190
1191
1192 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1193 ac_ls_di=`ls -di .` &&
1194 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1195 as_fn_error $? "working directory cannot be determined"
1196 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1197 as_fn_error $? "pwd does not report name of working directory"
1198
1199
1200 # Find the source files, if location was not specified.
1201 if test -z "$srcdir"; then
1202 ac_srcdir_defaulted=yes
1203 # Try the directory containing this script, then the parent directory.
1204 ac_confdir=`$as_dirname -- "$as_myself" ||
1205 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1206 X"$as_myself" : 'X\(//\)[^/]' \| \
1207 X"$as_myself" : 'X\(//\)$' \| \
1208 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1209 printf "%s\n" X"$as_myself" |
1210 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1211 s//\1/
1212 q
1213 }
1214 /^X\(\/\/\)[^/].*/{
1215 s//\1/
1216 q
1217 }
1218 /^X\(\/\/\)$/{
1219 s//\1/
1220 q
1221 }
1222 /^X\(\/\).*/{
1223 s//\1/
1224 q
1225 }
1226 s/.*/./; q'`
1227 srcdir=$ac_confdir
1228 if test ! -r "$srcdir/$ac_unique_file"; then
1229 srcdir=..
1230 fi
1231 else
1232 ac_srcdir_defaulted=no
1233 fi
1234 if test ! -r "$srcdir/$ac_unique_file"; then
1235 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1236 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1237 fi
1238 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1239 ac_abs_confdir=`(
1240 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1241 pwd)`
1242 # When building in place, set srcdir=.
1243 if test "$ac_abs_confdir" = "$ac_pwd"; then
1244 srcdir=.
1245 fi
1246 # Remove unnecessary trailing slashes from srcdir.
1247 # Double slashes in file names in object file debugging info
1248 # mess up M-x gdb in Emacs.
1249 case $srcdir in
1250 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1251 esac
1252 for ac_var in $ac_precious_vars; do
1253 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1254 eval ac_env_${ac_var}_value=\$${ac_var}
1255 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1256 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1257 done
1258
1259 #
1260 # Report the --help message.
1261 #
1262 if test "$ac_init_help" = "long"; then
1263 # Omit some internal or obsolete options to make the list less imposing.
1264 # This message is too long to be a string in the A/UX 3.1 sh.
1265 cat <<_ACEOF
1266 \`configure' configures Rserve-cxx-client 0.1 to adapt to many kinds of systems.
1267
1268 Usage: $0 [OPTION]... [VAR=VALUE]...
1269
1270 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1271 VAR=VALUE. See below for descriptions of some of the useful variables.
1272
1273 Defaults for the options are specified in brackets.
1274
1275 Configuration:
1276 -h, --help display this help and exit
1277 --help=short display options specific to this package
1278 --help=recursive display the short help of all the included packages
1279 -V, --version display version information and exit
1280 -q, --quiet, --silent do not print \`checking ...' messages
1281 --cache-file=FILE cache test results in FILE [disabled]
1282 -C, --config-cache alias for \`--cache-file=config.cache'
1283 -n, --no-create do not create output files
1284 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1285
1286 Installation directories:
1287 --prefix=PREFIX install architecture-independent files in PREFIX
1288 [$ac_default_prefix]
1289 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1290 [PREFIX]
1291
1292 By default, \`make install' will install all the files in
1293 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1294 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1295 for instance \`--prefix=\$HOME'.
1296
1297 For better control, use the options below.
1298
1299 Fine tuning of the installation directories:
1300 --bindir=DIR user executables [EPREFIX/bin]
1301 --sbindir=DIR system admin executables [EPREFIX/sbin]
1302 --libexecdir=DIR program executables [EPREFIX/libexec]
1303 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1304 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1305 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1306 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1307 --libdir=DIR object code libraries [EPREFIX/lib]
1308 --includedir=DIR C header files [PREFIX/include]
1309 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1310 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1311 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1312 --infodir=DIR info documentation [DATAROOTDIR/info]
1313 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1314 --mandir=DIR man documentation [DATAROOTDIR/man]
1315 --docdir=DIR documentation root
1316 [DATAROOTDIR/doc/rserve-cxx-client]
1317 --htmldir=DIR html documentation [DOCDIR]
1318 --dvidir=DIR dvi documentation [DOCDIR]
1319 --pdfdir=DIR pdf documentation [DOCDIR]
1320 --psdir=DIR ps documentation [DOCDIR]
1321 _ACEOF
1322
1323 cat <<\_ACEOF
1324 _ACEOF
1325 fi
1326
1327 if test -n "$ac_init_help"; then
1328 case $ac_init_help in
1329 short | recursive ) echo "Configuration of Rserve-cxx-client 0.1:";;
1330 esac
1331 cat <<\_ACEOF
1332
1333 Some influential environment variables:
1334 CC C compiler command
1335 CFLAGS C compiler flags
1336 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1337 nonstandard directory <lib dir>
1338 LIBS libraries to pass to the linker, e.g. -l<library>
1339 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1340 you have headers in a nonstandard directory <include dir>
1341 CXX C++ compiler command
1342 CXXFLAGS C++ compiler flags
1343
1344 Use these variables to override the choices made by `configure' or to help
1345 it to find libraries and programs with nonstandard names/locations.
1346
1347 Report bugs to <[email protected]>.
1348 _ACEOF
1349 ac_status=$?
1350 fi
1351
1352 if test "$ac_init_help" = "recursive"; then
1353 # If there are subdirs, report their specific --help.
1354 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1355 test -d "$ac_dir" ||
1356 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1357 continue
1358 ac_builddir=.
1359
1360 case "$ac_dir" in
1361 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1362 *)
1363 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1364 # A ".." for each directory in $ac_dir_suffix.
1365 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1366 case $ac_top_builddir_sub in
1367 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1368 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1369 esac ;;
1370 esac
1371 ac_abs_top_builddir=$ac_pwd
1372 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1373 # for backward compatibility:
1374 ac_top_builddir=$ac_top_build_prefix
1375
1376 case $srcdir in
1377 .) # We are building in place.
1378 ac_srcdir=.
1379 ac_top_srcdir=$ac_top_builddir_sub
1380 ac_abs_top_srcdir=$ac_pwd ;;
1381 [\\/]* | ?:[\\/]* ) # Absolute name.
1382 ac_srcdir=$srcdir$ac_dir_suffix;
1383 ac_top_srcdir=$srcdir
1384 ac_abs_top_srcdir=$srcdir ;;
1385 *) # Relative name.
1386 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1387 ac_top_srcdir=$ac_top_build_prefix$srcdir
1388 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1389 esac
1390 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1391
1392 cd "$ac_dir" || { ac_status=$?; continue; }
1393 # Check for configure.gnu first; this name is used for a wrapper for
1394 # Metaconfig's "Configure" on case-insensitive file systems.
1395 if test -f "$ac_srcdir/configure.gnu"; then
1396 echo &&
1397 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1398 elif test -f "$ac_srcdir/configure"; then
1399 echo &&
1400 $SHELL "$ac_srcdir/configure" --help=recursive
1401 else
1402 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1403 fi || ac_status=$?
1404 cd "$ac_pwd" || { ac_status=$?; break; }
1405 done
1406 fi
1407
1408 test -n "$ac_init_help" && exit $ac_status
1409 if $ac_init_version; then
1410 cat <<\_ACEOF
1411 Rserve-cxx-client configure 0.1
1412 generated by GNU Autoconf 2.71
1413
1414 Copyright (C) 2021 Free Software Foundation, Inc.
1415 This configure script is free software; the Free Software Foundation
1416 gives unlimited permission to copy, distribute and modify it.
1417 _ACEOF
1418 exit
1419 fi
1420
1421 ## ------------------------ ##
1422 ## Autoconf initialization. ##
1423 ## ------------------------ ##
1424
1425 # ac_fn_c_try_compile LINENO
1426 # --------------------------
1427 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1428 ac_fn_c_try_compile ()
1429 {
1430 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1431 rm -f conftest.$ac_objext conftest.beam
1432 if { { ac_try="$ac_compile"
1433 case "(($ac_try" in
1434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1435 *) ac_try_echo=$ac_try;;
1436 esac
1437 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1438 printf "%s\n" "$ac_try_echo"; } >&5
1439 (eval "$ac_compile") 2>conftest.err
1440 ac_status=$?
1441 if test -s conftest.err; then
1442 grep -v '^ *+' conftest.err >conftest.er1
1443 cat conftest.er1 >&5
1444 mv -f conftest.er1 conftest.err
1445 fi
1446 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1447 test $ac_status = 0; } && {
1448 test -z "$ac_c_werror_flag" ||
1449 test ! -s conftest.err
1450 } && test -s conftest.$ac_objext
1451 then :
1452 ac_retval=0
1453 else $as_nop
1454 printf "%s\n" "$as_me: failed program was:" >&5
1455 sed 's/^/| /' conftest.$ac_ext >&5
1456
1457 ac_retval=1
1458 fi
1459 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1460 as_fn_set_status $ac_retval
1461
1462 } # ac_fn_c_try_compile
1463
1464 # ac_fn_cxx_try_compile LINENO
1465 # ----------------------------
1466 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1467 ac_fn_cxx_try_compile ()
1468 {
1469 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1470 rm -f conftest.$ac_objext conftest.beam
1471 if { { ac_try="$ac_compile"
1472 case "(($ac_try" in
1473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1474 *) ac_try_echo=$ac_try;;
1475 esac
1476 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1477 printf "%s\n" "$ac_try_echo"; } >&5
1478 (eval "$ac_compile") 2>conftest.err
1479 ac_status=$?
1480 if test -s conftest.err; then
1481 grep -v '^ *+' conftest.err >conftest.er1
1482 cat conftest.er1 >&5
1483 mv -f conftest.er1 conftest.err
1484 fi
1485 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1486 test $ac_status = 0; } && {
1487 test -z "$ac_cxx_werror_flag" ||
1488 test ! -s conftest.err
1489 } && test -s conftest.$ac_objext
1490 then :
1491 ac_retval=0
1492 else $as_nop
1493 printf "%s\n" "$as_me: failed program was:" >&5
1494 sed 's/^/| /' conftest.$ac_ext >&5
1495
1496 ac_retval=1
1497 fi
1498 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1499 as_fn_set_status $ac_retval
1500
1501 } # ac_fn_cxx_try_compile
1502
1503 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1504 # -------------------------------------------------------
1505 # Tests whether HEADER exists and can be compiled using the include files in
1506 # INCLUDES, setting the cache variable VAR accordingly.
1507 ac_fn_c_check_header_compile ()
1508 {
1509 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1511 printf %s "checking for $2... " >&6; }
1512 if eval test \${$3+y}
1513 then :
1514 printf %s "(cached) " >&6
1515 else $as_nop
1516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1517 /* end confdefs.h. */
1518 $4
1519 #include <$2>
1520 _ACEOF
1521 if ac_fn_c_try_compile "$LINENO"
1522 then :
1523 eval "$3=yes"
1524 else $as_nop
1525 eval "$3=no"
1526 fi
1527 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1528 fi
1529 eval ac_res=\$$3
1530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1531 printf "%s\n" "$ac_res" >&6; }
1532 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1533
1534 } # ac_fn_c_check_header_compile
1535
1536 # ac_fn_c_try_run LINENO
1537 # ----------------------
1538 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1539 # executables *can* be run.
1540 ac_fn_c_try_run ()
1541 {
1542 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1543 if { { ac_try="$ac_link"
1544 case "(($ac_try" in
1545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1546 *) ac_try_echo=$ac_try;;
1547 esac
1548 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1549 printf "%s\n" "$ac_try_echo"; } >&5
1550 (eval "$ac_link") 2>&5
1551 ac_status=$?
1552 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1553 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1554 { { case "(($ac_try" in
1555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1556 *) ac_try_echo=$ac_try;;
1557 esac
1558 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1559 printf "%s\n" "$ac_try_echo"; } >&5
1560 (eval "$ac_try") 2>&5
1561 ac_status=$?
1562 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1563 test $ac_status = 0; }; }
1564 then :
1565 ac_retval=0
1566 else $as_nop
1567 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1568 printf "%s\n" "$as_me: failed program was:" >&5
1569 sed 's/^/| /' conftest.$ac_ext >&5
1570
1571 ac_retval=$ac_status
1572 fi
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_run
1578
1579 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1580 # -------------------------------------------
1581 # Tests whether TYPE exists after having included INCLUDES, setting cache
1582 # variable VAR accordingly.
1583 ac_fn_c_check_type ()
1584 {
1585 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1587 printf %s "checking for $2... " >&6; }
1588 if eval test \${$3+y}
1589 then :
1590 printf %s "(cached) " >&6
1591 else $as_nop
1592 eval "$3=no"
1593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1594 /* end confdefs.h. */
1595 $4
1596 int
1597 main (void)
1598 {
1599 if (sizeof ($2))
1600 return 0;
1601 ;
1602 return 0;
1603 }
1604 _ACEOF
1605 if ac_fn_c_try_compile "$LINENO"
1606 then :
1607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1608 /* end confdefs.h. */
1609 $4
1610 int
1611 main (void)
1612 {
1613 if (sizeof (($2)))
1614 return 0;
1615 ;
1616 return 0;
1617 }
1618 _ACEOF
1619 if ac_fn_c_try_compile "$LINENO"
1620 then :
1621
1622 else $as_nop
1623 eval "$3=yes"
1624 fi
1625 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1626 fi
1627 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1628 fi
1629 eval ac_res=\$$3
1630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1631 printf "%s\n" "$ac_res" >&6; }
1632 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1633
1634 } # ac_fn_c_check_type
1635
1636 # ac_fn_c_try_link LINENO
1637 # -----------------------
1638 # Try to link conftest.$ac_ext, and return whether this succeeded.
1639 ac_fn_c_try_link ()
1640 {
1641 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1642 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1643 if { { ac_try="$ac_link"
1644 case "(($ac_try" in
1645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1646 *) ac_try_echo=$ac_try;;
1647 esac
1648 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1649 printf "%s\n" "$ac_try_echo"; } >&5
1650 (eval "$ac_link") 2>conftest.err
1651 ac_status=$?
1652 if test -s conftest.err; then
1653 grep -v '^ *+' conftest.err >conftest.er1
1654 cat conftest.er1 >&5
1655 mv -f conftest.er1 conftest.err
1656 fi
1657 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1658 test $ac_status = 0; } && {
1659 test -z "$ac_c_werror_flag" ||
1660 test ! -s conftest.err
1661 } && test -s conftest$ac_exeext && {
1662 test "$cross_compiling" = yes ||
1663 test -x conftest$ac_exeext
1664 }
1665 then :
1666 ac_retval=0
1667 else $as_nop
1668 printf "%s\n" "$as_me: failed program was:" >&5
1669 sed 's/^/| /' conftest.$ac_ext >&5
1670
1671 ac_retval=1
1672 fi
1673 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1674 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1675 # interfere with the next link command; also delete a directory that is
1676 # left behind by Apple's compiler. We do this before executing the actions.
1677 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1678 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1679 as_fn_set_status $ac_retval
1680
1681 } # ac_fn_c_try_link
1682
1683 # ac_fn_c_check_func LINENO FUNC VAR
1684 # ----------------------------------
1685 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1686 ac_fn_c_check_func ()
1687 {
1688 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1690 printf %s "checking for $2... " >&6; }
1691 if eval test \${$3+y}
1692 then :
1693 printf %s "(cached) " >&6
1694 else $as_nop
1695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1696 /* end confdefs.h. */
1697 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1698 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1699 #define $2 innocuous_$2
1700
1701 /* System header to define __stub macros and hopefully few prototypes,
1702 which can conflict with char $2 (); below. */
1703
1704 #include <limits.h>
1705 #undef $2
1706
1707 /* Override any GCC internal prototype to avoid an error.
1708 Use char because int might match the return type of a GCC
1709 builtin and then its argument prototype would still apply. */
1710 #ifdef __cplusplus
1711 extern "C"
1712 #endif
1713 char $2 ();
1714 /* The GNU C library defines this for functions which it implements
1715 to always fail with ENOSYS. Some functions are actually named
1716 something starting with __ and the normal name is an alias. */
1717 #if defined __stub_$2 || defined __stub___$2
1718 choke me
1719 #endif
1720
1721 int
1722 main (void)
1723 {
1724 return $2 ();
1725 ;
1726 return 0;
1727 }
1728 _ACEOF
1729 if ac_fn_c_try_link "$LINENO"
1730 then :
1731 eval "$3=yes"
1732 else $as_nop
1733 eval "$3=no"
1734 fi
1735 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1736 conftest$ac_exeext conftest.$ac_ext
1737 fi
1738 eval ac_res=\$$3
1739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1740 printf "%s\n" "$ac_res" >&6; }
1741 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1742
1743 } # ac_fn_c_check_func
1744 ac_configure_args_raw=
1745 for ac_arg
1746 do
1747 case $ac_arg in
1748 *\'*)
1749 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1750 esac
1751 as_fn_append ac_configure_args_raw " '$ac_arg'"
1752 done
1753
1754 case $ac_configure_args_raw in
1755 *$as_nl*)
1756 ac_safe_unquote= ;;
1757 *)
1758 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1759 ac_unsafe_a="$ac_unsafe_z#~"
1760 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1761 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1762 esac
1763
1764 cat >config.log <<_ACEOF
1765 This file contains any messages produced by compilers while
1766 running configure, to aid debugging if configure makes a mistake.
1767
1768 It was created by Rserve-cxx-client $as_me 0.1, which was
1769 generated by GNU Autoconf 2.71. Invocation command line was
1770
1771 $ $0$ac_configure_args_raw
1772
1773 _ACEOF
1774 exec 5>>config.log
1775 {
1776 cat <<_ASUNAME
1777 ## --------- ##
1778 ## Platform. ##
1779 ## --------- ##
1780
1781 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1782 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1783 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1784 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1785 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1786
1787 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1788 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1789
1790 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1791 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1792 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1793 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1794 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1795 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1796 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1797
1798 _ASUNAME
1799
1800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1801 for as_dir in $PATH
1802 do
1803 IFS=$as_save_IFS
1804 case $as_dir in #(((
1805 '') as_dir=./ ;;
1806 */) ;;
1807 *) as_dir=$as_dir/ ;;
1808 esac
1809 printf "%s\n" "PATH: $as_dir"
1810 done
1811 IFS=$as_save_IFS
1812
1813 } >&5
1814
1815 cat >&5 <<_ACEOF
1816
1817
1818 ## ----------- ##
1819 ## Core tests. ##
1820 ## ----------- ##
1821
1822 _ACEOF
1823
1824
1825 # Keep a trace of the command line.
1826 # Strip out --no-create and --no-recursion so they do not pile up.
1827 # Strip out --silent because we don't want to record it for future runs.
1828 # Also quote any args containing shell meta-characters.
1829 # Make two passes to allow for proper duplicate-argument suppression.
1830 ac_configure_args=
1831 ac_configure_args0=
1832 ac_configure_args1=
1833 ac_must_keep_next=false
1834 for ac_pass in 1 2
1835 do
1836 for ac_arg
1837 do
1838 case $ac_arg in
1839 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1840 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1841 | -silent | --silent | --silen | --sile | --sil)
1842 continue ;;
1843 *\'*)
1844 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1845 esac
1846 case $ac_pass in
1847 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1848 2)
1849 as_fn_append ac_configure_args1 " '$ac_arg'"
1850 if test $ac_must_keep_next = true; then
1851 ac_must_keep_next=false # Got value, back to normal.
1852 else
1853 case $ac_arg in
1854 *=* | --config-cache | -C | -disable-* | --disable-* \
1855 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1856 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1857 | -with-* | --with-* | -without-* | --without-* | --x)
1858 case "$ac_configure_args0 " in
1859 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1860 esac
1861 ;;
1862 -* ) ac_must_keep_next=true ;;
1863 esac
1864 fi
1865 as_fn_append ac_configure_args " '$ac_arg'"
1866 ;;
1867 esac
1868 done
1869 done
1870 { ac_configure_args0=; unset ac_configure_args0;}
1871 { ac_configure_args1=; unset ac_configure_args1;}
1872
1873 # When interrupted or exit'd, cleanup temporary files, and complete
1874 # config.log. We remove comments because anyway the quotes in there
1875 # would cause problems or look ugly.
1876 # WARNING: Use '\'' to represent an apostrophe within the trap.
1877 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1878 trap 'exit_status=$?
1879 # Sanitize IFS.
1880 IFS=" "" $as_nl"
1881 # Save into config.log some information that might help in debugging.
1882 {
1883 echo
1884
1885 printf "%s\n" "## ---------------- ##
1886 ## Cache variables. ##
1887 ## ---------------- ##"
1888 echo
1889 # The following way of writing the cache mishandles newlines in values,
1890 (
1891 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1892 eval ac_val=\$$ac_var
1893 case $ac_val in #(
1894 *${as_nl}*)
1895 case $ac_var in #(
1896 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1897 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1898 esac
1899 case $ac_var in #(
1900 _ | IFS | as_nl) ;; #(
1901 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1902 *) { eval $ac_var=; unset $ac_var;} ;;
1903 esac ;;
1904 esac
1905 done
1906 (set) 2>&1 |
1907 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1908 *${as_nl}ac_space=\ *)
1909 sed -n \
1910 "s/'\''/'\''\\\\'\'''\''/g;
1911 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1912 ;; #(
1913 *)
1914 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1915 ;;
1916 esac |
1917 sort
1918 )
1919 echo
1920
1921 printf "%s\n" "## ----------------- ##
1922 ## Output variables. ##
1923 ## ----------------- ##"
1924 echo
1925 for ac_var in $ac_subst_vars
1926 do
1927 eval ac_val=\$$ac_var
1928 case $ac_val in
1929 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1930 esac
1931 printf "%s\n" "$ac_var='\''$ac_val'\''"
1932 done | sort
1933 echo
1934
1935 if test -n "$ac_subst_files"; then
1936 printf "%s\n" "## ------------------- ##
1937 ## File substitutions. ##
1938 ## ------------------- ##"
1939 echo
1940 for ac_var in $ac_subst_files
1941 do
1942 eval ac_val=\$$ac_var
1943 case $ac_val in
1944 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1945 esac
1946 printf "%s\n" "$ac_var='\''$ac_val'\''"
1947 done | sort
1948 echo
1949 fi
1950
1951 if test -s confdefs.h; then
1952 printf "%s\n" "## ----------- ##
1953 ## confdefs.h. ##
1954 ## ----------- ##"
1955 echo
1956 cat confdefs.h
1957 echo
1958 fi
1959 test "$ac_signal" != 0 &&
1960 printf "%s\n" "$as_me: caught signal $ac_signal"
1961 printf "%s\n" "$as_me: exit $exit_status"
1962 } >&5
1963 rm -f core *.core core.conftest.* &&
1964 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1965 exit $exit_status
1966 ' 0
1967 for ac_signal in 1 2 13 15; do
1968 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1969 done
1970 ac_signal=0
1971
1972 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1973 rm -f -r conftest* confdefs.h
1974
1975 printf "%s\n" "/* confdefs.h */" > confdefs.h
1976
1977 # Predefined preprocessor variables.
1978
1979 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1980
1981 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1982
1983 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1984
1985 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1986
1987 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1988
1989 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1990
1991
1992 # Let the site file select an alternate cache file if it wants to.
1993 # Prefer an explicitly selected file to automatically selected ones.
1994 if test -n "$CONFIG_SITE"; then
1995 ac_site_files="$CONFIG_SITE"
1996 elif test "x$prefix" != xNONE; then
1997 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1998 else
1999 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2000 fi
2001
2002 for ac_site_file in $ac_site_files
2003 do
2004 case $ac_site_file in #(
2005 */*) :
2006 ;; #(
2007 *) :
2008 ac_site_file=./$ac_site_file ;;
2009 esac
2010 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2012 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2013 sed 's/^/| /' "$ac_site_file" >&5
2014 . "$ac_site_file" \
2015 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2016 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2017 as_fn_error $? "failed to load site script $ac_site_file
2018 See \`config.log' for more details" "$LINENO" 5; }
2019 fi
2020 done
2021
2022 if test -r "$cache_file"; then
2023 # Some versions of bash will fail to source /dev/null (special files
2024 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2025 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2027 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2028 case $cache_file in
2029 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2030 *) . "./$cache_file";;
2031 esac
2032 fi
2033 else
2034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2035 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2036 >$cache_file
2037 fi
2038
2039 # Test code for whether the C compiler supports C89 (global declarations)
2040 ac_c_conftest_c89_globals='
2041 /* Does the compiler advertise C89 conformance?
2042 Do not test the value of __STDC__, because some compilers set it to 0
2043 while being otherwise adequately conformant. */
2044 #if !defined __STDC__
2045 # error "Compiler does not advertise C89 conformance"
2046 #endif
2047
2048 #include <stddef.h>
2049 #include <stdarg.h>
2050 struct stat;
2051 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2052 struct buf { int x; };
2053 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2054 static char *e (p, i)
2055 char **p;
2056 int i;
2057 {
2058 return p[i];
2059 }
2060 static char *f (char * (*g) (char **, int), char **p, ...)
2061 {
2062 char *s;
2063 va_list v;
2064 va_start (v,p);
2065 s = g (p, va_arg (v,int));
2066 va_end (v);
2067 return s;
2068 }
2069
2070 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2071 function prototypes and stuff, but not \xHH hex character constants.
2072 These do not provoke an error unfortunately, instead are silently treated
2073 as an "x". The following induces an error, until -std is added to get
2074 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2075 array size at least. It is necessary to write \x00 == 0 to get something
2076 that is true only with -std. */
2077 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2078
2079 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2080 inside strings and character constants. */
2081 #define FOO(x) '\''x'\''
2082 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2083
2084 int test (int i, double x);
2085 struct s1 {int (*f) (int a);};
2086 struct s2 {int (*f) (double a);};
2087 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2088 int, int);'
2089
2090 # Test code for whether the C compiler supports C89 (body of main).
2091 ac_c_conftest_c89_main='
2092 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2093 '
2094
2095 # Test code for whether the C compiler supports C99 (global declarations)
2096 ac_c_conftest_c99_globals='
2097 // Does the compiler advertise C99 conformance?
2098 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2099 # error "Compiler does not advertise C99 conformance"
2100 #endif
2101
2102 #include <stdbool.h>
2103 extern int puts (const char *);
2104 extern int printf (const char *, ...);
2105 extern int dprintf (int, const char *, ...);
2106 extern void *malloc (size_t);
2107
2108 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2109 // dprintf is used instead of fprintf to avoid needing to declare
2110 // FILE and stderr.
2111 #define debug(...) dprintf (2, __VA_ARGS__)
2112 #define showlist(...) puts (#__VA_ARGS__)
2113 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2114 static void
2115 test_varargs_macros (void)
2116 {
2117 int x = 1234;
2118 int y = 5678;
2119 debug ("Flag");
2120 debug ("X = %d\n", x);
2121 showlist (The first, second, and third items.);
2122 report (x>y, "x is %d but y is %d", x, y);
2123 }
2124
2125 // Check long long types.
2126 #define BIG64 18446744073709551615ull
2127 #define BIG32 4294967295ul
2128 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2129 #if !BIG_OK
2130 #error "your preprocessor is broken"
2131 #endif
2132 #if BIG_OK
2133 #else
2134 #error "your preprocessor is broken"
2135 #endif
2136 static long long int bignum = -9223372036854775807LL;
2137 static unsigned long long int ubignum = BIG64;
2138
2139 struct incomplete_array
2140 {
2141 int datasize;
2142 double data[];
2143 };
2144
2145 struct named_init {
2146 int number;
2147 const wchar_t *name;
2148 double average;
2149 };
2150
2151 typedef const char *ccp;
2152
2153 static inline int
2154 test_restrict (ccp restrict text)
2155 {
2156 // See if C++-style comments work.
2157 // Iterate through items via the restricted pointer.
2158 // Also check for declarations in for loops.
2159 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2160 continue;
2161 return 0;
2162 }
2163
2164 // Check varargs and va_copy.
2165 static bool
2166 test_varargs (const char *format, ...)
2167 {
2168 va_list args;
2169 va_start (args, format);
2170 va_list args_copy;
2171 va_copy (args_copy, args);
2172
2173 const char *str = "";
2174 int number = 0;
2175 float fnumber = 0;
2176
2177 while (*format)
2178 {
2179 switch (*format++)
2180 {
2181 case '\''s'\'': // string
2182 str = va_arg (args_copy, const char *);
2183 break;
2184 case '\''d'\'': // int
2185 number = va_arg (args_copy, int);
2186 break;
2187 case '\''f'\'': // float
2188 fnumber = va_arg (args_copy, double);
2189 break;
2190 default:
2191 break;
2192 }
2193 }
2194 va_end (args_copy);
2195 va_end (args);
2196
2197 return *str && number && fnumber;
2198 }
2199 '
2200
2201 # Test code for whether the C compiler supports C99 (body of main).
2202 ac_c_conftest_c99_main='
2203 // Check bool.
2204 _Bool success = false;
2205 success |= (argc != 0);
2206
2207 // Check restrict.
2208 if (test_restrict ("String literal") == 0)
2209 success = true;
2210 char *restrict newvar = "Another string";
2211
2212 // Check varargs.
2213 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2214 test_varargs_macros ();
2215
2216 // Check flexible array members.
2217 struct incomplete_array *ia =
2218 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2219 ia->datasize = 10;
2220 for (int i = 0; i < ia->datasize; ++i)
2221 ia->data[i] = i * 1.234;
2222
2223 // Check named initializers.
2224 struct named_init ni = {
2225 .number = 34,
2226 .name = L"Test wide string",
2227 .average = 543.34343,
2228 };
2229
2230 ni.number = 58;
2231
2232 int dynamic_array[ni.number];
2233 dynamic_array[0] = argv[0][0];
2234 dynamic_array[ni.number - 1] = 543;
2235
2236 // work around unused variable warnings
2237 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2238 || dynamic_array[ni.number - 1] != 543);
2239 '
2240
2241 # Test code for whether the C compiler supports C11 (global declarations)
2242 ac_c_conftest_c11_globals='
2243 // Does the compiler advertise C11 conformance?
2244 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2245 # error "Compiler does not advertise C11 conformance"
2246 #endif
2247
2248 // Check _Alignas.
2249 char _Alignas (double) aligned_as_double;
2250 char _Alignas (0) no_special_alignment;
2251 extern char aligned_as_int;
2252 char _Alignas (0) _Alignas (int) aligned_as_int;
2253
2254 // Check _Alignof.
2255 enum
2256 {
2257 int_alignment = _Alignof (int),
2258 int_array_alignment = _Alignof (int[100]),
2259 char_alignment = _Alignof (char)
2260 };
2261 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2262
2263 // Check _Noreturn.
2264 int _Noreturn does_not_return (void) { for (;;) continue; }
2265
2266 // Check _Static_assert.
2267 struct test_static_assert
2268 {
2269 int x;
2270 _Static_assert (sizeof (int) <= sizeof (long int),
2271 "_Static_assert does not work in struct");
2272 long int y;
2273 };
2274
2275 // Check UTF-8 literals.
2276 #define u8 syntax error!
2277 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2278
2279 // Check duplicate typedefs.
2280 typedef long *long_ptr;
2281 typedef long int *long_ptr;
2282 typedef long_ptr long_ptr;
2283
2284 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2285 struct anonymous
2286 {
2287 union {
2288 struct { int i; int j; };
2289 struct { int k; long int l; } w;
2290 };
2291 int m;
2292 } v1;
2293 '
2294
2295 # Test code for whether the C compiler supports C11 (body of main).
2296 ac_c_conftest_c11_main='
2297 _Static_assert ((offsetof (struct anonymous, i)
2298 == offsetof (struct anonymous, w.k)),
2299 "Anonymous union alignment botch");
2300 v1.i = 2;
2301 v1.w.k = 5;
2302 ok |= v1.i != 5;
2303 '
2304
2305 # Test code for whether the C compiler supports C11 (complete).
2306 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2307 ${ac_c_conftest_c99_globals}
2308 ${ac_c_conftest_c11_globals}
2309
2310 int
2311 main (int argc, char **argv)
2312 {
2313 int ok = 0;
2314 ${ac_c_conftest_c89_main}
2315 ${ac_c_conftest_c99_main}
2316 ${ac_c_conftest_c11_main}
2317 return ok;
2318 }
2319 "
2320
2321 # Test code for whether the C compiler supports C99 (complete).
2322 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2323 ${ac_c_conftest_c99_globals}
2324
2325 int
2326 main (int argc, char **argv)
2327 {
2328 int ok = 0;
2329 ${ac_c_conftest_c89_main}
2330 ${ac_c_conftest_c99_main}
2331 return ok;
2332 }
2333 "
2334
2335 # Test code for whether the C compiler supports C89 (complete).
2336 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2337
2338 int
2339 main (int argc, char **argv)
2340 {
2341 int ok = 0;
2342 ${ac_c_conftest_c89_main}
2343 return ok;
2344 }
2345 "
2346
2347 # Test code for whether the C++ compiler supports C++98 (global declarations)
2348 ac_cxx_conftest_cxx98_globals='
2349 // Does the compiler advertise C++98 conformance?
2350 #if !defined __cplusplus || __cplusplus < 199711L
2351 # error "Compiler does not advertise C++98 conformance"
2352 #endif
2353
2354 // These inclusions are to reject old compilers that
2355 // lack the unsuffixed header files.
2356 #include <cstdlib>
2357 #include <exception>
2358
2359 // <cassert> and <cstring> are *not* freestanding headers in C++98.
2360 extern void assert (int);
2361 namespace std {
2362 extern int strcmp (const char *, const char *);
2363 }
2364
2365 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
2366 using std::exception;
2367 using std::strcmp;
2368
2369 namespace {
2370
2371 void test_exception_syntax()
2372 {
2373 try {
2374 throw "test";
2375 } catch (const char *s) {
2376 // Extra parentheses suppress a warning when building autoconf itself,
2377 // due to lint rules shared with more typical C programs.
2378 assert (!(strcmp) (s, "test"));
2379 }
2380 }
2381
2382 template <typename T> struct test_template
2383 {
2384 T const val;
2385 explicit test_template(T t) : val(t) {}
2386 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2387 };
2388
2389 } // anonymous namespace
2390 '
2391
2392 # Test code for whether the C++ compiler supports C++98 (body of main)
2393 ac_cxx_conftest_cxx98_main='
2394 assert (argc);
2395 assert (! argv[0]);
2396 {
2397 test_exception_syntax ();
2398 test_template<double> tt (2.0);
2399 assert (tt.add (4) == 6.0);
2400 assert (true && !false);
2401 }
2402 '
2403
2404 # Test code for whether the C++ compiler supports C++11 (global declarations)
2405 ac_cxx_conftest_cxx11_globals='
2406 // Does the compiler advertise C++ 2011 conformance?
2407 #if !defined __cplusplus || __cplusplus < 201103L
2408 # error "Compiler does not advertise C++11 conformance"
2409 #endif
2410
2411 namespace cxx11test
2412 {
2413 constexpr int get_val() { return 20; }
2414
2415 struct testinit
2416 {
2417 int i;
2418 double d;
2419 };
2420
2421 class delegate
2422 {
2423 public:
2424 delegate(int n) : n(n) {}
2425 delegate(): delegate(2354) {}
2426
2427 virtual int getval() { return this->n; };
2428 protected:
2429 int n;
2430 };
2431
2432 class overridden : public delegate
2433 {
2434 public:
2435 overridden(int n): delegate(n) {}
2436 virtual int getval() override final { return this->n * 2; }
2437 };
2438
2439 class nocopy
2440 {
2441 public:
2442 nocopy(int i): i(i) {}
2443 nocopy() = default;
2444 nocopy(const nocopy&) = delete;
2445 nocopy & operator=(const nocopy&) = delete;
2446 private:
2447 int i;
2448 };
2449
2450 // for testing lambda expressions
2451 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
2452 {
2453 return f(v);
2454 }
2455
2456 // for testing variadic templates and trailing return types
2457 template <typename V> auto sum(V first) -> V
2458 {
2459 return first;
2460 }
2461 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
2462 {
2463 return first + sum(rest...);
2464 }
2465 }
2466 '
2467
2468 # Test code for whether the C++ compiler supports C++11 (body of main)
2469 ac_cxx_conftest_cxx11_main='
2470 {
2471 // Test auto and decltype
2472 auto a1 = 6538;
2473 auto a2 = 48573953.4;
2474 auto a3 = "String literal";
2475
2476 int total = 0;
2477 for (auto i = a3; *i; ++i) { total += *i; }
2478
2479 decltype(a2) a4 = 34895.034;
2480 }
2481 {
2482 // Test constexpr
2483 short sa[cxx11test::get_val()] = { 0 };
2484 }
2485 {
2486 // Test initializer lists
2487 cxx11test::testinit il = { 4323, 435234.23544 };
2488 }
2489 {
2490 // Test range-based for
2491 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2492 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2493 for (auto &x : array) { x += 23; }
2494 }
2495 {
2496 // Test lambda expressions
2497 using cxx11test::eval;
2498 assert (eval ([](int x) { return x*2; }, 21) == 42);
2499 double d = 2.0;
2500 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
2501 assert (d == 5.0);
2502 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
2503 assert (d == 5.0);
2504 }
2505 {
2506 // Test use of variadic templates
2507 using cxx11test::sum;
2508 auto a = sum(1);
2509 auto b = sum(1, 2);
2510 auto c = sum(1.0, 2.0, 3.0);
2511 }
2512 {
2513 // Test constructor delegation
2514 cxx11test::delegate d1;
2515 cxx11test::delegate d2();
2516 cxx11test::delegate d3(45);
2517 }
2518 {
2519 // Test override and final
2520 cxx11test::overridden o1(55464);
2521 }
2522 {
2523 // Test nullptr
2524 char *c = nullptr;
2525 }
2526 {
2527 // Test template brackets
2528 test_template<::test_template<int>> v(test_template<int>(12));
2529 }
2530 {
2531 // Unicode literals
2532 char const *utf8 = u8"UTF-8 string \u2500";
2533 char16_t const *utf16 = u"UTF-8 string \u2500";
2534 char32_t const *utf32 = U"UTF-32 string \u2500";
2535 }
2536 '
2537
2538 # Test code for whether the C compiler supports C++11 (complete).
2539 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
2540 ${ac_cxx_conftest_cxx11_globals}
2541
2542 int
2543 main (int argc, char **argv)
2544 {
2545 int ok = 0;
2546 ${ac_cxx_conftest_cxx98_main}
2547 ${ac_cxx_conftest_cxx11_main}
2548 return ok;
2549 }
2550 "
2551
2552 # Test code for whether the C compiler supports C++98 (complete).
2553 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
2554 int
2555 main (int argc, char **argv)
2556 {
2557 int ok = 0;
2558 ${ac_cxx_conftest_cxx98_main}
2559 return ok;
2560 }
2561 "
2562
2563 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2564 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2565 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2566 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2567 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2568 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2569 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2570 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2571 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2572 as_fn_append ac_header_c_list " vfork.h vfork_h HAVE_VFORK_H"
2573 as_fn_append ac_func_c_list " fork HAVE_FORK"
2574 as_fn_append ac_func_c_list " vfork HAVE_VFORK"
2575 # Check that the precious variables saved in the cache have kept the same
2576 # value.
2577 ac_cache_corrupted=false
2578 for ac_var in $ac_precious_vars; do
2579 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2580 eval ac_new_set=\$ac_env_${ac_var}_set
2581 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2582 eval ac_new_val=\$ac_env_${ac_var}_value
2583 case $ac_old_set,$ac_new_set in
2584 set,)
2585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2586 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2587 ac_cache_corrupted=: ;;
2588 ,set)
2589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2590 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2591 ac_cache_corrupted=: ;;
2592 ,);;
2593 *)
2594 if test "x$ac_old_val" != "x$ac_new_val"; then
2595 # differences in whitespace do not lead to failure.
2596 ac_old_val_w=`echo x $ac_old_val`
2597 ac_new_val_w=`echo x $ac_new_val`
2598 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2600 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2601 ac_cache_corrupted=:
2602 else
2603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2604 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2605 eval $ac_var=\$ac_old_val
2606 fi
2607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2608 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2610 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2611 fi;;
2612 esac
2613 # Pass precious variables to config.status.
2614 if test "$ac_new_set" = set; then
2615 case $ac_new_val in
2616 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2617 *) ac_arg=$ac_var=$ac_new_val ;;
2618 esac
2619 case " $ac_configure_args " in
2620 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2621 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2622 esac
2623 fi
2624 done
2625 if $ac_cache_corrupted; then
2626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2627 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2629 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2630 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2631 and start over" "$LINENO" 5
2632 fi
2633 ## -------------------- ##
2634 ## Main body of script. ##
2635 ## -------------------- ##
2636
2637 ac_ext=c
2638 ac_cpp='$CPP $CPPFLAGS'
2639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2642
2643
2644
2645 ac_config_headers="$ac_config_headers config.h"
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657 ac_ext=c
2658 ac_cpp='$CPP $CPPFLAGS'
2659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2662 if test -n "$ac_tool_prefix"; then
2663 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2664 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2666 printf %s "checking for $ac_word... " >&6; }
2667 if test ${ac_cv_prog_CC+y}
2668 then :
2669 printf %s "(cached) " >&6
2670 else $as_nop
2671 if test -n "$CC"; then
2672 ac_cv_prog_CC="$CC" # Let the user override the test.
2673 else
2674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2675 for as_dir in $PATH
2676 do
2677 IFS=$as_save_IFS
2678 case $as_dir in #(((
2679 '') as_dir=./ ;;
2680 */) ;;
2681 *) as_dir=$as_dir/ ;;
2682 esac
2683 for ac_exec_ext in '' $ac_executable_extensions; do
2684 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2685 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2686 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2687 break 2
2688 fi
2689 done
2690 done
2691 IFS=$as_save_IFS
2692
2693 fi
2694 fi
2695 CC=$ac_cv_prog_CC
2696 if test -n "$CC"; then
2697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2698 printf "%s\n" "$CC" >&6; }
2699 else
2700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2701 printf "%s\n" "no" >&6; }
2702 fi
2703
2704
2705 fi
2706 if test -z "$ac_cv_prog_CC"; then
2707 ac_ct_CC=$CC
2708 # Extract the first word of "gcc", so it can be a program name with args.
2709 set dummy gcc; ac_word=$2
2710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2711 printf %s "checking for $ac_word... " >&6; }
2712 if test ${ac_cv_prog_ac_ct_CC+y}
2713 then :
2714 printf %s "(cached) " >&6
2715 else $as_nop
2716 if test -n "$ac_ct_CC"; then
2717 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2718 else
2719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2720 for as_dir in $PATH
2721 do
2722 IFS=$as_save_IFS
2723 case $as_dir in #(((
2724 '') as_dir=./ ;;
2725 */) ;;
2726 *) as_dir=$as_dir/ ;;
2727 esac
2728 for ac_exec_ext in '' $ac_executable_extensions; do
2729 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2730 ac_cv_prog_ac_ct_CC="gcc"
2731 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2732 break 2
2733 fi
2734 done
2735 done
2736 IFS=$as_save_IFS
2737
2738 fi
2739 fi
2740 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2741 if test -n "$ac_ct_CC"; then
2742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2743 printf "%s\n" "$ac_ct_CC" >&6; }
2744 else
2745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2746 printf "%s\n" "no" >&6; }
2747 fi
2748
2749 if test "x$ac_ct_CC" = x; then
2750 CC=""
2751 else
2752 case $cross_compiling:$ac_tool_warned in
2753 yes:)
2754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2755 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2756 ac_tool_warned=yes ;;
2757 esac
2758 CC=$ac_ct_CC
2759 fi
2760 else
2761 CC="$ac_cv_prog_CC"
2762 fi
2763
2764 if test -z "$CC"; then
2765 if test -n "$ac_tool_prefix"; then
2766 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2767 set dummy ${ac_tool_prefix}cc; ac_word=$2
2768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2769 printf %s "checking for $ac_word... " >&6; }
2770 if test ${ac_cv_prog_CC+y}
2771 then :
2772 printf %s "(cached) " >&6
2773 else $as_nop
2774 if test -n "$CC"; then
2775 ac_cv_prog_CC="$CC" # Let the user override the test.
2776 else
2777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2778 for as_dir in $PATH
2779 do
2780 IFS=$as_save_IFS
2781 case $as_dir in #(((
2782 '') as_dir=./ ;;
2783 */) ;;
2784 *) as_dir=$as_dir/ ;;
2785 esac
2786 for ac_exec_ext in '' $ac_executable_extensions; do
2787 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2788 ac_cv_prog_CC="${ac_tool_prefix}cc"
2789 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2790 break 2
2791 fi
2792 done
2793 done
2794 IFS=$as_save_IFS
2795
2796 fi
2797 fi
2798 CC=$ac_cv_prog_CC
2799 if test -n "$CC"; then
2800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2801 printf "%s\n" "$CC" >&6; }
2802 else
2803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2804 printf "%s\n" "no" >&6; }
2805 fi
2806
2807
2808 fi
2809 fi
2810 if test -z "$CC"; then
2811 # Extract the first word of "cc", so it can be a program name with args.
2812 set dummy cc; ac_word=$2
2813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2814 printf %s "checking for $ac_word... " >&6; }
2815 if test ${ac_cv_prog_CC+y}
2816 then :
2817 printf %s "(cached) " >&6
2818 else $as_nop
2819 if test -n "$CC"; then
2820 ac_cv_prog_CC="$CC" # Let the user override the test.
2821 else
2822 ac_prog_rejected=no
2823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2824 for as_dir in $PATH
2825 do
2826 IFS=$as_save_IFS
2827 case $as_dir in #(((
2828 '') as_dir=./ ;;
2829 */) ;;
2830 *) as_dir=$as_dir/ ;;
2831 esac
2832 for ac_exec_ext in '' $ac_executable_extensions; do
2833 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2834 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2835 ac_prog_rejected=yes
2836 continue
2837 fi
2838 ac_cv_prog_CC="cc"
2839 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2840 break 2
2841 fi
2842 done
2843 done
2844 IFS=$as_save_IFS
2845
2846 if test $ac_prog_rejected = yes; then
2847 # We found a bogon in the path, so make sure we never use it.
2848 set dummy $ac_cv_prog_CC
2849 shift
2850 if test $# != 0; then
2851 # We chose a different compiler from the bogus one.
2852 # However, it has the same basename, so the bogon will be chosen
2853 # first if we set CC to just the basename; use the full file name.
2854 shift
2855 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2856 fi
2857 fi
2858 fi
2859 fi
2860 CC=$ac_cv_prog_CC
2861 if test -n "$CC"; then
2862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2863 printf "%s\n" "$CC" >&6; }
2864 else
2865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2866 printf "%s\n" "no" >&6; }
2867 fi
2868
2869
2870 fi
2871 if test -z "$CC"; then
2872 if test -n "$ac_tool_prefix"; then
2873 for ac_prog in cl.exe
2874 do
2875 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2876 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2878 printf %s "checking for $ac_word... " >&6; }
2879 if test ${ac_cv_prog_CC+y}
2880 then :
2881 printf %s "(cached) " >&6
2882 else $as_nop
2883 if test -n "$CC"; then
2884 ac_cv_prog_CC="$CC" # Let the user override the test.
2885 else
2886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2887 for as_dir in $PATH
2888 do
2889 IFS=$as_save_IFS
2890 case $as_dir in #(((
2891 '') as_dir=./ ;;
2892 */) ;;
2893 *) as_dir=$as_dir/ ;;
2894 esac
2895 for ac_exec_ext in '' $ac_executable_extensions; do
2896 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2897 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2898 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2899 break 2
2900 fi
2901 done
2902 done
2903 IFS=$as_save_IFS
2904
2905 fi
2906 fi
2907 CC=$ac_cv_prog_CC
2908 if test -n "$CC"; then
2909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2910 printf "%s\n" "$CC" >&6; }
2911 else
2912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2913 printf "%s\n" "no" >&6; }
2914 fi
2915
2916
2917 test -n "$CC" && break
2918 done
2919 fi
2920 if test -z "$CC"; then
2921 ac_ct_CC=$CC
2922 for ac_prog in cl.exe
2923 do
2924 # Extract the first word of "$ac_prog", so it can be a program name with args.
2925 set dummy $ac_prog; ac_word=$2
2926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2927 printf %s "checking for $ac_word... " >&6; }
2928 if test ${ac_cv_prog_ac_ct_CC+y}
2929 then :
2930 printf %s "(cached) " >&6
2931 else $as_nop
2932 if test -n "$ac_ct_CC"; then
2933 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2934 else
2935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2936 for as_dir in $PATH
2937 do
2938 IFS=$as_save_IFS
2939 case $as_dir in #(((
2940 '') as_dir=./ ;;
2941 */) ;;
2942 *) as_dir=$as_dir/ ;;
2943 esac
2944 for ac_exec_ext in '' $ac_executable_extensions; do
2945 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2946 ac_cv_prog_ac_ct_CC="$ac_prog"
2947 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2948 break 2
2949 fi
2950 done
2951 done
2952 IFS=$as_save_IFS
2953
2954 fi
2955 fi
2956 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2957 if test -n "$ac_ct_CC"; then
2958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2959 printf "%s\n" "$ac_ct_CC" >&6; }
2960 else
2961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2962 printf "%s\n" "no" >&6; }
2963 fi
2964
2965
2966 test -n "$ac_ct_CC" && break
2967 done
2968
2969 if test "x$ac_ct_CC" = x; then
2970 CC=""
2971 else
2972 case $cross_compiling:$ac_tool_warned in
2973 yes:)
2974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2975 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2976 ac_tool_warned=yes ;;
2977 esac
2978 CC=$ac_ct_CC
2979 fi
2980 fi
2981
2982 fi
2983 if test -z "$CC"; then
2984 if test -n "$ac_tool_prefix"; then
2985 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
2986 set dummy ${ac_tool_prefix}clang; ac_word=$2
2987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2988 printf %s "checking for $ac_word... " >&6; }
2989 if test ${ac_cv_prog_CC+y}
2990 then :
2991 printf %s "(cached) " >&6
2992 else $as_nop
2993 if test -n "$CC"; then
2994 ac_cv_prog_CC="$CC" # Let the user override the test.
2995 else
2996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2997 for as_dir in $PATH
2998 do
2999 IFS=$as_save_IFS
3000 case $as_dir in #(((
3001 '') as_dir=./ ;;
3002 */) ;;
3003 *) as_dir=$as_dir/ ;;
3004 esac
3005 for ac_exec_ext in '' $ac_executable_extensions; do
3006 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3007 ac_cv_prog_CC="${ac_tool_prefix}clang"
3008 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3009 break 2
3010 fi
3011 done
3012 done
3013 IFS=$as_save_IFS
3014
3015 fi
3016 fi
3017 CC=$ac_cv_prog_CC
3018 if test -n "$CC"; then
3019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3020 printf "%s\n" "$CC" >&6; }
3021 else
3022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3023 printf "%s\n" "no" >&6; }
3024 fi
3025
3026
3027 fi
3028 if test -z "$ac_cv_prog_CC"; then
3029 ac_ct_CC=$CC
3030 # Extract the first word of "clang", so it can be a program name with args.
3031 set dummy clang; ac_word=$2
3032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3033 printf %s "checking for $ac_word... " >&6; }
3034 if test ${ac_cv_prog_ac_ct_CC+y}
3035 then :
3036 printf %s "(cached) " >&6
3037 else $as_nop
3038 if test -n "$ac_ct_CC"; then
3039 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3040 else
3041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3042 for as_dir in $PATH
3043 do
3044 IFS=$as_save_IFS
3045 case $as_dir in #(((
3046 '') as_dir=./ ;;
3047 */) ;;
3048 *) as_dir=$as_dir/ ;;
3049 esac
3050 for ac_exec_ext in '' $ac_executable_extensions; do
3051 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3052 ac_cv_prog_ac_ct_CC="clang"
3053 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3054 break 2
3055 fi
3056 done
3057 done
3058 IFS=$as_save_IFS
3059
3060 fi
3061 fi
3062 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3063 if test -n "$ac_ct_CC"; then
3064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3065 printf "%s\n" "$ac_ct_CC" >&6; }
3066 else
3067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3068 printf "%s\n" "no" >&6; }
3069 fi
3070
3071 if test "x$ac_ct_CC" = x; then
3072 CC=""
3073 else
3074 case $cross_compiling:$ac_tool_warned in
3075 yes:)
3076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3077 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3078 ac_tool_warned=yes ;;
3079 esac
3080 CC=$ac_ct_CC
3081 fi
3082 else
3083 CC="$ac_cv_prog_CC"
3084 fi
3085
3086 fi
3087
3088
3089 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3090 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3091 as_fn_error $? "no acceptable C compiler found in \$PATH
3092 See \`config.log' for more details" "$LINENO" 5; }
3093
3094 # Provide some information about the compiler.
3095 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3096 set X $ac_compile
3097 ac_compiler=$2
3098 for ac_option in --version -v -V -qversion -version; do
3099 { { ac_try="$ac_compiler $ac_option >&5"
3100 case "(($ac_try" in
3101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3102 *) ac_try_echo=$ac_try;;
3103 esac
3104 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3105 printf "%s\n" "$ac_try_echo"; } >&5
3106 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3107 ac_status=$?
3108 if test -s conftest.err; then
3109 sed '10a\
3110 ... rest of stderr output deleted ...
3111 10q' conftest.err >conftest.er1
3112 cat conftest.er1 >&5
3113 fi
3114 rm -f conftest.er1 conftest.err
3115 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3116 test $ac_status = 0; }
3117 done
3118
3119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3120 /* end confdefs.h. */
3121
3122 int
3123 main (void)
3124 {
3125
3126 ;
3127 return 0;
3128 }
3129 _ACEOF
3130 ac_clean_files_save=$ac_clean_files
3131 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3132 # Try to create an executable without -o first, disregard a.out.
3133 # It will help us diagnose broken compilers, and finding out an intuition
3134 # of exeext.
3135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3136 printf %s "checking whether the C compiler works... " >&6; }
3137 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3138
3139 # The possible output files:
3140 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3141
3142 ac_rmfiles=
3143 for ac_file in $ac_files
3144 do
3145 case $ac_file in
3146 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3147 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3148 esac
3149 done
3150 rm -f $ac_rmfiles
3151
3152 if { { ac_try="$ac_link_default"
3153 case "(($ac_try" in
3154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3155 *) ac_try_echo=$ac_try;;
3156 esac
3157 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3158 printf "%s\n" "$ac_try_echo"; } >&5
3159 (eval "$ac_link_default") 2>&5
3160 ac_status=$?
3161 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3162 test $ac_status = 0; }
3163 then :
3164 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3165 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3166 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3167 # so that the user can short-circuit this test for compilers unknown to
3168 # Autoconf.
3169 for ac_file in $ac_files ''
3170 do
3171 test -f "$ac_file" || continue
3172 case $ac_file in
3173 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3174 ;;
3175 [ab].out )
3176 # We found the default executable, but exeext='' is most
3177 # certainly right.
3178 break;;
3179 *.* )
3180 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3181 then :; else
3182 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3183 fi
3184 # We set ac_cv_exeext here because the later test for it is not
3185 # safe: cross compilers may not add the suffix if given an `-o'
3186 # argument, so we may need to know it at that point already.
3187 # Even if this section looks crufty: it has the advantage of
3188 # actually working.
3189 break;;
3190 * )
3191 break;;
3192 esac
3193 done
3194 test "$ac_cv_exeext" = no && ac_cv_exeext=
3195
3196 else $as_nop
3197 ac_file=''
3198 fi
3199 if test -z "$ac_file"
3200 then :
3201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3202 printf "%s\n" "no" >&6; }
3203 printf "%s\n" "$as_me: failed program was:" >&5
3204 sed 's/^/| /' conftest.$ac_ext >&5
3205
3206 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3207 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3208 as_fn_error 77 "C compiler cannot create executables
3209 See \`config.log' for more details" "$LINENO" 5; }
3210 else $as_nop
3211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3212 printf "%s\n" "yes" >&6; }
3213 fi
3214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3215 printf %s "checking for C compiler default output file name... " >&6; }
3216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3217 printf "%s\n" "$ac_file" >&6; }
3218 ac_exeext=$ac_cv_exeext
3219
3220 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3221 ac_clean_files=$ac_clean_files_save
3222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3223 printf %s "checking for suffix of executables... " >&6; }
3224 if { { ac_try="$ac_link"
3225 case "(($ac_try" in
3226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3227 *) ac_try_echo=$ac_try;;
3228 esac
3229 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3230 printf "%s\n" "$ac_try_echo"; } >&5
3231 (eval "$ac_link") 2>&5
3232 ac_status=$?
3233 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3234 test $ac_status = 0; }
3235 then :
3236 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3237 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3238 # work properly (i.e., refer to `conftest.exe'), while it won't with
3239 # `rm'.
3240 for ac_file in conftest.exe conftest conftest.*; do
3241 test -f "$ac_file" || continue
3242 case $ac_file in
3243 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3244 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3245 break;;
3246 * ) break;;
3247 esac
3248 done
3249 else $as_nop
3250 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3251 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3252 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3253 See \`config.log' for more details" "$LINENO" 5; }
3254 fi
3255 rm -f conftest conftest$ac_cv_exeext
3256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3257 printf "%s\n" "$ac_cv_exeext" >&6; }
3258
3259 rm -f conftest.$ac_ext
3260 EXEEXT=$ac_cv_exeext
3261 ac_exeext=$EXEEXT
3262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3263 /* end confdefs.h. */
3264 #include <stdio.h>
3265 int
3266 main (void)
3267 {
3268 FILE *f = fopen ("conftest.out", "w");
3269 return ferror (f) || fclose (f) != 0;
3270
3271 ;
3272 return 0;
3273 }
3274 _ACEOF
3275 ac_clean_files="$ac_clean_files conftest.out"
3276 # Check that the compiler produces executables we can run. If not, either
3277 # the compiler is broken, or we cross compile.
3278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3279 printf %s "checking whether we are cross compiling... " >&6; }
3280 if test "$cross_compiling" != yes; then
3281 { { ac_try="$ac_link"
3282 case "(($ac_try" in
3283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3284 *) ac_try_echo=$ac_try;;
3285 esac
3286 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3287 printf "%s\n" "$ac_try_echo"; } >&5
3288 (eval "$ac_link") 2>&5
3289 ac_status=$?
3290 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3291 test $ac_status = 0; }
3292 if { ac_try='./conftest$ac_cv_exeext'
3293 { { case "(($ac_try" in
3294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3295 *) ac_try_echo=$ac_try;;
3296 esac
3297 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3298 printf "%s\n" "$ac_try_echo"; } >&5
3299 (eval "$ac_try") 2>&5
3300 ac_status=$?
3301 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3302 test $ac_status = 0; }; }; then
3303 cross_compiling=no
3304 else
3305 if test "$cross_compiling" = maybe; then
3306 cross_compiling=yes
3307 else
3308 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3309 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3310 as_fn_error 77 "cannot run C compiled programs.
3311 If you meant to cross compile, use \`--host'.
3312 See \`config.log' for more details" "$LINENO" 5; }
3313 fi
3314 fi
3315 fi
3316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3317 printf "%s\n" "$cross_compiling" >&6; }
3318
3319 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3320 ac_clean_files=$ac_clean_files_save
3321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3322 printf %s "checking for suffix of object files... " >&6; }
3323 if test ${ac_cv_objext+y}
3324 then :
3325 printf %s "(cached) " >&6
3326 else $as_nop
3327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3328 /* end confdefs.h. */
3329
3330 int
3331 main (void)
3332 {
3333
3334 ;
3335 return 0;
3336 }
3337 _ACEOF
3338 rm -f conftest.o conftest.obj
3339 if { { ac_try="$ac_compile"
3340 case "(($ac_try" in
3341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3342 *) ac_try_echo=$ac_try;;
3343 esac
3344 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3345 printf "%s\n" "$ac_try_echo"; } >&5
3346 (eval "$ac_compile") 2>&5
3347 ac_status=$?
3348 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3349 test $ac_status = 0; }
3350 then :
3351 for ac_file in conftest.o conftest.obj conftest.*; do
3352 test -f "$ac_file" || continue;
3353 case $ac_file in
3354 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3355 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3356 break;;
3357 esac
3358 done
3359 else $as_nop
3360 printf "%s\n" "$as_me: failed program was:" >&5
3361 sed 's/^/| /' conftest.$ac_ext >&5
3362
3363 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3364 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3365 as_fn_error $? "cannot compute suffix of object files: cannot compile
3366 See \`config.log' for more details" "$LINENO" 5; }
3367 fi
3368 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3369 fi
3370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3371 printf "%s\n" "$ac_cv_objext" >&6; }
3372 OBJEXT=$ac_cv_objext
3373 ac_objext=$OBJEXT
3374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3375 printf %s "checking whether the compiler supports GNU C... " >&6; }
3376 if test ${ac_cv_c_compiler_gnu+y}
3377 then :
3378 printf %s "(cached) " >&6
3379 else $as_nop
3380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3381 /* end confdefs.h. */
3382
3383 int
3384 main (void)
3385 {
3386 #ifndef __GNUC__
3387 choke me
3388 #endif
3389
3390 ;
3391 return 0;
3392 }
3393 _ACEOF
3394 if ac_fn_c_try_compile "$LINENO"
3395 then :
3396 ac_compiler_gnu=yes
3397 else $as_nop
3398 ac_compiler_gnu=no
3399 fi
3400 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3401 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3402
3403 fi
3404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3405 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3407
3408 if test $ac_compiler_gnu = yes; then
3409 GCC=yes
3410 else
3411 GCC=
3412 fi
3413 ac_test_CFLAGS=${CFLAGS+y}
3414 ac_save_CFLAGS=$CFLAGS
3415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3416 printf %s "checking whether $CC accepts -g... " >&6; }
3417 if test ${ac_cv_prog_cc_g+y}
3418 then :
3419 printf %s "(cached) " >&6
3420 else $as_nop
3421 ac_save_c_werror_flag=$ac_c_werror_flag
3422 ac_c_werror_flag=yes
3423 ac_cv_prog_cc_g=no
3424 CFLAGS="-g"
3425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3426 /* end confdefs.h. */
3427
3428 int
3429 main (void)
3430 {
3431
3432 ;
3433 return 0;
3434 }
3435 _ACEOF
3436 if ac_fn_c_try_compile "$LINENO"
3437 then :
3438 ac_cv_prog_cc_g=yes
3439 else $as_nop
3440 CFLAGS=""
3441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3442 /* end confdefs.h. */
3443
3444 int
3445 main (void)
3446 {
3447
3448 ;
3449 return 0;
3450 }
3451 _ACEOF
3452 if ac_fn_c_try_compile "$LINENO"
3453 then :
3454
3455 else $as_nop
3456 ac_c_werror_flag=$ac_save_c_werror_flag
3457 CFLAGS="-g"
3458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3459 /* end confdefs.h. */
3460
3461 int
3462 main (void)
3463 {
3464
3465 ;
3466 return 0;
3467 }
3468 _ACEOF
3469 if ac_fn_c_try_compile "$LINENO"
3470 then :
3471 ac_cv_prog_cc_g=yes
3472 fi
3473 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3474 fi
3475 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3476 fi
3477 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3478 ac_c_werror_flag=$ac_save_c_werror_flag
3479 fi
3480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3481 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3482 if test $ac_test_CFLAGS; then
3483 CFLAGS=$ac_save_CFLAGS
3484 elif test $ac_cv_prog_cc_g = yes; then
3485 if test "$GCC" = yes; then
3486 CFLAGS="-g -O2"
3487 else
3488 CFLAGS="-g"
3489 fi
3490 else
3491 if test "$GCC" = yes; then
3492 CFLAGS="-O2"
3493 else
3494 CFLAGS=
3495 fi
3496 fi
3497 ac_prog_cc_stdc=no
3498 if test x$ac_prog_cc_stdc = xno
3499 then :
3500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3501 printf %s "checking for $CC option to enable C11 features... " >&6; }
3502 if test ${ac_cv_prog_cc_c11+y}
3503 then :
3504 printf %s "(cached) " >&6
3505 else $as_nop
3506 ac_cv_prog_cc_c11=no
3507 ac_save_CC=$CC
3508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3509 /* end confdefs.h. */
3510 $ac_c_conftest_c11_program
3511 _ACEOF
3512 for ac_arg in '' -std=gnu11
3513 do
3514 CC="$ac_save_CC $ac_arg"
3515 if ac_fn_c_try_compile "$LINENO"
3516 then :
3517 ac_cv_prog_cc_c11=$ac_arg
3518 fi
3519 rm -f core conftest.err conftest.$ac_objext conftest.beam
3520 test "x$ac_cv_prog_cc_c11" != "xno" && break
3521 done
3522 rm -f conftest.$ac_ext
3523 CC=$ac_save_CC
3524 fi
3525
3526 if test "x$ac_cv_prog_cc_c11" = xno
3527 then :
3528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3529 printf "%s\n" "unsupported" >&6; }
3530 else $as_nop
3531 if test "x$ac_cv_prog_cc_c11" = x
3532 then :
3533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3534 printf "%s\n" "none needed" >&6; }
3535 else $as_nop
3536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3537 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3538 CC="$CC $ac_cv_prog_cc_c11"
3539 fi
3540 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3541 ac_prog_cc_stdc=c11
3542 fi
3543 fi
3544 if test x$ac_prog_cc_stdc = xno
3545 then :
3546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3547 printf %s "checking for $CC option to enable C99 features... " >&6; }
3548 if test ${ac_cv_prog_cc_c99+y}
3549 then :
3550 printf %s "(cached) " >&6
3551 else $as_nop
3552 ac_cv_prog_cc_c99=no
3553 ac_save_CC=$CC
3554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3555 /* end confdefs.h. */
3556 $ac_c_conftest_c99_program
3557 _ACEOF
3558 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3559 do
3560 CC="$ac_save_CC $ac_arg"
3561 if ac_fn_c_try_compile "$LINENO"
3562 then :
3563 ac_cv_prog_cc_c99=$ac_arg
3564 fi
3565 rm -f core conftest.err conftest.$ac_objext conftest.beam
3566 test "x$ac_cv_prog_cc_c99" != "xno" && break
3567 done
3568 rm -f conftest.$ac_ext
3569 CC=$ac_save_CC
3570 fi
3571
3572 if test "x$ac_cv_prog_cc_c99" = xno
3573 then :
3574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3575 printf "%s\n" "unsupported" >&6; }
3576 else $as_nop
3577 if test "x$ac_cv_prog_cc_c99" = x
3578 then :
3579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3580 printf "%s\n" "none needed" >&6; }
3581 else $as_nop
3582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3583 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3584 CC="$CC $ac_cv_prog_cc_c99"
3585 fi
3586 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3587 ac_prog_cc_stdc=c99
3588 fi
3589 fi
3590 if test x$ac_prog_cc_stdc = xno
3591 then :
3592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3593 printf %s "checking for $CC option to enable C89 features... " >&6; }
3594 if test ${ac_cv_prog_cc_c89+y}
3595 then :
3596 printf %s "(cached) " >&6
3597 else $as_nop
3598 ac_cv_prog_cc_c89=no
3599 ac_save_CC=$CC
3600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3601 /* end confdefs.h. */
3602 $ac_c_conftest_c89_program
3603 _ACEOF
3604 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3605 do
3606 CC="$ac_save_CC $ac_arg"
3607 if ac_fn_c_try_compile "$LINENO"
3608 then :
3609 ac_cv_prog_cc_c89=$ac_arg
3610 fi
3611 rm -f core conftest.err conftest.$ac_objext conftest.beam
3612 test "x$ac_cv_prog_cc_c89" != "xno" && break
3613 done
3614 rm -f conftest.$ac_ext
3615 CC=$ac_save_CC
3616 fi
3617
3618 if test "x$ac_cv_prog_cc_c89" = xno
3619 then :
3620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3621 printf "%s\n" "unsupported" >&6; }
3622 else $as_nop
3623 if test "x$ac_cv_prog_cc_c89" = x
3624 then :
3625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3626 printf "%s\n" "none needed" >&6; }
3627 else $as_nop
3628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3629 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3630 CC="$CC $ac_cv_prog_cc_c89"
3631 fi
3632 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3633 ac_prog_cc_stdc=c89
3634 fi
3635 fi
3636
3637 ac_ext=c
3638 ac_cpp='$CPP $CPPFLAGS'
3639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3642
3643
3644
3645
3646
3647
3648
3649 ac_ext=cpp
3650 ac_cpp='$CXXCPP $CPPFLAGS'
3651 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3652 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3653 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3654 if test -z "$CXX"; then
3655 if test -n "$CCC"; then
3656 CXX=$CCC
3657 else
3658 if test -n "$ac_tool_prefix"; then
3659 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
3660 do
3661 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3662 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3664 printf %s "checking for $ac_word... " >&6; }
3665 if test ${ac_cv_prog_CXX+y}
3666 then :
3667 printf %s "(cached) " >&6
3668 else $as_nop
3669 if test -n "$CXX"; then
3670 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3671 else
3672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3673 for as_dir in $PATH
3674 do
3675 IFS=$as_save_IFS
3676 case $as_dir in #(((
3677 '') as_dir=./ ;;
3678 */) ;;
3679 *) as_dir=$as_dir/ ;;
3680 esac
3681 for ac_exec_ext in '' $ac_executable_extensions; do
3682 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3683 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3684 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3685 break 2
3686 fi
3687 done
3688 done
3689 IFS=$as_save_IFS
3690
3691 fi
3692 fi
3693 CXX=$ac_cv_prog_CXX
3694 if test -n "$CXX"; then
3695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3696 printf "%s\n" "$CXX" >&6; }
3697 else
3698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3699 printf "%s\n" "no" >&6; }
3700 fi
3701
3702
3703 test -n "$CXX" && break
3704 done
3705 fi
3706 if test -z "$CXX"; then
3707 ac_ct_CXX=$CXX
3708 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
3709 do
3710 # Extract the first word of "$ac_prog", so it can be a program name with args.
3711 set dummy $ac_prog; ac_word=$2
3712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3713 printf %s "checking for $ac_word... " >&6; }
3714 if test ${ac_cv_prog_ac_ct_CXX+y}
3715 then :
3716 printf %s "(cached) " >&6
3717 else $as_nop
3718 if test -n "$ac_ct_CXX"; then
3719 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3720 else
3721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3722 for as_dir in $PATH
3723 do
3724 IFS=$as_save_IFS
3725 case $as_dir in #(((
3726 '') as_dir=./ ;;
3727 */) ;;
3728 *) as_dir=$as_dir/ ;;
3729 esac
3730 for ac_exec_ext in '' $ac_executable_extensions; do
3731 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3732 ac_cv_prog_ac_ct_CXX="$ac_prog"
3733 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3734 break 2
3735 fi
3736 done
3737 done
3738 IFS=$as_save_IFS
3739
3740 fi
3741 fi
3742 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3743 if test -n "$ac_ct_CXX"; then
3744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3745 printf "%s\n" "$ac_ct_CXX" >&6; }
3746 else
3747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3748 printf "%s\n" "no" >&6; }
3749 fi
3750
3751
3752 test -n "$ac_ct_CXX" && break
3753 done
3754
3755 if test "x$ac_ct_CXX" = x; then
3756 CXX="g++"
3757 else
3758 case $cross_compiling:$ac_tool_warned in
3759 yes:)
3760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3761 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3762 ac_tool_warned=yes ;;
3763 esac
3764 CXX=$ac_ct_CXX
3765 fi
3766 fi
3767
3768 fi
3769 fi
3770 # Provide some information about the compiler.
3771 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3772 set X $ac_compile
3773 ac_compiler=$2
3774 for ac_option in --version -v -V -qversion; do
3775 { { ac_try="$ac_compiler $ac_option >&5"
3776 case "(($ac_try" in
3777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3778 *) ac_try_echo=$ac_try;;
3779 esac
3780 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3781 printf "%s\n" "$ac_try_echo"; } >&5
3782 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3783 ac_status=$?
3784 if test -s conftest.err; then
3785 sed '10a\
3786 ... rest of stderr output deleted ...
3787 10q' conftest.err >conftest.er1
3788 cat conftest.er1 >&5
3789 fi
3790 rm -f conftest.er1 conftest.err
3791 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3792 test $ac_status = 0; }
3793 done
3794
3795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
3796 printf %s "checking whether the compiler supports GNU C++... " >&6; }
3797 if test ${ac_cv_cxx_compiler_gnu+y}
3798 then :
3799 printf %s "(cached) " >&6
3800 else $as_nop
3801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3802 /* end confdefs.h. */
3803
3804 int
3805 main (void)
3806 {
3807 #ifndef __GNUC__
3808 choke me
3809 #endif
3810
3811 ;
3812 return 0;
3813 }
3814 _ACEOF
3815 if ac_fn_cxx_try_compile "$LINENO"
3816 then :
3817 ac_compiler_gnu=yes
3818 else $as_nop
3819 ac_compiler_gnu=no
3820 fi
3821 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3822 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3823
3824 fi
3825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3826 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
3827 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3828
3829 if test $ac_compiler_gnu = yes; then
3830 GXX=yes
3831 else
3832 GXX=
3833 fi
3834 ac_test_CXXFLAGS=${CXXFLAGS+y}
3835 ac_save_CXXFLAGS=$CXXFLAGS
3836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3837 printf %s "checking whether $CXX accepts -g... " >&6; }
3838 if test ${ac_cv_prog_cxx_g+y}
3839 then :
3840 printf %s "(cached) " >&6
3841 else $as_nop
3842 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3843 ac_cxx_werror_flag=yes
3844 ac_cv_prog_cxx_g=no
3845 CXXFLAGS="-g"
3846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3847 /* end confdefs.h. */
3848
3849 int
3850 main (void)
3851 {
3852
3853 ;
3854 return 0;
3855 }
3856 _ACEOF
3857 if ac_fn_cxx_try_compile "$LINENO"
3858 then :
3859 ac_cv_prog_cxx_g=yes
3860 else $as_nop
3861 CXXFLAGS=""
3862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3863 /* end confdefs.h. */
3864
3865 int
3866 main (void)
3867 {
3868
3869 ;
3870 return 0;
3871 }
3872 _ACEOF
3873 if ac_fn_cxx_try_compile "$LINENO"
3874 then :
3875
3876 else $as_nop
3877 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3878 CXXFLAGS="-g"
3879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3880 /* end confdefs.h. */
3881
3882 int
3883 main (void)
3884 {
3885
3886 ;
3887 return 0;
3888 }
3889 _ACEOF
3890 if ac_fn_cxx_try_compile "$LINENO"
3891 then :
3892 ac_cv_prog_cxx_g=yes
3893 fi
3894 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3895 fi
3896 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3897 fi
3898 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3899 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3900 fi
3901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3902 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
3903 if test $ac_test_CXXFLAGS; then
3904 CXXFLAGS=$ac_save_CXXFLAGS
3905 elif test $ac_cv_prog_cxx_g = yes; then
3906 if test "$GXX" = yes; then
3907 CXXFLAGS="-g -O2"
3908 else
3909 CXXFLAGS="-g"
3910 fi
3911 else
3912 if test "$GXX" = yes; then
3913 CXXFLAGS="-O2"
3914 else
3915 CXXFLAGS=
3916 fi
3917 fi
3918 ac_prog_cxx_stdcxx=no
3919 if test x$ac_prog_cxx_stdcxx = xno
3920 then :
3921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
3922 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
3923 if test ${ac_cv_prog_cxx_11+y}
3924 then :
3925 printf %s "(cached) " >&6
3926 else $as_nop
3927 ac_cv_prog_cxx_11=no
3928 ac_save_CXX=$CXX
3929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3930 /* end confdefs.h. */
3931 $ac_cxx_conftest_cxx11_program
3932 _ACEOF
3933 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
3934 do
3935 CXX="$ac_save_CXX $ac_arg"
3936 if ac_fn_cxx_try_compile "$LINENO"
3937 then :
3938 ac_cv_prog_cxx_cxx11=$ac_arg
3939 fi
3940 rm -f core conftest.err conftest.$ac_objext conftest.beam
3941 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
3942 done
3943 rm -f conftest.$ac_ext
3944 CXX=$ac_save_CXX
3945 fi
3946
3947 if test "x$ac_cv_prog_cxx_cxx11" = xno
3948 then :
3949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3950 printf "%s\n" "unsupported" >&6; }
3951 else $as_nop
3952 if test "x$ac_cv_prog_cxx_cxx11" = x
3953 then :
3954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3955 printf "%s\n" "none needed" >&6; }
3956 else $as_nop
3957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
3958 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
3959 CXX="$CXX $ac_cv_prog_cxx_cxx11"
3960 fi
3961 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
3962 ac_prog_cxx_stdcxx=cxx11
3963 fi
3964 fi
3965 if test x$ac_prog_cxx_stdcxx = xno
3966 then :
3967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
3968 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
3969 if test ${ac_cv_prog_cxx_98+y}
3970 then :
3971 printf %s "(cached) " >&6
3972 else $as_nop
3973 ac_cv_prog_cxx_98=no
3974 ac_save_CXX=$CXX
3975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3976 /* end confdefs.h. */
3977 $ac_cxx_conftest_cxx98_program
3978 _ACEOF
3979 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
3980 do
3981 CXX="$ac_save_CXX $ac_arg"
3982 if ac_fn_cxx_try_compile "$LINENO"
3983 then :
3984 ac_cv_prog_cxx_cxx98=$ac_arg
3985 fi
3986 rm -f core conftest.err conftest.$ac_objext conftest.beam
3987 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
3988 done
3989 rm -f conftest.$ac_ext
3990 CXX=$ac_save_CXX
3991 fi
3992
3993 if test "x$ac_cv_prog_cxx_cxx98" = xno
3994 then :
3995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3996 printf "%s\n" "unsupported" >&6; }
3997 else $as_nop
3998 if test "x$ac_cv_prog_cxx_cxx98" = x
3999 then :
4000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4001 printf "%s\n" "none needed" >&6; }
4002 else $as_nop
4003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
4004 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
4005 CXX="$CXX $ac_cv_prog_cxx_cxx98"
4006 fi
4007 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
4008 ac_prog_cxx_stdcxx=cxx98
4009 fi
4010 fi
4011
4012 ac_ext=c
4013 ac_cpp='$CPP $CPPFLAGS'
4014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4017
4018
4019
4020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
4021 printf %s "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4022 if test ${ac_cv_header_sys_wait_h+y}
4023 then :
4024 printf %s "(cached) " >&6
4025 else $as_nop
4026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4027 /* end confdefs.h. */
4028 #include <sys/types.h>
4029 #include <sys/wait.h>
4030 #ifndef WEXITSTATUS
4031 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4032 #endif
4033 #ifndef WIFEXITED
4034 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4035 #endif
4036
4037 int
4038 main (void)
4039 {
4040 int s;
4041 wait (&s);
4042 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4043 ;
4044 return 0;
4045 }
4046 _ACEOF
4047 if ac_fn_c_try_compile "$LINENO"
4048 then :
4049 ac_cv_header_sys_wait_h=yes
4050 else $as_nop
4051 ac_cv_header_sys_wait_h=no
4052 fi
4053 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4054 fi
4055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
4056 printf "%s\n" "$ac_cv_header_sys_wait_h" >&6; }
4057 if test $ac_cv_header_sys_wait_h = yes; then
4058
4059 printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
4060
4061 fi
4062
4063 ac_header= ac_cache=
4064 for ac_item in $ac_header_c_list
4065 do
4066 if test $ac_cache; then
4067 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4068 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4069 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4070 fi
4071 ac_header= ac_cache=
4072 elif test $ac_header; then
4073 ac_cache=$ac_item
4074 else
4075 ac_header=$ac_item
4076 fi
4077 done
4078
4079
4080
4081
4082
4083
4084
4085
4086 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4087 then :
4088
4089 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4090
4091 fi
4092 ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
4093 if test "x$ac_cv_header_string_h" = xyes
4094 then :
4095 printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
4096
4097 fi
4098 ac_fn_c_check_header_compile "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default"
4099 if test "x$ac_cv_header_memory_h" = xyes
4100 then :
4101 printf "%s\n" "#define HAVE_MEMORY_H 1" >>confdefs.h
4102
4103 fi
4104 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
4105 if test "x$ac_cv_header_sys_time_h" = xyes
4106 then :
4107 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
4108
4109 fi
4110 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
4111 if test "x$ac_cv_header_unistd_h" = xyes
4112 then :
4113 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
4114
4115 fi
4116
4117 ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
4118 if test "x$ac_cv_header_sys_stat_h" = xyes
4119 then :
4120 printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
4121
4122 fi
4123 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
4124 if test "x$ac_cv_header_sys_types_h" = xyes
4125 then :
4126 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
4127
4128 fi
4129 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
4130 if test "x$ac_cv_header_sys_socket_h" = xyes
4131 then :
4132 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
4133
4134 fi
4135 ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
4136 if test "x$ac_cv_header_sys_un_h" = xyes
4137 then :
4138 printf "%s\n" "#define HAVE_SYS_UN_H 1" >>confdefs.h
4139
4140 fi
4141 ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
4142 if test "x$ac_cv_header_netinet_in_h" = xyes
4143 then :
4144 printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
4145
4146 fi
4147 ac_fn_c_check_header_compile "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default"
4148 if test "x$ac_cv_header_netinet_tcp_h" = xyes
4149 then :
4150 printf "%s\n" "#define HAVE_NETINET_TCP_H 1" >>confdefs.h
4151
4152 fi
4153
4154
4155 # Checks for typedefs, structures, and compiler characteristics.
4156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4157 printf %s "checking for an ANSI C-conforming const... " >&6; }
4158 if test ${ac_cv_c_const+y}
4159 then :
4160 printf %s "(cached) " >&6
4161 else $as_nop
4162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4163 /* end confdefs.h. */
4164
4165 int
4166 main (void)
4167 {
4168
4169 #ifndef __cplusplus
4170 /* Ultrix mips cc rejects this sort of thing. */
4171 typedef int charset[2];
4172 const charset cs = { 0, 0 };
4173 /* SunOS 4.1.1 cc rejects this. */
4174 char const *const *pcpcc;
4175 char **ppc;
4176 /* NEC SVR4.0.2 mips cc rejects this. */
4177 struct point {int x, y;};
4178 static struct point const zero = {0,0};
4179 /* IBM XL C 1.02.0.0 rejects this.
4180 It does not let you subtract one const X* pointer from another in
4181 an arm of an if-expression whose if-part is not a constant
4182 expression */
4183 const char *g = "string";
4184 pcpcc = &g + (g ? g-g : 0);
4185 /* HPUX 7.0 cc rejects these. */
4186 ++pcpcc;
4187 ppc = (char**) pcpcc;
4188 pcpcc = (char const *const *) ppc;
4189 { /* SCO 3.2v4 cc rejects this sort of thing. */
4190 char tx;
4191 char *t = &tx;
4192 char const *s = 0 ? (char *) 0 : (char const *) 0;
4193
4194 *t++ = 0;
4195 if (s) return 0;
4196 }
4197 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4198 int x[] = {25, 17};
4199 const int *foo = &x[0];
4200 ++foo;
4201 }
4202 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4203 typedef const int *iptr;
4204 iptr p = 0;
4205 ++p;
4206 }
4207 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
4208 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4209 struct s { int j; const int *ap[3]; } bx;
4210 struct s *b = &bx; b->j = 5;
4211 }
4212 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4213 const int foo = 10;
4214 if (!foo) return 0;
4215 }
4216 return !cs[0] && !zero.x;
4217 #endif
4218
4219 ;
4220 return 0;
4221 }
4222 _ACEOF
4223 if ac_fn_c_try_compile "$LINENO"
4224 then :
4225 ac_cv_c_const=yes
4226 else $as_nop
4227 ac_cv_c_const=no
4228 fi
4229 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4230 fi
4231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4232 printf "%s\n" "$ac_cv_c_const" >&6; }
4233 if test $ac_cv_c_const = no; then
4234
4235 printf "%s\n" "#define const /**/" >>confdefs.h
4236
4237 fi
4238
4239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4240 printf %s "checking whether byte ordering is bigendian... " >&6; }
4241 if test ${ac_cv_c_bigendian+y}
4242 then :
4243 printf %s "(cached) " >&6
4244 else $as_nop
4245 ac_cv_c_bigendian=unknown
4246 # See if we're dealing with a universal compiler.
4247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4248 /* end confdefs.h. */
4249 #ifndef __APPLE_CC__
4250 not a universal capable compiler
4251 #endif
4252 typedef int dummy;
4253
4254 _ACEOF
4255 if ac_fn_c_try_compile "$LINENO"
4256 then :
4257
4258 # Check for potential -arch flags. It is not universal unless
4259 # there are at least two -arch flags with different values.
4260 ac_arch=
4261 ac_prev=
4262 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4263 if test -n "$ac_prev"; then
4264 case $ac_word in
4265 i?86 | x86_64 | ppc | ppc64)
4266 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4267 ac_arch=$ac_word
4268 else
4269 ac_cv_c_bigendian=universal
4270 break
4271 fi
4272 ;;
4273 esac
4274 ac_prev=
4275 elif test "x$ac_word" = "x-arch"; then
4276 ac_prev=arch
4277 fi
4278 done
4279 fi
4280 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4281 if test $ac_cv_c_bigendian = unknown; then
4282 # See if sys/param.h defines the BYTE_ORDER macro.
4283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4284 /* end confdefs.h. */
4285 #include <sys/types.h>
4286 #include <sys/param.h>
4287
4288 int
4289 main (void)
4290 {
4291 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4292 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4293 && LITTLE_ENDIAN)
4294 bogus endian macros
4295 #endif
4296
4297 ;
4298 return 0;
4299 }
4300 _ACEOF
4301 if ac_fn_c_try_compile "$LINENO"
4302 then :
4303 # It does; now see whether it defined to BIG_ENDIAN or not.
4304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4305 /* end confdefs.h. */
4306 #include <sys/types.h>
4307 #include <sys/param.h>
4308
4309 int
4310 main (void)
4311 {
4312 #if BYTE_ORDER != BIG_ENDIAN
4313 not big endian
4314 #endif
4315
4316 ;
4317 return 0;
4318 }
4319 _ACEOF
4320 if ac_fn_c_try_compile "$LINENO"
4321 then :
4322 ac_cv_c_bigendian=yes
4323 else $as_nop
4324 ac_cv_c_bigendian=no
4325 fi
4326 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4327 fi
4328 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4329 fi
4330 if test $ac_cv_c_bigendian = unknown; then
4331 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4333 /* end confdefs.h. */
4334 #include <limits.h>
4335
4336 int
4337 main (void)
4338 {
4339 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4340 bogus endian macros
4341 #endif
4342
4343 ;
4344 return 0;
4345 }
4346 _ACEOF
4347 if ac_fn_c_try_compile "$LINENO"
4348 then :
4349 # It does; now see whether it defined to _BIG_ENDIAN or not.
4350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4351 /* end confdefs.h. */
4352 #include <limits.h>
4353
4354 int
4355 main (void)
4356 {
4357 #ifndef _BIG_ENDIAN
4358 not big endian
4359 #endif
4360
4361 ;
4362 return 0;
4363 }
4364 _ACEOF
4365 if ac_fn_c_try_compile "$LINENO"
4366 then :
4367 ac_cv_c_bigendian=yes
4368 else $as_nop
4369 ac_cv_c_bigendian=no
4370 fi
4371 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4372 fi
4373 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4374 fi
4375 if test $ac_cv_c_bigendian = unknown; then
4376 # Compile a test program.
4377 if test "$cross_compiling" = yes
4378 then :
4379 # Try to guess by grepping values from an object file.
4380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4381 /* end confdefs.h. */
4382 unsigned short int ascii_mm[] =
4383 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4384 unsigned short int ascii_ii[] =
4385 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4386 int use_ascii (int i) {
4387 return ascii_mm[i] + ascii_ii[i];
4388 }
4389 unsigned short int ebcdic_ii[] =
4390 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4391 unsigned short int ebcdic_mm[] =
4392 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4393 int use_ebcdic (int i) {
4394 return ebcdic_mm[i] + ebcdic_ii[i];
4395 }
4396 extern int foo;
4397
4398 int
4399 main (void)
4400 {
4401 return use_ascii (foo) == use_ebcdic (foo);
4402 ;
4403 return 0;
4404 }
4405 _ACEOF
4406 if ac_fn_c_try_compile "$LINENO"
4407 then :
4408 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4409 ac_cv_c_bigendian=yes
4410 fi
4411 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4412 if test "$ac_cv_c_bigendian" = unknown; then
4413 ac_cv_c_bigendian=no
4414 else
4415 # finding both strings is unlikely to happen, but who knows?
4416 ac_cv_c_bigendian=unknown
4417 fi
4418 fi
4419 fi
4420 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4421 else $as_nop
4422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4423 /* end confdefs.h. */
4424 $ac_includes_default
4425 int
4426 main (void)
4427 {
4428
4429 /* Are we little or big endian? From Harbison&Steele. */
4430 union
4431 {
4432 long int l;
4433 char c[sizeof (long int)];
4434 } u;
4435 u.l = 1;
4436 return u.c[sizeof (long int) - 1] == 1;
4437
4438 ;
4439 return 0;
4440 }
4441 _ACEOF
4442 if ac_fn_c_try_run "$LINENO"
4443 then :
4444 ac_cv_c_bigendian=no
4445 else $as_nop
4446 ac_cv_c_bigendian=yes
4447 fi
4448 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4449 conftest.$ac_objext conftest.beam conftest.$ac_ext
4450 fi
4451
4452 fi
4453 fi
4454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4455 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
4456 case $ac_cv_c_bigendian in #(
4457 yes)
4458
4459 printf "%s\n" "#define BS_BIG_ENDIAN 1" >>confdefs.h
4460 ;; #(
4461 no)
4462
4463 printf "%s\n" "#define BS_LITTLE_ENDIAN 1" >>confdefs.h
4464 ;; #(
4465 universal)
4466
4467 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4468
4469 ;; #(
4470 *)
4471
4472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: endianness unknown - will rely solely on compiler macros" >&5
4473 printf "%s\n" "endianness unknown - will rely solely on compiler macros" >&6; }
4474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler sets endianness macros" >&5
4475 printf %s "checking whether compiler sets endianness macros... " >&6; }
4476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4477 /* end confdefs.h. */
4478
4479 #if defined __LITTLE_ENDIAN__ || defined _LITTLE_ENDIAN_ || defined __BIG_ENDIAN__ || defined _BIG_ENDIAN_
4480 #define BS_OK 1
4481 #else
4482 cannot determine compiler's endianness
4483 #endif
4484
4485 _ACEOF
4486 if ac_fn_c_try_compile "$LINENO"
4487 then :
4488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4489 printf "%s\n" "yes" >&6; }
4490 else $as_nop
4491
4492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4493 printf "%s\n" "no" >&6; }
4494 as_fn_error $? "Cannot determine endianness neither from the compiler nor using a test.
4495 Try adding -D_BIG_ENDIAN_ or -D_LITTLE_ENDIAN_ to PKG_CPPFLAGS.
4496 " "$LINENO" 5
4497 fi
4498 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4499 ;;
4500 esac
4501
4502
4503
4504 # Checks for library functions.
4505
4506 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
4507 "
4508 if test "x$ac_cv_type_pid_t" = xyes
4509 then :
4510
4511 else $as_nop
4512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4513 /* end confdefs.h. */
4514
4515 #if defined _WIN64 && !defined __CYGWIN__
4516 LLP64
4517 #endif
4518
4519 int
4520 main (void)
4521 {
4522
4523 ;
4524 return 0;
4525 }
4526
4527 _ACEOF
4528 if ac_fn_c_try_compile "$LINENO"
4529 then :
4530 ac_pid_type='int'
4531 else $as_nop
4532 ac_pid_type='__int64'
4533 fi
4534 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4535
4536 printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
4537
4538
4539 fi
4540
4541
4542
4543 ac_func=
4544 for ac_item in $ac_func_c_list
4545 do
4546 if test $ac_func; then
4547 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
4548 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
4549 echo "#define $ac_item 1" >> confdefs.h
4550 fi
4551 ac_func=
4552 else
4553 ac_func=$ac_item
4554 fi
4555 done
4556
4557
4558
4559 if test "x$ac_cv_func_fork" = xyes; then
4560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
4561 printf %s "checking for working fork... " >&6; }
4562 if test ${ac_cv_func_fork_works+y}
4563 then :
4564 printf %s "(cached) " >&6
4565 else $as_nop
4566 if test "$cross_compiling" = yes
4567 then :
4568 ac_cv_func_fork_works=cross
4569 else $as_nop
4570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4571 /* end confdefs.h. */
4572 $ac_includes_default
4573 int
4574 main (void)
4575 {
4576
4577 /* By Ruediger Kuhlmann. */
4578 return fork () < 0;
4579
4580 ;
4581 return 0;
4582 }
4583 _ACEOF
4584 if ac_fn_c_try_run "$LINENO"
4585 then :
4586 ac_cv_func_fork_works=yes
4587 else $as_nop
4588 ac_cv_func_fork_works=no
4589 fi
4590 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4591 conftest.$ac_objext conftest.beam conftest.$ac_ext
4592 fi
4593
4594 fi
4595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
4596 printf "%s\n" "$ac_cv_func_fork_works" >&6; }
4597
4598 else
4599 ac_cv_func_fork_works=$ac_cv_func_fork
4600 fi
4601 if test "x$ac_cv_func_fork_works" = xcross; then
4602 case $host in
4603 *-*-amigaos* | *-*-msdosdjgpp*)
4604 # Override, as these systems have only a dummy fork() stub
4605 ac_cv_func_fork_works=no
4606 ;;
4607 *)
4608 ac_cv_func_fork_works=yes
4609 ;;
4610 esac
4611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
4612 printf "%s\n" "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
4613 fi
4614 ac_cv_func_vfork_works=$ac_cv_func_vfork
4615 if test "x$ac_cv_func_vfork" = xyes; then
4616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
4617 printf %s "checking for working vfork... " >&6; }
4618 if test ${ac_cv_func_vfork_works+y}
4619 then :
4620 printf %s "(cached) " >&6
4621 else $as_nop
4622 if test "$cross_compiling" = yes
4623 then :
4624 ac_cv_func_vfork_works=cross
4625 else $as_nop
4626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4627 /* end confdefs.h. */
4628 /* Thanks to Paul Eggert for this test. */
4629 $ac_includes_default
4630 #include <signal.h>
4631 #include <sys/wait.h>
4632 #ifdef HAVE_VFORK_H
4633 # include <vfork.h>
4634 #endif
4635
4636 static void
4637 do_nothing (int sig)
4638 {
4639 (void) sig;
4640 }
4641
4642 /* On some sparc systems, changes by the child to local and incoming
4643 argument registers are propagated back to the parent. The compiler
4644 is told about this with #include <vfork.h>, but some compilers
4645 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
4646 static variable whose address is put into a register that is
4647 clobbered by the vfork. */
4648 static void
4649 sparc_address_test (int arg)
4650 {
4651 static pid_t child;
4652 if (!child) {
4653 child = vfork ();
4654 if (child < 0) {
4655 perror ("vfork");
4656 _exit(2);
4657 }
4658 if (!child) {
4659 arg = getpid();
4660 write(-1, "", 0);
4661 _exit (arg);
4662 }
4663 }
4664 }
4665
4666 int
4667 main (void)
4668 {
4669 pid_t parent = getpid ();
4670 pid_t child;
4671
4672 sparc_address_test (0);
4673
4674 /* On Solaris 2.4, changes by the child to the signal handler
4675 also munge signal handlers in the parent. To detect this,
4676 start by putting the parent's handler in a known state. */
4677 signal (SIGTERM, SIG_DFL);
4678
4679 child = vfork ();
4680
4681 if (child == 0) {
4682 /* Here is another test for sparc vfork register problems. This
4683 test uses lots of local variables, at least as many local
4684 variables as main has allocated so far including compiler
4685 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
4686 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
4687 reuse the register of parent for one of the local variables,
4688 since it will think that parent can't possibly be used any more
4689 in this routine. Assigning to the local variable will thus
4690 munge parent in the parent process. */
4691 pid_t
4692 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
4693 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
4694 /* Convince the compiler that p..p7 are live; otherwise, it might
4695 use the same hardware register for all 8 local variables. */
4696 if (p != p1 || p != p2 || p != p3 || p != p4
4697 || p != p5 || p != p6 || p != p7)
4698 _exit(1);
4699
4700 /* Alter the child's signal handler. */
4701 if (signal (SIGTERM, do_nothing) != SIG_DFL)
4702 _exit(1);
4703
4704 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
4705 from child file descriptors. If the child closes a descriptor
4706 before it execs or exits, this munges the parent's descriptor
4707 as well. Test for this by closing stdout in the child. */
4708 _exit(close(fileno(stdout)) != 0);
4709 } else {
4710 int status;
4711 struct stat st;
4712
4713 while (wait(&status) != child)
4714 ;
4715 return (
4716 /* Was there some problem with vforking? */
4717 child < 0
4718
4719 /* Did the child munge the parent's signal handler? */
4720 || signal (SIGTERM, SIG_DFL) != SIG_DFL
4721
4722 /* Did the child fail? (This shouldn't happen.) */
4723 || status
4724
4725 /* Did the vfork/compiler bug occur? */
4726 || parent != getpid()
4727
4728 /* Did the file descriptor bug occur? */
4729 || fstat(fileno(stdout), &st) != 0
4730 );
4731 }
4732 }
4733 _ACEOF
4734 if ac_fn_c_try_run "$LINENO"
4735 then :
4736 ac_cv_func_vfork_works=yes
4737 else $as_nop
4738 ac_cv_func_vfork_works=no
4739 fi
4740 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4741 conftest.$ac_objext conftest.beam conftest.$ac_ext
4742 fi
4743
4744 fi
4745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
4746 printf "%s\n" "$ac_cv_func_vfork_works" >&6; }
4747
4748 fi;
4749 if test "x$ac_cv_func_fork_works" = xcross; then
4750 ac_cv_func_vfork_works=$ac_cv_func_vfork
4751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
4752 printf "%s\n" "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
4753 fi
4754
4755 if test "x$ac_cv_func_vfork_works" = xyes; then
4756
4757 printf "%s\n" "#define HAVE_WORKING_VFORK 1" >>confdefs.h
4758
4759 else
4760
4761 printf "%s\n" "#define vfork fork" >>confdefs.h
4762
4763 fi
4764 if test "x$ac_cv_func_fork_works" = xyes; then
4765
4766 printf "%s\n" "#define HAVE_WORKING_FORK 1" >>confdefs.h
4767
4768 fi
4769
4770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
4771 printf %s "checking return type of signal handlers... " >&6; }
4772 if test ${ac_cv_type_signal+y}
4773 then :
4774 printf %s "(cached) " >&6
4775 else $as_nop
4776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4777 /* end confdefs.h. */
4778 #include <sys/types.h>
4779 #include <signal.h>
4780
4781 int
4782 main (void)
4783 {
4784 return *(signal (0, 0)) (0) == 1;
4785 ;
4786 return 0;
4787 }
4788 _ACEOF
4789 if ac_fn_c_try_compile "$LINENO"
4790 then :
4791 ac_cv_type_signal=int
4792 else $as_nop
4793 ac_cv_type_signal=void
4794 fi
4795 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4796 fi
4797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
4798 printf "%s\n" "$ac_cv_type_signal" >&6; }
4799
4800 printf "%s\n" "#define RETSIGTYPE $ac_cv_type_signal" >>confdefs.h
4801
4802
4803 ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
4804 if test "x$ac_cv_func_memset" = xyes
4805 then :
4806 printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h
4807
4808 fi
4809 ac_fn_c_check_func "$LINENO" "mkdir" "ac_cv_func_mkdir"
4810 if test "x$ac_cv_func_mkdir" = xyes
4811 then :
4812 printf "%s\n" "#define HAVE_MKDIR 1" >>confdefs.h
4813
4814 fi
4815 ac_fn_c_check_func "$LINENO" "rmdir" "ac_cv_func_rmdir"
4816 if test "x$ac_cv_func_rmdir" = xyes
4817 then :
4818 printf "%s\n" "#define HAVE_RMDIR 1" >>confdefs.h
4819
4820 fi
4821 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
4822 if test "x$ac_cv_func_select" = xyes
4823 then :
4824 printf "%s\n" "#define HAVE_SELECT 1" >>confdefs.h
4825
4826 fi
4827 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
4828 if test "x$ac_cv_func_socket" = xyes
4829 then :
4830 printf "%s\n" "#define HAVE_SOCKET 1" >>confdefs.h
4831
4832 fi
4833
4834
4835 # Check whether we can use crypt (and if we do if it's in the crypt library)
4836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
4837 printf %s "checking for library containing crypt... " >&6; }
4838 if test ${ac_cv_search_crypt+y}
4839 then :
4840 printf %s "(cached) " >&6
4841 else $as_nop
4842 ac_func_search_save_LIBS=$LIBS
4843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4844 /* end confdefs.h. */
4845
4846 /* Override any GCC internal prototype to avoid an error.
4847 Use char because int might match the return type of a GCC
4848 builtin and then its argument prototype would still apply. */
4849 char crypt ();
4850 int
4851 main (void)
4852 {
4853 return crypt ();
4854 ;
4855 return 0;
4856 }
4857 _ACEOF
4858 for ac_lib in '' crypt
4859 do
4860 if test -z "$ac_lib"; then
4861 ac_res="none required"
4862 else
4863 ac_res=-l$ac_lib
4864 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4865 fi
4866 if ac_fn_c_try_link "$LINENO"
4867 then :
4868 ac_cv_search_crypt=$ac_res
4869 fi
4870 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4871 conftest$ac_exeext
4872 if test ${ac_cv_search_crypt+y}
4873 then :
4874 break
4875 fi
4876 done
4877 if test ${ac_cv_search_crypt+y}
4878 then :
4879
4880 else $as_nop
4881 ac_cv_search_crypt=no
4882 fi
4883 rm conftest.$ac_ext
4884 LIBS=$ac_func_search_save_LIBS
4885 fi
4886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
4887 printf "%s\n" "$ac_cv_search_crypt" >&6; }
4888 ac_res=$ac_cv_search_crypt
4889 if test "$ac_res" != no
4890 then :
4891 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4892
4893 printf "%s\n" "#define HAS_CRYPT 1" >>confdefs.h
4894
4895 fi
4896
4897 ac_fn_c_check_header_compile "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default"
4898 if test "x$ac_cv_header_crypt_h" = xyes
4899 then :
4900 printf "%s\n" "#define HAVE_CRYPT_H 1" >>confdefs.h
4901
4902 fi
4903
4904
4905 # socket related stuff - indroduced first due to Solaris
4906 # socklen_t - note that we don't try to find an equivalent!
4907 # we'll use BSD-style int in case this one isn't defined.
4908 # that should be fine for all major platforms.
4909 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
4910 #include <sys/types.h>
4911 #include <sys/socket.h>
4912
4913 "
4914 if test "x$ac_cv_type_socklen_t" = xyes
4915 then :
4916
4917 else $as_nop
4918
4919 printf "%s\n" "#define socklen_t int" >>confdefs.h
4920
4921 fi
4922
4923 # connect may need -lsocket and/or -lnsl (e.g. on Solaris)
4924 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
4925 if test "x$ac_cv_func_connect" = xyes
4926 then :
4927 printf "%s\n" "#define HAVE_CONNECT 1" >>confdefs.h
4928
4929 fi
4930
4931 if test x"$ac_cv_func_connect" = x"no"; then
4932 case "$LIBS" in
4933 *-lnsl*) ;;
4934 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for printf in -lnsl_s" >&5
4935 printf %s "checking for printf in -lnsl_s... " >&6; }
4936 if test ${ac_cv_lib_nsl_s_printf+y}
4937 then :
4938 printf %s "(cached) " >&6
4939 else $as_nop
4940 ac_check_lib_save_LIBS=$LIBS
4941 LIBS="-lnsl_s $LIBS"
4942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4943 /* end confdefs.h. */
4944
4945 /* Override any GCC internal prototype to avoid an error.
4946 Use char because int might match the return type of a GCC
4947 builtin and then its argument prototype would still apply. */
4948 char printf ();
4949 int
4950 main (void)
4951 {
4952 return printf ();
4953 ;
4954 return 0;
4955 }
4956 _ACEOF
4957 if ac_fn_c_try_link "$LINENO"
4958 then :
4959 ac_cv_lib_nsl_s_printf=yes
4960 else $as_nop
4961 ac_cv_lib_nsl_s_printf=no
4962 fi
4963 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4964 conftest$ac_exeext conftest.$ac_ext
4965 LIBS=$ac_check_lib_save_LIBS
4966 fi
4967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_s_printf" >&5
4968 printf "%s\n" "$ac_cv_lib_nsl_s_printf" >&6; }
4969 if test "x$ac_cv_lib_nsl_s_printf" = xyes
4970 then :
4971 printf "%s\n" "#define HAVE_LIBNSL_S 1" >>confdefs.h
4972
4973 LIBS="-lnsl_s $LIBS"
4974
4975 fi
4976 ;;
4977 esac
4978 case "$LIBS" in
4979 *-lnsl*) ;;
4980 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for printf in -lnsl" >&5
4981 printf %s "checking for printf in -lnsl... " >&6; }
4982 if test ${ac_cv_lib_nsl_printf+y}
4983 then :
4984 printf %s "(cached) " >&6
4985 else $as_nop
4986 ac_check_lib_save_LIBS=$LIBS
4987 LIBS="-lnsl $LIBS"
4988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4989 /* end confdefs.h. */
4990
4991 /* Override any GCC internal prototype to avoid an error.
4992 Use char because int might match the return type of a GCC
4993 builtin and then its argument prototype would still apply. */
4994 char printf ();
4995 int
4996 main (void)
4997 {
4998 return printf ();
4999 ;
5000 return 0;
5001 }
5002 _ACEOF
5003 if ac_fn_c_try_link "$LINENO"
5004 then :
5005 ac_cv_lib_nsl_printf=yes
5006 else $as_nop
5007 ac_cv_lib_nsl_printf=no
5008 fi
5009 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5010 conftest$ac_exeext conftest.$ac_ext
5011 LIBS=$ac_check_lib_save_LIBS
5012 fi
5013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_printf" >&5
5014 printf "%s\n" "$ac_cv_lib_nsl_printf" >&6; }
5015 if test "x$ac_cv_lib_nsl_printf" = xyes
5016 then :
5017 printf "%s\n" "#define HAVE_LIBNSL 1" >>confdefs.h
5018
5019 LIBS="-lnsl $LIBS"
5020
5021 fi
5022 ;;
5023 esac
5024 case "$LIBS" in
5025 *-lsocket*) ;;
5026 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
5027 printf %s "checking for connect in -lsocket... " >&6; }
5028 if test ${ac_cv_lib_socket_connect+y}
5029 then :
5030 printf %s "(cached) " >&6
5031 else $as_nop
5032 ac_check_lib_save_LIBS=$LIBS
5033 LIBS="-lsocket $LIBS"
5034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5035 /* end confdefs.h. */
5036
5037 /* Override any GCC internal prototype to avoid an error.
5038 Use char because int might match the return type of a GCC
5039 builtin and then its argument prototype would still apply. */
5040 char connect ();
5041 int
5042 main (void)
5043 {
5044 return connect ();
5045 ;
5046 return 0;
5047 }
5048 _ACEOF
5049 if ac_fn_c_try_link "$LINENO"
5050 then :
5051 ac_cv_lib_socket_connect=yes
5052 else $as_nop
5053 ac_cv_lib_socket_connect=no
5054 fi
5055 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5056 conftest$ac_exeext conftest.$ac_ext
5057 LIBS=$ac_check_lib_save_LIBS
5058 fi
5059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
5060 printf "%s\n" "$ac_cv_lib_socket_connect" >&6; }
5061 if test "x$ac_cv_lib_socket_connect" = xyes
5062 then :
5063 printf "%s\n" "#define HAVE_LIBSOCKET 1" >>confdefs.h
5064
5065 LIBS="-lsocket $LIBS"
5066
5067 fi
5068 ;;
5069 esac
5070 case "$LIBS" in
5071 *-linet*) ;;
5072 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect in -linet" >&5
5073 printf %s "checking for connect in -linet... " >&6; }
5074 if test ${ac_cv_lib_inet_connect+y}
5075 then :
5076 printf %s "(cached) " >&6
5077 else $as_nop
5078 ac_check_lib_save_LIBS=$LIBS
5079 LIBS="-linet $LIBS"
5080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5081 /* end confdefs.h. */
5082
5083 /* Override any GCC internal prototype to avoid an error.
5084 Use char because int might match the return type of a GCC
5085 builtin and then its argument prototype would still apply. */
5086 char connect ();
5087 int
5088 main (void)
5089 {
5090 return connect ();
5091 ;
5092 return 0;
5093 }
5094 _ACEOF
5095 if ac_fn_c_try_link "$LINENO"
5096 then :
5097 ac_cv_lib_inet_connect=yes
5098 else $as_nop
5099 ac_cv_lib_inet_connect=no
5100 fi
5101 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5102 conftest$ac_exeext conftest.$ac_ext
5103 LIBS=$ac_check_lib_save_LIBS
5104 fi
5105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_connect" >&5
5106 printf "%s\n" "$ac_cv_lib_inet_connect" >&6; }
5107 if test "x$ac_cv_lib_inet_connect" = xyes
5108 then :
5109 printf "%s\n" "#define HAVE_LIBINET 1" >>confdefs.h
5110
5111 LIBS="-linet $LIBS"
5112
5113 fi
5114 ;;
5115 esac
5116 if test x"$ac_cv_lib_socket_connect" = x"yes" ||
5117 test x"$ac_cv_lib_inet_connect" = x"yes"; then
5118 # ac_cv_func_connect=yes
5119 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
5120
5121 printf "%s\n" "#define HAVE_CONNECT 1" >>confdefs.h
5122
5123 fi
5124 fi
5125
5126 # on some platforms libR expects dl code in the binary
5127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
5128 printf %s "checking for dlopen in -ldl... " >&6; }
5129 if test ${ac_cv_lib_dl_dlopen+y}
5130 then :
5131 printf %s "(cached) " >&6
5132 else $as_nop
5133 ac_check_lib_save_LIBS=$LIBS
5134 LIBS="-ldl $LIBS"
5135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5136 /* end confdefs.h. */
5137
5138 /* Override any GCC internal prototype to avoid an error.
5139 Use char because int might match the return type of a GCC
5140 builtin and then its argument prototype would still apply. */
5141 char dlopen ();
5142 int
5143 main (void)
5144 {
5145 return dlopen ();
5146 ;
5147 return 0;
5148 }
5149 _ACEOF
5150 if ac_fn_c_try_link "$LINENO"
5151 then :
5152 ac_cv_lib_dl_dlopen=yes
5153 else $as_nop
5154 ac_cv_lib_dl_dlopen=no
5155 fi
5156 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5157 conftest$ac_exeext conftest.$ac_ext
5158 LIBS=$ac_check_lib_save_LIBS
5159 fi
5160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
5161 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
5162 if test "x$ac_cv_lib_dl_dlopen" = xyes
5163 then :
5164 printf "%s\n" "#define HAVE_LIBDL 1" >>confdefs.h
5165
5166 LIBS="-ldl $LIBS"
5167
5168 fi
5169
5170
5171 ac_config_files="$ac_config_files Makefile"
5172
5173 cat >confcache <<\_ACEOF
5174 # This file is a shell script that caches the results of configure
5175 # tests run on this system so they can be shared between configure
5176 # scripts and configure runs, see configure's option --config-cache.
5177 # It is not useful on other systems. If it contains results you don't
5178 # want to keep, you may remove or edit it.
5179 #
5180 # config.status only pays attention to the cache file if you give it
5181 # the --recheck option to rerun configure.
5182 #
5183 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5184 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5185 # following values.
5186
5187 _ACEOF
5188
5189 # The following way of writing the cache mishandles newlines in values,
5190 # but we know of no workaround that is simple, portable, and efficient.
5191 # So, we kill variables containing newlines.
5192 # Ultrix sh set writes to stderr and can't be redirected directly,
5193 # and sets the high bit in the cache file unless we assign to the vars.
5194 (
5195 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5196 eval ac_val=\$$ac_var
5197 case $ac_val in #(
5198 *${as_nl}*)
5199 case $ac_var in #(
5200 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5201 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5202 esac
5203 case $ac_var in #(
5204 _ | IFS | as_nl) ;; #(
5205 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5206 *) { eval $ac_var=; unset $ac_var;} ;;
5207 esac ;;
5208 esac
5209 done
5210
5211 (set) 2>&1 |
5212 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5213 *${as_nl}ac_space=\ *)
5214 # `set' does not quote correctly, so add quotes: double-quote
5215 # substitution turns \\\\ into \\, and sed turns \\ into \.
5216 sed -n \
5217 "s/'/'\\\\''/g;
5218 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5219 ;; #(
5220 *)
5221 # `set' quotes correctly as required by POSIX, so do not add quotes.
5222 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5223 ;;
5224 esac |
5225 sort
5226 ) |
5227 sed '
5228 /^ac_cv_env_/b end
5229 t clear
5230 :clear
5231 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
5232 t end
5233 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5234 :end' >>confcache
5235 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5236 if test -w "$cache_file"; then
5237 if test "x$cache_file" != "x/dev/null"; then
5238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5239 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
5240 if test ! -f "$cache_file" || test -h "$cache_file"; then
5241 cat confcache >"$cache_file"
5242 else
5243 case $cache_file in #(
5244 */* | ?:*)
5245 mv -f confcache "$cache_file"$$ &&
5246 mv -f "$cache_file"$$ "$cache_file" ;; #(
5247 *)
5248 mv -f confcache "$cache_file" ;;
5249 esac
5250 fi
5251 fi
5252 else
5253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5254 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
5255 fi
5256 fi
5257 rm -f confcache
5258
5259 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5260 # Let make expand exec_prefix.
5261 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5262
5263 DEFS=-DHAVE_CONFIG_H
5264
5265 ac_libobjs=
5266 ac_ltlibobjs=
5267 U=
5268 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5269 # 1. Remove the extension, and $U if already installed.
5270 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5271 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
5272 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5273 # will be set to the directory where LIBOBJS objects are built.
5274 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5275 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5276 done
5277 LIBOBJS=$ac_libobjs
5278
5279 LTLIBOBJS=$ac_ltlibobjs
5280
5281
5282
5283
5284 : "${CONFIG_STATUS=./config.status}"
5285 ac_write_fail=0
5286 ac_clean_files_save=$ac_clean_files
5287 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5289 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
5290 as_write_fail=0
5291 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5292 #! $SHELL
5293 # Generated by $as_me.
5294 # Run this file to recreate the current configuration.
5295 # Compiler output produced by configure, useful for debugging
5296 # configure, is in config.log if it exists.
5297
5298 debug=false
5299 ac_cs_recheck=false
5300 ac_cs_silent=false
5301
5302 SHELL=\${CONFIG_SHELL-$SHELL}
5303 export SHELL
5304 _ASEOF
5305 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5306 ## -------------------- ##
5307 ## M4sh Initialization. ##
5308 ## -------------------- ##
5309
5310 # Be more Bourne compatible
5311 DUALCASE=1; export DUALCASE # for MKS sh
5312 as_nop=:
5313 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
5314 then :
5315 emulate sh
5316 NULLCMD=:
5317 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5318 # is contrary to our usage. Disable this feature.
5319 alias -g '${1+"$@"}'='"$@"'
5320 setopt NO_GLOB_SUBST
5321 else $as_nop
5322 case `(set -o) 2>/dev/null` in #(
5323 *posix*) :
5324 set -o posix ;; #(
5325 *) :
5326 ;;
5327 esac
5328 fi
5329
5330
5331
5332 # Reset variables that may have inherited troublesome values from
5333 # the environment.
5334
5335 # IFS needs to be set, to space, tab, and newline, in precisely that order.
5336 # (If _AS_PATH_WALK were called with IFS unset, it would have the
5337 # side effect of setting IFS to empty, thus disabling word splitting.)
5338 # Quoting is to prevent editors from complaining about space-tab.
5339 as_nl='
5340 '
5341 export as_nl
5342 IFS=" "" $as_nl"
5343
5344 PS1='$ '
5345 PS2='> '
5346 PS4='+ '
5347
5348 # Ensure predictable behavior from utilities with locale-dependent output.
5349 LC_ALL=C
5350 export LC_ALL
5351 LANGUAGE=C
5352 export LANGUAGE
5353
5354 # We cannot yet rely on "unset" to work, but we need these variables
5355 # to be unset--not just set to an empty or harmless value--now, to
5356 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
5357 # also avoids known problems related to "unset" and subshell syntax
5358 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
5359 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
5360 do eval test \${$as_var+y} \
5361 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5362 done
5363
5364 # Ensure that fds 0, 1, and 2 are open.
5365 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
5366 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
5367 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
5368
5369 # The user is always right.
5370 if ${PATH_SEPARATOR+false} :; then
5371 PATH_SEPARATOR=:
5372 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5373 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5374 PATH_SEPARATOR=';'
5375 }
5376 fi
5377
5378
5379 # Find who we are. Look in the path if we contain no directory separator.
5380 as_myself=
5381 case $0 in #((
5382 *[\\/]* ) as_myself=$0 ;;
5383 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5384 for as_dir in $PATH
5385 do
5386 IFS=$as_save_IFS
5387 case $as_dir in #(((
5388 '') as_dir=./ ;;
5389 */) ;;
5390 *) as_dir=$as_dir/ ;;
5391 esac
5392 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
5393 done
5394 IFS=$as_save_IFS
5395
5396 ;;
5397 esac
5398 # We did not find ourselves, most probably we were run as `sh COMMAND'
5399 # in which case we are not to be found in the path.
5400 if test "x$as_myself" = x; then
5401 as_myself=$0
5402 fi
5403 if test ! -f "$as_myself"; then
5404 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5405 exit 1
5406 fi
5407
5408
5409
5410 # as_fn_error STATUS ERROR [LINENO LOG_FD]
5411 # ----------------------------------------
5412 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5413 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5414 # script with STATUS, using 1 if that was 0.
5415 as_fn_error ()
5416 {
5417 as_status=$1; test $as_status -eq 0 && as_status=1
5418 if test "$4"; then
5419 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5420 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5421 fi
5422 printf "%s\n" "$as_me: error: $2" >&2
5423 as_fn_exit $as_status
5424 } # as_fn_error
5425
5426
5427
5428 # as_fn_set_status STATUS
5429 # -----------------------
5430 # Set $? to STATUS, without forking.
5431 as_fn_set_status ()
5432 {
5433 return $1
5434 } # as_fn_set_status
5435
5436 # as_fn_exit STATUS
5437 # -----------------
5438 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5439 as_fn_exit ()
5440 {
5441 set +e
5442 as_fn_set_status $1
5443 exit $1
5444 } # as_fn_exit
5445
5446 # as_fn_unset VAR
5447 # ---------------
5448 # Portably unset VAR.
5449 as_fn_unset ()
5450 {
5451 { eval $1=; unset $1;}
5452 }
5453 as_unset=as_fn_unset
5454
5455 # as_fn_append VAR VALUE
5456 # ----------------------
5457 # Append the text in VALUE to the end of the definition contained in VAR. Take
5458 # advantage of any shell optimizations that allow amortized linear growth over
5459 # repeated appends, instead of the typical quadratic growth present in naive
5460 # implementations.
5461 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
5462 then :
5463 eval 'as_fn_append ()
5464 {
5465 eval $1+=\$2
5466 }'
5467 else $as_nop
5468 as_fn_append ()
5469 {
5470 eval $1=\$$1\$2
5471 }
5472 fi # as_fn_append
5473
5474 # as_fn_arith ARG...
5475 # ------------------
5476 # Perform arithmetic evaluation on the ARGs, and store the result in the
5477 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5478 # must be portable across $(()) and expr.
5479 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
5480 then :
5481 eval 'as_fn_arith ()
5482 {
5483 as_val=$(( $* ))
5484 }'
5485 else $as_nop
5486 as_fn_arith ()
5487 {
5488 as_val=`expr "$@" || test $? -eq 1`
5489 }
5490 fi # as_fn_arith
5491
5492
5493 if expr a : '\(a\)' >/dev/null 2>&1 &&
5494 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5495 as_expr=expr
5496 else
5497 as_expr=false
5498 fi
5499
5500 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5501 as_basename=basename
5502 else
5503 as_basename=false
5504 fi
5505
5506 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5507 as_dirname=dirname
5508 else
5509 as_dirname=false
5510 fi
5511
5512 as_me=`$as_basename -- "$0" ||
5513 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5514 X"$0" : 'X\(//\)$' \| \
5515 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5516 printf "%s\n" X/"$0" |
5517 sed '/^.*\/\([^/][^/]*\)\/*$/{
5518 s//\1/
5519 q
5520 }
5521 /^X\/\(\/\/\)$/{
5522 s//\1/
5523 q
5524 }
5525 /^X\/\(\/\).*/{
5526 s//\1/
5527 q
5528 }
5529 s/.*/./; q'`
5530
5531 # Avoid depending upon Character Ranges.
5532 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5533 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5534 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5535 as_cr_digits='0123456789'
5536 as_cr_alnum=$as_cr_Letters$as_cr_digits
5537
5538
5539 # Determine whether it's possible to make 'echo' print without a newline.
5540 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
5541 # for compatibility with existing Makefiles.
5542 ECHO_C= ECHO_N= ECHO_T=
5543 case `echo -n x` in #(((((
5544 -n*)
5545 case `echo 'xy\c'` in
5546 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5547 xy) ECHO_C='\c';;
5548 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5549 ECHO_T=' ';;
5550 esac;;
5551 *)
5552 ECHO_N='-n';;
5553 esac
5554
5555 # For backward compatibility with old third-party macros, we provide
5556 # the shell variables $as_echo and $as_echo_n. New code should use
5557 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
5558 as_echo='printf %s\n'
5559 as_echo_n='printf %s'
5560
5561 rm -f conf$$ conf$$.exe conf$$.file
5562 if test -d conf$$.dir; then
5563 rm -f conf$$.dir/conf$$.file
5564 else
5565 rm -f conf$$.dir
5566 mkdir conf$$.dir 2>/dev/null
5567 fi
5568 if (echo >conf$$.file) 2>/dev/null; then
5569 if ln -s conf$$.file conf$$ 2>/dev/null; then
5570 as_ln_s='ln -s'
5571 # ... but there are two gotchas:
5572 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5573 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5574 # In both cases, we have to default to `cp -pR'.
5575 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5576 as_ln_s='cp -pR'
5577 elif ln conf$$.file conf$$ 2>/dev/null; then
5578 as_ln_s=ln
5579 else
5580 as_ln_s='cp -pR'
5581 fi
5582 else
5583 as_ln_s='cp -pR'
5584 fi
5585 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5586 rmdir conf$$.dir 2>/dev/null
5587
5588
5589 # as_fn_mkdir_p
5590 # -------------
5591 # Create "$as_dir" as a directory, including parents if necessary.
5592 as_fn_mkdir_p ()
5593 {
5594
5595 case $as_dir in #(
5596 -*) as_dir=./$as_dir;;
5597 esac
5598 test -d "$as_dir" || eval $as_mkdir_p || {
5599 as_dirs=
5600 while :; do
5601 case $as_dir in #(
5602 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5603 *) as_qdir=$as_dir;;
5604 esac
5605 as_dirs="'$as_qdir' $as_dirs"
5606 as_dir=`$as_dirname -- "$as_dir" ||
5607 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5608 X"$as_dir" : 'X\(//\)[^/]' \| \
5609 X"$as_dir" : 'X\(//\)$' \| \
5610 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5611 printf "%s\n" X"$as_dir" |
5612 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5613 s//\1/
5614 q
5615 }
5616 /^X\(\/\/\)[^/].*/{
5617 s//\1/
5618 q
5619 }
5620 /^X\(\/\/\)$/{
5621 s//\1/
5622 q
5623 }
5624 /^X\(\/\).*/{
5625 s//\1/
5626 q
5627 }
5628 s/.*/./; q'`
5629 test -d "$as_dir" && break
5630 done
5631 test -z "$as_dirs" || eval "mkdir $as_dirs"
5632 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5633
5634
5635 } # as_fn_mkdir_p
5636 if mkdir -p . 2>/dev/null; then
5637 as_mkdir_p='mkdir -p "$as_dir"'
5638 else
5639 test -d ./-p && rmdir ./-p
5640 as_mkdir_p=false
5641 fi
5642
5643
5644 # as_fn_executable_p FILE
5645 # -----------------------
5646 # Test if FILE is an executable regular file.
5647 as_fn_executable_p ()
5648 {
5649 test -f "$1" && test -x "$1"
5650 } # as_fn_executable_p
5651 as_test_x='test -x'
5652 as_executable_p=as_fn_executable_p
5653
5654 # Sed expression to map a string onto a valid CPP name.
5655 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5656
5657 # Sed expression to map a string onto a valid variable name.
5658 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5659
5660
5661 exec 6>&1
5662 ## ----------------------------------- ##
5663 ## Main body of $CONFIG_STATUS script. ##
5664 ## ----------------------------------- ##
5665 _ASEOF
5666 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5667
5668 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5669 # Save the log message, to keep $0 and so on meaningful, and to
5670 # report actual input values of CONFIG_FILES etc. instead of their
5671 # values after options handling.
5672 ac_log="
5673 This file was extended by Rserve-cxx-client $as_me 0.1, which was
5674 generated by GNU Autoconf 2.71. Invocation command line was
5675
5676 CONFIG_FILES = $CONFIG_FILES
5677 CONFIG_HEADERS = $CONFIG_HEADERS
5678 CONFIG_LINKS = $CONFIG_LINKS
5679 CONFIG_COMMANDS = $CONFIG_COMMANDS
5680 $ $0 $@
5681
5682 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5683 "
5684
5685 _ACEOF
5686
5687 case $ac_config_files in *"
5688 "*) set x $ac_config_files; shift; ac_config_files=$*;;
5689 esac
5690
5691 case $ac_config_headers in *"
5692 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5693 esac
5694
5695
5696 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5697 # Files that config.status was made for.
5698 config_files="$ac_config_files"
5699 config_headers="$ac_config_headers"
5700
5701 _ACEOF
5702
5703 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5704 ac_cs_usage="\
5705 \`$as_me' instantiates files and other configuration actions
5706 from templates according to the current configuration. Unless the files
5707 and actions are specified as TAGs, all are instantiated by default.
5708
5709 Usage: $0 [OPTION]... [TAG]...
5710
5711 -h, --help print this help, then exit
5712 -V, --version print version number and configuration settings, then exit
5713 --config print configuration, then exit
5714 -q, --quiet, --silent
5715 do not print progress messages
5716 -d, --debug don't remove temporary files
5717 --recheck update $as_me by reconfiguring in the same conditions
5718 --file=FILE[:TEMPLATE]
5719 instantiate the configuration file FILE
5720 --header=FILE[:TEMPLATE]
5721 instantiate the configuration header FILE
5722
5723 Configuration files:
5724 $config_files
5725
5726 Configuration headers:
5727 $config_headers
5728
5729 Report bugs to <[email protected]>."
5730
5731 _ACEOF
5732 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
5733 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
5734 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5735 ac_cs_config='$ac_cs_config_escaped'
5736 ac_cs_version="\\
5737 Rserve-cxx-client config.status 0.1
5738 configured by $0, generated by GNU Autoconf 2.71,
5739 with options \\"\$ac_cs_config\\"
5740
5741 Copyright (C) 2021 Free Software Foundation, Inc.
5742 This config.status script is free software; the Free Software Foundation
5743 gives unlimited permission to copy, distribute and modify it."
5744
5745 ac_pwd='$ac_pwd'
5746 srcdir='$srcdir'
5747 test -n "\$AWK" || AWK=awk
5748 _ACEOF
5749
5750 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5751 # The default lists apply if the user does not specify any file.
5752 ac_need_defaults=:
5753 while test $# != 0
5754 do
5755 case $1 in
5756 --*=?*)
5757 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5758 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5759 ac_shift=:
5760 ;;
5761 --*=)
5762 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5763 ac_optarg=
5764 ac_shift=:
5765 ;;
5766 *)
5767 ac_option=$1
5768 ac_optarg=$2
5769 ac_shift=shift
5770 ;;
5771 esac
5772
5773 case $ac_option in
5774 # Handling of the options.
5775 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5776 ac_cs_recheck=: ;;
5777 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5778 printf "%s\n" "$ac_cs_version"; exit ;;
5779 --config | --confi | --conf | --con | --co | --c )
5780 printf "%s\n" "$ac_cs_config"; exit ;;
5781 --debug | --debu | --deb | --de | --d | -d )
5782 debug=: ;;
5783 --file | --fil | --fi | --f )
5784 $ac_shift
5785 case $ac_optarg in
5786 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5787 '') as_fn_error $? "missing file argument" ;;
5788 esac
5789 as_fn_append CONFIG_FILES " '$ac_optarg'"
5790 ac_need_defaults=false;;
5791 --header | --heade | --head | --hea )
5792 $ac_shift
5793 case $ac_optarg in
5794 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5795 esac
5796 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5797 ac_need_defaults=false;;
5798 --he | --h)
5799 # Conflict between --help and --header
5800 as_fn_error $? "ambiguous option: \`$1'
5801 Try \`$0 --help' for more information.";;
5802 --help | --hel | -h )
5803 printf "%s\n" "$ac_cs_usage"; exit ;;
5804 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5805 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5806 ac_cs_silent=: ;;
5807
5808 # This is an error.
5809 -*) as_fn_error $? "unrecognized option: \`$1'
5810 Try \`$0 --help' for more information." ;;
5811
5812 *) as_fn_append ac_config_targets " $1"
5813 ac_need_defaults=false ;;
5814
5815 esac
5816 shift
5817 done
5818
5819 ac_configure_extra_args=
5820
5821 if $ac_cs_silent; then
5822 exec 6>/dev/null
5823 ac_configure_extra_args="$ac_configure_extra_args --silent"
5824 fi
5825
5826 _ACEOF
5827 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5828 if \$ac_cs_recheck; then
5829 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5830 shift
5831 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
5832 CONFIG_SHELL='$SHELL'
5833 export CONFIG_SHELL
5834 exec "\$@"
5835 fi
5836
5837 _ACEOF
5838 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5839 exec 5>>config.log
5840 {
5841 echo
5842 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5843 ## Running $as_me. ##
5844 _ASBOX
5845 printf "%s\n" "$ac_log"
5846 } >&5
5847
5848 _ACEOF
5849 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5850 _ACEOF
5851
5852 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5853
5854 # Handling of arguments.
5855 for ac_config_target in $ac_config_targets
5856 do
5857 case $ac_config_target in
5858 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5859 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5860
5861 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5862 esac
5863 done
5864
5865
5866 # If the user did not use the arguments to specify the items to instantiate,
5867 # then the envvar interface is used. Set only those that are not.
5868 # We use the long form for the default assignment because of an extremely
5869 # bizarre bug on SunOS 4.1.3.
5870 if $ac_need_defaults; then
5871 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
5872 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
5873 fi
5874
5875 # Have a temporary directory for convenience. Make it in the build tree
5876 # simply because there is no reason against having it here, and in addition,
5877 # creating and moving files from /tmp can sometimes cause problems.
5878 # Hook for its removal unless debugging.
5879 # Note that there is a small window in which the directory will not be cleaned:
5880 # after its creation but before its name has been assigned to `$tmp'.
5881 $debug ||
5882 {
5883 tmp= ac_tmp=
5884 trap 'exit_status=$?
5885 : "${ac_tmp:=$tmp}"
5886 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5887 ' 0
5888 trap 'as_fn_exit 1' 1 2 13 15
5889 }
5890 # Create a (secure) tmp directory for tmp files.
5891
5892 {
5893 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5894 test -d "$tmp"
5895 } ||
5896 {
5897 tmp=./conf$$-$RANDOM
5898 (umask 077 && mkdir "$tmp")
5899 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5900 ac_tmp=$tmp
5901
5902 # Set up the scripts for CONFIG_FILES section.
5903 # No need to generate them if there are no CONFIG_FILES.
5904 # This happens for instance with `./config.status config.h'.
5905 if test -n "$CONFIG_FILES"; then
5906
5907
5908 ac_cr=`echo X | tr X '\015'`
5909 # On cygwin, bash can eat \r inside `` if the user requested igncr.
5910 # But we know of no other shell where ac_cr would be empty at this
5911 # point, so we can use a bashism as a fallback.
5912 if test "x$ac_cr" = x; then
5913 eval ac_cr=\$\'\\r\'
5914 fi
5915 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5916 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5917 ac_cs_awk_cr='\\r'
5918 else
5919 ac_cs_awk_cr=$ac_cr
5920 fi
5921
5922 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5923 _ACEOF
5924
5925
5926 {
5927 echo "cat >conf$$subs.awk <<_ACEOF" &&
5928 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5929 echo "_ACEOF"
5930 } >conf$$subs.sh ||
5931 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5932 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5933 ac_delim='%!_!# '
5934 for ac_last_try in false false false false false :; do
5935 . ./conf$$subs.sh ||
5936 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5937
5938 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5939 if test $ac_delim_n = $ac_delim_num; then
5940 break
5941 elif $ac_last_try; then
5942 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5943 else
5944 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5945 fi
5946 done
5947 rm -f conf$$subs.sh
5948
5949 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5950 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5951 _ACEOF
5952 sed -n '
5953 h
5954 s/^/S["/; s/!.*/"]=/
5955 p
5956 g
5957 s/^[^!]*!//
5958 :repl
5959 t repl
5960 s/'"$ac_delim"'$//
5961 t delim
5962 :nl
5963 h
5964 s/\(.\{148\}\)..*/\1/
5965 t more1
5966 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5967 p
5968 n
5969 b repl
5970 :more1
5971 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5972 p
5973 g
5974 s/.\{148\}//
5975 t nl
5976 :delim
5977 h
5978 s/\(.\{148\}\)..*/\1/
5979 t more2
5980 s/["\\]/\\&/g; s/^/"/; s/$/"/
5981 p
5982 b
5983 :more2
5984 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5985 p
5986 g
5987 s/.\{148\}//
5988 t delim
5989 ' <conf$$subs.awk | sed '
5990 /^[^""]/{
5991 N
5992 s/\n//
5993 }
5994 ' >>$CONFIG_STATUS || ac_write_fail=1
5995 rm -f conf$$subs.awk
5996 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5997 _ACAWK
5998 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5999 for (key in S) S_is_set[key] = 1
6000 FS = ""
6001
6002 }
6003 {
6004 line = $ 0
6005 nfields = split(line, field, "@")
6006 substed = 0
6007 len = length(field[1])
6008 for (i = 2; i < nfields; i++) {
6009 key = field[i]
6010 keylen = length(key)
6011 if (S_is_set[key]) {
6012 value = S[key]
6013 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6014 len += length(value) + length(field[++i])
6015 substed = 1
6016 } else
6017 len += 1 + keylen
6018 }
6019
6020 print line
6021 }
6022
6023 _ACAWK
6024 _ACEOF
6025 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6026 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6027 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6028 else
6029 cat
6030 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6031 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6032 _ACEOF
6033
6034 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6035 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6036 # trailing colons and then remove the whole line if VPATH becomes empty
6037 # (actually we leave an empty line to preserve line numbers).
6038 if test "x$srcdir" = x.; then
6039 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6040 h
6041 s///
6042 s/^/:/
6043 s/[ ]*$/:/
6044 s/:\$(srcdir):/:/g
6045 s/:\${srcdir}:/:/g
6046 s/:@srcdir@:/:/g
6047 s/^:*//
6048 s/:*$//
6049 x
6050 s/\(=[ ]*\).*/\1/
6051 G
6052 s/\n//
6053 s/^[^=]*=[ ]*$//
6054 }'
6055 fi
6056
6057 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6058 fi # test -n "$CONFIG_FILES"
6059
6060 # Set up the scripts for CONFIG_HEADERS section.
6061 # No need to generate them if there are no CONFIG_HEADERS.
6062 # This happens for instance with `./config.status Makefile'.
6063 if test -n "$CONFIG_HEADERS"; then
6064 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
6065 BEGIN {
6066 _ACEOF
6067
6068 # Transform confdefs.h into an awk script `defines.awk', embedded as
6069 # here-document in config.status, that substitutes the proper values into
6070 # config.h.in to produce config.h.
6071
6072 # Create a delimiter string that does not exist in confdefs.h, to ease
6073 # handling of long lines.
6074 ac_delim='%!_!# '
6075 for ac_last_try in false false :; do
6076 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
6077 if test -z "$ac_tt"; then
6078 break
6079 elif $ac_last_try; then
6080 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
6081 else
6082 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6083 fi
6084 done
6085
6086 # For the awk script, D is an array of macro values keyed by name,
6087 # likewise P contains macro parameters if any. Preserve backslash
6088 # newline sequences.
6089
6090 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6091 sed -n '
6092 s/.\{148\}/&'"$ac_delim"'/g
6093 t rset
6094 :rset
6095 s/^[ ]*#[ ]*define[ ][ ]*/ /
6096 t def
6097 d
6098 :def
6099 s/\\$//
6100 t bsnl
6101 s/["\\]/\\&/g
6102 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6103 D["\1"]=" \3"/p
6104 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6105 d
6106 :bsnl
6107 s/["\\]/\\&/g
6108 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6109 D["\1"]=" \3\\\\\\n"\\/p
6110 t cont
6111 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6112 t cont
6113 d
6114 :cont
6115 n
6116 s/.\{148\}/&'"$ac_delim"'/g
6117 t clear
6118 :clear
6119 s/\\$//
6120 t bsnlc
6121 s/["\\]/\\&/g; s/^/"/; s/$/"/p
6122 d
6123 :bsnlc
6124 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6125 b cont
6126 ' <confdefs.h | sed '
6127 s/'"$ac_delim"'/"\\\
6128 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6129
6130 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6131 for (key in D) D_is_set[key] = 1
6132 FS = ""
6133 }
6134 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6135 line = \$ 0
6136 split(line, arg, " ")
6137 if (arg[1] == "#") {
6138 defundef = arg[2]
6139 mac1 = arg[3]
6140 } else {
6141 defundef = substr(arg[1], 2)
6142 mac1 = arg[2]
6143 }
6144 split(mac1, mac2, "(") #)
6145 macro = mac2[1]
6146 prefix = substr(line, 1, index(line, defundef) - 1)
6147 if (D_is_set[macro]) {
6148 # Preserve the white space surrounding the "#".
6149 print prefix "define", macro P[macro] D[macro]
6150 next
6151 } else {
6152 # Replace #undef with comments. This is necessary, for example,
6153 # in the case of _POSIX_SOURCE, which is predefined and required
6154 # on some systems where configure will not decide to define it.
6155 if (defundef == "undef") {
6156 print "/*", prefix defundef, macro, "*/"
6157 next
6158 }
6159 }
6160 }
6161 { print }
6162 _ACAWK
6163 _ACEOF
6164 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6165 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
6166 fi # test -n "$CONFIG_HEADERS"
6167
6168
6169 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
6170 shift
6171 for ac_tag
6172 do
6173 case $ac_tag in
6174 :[FHLC]) ac_mode=$ac_tag; continue;;
6175 esac
6176 case $ac_mode$ac_tag in
6177 :[FHL]*:*);;
6178 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6179 :[FH]-) ac_tag=-:-;;
6180 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6181 esac
6182 ac_save_IFS=$IFS
6183 IFS=:
6184 set x $ac_tag
6185 IFS=$ac_save_IFS
6186 shift
6187 ac_file=$1
6188 shift
6189
6190 case $ac_mode in
6191 :L) ac_source=$1;;
6192 :[FH])
6193 ac_file_inputs=
6194 for ac_f
6195 do
6196 case $ac_f in
6197 -) ac_f="$ac_tmp/stdin";;
6198 *) # Look for the file first in the build tree, then in the source tree
6199 # (if the path is not absolute). The absolute path cannot be DOS-style,
6200 # because $ac_f cannot contain `:'.
6201 test -f "$ac_f" ||
6202 case $ac_f in
6203 [\\/$]*) false;;
6204 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6205 esac ||
6206 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6207 esac
6208 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6209 as_fn_append ac_file_inputs " '$ac_f'"
6210 done
6211
6212 # Let's still pretend it is `configure' which instantiates (i.e., don't
6213 # use $as_me), people would be surprised to read:
6214 # /* config.h. Generated by config.status. */
6215 configure_input='Generated from '`
6216 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6217 `' by configure.'
6218 if test x"$ac_file" != x-; then
6219 configure_input="$ac_file. $configure_input"
6220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6221 printf "%s\n" "$as_me: creating $ac_file" >&6;}
6222 fi
6223 # Neutralize special characters interpreted by sed in replacement strings.
6224 case $configure_input in #(
6225 *\&* | *\|* | *\\* )
6226 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
6227 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6228 *) ac_sed_conf_input=$configure_input;;
6229 esac
6230
6231 case $ac_tag in
6232 *:-:* | *:-) cat >"$ac_tmp/stdin" \
6233 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6234 esac
6235 ;;
6236 esac
6237
6238 ac_dir=`$as_dirname -- "$ac_file" ||
6239 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6240 X"$ac_file" : 'X\(//\)[^/]' \| \
6241 X"$ac_file" : 'X\(//\)$' \| \
6242 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6243 printf "%s\n" X"$ac_file" |
6244 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6245 s//\1/
6246 q
6247 }
6248 /^X\(\/\/\)[^/].*/{
6249 s//\1/
6250 q
6251 }
6252 /^X\(\/\/\)$/{
6253 s//\1/
6254 q
6255 }
6256 /^X\(\/\).*/{
6257 s//\1/
6258 q
6259 }
6260 s/.*/./; q'`
6261 as_dir="$ac_dir"; as_fn_mkdir_p
6262 ac_builddir=.
6263
6264 case "$ac_dir" in
6265 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6266 *)
6267 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
6268 # A ".." for each directory in $ac_dir_suffix.
6269 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6270 case $ac_top_builddir_sub in
6271 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6272 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6273 esac ;;
6274 esac
6275 ac_abs_top_builddir=$ac_pwd
6276 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6277 # for backward compatibility:
6278 ac_top_builddir=$ac_top_build_prefix
6279
6280 case $srcdir in
6281 .) # We are building in place.
6282 ac_srcdir=.
6283 ac_top_srcdir=$ac_top_builddir_sub
6284 ac_abs_top_srcdir=$ac_pwd ;;
6285 [\\/]* | ?:[\\/]* ) # Absolute name.
6286 ac_srcdir=$srcdir$ac_dir_suffix;
6287 ac_top_srcdir=$srcdir
6288 ac_abs_top_srcdir=$srcdir ;;
6289 *) # Relative name.
6290 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6291 ac_top_srcdir=$ac_top_build_prefix$srcdir
6292 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6293 esac
6294 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6295
6296
6297 case $ac_mode in
6298 :F)
6299 #
6300 # CONFIG_FILE
6301 #
6302
6303 _ACEOF
6304
6305 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6306 # If the template does not know about datarootdir, expand it.
6307 # FIXME: This hack should be removed a few years after 2.60.
6308 ac_datarootdir_hack=; ac_datarootdir_seen=
6309 ac_sed_dataroot='
6310 /datarootdir/ {
6311 p
6312 q
6313 }
6314 /@datadir@/p
6315 /@docdir@/p
6316 /@infodir@/p
6317 /@localedir@/p
6318 /@mandir@/p'
6319 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6320 *datarootdir*) ac_datarootdir_seen=yes;;
6321 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6323 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6324 _ACEOF
6325 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6326 ac_datarootdir_hack='
6327 s&@datadir@&$datadir&g
6328 s&@docdir@&$docdir&g
6329 s&@infodir@&$infodir&g
6330 s&@localedir@&$localedir&g
6331 s&@mandir@&$mandir&g
6332 s&\\\${datarootdir}&$datarootdir&g' ;;
6333 esac
6334 _ACEOF
6335
6336 # Neutralize VPATH when `$srcdir' = `.'.
6337 # Shell code in configure.ac might set extrasub.
6338 # FIXME: do we really want to maintain this feature?
6339 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6340 ac_sed_extra="$ac_vpsub
6341 $extrasub
6342 _ACEOF
6343 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6344 :t
6345 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6346 s|@configure_input@|$ac_sed_conf_input|;t t
6347 s&@top_builddir@&$ac_top_builddir_sub&;t t
6348 s&@top_build_prefix@&$ac_top_build_prefix&;t t
6349 s&@srcdir@&$ac_srcdir&;t t
6350 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6351 s&@top_srcdir@&$ac_top_srcdir&;t t
6352 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6353 s&@builddir@&$ac_builddir&;t t
6354 s&@abs_builddir@&$ac_abs_builddir&;t t
6355 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6356 $ac_datarootdir_hack
6357 "
6358 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6359 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6360
6361 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6362 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6363 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6364 "$ac_tmp/out"`; test -z "$ac_out"; } &&
6365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6366 which seems to be undefined. Please make sure it is defined" >&5
6367 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6368 which seems to be undefined. Please make sure it is defined" >&2;}
6369
6370 rm -f "$ac_tmp/stdin"
6371 case $ac_file in
6372 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6373 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6374 esac \
6375 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6376 ;;
6377 :H)
6378 #
6379 # CONFIG_HEADER
6380 #
6381 if test x"$ac_file" != x-; then
6382 {
6383 printf "%s\n" "/* $configure_input */" >&1 \
6384 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6385 } >"$ac_tmp/config.h" \
6386 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6387 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6389 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
6390 else
6391 rm -f "$ac_file"
6392 mv "$ac_tmp/config.h" "$ac_file" \
6393 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6394 fi
6395 else
6396 printf "%s\n" "/* $configure_input */" >&1 \
6397 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6398 || as_fn_error $? "could not create -" "$LINENO" 5
6399 fi
6400 ;;
6401
6402
6403 esac
6404
6405 done # for ac_tag
6406
6407
6408 as_fn_exit 0
6409 _ACEOF
6410 ac_clean_files=$ac_clean_files_save
6411
6412 test $ac_write_fail = 0 ||
6413 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6414
6415
6416 # configure is writing to config.log, and then calls config.status.
6417 # config.status does its own redirection, appending to config.log.
6418 # Unfortunately, on DOS this fails, as config.log is still kept open
6419 # by configure, so config.status won't be able to write to it; its
6420 # output is simply discarded. So we exec the FD to /dev/null,
6421 # effectively closing config.log, so it can be properly (re)opened and
6422 # appended to by config.status. When coming back to configure, we
6423 # need to make the FD available again.
6424 if test "$no_create" != yes; then
6425 ac_cs_success=:
6426 ac_config_status_args=
6427 test "$silent" = yes &&
6428 ac_config_status_args="$ac_config_status_args --quiet"
6429 exec 5>/dev/null
6430 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6431 exec 5>>config.log
6432 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6433 # would make configure fail if this is the last instruction.
6434 $ac_cs_success || as_fn_exit 1
6435 fi
6436 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6438 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6439 fi
6440
6441