ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Convert-UUlib/uulib/configure
Revision: 1.12
Committed: Fri Dec 11 20:09:22 2020 UTC (3 years, 5 months ago) by root
Branch: MAIN
Changes since 1.11: +4449 -1372 lines
Log Message:
*** empty log message ***

File Contents

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