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