Debian Codegraph @

configure

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