Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # From configure.ac Revision.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.69 for fim 0.7.1.
5 #
6 # Report bugs to <dezperado_FOobAr_autistici_Baz_org, by replacing _FOobAr_ with a @ and _Baz_ with a .>.
7 #
8 #
9 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21 emulate sh
22 NULLCMD=:
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
26 setopt NO_GLOB_SUBST
27 else
28 case `(set -o) 2>/dev/null` in #(
29 *posix*) :
30 set -o posix ;; #(
31 *) :
32 ;;
33 esac
34 fi
35
36
37 as_nl='
38 '
39 export as_nl
40 # Printing a long string crashes Solaris 7 /usr/bin/printf.
41 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
44 # Prefer a ksh shell builtin over an external printf program on Solaris,
45 # but without wasting forks for bash or zsh.
46 if test -z "$BASH_VERSION$ZSH_VERSION" \
47 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='print -r --'
49 as_echo_n='print -rn --'
50 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 as_echo='printf %s\n'
52 as_echo_n='printf %s'
53 else
54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56 as_echo_n='/usr/ucb/echo -n'
57 else
58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
59 as_echo_n_body='eval
60 arg=$1;
61 case $arg in #(
62 *"$as_nl"*)
63 expr "X$arg" : "X\\(.*\\)$as_nl";
64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 esac;
66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 '
68 export as_echo_n_body
69 as_echo_n='sh -c $as_echo_n_body as_echo'
70 fi
71 export as_echo_body
72 as_echo='sh -c $as_echo_body as_echo'
73 fi
74
75 # The user is always right.
76 if test "${PATH_SEPARATOR+set}" != set; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
81 }
82 fi
83
84
85 # IFS
86 # We need space, tab and new line, in precisely that order. Quoting is
87 # there to prevent editors from complaining about space-tab.
88 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
89 # splitting by setting IFS to empty value.)
90 IFS=" "" $as_nl"
91
92 # Find who we are. Look in the path if we contain no directory separator.
93 as_myself=
94 case $0 in #((
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
98 do
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
103 IFS=$as_save_IFS
104
105 ;;
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110 as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
115 fi
116
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
128
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
134
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138 # Use a proper internal environment variable to ensure we don't fall
139 # into an infinite loop, continuously re-executing ourselves.
140 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
141 _as_can_reexec=no; export _as_can_reexec;
142 # We cannot yet assume a decent shell, so we have to provide a
143 # neutralization value for shells without unset; and this also
144 # works around shells that cannot unset nonexistent variables.
145 # Preserve -v and -x to the replacement shell.
146 BASH_ENV=/dev/null
147 ENV=/dev/null
148 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 case $- in # ((((
150 *v*x* | *x*v* ) as_opts=-vx ;;
151 *v* ) as_opts=-v ;;
152 *x* ) as_opts=-x ;;
153 * ) as_opts= ;;
154 esac
155 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
156 # Admittedly, this is quite paranoid, since all the known shells bail
157 # out after a failed `exec'.
158 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
159 as_fn_exit 255
160 fi
161 # We don't want this to propagate to other subprocesses.
162 { _as_can_reexec=; unset _as_can_reexec;}
163 if test "x$CONFIG_SHELL" = x; then
164 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
165 emulate sh
166 NULLCMD=:
167 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
168 # is contrary to our usage. Disable this feature.
169 alias -g '\${1+\"\$@\"}'='\"\$@\"'
170 setopt NO_GLOB_SUBST
171 else
172 case \`(set -o) 2>/dev/null\` in #(
173 *posix*) :
174 set -o posix ;; #(
175 *) :
176 ;;
177 esac
178 fi
179 "
180 as_required="as_fn_return () { (exit \$1); }
181 as_fn_success () { as_fn_return 0; }
182 as_fn_failure () { as_fn_return 1; }
183 as_fn_ret_success () { return 0; }
184 as_fn_ret_failure () { return 1; }
185
186 exitcode=0
187 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
188 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
189 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
190 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
191 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192
193 else
194 exitcode=1; echo positional parameters were not saved.
195 fi
196 test x\$exitcode = x0 || exit 1
197 test -x / || exit 1"
198 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
199 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
200 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
201 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202 test \$(( 1 + 1 )) = 2 || exit 1"
203 if (eval "$as_required") 2>/dev/null; then :
204 as_have_required=yes
205 else
206 as_have_required=no
207 fi
208 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
209
210 else
211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
212 as_found=false
213 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
214 do
215 IFS=$as_save_IFS
216 test -z "$as_dir" && as_dir=.
217 as_found=:
218 case $as_dir in #(
219 /*)
220 for as_base in sh bash ksh sh5; do
221 # Try only shells that exist, to save several forks.
222 as_shell=$as_dir/$as_base
223 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
224 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
225 CONFIG_SHELL=$as_shell as_have_required=yes
226 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
227 break 2
228 fi
229 fi
230 done;;
231 esac
232 as_found=false
233 done
234 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
235 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
236 CONFIG_SHELL=$SHELL as_have_required=yes
237 fi; }
238 IFS=$as_save_IFS
239
240
241 if test "x$CONFIG_SHELL" != x; then :
242 export CONFIG_SHELL
243 # We cannot yet assume a decent shell, so we have to provide a
244 # neutralization value for shells without unset; and this also
245 # works around shells that cannot unset nonexistent variables.
246 # Preserve -v and -x to the replacement shell.
247 BASH_ENV=/dev/null
248 ENV=/dev/null
249 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
250 case $- in # ((((
251 *v*x* | *x*v* ) as_opts=-vx ;;
252 *v* ) as_opts=-v ;;
253 *x* ) as_opts=-x ;;
254 * ) as_opts= ;;
255 esac
256 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
257 # Admittedly, this is quite paranoid, since all the known shells bail
258 # out after a failed `exec'.
259 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260 exit 255
261 fi
262
263 if test x$as_have_required = xno; then :
264 $as_echo "$0: This script requires a shell more modern than all"
265 $as_echo "$0: the shells that I found on your system."
266 if test x${ZSH_VERSION+set} = xset ; then
267 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
268 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
269 else
270 $as_echo "$0: Please tell [email protected] and
271 $0: dezperado_FOobAr_autistici_Baz_org, by replacing
272 $0: _FOobAr_ with a @ and _Baz_ with a . about your system,
273 $0: including any error possibly output before this
274 $0: message. Then install a modern shell, or manually run
275 $0: the script under such a shell if you do have one."
276 fi
277 exit 1
278 fi
279 fi
280 fi
281 SHELL=${CONFIG_SHELL-/bin/sh}
282 export SHELL
283 # Unset more variables known to interfere with behavior of common tools.
284 CLICOLOR_FORCE= GREP_OPTIONS=
285 unset CLICOLOR_FORCE GREP_OPTIONS
286
287 ## --------------------- ##
288 ## M4sh Shell Functions. ##
289 ## --------------------- ##
290 # as_fn_unset VAR
291 # ---------------
292 # Portably unset VAR.
293 as_fn_unset ()
294 {
295 { eval $1=; unset $1;}
296 }
297 as_unset=as_fn_unset
298
299 # as_fn_set_status STATUS
300 # -----------------------
301 # Set $? to STATUS, without forking.
302 as_fn_set_status ()
303 {
304 return $1
305 } # as_fn_set_status
306
307 # as_fn_exit STATUS
308 # -----------------
309 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
310 as_fn_exit ()
311 {
312 set +e
313 as_fn_set_status $1
314 exit $1
315 } # as_fn_exit
316
317 # as_fn_mkdir_p
318 # -------------
319 # Create "$as_dir" as a directory, including parents if necessary.
320 as_fn_mkdir_p ()
321 {
322
323 case $as_dir in #(
324 -*) as_dir=./$as_dir;;
325 esac
326 test -d "$as_dir" || eval $as_mkdir_p || {
327 as_dirs=
328 while :; do
329 case $as_dir in #(
330 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
331 *) as_qdir=$as_dir;;
332 esac
333 as_dirs="'$as_qdir' $as_dirs"
334 as_dir=`$as_dirname -- "$as_dir" ||
335 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
336 X"$as_dir" : 'X\(//\)[^/]' \| \
337 X"$as_dir" : 'X\(//\)$' \| \
338 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
339 $as_echo X"$as_dir" |
340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
341 s//\1/
342 q
343 }
344 /^X\(\/\/\)[^/].*/{
345 s//\1/
346 q
347 }
348 /^X\(\/\/\)$/{
349 s//\1/
350 q
351 }
352 /^X\(\/\).*/{
353 s//\1/
354 q
355 }
356 s/.*/./; q'`
357 test -d "$as_dir" && break
358 done
359 test -z "$as_dirs" || eval "mkdir $as_dirs"
360 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
361
362
363 } # as_fn_mkdir_p
364
365 # as_fn_executable_p FILE
366 # -----------------------
367 # Test if FILE is an executable regular file.
368 as_fn_executable_p ()
369 {
370 test -f "$1" && test -x "$1"
371 } # as_fn_executable_p
372 # as_fn_append VAR VALUE
373 # ----------------------
374 # Append the text in VALUE to the end of the definition contained in VAR. Take
375 # advantage of any shell optimizations that allow amortized linear growth over
376 # repeated appends, instead of the typical quadratic growth present in naive
377 # implementations.
378 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
379 eval 'as_fn_append ()
380 {
381 eval $1+=\$2
382 }'
383 else
384 as_fn_append ()
385 {
386 eval $1=\$$1\$2
387 }
388 fi # as_fn_append
389
390 # as_fn_arith ARG...
391 # ------------------
392 # Perform arithmetic evaluation on the ARGs, and store the result in the
393 # global $as_val. Take advantage of shells that can avoid forks. The arguments
394 # must be portable across $(()) and expr.
395 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
396 eval 'as_fn_arith ()
397 {
398 as_val=$(( $* ))
399 }'
400 else
401 as_fn_arith ()
402 {
403 as_val=`expr "$@" || test $? -eq 1`
404 }
405 fi # as_fn_arith
406
407
408 # as_fn_error STATUS ERROR [LINENO LOG_FD]
409 # ----------------------------------------
410 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
411 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
412 # script with STATUS, using 1 if that was 0.
413 as_fn_error ()
414 {
415 as_status=$1; test $as_status -eq 0 && as_status=1
416 if test "$4"; then
417 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
418 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
419 fi
420 $as_echo "$as_me: error: $2" >&2
421 as_fn_exit $as_status
422 } # as_fn_error
423
424 if expr a : '\(a\)' >/dev/null 2>&1 &&
425 test "X`expr 00001 : '.*\(...\)'`" = X001; then
426 as_expr=expr
427 else
428 as_expr=false
429 fi
430
431 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432 as_basename=basename
433 else
434 as_basename=false
435 fi
436
437 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
438 as_dirname=dirname
439 else
440 as_dirname=false
441 fi
442
443 as_me=`$as_basename -- "$0" ||
444 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
445 X"$0" : 'X\(//\)$' \| \
446 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
447 $as_echo X/"$0" |
448 sed '/^.*\/\([^/][^/]*\)\/*$/{
449 s//\1/
450 q
451 }
452 /^X\/\(\/\/\)$/{
453 s//\1/
454 q
455 }
456 /^X\/\(\/\).*/{
457 s//\1/
458 q
459 }
460 s/.*/./; q'`
461
462 # Avoid depending upon Character Ranges.
463 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
464 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
465 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
466 as_cr_digits='0123456789'
467 as_cr_alnum=$as_cr_Letters$as_cr_digits
468
469
470 as_lineno_1=$LINENO as_lineno_1a=$LINENO
471 as_lineno_2=$LINENO as_lineno_2a=$LINENO
472 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
473 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
474 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
475 sed -n '
476 p
477 /[$]LINENO/=
478 ' <$as_myself |
479 sed '
480 s/[$]LINENO.*/&-/
481 t lineno
482 b
483 :lineno
484 N
485 :loop
486 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
487 t loop
488 s/-\n.*//
489 ' >$as_me.lineno &&
490 chmod +x "$as_me.lineno" ||
491 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
492
493 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
494 # already done that, so ensure we don't try to do so again and fall
495 # in an infinite loop. This has already happened in practice.
496 _as_can_reexec=no; export _as_can_reexec
497 # Don't try to exec as it changes $[0], causing all sort of problems
498 # (the dirname of $[0] is not the place where we might find the
499 # original and so on. Autoconf is especially sensitive to this).
500 . "./$as_me.lineno"
501 # Exit status is that of the last command.
502 exit
503 }
504
505 ECHO_C= ECHO_N= ECHO_T=
506 case `echo -n x` in #(((((
507 -n*)
508 case `echo 'xy\c'` in
509 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
510 xy) ECHO_C='\c';;
511 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
512 ECHO_T=' ';;
513 esac;;
514 *)
515 ECHO_N='-n';;
516 esac
517
518 rm -f conf$$ conf$$.exe conf$$.file
519 if test -d conf$$.dir; then
520 rm -f conf$$.dir/conf$$.file
521 else
522 rm -f conf$$.dir
523 mkdir conf$$.dir 2>/dev/null
524 fi
525 if (echo >conf$$.file) 2>/dev/null; then
526 if ln -s conf$$.file conf$$ 2>/dev/null; then
527 as_ln_s='ln -s'
528 # ... but there are two gotchas:
529 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
530 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
531 # In both cases, we have to default to `cp -pR'.
532 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
533 as_ln_s='cp -pR'
534 elif ln conf$$.file conf$$ 2>/dev/null; then
535 as_ln_s=ln
536 else
537 as_ln_s='cp -pR'
538 fi
539 else
540 as_ln_s='cp -pR'
541 fi
542 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
543 rmdir conf$$.dir 2>/dev/null
544
545 if mkdir -p . 2>/dev/null; then
546 as_mkdir_p='mkdir -p "$as_dir"'
547 else
548 test -d ./-p && rmdir ./-p
549 as_mkdir_p=false
550 fi
551
552 as_test_x='test -x'
553 as_executable_p=as_fn_executable_p
554
555 # Sed expression to map a string onto a valid CPP name.
556 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
557
558 # Sed expression to map a string onto a valid variable name.
559 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
560
561
562 test -n "$DJDIR" || exec 7<&0 </dev/null
563 exec 6>&1
564
565 # Name of the host.
566 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
567 # so uname gets run too.
568 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
569
570 #
571 # Initializations.
572 #
573 ac_default_prefix=/usr/local
574 ac_clean_files=
575 ac_config_libobj_dir=.
576 LIBOBJS=
577 cross_compiling=no
578 subdirs=
579 MFLAGS=
580 MAKEFLAGS=
581
582 # Identity of this package.
583 PACKAGE_NAME='fim'
584 PACKAGE_TARNAME='fim'
585 PACKAGE_VERSION='0.7.1'
586 PACKAGE_STRING='fim 0.7.1'
587 PACKAGE_BUGREPORT='dezperado_FOobAr_autistici_Baz_org, by replacing _FOobAr_ with a @ and _Baz_ with a .'
588 PACKAGE_URL=''
589
590 ac_unique_file="src/fim.cpp"
591 # Factoring default headers for most tests.
592 ac_includes_default="\
593 #include <stdio.h>
594 #ifdef HAVE_SYS_TYPES_H
595 # include <sys/types.h>
596 #endif
597 #ifdef HAVE_SYS_STAT_H
598 # include <sys/stat.h>
599 #endif
600 #ifdef STDC_HEADERS
601 # include <stdlib.h>
602 # include <stddef.h>
603 #else
604 # ifdef HAVE_STDLIB_H
605 # include <stdlib.h>
606 # endif
607 #endif
608 #ifdef HAVE_STRING_H
609 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
610 # include <memory.h>
611 # endif
612 # include <string.h>
613 #endif
614 #ifdef HAVE_STRINGS_H
615 # include <strings.h>
616 #endif
617 #ifdef HAVE_INTTYPES_H
618 # include <inttypes.h>
619 #endif
620 #ifdef HAVE_STDINT_H
621 # include <stdint.h>
622 #endif
623 #ifdef HAVE_UNISTD_H
624 # include <unistd.h>
625 #endif"
626
627 ac_header_list=
628 ac_subst_vars='am__EXEEXT_FALSE
629 am__EXEEXT_TRUE
630 LTLIBOBJS
631 FIM_SVN_REPOSITORY
632 FIM_LIB_OBJECTS
633 FIM_DEFS
634 WANT_WASM_FALSE
635 WANT_WASM_TRUE
636 ENABLE_MATRIX_MARKET_DECODER_FALSE
637 ENABLE_MATRIX_MARKET_DECODER_TRUE
638 WITH_DEBUG_FALSE
639 WITH_DEBUG_TRUE
640 TIMEOUT_LARGE
641 TIMEOUT_SMALL
642 HAVE_TIMEOUT
643 ENABLE_RAW_BITS_RENDERING_FALSE
644 ENABLE_RAW_BITS_RENDERING_TRUE
645 ENABLE_MOUSE_FALSE
646 ENABLE_MOUSE_TRUE
647 ENABLE_CACA_FALSE
648 ENABLE_CACA_TRUE
649 ENABLE_AA_FALSE
650 ENABLE_AA_TRUE
651 have_dia
652 WITH_XFIG_FALSE
653 WITH_XFIG_TRUE
654 have_xfig
655 WITH_INKSCAPE_FALSE
656 WITH_INKSCAPE_TRUE
657 have_inkscape
658 have_xcf2pnm
659 have_xcftopnm
660 WITH_DCRAW_FALSE
661 WITH_DCRAW_TRUE
662 have_dcraw
663 WITH_CONVERT_FALSE
664 WITH_CONVERT_TRUE
665 have_convert
666 have_zcat
667 WITH_DVIPDF_FALSE
668 WITH_DVIPDF_TRUE
669 WITH_PDF2DJVU_FALSE
670 WITH_PDF2DJVU_TRUE
671 WITH_DVIPS_FALSE
672 WITH_DVIPS_TRUE
673 WITH_TEX_FALSE
674 WITH_TEX_TRUE
675 have_dvipdf
676 have_pdf2djvu
677 have_dvips
678 have_tex
679 HAVE_RUNNABLE_TESTS_FALSE
680 HAVE_RUNNABLE_TESTS_TRUE
681 FIM_WANT_CUSTOM_HARDCODED_CONSOLEFONT_FALSE
682 FIM_WANT_CUSTOM_HARDCODED_CONSOLEFONT_TRUE
683 FIM_CUSTOM_HARDCODED_CONSOLEFONT
684 FIM_CUSTOM_DEFAULT_CONSOLEFONT
685 WITH_XCF2PNM_FALSE
686 WITH_XCF2PNM_TRUE
687 WITH_XCFTOPNM_FALSE
688 WITH_XCFTOPNM_TRUE
689 LIBCACA_CONFIG
690 HAVE_VALGRIND_FALSE
691 HAVE_VALGRIND_TRUE
692 HAVE_VALGRIND
693 WANT_READ_STDIN_IMAGE_FALSE
694 WANT_READ_STDIN_IMAGE_TRUE
695 WANT_RECURSIVE_DIRS_FALSE
696 WANT_RECURSIVE_DIRS_TRUE
697 ENABLE_NO_HISTORY_TESTS_FALSE
698 ENABLE_NO_HISTORY_TESTS_TRUE
699 ENABLE_HISTORY_FALSE
700 ENABLE_HISTORY_TRUE
701 WANT_DEFAULT_FIMRC_FALSE
702 WANT_DEFAULT_FIMRC_TRUE
703 HAVE_FIMGS_FALSE
704 HAVE_FIMGS_TRUE
705 HAVE_GS_FALSE
706 HAVE_GS_TRUE
707 have_gs
708 FIM_HAVE_ANY_CONSOLEFONT_FALSE
709 FIM_HAVE_ANY_CONSOLEFONT_TRUE
710 FIM_WANT_HARDCODED_CONSOLEFONT_FALSE
711 FIM_WANT_HARDCODED_CONSOLEFONT_TRUE
712 ENABLE_GTK_FALSE
713 ENABLE_GTK_TRUE
714 GTK_LIBS
715 GTK_CFLAGS
716 ENABLE_SDL_FALSE
717 ENABLE_SDL_TRUE
718 LIBSDL2_CONFIG
719 LIBSDL_CONFIG
720 LIBAA_CONFIG
721 ENABLE_ARCHIVE_FALSE
722 ENABLE_ARCHIVE_TRUE
723 ENABLE_PNG_FALSE
724 ENABLE_PNG_TRUE
725 LIBPNG
726 LIBPNG_CONFIG
727 ENABLE_AVIF_FALSE
728 ENABLE_AVIF_TRUE
729 ENABLE_WEBP_FALSE
730 ENABLE_WEBP_TRUE
731 ENABLE_PCX_FALSE
732 ENABLE_PCX_TRUE
733 ENABLE_BMP_FALSE
734 ENABLE_BMP_TRUE
735 ENABLE_PDF_FALSE
736 ENABLE_PDF_TRUE
737 ENABLE_POPPLER_FALSE
738 ENABLE_POPPLER_TRUE
739 GLIB_LIBS
740 GLIB_CFLAGS
741 POPPLER_LIBS
742 POPPLER_CFLAGS
743 PKG_CONFIG_LIBDIR
744 PKG_CONFIG_PATH
745 ENABLE_DJVU_FALSE
746 ENABLE_DJVU_TRUE
747 ENABLE_PS_FALSE
748 ENABLE_PS_TRUE
749 ENABLE_JPEG_FALSE
750 ENABLE_JPEG_TRUE
751 WANT_READLINE_FALSE
752 WANT_READLINE_TRUE
753 ENABLE_TIFF_FALSE
754 ENABLE_TIFF_TRUE
755 ENABLE_QOI_FALSE
756 ENABLE_QOI_TRUE
757 LIBQOI
758 ENABLE_GIF_FALSE
759 ENABLE_GIF_TRUE
760 fim_cv_version
761 LIBOBJS
762 WITH_FLEXLEXER_FALSE
763 WITH_FLEXLEXER_TRUE
764 ENABLE_FRAMEBUFFER_FALSE
765 ENABLE_FRAMEBUFFER_TRUE
766 ENABLE_SYSTEM_CALLS_FALSE
767 ENABLE_SYSTEM_CALLS_TRUE
768 WITH_EXPECT_FALSE
769 WITH_EXPECT_TRUE
770 PKG_CONFIG
771 EXPECT
772 WITH_MAN_FALSE
773 WITH_MAN_TRUE
774 WITH_GROFF_FALSE
775 WITH_GROFF_TRUE
776 WITH_PERL_FALSE
777 WITH_PERL_TRUE
778 WITH_MAN2HTML_FALSE
779 WITH_MAN2HTML_TRUE
780 WITH_SHELLCHECK_FALSE
781 WITH_SHELLCHECK_TRUE
782 SHELLCHECK
783 PERL
784 MAN
785 CAT
786 SORT
787 ECHO
788 SED
789 RM
790 LIBPOPPLER
791 LIBDJVU
792 LIBPS
793 LIBJPEG
794 LIBGIF
795 LIBTIFF
796 HAVE_GROFF
797 HAVE_MAN
798 HAVE_CAT
799 HAVE_AWK
800 HAVE_CPP
801 HAVE_SORT
802 HAVE_GREP
803 HAVE_SED
804 HAVE_RM
805 HAVE_ECHO
806 HAVE_BISON
807 HAVE_FLEX
808 ENABLE_IMLIB2_FALSE
809 ENABLE_IMLIB2_TRUE
810 WITH_LIBGRAPHICSMAGICK_FALSE
811 WITH_LIBGRAPHICSMAGICK_TRUE
812 MAINT
813 MAINTAINER_MODE_FALSE
814 MAINTAINER_MODE_TRUE
815 FIM_LIBS
816 CONFIG_STATUS_DEPENDENCIES
817 AM_BACKSLASH
818 AM_DEFAULT_VERBOSITY
819 AM_DEFAULT_V
820 AM_V
821 am__fastdepCXX_FALSE
822 am__fastdepCXX_TRUE
823 CXXDEPMODE
824 am__fastdepCC_FALSE
825 am__fastdepCC_TRUE
826 CCDEPMODE
827 am__nodep
828 AMDEPBACKSLASH
829 AMDEP_FALSE
830 AMDEP_TRUE
831 am__include
832 DEPDIR
833 am__untar
834 am__tar
835 AMTAR
836 am__leading_dot
837 SET_MAKE
838 AWK
839 mkdir_p
840 MKDIR_P
841 INSTALL_STRIP_PROGRAM
842 STRIP
843 install_sh
844 MAKEINFO
845 AUTOHEADER
846 AUTOMAKE
847 AUTOCONF
848 ACLOCAL
849 VERSION
850 PACKAGE
851 CYGPATH_W
852 am__isrc
853 AR
854 CXXCPP
855 ac_ct_CXX
856 CXXFLAGS
857 CXX
858 RANLIB
859 INSTALL_DATA
860 INSTALL_SCRIPT
861 INSTALL_PROGRAM
862 LEXLIB
863 LEX_OUTPUT_ROOT
864 LEX
865 YFLAGS
866 YACC
867 EGREP
868 GREP
869 CPP
870 OBJEXT
871 EXEEXT
872 ac_ct_CC
873 CPPFLAGS
874 LDFLAGS
875 CFLAGS
876 CC
877 FIM_CONFIGURATION
878 SVN_REVISION_NUMBER
879 SVN_REVISION
880 target_alias
881 host_alias
882 build_alias
883 LIBS
884 ECHO_T
885 ECHO_N
886 ECHO_C
887 DEFS
888 mandir
889 localedir
890 libdir
891 psdir
892 pdfdir
893 dvidir
894 htmldir
895 infodir
896 docdir
897 oldincludedir
898 includedir
899 runstatedir
900 localstatedir
901 sharedstatedir
902 sysconfdir
903 datadir
904 datarootdir
905 libexecdir
906 sbindir
907 bindir
908 program_transform_name
909 prefix
910 exec_prefix
911 PACKAGE_URL
912 PACKAGE_BUGREPORT
913 PACKAGE_STRING
914 PACKAGE_VERSION
915 PACKAGE_TARNAME
916 PACKAGE_NAME
917 PATH_SEPARATOR
918 SHELL
919 am__quote'
920 ac_subst_files=''
921 ac_user_opts='
922 enable_option_checking
923 enable_dependency_tracking
924 enable_silent_rules
925 enable_largefile
926 enable_maintainer_mode
927 enable_graphicsmagick
928 enable_imlib2
929 enable_default_bindings
930 enable_default_mapping
931 enable_default_config
932 enable_system
933 enable_framebuffer
934 enable_static
935 with_regex
936 enable_gif
937 enable_qoi
938 enable_tiff
939 enable_readline
940 enable_jpeg
941 enable_ps
942 enable_djvu
943 enable_poppler
944 enable_pdf
945 enable_bmp
946 enable_pcx
947 enable_webp
948 enable_avif
949 with_png_prefix
950 enable_png
951 enable_xyz
952 enable_ufraw
953 enable_archive
954 enable_exif
955 enable_jasper
956 enable_aa
957 with_sdl_prefix
958 enable_sdl
959 enable_gtk
960 enable_exiftool
961 enable_autocommands
962 enable_hardcoded_font
963 enable_long_int_vars
964 enable_windows
965 enable_fimrc
966 enable_history
967 enable_screen
968 enable_resize_optimizations
969 enable_stdin_image_reading
970 enable_scan_consolefonts
971 enable_framebuffer_switch_while_loading
972 enable_seek_magic
973 enable_paths_in_man
974 enable_pushdir
975 enable_recursive_pushdir
976 enable_debug
977 enable_warnings
978 enable_caca
979 with_cflags
980 with_exec_shell
981 enable_smartautocompletion
982 enable_convert
983 enable_dcraw
984 enable_xcftopnm
985 enable_xcf2pnm
986 enable_inkscape
987 enable_xfig
988 enable_dia
989 with_default_consolefont
990 with_custom_hardcoded_consolefont
991 with_font_magnifying_factor
992 with_tmpfile
993 enable_custom_status_bar
994 enable_optimizations
995 enable_mark_and_dump
996 enable_mouse
997 enable_scripting
998 enable_output_console
999 enable_as_text_rendering
1000 enable_raw_bits_rendering
1001 enable_loader_string_specification
1002 enable_matrices_rendering
1003 '
1004 ac_precious_vars='build_alias
1005 host_alias
1006 target_alias
1007 CC
1008 CFLAGS
1009 LDFLAGS
1010 LIBS
1011 CPPFLAGS
1012 CPP
1013 YACC
1014 YFLAGS
1015 CXX
1016 CXXFLAGS
1017 CCC
1018 CXXCPP
1019 LIBTIFF
1020 LIBGIF
1021 LIBJPEG
1022 LIBPS
1023 LIBDJVU
1024 LIBPOPPLER
1025 PKG_CONFIG
1026 PKG_CONFIG_PATH
1027 PKG_CONFIG_LIBDIR
1028 POPPLER_CFLAGS
1029 POPPLER_LIBS
1030 GLIB_CFLAGS
1031 GLIB_LIBS
1032 GTK_CFLAGS
1033 GTK_LIBS'
1034
1035
1036 # Initialize some variables set by options.
1037 ac_init_help=
1038 ac_init_version=false
1039 ac_unrecognized_opts=
1040 ac_unrecognized_sep=
1041 # The variables have the same names as the options, with
1042 # dashes changed to underlines.
1043 cache_file=/dev/null
1044 exec_prefix=NONE
1045 no_create=
1046 no_recursion=
1047 prefix=NONE
1048 program_prefix=NONE
1049 program_suffix=NONE
1050 program_transform_name=s,x,x,
1051 silent=
1052 site=
1053 srcdir=
1054 verbose=
1055 x_includes=NONE
1056 x_libraries=NONE
1057
1058 # Installation directory options.
1059 # These are left unexpanded so users can "make install exec_prefix=/foo"
1060 # and all the variables that are supposed to be based on exec_prefix
1061 # by default will actually change.
1062 # Use braces instead of parens because sh, perl, etc. also accept them.
1063 # (The list follows the same order as the GNU Coding Standards.)
1064 bindir='${exec_prefix}/bin'
1065 sbindir='${exec_prefix}/sbin'
1066 libexecdir='${exec_prefix}/libexec'
1067 datarootdir='${prefix}/share'
1068 datadir='${datarootdir}'
1069 sysconfdir='${prefix}/etc'
1070 sharedstatedir='${prefix}/com'
1071 localstatedir='${prefix}/var'
1072 runstatedir='${localstatedir}/run'
1073 includedir='${prefix}/include'
1074 oldincludedir='/usr/include'
1075 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1076 infodir='${datarootdir}/info'
1077 htmldir='${docdir}'
1078 dvidir='${docdir}'
1079 pdfdir='${docdir}'
1080 psdir='${docdir}'
1081 libdir='${exec_prefix}/lib'
1082 localedir='${datarootdir}/locale'
1083 mandir='${datarootdir}/man'
1084
1085 ac_prev=
1086 ac_dashdash=
1087 for ac_option
1088 do
1089 # If the previous option needs an argument, assign it.
1090 if test -n "$ac_prev"; then
1091 eval $ac_prev=\$ac_option
1092 ac_prev=
1093 continue
1094 fi
1095
1096 case $ac_option in
1097 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1098 *=) ac_optarg= ;;
1099 *) ac_optarg=yes ;;
1100 esac
1101
1102 # Accept the important Cygnus configure options, so we can diagnose typos.
1103
1104 case $ac_dashdash$ac_option in
1105 --)
1106 ac_dashdash=yes ;;
1107
1108 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1109 ac_prev=bindir ;;
1110 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1111 bindir=$ac_optarg ;;
1112
1113 -build | --build | --buil | --bui | --bu)
1114 ac_prev=build_alias ;;
1115 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1116 build_alias=$ac_optarg ;;
1117
1118 -cache-file | --cache-file | --cache-fil | --cache-fi \
1119 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1120 ac_prev=cache_file ;;
1121 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1122 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1123 cache_file=$ac_optarg ;;
1124
1125 --config-cache | -C)
1126 cache_file=config.cache ;;
1127
1128 -datadir | --datadir | --datadi | --datad)
1129 ac_prev=datadir ;;
1130 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1131 datadir=$ac_optarg ;;
1132
1133 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1134 | --dataroo | --dataro | --datar)
1135 ac_prev=datarootdir ;;
1136 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1137 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1138 datarootdir=$ac_optarg ;;
1139
1140 -disable-* | --disable-*)
1141 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1142 # Reject names that are not valid shell variable names.
1143 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1144 as_fn_error $? "invalid feature name: $ac_useropt"
1145 ac_useropt_orig=$ac_useropt
1146 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1147 case $ac_user_opts in
1148 *"
1149 "enable_$ac_useropt"
1150 "*) ;;
1151 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1152 ac_unrecognized_sep=', ';;
1153 esac
1154 eval enable_$ac_useropt=no ;;
1155
1156 -docdir | --docdir | --docdi | --doc | --do)
1157 ac_prev=docdir ;;
1158 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1159 docdir=$ac_optarg ;;
1160
1161 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1162 ac_prev=dvidir ;;
1163 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1164 dvidir=$ac_optarg ;;
1165
1166 -enable-* | --enable-*)
1167 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1168 # Reject names that are not valid shell variable names.
1169 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1170 as_fn_error $? "invalid feature name: $ac_useropt"
1171 ac_useropt_orig=$ac_useropt
1172 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1173 case $ac_user_opts in
1174 *"
1175 "enable_$ac_useropt"
1176 "*) ;;
1177 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1178 ac_unrecognized_sep=', ';;
1179 esac
1180 eval enable_$ac_useropt=\$ac_optarg ;;
1181
1182 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1183 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1184 | --exec | --exe | --ex)
1185 ac_prev=exec_prefix ;;
1186 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1187 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1188 | --exec=* | --exe=* | --ex=*)
1189 exec_prefix=$ac_optarg ;;
1190
1191 -gas | --gas | --ga | --g)
1192 # Obsolete; use --with-gas.
1193 with_gas=yes ;;
1194
1195 -help | --help | --hel | --he | -h)
1196 ac_init_help=long ;;
1197 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1198 ac_init_help=recursive ;;
1199 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1200 ac_init_help=short ;;
1201
1202 -host | --host | --hos | --ho)
1203 ac_prev=host_alias ;;
1204 -host=* | --host=* | --hos=* | --ho=*)
1205 host_alias=$ac_optarg ;;
1206
1207 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1208 ac_prev=htmldir ;;
1209 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1210 | --ht=*)
1211 htmldir=$ac_optarg ;;
1212
1213 -includedir | --includedir | --includedi | --included | --include \
1214 | --includ | --inclu | --incl | --inc)
1215 ac_prev=includedir ;;
1216 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1217 | --includ=* | --inclu=* | --incl=* | --inc=*)
1218 includedir=$ac_optarg ;;
1219
1220 -infodir | --infodir | --infodi | --infod | --info | --inf)
1221 ac_prev=infodir ;;
1222 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1223 infodir=$ac_optarg ;;
1224
1225 -libdir | --libdir | --libdi | --libd)
1226 ac_prev=libdir ;;
1227 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1228 libdir=$ac_optarg ;;
1229
1230 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1231 | --libexe | --libex | --libe)
1232 ac_prev=libexecdir ;;
1233 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1234 | --libexe=* | --libex=* | --libe=*)
1235 libexecdir=$ac_optarg ;;
1236
1237 -localedir | --localedir | --localedi | --localed | --locale)
1238 ac_prev=localedir ;;
1239 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1240 localedir=$ac_optarg ;;
1241
1242 -localstatedir | --localstatedir | --localstatedi | --localstated \
1243 | --localstate | --localstat | --localsta | --localst | --locals)
1244 ac_prev=localstatedir ;;
1245 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1246 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1247 localstatedir=$ac_optarg ;;
1248
1249 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1250 ac_prev=mandir ;;
1251 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1252 mandir=$ac_optarg ;;
1253
1254 -nfp | --nfp | --nf)
1255 # Obsolete; use --without-fp.
1256 with_fp=no ;;
1257
1258 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1259 | --no-cr | --no-c | -n)
1260 no_create=yes ;;
1261
1262 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1263 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1264 no_recursion=yes ;;
1265
1266 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1267 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1268 | --oldin | --oldi | --old | --ol | --o)
1269 ac_prev=oldincludedir ;;
1270 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1271 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1272 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1273 oldincludedir=$ac_optarg ;;
1274
1275 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1276 ac_prev=prefix ;;
1277 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1278 prefix=$ac_optarg ;;
1279
1280 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1281 | --program-pre | --program-pr | --program-p)
1282 ac_prev=program_prefix ;;
1283 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1284 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1285 program_prefix=$ac_optarg ;;
1286
1287 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1288 | --program-suf | --program-su | --program-s)
1289 ac_prev=program_suffix ;;
1290 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1291 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1292 program_suffix=$ac_optarg ;;
1293
1294 -program-transform-name | --program-transform-name \
1295 | --program-transform-nam | --program-transform-na \
1296 | --program-transform-n | --program-transform- \
1297 | --program-transform | --program-transfor \
1298 | --program-transfo | --program-transf \
1299 | --program-trans | --program-tran \
1300 | --progr-tra | --program-tr | --program-t)
1301 ac_prev=program_transform_name ;;
1302 -program-transform-name=* | --program-transform-name=* \
1303 | --program-transform-nam=* | --program-transform-na=* \
1304 | --program-transform-n=* | --program-transform-=* \
1305 | --program-transform=* | --program-transfor=* \
1306 | --program-transfo=* | --program-transf=* \
1307 | --program-trans=* | --program-tran=* \
1308 | --progr-tra=* | --program-tr=* | --program-t=*)
1309 program_transform_name=$ac_optarg ;;
1310
1311 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1312 ac_prev=pdfdir ;;
1313 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1314 pdfdir=$ac_optarg ;;
1315
1316 -psdir | --psdir | --psdi | --psd | --ps)
1317 ac_prev=psdir ;;
1318 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1319 psdir=$ac_optarg ;;
1320
1321 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1322 | -silent | --silent | --silen | --sile | --sil)
1323 silent=yes ;;
1324
1325 -runstatedir | --runstatedir | --runstatedi | --runstated \
1326 | --runstate | --runstat | --runsta | --runst | --runs \
1327 | --run | --ru | --r)
1328 ac_prev=runstatedir ;;
1329 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1330 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1331 | --run=* | --ru=* | --r=*)
1332 runstatedir=$ac_optarg ;;
1333
1334 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1335 ac_prev=sbindir ;;
1336 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1337 | --sbi=* | --sb=*)
1338 sbindir=$ac_optarg ;;
1339
1340 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1341 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1342 | --sharedst | --shareds | --shared | --share | --shar \
1343 | --sha | --sh)
1344 ac_prev=sharedstatedir ;;
1345 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1346 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1347 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1348 | --sha=* | --sh=*)
1349 sharedstatedir=$ac_optarg ;;
1350
1351 -site | --site | --sit)
1352 ac_prev=site ;;
1353 -site=* | --site=* | --sit=*)
1354 site=$ac_optarg ;;
1355
1356 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1357 ac_prev=srcdir ;;
1358 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1359 srcdir=$ac_optarg ;;
1360
1361 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1362 | --syscon | --sysco | --sysc | --sys | --sy)
1363 ac_prev=sysconfdir ;;
1364 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1365 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1366 sysconfdir=$ac_optarg ;;
1367
1368 -target | --target | --targe | --targ | --tar | --ta | --t)
1369 ac_prev=target_alias ;;
1370 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1371 target_alias=$ac_optarg ;;
1372
1373 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1374 verbose=yes ;;
1375
1376 -version | --version | --versio | --versi | --vers | -V)
1377 ac_init_version=: ;;
1378
1379 -with-* | --with-*)
1380 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1381 # Reject names that are not valid shell variable names.
1382 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1383 as_fn_error $? "invalid package name: $ac_useropt"
1384 ac_useropt_orig=$ac_useropt
1385 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1386 case $ac_user_opts in
1387 *"
1388 "with_$ac_useropt"
1389 "*) ;;
1390 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1391 ac_unrecognized_sep=', ';;
1392 esac
1393 eval with_$ac_useropt=\$ac_optarg ;;
1394
1395 -without-* | --without-*)
1396 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1397 # Reject names that are not valid shell variable names.
1398 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1399 as_fn_error $? "invalid package name: $ac_useropt"
1400 ac_useropt_orig=$ac_useropt
1401 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1402 case $ac_user_opts in
1403 *"
1404 "with_$ac_useropt"
1405 "*) ;;
1406 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1407 ac_unrecognized_sep=', ';;
1408 esac
1409 eval with_$ac_useropt=no ;;
1410
1411 --x)
1412 # Obsolete; use --with-x.
1413 with_x=yes ;;
1414
1415 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1416 | --x-incl | --x-inc | --x-in | --x-i)
1417 ac_prev=x_includes ;;
1418 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1419 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1420 x_includes=$ac_optarg ;;
1421
1422 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1423 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1424 ac_prev=x_libraries ;;
1425 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1426 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1427 x_libraries=$ac_optarg ;;
1428
1429 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1430 Try \`$0 --help' for more information"
1431 ;;
1432
1433 *=*)
1434 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1435 # Reject names that are not valid shell variable names.
1436 case $ac_envvar in #(
1437 '' | [0-9]* | *[!_$as_cr_alnum]* )
1438 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1439 esac
1440 eval $ac_envvar=\$ac_optarg
1441 export $ac_envvar ;;
1442
1443 *)
1444 # FIXME: should be removed in autoconf 3.0.
1445 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1446 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1447 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1448 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1449 ;;
1450
1451 esac
1452 done
1453
1454 if test -n "$ac_prev"; then
1455 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1456 as_fn_error $? "missing argument to $ac_option"
1457 fi
1458
1459 if test -n "$ac_unrecognized_opts"; then
1460 case $enable_option_checking in
1461 no) ;;
1462 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1463 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1464 esac
1465 fi
1466
1467 # Check all directory arguments for consistency.
1468 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1469 datadir sysconfdir sharedstatedir localstatedir includedir \
1470 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1471 libdir localedir mandir runstatedir
1472 do
1473 eval ac_val=\$$ac_var
1474 # Remove trailing slashes.
1475 case $ac_val in
1476 */ )
1477 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1478 eval $ac_var=\$ac_val;;
1479 esac
1480 # Be sure to have absolute directory names.
1481 case $ac_val in
1482 [\\/$]* | ?:[\\/]* ) continue;;
1483 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1484 esac
1485 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1486 done
1487
1488 # There might be people who depend on the old broken behavior: `$host'
1489 # used to hold the argument of --host etc.
1490 # FIXME: To remove some day.
1491 build=$build_alias
1492 host=$host_alias
1493 target=$target_alias
1494
1495 # FIXME: To remove some day.
1496 if test "x$host_alias" != x; then
1497 if test "x$build_alias" = x; then
1498 cross_compiling=maybe
1499 elif test "x$build_alias" != "x$host_alias"; then
1500 cross_compiling=yes
1501 fi
1502 fi
1503
1504 ac_tool_prefix=
1505 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1506
1507 test "$silent" = yes && exec 6>/dev/null
1508
1509
1510 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1511 ac_ls_di=`ls -di .` &&
1512 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1513 as_fn_error $? "working directory cannot be determined"
1514 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1515 as_fn_error $? "pwd does not report name of working directory"
1516
1517
1518 # Find the source files, if location was not specified.
1519 if test -z "$srcdir"; then
1520 ac_srcdir_defaulted=yes
1521 # Try the directory containing this script, then the parent directory.
1522 ac_confdir=`$as_dirname -- "$as_myself" ||
1523 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1524 X"$as_myself" : 'X\(//\)[^/]' \| \
1525 X"$as_myself" : 'X\(//\)$' \| \
1526 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1527 $as_echo X"$as_myself" |
1528 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1529 s//\1/
1530 q
1531 }
1532 /^X\(\/\/\)[^/].*/{
1533 s//\1/
1534 q
1535 }
1536 /^X\(\/\/\)$/{
1537 s//\1/
1538 q
1539 }
1540 /^X\(\/\).*/{
1541 s//\1/
1542 q
1543 }
1544 s/.*/./; q'`
1545 srcdir=$ac_confdir
1546 if test ! -r "$srcdir/$ac_unique_file"; then
1547 srcdir=..
1548 fi
1549 else
1550 ac_srcdir_defaulted=no
1551 fi
1552 if test ! -r "$srcdir/$ac_unique_file"; then
1553 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1554 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1555 fi
1556 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1557 ac_abs_confdir=`(
1558 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1559 pwd)`
1560 # When building in place, set srcdir=.
1561 if test "$ac_abs_confdir" = "$ac_pwd"; then
1562 srcdir=.
1563 fi
1564 # Remove unnecessary trailing slashes from srcdir.
1565 # Double slashes in file names in object file debugging info
1566 # mess up M-x gdb in Emacs.
1567 case $srcdir in
1568 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1569 esac
1570 for ac_var in $ac_precious_vars; do
1571 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1572 eval ac_env_${ac_var}_value=\$${ac_var}
1573 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1574 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1575 done
1576
1577 #
1578 # Report the --help message.
1579 #
1580 if test "$ac_init_help" = "long"; then
1581 # Omit some internal or obsolete options to make the list less imposing.
1582 # This message is too long to be a string in the A/UX 3.1 sh.
1583 cat <<_ACEOF
1584 \`configure' configures fim 0.7.1 to adapt to many kinds of systems.
1585
1586 Usage: $0 [OPTION]... [VAR=VALUE]...
1587
1588 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1589 VAR=VALUE. See below for descriptions of some of the useful variables.
1590
1591 Defaults for the options are specified in brackets.
1592
1593 Configuration:
1594 -h, --help display this help and exit
1595 --help=short display options specific to this package
1596 --help=recursive display the short help of all the included packages
1597 -V, --version display version information and exit
1598 -q, --quiet, --silent do not print \`checking ...' messages
1599 --cache-file=FILE cache test results in FILE [disabled]
1600 -C, --config-cache alias for \`--cache-file=config.cache'
1601 -n, --no-create do not create output files
1602 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1603
1604 Installation directories:
1605 --prefix=PREFIX install architecture-independent files in PREFIX
1606 [$ac_default_prefix]
1607 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1608 [PREFIX]
1609
1610 By default, \`make install' will install all the files in
1611 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1612 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1613 for instance \`--prefix=\$HOME'.
1614
1615 For better control, use the options below.
1616
1617 Fine tuning of the installation directories:
1618 --bindir=DIR user executables [EPREFIX/bin]
1619 --sbindir=DIR system admin executables [EPREFIX/sbin]
1620 --libexecdir=DIR program executables [EPREFIX/libexec]
1621 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1622 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1623 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1624 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1625 --libdir=DIR object code libraries [EPREFIX/lib]
1626 --includedir=DIR C header files [PREFIX/include]
1627 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1628 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1629 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1630 --infodir=DIR info documentation [DATAROOTDIR/info]
1631 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1632 --mandir=DIR man documentation [DATAROOTDIR/man]
1633 --docdir=DIR documentation root [DATAROOTDIR/doc/fim]
1634 --htmldir=DIR html documentation [DOCDIR]
1635 --dvidir=DIR dvi documentation [DOCDIR]
1636 --pdfdir=DIR pdf documentation [DOCDIR]
1637 --psdir=DIR ps documentation [DOCDIR]
1638 _ACEOF
1639
1640 cat <<\_ACEOF
1641
1642 Program names:
1643 --program-prefix=PREFIX prepend PREFIX to installed program names
1644 --program-suffix=SUFFIX append SUFFIX to installed program names
1645 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1646 _ACEOF
1647 fi
1648
1649 if test -n "$ac_init_help"; then
1650 case $ac_init_help in
1651 short | recursive ) echo "Configuration of fim 0.7.1:";;
1652 esac
1653 cat <<\_ACEOF
1654
1655 Optional Features:
1656 --disable-option-checking ignore unrecognized --enable/--with options
1657 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1658 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1659 --enable-dependency-tracking
1660 do not reject slow dependency extractors
1661 --disable-dependency-tracking
1662 speeds up one-time build
1663 --enable-silent-rules less verbose build output (undo: "make V=1")
1664 --disable-silent-rules verbose build output (undo: "make V=0")
1665 --disable-largefile omit support for large files
1666 --enable-maintainer-mode
1667 enable make rules and dependencies not useful (and
1668 sometimes confusing) to the casual installer
1669 --enable-graphicsmagick Enable GraphicsMagick library support
1670 (EXPERIMENTAL).
1671 --enable-imlib2 Enable Imlib2 library support
1672 (EXPERIMENTAL,INCOMPLETE).
1673 --disable-default-bindings
1674 Builtin default minimal key binding
1675 --disable-default-mapping
1676 Builtin default minimal key mapping
1677 --disable-default-config
1678 Builtin default minimal configuration
1679 --disable-system Disable system() and popen() calls.
1680 --disable-framebuffer Disable the framebuffer device driver.
1681 --enable-static Want a static binary. (disabled by default)
1682 --disable-gif Disable gif support.
1683 --disable-qoi Disable qoi support.
1684 --disable-tiff Disable tiff support.
1685 --disable-readline Disable readline support (EXPERIMENTAL).
1686 --disable-jpeg Disable jpeg support.
1687 --disable-ps Disable ps support.
1688 --disable-djvu Disable djvu support.
1689 --enable-poppler Enable poppler (PDF rendering) support. This will
1690 try to detect extra compilation flags. You can
1691 override this by passing configure with
1692 POPPLER_CFLAGS=... .
1693 --enable-pdf Compile with pdf support (this does *not* imply
1694 detection of libpoppler)
1695 --disable-bmp Disable BMP file support (enabled by default).
1696 --disable-pcx Disable PCX file support (enabled by default).
1697 --disable-webp Disable WebP file support.
1698 --disable-avif Disable AVIF file support.
1699 --disable-png Disable png support.
1700 --enable-xyz Enable the sample bogus 'xyz' file loading support.
1701 This makes only sense in order to learn how to
1702 include a new file format and wish to play with
1703 src/FbiStuffXyz.cpp in the while.
1704 --enable-ufraw Enable UFRaw support (EXPERIMENTAL).
1705 --enable-archive Enable libarchive support to view archive files as
1706 multipage documents (please provide ARCHIVE_LIBS,
1707 ARCHIVE_CXXFLAGS) (EXPERIMENTAL, INCOMPLETE).
1708 --disable-exif JPEG EXIF tags support with libexif.
1709 --enable-jasper Turns on JPEG-2000 files support using JasPer
1710 (EXPERIMENTAL)
1711 --disable-aa ASCII-art (-o aa) support (via aalib)
1712 --disable-sdl Disable libsdl support. Or --enable-sdl=1
1713 --enable-sdl=2 to give preference to one those two
1714 versions. Requires either sdl-config or sdl2-config.
1715 Some configurations require prepending
1716 PKG_CONFIG=pkg-config before configure, for
1717 sdl2-config to work.
1718 --disable-gtk Disable libgtk support. Some configurations require
1719 prepending PKG_CONFIG=pkg-config before configure,
1720 for pkg-config to work.
1721 --enable-exiftool Turns on exiftool support (EXPERIMENTAL, shall
1722 provide the EXIFTOOLLINK variable with library or
1723 object files and EXIFTOOLCXXFLAGS). Not recommended:
1724 slow. Use --enable-exif instead.
1725 --disable-autocommands Fim will by default use autocommands.
1726 --enable-hardcoded-font Enable a hardcoded font in the executable (good as a
1727 fallback (FBFONT=fim://) when no PSF format
1728 consolefonts files are available).
1729 --enable-long-int-vars Internals shall use 64 bit integers (recommended).
1730 --disable-windows Disable windowing system in Fim. (deprecated)
1731 --disable-fimrc By default, load the personal ~/.fimrc file and a
1732 system configuration file.
1733 --disable-history Fim will by default load/save a ~/.fim_history file
1734 (note: depends on readline).
1735 --disable-screen Fim will try to work under screen by default (please
1736 read BUGS)
1737 --disable-resize-optimizations
1738 Some old (fbi) code is optimized for speedup in fim.
1739 --disable-stdin-image-reading
1740 Fim will read an image from stdin with the -i
1741 switch. (experimental)
1742 --enable-scan-consolefonts
1743 Fim will scan some predefined directory in look for
1744 console fonts as a fallback. (experimental)
1745 --enable-framebuffer-switch-while-loading
1746 Fim will be capable of redrawing while switching
1747 framebuffer console (makes only sense on very slow
1748 systems).
1749 --disable-seek-magic Fim will be capable to seek on a specified magic
1750 string.
1751 --disable-paths-in-man Generate man pages with configure specified paths
1752 (e.g. sysconfdir, docdir).
1753 --enable-pushdir Fim will scan directories for files.
1754 --disable-recursive-pushdir
1755 Fim will be able to push directories recursively
1756 (implies --enable-push-dirs )
1757 --enable-debug Turns on debug options (for debugging -- developer
1758 stuff)
1759 --enable-warnings Turns on compiler warnings (recommended, for
1760 debugging)
1761 --disable-caca Colour ASCII-Art (-o ca) support (via libcaca)
1762 --disable-smartautocompletion
1763 Fim will treat as a proper, unescaped string,
1764 nonquoted and nonevaluated strings which happen to
1765 match an existing filename.
1766 --disable-convert Fim will try to use convert (ImageMagick) as a last
1767 resort for opening unknown format files.
1768 --disable-dcraw Fim will try to use dcraw as a last resort for
1769 opening NEF files.
1770 --disable-xcftopnm Fim will try to use xcftopnm (Gimp) for opening XCF
1771 format files.
1772 --disable-xcf2pnm Fim will try to use xcf2pnm (Gimp) for opening XCF
1773 format files.
1774 --disable-inkscape Fim will try to use Inkscape for opening SVG format
1775 files.
1776 --disable-xfig Fim will try to use xfig (fig2dev) for opening FIG
1777 format files.
1778 --disable-dia Fim will try to use dia for opening DIA format
1779 files.
1780 --disable-custom-status-bar
1781 Customization of status bar via a printf-like
1782 string.
1783 --enable-optimizations Will try to enhance compilation flags (EXPERIMENTAL)
1784 --enable-mark-and-dump Fim will be capable of marking files while viewing
1785 and outputting their names on exit. (enabled by
1786 default)
1787 --enable-mouse Mouse support. (enabled by default)
1788 --enable-scripting Scripting. (enabled by default)
1789 --enable-output-console Output console. (enabled by default)
1790 --disable-as-text-rendering
1791 Disable as-text rendering (viewing of any file as
1792 character bytes -- not to be confused with the ASCII
1793 art output).
1794 --disable-raw-bits-rendering
1795 Disable raw bits rendering (viewing of any file as
1796 either a 1 or 24 bpp bitmap).
1797 --disable-loader-string-specification
1798 Disables the chance to specify a file loader.
1799 --enable-matrices-rendering
1800 Uses librsb for rendering of Matrix Market files
1801 (must have librsb-config in the PATH).
1802
1803 Optional Packages:
1804 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1805 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1806 --with-regex Obsolete switch -- do not use this. (deprecated)
1807 --with-png-prefix=PFX prefix where libpng is installed (optional)
1808 --with-sdl-prefix=PFX prefix where libsdl is installed (optional)
1809 --with-cflags=CXXFLAGS Specify a custom CXXFLAGS append value. e.g.: -pg
1810 You cannot call this argument multiple times. In
1811 case you want completely reset CXXFLAGS use :
1812 CXXFLAGS='<all that you want>' ./configure .. Note
1813 that Fim is a C++ program, so we set
1814 CXXFLAGS=CXXFLAGS.
1815 --with-exec-shell=SHELL Specify alternate shell (ONLY if /bin/sh is broken)
1816 --with-default-consolefont=FILE
1817 Specify a default consolefont (psf or psf.gz format)
1818 file.
1819 --with-custom-hardcoded-consolefont=FILE
1820 Specify a custom consolefont to be hardcoded
1821 (uncompressed psf format, absolute path) at build
1822 time (requires --enable-hardcoded-font).
1823 --with-font-magnifying-factor=FACTOR
1824 If FACTOR>0, Will render text magnified by
1825 (hardcoded) FACTOR times. If FACTOR<=0, will allow
1826 run-time control of it via the
1827 _fbfont_magnify_factor variable. If negative,
1828 -FACTOR will be used as default. Default is 0
1829 --with-tmpfile=FILE Specify where to put temporary files created when
1830 interacting with external conversion programs.
1831
1832 Some influential environment variables:
1833 CC C compiler command
1834 CFLAGS C compiler flags
1835 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1836 nonstandard directory <lib dir>
1837 LIBS libraries to pass to the linker, e.g. -l<library>
1838 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1839 you have headers in a nonstandard directory <include dir>
1840 CPP C preprocessor
1841 YACC The `Yet Another Compiler Compiler' implementation to use.
1842 Defaults to the first program found out of: `bison -y', `byacc',
1843 `yacc'.
1844 YFLAGS The list of arguments that will be passed by default to $YACC.
1845 This script will default YFLAGS to the empty string to avoid a
1846 default value of `-d' given by some make applications.
1847 CXX C++ compiler command
1848 CXXFLAGS C++ compiler flags
1849 CXXCPP C++ preprocessor
1850 LIBTIFF libtiff library (contributes to LIBS)
1851 LIBGIF libgif library (contributes to LIBS)
1852 LIBJPEG libjpeg library (contributes to LIBS)
1853 LIBPS libspectre library (contributes to LIBS)
1854 LIBDJVU libdjvu libdjvulibre (contributes to LIBS)
1855 LIBPOPPLER poppler library (contributes to LIBS)
1856 PKG_CONFIG path to pkg-config utility
1857 PKG_CONFIG_PATH
1858 directories to add to pkg-config's search path
1859 PKG_CONFIG_LIBDIR
1860 path overriding pkg-config's built-in search path
1861 POPPLER_CFLAGS
1862 C compiler flags for POPPLER, overriding pkg-config
1863 POPPLER_LIBS
1864 linker flags for POPPLER, overriding pkg-config
1865 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1866 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1867 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1868 GTK_LIBS linker flags for GTK, overriding pkg-config
1869
1870 Use these variables to override the choices made by `configure' or to help
1871 it to find libraries and programs with nonstandard names/locations.
1872
1873 Report bugs to <dezperado_FOobAr_autistici_Baz_org, by replacing _FOobAr_ with a @ and _Baz_ with a .>.
1874 _ACEOF
1875 ac_status=$?
1876 fi
1877
1878 if test "$ac_init_help" = "recursive"; then
1879 # If there are subdirs, report their specific --help.
1880 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1881 test -d "$ac_dir" ||
1882 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1883 continue
1884 ac_builddir=.
1885
1886 case "$ac_dir" in
1887 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1888 *)
1889 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1890 # A ".." for each directory in $ac_dir_suffix.
1891 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1892 case $ac_top_builddir_sub in
1893 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1894 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1895 esac ;;
1896 esac
1897 ac_abs_top_builddir=$ac_pwd
1898 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1899 # for backward compatibility:
1900 ac_top_builddir=$ac_top_build_prefix
1901
1902 case $srcdir in
1903 .) # We are building in place.
1904 ac_srcdir=.
1905 ac_top_srcdir=$ac_top_builddir_sub
1906 ac_abs_top_srcdir=$ac_pwd ;;
1907 [\\/]* | ?:[\\/]* ) # Absolute name.
1908 ac_srcdir=$srcdir$ac_dir_suffix;
1909 ac_top_srcdir=$srcdir
1910 ac_abs_top_srcdir=$srcdir ;;
1911 *) # Relative name.
1912 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1913 ac_top_srcdir=$ac_top_build_prefix$srcdir
1914 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1915 esac
1916 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1917
1918 cd "$ac_dir" || { ac_status=$?; continue; }
1919 # Check for guested configure.
1920 if test -f "$ac_srcdir/configure.gnu"; then
1921 echo &&
1922 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1923 elif test -f "$ac_srcdir/configure"; then
1924 echo &&
1925 $SHELL "$ac_srcdir/configure" --help=recursive
1926 else
1927 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1928 fi || ac_status=$?
1929 cd "$ac_pwd" || { ac_status=$?; break; }
1930 done
1931 fi
1932
1933 test -n "$ac_init_help" && exit $ac_status
1934 if $ac_init_version; then
1935 cat <<\_ACEOF
1936 fim configure 0.7.1
1937 generated by GNU Autoconf 2.69
1938
1939 Copyright (C) 2012 Free Software Foundation, Inc.
1940 This configure script is free software; the Free Software Foundation
1941 gives unlimited permission to copy, distribute and modify it.
1942 _ACEOF
1943 exit
1944 fi
1945
1946 ## ------------------------ ##
1947 ## Autoconf initialization. ##
1948 ## ------------------------ ##
1949
1950 # ac_fn_c_try_compile LINENO
1951 # --------------------------
1952 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1953 ac_fn_c_try_compile ()
1954 {
1955 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1956 rm -f conftest.$ac_objext
1957 if { { ac_try="$ac_compile"
1958 case "(($ac_try" in
1959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1960 *) ac_try_echo=$ac_try;;
1961 esac
1962 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1963 $as_echo "$ac_try_echo"; } >&5
1964 (eval "$ac_compile") 2>conftest.err
1965 ac_status=$?
1966 if test -s conftest.err; then
1967 grep -v '^ *+' conftest.err >conftest.er1
1968 cat conftest.er1 >&5
1969 mv -f conftest.er1 conftest.err
1970 fi
1971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1972 test $ac_status = 0; } && {
1973 test -z "$ac_c_werror_flag" ||
1974 test ! -s conftest.err
1975 } && test -s conftest.$ac_objext; then :
1976 ac_retval=0
1977 else
1978 $as_echo "$as_me: failed program was:" >&5
1979 sed 's/^/| /' conftest.$ac_ext >&5
1980
1981 ac_retval=1
1982 fi
1983 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1984 as_fn_set_status $ac_retval
1985
1986 } # ac_fn_c_try_compile
1987
1988 # ac_fn_c_try_cpp LINENO
1989 # ----------------------
1990 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1991 ac_fn_c_try_cpp ()
1992 {
1993 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1994 if { { ac_try="$ac_cpp conftest.$ac_ext"
1995 case "(($ac_try" in
1996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1997 *) ac_try_echo=$ac_try;;
1998 esac
1999 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2000 $as_echo "$ac_try_echo"; } >&5
2001 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2002 ac_status=$?
2003 if test -s conftest.err; then
2004 grep -v '^ *+' conftest.err >conftest.er1
2005 cat conftest.er1 >&5
2006 mv -f conftest.er1 conftest.err
2007 fi
2008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2009 test $ac_status = 0; } > conftest.i && {
2010 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2011 test ! -s conftest.err
2012 }; then :
2013 ac_retval=0
2014 else
2015 $as_echo "$as_me: failed program was:" >&5
2016 sed 's/^/| /' conftest.$ac_ext >&5
2017
2018 ac_retval=1
2019 fi
2020 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2021 as_fn_set_status $ac_retval
2022
2023 } # ac_fn_c_try_cpp
2024
2025 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2026 # -------------------------------------------------------
2027 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2028 # the include files in INCLUDES and setting the cache variable VAR
2029 # accordingly.
2030 ac_fn_c_check_header_mongrel ()
2031 {
2032 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2033 if eval \${$3+:} false; then :
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2035 $as_echo_n "checking for $2... " >&6; }
2036 if eval \${$3+:} false; then :
2037 $as_echo_n "(cached) " >&6
2038 fi
2039 eval ac_res=\$$3
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2041 $as_echo "$ac_res" >&6; }
2042 else
2043 # Is the header compilable?
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2045 $as_echo_n "checking $2 usability... " >&6; }
2046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2047 /* end confdefs.h. */
2048 $4
2049 #include <$2>
2050 _ACEOF
2051 if ac_fn_c_try_compile "$LINENO"; then :
2052 ac_header_compiler=yes
2053 else
2054 ac_header_compiler=no
2055 fi
2056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2058 $as_echo "$ac_header_compiler" >&6; }
2059
2060 # Is the header present?
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2062 $as_echo_n "checking $2 presence... " >&6; }
2063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2064 /* end confdefs.h. */
2065 #include <$2>
2066 _ACEOF
2067 if ac_fn_c_try_cpp "$LINENO"; then :
2068 ac_header_preproc=yes
2069 else
2070 ac_header_preproc=no
2071 fi
2072 rm -f conftest.err conftest.i conftest.$ac_ext
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2074 $as_echo "$ac_header_preproc" >&6; }
2075
2076 # So? What about this header?
2077 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2078 yes:no: )
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2080 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2082 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2083 ;;
2084 no:yes:* )
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2086 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2088 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2090 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2092 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2094 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2095 ( $as_echo "## bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb ##
2096 ## Report this to dezperado_FOobAr_autistici_Baz_org ##
2097 ## bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb ##"
2098 ) | sed "s/^/$as_me: WARNING: /" >&2
2099 ;;
2100 esac
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2102 $as_echo_n "checking for $2... " >&6; }
2103 if eval \${$3+:} false; then :
2104 $as_echo_n "(cached) " >&6
2105 else
2106 eval "$3=\$ac_header_compiler"
2107 fi
2108 eval ac_res=\$$3
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2110 $as_echo "$ac_res" >&6; }
2111 fi
2112 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2113
2114 } # ac_fn_c_check_header_mongrel
2115
2116 # ac_fn_c_try_run LINENO
2117 # ----------------------
2118 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2119 # that executables *can* be run.
2120 ac_fn_c_try_run ()
2121 {
2122 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2123 if { { ac_try="$ac_link"
2124 case "(($ac_try" in
2125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2126 *) ac_try_echo=$ac_try;;
2127 esac
2128 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2129 $as_echo "$ac_try_echo"; } >&5
2130 (eval "$ac_link") 2>&5
2131 ac_status=$?
2132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2133 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2134 { { case "(($ac_try" in
2135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2136 *) ac_try_echo=$ac_try;;
2137 esac
2138 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2139 $as_echo "$ac_try_echo"; } >&5
2140 (eval "$ac_try") 2>&5
2141 ac_status=$?
2142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2143 test $ac_status = 0; }; }; then :
2144 ac_retval=0
2145 else
2146 $as_echo "$as_me: program exited with status $ac_status" >&5
2147 $as_echo "$as_me: failed program was:" >&5
2148 sed 's/^/| /' conftest.$ac_ext >&5
2149
2150 ac_retval=$ac_status
2151 fi
2152 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2153 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2154 as_fn_set_status $ac_retval
2155
2156 } # ac_fn_c_try_run
2157
2158 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2159 # -------------------------------------------------------
2160 # Tests whether HEADER exists and can be compiled using the include files in
2161 # INCLUDES, setting the cache variable VAR accordingly.
2162 ac_fn_c_check_header_compile ()
2163 {
2164 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2166 $as_echo_n "checking for $2... " >&6; }
2167 if eval \${$3+:} false; then :
2168 $as_echo_n "(cached) " >&6
2169 else
2170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2171 /* end confdefs.h. */
2172 $4
2173 #include <$2>
2174 _ACEOF
2175 if ac_fn_c_try_compile "$LINENO"; then :
2176 eval "$3=yes"
2177 else
2178 eval "$3=no"
2179 fi
2180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2181 fi
2182 eval ac_res=\$$3
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2184 $as_echo "$ac_res" >&6; }
2185 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2186
2187 } # ac_fn_c_check_header_compile
2188
2189 # ac_fn_c_try_link LINENO
2190 # -----------------------
2191 # Try to link conftest.$ac_ext, and return whether this succeeded.
2192 ac_fn_c_try_link ()
2193 {
2194 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2195 rm -f conftest.$ac_objext conftest$ac_exeext
2196 if { { ac_try="$ac_link"
2197 case "(($ac_try" in
2198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2199 *) ac_try_echo=$ac_try;;
2200 esac
2201 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2202 $as_echo "$ac_try_echo"; } >&5
2203 (eval "$ac_link") 2>conftest.err
2204 ac_status=$?
2205 if test -s conftest.err; then
2206 grep -v '^ *+' conftest.err >conftest.er1
2207 cat conftest.er1 >&5
2208 mv -f conftest.er1 conftest.err
2209 fi
2210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2211 test $ac_status = 0; } && {
2212 test -z "$ac_c_werror_flag" ||
2213 test ! -s conftest.err
2214 } && test -s conftest$ac_exeext && {
2215 test "$cross_compiling" = yes ||
2216 test -x conftest$ac_exeext
2217 }; then :
2218 ac_retval=0
2219 else
2220 $as_echo "$as_me: failed program was:" >&5
2221 sed 's/^/| /' conftest.$ac_ext >&5
2222
2223 ac_retval=1
2224 fi
2225 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2226 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2227 # interfere with the next link command; also delete a directory that is
2228 # left behind by Apple's compiler. We do this before executing the actions.
2229 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2230 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2231 as_fn_set_status $ac_retval
2232
2233 } # ac_fn_c_try_link
2234
2235 # ac_fn_cxx_try_compile LINENO
2236 # ----------------------------
2237 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2238 ac_fn_cxx_try_compile ()
2239 {
2240 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2241 rm -f conftest.$ac_objext
2242 if { { ac_try="$ac_compile"
2243 case "(($ac_try" in
2244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2245 *) ac_try_echo=$ac_try;;
2246 esac
2247 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2248 $as_echo "$ac_try_echo"; } >&5
2249 (eval "$ac_compile") 2>conftest.err
2250 ac_status=$?
2251 if test -s conftest.err; then
2252 grep -v '^ *+' conftest.err >conftest.er1
2253 cat conftest.er1 >&5
2254 mv -f conftest.er1 conftest.err
2255 fi
2256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2257 test $ac_status = 0; } && {
2258 test -z "$ac_cxx_werror_flag" ||
2259 test ! -s conftest.err
2260 } && test -s conftest.$ac_objext; then :
2261 ac_retval=0
2262 else
2263 $as_echo "$as_me: failed program was:" >&5
2264 sed 's/^/| /' conftest.$ac_ext >&5
2265
2266 ac_retval=1
2267 fi
2268 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2269 as_fn_set_status $ac_retval
2270
2271 } # ac_fn_cxx_try_compile
2272
2273 # ac_fn_cxx_try_cpp LINENO
2274 # ------------------------
2275 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2276 ac_fn_cxx_try_cpp ()
2277 {
2278 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2279 if { { ac_try="$ac_cpp conftest.$ac_ext"
2280 case "(($ac_try" in
2281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2282 *) ac_try_echo=$ac_try;;
2283 esac
2284 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2285 $as_echo "$ac_try_echo"; } >&5
2286 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2287 ac_status=$?
2288 if test -s conftest.err; then
2289 grep -v '^ *+' conftest.err >conftest.er1
2290 cat conftest.er1 >&5
2291 mv -f conftest.er1 conftest.err
2292 fi
2293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2294 test $ac_status = 0; } > conftest.i && {
2295 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2296 test ! -s conftest.err
2297 }; then :
2298 ac_retval=0
2299 else
2300 $as_echo "$as_me: failed program was:" >&5
2301 sed 's/^/| /' conftest.$ac_ext >&5
2302
2303 ac_retval=1
2304 fi
2305 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2306 as_fn_set_status $ac_retval
2307
2308 } # ac_fn_cxx_try_cpp
2309
2310 # ac_fn_cxx_try_link LINENO
2311 # -------------------------
2312 # Try to link conftest.$ac_ext, and return whether this succeeded.
2313 ac_fn_cxx_try_link ()
2314 {
2315 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2316 rm -f conftest.$ac_objext conftest$ac_exeext
2317 if { { ac_try="$ac_link"
2318 case "(($ac_try" in
2319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2320 *) ac_try_echo=$ac_try;;
2321 esac
2322 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2323 $as_echo "$ac_try_echo"; } >&5
2324 (eval "$ac_link") 2>conftest.err
2325 ac_status=$?
2326 if test -s conftest.err; then
2327 grep -v '^ *+' conftest.err >conftest.er1
2328 cat conftest.er1 >&5
2329 mv -f conftest.er1 conftest.err
2330 fi
2331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2332 test $ac_status = 0; } && {
2333 test -z "$ac_cxx_werror_flag" ||
2334 test ! -s conftest.err
2335 } && test -s conftest$ac_exeext && {
2336 test "$cross_compiling" = yes ||
2337 test -x conftest$ac_exeext
2338 }; then :
2339 ac_retval=0
2340 else
2341 $as_echo "$as_me: failed program was:" >&5
2342 sed 's/^/| /' conftest.$ac_ext >&5
2343
2344 ac_retval=1
2345 fi
2346 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2347 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2348 # interfere with the next link command; also delete a directory that is
2349 # left behind by Apple's compiler. We do this before executing the actions.
2350 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2351 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2352 as_fn_set_status $ac_retval
2353
2354 } # ac_fn_cxx_try_link
2355
2356 # ac_fn_cxx_try_run LINENO
2357 # ------------------------
2358 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2359 # that executables *can* be run.
2360 ac_fn_cxx_try_run ()
2361 {
2362 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2363 if { { ac_try="$ac_link"
2364 case "(($ac_try" in
2365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2366 *) ac_try_echo=$ac_try;;
2367 esac
2368 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2369 $as_echo "$ac_try_echo"; } >&5
2370 (eval "$ac_link") 2>&5
2371 ac_status=$?
2372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2373 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2374 { { case "(($ac_try" in
2375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2376 *) ac_try_echo=$ac_try;;
2377 esac
2378 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2379 $as_echo "$ac_try_echo"; } >&5
2380 (eval "$ac_try") 2>&5
2381 ac_status=$?
2382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2383 test $ac_status = 0; }; }; then :
2384 ac_retval=0
2385 else
2386 $as_echo "$as_me: program exited with status $ac_status" >&5
2387 $as_echo "$as_me: failed program was:" >&5
2388 sed 's/^/| /' conftest.$ac_ext >&5
2389
2390 ac_retval=$ac_status
2391 fi
2392 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2393 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2394 as_fn_set_status $ac_retval
2395
2396 } # ac_fn_cxx_try_run
2397
2398 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2399 # ----------------------------------------------
2400 # Tries to find the compile-time value of EXPR in a program that includes
2401 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2402 # computed
2403 ac_fn_cxx_compute_int ()
2404 {
2405 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2406 if test "$cross_compiling" = yes; then
2407 # Depending upon the size, compute the lo and hi bounds.
2408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2409 /* end confdefs.h. */
2410 $4
2411 int
2412 main ()
2413 {
2414 static int test_array [1 - 2 * !(($2) >= 0)];
2415 test_array [0] = 0;
2416 return test_array [0];
2417
2418 ;
2419 return 0;
2420 }
2421 _ACEOF
2422 if ac_fn_cxx_try_compile "$LINENO"; then :
2423 ac_lo=0 ac_mid=0
2424 while :; do
2425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2426 /* end confdefs.h. */
2427 $4
2428 int
2429 main ()
2430 {
2431 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2432 test_array [0] = 0;
2433 return test_array [0];
2434
2435 ;
2436 return 0;
2437 }
2438 _ACEOF
2439 if ac_fn_cxx_try_compile "$LINENO"; then :
2440 ac_hi=$ac_mid; break
2441 else
2442 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2443 if test $ac_lo -le $ac_mid; then
2444 ac_lo= ac_hi=
2445 break
2446 fi
2447 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2448 fi
2449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2450 done
2451 else
2452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2453 /* end confdefs.h. */
2454 $4
2455 int
2456 main ()
2457 {
2458 static int test_array [1 - 2 * !(($2) < 0)];
2459 test_array [0] = 0;
2460 return test_array [0];
2461
2462 ;
2463 return 0;
2464 }
2465 _ACEOF
2466 if ac_fn_cxx_try_compile "$LINENO"; then :
2467 ac_hi=-1 ac_mid=-1
2468 while :; do
2469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2470 /* end confdefs.h. */
2471 $4
2472 int
2473 main ()
2474 {
2475 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2476 test_array [0] = 0;
2477 return test_array [0];
2478
2479 ;
2480 return 0;
2481 }
2482 _ACEOF
2483 if ac_fn_cxx_try_compile "$LINENO"; then :
2484 ac_lo=$ac_mid; break
2485 else
2486 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2487 if test $ac_mid -le $ac_hi; then
2488 ac_lo= ac_hi=
2489 break
2490 fi
2491 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2492 fi
2493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2494 done
2495 else
2496 ac_lo= ac_hi=
2497 fi
2498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2499 fi
2500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2501 # Binary search between lo and hi bounds.
2502 while test "x$ac_lo" != "x$ac_hi"; do
2503 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2505 /* end confdefs.h. */
2506 $4
2507 int
2508 main ()
2509 {
2510 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2511 test_array [0] = 0;
2512 return test_array [0];
2513
2514 ;
2515 return 0;
2516 }
2517 _ACEOF
2518 if ac_fn_cxx_try_compile "$LINENO"; then :
2519 ac_hi=$ac_mid
2520 else
2521 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2522 fi
2523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2524 done
2525 case $ac_lo in #((
2526 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2527 '') ac_retval=1 ;;
2528 esac
2529 else
2530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2531 /* end confdefs.h. */
2532 $4
2533 static long int longval () { return $2; }
2534 static unsigned long int ulongval () { return $2; }
2535 #include <stdio.h>
2536 #include <stdlib.h>
2537 int
2538 main ()
2539 {
2540
2541 FILE *f = fopen ("conftest.val", "w");
2542 if (! f)
2543 return 1;
2544 if (($2) < 0)
2545 {
2546 long int i = longval ();
2547 if (i != ($2))
2548 return 1;
2549 fprintf (f, "%ld", i);
2550 }
2551 else
2552 {
2553 unsigned long int i = ulongval ();
2554 if (i != ($2))
2555 return 1;
2556 fprintf (f, "%lu", i);
2557 }
2558 /* Do not output a trailing newline, as this causes \r\n confusion
2559 on some platforms. */
2560 return ferror (f) || fclose (f) != 0;
2561
2562 ;
2563 return 0;
2564 }
2565 _ACEOF
2566 if ac_fn_cxx_try_run "$LINENO"; then :
2567 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2568 else
2569 ac_retval=1
2570 fi
2571 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2572 conftest.$ac_objext conftest.beam conftest.$ac_ext
2573 rm -f conftest.val
2574
2575 fi
2576 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2577 as_fn_set_status $ac_retval
2578
2579 } # ac_fn_cxx_compute_int
2580
2581 # ac_fn_cxx_check_func LINENO FUNC VAR
2582 # ------------------------------------
2583 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2584 ac_fn_cxx_check_func ()
2585 {
2586 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2588 $as_echo_n "checking for $2... " >&6; }
2589 if eval \${$3+:} false; then :
2590 $as_echo_n "(cached) " >&6
2591 else
2592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2593 /* end confdefs.h. */
2594 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2595 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2596 #define $2 innocuous_$2
2597
2598 /* System header to define __stub macros and hopefully few prototypes,
2599 which can conflict with char $2 (); below.
2600 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2601 <limits.h> exists even on freestanding compilers. */
2602
2603 #ifdef __STDC__
2604 # include <limits.h>
2605 #else
2606 # include <assert.h>
2607 #endif
2608
2609 #undef $2
2610
2611 /* Override any GCC internal prototype to avoid an error.
2612 Use char because int might match the return type of a GCC
2613 builtin and then its argument prototype would still apply. */
2614 #ifdef __cplusplus
2615 extern "C"
2616 #endif
2617 char $2 ();
2618 /* The GNU C library defines this for functions which it implements
2619 to always fail with ENOSYS. Some functions are actually named
2620 something starting with __ and the normal name is an alias. */
2621 #if defined __stub_$2 || defined __stub___$2
2622 choke me
2623 #endif
2624
2625 int
2626 main ()
2627 {
2628 return $2 ();
2629 ;
2630 return 0;
2631 }
2632 _ACEOF
2633 if ac_fn_cxx_try_link "$LINENO"; then :
2634 eval "$3=yes"
2635 else
2636 eval "$3=no"
2637 fi
2638 rm -f core conftest.err conftest.$ac_objext \
2639 conftest$ac_exeext conftest.$ac_ext
2640 fi
2641 eval ac_res=\$$3
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2643 $as_echo "$ac_res" >&6; }
2644 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2645
2646 } # ac_fn_cxx_check_func
2647
2648 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2649 # ---------------------------------------------------------
2650 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2651 # the include files in INCLUDES and setting the cache variable VAR
2652 # accordingly.
2653 ac_fn_cxx_check_header_mongrel ()
2654 {
2655 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2656 if eval \${$3+:} false; then :
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2658 $as_echo_n "checking for $2... " >&6; }
2659 if eval \${$3+:} false; then :
2660 $as_echo_n "(cached) " >&6
2661 fi
2662 eval ac_res=\$$3
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2664 $as_echo "$ac_res" >&6; }
2665 else
2666 # Is the header compilable?
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2668 $as_echo_n "checking $2 usability... " >&6; }
2669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2670 /* end confdefs.h. */
2671 $4
2672 #include <$2>
2673 _ACEOF
2674 if ac_fn_cxx_try_compile "$LINENO"; then :
2675 ac_header_compiler=yes
2676 else
2677 ac_header_compiler=no
2678 fi
2679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2681 $as_echo "$ac_header_compiler" >&6; }
2682
2683 # Is the header present?
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2685 $as_echo_n "checking $2 presence... " >&6; }
2686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2687 /* end confdefs.h. */
2688 #include <$2>
2689 _ACEOF
2690 if ac_fn_cxx_try_cpp "$LINENO"; then :
2691 ac_header_preproc=yes
2692 else
2693 ac_header_preproc=no
2694 fi
2695 rm -f conftest.err conftest.i conftest.$ac_ext
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2697 $as_echo "$ac_header_preproc" >&6; }
2698
2699 # So? What about this header?
2700 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2701 yes:no: )
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2703 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2705 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2706 ;;
2707 no:yes:* )
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2709 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2711 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2713 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2715 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2717 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2718 ( $as_echo "## bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb ##
2719 ## Report this to dezperado_FOobAr_autistici_Baz_org ##
2720 ## bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb ##"
2721 ) | sed "s/^/$as_me: WARNING: /" >&2
2722 ;;
2723 esac
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2725 $as_echo_n "checking for $2... " >&6; }
2726 if eval \${$3+:} false; then :
2727 $as_echo_n "(cached) " >&6
2728 else
2729 eval "$3=\$ac_header_compiler"
2730 fi
2731 eval ac_res=\$$3
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2733 $as_echo "$ac_res" >&6; }
2734 fi
2735 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2736
2737 } # ac_fn_cxx_check_header_mongrel
2738
2739 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2740 # ---------------------------------------------------------
2741 # Tests whether HEADER exists and can be compiled using the include files in
2742 # INCLUDES, setting the cache variable VAR accordingly.
2743 ac_fn_cxx_check_header_compile ()
2744 {
2745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2747 $as_echo_n "checking for $2... " >&6; }
2748 if eval \${$3+:} false; then :
2749 $as_echo_n "(cached) " >&6
2750 else
2751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2752 /* end confdefs.h. */
2753 $4
2754 #include <$2>
2755 _ACEOF
2756 if ac_fn_cxx_try_compile "$LINENO"; then :
2757 eval "$3=yes"
2758 else
2759 eval "$3=no"
2760 fi
2761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2762 fi
2763 eval ac_res=\$$3
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2765 $as_echo "$ac_res" >&6; }
2766 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2767
2768 } # ac_fn_cxx_check_header_compile
2769 cat >config.log <<_ACEOF
2770 This file contains any messages produced by compilers while
2771 running configure, to aid debugging if configure makes a mistake.
2772
2773 It was created by fim $as_me 0.7.1, which was
2774 generated by GNU Autoconf 2.69. Invocation command line was
2775
2776 $ $0 $@
2777
2778 _ACEOF
2779 exec 5>>config.log
2780 {
2781 cat <<_ASUNAME
2782 ## --------- ##
2783 ## Platform. ##
2784 ## --------- ##
2785
2786 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2787 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2788 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2789 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2790 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2791
2792 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2793 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2794
2795 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2796 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2797 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2798 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2799 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2800 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2801 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2802
2803 _ASUNAME
2804
2805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2806 for as_dir in $PATH
2807 do
2808 IFS=$as_save_IFS
2809 test -z "$as_dir" && as_dir=.
2810 $as_echo "PATH: $as_dir"
2811 done
2812 IFS=$as_save_IFS
2813
2814 } >&5
2815
2816 cat >&5 <<_ACEOF
2817
2818
2819 ## ----------- ##
2820 ## Core tests. ##
2821 ## ----------- ##
2822
2823 _ACEOF
2824
2825
2826 # Keep a trace of the command line.
2827 # Strip out --no-create and --no-recursion so they do not pile up.
2828 # Strip out --silent because we don't want to record it for future runs.
2829 # Also quote any args containing shell meta-characters.
2830 # Make two passes to allow for proper duplicate-argument suppression.
2831 ac_configure_args=
2832 ac_configure_args0=
2833 ac_configure_args1=
2834 ac_must_keep_next=false
2835 for ac_pass in 1 2
2836 do
2837 for ac_arg
2838 do
2839 case $ac_arg in
2840 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2841 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2842 | -silent | --silent | --silen | --sile | --sil)
2843 continue ;;
2844 *\'*)
2845 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2846 esac
2847 case $ac_pass in
2848 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2849 2)
2850 as_fn_append ac_configure_args1 " '$ac_arg'"
2851 if test $ac_must_keep_next = true; then
2852 ac_must_keep_next=false # Got value, back to normal.
2853 else
2854 case $ac_arg in
2855 *=* | --config-cache | -C | -disable-* | --disable-* \
2856 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2857 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2858 | -with-* | --with-* | -without-* | --without-* | --x)
2859 case "$ac_configure_args0 " in
2860 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2861 esac
2862 ;;
2863 -* ) ac_must_keep_next=true ;;
2864 esac
2865 fi
2866 as_fn_append ac_configure_args " '$ac_arg'"
2867 ;;
2868 esac
2869 done
2870 done
2871 { ac_configure_args0=; unset ac_configure_args0;}
2872 { ac_configure_args1=; unset ac_configure_args1;}
2873
2874 # When interrupted or exit'd, cleanup temporary files, and complete
2875 # config.log. We remove comments because anyway the quotes in there
2876 # would cause problems or look ugly.
2877 # WARNING: Use '\'' to represent an apostrophe within the trap.
2878 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2879 trap 'exit_status=$?
2880 # Save into config.log some information that might help in debugging.
2881 {
2882 echo
2883
2884 $as_echo "## ---------------- ##
2885 ## Cache variables. ##
2886 ## ---------------- ##"
2887 echo
2888 # The following way of writing the cache mishandles newlines in values,
2889 (
2890 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2891 eval ac_val=\$$ac_var
2892 case $ac_val in #(
2893 *${as_nl}*)
2894 case $ac_var in #(
2895 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2896 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2897 esac
2898 case $ac_var in #(
2899 _ | IFS | as_nl) ;; #(
2900 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2901 *) { eval $ac_var=; unset $ac_var;} ;;
2902 esac ;;
2903 esac
2904 done
2905 (set) 2>&1 |
2906 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2907 *${as_nl}ac_space=\ *)
2908 sed -n \
2909 "s/'\''/'\''\\\\'\'''\''/g;
2910 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2911 ;; #(
2912 *)
2913 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2914 ;;
2915 esac |
2916 sort
2917 )
2918 echo
2919
2920 $as_echo "## ----------------- ##
2921 ## Output variables. ##
2922 ## ----------------- ##"
2923 echo
2924 for ac_var in $ac_subst_vars
2925 do
2926 eval ac_val=\$$ac_var
2927 case $ac_val in
2928 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2929 esac
2930 $as_echo "$ac_var='\''$ac_val'\''"
2931 done | sort
2932 echo
2933
2934 if test -n "$ac_subst_files"; then
2935 $as_echo "## ------------------- ##
2936 ## File substitutions. ##
2937 ## ------------------- ##"
2938 echo
2939 for ac_var in $ac_subst_files
2940 do
2941 eval ac_val=\$$ac_var
2942 case $ac_val in
2943 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2944 esac
2945 $as_echo "$ac_var='\''$ac_val'\''"
2946 done | sort
2947 echo
2948 fi
2949
2950 if test -s confdefs.h; then
2951 $as_echo "## ----------- ##
2952 ## confdefs.h. ##
2953 ## ----------- ##"
2954 echo
2955 cat confdefs.h
2956 echo
2957 fi
2958 test "$ac_signal" != 0 &&
2959 $as_echo "$as_me: caught signal $ac_signal"
2960 $as_echo "$as_me: exit $exit_status"
2961 } >&5
2962 rm -f core *.core core.conftest.* &&
2963 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2964 exit $exit_status
2965 ' 0
2966 for ac_signal in 1 2 13 15; do
2967 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2968 done
2969 ac_signal=0
2970
2971 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2972 rm -f -r conftest* confdefs.h
2973
2974 $as_echo "/* confdefs.h */" > confdefs.h
2975
2976 # Predefined preprocessor variables.
2977
2978 cat >>confdefs.h <<_ACEOF
2979 #define PACKAGE_NAME "$PACKAGE_NAME"
2980 _ACEOF
2981
2982 cat >>confdefs.h <<_ACEOF
2983 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2984 _ACEOF
2985
2986 cat >>confdefs.h <<_ACEOF
2987 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2988 _ACEOF
2989
2990 cat >>confdefs.h <<_ACEOF
2991 #define PACKAGE_STRING "$PACKAGE_STRING"
2992 _ACEOF
2993
2994 cat >>confdefs.h <<_ACEOF
2995 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2996 _ACEOF
2997
2998 cat >>confdefs.h <<_ACEOF
2999 #define PACKAGE_URL "$PACKAGE_URL"
3000 _ACEOF
3001
3002
3003 # Let the site file select an alternate cache file if it wants to.
3004 # Prefer an explicitly selected file to automatically selected ones.
3005 ac_site_file1=NONE
3006 ac_site_file2=NONE
3007 if test -n "$CONFIG_SITE"; then
3008 # We do not want a PATH search for config.site.
3009 case $CONFIG_SITE in #((
3010 -*) ac_site_file1=./$CONFIG_SITE;;
3011 */*) ac_site_file1=$CONFIG_SITE;;
3012 *) ac_site_file1=./$CONFIG_SITE;;
3013 esac
3014 elif test "x$prefix" != xNONE; then
3015 ac_site_file1=$prefix/share/config.site
3016 ac_site_file2=$prefix/etc/config.site
3017 else
3018 ac_site_file1=$ac_default_prefix/share/config.site
3019 ac_site_file2=$ac_default_prefix/etc/config.site
3020 fi
3021 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3022 do
3023 test "x$ac_site_file" = xNONE && continue
3024 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3026 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3027 sed 's/^/| /' "$ac_site_file" >&5
3028 . "$ac_site_file" \
3029 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3030 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3031 as_fn_error $? "failed to load site script $ac_site_file
3032 See \`config.log' for more details" "$LINENO" 5; }
3033 fi
3034 done
3035
3036 if test -r "$cache_file"; then
3037 # Some versions of bash will fail to source /dev/null (special files
3038 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3039 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3041 $as_echo "$as_me: loading cache $cache_file" >&6;}
3042 case $cache_file in
3043 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3044 *) . "./$cache_file";;
3045 esac
3046 fi
3047 else
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3049 $as_echo "$as_me: creating cache $cache_file" >&6;}
3050 >$cache_file
3051 fi
3052
3053 as_fn_append ac_header_list " stdlib.h"
3054 as_fn_append ac_header_list " unistd.h"
3055 as_fn_append ac_header_list " sys/param.h"
3056 # Check that the precious variables saved in the cache have kept the same
3057 # value.
3058 ac_cache_corrupted=false
3059 for ac_var in $ac_precious_vars; do
3060 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3061 eval ac_new_set=\$ac_env_${ac_var}_set
3062 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3063 eval ac_new_val=\$ac_env_${ac_var}_value
3064 case $ac_old_set,$ac_new_set in
3065 set,)
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3067 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3068 ac_cache_corrupted=: ;;
3069 ,set)
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3071 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3072 ac_cache_corrupted=: ;;
3073 ,);;
3074 *)
3075 if test "x$ac_old_val" != "x$ac_new_val"; then
3076 # differences in whitespace do not lead to failure.
3077 ac_old_val_w=`echo x $ac_old_val`
3078 ac_new_val_w=`echo x $ac_new_val`
3079 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3081 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3082 ac_cache_corrupted=:
3083 else
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3085 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3086 eval $ac_var=\$ac_old_val
3087 fi
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3089 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3091 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3092 fi;;
3093 esac
3094 # Pass precious variables to config.status.
3095 if test "$ac_new_set" = set; then
3096 case $ac_new_val in
3097 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3098 *) ac_arg=$ac_var=$ac_new_val ;;
3099 esac
3100 case " $ac_configure_args " in
3101 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3102 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3103 esac
3104 fi
3105 done
3106 if $ac_cache_corrupted; then
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3108 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3110 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3111 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3112 fi
3113 ## -------------------- ##
3114 ## Main body of script. ##
3115 ## -------------------- ##
3116
3117 ac_ext=c
3118 ac_cpp='$CPP $CPPFLAGS'
3119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3122
3123
3124
3125
3126 if test x"22552256" != x ; then
3127 # The above test gets evaluated when creating the configure script.
3128
3129 $as_echo "#define SVN_REVISION \"22552256\"" >>confdefs.h
3130
3131 SVN_REVISION="22552256"
3132
3133
3134 $as_echo "#define SVN_REVISION_NUMBER 22552256" >>confdefs.h
3135
3136 SVN_REVISION_NUMBER=22552256
3137
3138 fi
3139
3140
3141 FIM_CONFIGURATION="$0 $@"
3142
3143 cat >>confdefs.h <<_ACEOF
3144 #define FIM_CONFIGURATION "$FIM_CONFIGURATION"
3145 _ACEOF
3146
3147
3148 { $as_echo "$as_me:${as_lineno-$LINENO}:
3149 Welcome to the Fim (revision $SVN_REVISION) configure script!
3150 This script will create the right Makefile for building Fim on your system.
3151 But first, it will check if your system has the right configuration for Fim to build.
3152
3153 There are options to this script, please run :
3154 ./configure --help=short
3155 for a complete list of these options.
3156
3157 Please read BUGS and README and report any bug found to the Fim maintainer!
3158 " >&5
3159 $as_echo "$as_me:
3160 Welcome to the Fim (revision $SVN_REVISION) configure script!
3161 This script will create the right Makefile for building Fim on your system.
3162 But first, it will check if your system has the right configuration for Fim to build.
3163
3164 There are options to this script, please run :
3165 ./configure --help=short
3166 for a complete list of these options.
3167
3168 Please read BUGS and README and report any bug found to the Fim maintainer!
3169 " >&6;}
3170
3171
3172 #AM_CONFIG_HEADER([config.h])
3173 #AC_CONFIG_SRCDIR(pinentry/pinentry.h)
3174
3175 #
3176 #AM_INIT_AUTOMAKE($PACKAGE_NAME, $PACKAGE_VERSION)
3177 ac_aux_dir=
3178 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3179 if test -f "$ac_dir/install-sh"; then
3180 ac_aux_dir=$ac_dir
3181 ac_install_sh="$ac_aux_dir/install-sh -c"
3182 break
3183 elif test -f "$ac_dir/install.sh"; then
3184 ac_aux_dir=$ac_dir
3185 ac_install_sh="$ac_aux_dir/install.sh -c"
3186 break
3187 elif test -f "$ac_dir/shtool"; then
3188 ac_aux_dir=$ac_dir
3189 ac_install_sh="$ac_aux_dir/shtool install -c"
3190 break
3191 fi
3192 done
3193 if test -z "$ac_aux_dir"; then
3194 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3195 fi
3196
3197 # These three variables are undocumented and unsupported,
3198 # and are intended to be withdrawn in a future Autoconf release.
3199 # They can cause serious problems if a builder's source tree is in a directory
3200 # whose full name contains unusual characters.
3201 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3202 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3203 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3204
3205
3206 # Expand $ac_aux_dir to an absolute path.
3207 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3208
3209 ac_ext=c
3210 ac_cpp='$CPP $CPPFLAGS'
3211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3214 if test -n "$ac_tool_prefix"; then
3215 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3216 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3218 $as_echo_n "checking for $ac_word... " >&6; }
3219 if ${ac_cv_prog_CC+:} false; then :
3220 $as_echo_n "(cached) " >&6
3221 else
3222 if test -n "$CC"; then
3223 ac_cv_prog_CC="$CC" # Let the user override the test.
3224 else
3225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3226 for as_dir in $PATH
3227 do
3228 IFS=$as_save_IFS
3229 test -z "$as_dir" && as_dir=.
3230 for ac_exec_ext in '' $ac_executable_extensions; do
3231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3232 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3234 break 2
3235 fi
3236 done
3237 done
3238 IFS=$as_save_IFS
3239
3240 fi
3241 fi
3242 CC=$ac_cv_prog_CC
3243 if test -n "$CC"; then
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3245 $as_echo "$CC" >&6; }
3246 else
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3248 $as_echo "no" >&6; }
3249 fi
3250
3251
3252 fi
3253 if test -z "$ac_cv_prog_CC"; then
3254 ac_ct_CC=$CC
3255 # Extract the first word of "gcc", so it can be a program name with args.
3256 set dummy gcc; ac_word=$2
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3258 $as_echo_n "checking for $ac_word... " >&6; }
3259 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3260 $as_echo_n "(cached) " >&6
3261 else
3262 if test -n "$ac_ct_CC"; then
3263 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3264 else
3265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3266 for as_dir in $PATH
3267 do
3268 IFS=$as_save_IFS
3269 test -z "$as_dir" && as_dir=.
3270 for ac_exec_ext in '' $ac_executable_extensions; do
3271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3272 ac_cv_prog_ac_ct_CC="gcc"
3273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3274 break 2
3275 fi
3276 done
3277 done
3278 IFS=$as_save_IFS
3279
3280 fi
3281 fi
3282 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3283 if test -n "$ac_ct_CC"; then
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3285 $as_echo "$ac_ct_CC" >&6; }
3286 else
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3288 $as_echo "no" >&6; }
3289 fi
3290
3291 if test "x$ac_ct_CC" = x; then
3292 CC=""
3293 else
3294 case $cross_compiling:$ac_tool_warned in
3295 yes:)
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3297 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3298 ac_tool_warned=yes ;;
3299 esac
3300 CC=$ac_ct_CC
3301 fi
3302 else
3303 CC="$ac_cv_prog_CC"
3304 fi
3305
3306 if test -z "$CC"; then
3307 if test -n "$ac_tool_prefix"; then
3308 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3309 set dummy ${ac_tool_prefix}cc; ac_word=$2
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3311 $as_echo_n "checking for $ac_word... " >&6; }
3312 if ${ac_cv_prog_CC+:} false; then :
3313 $as_echo_n "(cached) " >&6
3314 else
3315 if test -n "$CC"; then
3316 ac_cv_prog_CC="$CC" # Let the user override the test.
3317 else
3318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3319 for as_dir in $PATH
3320 do
3321 IFS=$as_save_IFS
3322 test -z "$as_dir" && as_dir=.
3323 for ac_exec_ext in '' $ac_executable_extensions; do
3324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3325 ac_cv_prog_CC="${ac_tool_prefix}cc"
3326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3327 break 2
3328 fi
3329 done
3330 done
3331 IFS=$as_save_IFS
3332
3333 fi
3334 fi
3335 CC=$ac_cv_prog_CC
3336 if test -n "$CC"; then
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3338 $as_echo "$CC" >&6; }
3339 else
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3341 $as_echo "no" >&6; }
3342 fi
3343
3344
3345 fi
3346 fi
3347 if test -z "$CC"; then
3348 # Extract the first word of "cc", so it can be a program name with args.
3349 set dummy cc; ac_word=$2
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3351 $as_echo_n "checking for $ac_word... " >&6; }
3352 if ${ac_cv_prog_CC+:} false; then :
3353 $as_echo_n "(cached) " >&6
3354 else
3355 if test -n "$CC"; then
3356 ac_cv_prog_CC="$CC" # Let the user override the test.
3357 else
3358 ac_prog_rejected=no
3359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3360 for as_dir in $PATH
3361 do
3362 IFS=$as_save_IFS
3363 test -z "$as_dir" && as_dir=.
3364 for ac_exec_ext in '' $ac_executable_extensions; do
3365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3366 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3367 ac_prog_rejected=yes
3368 continue
3369 fi
3370 ac_cv_prog_CC="cc"
3371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3372 break 2
3373 fi
3374 done
3375 done
3376 IFS=$as_save_IFS
3377
3378 if test $ac_prog_rejected = yes; then
3379 # We found a bogon in the path, so make sure we never use it.
3380 set dummy $ac_cv_prog_CC
3381 shift
3382 if test $# != 0; then
3383 # We chose a different compiler from the bogus one.
3384 # However, it has the same basename, so the bogon will be chosen
3385 # first if we set CC to just the basename; use the full file name.
3386 shift
3387 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3388 fi
3389 fi
3390 fi
3391 fi
3392 CC=$ac_cv_prog_CC
3393 if test -n "$CC"; then
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3395 $as_echo "$CC" >&6; }
3396 else
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3398 $as_echo "no" >&6; }
3399 fi
3400
3401
3402 fi
3403 if test -z "$CC"; then
3404 if test -n "$ac_tool_prefix"; then
3405 for ac_prog in cl.exe
3406 do
3407 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3408 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3410 $as_echo_n "checking for $ac_word... " >&6; }
3411 if ${ac_cv_prog_CC+:} false; then :
3412 $as_echo_n "(cached) " >&6
3413 else
3414 if test -n "$CC"; then
3415 ac_cv_prog_CC="$CC" # Let the user override the test.
3416 else
3417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3418 for as_dir in $PATH
3419 do
3420 IFS=$as_save_IFS
3421 test -z "$as_dir" && as_dir=.
3422 for ac_exec_ext in '' $ac_executable_extensions; do
3423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3424 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3426 break 2
3427 fi
3428 done
3429 done
3430 IFS=$as_save_IFS
3431
3432 fi
3433 fi
3434 CC=$ac_cv_prog_CC
3435 if test -n "$CC"; then
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3437 $as_echo "$CC" >&6; }
3438 else
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3440 $as_echo "no" >&6; }
3441 fi
3442
3443
3444 test -n "$CC" && break
3445 done
3446 fi
3447 if test -z "$CC"; then
3448 ac_ct_CC=$CC
3449 for ac_prog in cl.exe
3450 do
3451 # Extract the first word of "$ac_prog", so it can be a program name with args.
3452 set dummy $ac_prog; ac_word=$2
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3454 $as_echo_n "checking for $ac_word... " >&6; }
3455 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3456 $as_echo_n "(cached) " >&6
3457 else
3458 if test -n "$ac_ct_CC"; then
3459 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3460 else
3461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3462 for as_dir in $PATH
3463 do
3464 IFS=$as_save_IFS
3465 test -z "$as_dir" && as_dir=.
3466 for ac_exec_ext in '' $ac_executable_extensions; do
3467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3468 ac_cv_prog_ac_ct_CC="$ac_prog"
3469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3470 break 2
3471 fi
3472 done
3473 done
3474 IFS=$as_save_IFS
3475
3476 fi
3477 fi
3478 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3479 if test -n "$ac_ct_CC"; then
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3481 $as_echo "$ac_ct_CC" >&6; }
3482 else
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3484 $as_echo "no" >&6; }
3485 fi
3486
3487
3488 test -n "$ac_ct_CC" && break
3489 done
3490
3491 if test "x$ac_ct_CC" = x; then
3492 CC=""
3493 else
3494 case $cross_compiling:$ac_tool_warned in
3495 yes:)
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3497 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3498 ac_tool_warned=yes ;;
3499 esac
3500 CC=$ac_ct_CC
3501 fi
3502 fi
3503
3504 fi
3505
3506
3507 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3508 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3509 as_fn_error $? "no acceptable C compiler found in \$PATH
3510 See \`config.log' for more details" "$LINENO" 5; }
3511
3512 # Provide some information about the compiler.
3513 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3514 set X $ac_compile
3515 ac_compiler=$2
3516 for ac_option in --version -v -V -qversion; do
3517 { { ac_try="$ac_compiler $ac_option >&5"
3518 case "(($ac_try" in
3519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3520 *) ac_try_echo=$ac_try;;
3521 esac
3522 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3523 $as_echo "$ac_try_echo"; } >&5
3524 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3525 ac_status=$?
3526 if test -s conftest.err; then
3527 sed '10a\
3528 ... rest of stderr output deleted ...
3529 10q' conftest.err >conftest.er1
3530 cat conftest.er1 >&5
3531 fi
3532 rm -f conftest.er1 conftest.err
3533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3534 test $ac_status = 0; }
3535 done
3536
3537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3538 /* end confdefs.h. */
3539
3540 int
3541 main ()
3542 {
3543
3544 ;
3545 return 0;
3546 }
3547 _ACEOF
3548 ac_clean_files_save=$ac_clean_files
3549 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3550 # Try to create an executable without -o first, disregard a.out.
3551 # It will help us diagnose broken compilers, and finding out an intuition
3552 # of exeext.
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3554 $as_echo_n "checking whether the C compiler works... " >&6; }
3555 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3556
3557 # The possible output files:
3558 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3559
3560 ac_rmfiles=
3561 for ac_file in $ac_files
3562 do
3563 case $ac_file in
3564 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3565 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3566 esac
3567 done
3568 rm -f $ac_rmfiles
3569
3570 if { { ac_try="$ac_link_default"
3571 case "(($ac_try" in
3572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3573 *) ac_try_echo=$ac_try;;
3574 esac
3575 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3576 $as_echo "$ac_try_echo"; } >&5
3577 (eval "$ac_link_default") 2>&5
3578 ac_status=$?
3579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3580 test $ac_status = 0; }; then :
3581 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3582 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3583 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3584 # so that the user can short-circuit this test for compilers unknown to
3585 # Autoconf.
3586 for ac_file in $ac_files ''
3587 do
3588 test -f "$ac_file" || continue
3589 case $ac_file in
3590 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3591 ;;
3592 [ab].out )
3593 # We found the default executable, but exeext='' is most
3594 # certainly right.
3595 break;;
3596 *.* )
3597 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3598 then :; else
3599 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3600 fi
3601 # We set ac_cv_exeext here because the later test for it is not
3602 # safe: cross compilers may not add the suffix if given an `-o'
3603 # argument, so we may need to know it at that point already.
3604 # Even if this section looks crufty: it has the advantage of
3605 # actually working.
3606 break;;
3607 * )
3608 break;;
3609 esac
3610 done
3611 test "$ac_cv_exeext" = no && ac_cv_exeext=
3612
3613 else
3614 ac_file=''
3615 fi
3616 if test -z "$ac_file"; then :
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3618 $as_echo "no" >&6; }
3619 $as_echo "$as_me: failed program was:" >&5
3620 sed 's/^/| /' conftest.$ac_ext >&5
3621
3622 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3623 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3624 as_fn_error 77 "C compiler cannot create executables
3625 See \`config.log' for more details" "$LINENO" 5; }
3626 else
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3628 $as_echo "yes" >&6; }
3629 fi
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3631 $as_echo_n "checking for C compiler default output file name... " >&6; }
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3633 $as_echo "$ac_file" >&6; }
3634 ac_exeext=$ac_cv_exeext
3635
3636 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3637 ac_clean_files=$ac_clean_files_save
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3639 $as_echo_n "checking for suffix of executables... " >&6; }
3640 if { { ac_try="$ac_link"
3641 case "(($ac_try" in
3642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3643 *) ac_try_echo=$ac_try;;
3644 esac
3645 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3646 $as_echo "$ac_try_echo"; } >&5
3647 (eval "$ac_link") 2>&5
3648 ac_status=$?
3649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3650 test $ac_status = 0; }; then :
3651 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3652 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3653 # work properly (i.e., refer to `conftest.exe'), while it won't with
3654 # `rm'.
3655 for ac_file in conftest.exe conftest conftest.*; do
3656 test -f "$ac_file" || continue
3657 case $ac_file in
3658 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3659 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3660 break;;
3661 * ) break;;
3662 esac
3663 done
3664 else
3665 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3666 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3667 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3668 See \`config.log' for more details" "$LINENO" 5; }
3669 fi
3670 rm -f conftest conftest$ac_cv_exeext
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3672 $as_echo "$ac_cv_exeext" >&6; }
3673
3674 rm -f conftest.$ac_ext
3675 EXEEXT=$ac_cv_exeext
3676 ac_exeext=$EXEEXT
3677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3678 /* end confdefs.h. */
3679 #include <stdio.h>
3680 int
3681 main ()
3682 {
3683 FILE *f = fopen ("conftest.out", "w");
3684 return ferror (f) || fclose (f) != 0;
3685
3686 ;
3687 return 0;
3688 }
3689 _ACEOF
3690 ac_clean_files="$ac_clean_files conftest.out"
3691 # Check that the compiler produces executables we can run. If not, either
3692 # the compiler is broken, or we cross compile.
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3694 $as_echo_n "checking whether we are cross compiling... " >&6; }
3695 if test "$cross_compiling" != yes; then
3696 { { ac_try="$ac_link"
3697 case "(($ac_try" in
3698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3699 *) ac_try_echo=$ac_try;;
3700 esac
3701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3702 $as_echo "$ac_try_echo"; } >&5
3703 (eval "$ac_link") 2>&5
3704 ac_status=$?
3705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3706 test $ac_status = 0; }
3707 if { ac_try='./conftest$ac_cv_exeext'
3708 { { case "(($ac_try" in
3709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3710 *) ac_try_echo=$ac_try;;
3711 esac
3712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3713 $as_echo "$ac_try_echo"; } >&5
3714 (eval "$ac_try") 2>&5
3715 ac_status=$?
3716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3717 test $ac_status = 0; }; }; then
3718 cross_compiling=no
3719 else
3720 if test "$cross_compiling" = maybe; then
3721 cross_compiling=yes
3722 else
3723 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3724 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3725 as_fn_error $? "cannot run C compiled programs.
3726 If you meant to cross compile, use \`--host'.
3727 See \`config.log' for more details" "$LINENO" 5; }
3728 fi
3729 fi
3730 fi
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3732 $as_echo "$cross_compiling" >&6; }
3733
3734 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3735 ac_clean_files=$ac_clean_files_save
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3737 $as_echo_n "checking for suffix of object files... " >&6; }
3738 if ${ac_cv_objext+:} false; then :
3739 $as_echo_n "(cached) " >&6
3740 else
3741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3742 /* end confdefs.h. */
3743
3744 int
3745 main ()
3746 {
3747
3748 ;
3749 return 0;
3750 }
3751 _ACEOF
3752 rm -f conftest.o conftest.obj
3753 if { { ac_try="$ac_compile"
3754 case "(($ac_try" in
3755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3756 *) ac_try_echo=$ac_try;;
3757 esac
3758 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3759 $as_echo "$ac_try_echo"; } >&5
3760 (eval "$ac_compile") 2>&5
3761 ac_status=$?
3762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3763 test $ac_status = 0; }; then :
3764 for ac_file in conftest.o conftest.obj conftest.*; do
3765 test -f "$ac_file" || continue;
3766 case $ac_file in
3767 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3768 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3769 break;;
3770 esac
3771 done
3772 else
3773 $as_echo "$as_me: failed program was:" >&5
3774 sed 's/^/| /' conftest.$ac_ext >&5
3775
3776 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3777 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3778 as_fn_error $? "cannot compute suffix of object files: cannot compile
3779 See \`config.log' for more details" "$LINENO" 5; }
3780 fi
3781 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3782 fi
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3784 $as_echo "$ac_cv_objext" >&6; }
3785 OBJEXT=$ac_cv_objext
3786 ac_objext=$OBJEXT
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3788 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3789 if ${ac_cv_c_compiler_gnu+:} false; then :
3790 $as_echo_n "(cached) " >&6
3791 else
3792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3793 /* end confdefs.h. */
3794
3795 int
3796 main ()
3797 {
3798 #ifndef __GNUC__
3799 choke me
3800 #endif
3801
3802 ;
3803 return 0;
3804 }
3805 _ACEOF
3806 if ac_fn_c_try_compile "$LINENO"; then :
3807 ac_compiler_gnu=yes
3808 else
3809 ac_compiler_gnu=no
3810 fi
3811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3812 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3813
3814 fi
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3816 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3817 if test $ac_compiler_gnu = yes; then
3818 GCC=yes
3819 else
3820 GCC=
3821 fi
3822 ac_test_CFLAGS=${CFLAGS+set}
3823 ac_save_CFLAGS=$CFLAGS
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3825 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3826 if ${ac_cv_prog_cc_g+:} false; then :
3827 $as_echo_n "(cached) " >&6
3828 else
3829 ac_save_c_werror_flag=$ac_c_werror_flag
3830 ac_c_werror_flag=yes
3831 ac_cv_prog_cc_g=no
3832 CFLAGS="-g"
3833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3834 /* end confdefs.h. */
3835
3836 int
3837 main ()
3838 {
3839
3840 ;
3841 return 0;
3842 }
3843 _ACEOF
3844 if ac_fn_c_try_compile "$LINENO"; then :
3845 ac_cv_prog_cc_g=yes
3846 else
3847 CFLAGS=""
3848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3849 /* end confdefs.h. */
3850
3851 int
3852 main ()
3853 {
3854
3855 ;
3856 return 0;
3857 }
3858 _ACEOF
3859 if ac_fn_c_try_compile "$LINENO"; then :
3860
3861 else
3862 ac_c_werror_flag=$ac_save_c_werror_flag
3863 CFLAGS="-g"
3864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3865 /* end confdefs.h. */
3866
3867 int
3868 main ()
3869 {
3870
3871 ;
3872 return 0;
3873 }
3874 _ACEOF
3875 if ac_fn_c_try_compile "$LINENO"; then :
3876 ac_cv_prog_cc_g=yes
3877 fi
3878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3879 fi
3880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3881 fi
3882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3883 ac_c_werror_flag=$ac_save_c_werror_flag
3884 fi
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3886 $as_echo "$ac_cv_prog_cc_g" >&6; }
3887 if test "$ac_test_CFLAGS" = set; then
3888 CFLAGS=$ac_save_CFLAGS
3889 elif test $ac_cv_prog_cc_g = yes; then
3890 if test "$GCC" = yes; then
3891 CFLAGS="-g -O2"
3892 else
3893 CFLAGS="-g"
3894 fi
3895 else
3896 if test "$GCC" = yes; then
3897 CFLAGS="-O2"
3898 else
3899 CFLAGS=
3900 fi
3901 fi
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3903 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3904 if ${ac_cv_prog_cc_c89+:} false; then :
3905 $as_echo_n "(cached) " >&6
3906 else
3907 ac_cv_prog_cc_c89=no
3908 ac_save_CC=$CC
3909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3910 /* end confdefs.h. */
3911 #include <stdarg.h>
3912 #include <stdio.h>
3913 struct stat;
3914 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3915 struct buf { int x; };
3916 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3917 static char *e (p, i)
3918 char **p;
3919 int i;
3920 {
3921 return p[i];
3922 }
3923 static char *f (char * (*g) (char **, int), char **p, ...)
3924 {
3925 char *s;
3926 va_list v;
3927 va_start (v,p);
3928 s = g (p, va_arg (v,int));
3929 va_end (v);
3930 return s;
3931 }
3932
3933 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3934 function prototypes and stuff, but not '\xHH' hex character constants.
3935 These don't provoke an error unfortunately, instead are silently treated
3936 as 'x'. The following induces an error, until -std is added to get
3937 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3938 array size at least. It's necessary to write '\x00'==0 to get something
3939 that's true only with -std. */
3940 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3941
3942 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3943 inside strings and character constants. */
3944 #define FOO(x) 'x'
3945 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3946
3947 int test (int i, double x);
3948 struct s1 {int (*f) (int a);};
3949 struct s2 {int (*f) (double a);};
3950 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3951 int argc;
3952 char **argv;
3953 int
3954 main ()
3955 {
3956 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3957 ;
3958 return 0;
3959 }
3960 _ACEOF
3961 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3962 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3963 do
3964 CC="$ac_save_CC $ac_arg"
3965 if ac_fn_c_try_compile "$LINENO"; then :
3966 ac_cv_prog_cc_c89=$ac_arg
3967 fi
3968 rm -f core conftest.err conftest.$ac_objext
3969 test "x$ac_cv_prog_cc_c89" != "xno" && break
3970 done
3971 rm -f conftest.$ac_ext
3972 CC=$ac_save_CC
3973
3974 fi
3975 # AC_CACHE_VAL
3976 case "x$ac_cv_prog_cc_c89" in
3977 x)
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3979 $as_echo "none needed" >&6; } ;;
3980 xno)
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3982 $as_echo "unsupported" >&6; } ;;
3983 *)
3984 CC="$CC $ac_cv_prog_cc_c89"
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3986 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3987 esac
3988 if test "x$ac_cv_prog_cc_c89" != xno; then :
3989
3990 fi
3991
3992 ac_ext=c
3993 ac_cpp='$CPP $CPPFLAGS'
3994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3997
3998 ac_ext=c
3999 ac_cpp='$CPP $CPPFLAGS'
4000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4004 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4005 if ${am_cv_prog_cc_c_o+:} false; then :
4006 $as_echo_n "(cached) " >&6
4007 else
4008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4009 /* end confdefs.h. */
4010
4011 int
4012 main ()
4013 {
4014
4015 ;
4016 return 0;
4017 }
4018 _ACEOF
4019 # Make sure it works both with $CC and with simple cc.
4020 # Following AC_PROG_CC_C_O, we do the test twice because some
4021 # compilers refuse to overwrite an existing .o file with -o,
4022 # though they will create one.
4023 am_cv_prog_cc_c_o=yes
4024 for am_i in 1 2; do
4025 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4026 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4027 ac_status=$?
4028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029 (exit $ac_status); } \
4030 && test -f conftest2.$ac_objext; then
4031 : OK
4032 else
4033 am_cv_prog_cc_c_o=no
4034 break
4035 fi
4036 done
4037 rm -f core conftest*
4038 unset am_i
4039 fi
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4041 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4042 if test "$am_cv_prog_cc_c_o" != yes; then
4043 # Losing compiler, so override with the script.
4044 # FIXME: It is wrong to rewrite CC.
4045 # But if we don't then we get into trouble of one sort or another.
4046 # A longer-term fix would be to have automake use am__CC in this case,
4047 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4048 CC="$am_aux_dir/compile $CC"
4049 fi
4050 ac_ext=c
4051 ac_cpp='$CPP $CPPFLAGS'
4052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4055
4056
4057
4058 ac_ext=c
4059 ac_cpp='$CPP $CPPFLAGS'
4060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4064 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4065 # On Suns, sometimes $CPP names a directory.
4066 if test -n "$CPP" && test -d "$CPP"; then
4067 CPP=
4068 fi
4069 if test -z "$CPP"; then
4070 if ${ac_cv_prog_CPP+:} false; then :
4071 $as_echo_n "(cached) " >&6
4072 else
4073 # Double quotes because CPP needs to be expanded
4074 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4075 do
4076 ac_preproc_ok=false
4077 for ac_c_preproc_warn_flag in '' yes
4078 do
4079 # Use a header file that comes with gcc, so configuring glibc
4080 # with a fresh cross-compiler works.
4081 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4082 # <limits.h> exists even on freestanding compilers.
4083 # On the NeXT, cc -E runs the code through the compiler's parser,
4084 # not just through cpp. "Syntax error" is here to catch this case.
4085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4086 /* end confdefs.h. */
4087 #ifdef __STDC__
4088 # include <limits.h>
4089 #else
4090 # include <assert.h>
4091 #endif
4092 Syntax error
4093 _ACEOF
4094 if ac_fn_c_try_cpp "$LINENO"; then :
4095
4096 else
4097 # Broken: fails on valid input.
4098 continue
4099 fi
4100 rm -f conftest.err conftest.i conftest.$ac_ext
4101
4102 # OK, works on sane cases. Now check whether nonexistent headers
4103 # can be detected and how.
4104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4105 /* end confdefs.h. */
4106 #include <ac_nonexistent.h>
4107 _ACEOF
4108 if ac_fn_c_try_cpp "$LINENO"; then :
4109 # Broken: success on invalid input.
4110 continue
4111 else
4112 # Passes both tests.
4113 ac_preproc_ok=:
4114 break
4115 fi
4116 rm -f conftest.err conftest.i conftest.$ac_ext
4117
4118 done
4119 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4120 rm -f conftest.i conftest.err conftest.$ac_ext
4121 if $ac_preproc_ok; then :
4122 break
4123 fi
4124
4125 done
4126 ac_cv_prog_CPP=$CPP
4127
4128 fi
4129 CPP=$ac_cv_prog_CPP
4130 else
4131 ac_cv_prog_CPP=$CPP
4132 fi
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4134 $as_echo "$CPP" >&6; }
4135 ac_preproc_ok=false
4136 for ac_c_preproc_warn_flag in '' yes
4137 do
4138 # Use a header file that comes with gcc, so configuring glibc
4139 # with a fresh cross-compiler works.
4140 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4141 # <limits.h> exists even on freestanding compilers.
4142 # On the NeXT, cc -E runs the code through the compiler's parser,
4143 # not just through cpp. "Syntax error" is here to catch this case.
4144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4145 /* end confdefs.h. */
4146 #ifdef __STDC__
4147 # include <limits.h>
4148 #else
4149 # include <assert.h>
4150 #endif
4151 Syntax error
4152 _ACEOF
4153 if ac_fn_c_try_cpp "$LINENO"; then :
4154
4155 else
4156 # Broken: fails on valid input.
4157 continue
4158 fi
4159 rm -f conftest.err conftest.i conftest.$ac_ext
4160
4161 # OK, works on sane cases. Now check whether nonexistent headers
4162 # can be detected and how.
4163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4164 /* end confdefs.h. */
4165 #include <ac_nonexistent.h>
4166 _ACEOF
4167 if ac_fn_c_try_cpp "$LINENO"; then :
4168 # Broken: success on invalid input.
4169 continue
4170 else
4171 # Passes both tests.
4172 ac_preproc_ok=:
4173 break
4174 fi
4175 rm -f conftest.err conftest.i conftest.$ac_ext
4176
4177 done
4178 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4179 rm -f conftest.i conftest.err conftest.$ac_ext
4180 if $ac_preproc_ok; then :
4181
4182 else
4183 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4184 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4185 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4186 See \`config.log' for more details" "$LINENO" 5; }
4187 fi
4188
4189 ac_ext=c
4190 ac_cpp='$CPP $CPPFLAGS'
4191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4194
4195
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4197 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4198 if ${ac_cv_path_GREP+:} false; then :
4199 $as_echo_n "(cached) " >&6
4200 else
4201 if test -z "$GREP"; then
4202 ac_path_GREP_found=false
4203 # Loop through the user's path and test for each of PROGNAME-LIST
4204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4205 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4206 do
4207 IFS=$as_save_IFS
4208 test -z "$as_dir" && as_dir=.
4209 for ac_prog in grep ggrep; do
4210 for ac_exec_ext in '' $ac_executable_extensions; do
4211 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4212 as_fn_executable_p "$ac_path_GREP" || continue
4213 # Check for GNU ac_path_GREP and select it if it is found.
4214 # Check for GNU $ac_path_GREP
4215 case `"$ac_path_GREP" --version 2>&1` in
4216 *GNU*)
4217 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4218 *)
4219 ac_count=0
4220 $as_echo_n 0123456789 >"conftest.in"
4221 while :
4222 do
4223 cat "conftest.in" "conftest.in" >"conftest.tmp"
4224 mv "conftest.tmp" "conftest.in"
4225 cp "conftest.in" "conftest.nl"
4226 $as_echo 'GREP' >> "conftest.nl"
4227 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4228 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4229 as_fn_arith $ac_count + 1 && ac_count=$as_val
4230 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4231 # Best one so far, save it but keep looking for a better one
4232 ac_cv_path_GREP="$ac_path_GREP"
4233 ac_path_GREP_max=$ac_count
4234 fi
4235 # 10*(2^10) chars as input seems more than enough
4236 test $ac_count -gt 10 && break
4237 done
4238 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4239 esac
4240
4241 $ac_path_GREP_found && break 3
4242 done
4243 done
4244 done
4245 IFS=$as_save_IFS
4246 if test -z "$ac_cv_path_GREP"; then
4247 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4248 fi
4249 else
4250 ac_cv_path_GREP=$GREP
4251 fi
4252
4253 fi
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4255 $as_echo "$ac_cv_path_GREP" >&6; }
4256 GREP="$ac_cv_path_GREP"
4257
4258
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4260 $as_echo_n "checking for egrep... " >&6; }
4261 if ${ac_cv_path_EGREP+:} false; then :
4262 $as_echo_n "(cached) " >&6
4263 else
4264 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4265 then ac_cv_path_EGREP="$GREP -E"
4266 else
4267 if test -z "$EGREP"; then
4268 ac_path_EGREP_found=false
4269 # Loop through the user's path and test for each of PROGNAME-LIST
4270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4271 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4272 do
4273 IFS=$as_save_IFS
4274 test -z "$as_dir" && as_dir=.
4275 for ac_prog in egrep; do
4276 for ac_exec_ext in '' $ac_executable_extensions; do
4277 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4278 as_fn_executable_p "$ac_path_EGREP" || continue
4279 # Check for GNU ac_path_EGREP and select it if it is found.
4280 # Check for GNU $ac_path_EGREP
4281 case `"$ac_path_EGREP" --version 2>&1` in
4282 *GNU*)
4283 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4284 *)
4285 ac_count=0
4286 $as_echo_n 0123456789 >"conftest.in"
4287 while :
4288 do
4289 cat "conftest.in" "conftest.in" >"conftest.tmp"
4290 mv "conftest.tmp" "conftest.in"
4291 cp "conftest.in" "conftest.nl"
4292 $as_echo 'EGREP' >> "conftest.nl"
4293 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4294 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4295 as_fn_arith $ac_count + 1 && ac_count=$as_val
4296 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4297 # Best one so far, save it but keep looking for a better one
4298 ac_cv_path_EGREP="$ac_path_EGREP"
4299 ac_path_EGREP_max=$ac_count
4300 fi
4301 # 10*(2^10) chars as input seems more than enough
4302 test $ac_count -gt 10 && break
4303 done
4304 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4305 esac
4306
4307 $ac_path_EGREP_found && break 3
4308 done
4309 done
4310 done
4311 IFS=$as_save_IFS
4312 if test -z "$ac_cv_path_EGREP"; then
4313 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4314 fi
4315 else
4316 ac_cv_path_EGREP=$EGREP
4317 fi
4318
4319 fi
4320 fi
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4322 $as_echo "$ac_cv_path_EGREP" >&6; }
4323 EGREP="$ac_cv_path_EGREP"
4324
4325
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4327 $as_echo_n "checking for ANSI C header files... " >&6; }
4328 if ${ac_cv_header_stdc+:} false; then :
4329 $as_echo_n "(cached) " >&6
4330 else
4331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4332 /* end confdefs.h. */
4333 #include <stdlib.h>
4334 #include <stdarg.h>
4335 #include <string.h>
4336 #include <float.h>
4337
4338 int
4339 main ()
4340 {
4341
4342 ;
4343 return 0;
4344 }
4345 _ACEOF
4346 if ac_fn_c_try_compile "$LINENO"; then :
4347 ac_cv_header_stdc=yes
4348 else
4349 ac_cv_header_stdc=no
4350 fi
4351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4352
4353 if test $ac_cv_header_stdc = yes; then
4354 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4356 /* end confdefs.h. */
4357 #include <string.h>
4358
4359 _ACEOF
4360 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4361 $EGREP "memchr" >/dev/null 2>&1; then :
4362
4363 else
4364 ac_cv_header_stdc=no
4365 fi
4366 rm -f conftest*
4367
4368 fi
4369
4370 if test $ac_cv_header_stdc = yes; then
4371 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4373 /* end confdefs.h. */
4374 #include <stdlib.h>
4375
4376 _ACEOF
4377 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4378 $EGREP "free" >/dev/null 2>&1; then :
4379
4380 else
4381 ac_cv_header_stdc=no
4382 fi
4383 rm -f conftest*
4384
4385 fi
4386
4387 if test $ac_cv_header_stdc = yes; then
4388 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4389 if test "$cross_compiling" = yes; then :
4390 :
4391 else
4392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4393 /* end confdefs.h. */
4394 #include <ctype.h>
4395 #include <stdlib.h>
4396 #if ((' ' & 0x0FF) == 0x020)
4397 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4398 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4399 #else
4400 # define ISLOWER(c) \
4401 (('a' <= (c) && (c) <= 'i') \
4402 || ('j' <= (c) && (c) <= 'r') \
4403 || ('s' <= (c) && (c) <= 'z'))
4404 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4405 #endif
4406
4407 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4408 int
4409 main ()
4410 {
4411 int i;
4412 for (i = 0; i < 256; i++)
4413 if (XOR (islower (i), ISLOWER (i))
4414 || toupper (i) != TOUPPER (i))
4415 return 2;
4416 return 0;
4417 }
4418 _ACEOF
4419 if ac_fn_c_try_run "$LINENO"; then :
4420
4421 else
4422 ac_cv_header_stdc=no
4423 fi
4424 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4425 conftest.$ac_objext conftest.beam conftest.$ac_ext
4426 fi
4427
4428 fi
4429 fi
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4431 $as_echo "$ac_cv_header_stdc" >&6; }
4432 if test $ac_cv_header_stdc = yes; then
4433
4434 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4435
4436 fi
4437
4438 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4439 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4440 inttypes.h stdint.h unistd.h
4441 do :
4442 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4443 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4444 "
4445 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4446 cat >>confdefs.h <<_ACEOF
4447 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4448 _ACEOF
4449
4450 fi
4451
4452 done
4453
4454
4455
4456 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4457 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4458 MINIX=yes
4459 else
4460 MINIX=
4461 fi
4462
4463
4464 if test "$MINIX" = yes; then
4465
4466 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4467
4468
4469 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4470
4471
4472 $as_echo "#define _MINIX 1" >>confdefs.h
4473
4474 fi
4475
4476
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4478 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4479 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4480 $as_echo_n "(cached) " >&6
4481 else
4482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4483 /* end confdefs.h. */
4484
4485 # define __EXTENSIONS__ 1
4486 $ac_includes_default
4487 int
4488 main ()
4489 {
4490
4491 ;
4492 return 0;
4493 }
4494 _ACEOF
4495 if ac_fn_c_try_compile "$LINENO"; then :
4496 ac_cv_safe_to_define___extensions__=yes
4497 else
4498 ac_cv_safe_to_define___extensions__=no
4499 fi
4500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4501 fi
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4503 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4504 test $ac_cv_safe_to_define___extensions__ = yes &&
4505 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4506
4507 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4508
4509 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4510
4511 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4512
4513 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4514
4515
4516 #AC_MANTAINER_MODE
4517 #AC_CANONICAL_HOST
4518
4519 #missing_dir=`cd $ac_aux_dir && pwd`
4520 #AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir)
4521 #AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
4522 #AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir)
4523 #AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
4524 #AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
4525
4526
4527
4528 ac_ext=c
4529 ac_cpp='$CPP $CPPFLAGS'
4530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4533 if test -n "$ac_tool_prefix"; then
4534 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4535 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4537 $as_echo_n "checking for $ac_word... " >&6; }
4538 if ${ac_cv_prog_CC+:} false; then :
4539 $as_echo_n "(cached) " >&6
4540 else
4541 if test -n "$CC"; then
4542 ac_cv_prog_CC="$CC" # Let the user override the test.
4543 else
4544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4545 for as_dir in $PATH
4546 do
4547 IFS=$as_save_IFS
4548 test -z "$as_dir" && as_dir=.
4549 for ac_exec_ext in '' $ac_executable_extensions; do
4550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4551 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4553 break 2
4554 fi
4555 done
4556 done
4557 IFS=$as_save_IFS
4558
4559 fi
4560 fi
4561 CC=$ac_cv_prog_CC
4562 if test -n "$CC"; then
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4564 $as_echo "$CC" >&6; }
4565 else
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4567 $as_echo "no" >&6; }
4568 fi
4569
4570
4571 fi
4572 if test -z "$ac_cv_prog_CC"; then
4573 ac_ct_CC=$CC
4574 # Extract the first word of "gcc", so it can be a program name with args.
4575 set dummy gcc; ac_word=$2
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4577 $as_echo_n "checking for $ac_word... " >&6; }
4578 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4579 $as_echo_n "(cached) " >&6
4580 else
4581 if test -n "$ac_ct_CC"; then
4582 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4583 else
4584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4585 for as_dir in $PATH
4586 do
4587 IFS=$as_save_IFS
4588 test -z "$as_dir" && as_dir=.
4589 for ac_exec_ext in '' $ac_executable_extensions; do
4590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4591 ac_cv_prog_ac_ct_CC="gcc"
4592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4593 break 2
4594 fi
4595 done
4596 done
4597 IFS=$as_save_IFS
4598
4599 fi
4600 fi
4601 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4602 if test -n "$ac_ct_CC"; then
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4604 $as_echo "$ac_ct_CC" >&6; }
4605 else
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4607 $as_echo "no" >&6; }
4608 fi
4609
4610 if test "x$ac_ct_CC" = x; then
4611 CC=""
4612 else
4613 case $cross_compiling:$ac_tool_warned in
4614 yes:)
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4616 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4617 ac_tool_warned=yes ;;
4618 esac
4619 CC=$ac_ct_CC
4620 fi
4621 else
4622 CC="$ac_cv_prog_CC"
4623 fi
4624
4625 if test -z "$CC"; then
4626 if test -n "$ac_tool_prefix"; then
4627 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4628 set dummy ${ac_tool_prefix}cc; ac_word=$2
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4630 $as_echo_n "checking for $ac_word... " >&6; }
4631 if ${ac_cv_prog_CC+:} false; then :
4632 $as_echo_n "(cached) " >&6
4633 else
4634 if test -n "$CC"; then
4635 ac_cv_prog_CC="$CC" # Let the user override the test.
4636 else
4637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4638 for as_dir in $PATH
4639 do
4640 IFS=$as_save_IFS
4641 test -z "$as_dir" && as_dir=.
4642 for ac_exec_ext in '' $ac_executable_extensions; do
4643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4644 ac_cv_prog_CC="${ac_tool_prefix}cc"
4645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4646 break 2
4647 fi
4648 done
4649 done
4650 IFS=$as_save_IFS
4651
4652 fi
4653 fi
4654 CC=$ac_cv_prog_CC
4655 if test -n "$CC"; then
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4657 $as_echo "$CC" >&6; }
4658 else
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4660 $as_echo "no" >&6; }
4661 fi
4662
4663
4664 fi
4665 fi
4666 if test -z "$CC"; then
4667 # Extract the first word of "cc", so it can be a program name with args.
4668 set dummy cc; ac_word=$2
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4670 $as_echo_n "checking for $ac_word... " >&6; }
4671 if ${ac_cv_prog_CC+:} false; then :
4672 $as_echo_n "(cached) " >&6
4673 else
4674 if test -n "$CC"; then
4675 ac_cv_prog_CC="$CC" # Let the user override the test.
4676 else
4677 ac_prog_rejected=no
4678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4679 for as_dir in $PATH
4680 do
4681 IFS=$as_save_IFS
4682 test -z "$as_dir" && as_dir=.
4683 for ac_exec_ext in '' $ac_executable_extensions; do
4684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4685 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4686 ac_prog_rejected=yes
4687 continue
4688 fi
4689 ac_cv_prog_CC="cc"
4690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4691 break 2
4692 fi
4693 done
4694 done
4695 IFS=$as_save_IFS
4696
4697 if test $ac_prog_rejected = yes; then
4698 # We found a bogon in the path, so make sure we never use it.
4699 set dummy $ac_cv_prog_CC
4700 shift
4701 if test $# != 0; then
4702 # We chose a different compiler from the bogus one.
4703 # However, it has the same basename, so the bogon will be chosen
4704 # first if we set CC to just the basename; use the full file name.
4705 shift
4706 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4707 fi
4708 fi
4709 fi
4710 fi
4711 CC=$ac_cv_prog_CC
4712 if test -n "$CC"; then
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4714 $as_echo "$CC" >&6; }
4715 else
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4717 $as_echo "no" >&6; }
4718 fi
4719
4720
4721 fi
4722 if test -z "$CC"; then
4723 if test -n "$ac_tool_prefix"; then
4724 for ac_prog in cl.exe
4725 do
4726 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4727 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4729 $as_echo_n "checking for $ac_word... " >&6; }
4730 if ${ac_cv_prog_CC+:} false; then :
4731 $as_echo_n "(cached) " >&6
4732 else
4733 if test -n "$CC"; then
4734 ac_cv_prog_CC="$CC" # Let the user override the test.
4735 else
4736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4737 for as_dir in $PATH
4738 do
4739 IFS=$as_save_IFS
4740 test -z "$as_dir" && as_dir=.
4741 for ac_exec_ext in '' $ac_executable_extensions; do
4742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4743 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4745 break 2
4746 fi
4747 done
4748 done
4749 IFS=$as_save_IFS
4750
4751 fi
4752 fi
4753 CC=$ac_cv_prog_CC
4754 if test -n "$CC"; then
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4756 $as_echo "$CC" >&6; }
4757 else
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4759 $as_echo "no" >&6; }
4760 fi
4761
4762
4763 test -n "$CC" && break
4764 done
4765 fi
4766 if test -z "$CC"; then
4767 ac_ct_CC=$CC
4768 for ac_prog in cl.exe
4769 do
4770 # Extract the first word of "$ac_prog", so it can be a program name with args.
4771 set dummy $ac_prog; ac_word=$2
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4773 $as_echo_n "checking for $ac_word... " >&6; }
4774 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4775 $as_echo_n "(cached) " >&6
4776 else
4777 if test -n "$ac_ct_CC"; then
4778 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4779 else
4780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4781 for as_dir in $PATH
4782 do
4783 IFS=$as_save_IFS
4784 test -z "$as_dir" && as_dir=.
4785 for ac_exec_ext in '' $ac_executable_extensions; do
4786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4787 ac_cv_prog_ac_ct_CC="$ac_prog"
4788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4789 break 2
4790 fi
4791 done
4792 done
4793 IFS=$as_save_IFS
4794
4795 fi
4796 fi
4797 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4798 if test -n "$ac_ct_CC"; then
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4800 $as_echo "$ac_ct_CC" >&6; }
4801 else
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4803 $as_echo "no" >&6; }
4804 fi
4805
4806
4807 test -n "$ac_ct_CC" && break
4808 done
4809
4810 if test "x$ac_ct_CC" = x; then
4811 CC=""
4812 else
4813 case $cross_compiling:$ac_tool_warned in
4814 yes:)
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4816 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4817 ac_tool_warned=yes ;;
4818 esac
4819 CC=$ac_ct_CC
4820 fi
4821 fi
4822
4823 fi
4824
4825
4826 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4827 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4828 as_fn_error $? "no acceptable C compiler found in \$PATH
4829 See \`config.log' for more details" "$LINENO" 5; }
4830
4831 # Provide some information about the compiler.
4832 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4833 set X $ac_compile
4834 ac_compiler=$2
4835 for ac_option in --version -v -V -qversion; do
4836 { { ac_try="$ac_compiler $ac_option >&5"
4837 case "(($ac_try" in
4838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4839 *) ac_try_echo=$ac_try;;
4840 esac
4841 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4842 $as_echo "$ac_try_echo"; } >&5
4843 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4844 ac_status=$?
4845 if test -s conftest.err; then
4846 sed '10a\
4847 ... rest of stderr output deleted ...
4848 10q' conftest.err >conftest.er1
4849 cat conftest.er1 >&5
4850 fi
4851 rm -f conftest.er1 conftest.err
4852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4853 test $ac_status = 0; }
4854 done
4855
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4857 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4858 if ${ac_cv_c_compiler_gnu+:} false; then :
4859 $as_echo_n "(cached) " >&6
4860 else
4861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4862 /* end confdefs.h. */
4863
4864 int
4865 main ()
4866 {
4867 #ifndef __GNUC__
4868 choke me
4869 #endif
4870
4871 ;
4872 return 0;
4873 }
4874 _ACEOF
4875 if ac_fn_c_try_compile "$LINENO"; then :
4876 ac_compiler_gnu=yes
4877 else
4878 ac_compiler_gnu=no
4879 fi
4880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4881 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4882
4883 fi
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4885 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4886 if test $ac_compiler_gnu = yes; then
4887 GCC=yes
4888 else
4889 GCC=
4890 fi
4891 ac_test_CFLAGS=${CFLAGS+set}
4892 ac_save_CFLAGS=$CFLAGS
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4894 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4895 if ${ac_cv_prog_cc_g+:} false; then :
4896 $as_echo_n "(cached) " >&6
4897 else
4898 ac_save_c_werror_flag=$ac_c_werror_flag
4899 ac_c_werror_flag=yes
4900 ac_cv_prog_cc_g=no
4901 CFLAGS="-g"
4902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4903 /* end confdefs.h. */
4904
4905 int
4906 main ()
4907 {
4908
4909 ;
4910 return 0;
4911 }
4912 _ACEOF
4913 if ac_fn_c_try_compile "$LINENO"; then :
4914 ac_cv_prog_cc_g=yes
4915 else
4916 CFLAGS=""
4917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4918 /* end confdefs.h. */
4919
4920 int
4921 main ()
4922 {
4923
4924 ;
4925 return 0;
4926 }
4927 _ACEOF
4928 if ac_fn_c_try_compile "$LINENO"; then :
4929
4930 else
4931 ac_c_werror_flag=$ac_save_c_werror_flag
4932 CFLAGS="-g"
4933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4934 /* end confdefs.h. */
4935
4936 int
4937 main ()
4938 {
4939
4940 ;
4941 return 0;
4942 }
4943 _ACEOF
4944 if ac_fn_c_try_compile "$LINENO"; then :
4945 ac_cv_prog_cc_g=yes
4946 fi
4947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4948 fi
4949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4950 fi
4951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4952 ac_c_werror_flag=$ac_save_c_werror_flag
4953 fi
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4955 $as_echo "$ac_cv_prog_cc_g" >&6; }
4956 if test "$ac_test_CFLAGS" = set; then
4957 CFLAGS=$ac_save_CFLAGS
4958 elif test $ac_cv_prog_cc_g = yes; then
4959 if test "$GCC" = yes; then
4960 CFLAGS="-g -O2"
4961 else
4962 CFLAGS="-g"
4963 fi
4964 else
4965 if test "$GCC" = yes; then
4966 CFLAGS="-O2"
4967 else
4968 CFLAGS=
4969 fi
4970 fi
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4972 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4973 if ${ac_cv_prog_cc_c89+:} false; then :
4974 $as_echo_n "(cached) " >&6
4975 else
4976 ac_cv_prog_cc_c89=no
4977 ac_save_CC=$CC
4978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4979 /* end confdefs.h. */
4980 #include <stdarg.h>
4981 #include <stdio.h>
4982 struct stat;
4983 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4984 struct buf { int x; };
4985 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4986 static char *e (p, i)
4987 char **p;
4988 int i;
4989 {
4990 return p[i];
4991 }
4992 static char *f (char * (*g) (char **, int), char **p, ...)
4993 {
4994 char *s;
4995 va_list v;
4996 va_start (v,p);
4997 s = g (p, va_arg (v,int));
4998 va_end (v);
4999 return s;
5000 }
5001
5002 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5003 function prototypes and stuff, but not '\xHH' hex character constants.
5004 These don't provoke an error unfortunately, instead are silently treated
5005 as 'x'. The following induces an error, until -std is added to get
5006 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5007 array size at least. It's necessary to write '\x00'==0 to get something
5008 that's true only with -std. */
5009 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5010
5011 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5012 inside strings and character constants. */
5013 #define FOO(x) 'x'
5014 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5015
5016 int test (int i, double x);
5017 struct s1 {int (*f) (int a);};
5018 struct s2 {int (*f) (double a);};
5019 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5020 int argc;
5021 char **argv;
5022 int
5023 main ()
5024 {
5025 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5026 ;
5027 return 0;
5028 }
5029 _ACEOF
5030 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5031 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5032 do
5033 CC="$ac_save_CC $ac_arg"
5034 if ac_fn_c_try_compile "$LINENO"; then :
5035 ac_cv_prog_cc_c89=$ac_arg
5036 fi
5037 rm -f core conftest.err conftest.$ac_objext
5038 test "x$ac_cv_prog_cc_c89" != "xno" && break
5039 done
5040 rm -f conftest.$ac_ext
5041 CC=$ac_save_CC
5042
5043 fi
5044 # AC_CACHE_VAL
5045 case "x$ac_cv_prog_cc_c89" in
5046 x)
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5048 $as_echo "none needed" >&6; } ;;
5049 xno)
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5051 $as_echo "unsupported" >&6; } ;;
5052 *)
5053 CC="$CC $ac_cv_prog_cc_c89"
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5055 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5056 esac
5057 if test "x$ac_cv_prog_cc_c89" != xno; then :
5058
5059 fi
5060
5061 ac_ext=c
5062 ac_cpp='$CPP $CPPFLAGS'
5063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5066
5067 ac_ext=c
5068 ac_cpp='$CPP $CPPFLAGS'
5069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5073 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5074 if ${am_cv_prog_cc_c_o+:} false; then :
5075 $as_echo_n "(cached) " >&6
5076 else
5077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5078 /* end confdefs.h. */
5079
5080 int
5081 main ()
5082 {
5083
5084 ;
5085 return 0;
5086 }
5087 _ACEOF
5088 # Make sure it works both with $CC and with simple cc.
5089 # Following AC_PROG_CC_C_O, we do the test twice because some
5090 # compilers refuse to overwrite an existing .o file with -o,
5091 # though they will create one.
5092 am_cv_prog_cc_c_o=yes
5093 for am_i in 1 2; do
5094 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5095 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5096 ac_status=$?
5097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098 (exit $ac_status); } \
5099 && test -f conftest2.$ac_objext; then
5100 : OK
5101 else
5102 am_cv_prog_cc_c_o=no
5103 break
5104 fi
5105 done
5106 rm -f core conftest*
5107 unset am_i
5108 fi
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5110 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5111 if test "$am_cv_prog_cc_c_o" != yes; then
5112 # Losing compiler, so override with the script.
5113 # FIXME: It is wrong to rewrite CC.
5114 # But if we don't then we get into trouble of one sort or another.
5115 # A longer-term fix would be to have automake use am__CC in this case,
5116 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5117 CC="$am_aux_dir/compile $CC"
5118 fi
5119 ac_ext=c
5120 ac_cpp='$CPP $CPPFLAGS'
5121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5124
5125
5126 ac_ext=c
5127 ac_cpp='$CPP $CPPFLAGS'
5128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5132 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5133 # On Suns, sometimes $CPP names a directory.
5134 if test -n "$CPP" && test -d "$CPP"; then
5135 CPP=
5136 fi
5137 if test -z "$CPP"; then
5138 if ${ac_cv_prog_CPP+:} false; then :
5139 $as_echo_n "(cached) " >&6
5140 else
5141 # Double quotes because CPP needs to be expanded
5142 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5143 do
5144 ac_preproc_ok=false
5145 for ac_c_preproc_warn_flag in '' yes
5146 do
5147 # Use a header file that comes with gcc, so configuring glibc
5148 # with a fresh cross-compiler works.
5149 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5150 # <limits.h> exists even on freestanding compilers.
5151 # On the NeXT, cc -E runs the code through the compiler's parser,
5152 # not just through cpp. "Syntax error" is here to catch this case.
5153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5154 /* end confdefs.h. */
5155 #ifdef __STDC__
5156 # include <limits.h>
5157 #else
5158 # include <assert.h>
5159 #endif
5160 Syntax error
5161 _ACEOF
5162 if ac_fn_c_try_cpp "$LINENO"; then :
5163
5164 else
5165 # Broken: fails on valid input.
5166 continue
5167 fi
5168 rm -f conftest.err conftest.i conftest.$ac_ext
5169
5170 # OK, works on sane cases. Now check whether nonexistent headers
5171 # can be detected and how.
5172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5173 /* end confdefs.h. */
5174 #include <ac_nonexistent.h>
5175 _ACEOF
5176 if ac_fn_c_try_cpp "$LINENO"; then :
5177 # Broken: success on invalid input.
5178 continue
5179 else
5180 # Passes both tests.
5181 ac_preproc_ok=:
5182 break
5183 fi
5184 rm -f conftest.err conftest.i conftest.$ac_ext
5185
5186 done
5187 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5188 rm -f conftest.i conftest.err conftest.$ac_ext
5189 if $ac_preproc_ok; then :
5190 break
5191 fi
5192
5193 done
5194 ac_cv_prog_CPP=$CPP
5195
5196 fi
5197 CPP=$ac_cv_prog_CPP
5198 else
5199 ac_cv_prog_CPP=$CPP
5200 fi
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5202 $as_echo "$CPP" >&6; }
5203 ac_preproc_ok=false
5204 for ac_c_preproc_warn_flag in '' yes
5205 do
5206 # Use a header file that comes with gcc, so configuring glibc
5207 # with a fresh cross-compiler works.
5208 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5209 # <limits.h> exists even on freestanding compilers.
5210 # On the NeXT, cc -E runs the code through the compiler's parser,
5211 # not just through cpp. "Syntax error" is here to catch this case.
5212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5213 /* end confdefs.h. */
5214 #ifdef __STDC__
5215 # include <limits.h>
5216 #else
5217 # include <assert.h>
5218 #endif
5219 Syntax error
5220 _ACEOF
5221 if ac_fn_c_try_cpp "$LINENO"; then :
5222
5223 else
5224 # Broken: fails on valid input.
5225 continue
5226 fi
5227 rm -f conftest.err conftest.i conftest.$ac_ext
5228
5229 # OK, works on sane cases. Now check whether nonexistent headers
5230 # can be detected and how.
5231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5232 /* end confdefs.h. */
5233 #include <ac_nonexistent.h>
5234 _ACEOF
5235 if ac_fn_c_try_cpp "$LINENO"; then :
5236 # Broken: success on invalid input.
5237 continue
5238 else
5239 # Passes both tests.
5240 ac_preproc_ok=:
5241 break
5242 fi
5243 rm -f conftest.err conftest.i conftest.$ac_ext
5244
5245 done
5246 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5247 rm -f conftest.i conftest.err conftest.$ac_ext
5248 if $ac_preproc_ok; then :
5249
5250 else
5251 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5252 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5253 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5254 See \`config.log' for more details" "$LINENO" 5; }
5255 fi
5256
5257 ac_ext=c
5258 ac_cpp='$CPP $CPPFLAGS'
5259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5262
5263 for ac_prog in 'bison -y' byacc
5264 do
5265 # Extract the first word of "$ac_prog", so it can be a program name with args.
5266 set dummy $ac_prog; ac_word=$2
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5268 $as_echo_n "checking for $ac_word... " >&6; }
5269 if ${ac_cv_prog_YACC+:} false; then :
5270 $as_echo_n "(cached) " >&6
5271 else
5272 if test -n "$YACC"; then
5273 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5274 else
5275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5276 for as_dir in $PATH
5277 do
5278 IFS=$as_save_IFS
5279 test -z "$as_dir" && as_dir=.
5280 for ac_exec_ext in '' $ac_executable_extensions; do
5281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5282 ac_cv_prog_YACC="$ac_prog"
5283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5284 break 2
5285 fi
5286 done
5287 done
5288 IFS=$as_save_IFS
5289
5290 fi
5291 fi
5292 YACC=$ac_cv_prog_YACC
5293 if test -n "$YACC"; then
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5295 $as_echo "$YACC" >&6; }
5296 else
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5298 $as_echo "no" >&6; }
5299 fi
5300
5301
5302 test -n "$YACC" && break
5303 done
5304 test -n "$YACC" || YACC="yacc"
5305
5306 for ac_prog in flex lex
5307 do
5308 # Extract the first word of "$ac_prog", so it can be a program name with args.
5309 set dummy $ac_prog; ac_word=$2
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5311 $as_echo_n "checking for $ac_word... " >&6; }
5312 if ${ac_cv_prog_LEX+:} false; then :
5313 $as_echo_n "(cached) " >&6
5314 else
5315 if test -n "$LEX"; then
5316 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5317 else
5318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5319 for as_dir in $PATH
5320 do
5321 IFS=$as_save_IFS
5322 test -z "$as_dir" && as_dir=.
5323 for ac_exec_ext in '' $ac_executable_extensions; do
5324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5325 ac_cv_prog_LEX="$ac_prog"
5326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5327 break 2
5328 fi
5329 done
5330 done
5331 IFS=$as_save_IFS
5332
5333 fi
5334 fi
5335 LEX=$ac_cv_prog_LEX
5336 if test -n "$LEX"; then
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
5338 $as_echo "$LEX" >&6; }
5339 else
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5341 $as_echo "no" >&6; }
5342 fi
5343
5344
5345 test -n "$LEX" && break
5346 done
5347 test -n "$LEX" || LEX=":"
5348
5349 if test "x$LEX" != "x:"; then
5350 cat >conftest.l <<_ACEOF
5351 %%
5352 a { ECHO; }
5353 b { REJECT; }
5354 c { yymore (); }
5355 d { yyless (1); }
5356 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
5357 yyless ((input () != 0)); }
5358 f { unput (yytext[0]); }
5359 . { BEGIN INITIAL; }
5360 %%
5361 #ifdef YYTEXT_POINTER
5362 extern char *yytext;
5363 #endif
5364 int
5365 main (void)
5366 {
5367 return ! yylex () + ! yywrap ();
5368 }
5369 _ACEOF
5370 { { ac_try="$LEX conftest.l"
5371 case "(($ac_try" in
5372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5373 *) ac_try_echo=$ac_try;;
5374 esac
5375 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5376 $as_echo "$ac_try_echo"; } >&5
5377 (eval "$LEX conftest.l") 2>&5
5378 ac_status=$?
5379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5380 test $ac_status = 0; }
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
5382 $as_echo_n "checking lex output file root... " >&6; }
5383 if ${ac_cv_prog_lex_root+:} false; then :
5384 $as_echo_n "(cached) " >&6
5385 else
5386
5387 if test -f lex.yy.c; then
5388 ac_cv_prog_lex_root=lex.yy
5389 elif test -f lexyy.c; then
5390 ac_cv_prog_lex_root=lexyy
5391 else
5392 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
5393 fi
5394 fi
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
5396 $as_echo "$ac_cv_prog_lex_root" >&6; }
5397 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5398
5399 if test -z "${LEXLIB+set}"; then
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
5401 $as_echo_n "checking lex library... " >&6; }
5402 if ${ac_cv_lib_lex+:} false; then :
5403 $as_echo_n "(cached) " >&6
5404 else
5405
5406 ac_save_LIBS=$LIBS
5407 ac_cv_lib_lex='none needed'
5408 for ac_lib in '' -lfl -ll; do
5409 LIBS="$ac_lib $ac_save_LIBS"
5410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5411 /* end confdefs.h. */
5412 `cat $LEX_OUTPUT_ROOT.c`
5413 _ACEOF
5414 if ac_fn_c_try_link "$LINENO"; then :
5415 ac_cv_lib_lex=$ac_lib
5416 fi
5417 rm -f core conftest.err conftest.$ac_objext \
5418 conftest$ac_exeext conftest.$ac_ext
5419 test "$ac_cv_lib_lex" != 'none needed' && break
5420 done
5421 LIBS=$ac_save_LIBS
5422
5423 fi
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
5425 $as_echo "$ac_cv_lib_lex" >&6; }
5426 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
5427 fi
5428
5429
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
5431 $as_echo_n "checking whether yytext is a pointer... " >&6; }
5432 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
5433 $as_echo_n "(cached) " >&6
5434 else
5435 # POSIX says lex can declare yytext either as a pointer or an array; the
5436 # default is implementation-dependent. Figure out which it is, since
5437 # not all implementations provide the %pointer and %array declarations.
5438 ac_cv_prog_lex_yytext_pointer=no
5439 ac_save_LIBS=$LIBS
5440 LIBS="$LEXLIB $ac_save_LIBS"
5441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5442 /* end confdefs.h. */
5443
5444 #define YYTEXT_POINTER 1
5445 `cat $LEX_OUTPUT_ROOT.c`
5446 _ACEOF
5447 if ac_fn_c_try_link "$LINENO"; then :
5448 ac_cv_prog_lex_yytext_pointer=yes
5449 fi
5450 rm -f core conftest.err conftest.$ac_objext \
5451 conftest$ac_exeext conftest.$ac_ext
5452 LIBS=$ac_save_LIBS
5453
5454 fi
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
5456 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
5457 if test $ac_cv_prog_lex_yytext_pointer = yes; then
5458
5459 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
5460
5461 fi
5462 rm -f conftest.l $LEX_OUTPUT_ROOT.c
5463
5464 fi
5465
5466 # Find a good install program. We prefer a C program (faster),
5467 # so one script is as good as another. But avoid the broken or
5468 # incompatible versions:
5469 # SysV /etc/install, /usr/sbin/install
5470 # SunOS /usr/etc/install
5471 # IRIX /sbin/install
5472 # AIX /bin/install
5473 # AmigaOS /C/install, which installs bootblocks on floppy discs
5474 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5475 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5476 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5477 # OS/2's system install, which has a completely different semantic
5478 # ./install, which can be erroneously created by make from ./install.sh.
5479 # Reject install programs that cannot install multiple files.
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5481 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5482 if test -z "$INSTALL"; then
5483 if ${ac_cv_path_install+:} false; then :
5484 $as_echo_n "(cached) " >&6
5485 else
5486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5487 for as_dir in $PATH
5488 do
5489 IFS=$as_save_IFS
5490 test -z "$as_dir" && as_dir=.
5491 # Account for people who put trailing slashes in PATH elements.
5492 case $as_dir/ in #((
5493 ./ | .// | /[cC]/* | \
5494 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5495 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5496 /usr/ucb/* ) ;;
5497 *)
5498 # OSF1 and SCO ODT 3.0 have their own names for install.
5499 # Don't use installbsd from OSF since it installs stuff as root
5500 # by default.
5501 for ac_prog in ginstall scoinst install; do
5502 for ac_exec_ext in '' $ac_executable_extensions; do
5503 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5504 if test $ac_prog = install &&
5505 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5506 # AIX install. It has an incompatible calling convention.
5507 :
5508 elif test $ac_prog = install &&
5509 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5510 # program-specific install script used by HP pwplus--don't use.
5511 :
5512 else
5513 rm -rf conftest.one conftest.two conftest.dir
5514 echo one > conftest.one
5515 echo two > conftest.two
5516 mkdir conftest.dir
5517 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5518 test -s conftest.one && test -s conftest.two &&
5519 test -s conftest.dir/conftest.one &&
5520 test -s conftest.dir/conftest.two
5521 then
5522 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5523 break 3
5524 fi
5525 fi
5526 fi
5527 done
5528 done
5529 ;;
5530 esac
5531
5532 done
5533 IFS=$as_save_IFS
5534
5535 rm -rf conftest.one conftest.two conftest.dir
5536
5537 fi
5538 if test "${ac_cv_path_install+set}" = set; then
5539 INSTALL=$ac_cv_path_install
5540 else
5541 # As a last resort, use the slow shell script. Don't cache a
5542 # value for INSTALL within a source directory, because that will
5543 # break other packages using the cache if that directory is
5544 # removed, or if the value is a relative name.
5545 INSTALL=$ac_install_sh
5546 fi
5547 fi
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5549 $as_echo "$INSTALL" >&6; }
5550
5551 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5552 # It thinks the first close brace ends the variable substitution.
5553 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5554
5555 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5556
5557 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5558
5559 if test -n "$ac_tool_prefix"; then
5560 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5561 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5563 $as_echo_n "checking for $ac_word... " >&6; }
5564 if ${ac_cv_prog_RANLIB+:} false; then :
5565 $as_echo_n "(cached) " >&6
5566 else
5567 if test -n "$RANLIB"; then
5568 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5569 else
5570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5571 for as_dir in $PATH
5572 do
5573 IFS=$as_save_IFS
5574 test -z "$as_dir" && as_dir=.
5575 for ac_exec_ext in '' $ac_executable_extensions; do
5576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5577 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5579 break 2
5580 fi
5581 done
5582 done
5583 IFS=$as_save_IFS
5584
5585 fi
5586 fi
5587 RANLIB=$ac_cv_prog_RANLIB
5588 if test -n "$RANLIB"; then
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5590 $as_echo "$RANLIB" >&6; }
5591 else
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5593 $as_echo "no" >&6; }
5594 fi
5595
5596
5597 fi
5598 if test -z "$ac_cv_prog_RANLIB"; then
5599 ac_ct_RANLIB=$RANLIB
5600 # Extract the first word of "ranlib", so it can be a program name with args.
5601 set dummy ranlib; ac_word=$2
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5603 $as_echo_n "checking for $ac_word... " >&6; }
5604 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5605 $as_echo_n "(cached) " >&6
5606 else
5607 if test -n "$ac_ct_RANLIB"; then
5608 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5609 else
5610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5611 for as_dir in $PATH
5612 do
5613 IFS=$as_save_IFS
5614 test -z "$as_dir" && as_dir=.
5615 for ac_exec_ext in '' $ac_executable_extensions; do
5616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5617 ac_cv_prog_ac_ct_RANLIB="ranlib"
5618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5619 break 2
5620 fi
5621 done
5622 done
5623 IFS=$as_save_IFS
5624
5625 fi
5626 fi
5627 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5628 if test -n "$ac_ct_RANLIB"; then
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5630 $as_echo "$ac_ct_RANLIB" >&6; }
5631 else
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5633 $as_echo "no" >&6; }
5634 fi
5635
5636 if test "x$ac_ct_RANLIB" = x; then
5637 RANLIB=":"
5638 else
5639 case $cross_compiling:$ac_tool_warned in
5640 yes:)
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5642 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5643 ac_tool_warned=yes ;;
5644 esac
5645 RANLIB=$ac_ct_RANLIB
5646 fi
5647 else
5648 RANLIB="$ac_cv_prog_RANLIB"
5649 fi
5650
5651
5652
5653
5654 ac_ext=cpp
5655 ac_cpp='$CXXCPP $CPPFLAGS'
5656 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5657 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5658 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5659 if test -z "$CXX"; then
5660 if test -n "$CCC"; then
5661 CXX=$CCC
5662 else
5663 if test -n "$ac_tool_prefix"; then
5664 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5665 do
5666 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5667 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5669 $as_echo_n "checking for $ac_word... " >&6; }
5670 if ${ac_cv_prog_CXX+:} false; then :
5671 $as_echo_n "(cached) " >&6
5672 else
5673 if test -n "$CXX"; then
5674 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5675 else
5676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5677 for as_dir in $PATH
5678 do
5679 IFS=$as_save_IFS
5680 test -z "$as_dir" && as_dir=.
5681 for ac_exec_ext in '' $ac_executable_extensions; do
5682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5683 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5685 break 2
5686 fi
5687 done
5688 done
5689 IFS=$as_save_IFS
5690
5691 fi
5692 fi
5693 CXX=$ac_cv_prog_CXX
5694 if test -n "$CXX"; then
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5696 $as_echo "$CXX" >&6; }
5697 else
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5699 $as_echo "no" >&6; }
5700 fi
5701
5702
5703 test -n "$CXX" && break
5704 done
5705 fi
5706 if test -z "$CXX"; then
5707 ac_ct_CXX=$CXX
5708 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5709 do
5710 # Extract the first word of "$ac_prog", so it can be a program name with args.
5711 set dummy $ac_prog; ac_word=$2
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5713 $as_echo_n "checking for $ac_word... " >&6; }
5714 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5715 $as_echo_n "(cached) " >&6
5716 else
5717 if test -n "$ac_ct_CXX"; then
5718 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5719 else
5720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5721 for as_dir in $PATH
5722 do
5723 IFS=$as_save_IFS
5724 test -z "$as_dir" && as_dir=.
5725 for ac_exec_ext in '' $ac_executable_extensions; do
5726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5727 ac_cv_prog_ac_ct_CXX="$ac_prog"
5728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5729 break 2
5730 fi
5731 done
5732 done
5733 IFS=$as_save_IFS
5734
5735 fi
5736 fi
5737 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5738 if test -n "$ac_ct_CXX"; then
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5740 $as_echo "$ac_ct_CXX" >&6; }
5741 else
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5743 $as_echo "no" >&6; }
5744 fi
5745
5746
5747 test -n "$ac_ct_CXX" && break
5748 done
5749
5750 if test "x$ac_ct_CXX" = x; then
5751 CXX="g++"
5752 else
5753 case $cross_compiling:$ac_tool_warned in
5754 yes:)
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5756 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5757 ac_tool_warned=yes ;;
5758 esac
5759 CXX=$ac_ct_CXX
5760 fi
5761 fi
5762
5763 fi
5764 fi
5765 # Provide some information about the compiler.
5766 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5767 set X $ac_compile
5768 ac_compiler=$2
5769 for ac_option in --version -v -V -qversion; do
5770 { { ac_try="$ac_compiler $ac_option >&5"
5771 case "(($ac_try" in
5772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5773 *) ac_try_echo=$ac_try;;
5774 esac
5775 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5776 $as_echo "$ac_try_echo"; } >&5
5777 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5778 ac_status=$?
5779 if test -s conftest.err; then
5780 sed '10a\
5781 ... rest of stderr output deleted ...
5782 10q' conftest.err >conftest.er1
5783 cat conftest.er1 >&5
5784 fi
5785 rm -f conftest.er1 conftest.err
5786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5787 test $ac_status = 0; }
5788 done
5789
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5791 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5792 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5793 $as_echo_n "(cached) " >&6
5794 else
5795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5796 /* end confdefs.h. */
5797
5798 int
5799 main ()
5800 {
5801 #ifndef __GNUC__
5802 choke me
5803 #endif
5804
5805 ;
5806 return 0;
5807 }
5808 _ACEOF
5809 if ac_fn_cxx_try_compile "$LINENO"; then :
5810 ac_compiler_gnu=yes
5811 else
5812 ac_compiler_gnu=no
5813 fi
5814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5815 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5816
5817 fi
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5819 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5820 if test $ac_compiler_gnu = yes; then
5821 GXX=yes
5822 else
5823 GXX=
5824 fi
5825 ac_test_CXXFLAGS=${CXXFLAGS+set}
5826 ac_save_CXXFLAGS=$CXXFLAGS
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5828 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5829 if ${ac_cv_prog_cxx_g+:} false; then :
5830 $as_echo_n "(cached) " >&6
5831 else
5832 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5833 ac_cxx_werror_flag=yes
5834 ac_cv_prog_cxx_g=no
5835 CXXFLAGS="-g"
5836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5837 /* end confdefs.h. */
5838
5839 int
5840 main ()
5841 {
5842
5843 ;
5844 return 0;
5845 }
5846 _ACEOF
5847 if ac_fn_cxx_try_compile "$LINENO"; then :
5848 ac_cv_prog_cxx_g=yes
5849 else
5850 CXXFLAGS=""
5851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5852 /* end confdefs.h. */
5853
5854 int
5855 main ()
5856 {
5857
5858 ;
5859 return 0;
5860 }
5861 _ACEOF
5862 if ac_fn_cxx_try_compile "$LINENO"; then :
5863
5864 else
5865 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5866 CXXFLAGS="-g"
5867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5868 /* end confdefs.h. */
5869
5870 int
5871 main ()
5872 {
5873
5874 ;
5875 return 0;
5876 }
5877 _ACEOF
5878 if ac_fn_cxx_try_compile "$LINENO"; then :
5879 ac_cv_prog_cxx_g=yes
5880 fi
5881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5882 fi
5883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5884 fi
5885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5886 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5887 fi
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5889 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5890 if test "$ac_test_CXXFLAGS" = set; then
5891 CXXFLAGS=$ac_save_CXXFLAGS
5892 elif test $ac_cv_prog_cxx_g = yes; then
5893 if test "$GXX" = yes; then
5894 CXXFLAGS="-g -O2"
5895 else
5896 CXXFLAGS="-g"
5897 fi
5898 else
5899 if test "$GXX" = yes; then
5900 CXXFLAGS="-O2"
5901 else
5902 CXXFLAGS=
5903 fi
5904 fi
5905 ac_ext=c
5906 ac_cpp='$CPP $CPPFLAGS'
5907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5910
5911 ac_ext=cpp
5912 ac_cpp='$CXXCPP $CPPFLAGS'
5913 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5914 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5915 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5917 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5918 if test -z "$CXXCPP"; then
5919 if ${ac_cv_prog_CXXCPP+:} false; then :
5920 $as_echo_n "(cached) " >&6
5921 else
5922 # Double quotes because CXXCPP needs to be expanded
5923 for CXXCPP in "$CXX -E" "/lib/cpp"
5924 do
5925 ac_preproc_ok=false
5926 for ac_cxx_preproc_warn_flag in '' yes
5927 do
5928 # Use a header file that comes with gcc, so configuring glibc
5929 # with a fresh cross-compiler works.
5930 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5931 # <limits.h> exists even on freestanding compilers.
5932 # On the NeXT, cc -E runs the code through the compiler's parser,
5933 # not just through cpp. "Syntax error" is here to catch this case.
5934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5935 /* end confdefs.h. */
5936 #ifdef __STDC__
5937 # include <limits.h>
5938 #else
5939 # include <assert.h>
5940 #endif
5941 Syntax error
5942 _ACEOF
5943 if ac_fn_cxx_try_cpp "$LINENO"; then :
5944
5945 else
5946 # Broken: fails on valid input.
5947 continue
5948 fi
5949 rm -f conftest.err conftest.i conftest.$ac_ext
5950
5951 # OK, works on sane cases. Now check whether nonexistent headers
5952 # can be detected and how.
5953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5954 /* end confdefs.h. */
5955 #include <ac_nonexistent.h>
5956 _ACEOF
5957 if ac_fn_cxx_try_cpp "$LINENO"; then :
5958 # Broken: success on invalid input.
5959 continue
5960 else
5961 # Passes both tests.
5962 ac_preproc_ok=:
5963 break
5964 fi
5965 rm -f conftest.err conftest.i conftest.$ac_ext
5966
5967 done
5968 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5969 rm -f conftest.i conftest.err conftest.$ac_ext
5970 if $ac_preproc_ok; then :
5971 break
5972 fi
5973
5974 done
5975 ac_cv_prog_CXXCPP=$CXXCPP
5976
5977 fi
5978 CXXCPP=$ac_cv_prog_CXXCPP
5979 else
5980 ac_cv_prog_CXXCPP=$CXXCPP
5981 fi
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5983 $as_echo "$CXXCPP" >&6; }
5984 ac_preproc_ok=false
5985 for ac_cxx_preproc_warn_flag in '' yes
5986 do
5987 # Use a header file that comes with gcc, so configuring glibc
5988 # with a fresh cross-compiler works.
5989 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5990 # <limits.h> exists even on freestanding compilers.
5991 # On the NeXT, cc -E runs the code through the compiler's parser,
5992 # not just through cpp. "Syntax error" is here to catch this case.
5993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5994 /* end confdefs.h. */
5995 #ifdef __STDC__
5996 # include <limits.h>
5997 #else
5998 # include <assert.h>
5999 #endif
6000 Syntax error
6001 _ACEOF
6002 if ac_fn_cxx_try_cpp "$LINENO"; then :
6003
6004 else
6005 # Broken: fails on valid input.
6006 continue
6007 fi
6008 rm -f conftest.err conftest.i conftest.$ac_ext
6009
6010 # OK, works on sane cases. Now check whether nonexistent headers
6011 # can be detected and how.
6012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6013 /* end confdefs.h. */
6014 #include <ac_nonexistent.h>
6015 _ACEOF
6016 if ac_fn_cxx_try_cpp "$LINENO"; then :
6017 # Broken: success on invalid input.
6018 continue
6019 else
6020 # Passes both tests.
6021 ac_preproc_ok=:
6022 break
6023 fi
6024 rm -f conftest.err conftest.i conftest.$ac_ext
6025
6026 done
6027 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6028 rm -f conftest.i conftest.err conftest.$ac_ext
6029 if $ac_preproc_ok; then :
6030
6031 else
6032 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6033 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6034 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
6035 See \`config.log' for more details" "$LINENO" 5; }
6036 fi
6037
6038 ac_ext=c
6039 ac_cpp='$CPP $CPPFLAGS'
6040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6043
6044 if test -n "$ac_tool_prefix"; then
6045 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6046 set dummy ${ac_tool_prefix}ar; ac_word=$2
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6048 $as_echo_n "checking for $ac_word... " >&6; }
6049 if ${ac_cv_prog_AR+:} false; then :
6050 $as_echo_n "(cached) " >&6
6051 else
6052 if test -n "$AR"; then
6053 ac_cv_prog_AR="$AR" # Let the user override the test.
6054 else
6055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6056 for as_dir in $PATH
6057 do
6058 IFS=$as_save_IFS
6059 test -z "$as_dir" && as_dir=.
6060 for ac_exec_ext in '' $ac_executable_extensions; do
6061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6062 ac_cv_prog_AR="${ac_tool_prefix}ar"
6063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6064 break 2
6065 fi
6066 done
6067 done
6068 IFS=$as_save_IFS
6069
6070 fi
6071 fi
6072 AR=$ac_cv_prog_AR
6073 if test -n "$AR"; then
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6075 $as_echo "$AR" >&6; }
6076 else
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6078 $as_echo "no" >&6; }
6079 fi
6080
6081
6082 fi
6083 if test -z "$ac_cv_prog_AR"; then
6084 ac_ct_AR=$AR
6085 # Extract the first word of "ar", so it can be a program name with args.
6086 set dummy ar; ac_word=$2
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6088 $as_echo_n "checking for $ac_word... " >&6; }
6089 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6090 $as_echo_n "(cached) " >&6
6091 else
6092 if test -n "$ac_ct_AR"; then
6093 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6094 else
6095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6096 for as_dir in $PATH
6097 do
6098 IFS=$as_save_IFS
6099 test -z "$as_dir" && as_dir=.
6100 for ac_exec_ext in '' $ac_executable_extensions; do
6101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6102 ac_cv_prog_ac_ct_AR="ar"
6103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6104 break 2
6105 fi
6106 done
6107 done
6108 IFS=$as_save_IFS
6109
6110 fi
6111 fi
6112 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6113 if test -n "$ac_ct_AR"; then
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6115 $as_echo "$ac_ct_AR" >&6; }
6116 else
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6118 $as_echo "no" >&6; }
6119 fi
6120
6121 if test "x$ac_ct_AR" = x; then
6122 AR="ar"
6123 else
6124 case $cross_compiling:$ac_tool_warned in
6125 yes:)
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6127 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6128 ac_tool_warned=yes ;;
6129 esac
6130 AR=$ac_ct_AR
6131 fi
6132 else
6133 AR="$ac_cv_prog_AR"
6134 fi
6135
6136 fim_cv_version=`cat $srcdir/VERSION`
6137 ac_ext=cpp
6138 ac_cpp='$CXXCPP $CPPFLAGS'
6139 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6140 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6141 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6142
6143 #AC_LANG_PUSH([C++])
6144 am__api_version='1.16'
6145
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
6147 $as_echo_n "checking whether build environment is sane... " >&6; }
6148 # Reject unsafe characters in $srcdir or the absolute working directory
6149 # name. Accept space and tab only in the latter.
6150 am_lf='
6151 '
6152 case `pwd` in
6153 *[\\\"\#\$\&\'\`$am_lf]*)
6154 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
6155 esac
6156 case $srcdir in
6157 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
6158 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
6159 esac
6160
6161 # Do 'set' in a subshell so we don't clobber the current shell's
6162 # arguments. Must try -L first in case configure is actually a
6163 # symlink; some systems play weird games with the mod time of symlinks
6164 # (eg FreeBSD returns the mod time of the symlink's containing
6165 # directory).
6166 if (
6167 am_has_slept=no
6168 for am_try in 1 2; do
6169 echo "timestamp, slept: $am_has_slept" > conftest.file
6170 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
6171 if test "$*" = "X"; then
6172 # -L didn't work.
6173 set X `ls -t "$srcdir/configure" conftest.file`
6174 fi
6175 if test "$*" != "X $srcdir/configure conftest.file" \
6176 && test "$*" != "X conftest.file $srcdir/configure"; then
6177
6178 # If neither matched, then we have a broken ls. This can happen
6179 # if, for instance, CONFIG_SHELL is bash and it inherits a
6180 # broken ls alias from the environment. This has actually
6181 # happened. Such a system could not be considered "sane".
6182 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
6183 alias in your environment" "$LINENO" 5
6184 fi
6185 if test "$2" = conftest.file || test $am_try -eq 2; then
6186 break
6187 fi
6188 # Just in case.
6189 sleep 1
6190 am_has_slept=yes
6191 done
6192 test "$2" = conftest.file
6193 )
6194 then
6195 # Ok.
6196 :
6197 else
6198 as_fn_error $? "newly created file is older than distributed files!
6199 Check your system clock" "$LINENO" 5
6200 fi
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6202 $as_echo "yes" >&6; }
6203 # If we didn't sleep, we still need to ensure time stamps of config.status and
6204 # generated files are strictly newer.
6205 am_sleep_pid=
6206 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
6207 ( sleep 1 ) &
6208 am_sleep_pid=$!
6209 fi
6210
6211 rm -f conftest.file
6212
6213 test "$program_prefix" != NONE &&
6214 program_transform_name="s&^&$program_prefix&;$program_transform_name"
6215 # Use a double $ so make ignores it.
6216 test "$program_suffix" != NONE &&
6217 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
6218 # Double any \ or $.
6219 # By default was `s,x,x', remove it if useless.
6220 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
6221 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
6222
6223 if test x"${MISSING+set}" != xset; then
6224 case $am_aux_dir in
6225 *\ * | *\ *)
6226 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
6227 *)
6228 MISSING="\${SHELL} $am_aux_dir/missing" ;;
6229 esac
6230 fi
6231 # Use eval to expand $SHELL
6232 if eval "$MISSING --is-lightweight"; then
6233 am_missing_run="$MISSING "
6234 else
6235 am_missing_run=
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
6237 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
6238 fi
6239
6240 if test x"${install_sh+set}" != xset; then
6241 case $am_aux_dir in
6242 *\ * | *\ *)
6243 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
6244 *)
6245 install_sh="\${SHELL} $am_aux_dir/install-sh"
6246 esac
6247 fi
6248
6249 # Installed binaries are usually stripped using 'strip' when the user
6250 # run "make install-strip". However 'strip' might not be the right
6251 # tool to use in cross-compilation environments, therefore Automake
6252 # will honor the 'STRIP' environment variable to overrule this program.
6253 if test "$cross_compiling" != no; then
6254 if test -n "$ac_tool_prefix"; then
6255 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6256 set dummy ${ac_tool_prefix}strip; ac_word=$2
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6258 $as_echo_n "checking for $ac_word... " >&6; }
6259 if ${ac_cv_prog_STRIP+:} false; then :
6260 $as_echo_n "(cached) " >&6
6261 else
6262 if test -n "$STRIP"; then
6263 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6264 else
6265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6266 for as_dir in $PATH
6267 do
6268 IFS=$as_save_IFS
6269 test -z "$as_dir" && as_dir=.
6270 for ac_exec_ext in '' $ac_executable_extensions; do
6271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6272 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6274 break 2
6275 fi
6276 done
6277 done
6278 IFS=$as_save_IFS
6279
6280 fi
6281 fi
6282 STRIP=$ac_cv_prog_STRIP
6283 if test -n "$STRIP"; then
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6285 $as_echo "$STRIP" >&6; }
6286 else
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6288 $as_echo "no" >&6; }
6289 fi
6290
6291
6292 fi
6293 if test -z "$ac_cv_prog_STRIP"; then
6294 ac_ct_STRIP=$STRIP
6295 # Extract the first word of "strip", so it can be a program name with args.
6296 set dummy strip; ac_word=$2
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6298 $as_echo_n "checking for $ac_word... " >&6; }
6299 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6300 $as_echo_n "(cached) " >&6
6301 else
6302 if test -n "$ac_ct_STRIP"; then
6303 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6304 else
6305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6306 for as_dir in $PATH
6307 do
6308 IFS=$as_save_IFS
6309 test -z "$as_dir" && as_dir=.
6310 for ac_exec_ext in '' $ac_executable_extensions; do
6311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6312 ac_cv_prog_ac_ct_STRIP="strip"
6313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6314 break 2
6315 fi
6316 done
6317 done
6318 IFS=$as_save_IFS
6319
6320 fi
6321 fi
6322 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6323 if test -n "$ac_ct_STRIP"; then
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6325 $as_echo "$ac_ct_STRIP" >&6; }
6326 else
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6328 $as_echo "no" >&6; }
6329 fi
6330
6331 if test "x$ac_ct_STRIP" = x; then
6332 STRIP=":"
6333 else
6334 case $cross_compiling:$ac_tool_warned in
6335 yes:)
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6337 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6338 ac_tool_warned=yes ;;
6339 esac
6340 STRIP=$ac_ct_STRIP
6341 fi
6342 else
6343 STRIP="$ac_cv_prog_STRIP"
6344 fi
6345
6346 fi
6347 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
6348
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6350 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6351 if test -z "$MKDIR_P"; then
6352 if ${ac_cv_path_mkdir+:} false; then :
6353 $as_echo_n "(cached) " >&6
6354 else
6355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6356 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6357 do
6358 IFS=$as_save_IFS
6359 test -z "$as_dir" && as_dir=.
6360 for ac_prog in mkdir gmkdir; do
6361 for ac_exec_ext in '' $ac_executable_extensions; do
6362 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
6363 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6364 'mkdir (GNU coreutils) '* | \
6365 'mkdir (coreutils) '* | \
6366 'mkdir (fileutils) '4.1*)
6367 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6368 break 3;;
6369 esac
6370 done
6371 done
6372 done
6373 IFS=$as_save_IFS
6374
6375 fi
6376
6377 test -d ./--version && rmdir ./--version
6378 if test "${ac_cv_path_mkdir+set}" = set; then
6379 MKDIR_P="$ac_cv_path_mkdir -p"
6380 else
6381 # As a last resort, use the slow shell script. Don't cache a
6382 # value for MKDIR_P within a source directory, because that will
6383 # break other packages using the cache if that directory is
6384 # removed, or if the value is a relative name.
6385 MKDIR_P="$ac_install_sh -d"
6386 fi
6387 fi
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6389 $as_echo "$MKDIR_P" >&6; }
6390
6391 for ac_prog in gawk mawk nawk awk
6392 do
6393 # Extract the first word of "$ac_prog", so it can be a program name with args.
6394 set dummy $ac_prog; ac_word=$2
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6396 $as_echo_n "checking for $ac_word... " >&6; }
6397 if ${ac_cv_prog_AWK+:} false; then :
6398 $as_echo_n "(cached) " >&6
6399 else
6400 if test -n "$AWK"; then
6401 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6402 else
6403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6404 for as_dir in $PATH
6405 do
6406 IFS=$as_save_IFS
6407 test -z "$as_dir" && as_dir=.
6408 for ac_exec_ext in '' $ac_executable_extensions; do
6409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6410 ac_cv_prog_AWK="$ac_prog"
6411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6412 break 2
6413 fi
6414 done
6415 done
6416 IFS=$as_save_IFS
6417
6418 fi
6419 fi
6420 AWK=$ac_cv_prog_AWK
6421 if test -n "$AWK"; then
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6423 $as_echo "$AWK" >&6; }
6424 else
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6426 $as_echo "no" >&6; }
6427 fi
6428
6429
6430 test -n "$AWK" && break
6431 done
6432
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6434 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6435 set x ${MAKE-make}
6436 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6437 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6438 $as_echo_n "(cached) " >&6
6439 else
6440 cat >conftest.make <<\_ACEOF
6441 SHELL = /bin/sh
6442 all:
6443 @echo '@@@%%%=$(MAKE)=@@@%%%'
6444 _ACEOF
6445 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6446 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6447 *@@@%%%=?*=@@@%%%*)
6448 eval ac_cv_prog_make_${ac_make}_set=yes;;
6449 *)
6450 eval ac_cv_prog_make_${ac_make}_set=no;;
6451 esac
6452 rm -f conftest.make
6453 fi
6454 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6456 $as_echo "yes" >&6; }
6457 SET_MAKE=
6458 else
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6460 $as_echo "no" >&6; }
6461 SET_MAKE="MAKE=${MAKE-make}"
6462 fi
6463
6464 rm -rf .tst 2>/dev/null
6465 mkdir .tst 2>/dev/null
6466 if test -d .tst; then
6467 am__leading_dot=.
6468 else
6469 am__leading_dot=_
6470 fi
6471 rmdir .tst 2>/dev/null
6472
6473 DEPDIR="${am__leading_dot}deps"
6474
6475 ac_config_commands="$ac_config_commands depfiles"
6476
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
6478 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
6479 cat > confinc.mk << 'END'
6480 am__doit:
6481 @echo this is the am__doit target >confinc.out
6482 .PHONY: am__doit
6483 END
6484 am__include="#"
6485 am__quote=
6486 # BSD make does it like this.
6487 echo '.include "confinc.mk" # ignored' > confmf.BSD
6488 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
6489 echo 'include confinc.mk # ignored' > confmf.GNU
6490 _am_result=no
6491 for s in GNU BSD; do
6492 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
6493 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
6494 ac_status=$?
6495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6496 (exit $ac_status); }
6497 case $?:`cat confinc.out 2>/dev/null` in #(
6498 '0:this is the am__doit target') :
6499 case $s in #(
6500 BSD) :
6501 am__include='.include' am__quote='"' ;; #(
6502 *) :
6503 am__include='include' am__quote='' ;;
6504 esac ;; #(
6505 *) :
6506 ;;
6507 esac
6508 if test "$am__include" != "#"; then
6509 _am_result="yes ($s style)"
6510 break
6511 fi
6512 done
6513 rm -f confinc.* confmf.*
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
6515 $as_echo "${_am_result}" >&6; }
6516
6517 # Check whether --enable-dependency-tracking was given.
6518 if test "${enable_dependency_tracking+set}" = set; then :
6519 enableval=$enable_dependency_tracking;
6520 fi
6521
6522 if test "x$enable_dependency_tracking" != xno; then
6523 am_depcomp="$ac_aux_dir/depcomp"
6524 AMDEPBACKSLASH='\'
6525 am__nodep='_no'
6526 fi
6527 if test "x$enable_dependency_tracking" != xno; then
6528 AMDEP_TRUE=
6529 AMDEP_FALSE='#'
6530 else
6531 AMDEP_TRUE='#'
6532 AMDEP_FALSE=
6533 fi
6534
6535
6536 # Check whether --enable-silent-rules was given.
6537 if test "${enable_silent_rules+set}" = set; then :
6538 enableval=$enable_silent_rules;
6539 fi
6540
6541 case $enable_silent_rules in # (((
6542 yes) AM_DEFAULT_VERBOSITY=0;;
6543 no) AM_DEFAULT_VERBOSITY=1;;
6544 *) AM_DEFAULT_VERBOSITY=1;;
6545 esac
6546 am_make=${MAKE-make}
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
6548 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
6549 if ${am_cv_make_support_nested_variables+:} false; then :
6550 $as_echo_n "(cached) " >&6
6551 else
6552 if $as_echo 'TRUE=$(BAR$(V))
6553 BAR0=false
6554 BAR1=true
6555 V=1
6556 am__doit:
6557 @$(TRUE)
6558 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
6559 am_cv_make_support_nested_variables=yes
6560 else
6561 am_cv_make_support_nested_variables=no
6562 fi
6563 fi
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
6565 $as_echo "$am_cv_make_support_nested_variables" >&6; }
6566 if test $am_cv_make_support_nested_variables = yes; then
6567 AM_V='$(V)'
6568 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
6569 else
6570 AM_V=$AM_DEFAULT_VERBOSITY
6571 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
6572 fi
6573 AM_BACKSLASH='\'
6574
6575 if test "`cd $srcdir && pwd`" != "`pwd`"; then
6576 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
6577 # is not polluted with repeated "-I."
6578 am__isrc=' -I$(srcdir)'
6579 # test to see if srcdir already configured
6580 if test -f $srcdir/config.status; then
6581 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
6582 fi
6583 fi
6584
6585 # test whether we have cygpath
6586 if test -z "$CYGPATH_W"; then
6587 if (cygpath --version) >/dev/null 2>/dev/null; then
6588 CYGPATH_W='cygpath -w'
6589 else
6590 CYGPATH_W=echo
6591 fi
6592 fi
6593
6594
6595 # Define the identity of the package.
6596 PACKAGE='fim'
6597 VERSION='0.7.1'
6598
6599
6600 cat >>confdefs.h <<_ACEOF
6601 #define PACKAGE "$PACKAGE"
6602 _ACEOF
6603
6604
6605 cat >>confdefs.h <<_ACEOF
6606 #define VERSION "$VERSION"
6607 _ACEOF
6608
6609 # Some tools Automake needs.
6610
6611 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
6612
6613
6614 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6615
6616
6617 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
6618
6619
6620 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6621
6622
6623 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6624
6625 # For better backward compatibility. To be removed once Automake 1.9.x
6626 # dies out for good. For more background, see:
6627 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
6628 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
6629 mkdir_p='$(MKDIR_P)'
6630
6631 # We need awk for the "check" target (and possibly the TAP driver). The
6632 # system "awk" is bad on some platforms.
6633 # Always define AMTAR for backward compatibility. Yes, it's still used
6634 # in the wild :-( We should find a proper way to deprecate it ...
6635 AMTAR='$${TAR-tar}'
6636
6637
6638 # We'll loop over all known methods to create a tar archive until one works.
6639 _am_tools='gnutar pax cpio none'
6640
6641 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
6642
6643
6644
6645
6646
6647 depcc="$CC" am_compiler_list=
6648
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6650 $as_echo_n "checking dependency style of $depcc... " >&6; }
6651 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6652 $as_echo_n "(cached) " >&6
6653 else
6654 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6655 # We make a subdir and do the tests there. Otherwise we can end up
6656 # making bogus files that we don't know about and never remove. For
6657 # instance it was reported that on HP-UX the gcc test will end up
6658 # making a dummy file named 'D' -- because '-MD' means "put the output
6659 # in D".
6660 rm -rf conftest.dir
6661 mkdir conftest.dir
6662 # Copy depcomp to subdir because otherwise we won't find it if we're
6663 # using a relative directory.
6664 cp "$am_depcomp" conftest.dir
6665 cd conftest.dir
6666 # We will build objects and dependencies in a subdirectory because
6667 # it helps to detect inapplicable dependency modes. For instance
6668 # both Tru64's cc and ICC support -MD to output dependencies as a
6669 # side effect of compilation, but ICC will put the dependencies in
6670 # the current directory while Tru64 will put them in the object
6671 # directory.
6672 mkdir sub
6673
6674 am_cv_CC_dependencies_compiler_type=none
6675 if test "$am_compiler_list" = ""; then
6676 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6677 fi
6678 am__universal=false
6679 case " $depcc " in #(
6680 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6681 esac
6682
6683 for depmode in $am_compiler_list; do
6684 # Setup a source with many dependencies, because some compilers
6685 # like to wrap large dependency lists on column 80 (with \), and
6686 # we should not choose a depcomp mode which is confused by this.
6687 #
6688 # We need to recreate these files for each test, as the compiler may
6689 # overwrite some of them when testing with obscure command lines.
6690 # This happens at least with the AIX C compiler.
6691 : > sub/conftest.c
6692 for i in 1 2 3 4 5 6; do
6693 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6694 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6695 # Solaris 10 /bin/sh.
6696 echo '/* dummy */' > sub/conftst$i.h
6697 done
6698 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6699
6700 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6701 # mode. It turns out that the SunPro C++ compiler does not properly
6702 # handle '-M -o', and we need to detect this. Also, some Intel
6703 # versions had trouble with output in subdirs.
6704 am__obj=sub/conftest.${OBJEXT-o}
6705 am__minus_obj="-o $am__obj"
6706 case $depmode in
6707 gcc)
6708 # This depmode causes a compiler race in universal mode.
6709 test "$am__universal" = false || continue
6710 ;;
6711 nosideeffect)
6712 # After this tag, mechanisms are not by side-effect, so they'll
6713 # only be used when explicitly requested.
6714 if test "x$enable_dependency_tracking" = xyes; then
6715 continue
6716 else
6717 break
6718 fi
6719 ;;
6720 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6721 # This compiler won't grok '-c -o', but also, the minuso test has
6722 # not run yet. These depmodes are late enough in the game, and
6723 # so weak that their functioning should not be impacted.
6724 am__obj=conftest.${OBJEXT-o}
6725 am__minus_obj=
6726 ;;
6727 none) break ;;
6728 esac
6729 if depmode=$depmode \
6730 source=sub/conftest.c object=$am__obj \
6731 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6732 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6733 >/dev/null 2>conftest.err &&
6734 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6735 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6736 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6737 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6738 # icc doesn't choke on unknown options, it will just issue warnings
6739 # or remarks (even with -Werror). So we grep stderr for any message
6740 # that says an option was ignored or not supported.
6741 # When given -MP, icc 7.0 and 7.1 complain thusly:
6742 # icc: Command line warning: ignoring option '-M'; no argument required
6743 # The diagnosis changed in icc 8.0:
6744 # icc: Command line remark: option '-MP' not supported
6745 if (grep 'ignoring option' conftest.err ||
6746 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6747 am_cv_CC_dependencies_compiler_type=$depmode
6748 break
6749 fi
6750 fi
6751 done
6752
6753 cd ..
6754 rm -rf conftest.dir
6755 else
6756 am_cv_CC_dependencies_compiler_type=none
6757 fi
6758
6759 fi
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6761 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6762 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6763
6764 if
6765 test "x$enable_dependency_tracking" != xno \
6766 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6767 am__fastdepCC_TRUE=
6768 am__fastdepCC_FALSE='#'
6769 else
6770 am__fastdepCC_TRUE='#'
6771 am__fastdepCC_FALSE=
6772 fi
6773
6774
6775 depcc="$CXX" am_compiler_list=
6776
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6778 $as_echo_n "checking dependency style of $depcc... " >&6; }
6779 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
6780 $as_echo_n "(cached) " >&6
6781 else
6782 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6783 # We make a subdir and do the tests there. Otherwise we can end up
6784 # making bogus files that we don't know about and never remove. For
6785 # instance it was reported that on HP-UX the gcc test will end up
6786 # making a dummy file named 'D' -- because '-MD' means "put the output
6787 # in D".
6788 rm -rf conftest.dir
6789 mkdir conftest.dir
6790 # Copy depcomp to subdir because otherwise we won't find it if we're
6791 # using a relative directory.
6792 cp "$am_depcomp" conftest.dir
6793 cd conftest.dir
6794 # We will build objects and dependencies in a subdirectory because
6795 # it helps to detect inapplicable dependency modes. For instance
6796 # both Tru64's cc and ICC support -MD to output dependencies as a
6797 # side effect of compilation, but ICC will put the dependencies in
6798 # the current directory while Tru64 will put them in the object
6799 # directory.
6800 mkdir sub
6801
6802 am_cv_CXX_dependencies_compiler_type=none
6803 if test "$am_compiler_list" = ""; then
6804 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6805 fi
6806 am__universal=false
6807 case " $depcc " in #(
6808 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6809 esac
6810
6811 for depmode in $am_compiler_list; do
6812 # Setup a source with many dependencies, because some compilers
6813 # like to wrap large dependency lists on column 80 (with \), and
6814 # we should not choose a depcomp mode which is confused by this.
6815 #
6816 # We need to recreate these files for each test, as the compiler may
6817 # overwrite some of them when testing with obscure command lines.
6818 # This happens at least with the AIX C compiler.
6819 : > sub/conftest.c
6820 for i in 1 2 3 4 5 6; do
6821 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6822 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6823 # Solaris 10 /bin/sh.
6824 echo '/* dummy */' > sub/conftst$i.h
6825 done
6826 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6827
6828 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6829 # mode. It turns out that the SunPro C++ compiler does not properly
6830 # handle '-M -o', and we need to detect this. Also, some Intel
6831 # versions had trouble with output in subdirs.
6832 am__obj=sub/conftest.${OBJEXT-o}
6833 am__minus_obj="-o $am__obj"
6834 case $depmode in
6835 gcc)
6836 # This depmode causes a compiler race in universal mode.
6837 test "$am__universal" = false || continue
6838 ;;
6839 nosideeffect)
6840 # After this tag, mechanisms are not by side-effect, so they'll
6841 # only be used when explicitly requested.
6842 if test "x$enable_dependency_tracking" = xyes; then
6843 continue
6844 else
6845 break
6846 fi
6847 ;;
6848 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6849 # This compiler won't grok '-c -o', but also, the minuso test has
6850 # not run yet. These depmodes are late enough in the game, and
6851 # so weak that their functioning should not be impacted.
6852 am__obj=conftest.${OBJEXT-o}
6853 am__minus_obj=
6854 ;;
6855 none) break ;;
6856 esac
6857 if depmode=$depmode \
6858 source=sub/conftest.c object=$am__obj \
6859 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6860 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6861 >/dev/null 2>conftest.err &&
6862 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6863 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6864 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6865 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6866 # icc doesn't choke on unknown options, it will just issue warnings
6867 # or remarks (even with -Werror). So we grep stderr for any message
6868 # that says an option was ignored or not supported.
6869 # When given -MP, icc 7.0 and 7.1 complain thusly:
6870 # icc: Command line warning: ignoring option '-M'; no argument required
6871 # The diagnosis changed in icc 8.0:
6872 # icc: Command line remark: option '-MP' not supported
6873 if (grep 'ignoring option' conftest.err ||
6874 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6875 am_cv_CXX_dependencies_compiler_type=$depmode
6876 break
6877 fi
6878 fi
6879 done
6880
6881 cd ..
6882 rm -rf conftest.dir
6883 else
6884 am_cv_CXX_dependencies_compiler_type=none
6885 fi
6886
6887 fi
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6889 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6890 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6891
6892 if
6893 test "x$enable_dependency_tracking" != xno \
6894 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6895 am__fastdepCXX_TRUE=
6896 am__fastdepCXX_FALSE='#'
6897 else
6898 am__fastdepCXX_TRUE='#'
6899 am__fastdepCXX_FALSE=
6900 fi
6901
6902
6903
6904 # POSIX will say in a future version that running "rm -f" with no argument
6905 # is OK; and we want to be able to make that assumption in our Makefile
6906 # recipes. So use an aggressive probe to check that the usage we want is
6907 # actually supported "in the wild" to an acceptable degree.
6908 # See automake bug#10828.
6909 # To make any issue more visible, cause the running configure to be aborted
6910 # by default if the 'rm' program in use doesn't match our expectations; the
6911 # user can still override this though.
6912 if rm -f && rm -fr && rm -rf; then : OK; else
6913 cat >&2 <<'END'
6914 Oops!
6915
6916 Your 'rm' program seems unable to run without file operands specified
6917 on the command line, even when the '-f' option is present. This is contrary
6918 to the behaviour of most rm programs out there, and not conforming with
6919 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
6920
6921 Please tell [email protected] about your system, including the value
6922 of your $PATH and any error possibly output before this message. This
6923 can help us improve future automake versions.
6924
6925 END
6926 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
6927 echo 'Configuration will proceed anyway, since you have set the' >&2
6928 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
6929 echo >&2
6930 else
6931 cat >&2 <<'END'
6932 Aborting the configuration process, to ensure you take notice of the issue.
6933
6934 You can download and install GNU coreutils to get an 'rm' implementation
6935 that behaves properly: <https://www.gnu.org/software/coreutils/>.
6936
6937 If you want to complete the configuration process using your problematic
6938 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
6939 to "yes", and re-run configure.
6940
6941 END
6942 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
6943 fi
6944 fi
6945
6946 #AM_INIT_AUTOMAKE(fim, $fim_cv_version)
6947 #AM_INIT_AUTOMAKE(fim, 1.0)
6948 CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/VERSION'
6949
6950
6951
6952
6953
6954 #AC_LANG_POP([C++])
6955
6956 fim="fim"
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prefix" >&5
6958 $as_echo_n "checking for prefix... " >&6; }
6959 if test x$prefix = xNONE; then
6960 fim_cv_prefix=$ac_default_prefix
6961 else
6962 fim_cv_prefix=$prefix
6963 fi
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fim_cv_prefix" >&5
6965 $as_echo "$fim_cv_prefix" >&6; }
6966
6967
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
6969 $as_echo_n "checking for library containing strerror... " >&6; }
6970 if ${ac_cv_search_strerror+:} false; then :
6971 $as_echo_n "(cached) " >&6
6972 else
6973 ac_func_search_save_LIBS=$LIBS
6974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6975 /* end confdefs.h. */
6976
6977 /* Override any GCC internal prototype to avoid an error.
6978 Use char because int might match the return type of a GCC
6979 builtin and then its argument prototype would still apply. */
6980 #ifdef __cplusplus
6981 extern "C"
6982 #endif
6983 char strerror ();
6984 int
6985 main ()
6986 {
6987 return strerror ();
6988 ;
6989 return 0;
6990 }
6991 _ACEOF
6992 for ac_lib in '' cposix; do
6993 if test -z "$ac_lib"; then
6994 ac_res="none required"
6995 else
6996 ac_res=-l$ac_lib
6997 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6998 fi
6999 if ac_fn_cxx_try_link "$LINENO"; then :
7000 ac_cv_search_strerror=$ac_res
7001 fi
7002 rm -f core conftest.err conftest.$ac_objext \
7003 conftest$ac_exeext
7004 if ${ac_cv_search_strerror+:} false; then :
7005 break
7006 fi
7007 done
7008 if ${ac_cv_search_strerror+:} false; then :
7009
7010 else
7011 ac_cv_search_strerror=no
7012 fi
7013 rm conftest.$ac_ext
7014 LIBS=$ac_func_search_save_LIBS
7015 fi
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
7017 $as_echo "$ac_cv_search_strerror" >&6; }
7018 ac_res=$ac_cv_search_strerror
7019 if test "$ac_res" != no; then :
7020 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7021
7022 fi
7023
7024 #AM_C_PROTOTYPES
7025 if test "x$U" != "x"; then
7026 as_fn_error $? "Compiler not ANSI compliant" "$LINENO" 5
7027 fi
7028 #AC_PROG_CPP
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7030 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7031 set x ${MAKE-make}
7032 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7033 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
7034 $as_echo_n "(cached) " >&6
7035 else
7036 cat >conftest.make <<\_ACEOF
7037 SHELL = /bin/sh
7038 all:
7039 @echo '@@@%%%=$(MAKE)=@@@%%%'
7040 _ACEOF
7041 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7042 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7043 *@@@%%%=?*=@@@%%%*)
7044 eval ac_cv_prog_make_${ac_make}_set=yes;;
7045 *)
7046 eval ac_cv_prog_make_${ac_make}_set=no;;
7047 esac
7048 rm -f conftest.make
7049 fi
7050 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7052 $as_echo "yes" >&6; }
7053 SET_MAKE=
7054 else
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7056 $as_echo "no" >&6; }
7057 SET_MAKE="MAKE=${MAKE-make}"
7058 fi
7059
7060
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
7062 $as_echo_n "checking for inline... " >&6; }
7063 if ${ac_cv_c_inline+:} false; then :
7064 $as_echo_n "(cached) " >&6
7065 else
7066 ac_cv_c_inline=no
7067 for ac_kw in inline __inline__ __inline; do
7068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7069 /* end confdefs.h. */
7070 #ifndef __cplusplus
7071 typedef int foo_t;
7072 static $ac_kw foo_t static_foo () {return 0; }
7073 $ac_kw foo_t foo () {return 0; }
7074 #endif
7075
7076 _ACEOF
7077 if ac_fn_cxx_try_compile "$LINENO"; then :
7078 ac_cv_c_inline=$ac_kw
7079 fi
7080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7081 test "$ac_cv_c_inline" != no && break
7082 done
7083
7084 fi
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
7086 $as_echo "$ac_cv_c_inline" >&6; }
7087
7088 case $ac_cv_c_inline in
7089 inline | yes) ;;
7090 *)
7091 case $ac_cv_c_inline in
7092 no) ac_val=;;
7093 *) ac_val=$ac_cv_c_inline;;
7094 esac
7095 cat >>confdefs.h <<_ACEOF
7096 #ifndef __cplusplus
7097 #define inline $ac_val
7098 #endif
7099 _ACEOF
7100 ;;
7101 esac
7102
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
7104 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7105 if ${ac_cv_c_const+:} false; then :
7106 $as_echo_n "(cached) " >&6
7107 else
7108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7109 /* end confdefs.h. */
7110
7111 int
7112 main ()
7113 {
7114
7115 #ifndef __cplusplus
7116 /* Ultrix mips cc rejects this sort of thing. */
7117 typedef int charset[2];
7118 const charset cs = { 0, 0 };
7119 /* SunOS 4.1.1 cc rejects this. */
7120 char const *const *pcpcc;
7121 char **ppc;
7122 /* NEC SVR4.0.2 mips cc rejects this. */
7123 struct point {int x, y;};
7124 static struct point const zero = {0,0};
7125 /* AIX XL C 1.02.0.0 rejects this.
7126 It does not let you subtract one const X* pointer from another in
7127 an arm of an if-expression whose if-part is not a constant
7128 expression */
7129 const char *g = "string";
7130 pcpcc = &g + (g ? g-g : 0);
7131 /* HPUX 7.0 cc rejects these. */
7132 ++pcpcc;
7133 ppc = (char**) pcpcc;
7134 pcpcc = (char const *const *) ppc;
7135 { /* SCO 3.2v4 cc rejects this sort of thing. */
7136 char tx;
7137 char *t = &tx;
7138 char const *s = 0 ? (char *) 0 : (char const *) 0;
7139
7140 *t++ = 0;
7141 if (s) return 0;
7142 }
7143 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7144 int x[] = {25, 17};
7145 const int *foo = &x[0];
7146 ++foo;
7147 }
7148 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7149 typedef const int *iptr;
7150 iptr p = 0;
7151 ++p;
7152 }
7153 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
7154 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7155 struct s { int j; const int *ap[3]; } bx;
7156 struct s *b = &bx; b->j = 5;
7157 }
7158 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7159 const int foo = 10;
7160 if (!foo) return 0;
7161 }
7162 return !cs[0] && !zero.x;
7163 #endif
7164
7165 ;
7166 return 0;
7167 }
7168 _ACEOF
7169 if ac_fn_cxx_try_compile "$LINENO"; then :
7170 ac_cv_c_const=yes
7171 else
7172 ac_cv_c_const=no
7173 fi
7174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7175 fi
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
7177 $as_echo "$ac_cv_c_const" >&6; }
7178 if test $ac_cv_c_const = no; then
7179
7180 $as_echo "#define const /**/" >>confdefs.h
7181
7182 fi
7183
7184
7185 # Check whether --enable-largefile was given.
7186 if test "${enable_largefile+set}" = set; then :
7187 enableval=$enable_largefile;
7188 fi
7189
7190 if test "$enable_largefile" != no; then
7191
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7193 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7194 if ${ac_cv_sys_largefile_CC+:} false; then :
7195 $as_echo_n "(cached) " >&6
7196 else
7197 ac_cv_sys_largefile_CC=no
7198 if test "$GCC" != yes; then
7199 ac_save_CC=$CC
7200 while :; do
7201 # IRIX 6.2 and later do not support large files by default,
7202 # so use the C compiler's -n32 option if that helps.
7203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7204 /* end confdefs.h. */
7205 #include <sys/types.h>
7206 /* Check that off_t can represent 2**63 - 1 correctly.
7207 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7208 since some C++ compilers masquerading as C compilers
7209 incorrectly reject 9223372036854775807. */
7210 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7211 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7212 && LARGE_OFF_T % 2147483647 == 1)
7213 ? 1 : -1];
7214 int
7215 main ()
7216 {
7217
7218 ;
7219 return 0;
7220 }
7221 _ACEOF
7222 if ac_fn_cxx_try_compile "$LINENO"; then :
7223 break
7224 fi
7225 rm -f core conftest.err conftest.$ac_objext
7226 CC="$CC -n32"
7227 if ac_fn_cxx_try_compile "$LINENO"; then :
7228 ac_cv_sys_largefile_CC=' -n32'; break
7229 fi
7230 rm -f core conftest.err conftest.$ac_objext
7231 break
7232 done
7233 CC=$ac_save_CC
7234 rm -f conftest.$ac_ext
7235 fi
7236 fi
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7238 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7239 if test "$ac_cv_sys_largefile_CC" != no; then
7240 CC=$CC$ac_cv_sys_largefile_CC
7241 fi
7242
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7244 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7245 if ${ac_cv_sys_file_offset_bits+:} false; then :
7246 $as_echo_n "(cached) " >&6
7247 else
7248 while :; do
7249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7250 /* end confdefs.h. */
7251 #include <sys/types.h>
7252 /* Check that off_t can represent 2**63 - 1 correctly.
7253 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7254 since some C++ compilers masquerading as C compilers
7255 incorrectly reject 9223372036854775807. */
7256 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7257 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7258 && LARGE_OFF_T % 2147483647 == 1)
7259 ? 1 : -1];
7260 int
7261 main ()
7262 {
7263
7264 ;
7265 return 0;
7266 }
7267 _ACEOF
7268 if ac_fn_cxx_try_compile "$LINENO"; then :
7269 ac_cv_sys_file_offset_bits=no; break
7270 fi
7271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7273 /* end confdefs.h. */
7274 #define _FILE_OFFSET_BITS 64
7275 #include <sys/types.h>
7276 /* Check that off_t can represent 2**63 - 1 correctly.
7277 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7278 since some C++ compilers masquerading as C compilers
7279 incorrectly reject 9223372036854775807. */
7280 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7281 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7282 && LARGE_OFF_T % 2147483647 == 1)
7283 ? 1 : -1];
7284 int
7285 main ()
7286 {
7287
7288 ;
7289 return 0;
7290 }
7291 _ACEOF
7292 if ac_fn_cxx_try_compile "$LINENO"; then :
7293 ac_cv_sys_file_offset_bits=64; break
7294 fi
7295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7296 ac_cv_sys_file_offset_bits=unknown
7297 break
7298 done
7299 fi
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7301 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7302 case $ac_cv_sys_file_offset_bits in #(
7303 no | unknown) ;;
7304 *)
7305 cat >>confdefs.h <<_ACEOF
7306 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7307 _ACEOF
7308 ;;
7309 esac
7310 rm -rf conftest*
7311 if test $ac_cv_sys_file_offset_bits = unknown; then
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7313 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7314 if ${ac_cv_sys_large_files+:} false; then :
7315 $as_echo_n "(cached) " >&6
7316 else
7317 while :; do
7318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7319 /* end confdefs.h. */
7320 #include <sys/types.h>
7321 /* Check that off_t can represent 2**63 - 1 correctly.
7322 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7323 since some C++ compilers masquerading as C compilers
7324 incorrectly reject 9223372036854775807. */
7325 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7326 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7327 && LARGE_OFF_T % 2147483647 == 1)
7328 ? 1 : -1];
7329 int
7330 main ()
7331 {
7332
7333 ;
7334 return 0;
7335 }
7336 _ACEOF
7337 if ac_fn_cxx_try_compile "$LINENO"; then :
7338 ac_cv_sys_large_files=no; break
7339 fi
7340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7342 /* end confdefs.h. */
7343 #define _LARGE_FILES 1
7344 #include <sys/types.h>
7345 /* Check that off_t can represent 2**63 - 1 correctly.
7346 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7347 since some C++ compilers masquerading as C compilers
7348 incorrectly reject 9223372036854775807. */
7349 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7350 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7351 && LARGE_OFF_T % 2147483647 == 1)
7352 ? 1 : -1];
7353 int
7354 main ()
7355 {
7356
7357 ;
7358 return 0;
7359 }
7360 _ACEOF
7361 if ac_fn_cxx_try_compile "$LINENO"; then :
7362 ac_cv_sys_large_files=1; break
7363 fi
7364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7365 ac_cv_sys_large_files=unknown
7366 break
7367 done
7368 fi
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7370 $as_echo "$ac_cv_sys_large_files" >&6; }
7371 case $ac_cv_sys_large_files in #(
7372 no | unknown) ;;
7373 *)
7374 cat >>confdefs.h <<_ACEOF
7375 #define _LARGE_FILES $ac_cv_sys_large_files
7376 _ACEOF
7377 ;;
7378 esac
7379 rm -rf conftest*
7380 fi
7381
7382
7383 fi
7384
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
7386 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
7387 if ${ac_cv_sys_largefile_source+:} false; then :
7388 $as_echo_n "(cached) " >&6
7389 else
7390 while :; do
7391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7392 /* end confdefs.h. */
7393 #include <sys/types.h> /* for off_t */
7394 #include <stdio.h>
7395 int
7396 main ()
7397 {
7398 int (*fp) (FILE *, off_t, int) = fseeko;
7399 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
7400 ;
7401 return 0;
7402 }
7403 _ACEOF
7404 if ac_fn_cxx_try_link "$LINENO"; then :
7405 ac_cv_sys_largefile_source=no; break
7406 fi
7407 rm -f core conftest.err conftest.$ac_objext \
7408 conftest$ac_exeext conftest.$ac_ext
7409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7410 /* end confdefs.h. */
7411 #define _LARGEFILE_SOURCE 1
7412 #include <sys/types.h> /* for off_t */
7413 #include <stdio.h>
7414 int
7415 main ()
7416 {
7417 int (*fp) (FILE *, off_t, int) = fseeko;
7418 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
7419 ;
7420 return 0;
7421 }
7422 _ACEOF
7423 if ac_fn_cxx_try_link "$LINENO"; then :
7424 ac_cv_sys_largefile_source=1; break
7425 fi
7426 rm -f core conftest.err conftest.$ac_objext \
7427 conftest$ac_exeext conftest.$ac_ext
7428 ac_cv_sys_largefile_source=unknown
7429 break
7430 done
7431 fi
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
7433 $as_echo "$ac_cv_sys_largefile_source" >&6; }
7434 case $ac_cv_sys_largefile_source in #(
7435 no | unknown) ;;
7436 *)
7437 cat >>confdefs.h <<_ACEOF
7438 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
7439 _ACEOF
7440 ;;
7441 esac
7442 rm -rf conftest*
7443
7444 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
7445 # in glibc 2.1.3, but that breaks too many other things.
7446 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
7447 if test $ac_cv_sys_largefile_source != unknown; then
7448
7449 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
7450
7451 fi
7452
7453 # The cast to long int works around a bug in the HP C Compiler
7454 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7455 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7456 # This bug is HP SR number 8606223364.
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
7458 $as_echo_n "checking size of off_t... " >&6; }
7459 if ${ac_cv_sizeof_off_t+:} false; then :
7460 $as_echo_n "(cached) " >&6
7461 else
7462 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
7463
7464 else
7465 if test "$ac_cv_type_off_t" = yes; then
7466 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7467 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7468 as_fn_error 77 "cannot compute sizeof (off_t)
7469 See \`config.log' for more details" "$LINENO" 5; }
7470 else
7471 ac_cv_sizeof_off_t=0
7472 fi
7473 fi
7474
7475 fi
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
7477 $as_echo "$ac_cv_sizeof_off_t" >&6; }
7478
7479
7480
7481 cat >>confdefs.h <<_ACEOF
7482 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
7483 _ACEOF
7484
7485
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
7487 $as_echo_n "checking whether char is unsigned... " >&6; }
7488 if ${ac_cv_c_char_unsigned+:} false; then :
7489 $as_echo_n "(cached) " >&6
7490 else
7491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7492 /* end confdefs.h. */
7493 $ac_includes_default
7494 int
7495 main ()
7496 {
7497 static int test_array [1 - 2 * !(((char) -1) < 0)];
7498 test_array [0] = 0;
7499 return test_array [0];
7500
7501 ;
7502 return 0;
7503 }
7504 _ACEOF
7505 if ac_fn_cxx_try_compile "$LINENO"; then :
7506 ac_cv_c_char_unsigned=no
7507 else
7508 ac_cv_c_char_unsigned=yes
7509 fi
7510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7511 fi
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
7513 $as_echo "$ac_cv_c_char_unsigned" >&6; }
7514 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
7515 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
7516
7517 fi
7518
7519
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
7521 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
7522 # Check whether --enable-maintainer-mode was given.
7523 if test "${enable_maintainer_mode+set}" = set; then :
7524 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
7525 else
7526 USE_MAINTAINER_MODE=no
7527 fi
7528
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
7530 $as_echo "$USE_MAINTAINER_MODE" >&6; }
7531 if test $USE_MAINTAINER_MODE = yes; then
7532 MAINTAINER_MODE_TRUE=
7533 MAINTAINER_MODE_FALSE='#'
7534 else
7535 MAINTAINER_MODE_TRUE='#'
7536 MAINTAINER_MODE_FALSE=
7537 fi
7538
7539 MAINT=$MAINTAINER_MODE_TRUE
7540
7541
7542
7543
7544 ac_fn_cxx_check_func "$LINENO" "getenv" "ac_cv_func_getenv"
7545 if test "x$ac_cv_func_getenv" = xyes; then :
7546
7547 $as_echo "#define HAVE_GETENV 1" >>confdefs.h
7548
7549 fi
7550
7551 ac_fn_cxx_check_func "$LINENO" "getline" "ac_cv_func_getline"
7552 if test "x$ac_cv_func_getline" = xyes; then :
7553
7554 $as_echo "#define HAVE_GETLINE 1" >>confdefs.h
7555
7556 fi
7557
7558 ac_fn_cxx_check_func "$LINENO" "getdelim" "ac_cv_func_getdelim"
7559 if test "x$ac_cv_func_getdelim" = xyes; then :
7560
7561 $as_echo "#define HAVE_GETDELIM 1" >>confdefs.h
7562
7563 fi
7564
7565 ac_fn_cxx_check_func "$LINENO" "fgetln" "ac_cv_func_fgetln"
7566 if test "x$ac_cv_func_fgetln" = xyes; then :
7567
7568 $as_echo "#define HAVE_FGETLN 1" >>confdefs.h
7569
7570 fi
7571
7572 ac_fn_cxx_check_func "$LINENO" "get_current_dir_name" "ac_cv_func_get_current_dir_name"
7573 if test "x$ac_cv_func_get_current_dir_name" = xyes; then :
7574
7575 $as_echo "#define HAVE_GET_CURRENT_DIR_NAME 1" >>confdefs.h
7576
7577 fi
7578
7579 ac_fn_cxx_check_func "$LINENO" "rsb_lib_init" "ac_cv_func_rsb_lib_init"
7580 if test "x$ac_cv_func_rsb_lib_init" = xyes; then :
7581
7582 fi
7583
7584 ac_fn_cxx_check_func "$LINENO" "pipe" "ac_cv_func_pipe"
7585 if test "x$ac_cv_func_pipe" = xyes; then :
7586
7587 fi
7588
7589
7590 ac_fn_cxx_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
7591 if test "x$ac_cv_func_memmem" = xyes; then :
7592
7593 $as_echo "#define HAVE_MEMMEM 1" >>confdefs.h
7594
7595 fi
7596
7597
7598 ac_fn_cxx_check_func "$LINENO" "sync" "ac_cv_func_sync"
7599 if test "x$ac_cv_func_sync" = xyes; then :
7600
7601 $as_echo "#define HAVE_SYNC 1" >>confdefs.h
7602
7603 fi
7604
7605
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
7607 $as_echo_n "checking for pow in -lm... " >&6; }
7608 if ${ac_cv_lib_m_pow+:} false; then :
7609 $as_echo_n "(cached) " >&6
7610 else
7611 ac_check_lib_save_LIBS=$LIBS
7612 LIBS="-lm $LIBS"
7613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7614 /* end confdefs.h. */
7615
7616 /* Override any GCC internal prototype to avoid an error.
7617 Use char because int might match the return type of a GCC
7618 builtin and then its argument prototype would still apply. */
7619 #ifdef __cplusplus
7620 extern "C"
7621 #endif
7622 char pow ();
7623 int
7624 main ()
7625 {
7626 return pow ();
7627 ;
7628 return 0;
7629 }
7630 _ACEOF
7631 if ac_fn_cxx_try_link "$LINENO"; then :
7632 ac_cv_lib_m_pow=yes
7633 else
7634 ac_cv_lib_m_pow=no
7635 fi
7636 rm -f core conftest.err conftest.$ac_objext \
7637 conftest$ac_exeext conftest.$ac_ext
7638 LIBS=$ac_check_lib_save_LIBS
7639 fi
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
7641 $as_echo "$ac_cv_lib_m_pow" >&6; }
7642 if test "x$ac_cv_lib_m_pow" = xyes; then :
7643 cat >>confdefs.h <<_ACEOF
7644 #define HAVE_LIBM 1
7645 _ACEOF
7646
7647 LIBS="-lm $LIBS"
7648
7649 fi
7650
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yylex in -lfl" >&5
7652 $as_echo_n "checking for yylex in -lfl... " >&6; }
7653 if ${ac_cv_lib_fl_yylex+:} false; then :
7654 $as_echo_n "(cached) " >&6
7655 else
7656 ac_check_lib_save_LIBS=$LIBS
7657 LIBS="-lfl $LIBS"
7658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7659 /* end confdefs.h. */
7660
7661 /* Override any GCC internal prototype to avoid an error.
7662 Use char because int might match the return type of a GCC
7663 builtin and then its argument prototype would still apply. */
7664 #ifdef __cplusplus
7665 extern "C"
7666 #endif
7667 char yylex ();
7668 int
7669 main ()
7670 {
7671 return yylex ();
7672 ;
7673 return 0;
7674 }
7675 _ACEOF
7676 if ac_fn_cxx_try_link "$LINENO"; then :
7677 ac_cv_lib_fl_yylex=yes
7678 else
7679 ac_cv_lib_fl_yylex=no
7680 fi
7681 rm -f core conftest.err conftest.$ac_objext \
7682 conftest$ac_exeext conftest.$ac_ext
7683 LIBS=$ac_check_lib_save_LIBS
7684 fi
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fl_yylex" >&5
7686 $as_echo "$ac_cv_lib_fl_yylex" >&6; }
7687 if test "x$ac_cv_lib_fl_yylex" = xyes; then :
7688 cat >>confdefs.h <<_ACEOF
7689 #define HAVE_LIBFL 1
7690 _ACEOF
7691
7692 LIBS="-lfl $LIBS"
7693
7694 fi
7695
7696 # Check whether --enable-graphicsmagick was given.
7697 if test "${enable_graphicsmagick+set}" = set; then :
7698 enableval=$enable_graphicsmagick; if test x$enableval != xno ; then fim_handle_graphicsmagick=yes ; fi
7699 fi
7700
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GetMagickVersion in -lGraphicsMagick" >&5
7702 $as_echo_n "checking for GetMagickVersion in -lGraphicsMagick... " >&6; }
7703 if ${ac_cv_lib_GraphicsMagick_GetMagickVersion+:} false; then :
7704 $as_echo_n "(cached) " >&6
7705 else
7706 ac_check_lib_save_LIBS=$LIBS
7707 LIBS="-lGraphicsMagick $LIBS"
7708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7709 /* end confdefs.h. */
7710
7711 /* Override any GCC internal prototype to avoid an error.
7712 Use char because int might match the return type of a GCC
7713 builtin and then its argument prototype would still apply. */
7714 #ifdef __cplusplus
7715 extern "C"
7716 #endif
7717 char GetMagickVersion ();
7718 int
7719 main ()
7720 {
7721 return GetMagickVersion ();
7722 ;
7723 return 0;
7724 }
7725 _ACEOF
7726 if ac_fn_cxx_try_link "$LINENO"; then :
7727 ac_cv_lib_GraphicsMagick_GetMagickVersion=yes
7728 else
7729 ac_cv_lib_GraphicsMagick_GetMagickVersion=no
7730 fi
7731 rm -f core conftest.err conftest.$ac_objext \
7732 conftest$ac_exeext conftest.$ac_ext
7733 LIBS=$ac_check_lib_save_LIBS
7734 fi
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GraphicsMagick_GetMagickVersion" >&5
7736 $as_echo "$ac_cv_lib_GraphicsMagick_GetMagickVersion" >&6; }
7737 if test "x$ac_cv_lib_GraphicsMagick_GetMagickVersion" = xyes; then :
7738
7739 if test x"$fim_handle_graphicsmagick" = x"yes" ; then
7740 FIM_LIB_OBJECTS="$FIM_LIB_OBJECTS FbiStuffMagick.o";
7741 LIBS="$LIBS `GraphicsMagick-config --cppflags --ldflags --libs|tr '\n' ' '` ";
7742 CXXFLAGS="$CXXFLAGS `GraphicsMagick-config --cppflags |tr '\n' ' '` ";
7743
7744 $as_echo "#define HAVE_LIBGRAPHICSMAGICK 1" >>confdefs.h
7745
7746 fi
7747
7748 else
7749 fim_handle_graphicsmagick=no;
7750 fi
7751
7752 if test x$fim_handle_graphicsmagick = xyes; then
7753 WITH_LIBGRAPHICSMAGICK_TRUE=
7754 WITH_LIBGRAPHICSMAGICK_FALSE='#'
7755 else
7756 WITH_LIBGRAPHICSMAGICK_TRUE='#'
7757 WITH_LIBGRAPHICSMAGICK_FALSE=
7758 fi
7759
7760
7761 # Check whether --enable-imlib2 was given.
7762 if test "${enable_imlib2+set}" = set; then :
7763 enableval=$enable_imlib2; if test x$enableval != xno ; then fim_handle_imlib2=yes ; fi
7764 fi
7765
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for imlib_create_image in -lImlib2" >&5
7767 $as_echo_n "checking for imlib_create_image in -lImlib2... " >&6; }
7768 if ${ac_cv_lib_Imlib2_imlib_create_image+:} false; then :
7769 $as_echo_n "(cached) " >&6
7770 else
7771 ac_check_lib_save_LIBS=$LIBS
7772 LIBS="-lImlib2 $LIBS"
7773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7774 /* end confdefs.h. */
7775
7776 /* Override any GCC internal prototype to avoid an error.
7777 Use char because int might match the return type of a GCC
7778 builtin and then its argument prototype would still apply. */
7779 #ifdef __cplusplus
7780 extern "C"
7781 #endif
7782 char imlib_create_image ();
7783 int
7784 main ()
7785 {
7786 return imlib_create_image ();
7787 ;
7788 return 0;
7789 }
7790 _ACEOF
7791 if ac_fn_cxx_try_link "$LINENO"; then :
7792 ac_cv_lib_Imlib2_imlib_create_image=yes
7793 else
7794 ac_cv_lib_Imlib2_imlib_create_image=no
7795 fi
7796 rm -f core conftest.err conftest.$ac_objext \
7797 conftest$ac_exeext conftest.$ac_ext
7798 LIBS=$ac_check_lib_save_LIBS
7799 fi
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Imlib2_imlib_create_image" >&5
7801 $as_echo "$ac_cv_lib_Imlib2_imlib_create_image" >&6; }
7802 if test "x$ac_cv_lib_Imlib2_imlib_create_image" = xyes; then :
7803
7804 if test x"$fim_handle_imlib2" = x"yes" ; then
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Imlib2 support is still INCOMPLETE, you should better use sdl!" >&5
7806 $as_echo "$as_me: WARNING: Imlib2 support is still INCOMPLETE, you should better use sdl!" >&2;}
7807 FIM_LIB_OBJECTS="$FIM_LIB_OBJECTS Imlib2Device.o";
7808 LIBS="$LIBS `imlib2-config --libs|tr '\n' ' '` ";
7809 CXXFLAGS="$CXXFLAGS `imlib2-config --cflags |tr '\n' ' '` ";
7810
7811 $as_echo "#define FIM_WITH_LIBIMLIB2 1" >>confdefs.h
7812
7813 fi
7814
7815 else
7816 fim_handle_imlib2=no;
7817 fi
7818
7819 if test x"$fim_handle_imlib2" = x"yes"; then
7820 ENABLE_IMLIB2_TRUE=
7821 ENABLE_IMLIB2_FALSE='#'
7822 else
7823 ENABLE_IMLIB2_TRUE='#'
7824 ENABLE_IMLIB2_FALSE=
7825 fi
7826
7827
7828 # Extract the first word of "flex", so it can be a program name with args.
7829 set dummy flex; ac_word=$2
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7831 $as_echo_n "checking for $ac_word... " >&6; }
7832 if ${ac_cv_prog_HAVE_FLEX+:} false; then :
7833 $as_echo_n "(cached) " >&6
7834 else
7835 if test -n "$HAVE_FLEX"; then
7836 ac_cv_prog_HAVE_FLEX="$HAVE_FLEX" # Let the user override the test.
7837 else
7838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7839 for as_dir in $PATH
7840 do
7841 IFS=$as_save_IFS
7842 test -z "$as_dir" && as_dir=.
7843 for ac_exec_ext in '' $ac_executable_extensions; do
7844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7845 ac_cv_prog_HAVE_FLEX="yes"
7846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7847 break 2
7848 fi
7849 done
7850 done
7851 IFS=$as_save_IFS
7852
7853 test -z "$ac_cv_prog_HAVE_FLEX" && ac_cv_prog_HAVE_FLEX="no"
7854 fi
7855 fi
7856 HAVE_FLEX=$ac_cv_prog_HAVE_FLEX
7857 if test -n "$HAVE_FLEX"; then
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_FLEX" >&5
7859 $as_echo "$HAVE_FLEX" >&6; }
7860 else
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7862 $as_echo "no" >&6; }
7863 fi
7864
7865
7866 # Extract the first word of "bison", so it can be a program name with args.
7867 set dummy bison; ac_word=$2
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7869 $as_echo_n "checking for $ac_word... " >&6; }
7870 if ${ac_cv_prog_HAVE_BISON+:} false; then :
7871 $as_echo_n "(cached) " >&6
7872 else
7873 if test -n "$HAVE_BISON"; then
7874 ac_cv_prog_HAVE_BISON="$HAVE_BISON" # Let the user override the test.
7875 else
7876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7877 for as_dir in $PATH
7878 do
7879 IFS=$as_save_IFS
7880 test -z "$as_dir" && as_dir=.
7881 for ac_exec_ext in '' $ac_executable_extensions; do
7882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7883 ac_cv_prog_HAVE_BISON="yes"
7884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7885 break 2
7886 fi
7887 done
7888 done
7889 IFS=$as_save_IFS
7890
7891 test -z "$ac_cv_prog_HAVE_BISON" && ac_cv_prog_HAVE_BISON="no"
7892 fi
7893 fi
7894 HAVE_BISON=$ac_cv_prog_HAVE_BISON
7895 if test -n "$HAVE_BISON"; then
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_BISON" >&5
7897 $as_echo "$HAVE_BISON" >&6; }
7898 else
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7900 $as_echo "no" >&6; }
7901 fi
7902
7903
7904 if test x$HAVE_FLEX != x"yes" ; then
7905 as_fn_error $? "No flex (lexical analyser generator) executable detected!" "$LINENO" 5 ;
7906 fi
7907 if test x$HAVE_BISON != x"yes" ; then
7908 as_fn_error $? "No bison (parser generator) executable detected!" "$LINENO" 5 ;
7909 fi
7910
7911 # Extract the first word of "echo", so it can be a program name with args.
7912 set dummy echo; ac_word=$2
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7914 $as_echo_n "checking for $ac_word... " >&6; }
7915 if ${ac_cv_prog_HAVE_ECHO+:} false; then :
7916 $as_echo_n "(cached) " >&6
7917 else
7918 if test -n "$HAVE_ECHO"; then
7919 ac_cv_prog_HAVE_ECHO="$HAVE_ECHO" # Let the user override the test.
7920 else
7921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7922 for as_dir in $PATH
7923 do
7924 IFS=$as_save_IFS
7925 test -z "$as_dir" && as_dir=.
7926 for ac_exec_ext in '' $ac_executable_extensions; do
7927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7928 ac_cv_prog_HAVE_ECHO="yes"
7929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7930 break 2
7931 fi
7932 done
7933 done
7934 IFS=$as_save_IFS
7935
7936 test -z "$ac_cv_prog_HAVE_ECHO" && ac_cv_prog_HAVE_ECHO="no"
7937 fi
7938 fi
7939 HAVE_ECHO=$ac_cv_prog_HAVE_ECHO
7940 if test -n "$HAVE_ECHO"; then
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_ECHO" >&5
7942 $as_echo "$HAVE_ECHO" >&6; }
7943 else
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7945 $as_echo "no" >&6; }
7946 fi
7947
7948
7949 # Extract the first word of "rm", so it can be a program name with args.
7950 set dummy rm; ac_word=$2
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7952 $as_echo_n "checking for $ac_word... " >&6; }
7953 if ${ac_cv_prog_HAVE_RM+:} false; then :
7954 $as_echo_n "(cached) " >&6
7955 else
7956 if test -n "$HAVE_RM"; then
7957 ac_cv_prog_HAVE_RM="$HAVE_RM" # Let the user override the test.
7958 else
7959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7960 for as_dir in $PATH
7961 do
7962 IFS=$as_save_IFS
7963 test -z "$as_dir" && as_dir=.
7964 for ac_exec_ext in '' $ac_executable_extensions; do
7965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7966 ac_cv_prog_HAVE_RM="yes"
7967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7968 break 2
7969 fi
7970 done
7971 done
7972 IFS=$as_save_IFS
7973
7974 test -z "$ac_cv_prog_HAVE_RM" && ac_cv_prog_HAVE_RM="no"
7975 fi
7976 fi
7977 HAVE_RM=$ac_cv_prog_HAVE_RM
7978 if test -n "$HAVE_RM"; then
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RM" >&5
7980 $as_echo "$HAVE_RM" >&6; }
7981 else
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7983 $as_echo "no" >&6; }
7984 fi
7985
7986
7987 # Extract the first word of "sed", so it can be a program name with args.
7988 set dummy sed; ac_word=$2
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7990 $as_echo_n "checking for $ac_word... " >&6; }
7991 if ${ac_cv_prog_HAVE_SED+:} false; then :
7992 $as_echo_n "(cached) " >&6
7993 else
7994 if test -n "$HAVE_SED"; then
7995 ac_cv_prog_HAVE_SED="$HAVE_SED" # Let the user override the test.
7996 else
7997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7998 for as_dir in $PATH
7999 do
8000 IFS=$as_save_IFS
8001 test -z "$as_dir" && as_dir=.
8002 for ac_exec_ext in '' $ac_executable_extensions; do
8003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8004 ac_cv_prog_HAVE_SED="yes"
8005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8006 break 2
8007 fi
8008 done
8009 done
8010 IFS=$as_save_IFS
8011
8012 test -z "$ac_cv_prog_HAVE_SED" && ac_cv_prog_HAVE_SED="no"
8013 fi
8014 fi
8015 HAVE_SED=$ac_cv_prog_HAVE_SED
8016 if test -n "$HAVE_SED"; then
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_SED" >&5
8018 $as_echo "$HAVE_SED" >&6; }
8019 else
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8021 $as_echo "no" >&6; }
8022 fi
8023
8024
8025 # Extract the first word of "grep", so it can be a program name with args.
8026 set dummy grep; ac_word=$2
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8028 $as_echo_n "checking for $ac_word... " >&6; }
8029 if ${ac_cv_prog_HAVE_GREP+:} false; then :
8030 $as_echo_n "(cached) " >&6
8031 else
8032 if test -n "$HAVE_GREP"; then
8033 ac_cv_prog_HAVE_GREP="$HAVE_GREP" # Let the user override the test.
8034 else
8035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8036 for as_dir in $PATH
8037 do
8038 IFS=$as_save_IFS
8039 test -z "$as_dir" && as_dir=.
8040 for ac_exec_ext in '' $ac_executable_extensions; do
8041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8042 ac_cv_prog_HAVE_GREP="yes"
8043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8044 break 2
8045 fi
8046 done
8047 done
8048 IFS=$as_save_IFS
8049
8050 test -z "$ac_cv_prog_HAVE_GREP" && ac_cv_prog_HAVE_GREP="no"
8051 fi
8052 fi
8053 HAVE_GREP=$ac_cv_prog_HAVE_GREP
8054 if test -n "$HAVE_GREP"; then
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GREP" >&5
8056 $as_echo "$HAVE_GREP" >&6; }
8057 else
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8059 $as_echo "no" >&6; }
8060 fi
8061
8062
8063 # Extract the first word of "sort", so it can be a program name with args.
8064 set dummy sort; ac_word=$2
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8066 $as_echo_n "checking for $ac_word... " >&6; }
8067 if ${ac_cv_prog_HAVE_SORT+:} false; then :
8068 $as_echo_n "(cached) " >&6
8069 else
8070 if test -n "$HAVE_SORT"; then
8071 ac_cv_prog_HAVE_SORT="$HAVE_SORT" # Let the user override the test.
8072 else
8073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8074 for as_dir in $PATH
8075 do
8076 IFS=$as_save_IFS
8077 test -z "$as_dir" && as_dir=.
8078 for ac_exec_ext in '' $ac_executable_extensions; do
8079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8080 ac_cv_prog_HAVE_SORT="yes"
8081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8082 break 2
8083 fi
8084 done
8085 done
8086 IFS=$as_save_IFS
8087
8088 test -z "$ac_cv_prog_HAVE_SORT" && ac_cv_prog_HAVE_SORT="no"
8089 fi
8090 fi
8091 HAVE_SORT=$ac_cv_prog_HAVE_SORT
8092 if test -n "$HAVE_SORT"; then
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_SORT" >&5
8094 $as_echo "$HAVE_SORT" >&6; }
8095 else
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8097 $as_echo "no" >&6; }
8098 fi
8099
8100
8101 # Extract the first word of "cpp", so it can be a program name with args.
8102 set dummy cpp; ac_word=$2
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8104 $as_echo_n "checking for $ac_word... " >&6; }
8105 if ${ac_cv_prog_HAVE_CPP+:} false; then :
8106 $as_echo_n "(cached) " >&6
8107 else
8108 if test -n "$HAVE_CPP"; then
8109 ac_cv_prog_HAVE_CPP="$HAVE_CPP" # Let the user override the test.
8110 else
8111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8112 for as_dir in $PATH
8113 do
8114 IFS=$as_save_IFS
8115 test -z "$as_dir" && as_dir=.
8116 for ac_exec_ext in '' $ac_executable_extensions; do
8117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8118 ac_cv_prog_HAVE_CPP="yes"
8119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8120 break 2
8121 fi
8122 done
8123 done
8124 IFS=$as_save_IFS
8125
8126 test -z "$ac_cv_prog_HAVE_CPP" && ac_cv_prog_HAVE_CPP="no"
8127 fi
8128 fi
8129 HAVE_CPP=$ac_cv_prog_HAVE_CPP
8130 if test -n "$HAVE_CPP"; then
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_CPP" >&5
8132 $as_echo "$HAVE_CPP" >&6; }
8133 else
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8135 $as_echo "no" >&6; }
8136 fi
8137
8138
8139 # Extract the first word of "awk", so it can be a program name with args.
8140 set dummy awk; ac_word=$2
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8142 $as_echo_n "checking for $ac_word... " >&6; }
8143 if ${ac_cv_prog_HAVE_AWK+:} false; then :
8144 $as_echo_n "(cached) " >&6
8145 else
8146 if test -n "$HAVE_AWK"; then
8147 ac_cv_prog_HAVE_AWK="$HAVE_AWK" # Let the user override the test.
8148 else
8149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8150 for as_dir in $PATH
8151 do
8152 IFS=$as_save_IFS
8153 test -z "$as_dir" && as_dir=.
8154 for ac_exec_ext in '' $ac_executable_extensions; do
8155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8156 ac_cv_prog_HAVE_AWK="yes"
8157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8158 break 2
8159 fi
8160 done
8161 done
8162 IFS=$as_save_IFS
8163
8164 test -z "$ac_cv_prog_HAVE_AWK" && ac_cv_prog_HAVE_AWK="no"
8165 fi
8166 fi
8167 HAVE_AWK=$ac_cv_prog_HAVE_AWK
8168 if test -n "$HAVE_AWK"; then
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_AWK" >&5
8170 $as_echo "$HAVE_AWK" >&6; }
8171 else
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8173 $as_echo "no" >&6; }
8174 fi
8175
8176
8177 # Extract the first word of "cat", so it can be a program name with args.
8178 set dummy cat; ac_word=$2
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8180 $as_echo_n "checking for $ac_word... " >&6; }
8181 if ${ac_cv_prog_HAVE_CAT+:} false; then :
8182 $as_echo_n "(cached) " >&6
8183 else
8184 if test -n "$HAVE_CAT"; then
8185 ac_cv_prog_HAVE_CAT="$HAVE_CAT" # Let the user override the test.
8186 else
8187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8188 for as_dir in $PATH
8189 do
8190 IFS=$as_save_IFS
8191 test -z "$as_dir" && as_dir=.
8192 for ac_exec_ext in '' $ac_executable_extensions; do
8193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8194 ac_cv_prog_HAVE_CAT="yes"
8195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8196 break 2
8197 fi
8198 done
8199 done
8200 IFS=$as_save_IFS
8201
8202 test -z "$ac_cv_prog_HAVE_CAT" && ac_cv_prog_HAVE_CAT="no"
8203 fi
8204 fi
8205 HAVE_CAT=$ac_cv_prog_HAVE_CAT
8206 if test -n "$HAVE_CAT"; then
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_CAT" >&5
8208 $as_echo "$HAVE_CAT" >&6; }
8209 else
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8211 $as_echo "no" >&6; }
8212 fi
8213
8214
8215 # Extract the first word of "man", so it can be a program name with args.
8216 set dummy man; ac_word=$2
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8218 $as_echo_n "checking for $ac_word... " >&6; }
8219 if ${ac_cv_prog_HAVE_MAN+:} false; then :
8220 $as_echo_n "(cached) " >&6
8221 else
8222 if test -n "$HAVE_MAN"; then
8223 ac_cv_prog_HAVE_MAN="$HAVE_MAN" # Let the user override the test.
8224 else
8225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8226 for as_dir in $PATH
8227 do
8228 IFS=$as_save_IFS
8229 test -z "$as_dir" && as_dir=.
8230 for ac_exec_ext in '' $ac_executable_extensions; do
8231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8232 ac_cv_prog_HAVE_MAN="yes"
8233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8234 break 2
8235 fi
8236 done
8237 done
8238 IFS=$as_save_IFS
8239
8240 test -z "$ac_cv_prog_HAVE_MAN" && ac_cv_prog_HAVE_MAN="no"
8241 fi
8242 fi
8243 HAVE_MAN=$ac_cv_prog_HAVE_MAN
8244 if test -n "$HAVE_MAN"; then
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_MAN" >&5
8246 $as_echo "$HAVE_MAN" >&6; }
8247 else
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8249 $as_echo "no" >&6; }
8250 fi
8251
8252
8253 # Extract the first word of "groff", so it can be a program name with args.
8254 set dummy groff; ac_word=$2
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8256 $as_echo_n "checking for $ac_word... " >&6; }
8257 if ${ac_cv_prog_HAVE_GROFF+:} false; then :
8258 $as_echo_n "(cached) " >&6
8259 else
8260 if test -n "$HAVE_GROFF"; then
8261 ac_cv_prog_HAVE_GROFF="$HAVE_GROFF" # Let the user override the test.
8262 else
8263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8264 for as_dir in $PATH
8265 do
8266 IFS=$as_save_IFS
8267 test -z "$as_dir" && as_dir=.
8268 for ac_exec_ext in '' $ac_executable_extensions; do
8269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8270 ac_cv_prog_HAVE_GROFF="yes"
8271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8272 break 2
8273 fi
8274 done
8275 done
8276 IFS=$as_save_IFS
8277
8278 test -z "$ac_cv_prog_HAVE_GROFF" && ac_cv_prog_HAVE_GROFF="no"
8279 fi
8280 fi
8281 HAVE_GROFF=$ac_cv_prog_HAVE_GROFF
8282 if test -n "$HAVE_GROFF"; then
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GROFF" >&5
8284 $as_echo "$HAVE_GROFF" >&6; }
8285 else
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8287 $as_echo "no" >&6; }
8288 fi
8289
8290
8291 #AC_CHECK_PROG([HAVE_WHICH],[which],[yes],[no])
8292 #AC_CHECK_PROG([HAVE_GPG],[gpg],[yes],[no])
8293 #AC_CHECK_PROG([HAVE_LS],[ls],[yes],[no])
8294 #AC_CHECK_PROG([HAVE_CD],[cd],[yes],[no])
8295 #AC_CHECK_PROG([HAVE_CC],[cc],[yes],[no])
8296
8297
8298
8299
8300
8301
8302 # Extract the first word of "rm", so it can be a program name with args.
8303 set dummy rm; ac_word=$2
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8305 $as_echo_n "checking for $ac_word... " >&6; }
8306 if ${ac_cv_path_RM+:} false; then :
8307 $as_echo_n "(cached) " >&6
8308 else
8309 case $RM in
8310 [\\/]* | ?:[\\/]*)
8311 ac_cv_path_RM="$RM" # Let the user override the test with a path.
8312 ;;
8313 *)
8314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8315 for as_dir in $PATH
8316 do
8317 IFS=$as_save_IFS
8318 test -z "$as_dir" && as_dir=.
8319 for ac_exec_ext in '' $ac_executable_extensions; do
8320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8321 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
8322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8323 break 2
8324 fi
8325 done
8326 done
8327 IFS=$as_save_IFS
8328
8329 test -z "$ac_cv_path_RM" && ac_cv_path_RM="no"
8330 ;;
8331 esac
8332 fi
8333 RM=$ac_cv_path_RM
8334 if test -n "$RM"; then
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
8336 $as_echo "$RM" >&6; }
8337 else
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8339 $as_echo "no" >&6; }
8340 fi
8341
8342
8343 # Extract the first word of "sed", so it can be a program name with args.
8344 set dummy sed; ac_word=$2
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8346 $as_echo_n "checking for $ac_word... " >&6; }
8347 if ${ac_cv_path_SED+:} false; then :
8348 $as_echo_n "(cached) " >&6
8349 else
8350 case $SED in
8351 [\\/]* | ?:[\\/]*)
8352 ac_cv_path_SED="$SED" # Let the user override the test with a path.
8353 ;;
8354 *)
8355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8356 for as_dir in $PATH
8357 do
8358 IFS=$as_save_IFS
8359 test -z "$as_dir" && as_dir=.
8360 for ac_exec_ext in '' $ac_executable_extensions; do
8361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8362 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
8363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8364 break 2
8365 fi
8366 done
8367 done
8368 IFS=$as_save_IFS
8369
8370 test -z "$ac_cv_path_SED" && ac_cv_path_SED="no"
8371 ;;
8372 esac
8373 fi
8374 SED=$ac_cv_path_SED
8375 if test -n "$SED"; then
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
8377 $as_echo "$SED" >&6; }
8378 else
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8380 $as_echo "no" >&6; }
8381 fi
8382
8383
8384 # Extract the first word of "grep", so it can be a program name with args.
8385 set dummy grep; ac_word=$2
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8387 $as_echo_n "checking for $ac_word... " >&6; }
8388 if ${ac_cv_path_GREP+:} false; then :
8389 $as_echo_n "(cached) " >&6
8390 else
8391 case $GREP in
8392 [\\/]* | ?:[\\/]*)
8393 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
8394 ;;
8395 *)
8396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8397 for as_dir in $PATH
8398 do
8399 IFS=$as_save_IFS
8400 test -z "$as_dir" && as_dir=.
8401 for ac_exec_ext in '' $ac_executable_extensions; do
8402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8403 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
8404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8405 break 2
8406 fi
8407 done
8408 done
8409 IFS=$as_save_IFS
8410
8411 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="no"
8412 ;;
8413 esac
8414 fi
8415 GREP=$ac_cv_path_GREP
8416 if test -n "$GREP"; then
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
8418 $as_echo "$GREP" >&6; }
8419 else
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8421 $as_echo "no" >&6; }
8422 fi
8423
8424
8425 # Extract the first word of "echo", so it can be a program name with args.
8426 set dummy echo; ac_word=$2
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8428 $as_echo_n "checking for $ac_word... " >&6; }
8429 if ${ac_cv_path_ECHO+:} false; then :
8430 $as_echo_n "(cached) " >&6
8431 else
8432 case $ECHO in
8433 [\\/]* | ?:[\\/]*)
8434 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
8435 ;;
8436 *)
8437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8438 for as_dir in $PATH
8439 do
8440 IFS=$as_save_IFS
8441 test -z "$as_dir" && as_dir=.
8442 for ac_exec_ext in '' $ac_executable_extensions; do
8443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8444 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
8445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8446 break 2
8447 fi
8448 done
8449 done
8450 IFS=$as_save_IFS
8451
8452 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="no"
8453 ;;
8454 esac
8455 fi
8456 ECHO=$ac_cv_path_ECHO
8457 if test -n "$ECHO"; then
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
8459 $as_echo "$ECHO" >&6; }
8460 else
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8462 $as_echo "no" >&6; }
8463 fi
8464
8465
8466 # Extract the first word of "sort", so it can be a program name with args.
8467 set dummy sort; ac_word=$2
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8469 $as_echo_n "checking for $ac_word... " >&6; }
8470 if ${ac_cv_path_SORT+:} false; then :
8471 $as_echo_n "(cached) " >&6
8472 else
8473 case $SORT in
8474 [\\/]* | ?:[\\/]*)
8475 ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
8476 ;;
8477 *)
8478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8479 for as_dir in $PATH
8480 do
8481 IFS=$as_save_IFS
8482 test -z "$as_dir" && as_dir=.
8483 for ac_exec_ext in '' $ac_executable_extensions; do
8484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8485 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
8486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8487 break 2
8488 fi
8489 done
8490 done
8491 IFS=$as_save_IFS
8492
8493 test -z "$ac_cv_path_SORT" && ac_cv_path_SORT="no"
8494 ;;
8495 esac
8496 fi
8497 SORT=$ac_cv_path_SORT
8498 if test -n "$SORT"; then
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
8500 $as_echo "$SORT" >&6; }
8501 else
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8503 $as_echo "no" >&6; }
8504 fi
8505
8506
8507 # Extract the first word of "cpp", so it can be a program name with args.
8508 set dummy cpp; ac_word=$2
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8510 $as_echo_n "checking for $ac_word... " >&6; }
8511 if ${ac_cv_path_CPP+:} false; then :
8512 $as_echo_n "(cached) " >&6
8513 else
8514 case $CPP in
8515 [\\/]* | ?:[\\/]*)
8516 ac_cv_path_CPP="$CPP" # Let the user override the test with a path.
8517 ;;
8518 *)
8519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8520 for as_dir in $PATH
8521 do
8522 IFS=$as_save_IFS
8523 test -z "$as_dir" && as_dir=.
8524 for ac_exec_ext in '' $ac_executable_extensions; do
8525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8526 ac_cv_path_CPP="$as_dir/$ac_word$ac_exec_ext"
8527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8528 break 2
8529 fi
8530 done
8531 done
8532 IFS=$as_save_IFS
8533
8534 test -z "$ac_cv_path_CPP" && ac_cv_path_CPP="no"
8535 ;;
8536 esac
8537 fi
8538 CPP=$ac_cv_path_CPP
8539 if test -n "$CPP"; then
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8541 $as_echo "$CPP" >&6; }
8542 else
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8544 $as_echo "no" >&6; }
8545 fi
8546
8547
8548 # Extract the first word of "awk", so it can be a program name with args.
8549 set dummy awk; ac_word=$2
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8551 $as_echo_n "checking for $ac_word... " >&6; }
8552 if ${ac_cv_path_AWK+:} false; then :
8553 $as_echo_n "(cached) " >&6
8554 else
8555 case $AWK in
8556 [\\/]* | ?:[\\/]*)
8557 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
8558 ;;
8559 *)
8560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8561 for as_dir in $PATH
8562 do
8563 IFS=$as_save_IFS
8564 test -z "$as_dir" && as_dir=.
8565 for ac_exec_ext in '' $ac_executable_extensions; do
8566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8567 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
8568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8569 break 2
8570 fi
8571 done
8572 done
8573 IFS=$as_save_IFS
8574
8575 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="no"
8576 ;;
8577 esac
8578 fi
8579 AWK=$ac_cv_path_AWK
8580 if test -n "$AWK"; then
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8582 $as_echo "$AWK" >&6; }
8583 else
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8585 $as_echo "no" >&6; }
8586 fi
8587
8588
8589 # Extract the first word of "cat", so it can be a program name with args.
8590 set dummy cat; ac_word=$2
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8592 $as_echo_n "checking for $ac_word... " >&6; }
8593 if ${ac_cv_path_CAT+:} false; then :
8594 $as_echo_n "(cached) " >&6
8595 else
8596 case $CAT in
8597 [\\/]* | ?:[\\/]*)
8598 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
8599 ;;
8600 *)
8601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8602 for as_dir in $PATH
8603 do
8604 IFS=$as_save_IFS
8605 test -z "$as_dir" && as_dir=.
8606 for ac_exec_ext in '' $ac_executable_extensions; do
8607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8608 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
8609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8610 break 2
8611 fi
8612 done
8613 done
8614 IFS=$as_save_IFS
8615
8616 test -z "$ac_cv_path_CAT" && ac_cv_path_CAT="no"
8617 ;;
8618 esac
8619 fi
8620 CAT=$ac_cv_path_CAT
8621 if test -n "$CAT"; then
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
8623 $as_echo "$CAT" >&6; }
8624 else
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8626 $as_echo "no" >&6; }
8627 fi
8628
8629
8630 # Extract the first word of "man", so it can be a program name with args.
8631 set dummy man; ac_word=$2
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8633 $as_echo_n "checking for $ac_word... " >&6; }
8634 if ${ac_cv_path_MAN+:} false; then :
8635 $as_echo_n "(cached) " >&6
8636 else
8637 case $MAN in
8638 [\\/]* | ?:[\\/]*)
8639 ac_cv_path_MAN="$MAN" # Let the user override the test with a path.
8640 ;;
8641 *)
8642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8643 for as_dir in $PATH
8644 do
8645 IFS=$as_save_IFS
8646 test -z "$as_dir" && as_dir=.
8647 for ac_exec_ext in '' $ac_executable_extensions; do
8648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8649 ac_cv_path_MAN="$as_dir/$ac_word$ac_exec_ext"
8650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8651 break 2
8652 fi
8653 done
8654 done
8655 IFS=$as_save_IFS
8656
8657 test -z "$ac_cv_path_MAN" && ac_cv_path_MAN="no"
8658 ;;
8659 esac
8660 fi
8661 MAN=$ac_cv_path_MAN
8662 if test -n "$MAN"; then
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAN" >&5
8664 $as_echo "$MAN" >&6; }
8665 else
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8667 $as_echo "no" >&6; }
8668 fi
8669
8670
8671 # Extract the first word of "perl", so it can be a program name with args.
8672 set dummy perl; ac_word=$2
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8674 $as_echo_n "checking for $ac_word... " >&6; }
8675 if ${ac_cv_path_PERL+:} false; then :
8676 $as_echo_n "(cached) " >&6
8677 else
8678 case $PERL in
8679 [\\/]* | ?:[\\/]*)
8680 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
8681 ;;
8682 *)
8683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8684 for as_dir in $PATH
8685 do
8686 IFS=$as_save_IFS
8687 test -z "$as_dir" && as_dir=.
8688 for ac_exec_ext in '' $ac_executable_extensions; do
8689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8690 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
8691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8692 break 2
8693 fi
8694 done
8695 done
8696 IFS=$as_save_IFS
8697
8698 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
8699 ;;
8700 esac
8701 fi
8702 PERL=$ac_cv_path_PERL
8703 if test -n "$PERL"; then
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
8705 $as_echo "$PERL" >&6; }
8706 else
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8708 $as_echo "no" >&6; }
8709 fi
8710
8711
8712 # Extract the first word of "shellcheck", so it can be a program name with args.
8713 set dummy shellcheck; ac_word=$2
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8715 $as_echo_n "checking for $ac_word... " >&6; }
8716 if ${ac_cv_path_SHELLCHECK+:} false; then :
8717 $as_echo_n "(cached) " >&6
8718 else
8719 case $SHELLCHECK in
8720 [\\/]* | ?:[\\/]*)
8721 ac_cv_path_SHELLCHECK="$SHELLCHECK" # Let the user override the test with a path.
8722 ;;
8723 *)
8724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8725 for as_dir in $PATH
8726 do
8727 IFS=$as_save_IFS
8728 test -z "$as_dir" && as_dir=.
8729 for ac_exec_ext in '' $ac_executable_extensions; do
8730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8731 ac_cv_path_SHELLCHECK="$as_dir/$ac_word$ac_exec_ext"
8732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8733 break 2
8734 fi
8735 done
8736 done
8737 IFS=$as_save_IFS
8738
8739 test -z "$ac_cv_path_SHELLCHECK" && ac_cv_path_SHELLCHECK="no"
8740 ;;
8741 esac
8742 fi
8743 SHELLCHECK=$ac_cv_path_SHELLCHECK
8744 if test -n "$SHELLCHECK"; then
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHELLCHECK" >&5
8746 $as_echo "$SHELLCHECK" >&6; }
8747 else
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8749 $as_echo "no" >&6; }
8750 fi
8751
8752
8753 if test x$ac_cv_path_SHELLCHECK != xno; then
8754 WITH_SHELLCHECK_TRUE=
8755 WITH_SHELLCHECK_FALSE='#'
8756 else
8757 WITH_SHELLCHECK_TRUE='#'
8758 WITH_SHELLCHECK_FALSE=
8759 fi
8760
8761 if test x$ac_cv_path_MAN != xno; then
8762 WITH_MAN2HTML_TRUE=
8763 WITH_MAN2HTML_FALSE='#'
8764 else
8765 WITH_MAN2HTML_TRUE='#'
8766 WITH_MAN2HTML_FALSE=
8767 fi
8768
8769 if test x$ac_cv_path_PERL != xno; then
8770 WITH_PERL_TRUE=
8771 WITH_PERL_FALSE='#'
8772 else
8773 WITH_PERL_TRUE='#'
8774 WITH_PERL_FALSE=
8775 fi
8776
8777 if test x$ac_cv_prog_HAVE_GROFF != xno; then
8778 WITH_GROFF_TRUE=
8779 WITH_GROFF_FALSE='#'
8780 else
8781 WITH_GROFF_TRUE='#'
8782 WITH_GROFF_FALSE=
8783 fi
8784
8785 if test x$ac_cv_prog_HAVE_MAN != xno; then
8786 WITH_MAN_TRUE=
8787 WITH_MAN_FALSE='#'
8788 else
8789 WITH_MAN_TRUE='#'
8790 WITH_MAN_FALSE=
8791 fi
8792
8793 #AC_PATH_PROG([CC],[cc],[no])
8794 #AC_PATH_PROG([WHICH],[which],[no])
8795 #AC_PATH_PROG([GPG],[gpg],[no])
8796 #AC_PATH_PROG([LS],[ls],[no])
8797 #AC_PATH_PROG([CD],[cd],[no])
8798 # Extract the first word of "expect", so it can be a program name with args.
8799 set dummy expect; ac_word=$2
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8801 $as_echo_n "checking for $ac_word... " >&6; }
8802 if ${ac_cv_path_EXPECT+:} false; then :
8803 $as_echo_n "(cached) " >&6
8804 else
8805 case $EXPECT in
8806 [\\/]* | ?:[\\/]*)
8807 ac_cv_path_EXPECT="$EXPECT" # Let the user override the test with a path.
8808 ;;
8809 *)
8810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8811 for as_dir in $PATH
8812 do
8813 IFS=$as_save_IFS
8814 test -z "$as_dir" && as_dir=.
8815 for ac_exec_ext in '' $ac_executable_extensions; do
8816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8817 ac_cv_path_EXPECT="$as_dir/$ac_word$ac_exec_ext"
8818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8819 break 2
8820 fi
8821 done
8822 done
8823 IFS=$as_save_IFS
8824
8825 test -z "$ac_cv_path_EXPECT" && ac_cv_path_EXPECT="no"
8826 ;;
8827 esac
8828 fi
8829 EXPECT=$ac_cv_path_EXPECT
8830 if test -n "$EXPECT"; then
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8832 $as_echo "$EXPECT" >&6; }
8833 else
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8835 $as_echo "no" >&6; }
8836 fi
8837
8838
8839 if test -n "$ac_tool_prefix"; then
8840 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8841 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8843 $as_echo_n "checking for $ac_word... " >&6; }
8844 if ${ac_cv_path_PKG_CONFIG+:} false; then :
8845 $as_echo_n "(cached) " >&6
8846 else
8847 case $PKG_CONFIG in
8848 [\\/]* | ?:[\\/]*)
8849 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8850 ;;
8851 *)
8852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8853 for as_dir in $PATH
8854 do
8855 IFS=$as_save_IFS
8856 test -z "$as_dir" && as_dir=.
8857 for ac_exec_ext in '' $ac_executable_extensions; do
8858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8859 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8861 break 2
8862 fi
8863 done
8864 done
8865 IFS=$as_save_IFS
8866
8867 ;;
8868 esac
8869 fi
8870 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8871 if test -n "$PKG_CONFIG"; then
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8873 $as_echo "$PKG_CONFIG" >&6; }
8874 else
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8876 $as_echo "no" >&6; }
8877 fi
8878
8879
8880 fi
8881 if test -z "$ac_cv_path_PKG_CONFIG"; then
8882 ac_pt_PKG_CONFIG=$PKG_CONFIG
8883 # Extract the first word of "pkg-config", so it can be a program name with args.
8884 set dummy pkg-config; ac_word=$2
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8886 $as_echo_n "checking for $ac_word... " >&6; }
8887 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
8888 $as_echo_n "(cached) " >&6
8889 else
8890 case $ac_pt_PKG_CONFIG in
8891 [\\/]* | ?:[\\/]*)
8892 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8893 ;;
8894 *)
8895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8896 for as_dir in $PATH
8897 do
8898 IFS=$as_save_IFS
8899 test -z "$as_dir" && as_dir=.
8900 for ac_exec_ext in '' $ac_executable_extensions; do
8901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8902 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8904 break 2
8905 fi
8906 done
8907 done
8908 IFS=$as_save_IFS
8909
8910 ;;
8911 esac
8912 fi
8913 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8914 if test -n "$ac_pt_PKG_CONFIG"; then
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8916 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
8917 else
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8919 $as_echo "no" >&6; }
8920 fi
8921
8922 if test "x$ac_pt_PKG_CONFIG" = x; then
8923 PKG_CONFIG=""
8924 else
8925 case $cross_compiling:$ac_tool_warned in
8926 yes:)
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8928 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8929 ac_tool_warned=yes ;;
8930 esac
8931 PKG_CONFIG=$ac_pt_PKG_CONFIG
8932 fi
8933 else
8934 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8935 fi
8936
8937 if test x$ac_cv_path_EXPECT != xno; then
8938 WITH_EXPECT_TRUE=
8939 WITH_EXPECT_FALSE='#'
8940 else
8941 WITH_EXPECT_TRUE='#'
8942 WITH_EXPECT_FALSE=
8943 fi
8944
8945 # FIXME: what if we have no grep and/or no sed ?
8946 # (echo is often a shell builtin)
8947 have_default_bindings=yes
8948 have_default_mapping=yes
8949 have_default_config=yes
8950
8951 # Check whether --enable-default_bindings was given.
8952 if test "${enable_default_bindings+set}" = set; then :
8953 enableval=$enable_default_bindings; if test x$enableval = xyes; then
8954 have_default_bindings=yes
8955 else
8956 have_default_bindings=no
8957 fi
8958
8959 fi
8960
8961
8962 # Check whether --enable-default_mapping was given.
8963 if test "${enable_default_mapping+set}" = set; then :
8964 enableval=$enable_default_mapping; if test x$enableval = xyes; then
8965 have_default_mapping=yes
8966 else
8967 have_default_mapping=no
8968 fi
8969
8970 fi
8971
8972
8973 # Check whether --enable-default_config was given.
8974 if test "${enable_default_config+set}" = set; then :
8975 enableval=$enable_default_config; if test x$enableval = xyes; then
8976 have_default_config=yes
8977 else
8978 have_default_config=no
8979 fi
8980
8981 fi
8982
8983
8984
8985 if test x$have_default_bindings != xno; then
8986 FIM_DEFS="$FIM_DEFS -D FIM_DEFAULT_CONFIG"
8987 $as_echo "#define FIM_DEFAULT_CONFIG 1" >>confdefs.h
8988
8989 fi
8990
8991 if test x$have_default_mapping != xno; then
8992 FIM_DEFS="$FIM_DEFS -D FIM_DEFAULT_KEY_CONFIG"
8993 $as_echo "#define FIM_DEFAULT_KEY_CONFIG 1" >>confdefs.h
8994
8995 fi
8996
8997 if test x$have_default_config != xno; then
8998 FIM_DEFS="$FIM_DEFS -D FIM_DEFAULT_CONFIGURATION"
8999 $as_echo "#define FIM_DEFAULT_CONFIGURATION 1" >>confdefs.h
9000
9001 fi
9002
9003 #CPPFLAGS=$DEPS
9004 #AC_SUBST(LIBSDL_CXXFLAGS)
9005 #AC_SUBST(LIBPNG_CXXFLAGS)
9006 #AC_SUBST(LIBSDL_CXXFLAGS)
9007 #AC_SUBST(LIBPNG_CXXFLAGS)
9008 #AC_SUBST(LIBPNG_LIBS)
9009
9010 # Check whether --enable-system was given.
9011 if test "${enable_system+set}" = set; then :
9012 enableval=$enable_system; if test x$enableval = xno ; then
9013 fim_system_calls=no
9014 fi
9015
9016 fi
9017
9018 if test x$fim_system_calls != xno; then
9019 ENABLE_SYSTEM_CALLS_TRUE=
9020 ENABLE_SYSTEM_CALLS_FALSE='#'
9021 else
9022 ENABLE_SYSTEM_CALLS_TRUE='#'
9023 ENABLE_SYSTEM_CALLS_FALSE=
9024 fi
9025
9026
9027 if test x$fim_system_calls != xno; then
9028 $as_echo "#define FIM_WANT_SYSTEM_CALLS 1" >>confdefs.h
9029
9030 fi
9031
9032 if test x$fim_system_calls != xno; then
9033 $as_echo "#define FIM_PIPE_IMAGE_READ 1" >>confdefs.h
9034
9035 fi
9036
9037 if test x$fim_system_calls != xno; then
9038 $as_echo "#define FIM_WANT_POPEN_CALLS 1" >>confdefs.h
9039
9040 fi
9041
9042 # Check whether --enable-framebuffer was given.
9043 if test "${enable_framebuffer+set}" = set; then :
9044 enableval=$enable_framebuffer; if test x$enableval = xno ; then
9045 fim_handle_framebuffer=no
9046 fi
9047
9048 fi
9049
9050
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: Checking for headers required by the Linux framebuffer device." >&5
9052 $as_echo "$as_me: Checking for headers required by the Linux framebuffer device." >&6;}
9053
9054 for ac_header in linux/fb.h
9055 do :
9056 ac_fn_cxx_check_header_mongrel "$LINENO" "linux/fb.h" "ac_cv_header_linux_fb_h" "$ac_includes_default"
9057 if test "x$ac_cv_header_linux_fb_h" = xyes; then :
9058 cat >>confdefs.h <<_ACEOF
9059 #define HAVE_LINUX_FB_H 1
9060 _ACEOF
9061 break
9062 else
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find linux/fb.h. Fim Linux framebuffer driver requires it!." >&5
9064 $as_echo "$as_me: WARNING: Cannot find linux/fb.h. Fim Linux framebuffer driver requires it!." >&2;}
9065 fi
9066
9067 done
9068
9069 for ac_header in linux/vt.h
9070 do :
9071 ac_fn_cxx_check_header_mongrel "$LINENO" "linux/vt.h" "ac_cv_header_linux_vt_h" "$ac_includes_default"
9072 if test "x$ac_cv_header_linux_vt_h" = xyes; then :
9073 cat >>confdefs.h <<_ACEOF
9074 #define HAVE_LINUX_VT_H 1
9075 _ACEOF
9076 break
9077 else
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find linux/vt.h. Fim Linux framebuffer driver requires it!." >&5
9079 $as_echo "$as_me: WARNING: Cannot find linux/vt.h. Fim Linux framebuffer driver requires it!." >&2;}
9080 fi
9081
9082 done
9083
9084 for ac_header in linux/kd.h
9085 do :
9086 ac_fn_cxx_check_header_mongrel "$LINENO" "linux/kd.h" "ac_cv_header_linux_kd_h" "$ac_includes_default"
9087 if test "x$ac_cv_header_linux_kd_h" = xyes; then :
9088 cat >>confdefs.h <<_ACEOF
9089 #define HAVE_LINUX_KD_H 1
9090 _ACEOF
9091 break
9092 else
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find linux/kd.h. Fim Linux framebuffer driver requires it!." >&5
9094 $as_echo "$as_me: WARNING: Cannot find linux/kd.h. Fim Linux framebuffer driver requires it!." >&2;}
9095 fi
9096
9097 done
9098
9099
9100 if test x$ac_cv_header_linux_fb_h != xyes -o \
9101 x$ac_cv_header_linux_vt_h != xyes -o \
9102 x$ac_cv_header_linux_kd_h != xyes ; then
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Turning off Linux framebuffer support due to missing headers" >&5
9104 $as_echo "$as_me: WARNING: Turning off Linux framebuffer support due to missing headers" >&2;}
9105 fim_handle_framebuffer=no
9106 fi
9107
9108 if test x$fim_handle_framebuffer = xno ; then
9109
9110 $as_echo "#define FIM_WITH_NO_FRAMEBUFFER 1" >>confdefs.h
9111
9112 fi
9113 if test x$fim_handle_framebuffer != xno; then
9114 ENABLE_FRAMEBUFFER_TRUE=
9115 ENABLE_FRAMEBUFFER_FALSE='#'
9116 else
9117 ENABLE_FRAMEBUFFER_TRUE='#'
9118 ENABLE_FRAMEBUFFER_FALSE=
9119 fi
9120
9121
9122
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
9124 $as_echo_n "checking for egrep... " >&6; }
9125 if ${ac_cv_path_EGREP+:} false; then :
9126 $as_echo_n "(cached) " >&6
9127 else
9128 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
9129 then ac_cv_path_EGREP="$GREP -E"
9130 else
9131 if test -z "$EGREP"; then
9132 ac_path_EGREP_found=false
9133 # Loop through the user's path and test for each of PROGNAME-LIST
9134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9135 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9136 do
9137 IFS=$as_save_IFS
9138 test -z "$as_dir" && as_dir=.
9139 for ac_prog in egrep; do
9140 for ac_exec_ext in '' $ac_executable_extensions; do
9141 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
9142 as_fn_executable_p "$ac_path_EGREP" || continue
9143 # Check for GNU ac_path_EGREP and select it if it is found.
9144 # Check for GNU $ac_path_EGREP
9145 case `"$ac_path_EGREP" --version 2>&1` in
9146 *GNU*)
9147 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
9148 *)
9149 ac_count=0
9150 $as_echo_n 0123456789 >"conftest.in"
9151 while :
9152 do
9153 cat "conftest.in" "conftest.in" >"conftest.tmp"
9154 mv "conftest.tmp" "conftest.in"
9155 cp "conftest.in" "conftest.nl"
9156 $as_echo 'EGREP' >> "conftest.nl"
9157 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9158 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9159 as_fn_arith $ac_count + 1 && ac_count=$as_val
9160 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
9161 # Best one so far, save it but keep looking for a better one
9162 ac_cv_path_EGREP="$ac_path_EGREP"
9163 ac_path_EGREP_max=$ac_count
9164 fi
9165 # 10*(2^10) chars as input seems more than enough
9166 test $ac_count -gt 10 && break
9167 done
9168 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9169 esac
9170
9171 $ac_path_EGREP_found && break 3
9172 done
9173 done
9174 done
9175 IFS=$as_save_IFS
9176 if test -z "$ac_cv_path_EGREP"; then
9177 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9178 fi
9179 else
9180 ac_cv_path_EGREP=$EGREP
9181 fi
9182
9183 fi
9184 fi
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
9186 $as_echo "$ac_cv_path_EGREP" >&6; }
9187 EGREP="$ac_cv_path_EGREP"
9188
9189
9190
9191
9192
9193
9194 for ac_header in $ac_header_list
9195 do :
9196 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9197 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9198 "
9199 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9200 cat >>confdefs.h <<_ACEOF
9201 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9202 _ACEOF
9203
9204 fi
9205
9206 done
9207
9208
9209
9210
9211
9212
9213
9214
9215 for ac_func in getpagesize
9216 do :
9217 ac_fn_cxx_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9218 if test "x$ac_cv_func_getpagesize" = xyes; then :
9219 cat >>confdefs.h <<_ACEOF
9220 #define HAVE_GETPAGESIZE 1
9221 _ACEOF
9222
9223 fi
9224 done
9225
9226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9227 $as_echo_n "checking for working mmap... " >&6; }
9228 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
9229 $as_echo_n "(cached) " >&6
9230 else
9231 if test "$cross_compiling" = yes; then :
9232 ac_cv_func_mmap_fixed_mapped=no
9233 else
9234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9235 /* end confdefs.h. */
9236 $ac_includes_default
9237 /* malloc might have been renamed as rpl_malloc. */
9238 #undef malloc
9239
9240 /* Thanks to Mike Haertel and Jim Avera for this test.
9241 Here is a matrix of mmap possibilities:
9242 mmap private not fixed
9243 mmap private fixed at somewhere currently unmapped
9244 mmap private fixed at somewhere already mapped
9245 mmap shared not fixed
9246 mmap shared fixed at somewhere currently unmapped
9247 mmap shared fixed at somewhere already mapped
9248 For private mappings, we should verify that changes cannot be read()
9249 back from the file, nor mmap's back from the file at a different
9250 address. (There have been systems where private was not correctly
9251 implemented like the infamous i386 svr4.0, and systems where the
9252 VM page cache was not coherent with the file system buffer cache
9253 like early versions of FreeBSD and possibly contemporary NetBSD.)
9254 For shared mappings, we should conversely verify that changes get
9255 propagated back to all the places they're supposed to be.
9256
9257 Grep wants private fixed already mapped.
9258 The main things grep needs to know about mmap are:
9259 * does it exist and is it safe to write into the mmap'd area
9260 * how to use it (BSD variants) */
9261
9262 #include <fcntl.h>
9263 #include <sys/mman.h>
9264
9265 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9266 char *malloc ();
9267 #endif
9268
9269 /* This mess was copied from the GNU getpagesize.h. */
9270 #ifndef HAVE_GETPAGESIZE
9271 # ifdef _SC_PAGESIZE
9272 # define getpagesize() sysconf(_SC_PAGESIZE)
9273 # else /* no _SC_PAGESIZE */
9274 # ifdef HAVE_SYS_PARAM_H
9275 # include <sys/param.h>
9276 # ifdef EXEC_PAGESIZE
9277 # define getpagesize() EXEC_PAGESIZE
9278 # else /* no EXEC_PAGESIZE */
9279 # ifdef NBPG
9280 # define getpagesize() NBPG * CLSIZE
9281 # ifndef CLSIZE
9282 # define CLSIZE 1
9283 # endif /* no CLSIZE */
9284 # else /* no NBPG */
9285 # ifdef NBPC
9286 # define getpagesize() NBPC
9287 # else /* no NBPC */
9288 # ifdef PAGESIZE
9289 # define getpagesize() PAGESIZE
9290 # endif /* PAGESIZE */
9291 # endif /* no NBPC */
9292 # endif /* no NBPG */
9293 # endif /* no EXEC_PAGESIZE */
9294 # else /* no HAVE_SYS_PARAM_H */
9295 # define getpagesize() 8192 /* punt totally */
9296 # endif /* no HAVE_SYS_PARAM_H */
9297 # endif /* no _SC_PAGESIZE */
9298
9299 #endif /* no HAVE_GETPAGESIZE */
9300
9301 int
9302 main ()
9303 {
9304 char *data, *data2, *data3;
9305 const char *cdata2;
9306 int i, pagesize;
9307 int fd, fd2;
9308
9309 pagesize = getpagesize ();
9310
9311 /* First, make a file with some known garbage in it. */
9312 data = (char *) malloc (pagesize);
9313 if (!data)
9314 return 1;
9315 for (i = 0; i < pagesize; ++i)
9316 *(data + i) = rand ();
9317 umask (0);
9318 fd = creat ("conftest.mmap", 0600);
9319 if (fd < 0)
9320 return 2;
9321 if (write (fd, data, pagesize) != pagesize)
9322 return 3;
9323 close (fd);
9324
9325 /* Next, check that the tail of a page is zero-filled. File must have
9326 non-zero length, otherwise we risk SIGBUS for entire page. */
9327 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
9328 if (fd2 < 0)
9329 return 4;
9330 cdata2 = "";
9331 if (write (fd2, cdata2, 1) != 1)
9332 return 5;
9333 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
9334 if (data2 == MAP_FAILED)
9335 return 6;
9336 for (i = 0; i < pagesize; ++i)
9337 if (*(data2 + i))
9338 return 7;
9339 close (fd2);
9340 if (munmap (data2, pagesize))
9341 return 8;
9342
9343 /* Next, try to mmap the file at a fixed address which already has
9344 something else allocated at it. If we can, also make sure that
9345 we see the same garbage. */
9346 fd = open ("conftest.mmap", O_RDWR);
9347 if (fd < 0)
9348 return 9;
9349 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9350 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9351 return 10;
9352 for (i = 0; i < pagesize; ++i)
9353 if (*(data + i) != *(data2 + i))
9354 return 11;
9355
9356 /* Finally, make sure that changes to the mapped area do not
9357 percolate back to the file as seen by read(). (This is a bug on
9358 some variants of i386 svr4.0.) */
9359 for (i = 0; i < pagesize; ++i)
9360 *(data2 + i) = *(data2 + i) + 1;
9361 data3 = (char *) malloc (pagesize);
9362 if (!data3)
9363 return 12;
9364 if (read (fd, data3, pagesize) != pagesize)
9365 return 13;
9366 for (i = 0; i < pagesize; ++i)
9367 if (*(data + i) != *(data3 + i))
9368 return 14;
9369 close (fd);
9370 free (data);
9371 free (data3);
9372 return 0;
9373 }
9374 _ACEOF
9375 if ac_fn_cxx_try_run "$LINENO"; then :
9376 ac_cv_func_mmap_fixed_mapped=yes
9377 else
9378 ac_cv_func_mmap_fixed_mapped=no
9379 fi
9380 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9381 conftest.$ac_objext conftest.beam conftest.$ac_ext
9382 fi
9383
9384 fi
9385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9386 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9387 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9388
9389 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
9390
9391 fi
9392 rm -f conftest.mmap conftest.txt
9393
9394
9395 for ac_func in bzero memset memcmp strncmp strcpy
9396 do :
9397 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9398 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9399 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9400 cat >>confdefs.h <<_ACEOF
9401 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9402 _ACEOF
9403
9404 fi
9405 done
9406
9407 for ac_func in bcopy bcmp
9408 do :
9409 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9410 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9411 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9412 cat >>confdefs.h <<_ACEOF
9413 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9414 _ACEOF
9415
9416 fi
9417 done
9418
9419 for ac_func in drand48 random rand
9420 do :
9421 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9422 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9423 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9424 cat >>confdefs.h <<_ACEOF
9425 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9426 _ACEOF
9427
9428 fi
9429 done
9430
9431 for ac_func in fileno
9432 do :
9433 ac_fn_cxx_check_func "$LINENO" "fileno" "ac_cv_func_fileno"
9434 if test "x$ac_cv_func_fileno" = xyes; then :
9435 cat >>confdefs.h <<_ACEOF
9436 #define HAVE_FILENO 1
9437 _ACEOF
9438
9439 fi
9440 done
9441
9442 for ac_func in fmemopen
9443 do :
9444 ac_fn_cxx_check_func "$LINENO" "fmemopen" "ac_cv_func_fmemopen"
9445 if test "x$ac_cv_func_fmemopen" = xyes; then :
9446 cat >>confdefs.h <<_ACEOF
9447 #define HAVE_FMEMOPEN 1
9448 _ACEOF
9449
9450 fi
9451 done
9452
9453 for ac_header in wordexp.h glob.h fnmatch.h
9454 do :
9455 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9456 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9457 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9458 cat >>confdefs.h <<_ACEOF
9459 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9460 _ACEOF
9461
9462 fi
9463
9464 done
9465
9466
9467 #AC_CHECK_HEADERS([stddef.h])
9468 #AC_CHECK_HEADERS([stdlib.h])
9469 for ac_header in string.h strings.h
9470 do :
9471 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9472 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9473 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9474 cat >>confdefs.h <<_ACEOF
9475 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9476 _ACEOF
9477 for ac_func in strerror
9478 do :
9479 ac_fn_cxx_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
9480 if test "x$ac_cv_func_strerror" = xyes; then :
9481 cat >>confdefs.h <<_ACEOF
9482 #define HAVE_STRERROR 1
9483 _ACEOF
9484
9485 fi
9486 done
9487
9488 fi
9489
9490 done
9491
9492
9493 for ac_header in stdint.h
9494 do :
9495 ac_fn_cxx_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
9496 if test "x$ac_cv_header_stdint_h" = xyes; then :
9497 cat >>confdefs.h <<_ACEOF
9498 #define HAVE_STDINT_H 1
9499 _ACEOF
9500
9501 fi
9502
9503 done
9504
9505 for ac_header in wchar.h
9506 do :
9507 ac_fn_cxx_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
9508 if test "x$ac_cv_header_wchar_h" = xyes; then :
9509 cat >>confdefs.h <<_ACEOF
9510 #define HAVE_WCHAR_H 1
9511 _ACEOF
9512
9513 fi
9514
9515 done
9516
9517 for ac_header in emscripten.h
9518 do :
9519 ac_fn_cxx_check_header_mongrel "$LINENO" "emscripten.h" "ac_cv_header_emscripten_h" "$ac_includes_default"
9520 if test "x$ac_cv_header_emscripten_h" = xyes; then :
9521 cat >>confdefs.h <<_ACEOF
9522 #define HAVE_EMSCRIPTEN_H 1
9523 _ACEOF
9524
9525 fi
9526
9527 done
9528
9529 for ac_header in fontconfig/fontconfig.h
9530 do :
9531 ac_fn_cxx_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
9532 if test "x$ac_cv_header_fontconfig_fontconfig_h" = xyes; then :
9533 cat >>confdefs.h <<_ACEOF
9534 #define HAVE_FONTCONFIG_FONTCONFIG_H 1
9535 _ACEOF
9536
9537 fi
9538
9539 done
9540
9541 for ac_header in fontconfig/fcfreetype.h
9542 do :
9543 ac_fn_cxx_check_header_mongrel "$LINENO" "fontconfig/fcfreetype.h" "ac_cv_header_fontconfig_fcfreetype_h" "$ac_includes_default"
9544 if test "x$ac_cv_header_fontconfig_fcfreetype_h" = xyes; then :
9545 cat >>confdefs.h <<_ACEOF
9546 #define HAVE_FONTCONFIG_FCFREETYPE_H 1
9547 _ACEOF
9548
9549 fi
9550
9551 done
9552
9553
9554 ac_header_dirent=no
9555 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9556 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
9558 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
9559 if eval \${$as_ac_Header+:} false; then :
9560 $as_echo_n "(cached) " >&6
9561 else
9562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9563 /* end confdefs.h. */
9564 #include <sys/types.h>
9565 #include <$ac_hdr>
9566
9567 int
9568 main ()
9569 {
9570 if ((DIR *) 0)
9571 return 0;
9572 ;
9573 return 0;
9574 }
9575 _ACEOF
9576 if ac_fn_cxx_try_compile "$LINENO"; then :
9577 eval "$as_ac_Header=yes"
9578 else
9579 eval "$as_ac_Header=no"
9580 fi
9581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9582 fi
9583 eval ac_res=\$$as_ac_Header
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9585 $as_echo "$ac_res" >&6; }
9586 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9587 cat >>confdefs.h <<_ACEOF
9588 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9589 _ACEOF
9590
9591 ac_header_dirent=$ac_hdr; break
9592 fi
9593
9594 done
9595 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9596 if test $ac_header_dirent = dirent.h; then
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
9598 $as_echo_n "checking for library containing opendir... " >&6; }
9599 if ${ac_cv_search_opendir+:} false; then :
9600 $as_echo_n "(cached) " >&6
9601 else
9602 ac_func_search_save_LIBS=$LIBS
9603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9604 /* end confdefs.h. */
9605
9606 /* Override any GCC internal prototype to avoid an error.
9607 Use char because int might match the return type of a GCC
9608 builtin and then its argument prototype would still apply. */
9609 #ifdef __cplusplus
9610 extern "C"
9611 #endif
9612 char opendir ();
9613 int
9614 main ()
9615 {
9616 return opendir ();
9617 ;
9618 return 0;
9619 }
9620 _ACEOF
9621 for ac_lib in '' dir; do
9622 if test -z "$ac_lib"; then
9623 ac_res="none required"
9624 else
9625 ac_res=-l$ac_lib
9626 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9627 fi
9628 if ac_fn_cxx_try_link "$LINENO"; then :
9629 ac_cv_search_opendir=$ac_res
9630 fi
9631 rm -f core conftest.err conftest.$ac_objext \
9632 conftest$ac_exeext
9633 if ${ac_cv_search_opendir+:} false; then :
9634 break
9635 fi
9636 done
9637 if ${ac_cv_search_opendir+:} false; then :
9638
9639 else
9640 ac_cv_search_opendir=no
9641 fi
9642 rm conftest.$ac_ext
9643 LIBS=$ac_func_search_save_LIBS
9644 fi
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
9646 $as_echo "$ac_cv_search_opendir" >&6; }
9647 ac_res=$ac_cv_search_opendir
9648 if test "$ac_res" != no; then :
9649 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9650
9651 fi
9652
9653 else
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
9655 $as_echo_n "checking for library containing opendir... " >&6; }
9656 if ${ac_cv_search_opendir+:} false; then :
9657 $as_echo_n "(cached) " >&6
9658 else
9659 ac_func_search_save_LIBS=$LIBS
9660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9661 /* end confdefs.h. */
9662
9663 /* Override any GCC internal prototype to avoid an error.
9664 Use char because int might match the return type of a GCC
9665 builtin and then its argument prototype would still apply. */
9666 #ifdef __cplusplus
9667 extern "C"
9668 #endif
9669 char opendir ();
9670 int
9671 main ()
9672 {
9673 return opendir ();
9674 ;
9675 return 0;
9676 }
9677 _ACEOF
9678 for ac_lib in '' x; do
9679 if test -z "$ac_lib"; then
9680 ac_res="none required"
9681 else
9682 ac_res=-l$ac_lib
9683 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9684 fi
9685 if ac_fn_cxx_try_link "$LINENO"; then :
9686 ac_cv_search_opendir=$ac_res
9687 fi
9688 rm -f core conftest.err conftest.$ac_objext \
9689 conftest$ac_exeext
9690 if ${ac_cv_search_opendir+:} false; then :
9691 break
9692 fi
9693 done
9694 if ${ac_cv_search_opendir+:} false; then :
9695
9696 else
9697 ac_cv_search_opendir=no
9698 fi
9699 rm conftest.$ac_ext
9700 LIBS=$ac_func_search_save_LIBS
9701 fi
9702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
9703 $as_echo "$ac_cv_search_opendir" >&6; }
9704 ac_res=$ac_cv_search_opendir
9705 if test "$ac_res" != no; then :
9706 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9707
9708 fi
9709
9710 fi
9711
9712 for ac_header in stdarg.h sys/ioctl.h ioctl.h sysexits.h
9713 do :
9714 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9715 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9716 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9717 cat >>confdefs.h <<_ACEOF
9718 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9719 _ACEOF
9720
9721 fi
9722
9723 done
9724
9725 for ac_header in sys/time.h sys/resource.h
9726 do :
9727 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9728 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9729 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9730 cat >>confdefs.h <<_ACEOF
9731 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9732 _ACEOF
9733
9734 fi
9735
9736 done
9737
9738 for ac_header in sys/select.h
9739 do :
9740 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
9741 if test "x$ac_cv_header_sys_select_h" = xyes; then :
9742 cat >>confdefs.h <<_ACEOF
9743 #define HAVE_SYS_SELECT_H 1
9744 _ACEOF
9745
9746 fi
9747
9748 done
9749
9750 for ac_header in sys/wait.h
9751 do :
9752 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default"
9753 if test "x$ac_cv_header_sys_wait_h" = xyes; then :
9754 cat >>confdefs.h <<_ACEOF
9755 #define HAVE_SYS_WAIT_H 1
9756 _ACEOF
9757
9758 fi
9759
9760 done
9761
9762 for ac_header in time.h
9763 do :
9764 ac_fn_cxx_check_header_mongrel "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
9765 if test "x$ac_cv_header_time_h" = xyes; then :
9766 cat >>confdefs.h <<_ACEOF
9767 #define HAVE_TIME_H 1
9768 _ACEOF
9769
9770 fi
9771
9772 done
9773
9774 for ac_header in unix.h
9775 do :
9776 ac_fn_cxx_check_header_mongrel "$LINENO" "unix.h" "ac_cv_header_unix_h" "$ac_includes_default"
9777 if test "x$ac_cv_header_unix_h" = xyes; then :
9778 cat >>confdefs.h <<_ACEOF
9779 #define HAVE_UNIX_H 1
9780 _ACEOF
9781
9782 fi
9783
9784 done
9785
9786 for ac_header in libgen.h
9787 do :
9788 ac_fn_cxx_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
9789 if test "x$ac_cv_header_libgen_h" = xyes; then :
9790 cat >>confdefs.h <<_ACEOF
9791 #define HAVE_LIBGEN_H 1
9792 _ACEOF
9793
9794 fi
9795
9796 done
9797
9798 for ac_header in sys/user.h
9799 do :
9800 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "$ac_includes_default"
9801 if test "x$ac_cv_header_sys_user_h" = xyes; then :
9802 cat >>confdefs.h <<_ACEOF
9803 #define HAVE_SYS_USER_H 1
9804 _ACEOF
9805
9806 fi
9807
9808 done
9809
9810 for ac_header in sys/mman.h
9811 do :
9812 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
9813 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
9814 cat >>confdefs.h <<_ACEOF
9815 #define HAVE_SYS_MMAN_H 1
9816 _ACEOF
9817
9818 fi
9819
9820 done
9821
9822 for ac_header in cstdio stdio.h
9823 do :
9824 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9825 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9826 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9827 cat >>confdefs.h <<_ACEOF
9828 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9829 _ACEOF
9830 break
9831 else
9832 as_fn_error $? "Cannot find cstdio or stdio.h. Fim requires at least one or the other." "$LINENO" 5
9833 fi
9834
9835 done
9836
9837
9838 for ac_header in climits limits.h
9839 do :
9840 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9841 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9842 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9843 cat >>confdefs.h <<_ACEOF
9844 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9845 _ACEOF
9846 break
9847 else
9848 as_fn_error $? "Cannot find limits.h nor climits. Fim requires it!." "$LINENO" 5
9849 fi
9850
9851 done
9852
9853 for ac_header in filesystem
9854 do :
9855 ac_fn_cxx_check_header_mongrel "$LINENO" "filesystem" "ac_cv_header_filesystem" "$ac_includes_default"
9856 if test "x$ac_cv_header_filesystem" = xyes; then :
9857 cat >>confdefs.h <<_ACEOF
9858 #define HAVE_FILESYSTEM 1
9859 _ACEOF
9860
9861 $as_echo "#define HAVE_FILESYSTEM 1" >>confdefs.h
9862
9863 fi
9864
9865 done
9866
9867
9868 # The cast to long int works around a bug in the HP C Compiler
9869 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9870 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9871 # This bug is HP SR number 8606223364.
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
9873 $as_echo_n "checking size of int... " >&6; }
9874 if ${ac_cv_sizeof_int+:} false; then :
9875 $as_echo_n "(cached) " >&6
9876 else
9877 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
9878
9879 else
9880 if test "$ac_cv_type_int" = yes; then
9881 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9882 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9883 as_fn_error 77 "cannot compute sizeof (int)
9884 See \`config.log' for more details" "$LINENO" 5; }
9885 else
9886 ac_cv_sizeof_int=0
9887 fi
9888 fi
9889
9890 fi
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
9892 $as_echo "$ac_cv_sizeof_int" >&6; }
9893
9894
9895
9896 cat >>confdefs.h <<_ACEOF
9897 #define SIZEOF_INT $ac_cv_sizeof_int
9898 _ACEOF
9899
9900
9901 # The cast to long int works around a bug in the HP C Compiler
9902 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9903 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9904 # This bug is HP SR number 8606223364.
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
9906 $as_echo_n "checking size of int *... " >&6; }
9907 if ${ac_cv_sizeof_int_p+:} false; then :
9908 $as_echo_n "(cached) " >&6
9909 else
9910 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then :
9911
9912 else
9913 if test "$ac_cv_type_int_p" = yes; then
9914 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9915 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9916 as_fn_error 77 "cannot compute sizeof (int *)
9917 See \`config.log' for more details" "$LINENO" 5; }
9918 else
9919 ac_cv_sizeof_int_p=0
9920 fi
9921 fi
9922
9923 fi
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
9925 $as_echo "$ac_cv_sizeof_int_p" >&6; }
9926
9927
9928
9929 cat >>confdefs.h <<_ACEOF
9930 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
9931 _ACEOF
9932
9933
9934 # The cast to long int works around a bug in the HP C Compiler
9935 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9936 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9937 # This bug is HP SR number 8606223364.
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
9939 $as_echo_n "checking size of size_t... " >&6; }
9940 if ${ac_cv_sizeof_size_t+:} false; then :
9941 $as_echo_n "(cached) " >&6
9942 else
9943 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
9944
9945 else
9946 if test "$ac_cv_type_size_t" = yes; then
9947 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9948 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9949 as_fn_error 77 "cannot compute sizeof (size_t)
9950 See \`config.log' for more details" "$LINENO" 5; }
9951 else
9952 ac_cv_sizeof_size_t=0
9953 fi
9954 fi
9955
9956 fi
9957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
9958 $as_echo "$ac_cv_sizeof_size_t" >&6; }
9959
9960
9961
9962 cat >>confdefs.h <<_ACEOF
9963 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
9964 _ACEOF
9965
9966
9967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9968 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9969 if ${ac_cv_c_bigendian+:} false; then :
9970 $as_echo_n "(cached) " >&6
9971 else
9972 ac_cv_c_bigendian=unknown
9973 # See if we're dealing with a universal compiler.
9974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9975 /* end confdefs.h. */
9976 #ifndef __APPLE_CC__
9977 not a universal capable compiler
9978 #endif
9979 typedef int dummy;
9980
9981 _ACEOF
9982 if ac_fn_cxx_try_compile "$LINENO"; then :
9983
9984 # Check for potential -arch flags. It is not universal unless
9985 # there are at least two -arch flags with different values.
9986 ac_arch=
9987 ac_prev=
9988 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9989 if test -n "$ac_prev"; then
9990 case $ac_word in
9991 i?86 | x86_64 | ppc | ppc64)
9992 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9993 ac_arch=$ac_word
9994 else
9995 ac_cv_c_bigendian=universal
9996 break
9997 fi
9998 ;;
9999 esac
10000 ac_prev=
10001 elif test "x$ac_word" = "x-arch"; then
10002 ac_prev=arch
10003 fi
10004 done
10005 fi
10006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10007 if test $ac_cv_c_bigendian = unknown; then
10008 # See if sys/param.h defines the BYTE_ORDER macro.
10009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10010 /* end confdefs.h. */
10011 #include <sys/types.h>
10012 #include <sys/param.h>
10013
10014 int
10015 main ()
10016 {
10017 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10018 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10019 && LITTLE_ENDIAN)
10020 bogus endian macros
10021 #endif
10022
10023 ;
10024 return 0;
10025 }
10026 _ACEOF
10027 if ac_fn_cxx_try_compile "$LINENO"; then :
10028 # It does; now see whether it defined to BIG_ENDIAN or not.
10029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10030 /* end confdefs.h. */
10031 #include <sys/types.h>
10032 #include <sys/param.h>
10033
10034 int
10035 main ()
10036 {
10037 #if BYTE_ORDER != BIG_ENDIAN
10038 not big endian
10039 #endif
10040
10041 ;
10042 return 0;
10043 }
10044 _ACEOF
10045 if ac_fn_cxx_try_compile "$LINENO"; then :
10046 ac_cv_c_bigendian=yes
10047 else
10048 ac_cv_c_bigendian=no
10049 fi
10050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10051 fi
10052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10053 fi
10054 if test $ac_cv_c_bigendian = unknown; then
10055 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
10056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10057 /* end confdefs.h. */
10058 #include <limits.h>
10059
10060 int
10061 main ()
10062 {
10063 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10064 bogus endian macros
10065 #endif
10066
10067 ;
10068 return 0;
10069 }
10070 _ACEOF
10071 if ac_fn_cxx_try_compile "$LINENO"; then :
10072 # It does; now see whether it defined to _BIG_ENDIAN or not.
10073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10074 /* end confdefs.h. */
10075 #include <limits.h>
10076
10077 int
10078 main ()
10079 {
10080 #ifndef _BIG_ENDIAN
10081 not big endian
10082 #endif
10083
10084 ;
10085 return 0;
10086 }
10087 _ACEOF
10088 if ac_fn_cxx_try_compile "$LINENO"; then :
10089 ac_cv_c_bigendian=yes
10090 else
10091 ac_cv_c_bigendian=no
10092 fi
10093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10094 fi
10095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10096 fi
10097 if test $ac_cv_c_bigendian = unknown; then
10098 # Compile a test program.
10099 if test "$cross_compiling" = yes; then :
10100 # Try to guess by grepping values from an object file.
10101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10102 /* end confdefs.h. */
10103 short int ascii_mm[] =
10104 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10105 short int ascii_ii[] =
10106 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10107 int use_ascii (int i) {
10108 return ascii_mm[i] + ascii_ii[i];
10109 }
10110 short int ebcdic_ii[] =
10111 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10112 short int ebcdic_mm[] =
10113 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10114 int use_ebcdic (int i) {
10115 return ebcdic_mm[i] + ebcdic_ii[i];
10116 }
10117 extern int foo;
10118
10119 int
10120 main ()
10121 {
10122 return use_ascii (foo) == use_ebcdic (foo);
10123 ;
10124 return 0;
10125 }
10126 _ACEOF
10127 if ac_fn_cxx_try_compile "$LINENO"; then :
10128 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
10129 ac_cv_c_bigendian=yes
10130 fi
10131 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10132 if test "$ac_cv_c_bigendian" = unknown; then
10133 ac_cv_c_bigendian=no
10134 else
10135 # finding both strings is unlikely to happen, but who knows?
10136 ac_cv_c_bigendian=unknown
10137 fi
10138 fi
10139 fi
10140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10141 else
10142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10143 /* end confdefs.h. */
10144 $ac_includes_default
10145 int
10146 main ()
10147 {
10148
10149 /* Are we little or big endian? From Harbison&Steele. */
10150 union
10151 {
10152 long int l;
10153 char c[sizeof (long int)];
10154 } u;
10155 u.l = 1;
10156 return u.c[sizeof (long int) - 1] == 1;
10157
10158 ;
10159 return 0;
10160 }
10161 _ACEOF
10162 if ac_fn_cxx_try_run "$LINENO"; then :
10163 ac_cv_c_bigendian=no
10164 else
10165 ac_cv_c_bigendian=yes
10166 fi
10167 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10168 conftest.$ac_objext conftest.beam conftest.$ac_ext
10169 fi
10170
10171 fi
10172 fi
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
10174 $as_echo "$ac_cv_c_bigendian" >&6; }
10175 case $ac_cv_c_bigendian in #(
10176 yes)
10177 fim_big_endian=yes;; #(
10178 no)
10179 fim_big_endian=no ;; #(
10180 universal)
10181
10182 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
10183
10184 ;; #(
10185 *)
10186 fim_big_endian=hmmm ;;
10187 esac
10188
10189
10190 if test "x$fim_big_endian" = "xyes" ; then
10191
10192 $as_echo "#define FIM_BIG_ENDIAN 1" >>confdefs.h
10193
10194 fi
10195
10196
10197 for ac_header in regex
10198 do :
10199 ac_fn_cxx_check_header_mongrel "$LINENO" "regex" "ac_cv_header_regex" "$ac_includes_default"
10200 if test "x$ac_cv_header_regex" = xyes; then :
10201 cat >>confdefs.h <<_ACEOF
10202 #define HAVE_REGEX 1
10203 _ACEOF
10204
10205 fi
10206
10207 done
10208
10209 if test x$ac_cv_header_regex = xyes; then
10210
10211
10212 $as_echo "#define HAVE_REGEX 1" >>confdefs.h
10213
10214 fi
10215 for ac_header in _regex.h
10216 do :
10217 ac_fn_cxx_check_header_mongrel "$LINENO" "_regex.h" "ac_cv_header__regex_h" "$ac_includes_default"
10218 if test "x$ac_cv_header__regex_h" = xyes; then :
10219 cat >>confdefs.h <<_ACEOF
10220 #define HAVE__REGEX_H 1
10221 _ACEOF
10222
10223 fi
10224
10225 done
10226
10227 if test x$ac_cv_header__regex_h = xyes; then
10228
10229
10230 $as_echo "#define HAVE__REGEX_H 1" >>confdefs.h
10231
10232 fi
10233 for ac_header in regex.h
10234 do :
10235 ac_fn_cxx_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
10236 if test "x$ac_cv_header_regex_h" = xyes; then :
10237 cat >>confdefs.h <<_ACEOF
10238 #define HAVE_REGEX_H 1
10239 _ACEOF
10240
10241 fi
10242
10243 done
10244
10245 if test x$ac_cv_header_regex_h = xyes; then
10246
10247
10248 $as_echo "#define HAVE_REGEX_H 1" >>confdefs.h
10249
10250 fi
10251 for ac_header in termios.h
10252 do :
10253 ac_fn_cxx_check_header_mongrel "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
10254 if test "x$ac_cv_header_termios_h" = xyes; then :
10255 cat >>confdefs.h <<_ACEOF
10256 #define HAVE_TERMIOS_H 1
10257 _ACEOF
10258
10259 fi
10260
10261 done
10262
10263 if test x$ac_cv_header_termios_h = xyes; then
10264
10265
10266 $as_echo "#define HAVE_TERMIOS_H 1" >>confdefs.h
10267
10268 fi
10269 if test x$ac_cv_header_sys_ioctl_h = xyes; then
10270
10271
10272 $as_echo "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
10273
10274 fi
10275 if test x$ac_cv_header_sys_select_h = xyes; then
10276
10277
10278 $as_echo "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
10279
10280 fi
10281 if test x$ac_cv_header_sys_wait_h = xyes; then
10282
10283
10284 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
10285
10286 fi
10287 if test x$ac_cv_func_pipe = xyes; then
10288
10289
10290 $as_echo "#define HAVE_PIPE 1" >>confdefs.h
10291
10292 fi
10293 if test x$CC = x'emcc' -a x$CXX = x'em++'; then
10294 using_wasm=yes;
10295 else
10296 using_wasm=no;
10297 fi
10298
10299 for ac_header in FlexLexer.h
10300 do :
10301 ac_fn_cxx_check_header_mongrel "$LINENO" "FlexLexer.h" "ac_cv_header_FlexLexer_h" "$ac_includes_default"
10302 if test "x$ac_cv_header_FlexLexer_h" = xyes; then :
10303 cat >>confdefs.h <<_ACEOF
10304 #define HAVE_FLEXLEXER_H 1
10305 _ACEOF
10306 break
10307 else
10308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find FlexLexer.h. Without it Fim won't be usable!" >&5
10309 $as_echo "$as_me: WARNING: Cannot find FlexLexer.h. Without it Fim won't be usable!" >&2;}
10310 fi
10311
10312 done
10313
10314 if test x$ac_cv_header_FlexLexer_h = x"no" -a x"$using_wasm" = x"yes" -a -r /usr/include/FlexLexer.h ; then
10315 ac_cv_header_FlexLexer_h=yes;
10316 cp /usr/include/FlexLexer.h .;
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: As an exception for WASM mode, copied /usr/include/FlexLexer.h here (it is not provided by emscripten)." >&5
10318 $as_echo "$as_me: WARNING: As an exception for WASM mode, copied /usr/include/FlexLexer.h here (it is not provided by emscripten)." >&2;}
10319 fi
10320 if test x$ac_cv_header_FlexLexer_h = xyes; then
10321
10322
10323 $as_echo "#define HAVE_FLEXLEXER_H 1" >>confdefs.h
10324
10325 fi
10326 if test x$ac_cv_header_FlexLexer_h = xyes; then
10327 WITH_FLEXLEXER_TRUE=
10328 WITH_FLEXLEXER_FALSE='#'
10329 else
10330 WITH_FLEXLEXER_TRUE='#'
10331 WITH_FLEXLEXER_FALSE=
10332 fi
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343 # Check whether --enable-static was given.
10344 if test "${enable_static+set}" = set; then :
10345 enableval=$enable_static; if test x$enableval = xyes; then fim_cv_want_static=1 ; else fim_cv_want_static=0 ; fi
10346 else
10347 fim_cv_want_static=0
10348 fi
10349
10350 if test x$fim_cv_want_static = x1 ; then
10351 LIBS="$LIBS --static"
10352 LIBDJVU_STATIC_EXTRA="-lpthread"
10353 # too many dependencies for the following!
10354 LIBPOPPLER_STATIC_EXTRA=""
10355 LIBSPECTRE_STATIC_EXTRA=""
10356 #LIBPOPPLER_STATIC_EXTRA="-lfreetype -llcms"
10357 #LIBSPECTRE_STATIC_EXTRA="-Wl,--start-group -lgs -lfontconfig -ldl -ljbig2dec -ljasper -lpthread -lpng -lppd -lpaper -lavahi-common -lavahi-client -lexpat -lfreetype -lgnutls -ldbus-1 -ltasn1 -lcupsimage -lcups -lgcrypt -Wl,--end-group "
10358 LIBTIFF_STATIC_EXTRA="-ljpeg -lz"
10359 cat >>confdefs.h <<_ACEOF
10360 #define FIM_WANT_STATIC_BINARY $fim_cv_want_static Want a static binary. (disabled by default)
10361 _ACEOF
10362
10363 fi
10364
10365
10366
10367 # Check whether --with-regex was given.
10368 if test "${with_regex+set}" = set; then :
10369 withval=$with_regex; fim_cv_regex=yes
10370 else
10371 for ac_func in regcomp
10372 do :
10373 ac_fn_cxx_check_func "$LINENO" "regcomp" "ac_cv_func_regcomp"
10374 if test "x$ac_cv_func_regcomp" = xyes; then :
10375 cat >>confdefs.h <<_ACEOF
10376 #define HAVE_REGCOMP 1
10377 _ACEOF
10378 fim_cv_regex=no
10379 else
10380 fim_cv_regex=yes
10381 fi
10382 done
10383
10384 fi
10385
10386
10387 if test X$ac_cv_header__regex_h = Xno ; then
10388 fim_cv_regex=no;
10389 fi
10390 if test X$fim_cv_regex = Xno ; then
10391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether your system regexp library is completely broken" >&5
10392 $as_echo_n "checking whether your system regexp library is completely broken... " >&6; }
10393 if ${fim_cv_regex_broken+:} false; then :
10394 $as_echo_n "(cached) " >&6
10395 else
10396 if test "$cross_compiling" = yes; then :
10397 fim_cv_regex_broken=yes
10398 else
10399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10400 /* end confdefs.h. */
10401
10402 #include <unistd.h>
10403 #include <regex.h>
10404 int main() { regex_t blah ; /*regmatch_t p; p.rm_eo = p.rm_eo;*/ const int rr = regcomp(&blah, "foo.*bar", REG_NOSUB) || regexec (&blah, "foobar", 0, NULL, 0); regfree(&blah); return rr; }
10405 _ACEOF
10406 if ac_fn_cxx_try_run "$LINENO"; then :
10407 fim_cv_regex_broken=no
10408 else
10409 fim_cv_regex_broken=yes
10410 fi
10411 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10412 conftest.$ac_objext conftest.beam conftest.$ac_ext
10413 fi
10414
10415 fi
10416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fim_cv_regex_broken" >&5
10417 $as_echo "$fim_cv_regex_broken" >&6; }
10418 if test X$fim_cv_regex_broken = Xyes ; then
10419 echo "Using the included GNU regex instead." >&6
10420 fim_cv_regex=yes
10421 fi
10422 fi
10423
10424 if test X$fim_cv_regex = Xyes -a X$ac_cv_header__regex_h != Xno; then
10425
10426 $as_echo "#define USE_GNU_REGEX 1" >>confdefs.h
10427
10428 case " $LIBOBJS " in
10429 *" regex.$ac_objext "* ) ;;
10430 *) LIBOBJS="$LIBOBJS regex.$ac_objext"
10431 ;;
10432 esac
10433
10434 fi
10435
10436
10437
10438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to put the documentation..." >&5
10439 $as_echo_n "checking where to put the documentation...... " >&6; }
10440 # FIXME : the above line seems troublesome, BUT IT IS NOT (see the muttrc for this trick).
10441
10442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fim_cv_docdir" >&5
10443 $as_echo "$fim_cv_docdir" >&6; }
10444
10445
10446
10447
10448 # Check whether --enable-gif was given.
10449 if test "${enable_gif+set}" = set; then :
10450 enableval=$enable_gif; if test x$enableval = xno ; then
10451 fim_handle_gif=no
10452 fi
10453
10454 fi
10455
10456 if test x$fim_handle_gif != xno ; then
10457 fim_handle_gif=yes
10458 have_gif=yes
10459 if test x$with_libgif != xno && test -z "$LIBGIF"; then
10460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGifOpenFileHandle in -lgif" >&5
10461 $as_echo_n "checking for DGifOpenFileHandle in -lgif... " >&6; }
10462 if ${ac_cv_lib_gif_DGifOpenFileHandle_+:} false; then :
10463 $as_echo_n "(cached) " >&6
10464 else
10465 ac_check_lib_save_LIBS=$LIBS
10466 LIBS="-lgif $LIBS"
10467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10468 /* end confdefs.h. */
10469
10470 /* Override any GCC internal prototype to avoid an error.
10471 Use char because int might match the return type of a GCC
10472 builtin and then its argument prototype would still apply. */
10473 #ifdef __cplusplus
10474 extern "C"
10475 #endif
10476 char DGifOpenFileHandle ();
10477 int
10478 main ()
10479 {
10480 return DGifOpenFileHandle ();
10481 ;
10482 return 0;
10483 }
10484 _ACEOF
10485 if ac_fn_cxx_try_link "$LINENO"; then :
10486 ac_cv_lib_gif_DGifOpenFileHandle_=yes
10487 else
10488 ac_cv_lib_gif_DGifOpenFileHandle_=no
10489 fi
10490 rm -f core conftest.err conftest.$ac_objext \
10491 conftest$ac_exeext conftest.$ac_ext
10492 LIBS=$ac_check_lib_save_LIBS
10493 fi
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_DGifOpenFileHandle_" >&5
10495 $as_echo "$ac_cv_lib_gif_DGifOpenFileHandle_" >&6; }
10496 if test "x$ac_cv_lib_gif_DGifOpenFileHandle_" = xyes; then :
10497 have_gif=yes
10498 else
10499 have_gif=no
10500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** GIF loader will not be built (GIF library not found) ***" >&5
10501 $as_echo "$as_me: WARNING: *** GIF loader will not be built (GIF library not found) ***" >&2;}
10502 fi
10503
10504 if test x"$have_gif" = xyes; then
10505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gif.h" >&5
10506 $as_echo_n "checking for gif.h... " >&6; }
10507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10508 /* end confdefs.h. */
10509 #include <stdio.h>
10510 #undef PACKAGE
10511 #undef VERSION
10512 #undef HAVE_STDLIB_H
10513 #include <gif_lib.h>
10514 _ACEOF
10515 if ac_fn_cxx_try_cpp "$LINENO"; then :
10516 have_gif=yes
10517 else
10518 have_gif=no
10519 fi
10520 rm -f conftest.err conftest.i conftest.$ac_ext
10521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gif" >&5
10522 $as_echo "$have_gif" >&6; }
10523 if test x"$have_gif" = xyes; then
10524 LIBGIF='-lgif'
10525 else
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** GIF loader will not be built (GIF header file not found) ***" >&5
10527 $as_echo "$as_me: WARNING: *** GIF loader will not be built (GIF header file not found) ***" >&2;}
10528 fi
10529 fi
10530 fi
10531
10532 # if test x$with_libgif != xno ; then
10533 # the following needs thorough testing
10534 if test x"$have_gif" = xyes ; then
10535 FIM_LIB_OBJECTS="$FIM_LIB_OBJECTS FbiStuffGif.o"
10536 LIBS="$LIBS $LIBGIF"
10537 $as_echo "#define FIM_HANDLE_GIF 1" >>confdefs.h
10538
10539 else
10540 fim_handle_gif=no
10541 fi
10542
10543 # if test x$with_libgif != xno && test -z "$LIBGIF"; then
10544 #
10545 # fi
10546 else
10547 fim_handle_gif=no
10548 fi
10549
10550 if test x$have_gif = xyes; then
10551 ENABLE_GIF_TRUE=
10552 ENABLE_GIF_FALSE='#'
10553 else
10554 ENABLE_GIF_TRUE='#'
10555 ENABLE_GIF_FALSE=
10556 fi
10557
10558
10559
10560
10561 # Check whether --enable-qoi was given.
10562 if test "${enable_qoi+set}" = set; then :
10563 enableval=$enable_qoi; if test x$enableval = xno ; then
10564 fim_handle_qoi=no
10565 fi
10566
10567 fi
10568
10569 if test x$fim_handle_qoi != xno ; then
10570 for ac_header in qoi.h
10571 do :
10572 ac_fn_cxx_check_header_mongrel "$LINENO" "qoi.h" "ac_cv_header_qoi_h" "$ac_includes_default"
10573 if test "x$ac_cv_header_qoi_h" = xyes; then :
10574 cat >>confdefs.h <<_ACEOF
10575 #define HAVE_QOI_H 1
10576 _ACEOF
10577 fim_handle_qoi=yes;
10578 else
10579 fim_handle_qoi=no;
10580 fi
10581
10582 done
10583
10584 if test x$fim_handle_qoi != xno ; then
10585 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling support of QOI." >&5
10586 $as_echo "$as_me: Enabling support of QOI." >&6;};
10587 $as_echo "#define FIM_HANDLE_QOI 1" >>confdefs.h
10588
10589
10590 $as_echo "#define FIM_WITH_QOI 1" >>confdefs.h
10591
10592 FIM_LIB_OBJECTS="$FIM_LIB_OBJECTS FbiStuffQoi.o"
10593 fi
10594 fi
10595
10596 if test x$have_qoi = xyes; then
10597 ENABLE_QOI_TRUE=
10598 ENABLE_QOI_FALSE='#'
10599 else
10600 ENABLE_QOI_TRUE='#'
10601 ENABLE_QOI_FALSE=
10602 fi
10603
10604
10605
10606
10607 # Check whether --enable-tiff was given.
10608 if test "${enable_tiff+set}" = set; then :
10609 enableval=$enable_tiff; if test x$enableval = xno ; then
10610 fim_handle_tiff=no
10611 fi
10612
10613 fi
10614
10615 if test x$fim_handle_tiff != xno ; then
10616 fim_handle_tiff=yes
10617 have_tiff=yes
10618 if test x$with_libtiff != xno && test -z "$LIBTIFF"; then
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
10620 $as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
10621 if ${ac_cv_lib_tiff_TIFFOpen_+:} false; then :
10622 $as_echo_n "(cached) " >&6
10623 else
10624 ac_check_lib_save_LIBS=$LIBS
10625 LIBS="-ltiff $LIBTIFF_STATIC_EXTRA $LIBS"
10626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10627 /* end confdefs.h. */
10628
10629 /* Override any GCC internal prototype to avoid an error.
10630 Use char because int might match the return type of a GCC
10631 builtin and then its argument prototype would still apply. */
10632 #ifdef __cplusplus
10633 extern "C"
10634 #endif
10635 char TIFFOpen ();
10636 int
10637 main ()
10638 {
10639 return TIFFOpen ();
10640 ;
10641 return 0;
10642 }
10643 _ACEOF
10644 if ac_fn_cxx_try_link "$LINENO"; then :
10645 ac_cv_lib_tiff_TIFFOpen_=yes
10646 else
10647 ac_cv_lib_tiff_TIFFOpen_=no
10648 fi
10649 rm -f core conftest.err conftest.$ac_objext \
10650 conftest$ac_exeext conftest.$ac_ext
10651 LIBS=$ac_check_lib_save_LIBS
10652 fi
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen_" >&5
10654 $as_echo "$ac_cv_lib_tiff_TIFFOpen_" >&6; }
10655 if test "x$ac_cv_lib_tiff_TIFFOpen_" = xyes; then :
10656 have_tiff=yes
10657 else
10658 have_tiff=no
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** TIFF loader will not be built (TIFF library not found) ***" >&5
10660 $as_echo "$as_me: WARNING: *** TIFF loader will not be built (TIFF library not found) ***" >&2;}
10661 fi
10662
10663 if test x"$have_tiff" = xyes; then
10664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tiff.h" >&5
10665 $as_echo_n "checking for tiff.h... " >&6; }
10666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10667 /* end confdefs.h. */
10668 #include <stdio.h>
10669 #undef PACKAGE
10670 #undef VERSION
10671 #undef HAVE_STDLIB_H
10672 #include <tiff.h>
10673 _ACEOF
10674 if ac_fn_cxx_try_cpp "$LINENO"; then :
10675 have_tiff=yes
10676 else
10677 have_tiff=no
10678 fi
10679 rm -f conftest.err conftest.i conftest.$ac_ext
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_tiff" >&5
10681 $as_echo "$have_tiff" >&6; }
10682 if test x"$have_tiff" = xyes; then
10683 LIBTIFF="-ltiff $LIBTIFF_STATIC_EXTRA"
10684 else
10685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** TIFF loader will not be built (TIFF header file not found) ***" >&5
10686 $as_echo "$as_me: WARNING: *** TIFF loader will not be built (TIFF header file not found) ***" >&2;}
10687 fi
10688 fi
10689 fi
10690
10691 # if test x$with_libtiff != xno ; then
10692 # the following needs thorough testing
10693 if test x"$have_tiff" = xyes ; then
10694 FIM_LIB_OBJECTS="$FIM_LIB_OBJECTS FbiStuffTiff.o"
10695 LIBS="$LIBS $LIBTIFF"
10696 $as_echo "#define FIM_HANDLE_TIFF 1" >>confdefs.h
10697
10698 else
10699 fim_handle_tiff=no
10700 fi
10701
10702 # if test x$with_libtiff != xno && test -z "$LIBTIFF"; then
10703 #
10704 # fi
10705 else
10706 fim_handle_tiff=no
10707 fi
10708
10709 if test x$have_tiff = xyes; then
10710 ENABLE_TIFF_TRUE=
10711 ENABLE_TIFF_FALSE='#'
10712 else
10713 ENABLE_TIFF_TRUE='#'
10714 ENABLE_TIFF_FALSE=
10715 fi
10716
10717
10718
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for noecho in -lcurses" >&5
10720 $as_echo_n "checking for noecho in -lcurses... " >&6; }
10721 if ${ac_cv_lib_curses_noecho+:} false; then :
10722 $as_echo_n "(cached) " >&6
10723 else
10724 ac_check_lib_save_LIBS=$LIBS
10725 LIBS="-lcurses $LIBS"
10726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10727 /* end confdefs.h. */
10728
10729 /* Override any GCC internal prototype to avoid an error.
10730 Use char because int might match the return type of a GCC
10731 builtin and then its argument prototype would still apply. */
10732 #ifdef __cplusplus
10733 extern "C"
10734 #endif
10735 char noecho ();
10736 int
10737 main ()
10738 {
10739 return noecho ();
10740 ;
10741 return 0;
10742 }
10743 _ACEOF
10744 if ac_fn_cxx_try_link "$LINENO"; then :
10745 ac_cv_lib_curses_noecho=yes
10746 else
10747 ac_cv_lib_curses_noecho=no
10748 fi
10749 rm -f core conftest.err conftest.$ac_objext \
10750 conftest$ac_exeext conftest.$ac_ext
10751 LIBS=$ac_check_lib_save_LIBS
10752 fi
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_noecho" >&5
10754 $as_echo "$ac_cv_lib_curses_noecho" >&6; }
10755 if test "x$ac_cv_lib_curses_noecho" = xyes; then :
10756 cat >>confdefs.h <<_ACEOF
10757 #define HAVE_LIBCURSES 1
10758 _ACEOF
10759
10760 LIBS="-lcurses $LIBS"
10761
10762 fi
10763
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for noecho in -lncurses" >&5
10765 $as_echo_n "checking for noecho in -lncurses... " >&6; }
10766 if ${ac_cv_lib_ncurses_noecho+:} false; then :
10767 $as_echo_n "(cached) " >&6
10768 else
10769 ac_check_lib_save_LIBS=$LIBS
10770 LIBS="-lncurses $LIBS"
10771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10772 /* end confdefs.h. */
10773
10774 /* Override any GCC internal prototype to avoid an error.
10775 Use char because int might match the return type of a GCC
10776 builtin and then its argument prototype would still apply. */
10777 #ifdef __cplusplus
10778 extern "C"
10779 #endif
10780 char noecho ();
10781 int
10782 main ()
10783 {
10784 return noecho ();
10785 ;
10786 return 0;
10787 }
10788 _ACEOF
10789 if ac_fn_cxx_try_link "$LINENO"; then :
10790 ac_cv_lib_ncurses_noecho=yes
10791 else
10792 ac_cv_lib_ncurses_noecho=no
10793 fi
10794 rm -f core conftest.err conftest.$ac_objext \
10795 conftest$ac_exeext conftest.$ac_ext
10796 LIBS=$ac_check_lib_save_LIBS
10797 fi
10798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_noecho" >&5
10799 $as_echo "$ac_cv_lib_ncurses_noecho" >&6; }
10800 if test "x$ac_cv_lib_ncurses_noecho" = xyes; then :
10801 cat >>confdefs.h <<_ACEOF
10802 #define HAVE_LIBNCURSES 1
10803 _ACEOF
10804
10805 LIBS="-lncurses $LIBS"
10806
10807 fi
10808
10809
10810
10811 # AC_CHECK_LIB(gpm,Gpm_Open,
10812 # ,true,
10813 # AC_MSG_ERROR(*** gpm lib not found ... no problem ... ***))
10814 #LIBS="$LIBS -lgpm"
10815
10816
10817 fim_want_readline=yes
10818 # Check whether --enable-readline was given.
10819 if test "${enable_readline+set}" = set; then :
10820 enableval=$enable_readline; if test x$enableval = xno ; then
10821 fim_want_readline=no
10822 else
10823 fim_want_readline=yes
10824 fi
10825
10826 fi
10827
10828
10829
10830
10831
10832
10833
10834
10835 have_readline=no
10836
10837 # Sometimes the readline library is linked to the curses library, and we here try to detect this case..
10838 if test x$have_readline = xno; then
10839 if test x$fim_want_readline = xyes ; then
10840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_replace_line in -lreadline" >&5
10841 $as_echo_n "checking for rl_replace_line in -lreadline... " >&6; }
10842 if ${ac_cv_lib_readline_rl_replace_line+:} false; then :
10843 $as_echo_n "(cached) " >&6
10844 else
10845 ac_check_lib_save_LIBS=$LIBS
10846 LIBS="-lreadline
10847 $LIBS"
10848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10849 /* end confdefs.h. */
10850
10851 /* Override any GCC internal prototype to avoid an error.
10852 Use char because int might match the return type of a GCC
10853 builtin and then its argument prototype would still apply. */
10854 #ifdef __cplusplus
10855 extern "C"
10856 #endif
10857 char rl_replace_line ();
10858 int
10859 main ()
10860 {
10861 return rl_replace_line ();
10862 ;
10863 return 0;
10864 }
10865 _ACEOF
10866 if ac_fn_cxx_try_link "$LINENO"; then :
10867 ac_cv_lib_readline_rl_replace_line=yes
10868 else
10869 ac_cv_lib_readline_rl_replace_line=no
10870 fi
10871 rm -f core conftest.err conftest.$ac_objext \
10872 conftest$ac_exeext conftest.$ac_ext
10873 LIBS=$ac_check_lib_save_LIBS
10874 fi
10875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_replace_line" >&5
10876 $as_echo "$ac_cv_lib_readline_rl_replace_line" >&6; }
10877 if test "x$ac_cv_lib_readline_rl_replace_line" = xyes; then :
10878 have_readline=yes
10879 LIBS="$LIBS -lreadline"
10880 $as_echo "#define FIM_USE_READLINE 1" >>confdefs.h
10881
10882
10883 else
10884 have_readline=no
10885 as_fn_error $? "*** GNU readline (or curses library ?) not found (used LIBS=${LIBS}) ! please install them or specify them in e.g. LIBS=... or run ./configure --disable-readline ***" "$LINENO" 5
10886
10887 fi
10888
10889 else
10890 have_readline=no
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: *** Fim will be built withoud GNU readline library headers ! Are you sure ? ***" >&5
10892 $as_echo "$as_me: *** Fim will be built withoud GNU readline library headers ! Are you sure ? ***" >&6;}
10893 fi
10894 fi
10895
10896 if test x$have_readline = xyes; then
10897 if test x$fim_want_readline = xyes ; then
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tputs in -lcurses" >&5
10899 $as_echo_n "checking for tputs in -lcurses... " >&6; }
10900 if ${ac_cv_lib_curses_tputs+:} false; then :
10901 $as_echo_n "(cached) " >&6
10902 else
10903 ac_check_lib_save_LIBS=$LIBS
10904 LIBS="-lcurses $LIBS"
10905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10906 /* end confdefs.h. */
10907
10908 /* Override any GCC internal prototype to avoid an error.
10909 Use char because int might match the return type of a GCC
10910 builtin and then its argument prototype would still apply. */
10911 #ifdef __cplusplus
10912 extern "C"
10913 #endif
10914 char tputs ();
10915 int
10916 main ()
10917 {
10918 return tputs ();
10919 ;
10920 return 0;
10921 }
10922 _ACEOF
10923 if ac_fn_cxx_try_link "$LINENO"; then :
10924 ac_cv_lib_curses_tputs=yes
10925 else
10926 ac_cv_lib_curses_tputs=no
10927 fi
10928 rm -f core conftest.err conftest.$ac_objext \
10929 conftest$ac_exeext conftest.$ac_ext
10930 LIBS=$ac_check_lib_save_LIBS
10931 fi
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tputs" >&5
10933 $as_echo "$ac_cv_lib_curses_tputs" >&6; }
10934 if test "x$ac_cv_lib_curses_tputs" = xyes; then :
10935 have_curses=yes
10936 LIBS="$LIBS"
10937
10938 else
10939 have_curses=no
10940
10941 fi
10942
10943 fi
10944 fi
10945 if test x$have_readline = xyes; then
10946 WANT_READLINE_TRUE=
10947 WANT_READLINE_FALSE='#'
10948 else
10949 WANT_READLINE_TRUE='#'
10950 WANT_READLINE_FALSE=
10951 fi
10952
10953
10954
10955 #AC_ARG_WITH(jpeg, [ --disable-jpeg ], [ disable jpeg file support])
10956 # Check whether --enable-jpeg was given.
10957 if test "${enable_jpeg+set}" = set; then :
10958 enableval=$enable_jpeg; if test x$enableval = xno ; then
10959 fim_handle_jpeg=no
10960 fi
10961
10962 fi
10963
10964 if test x$fim_handle_jpeg != xno ; then
10965 fim_handle_jpeg=yes
10966 have_jpeg=yes
10967 if test x$with_libjpeg != xno && test -z "$LIBJPEG"; then
10968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_decompress in -ljpeg" >&5
10969 $as_echo_n "checking for jpeg_destroy_decompress in -ljpeg... " >&6; }
10970 if ${ac_cv_lib_jpeg_jpeg_destroy_decompress+:} false; then :
10971 $as_echo_n "(cached) " >&6
10972 else
10973 ac_check_lib_save_LIBS=$LIBS
10974 LIBS="-ljpeg $LIBS"
10975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10976 /* end confdefs.h. */
10977
10978 /* Override any GCC internal prototype to avoid an error.
10979 Use char because int might match the return type of a GCC
10980 builtin and then its argument prototype would still apply. */
10981 #ifdef __cplusplus
10982 extern "C"
10983 #endif
10984 char jpeg_destroy_decompress ();
10985 int
10986 main ()
10987 {
10988 return jpeg_destroy_decompress ();
10989 ;
10990 return 0;
10991 }
10992 _ACEOF
10993 if ac_fn_cxx_try_link "$LINENO"; then :
10994 ac_cv_lib_jpeg_jpeg_destroy_decompress=yes
10995 else
10996 ac_cv_lib_jpeg_jpeg_destroy_decompress=no
10997 fi
10998 rm -f core conftest.err conftest.$ac_objext \
10999 conftest$ac_exeext conftest.$ac_ext
11000 LIBS=$ac_check_lib_save_LIBS
11001 fi
11002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_decompress" >&5
11003 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_decompress" >&6; }
11004 if test "x$ac_cv_lib_jpeg_jpeg_destroy_decompress" = xyes; then :
11005 have_jpeg=yes
11006 else
11007 have_jpeg=no
11008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** JPEG loader will not be built (JPEG library not found) ***" >&5
11009 $as_echo "$as_me: WARNING: *** JPEG loader will not be built (JPEG library not found) ***" >&2;}
11010 fi
11011
11012 if test x"$have_jpeg" = xyes; then
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeglib.h" >&5
11014 $as_echo_n "checking for jpeglib.h... " >&6; }
11015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11016 /* end confdefs.h. */
11017 #include <stdio.h>
11018 #undef PACKAGE
11019 #undef VERSION
11020 #undef HAVE_STDLIB_H
11021 #include <jpeglib.h>
11022 _ACEOF
11023 if ac_fn_cxx_try_cpp "$LINENO"; then :
11024 have_jpeg=yes
11025 else
11026 have_jpeg=no
11027 fi
11028 rm -f conftest.err conftest.i conftest.$ac_ext
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_jpeg" >&5
11030 $as_echo "$have_jpeg" >&6; }
11031 if test x"$have_jpeg" = xyes; then
11032 LIBJPEG='-ljpeg'
11033 else
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** JPEG loader will not be built (JPEG header file not found) ***" >&5
11035 $as_echo "$as_me: WARNING: *** JPEG loader will not be built (JPEG header file not found) ***" >&2;}
11036 fi
11037 fi
11038 fi
11039
11040 # if test x$with_libjpeg != xno ; then
11041 # the following needs thorough testing
11042 if test x"$have_jpeg" = xyes ; then
11043 FIM_LIB_OBJECTS="$FIM_LIB_OBJECTS FbiStuffJpeg.o"
11044 LIBS="$LIBS $LIBJPEG"
11045
11046 $as_echo "#define HAVE_LIBJPEG 1" >>confdefs.h
11047
11048 else
11049 fim_handle_jpeg=no
11050 fi
11051
11052 # if test x$with_libjpeg != xno && test -z "$LIBJPEG"; then
11053 # AC_MSG_ERROR([
11054 # Checks for JPEG loader failed. You can build without it by passing
11055 # --disable-jpeg to ./configure. ])
11056 # fi
11057 else
11058 fim_handle_jpeg=no
11059 fi
11060
11061 if test x$fim_handle_jpeg = xyes; then
11062 ENABLE_JPEG_TRUE=
11063 ENABLE_JPEG_FALSE='#'
11064 else
11065 ENABLE_JPEG_TRUE='#'
11066 ENABLE_JPEG_FALSE=
11067 fi
11068
11069
11070
11071
11072 # Check whether --enable-ps was given.
11073 if test "${enable_ps+set}" = set; then :
11074 enableval=$enable_ps; if test x$enableval = xno ; then
11075 fim_handle_ps=no
11076 fi
11077
11078 fi
11079
11080 if test x$fim_handle_ps != xno ; then
11081 fim_handle_ps=yes
11082 have_ps=yes
11083 if test x$with_libps != xno && test -z "$LIBPS"; then
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for spectre_page_render in -lspectre" >&5
11085 $as_echo_n "checking for spectre_page_render in -lspectre... " >&6; }
11086 if ${ac_cv_lib_spectre_spectre_page_render+:} false; then :
11087 $as_echo_n "(cached) " >&6
11088 else
11089 ac_check_lib_save_LIBS=$LIBS
11090 LIBS="-lspectre $LIBSPECTRE_STATIC_EXTRA $LIBS"
11091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11092 /* end confdefs.h. */
11093
11094 /* Override any GCC internal prototype to avoid an error.
11095 Use char because int might match the return type of a GCC
11096 builtin and then its argument prototype would still apply. */
11097 #ifdef __cplusplus
11098 extern "C"
11099 #endif
11100 char spectre_page_render ();
11101 int
11102 main ()
11103 {
11104 return spectre_page_render ();
11105 ;
11106 return 0;
11107 }
11108 _ACEOF
11109 if ac_fn_cxx_try_link "$LINENO"; then :
11110 ac_cv_lib_spectre_spectre_page_render=yes
11111 else
11112 ac_cv_lib_spectre_spectre_page_render=no
11113 fi
11114 rm -f core conftest.err conftest.$ac_objext \
11115 conftest$ac_exeext conftest.$ac_ext
11116 LIBS=$ac_check_lib_save_LIBS
11117 fi
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_spectre_spectre_page_render" >&5
11119 $as_echo "$ac_cv_lib_spectre_spectre_page_render" >&6; }
11120 if test "x$ac_cv_lib_spectre_spectre_page_render" = xyes; then :
11121 have_ps=yes
11122 else
11123 have_ps=no
11124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** PS loader will not be built (spectre library not found) ***" >&5
11125 $as_echo "$as_me: WARNING: *** PS loader will not be built (spectre library not found) ***" >&2;}
11126 fi
11127
11128 if test x"$have_ps" = xyes; then
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libspectre/spectre.h" >&5
11130 $as_echo_n "checking for libspectre/spectre.h... " >&6; }
11131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11132 /* end confdefs.h. */
11133 #include <stdio.h>
11134 #undef PACKAGE
11135 #undef VERSION
11136 #undef HAVE_STDLIB_H
11137 #include <libspectre/spectre.h>
11138 _ACEOF
11139 if ac_fn_cxx_try_cpp "$LINENO"; then :
11140 have_ps=yes
11141 else
11142 have_ps=no
11143 fi
11144 rm -f conftest.err conftest.i conftest.$ac_ext
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ps" >&5
11146 $as_echo "$have_ps" >&6; }
11147 if test x"$have_ps" = xyes; then
11148 LIBPS="-lspectre $LIBSPECTRE_STATIC_EXTRA"
11149 else
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** PS loader will not be built (PS header file not found) ***" >&5
11151 $as_echo "$as_me: WARNING: *** PS loader will not be built (PS header file not found) ***" >&2;}
11152 fi
11153 fi
11154 fi
11155
11156 # the following needs thorough testing
11157 if test x"$have_ps" = xyes ; then
11158 FIM_LIB_OBJECTS="$FIM_LIB_OBJECTS FbiStuffPs.o"
11159 LIBS="$LIBS $LIBPS"
11160
11161 $as_echo "#define HAVE_LIBSPECTRE 1" >>confdefs.h
11162
11163 else
11164 fim_handle_ps=no
11165 fi
11166
11167 # if test x$with_libps != xno && test -z "$LIBPS"; then
11168 # AC_MSG_ERROR([
11169 # Checks for PS loader failed. You can build without it by passing
11170 # --disable-ps to ./configure. ])
11171 # fi
11172 else
11173 fim_handle_ps=no
11174 fi
11175
11176 if test x$have_ps = xyes; then
11177 ENABLE_PS_TRUE=
11178 ENABLE_PS_FALSE='#'
11179 else
11180 ENABLE_PS_TRUE='#'
11181 ENABLE_PS_FALSE=
11182 fi
11183
11184
11185
11186
11187
11188 # Check whether --enable-djvu was given.
11189 if test "${enable_djvu+set}" = set; then :
11190 enableval=$enable_djvu; if test x$enableval = xno ; then
11191 fim_handle_djvu=no
11192 fi
11193
11194 fi
11195
11196 if test x$fim_handle_djvu != xno ; then
11197 fim_handle_djvu=yes
11198 have_djvu=yes
11199 if test x$with_libdjvu != xno && test -z "$LIBDJVU"; then
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_page_create_by_pageno in -ldjvulibre" >&5
11201 $as_echo_n "checking for ddjvu_page_create_by_pageno in -ldjvulibre... " >&6; }
11202 if ${ac_cv_lib_djvulibre_ddjvu_page_create_by_pageno+:} false; then :
11203 $as_echo_n "(cached) " >&6
11204 else
11205 ac_check_lib_save_LIBS=$LIBS
11206 LIBS="-ldjvulibre $LIBDJVU_STATIC_EXTRA $LIBS"
11207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11208 /* end confdefs.h. */
11209
11210 /* Override any GCC internal prototype to avoid an error.
11211 Use char because int might match the return type of a GCC
11212 builtin and then its argument prototype would still apply. */
11213 #ifdef __cplusplus
11214 extern "C"
11215 #endif
11216 char ddjvu_page_create_by_pageno ();
11217 int
11218 main ()
11219 {
11220 return ddjvu_page_create_by_pageno ();
11221 ;
11222 return 0;
11223 }
11224 _ACEOF
11225 if ac_fn_cxx_try_link "$LINENO"; then :
11226 ac_cv_lib_djvulibre_ddjvu_page_create_by_pageno=yes
11227 else
11228 ac_cv_lib_djvulibre_ddjvu_page_create_by_pageno=no
11229 fi
11230 rm -f core conftest.err conftest.$ac_objext \
11231 conftest$ac_exeext conftest.$ac_ext
11232 LIBS=$ac_check_lib_save_LIBS
11233 fi
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_page_create_by_pageno" >&5
11235 $as_echo "$ac_cv_lib_djvulibre_ddjvu_page_create_by_pageno" >&6; }
11236 if test "x$ac_cv_lib_djvulibre_ddjvu_page_create_by_pageno" = xyes; then :
11237 have_djvu=yes
11238 else
11239 have_djvu=no
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** DJVU loader will not be built (DJVU library not found) ***" >&5
11241 $as_echo "$as_me: WARNING: *** DJVU loader will not be built (DJVU library not found) ***" >&2;}
11242 fi
11243
11244 if test x"$have_djvu" = xyes; then
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdjvu/ddjvuapi.h" >&5
11246 $as_echo_n "checking for libdjvu/ddjvuapi.h... " >&6; }
11247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11248 /* end confdefs.h. */
11249 #include <stdio.h>
11250 #undef PACKAGE
11251 #undef VERSION
11252 #undef HAVE_STDLIB_H
11253 #include <libdjvu/ddjvuapi.h>
11254 _ACEOF
11255 if ac_fn_cxx_try_cpp "$LINENO"; then :
11256 have_djvu=yes
11257 else
11258 have_djvu=no
11259 fi
11260 rm -f conftest.err conftest.i conftest.$ac_ext
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_djvu" >&5
11262 $as_echo "$have_djvu" >&6; }
11263 if test x"$have_djvu" = xyes; then
11264 LIBDJVU="-ldjvulibre $LIBDJVU_STATIC_EXTRA"
11265 else
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** DJVU loader will not be built (DJVU header file not found) ***" >&5
11267 $as_echo "$as_me: WARNING: *** DJVU loader will not be built (DJVU header file not found) ***" >&2;}
11268 fi
11269 fi
11270 fi
11271
11272 # the following needs thorough testing
11273 if test x"$have_djvu" = xyes ; then
11274 FIM_LIB_OBJECTS="$FIM_LIB_OBJECTS FbiStuffDjvu.o"
11275 LIBS="$LIBS $LIBDJVU"
11276
11277 $as_echo "#define HAVE_LIBDJVU 1" >>confdefs.h
11278
11279 else
11280 fim_handle_djvu=no
11281 fi
11282
11283 # if test x$with_libdjvu != xno && test -z "$LIBDJVU"; then
11284 # AC_MSG_ERROR([
11285 # Checks for DJVU loader failed. You can build without it by passing
11286 # --disable-djvu to ./configure. ])
11287 # fi
11288 else
11289 fim_handle_djvu=no
11290 fi
11291
11292 if test x$have_djvu = xyes; then
11293 ENABLE_DJVU_TRUE=
11294 ENABLE_DJVU_FALSE='#'
11295 else
11296 ENABLE_DJVU_TRUE='#'
11297 ENABLE_DJVU_FALSE=
11298 fi
11299
11300
11301
11302 fim_handle_pdf=no
11303 # Check whether --enable-poppler was given.
11304 if test "${enable_poppler+set}" = set; then :
11305 enableval=$enable_poppler; if test x$enableval = xyes ; then
11306 fim_handle_pdf=yes
11307 fi
11308
11309 else
11310 $LIBPOPPLER_STATIC_EXTRA
11311 fi
11312
11313 if test x$fim_handle_pdf != xno ; then
11314 CPPFLAGS_precheck="$CPPFLAGS";
11315 if test -z "$LIBPOPPLER"; then
11316 # dear fim hackers, you should install pkg-config to get this macro expanded (p)
11317 # I admit I don't like this much
11318 CXXFLAGS="$CXXFLAGS `$PKG_CONFIG poppler --cflags`";
11319 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG poppler --cflags-only-I`";
11320 CXXFLAGS="$CXXFLAGS `$PKG_CONFIG poppler-splash --cflags`"; CPPFLAGS="$CPPFLAGS `$PKG_CONFIG poppler-splash --cflags-only-I`"; CXXFLAGS="$CXXFLAGS `$PKG_CONFIG poppler-cpp --cflags`";
11321 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG poppler-cpp --cflags-only-I`";
11322 POPPLER_REQUIRED=0.8.7
11323
11324
11325
11326
11327
11328
11329
11330 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11331 if test -n "$ac_tool_prefix"; then
11332 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11333 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11335 $as_echo_n "checking for $ac_word... " >&6; }
11336 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11337 $as_echo_n "(cached) " >&6
11338 else
11339 case $PKG_CONFIG in
11340 [\\/]* | ?:[\\/]*)
11341 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11342 ;;
11343 *)
11344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11345 for as_dir in $PATH
11346 do
11347 IFS=$as_save_IFS
11348 test -z "$as_dir" && as_dir=.
11349 for ac_exec_ext in '' $ac_executable_extensions; do
11350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11351 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11353 break 2
11354 fi
11355 done
11356 done
11357 IFS=$as_save_IFS
11358
11359 ;;
11360 esac
11361 fi
11362 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11363 if test -n "$PKG_CONFIG"; then
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11365 $as_echo "$PKG_CONFIG" >&6; }
11366 else
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11368 $as_echo "no" >&6; }
11369 fi
11370
11371
11372 fi
11373 if test -z "$ac_cv_path_PKG_CONFIG"; then
11374 ac_pt_PKG_CONFIG=$PKG_CONFIG
11375 # Extract the first word of "pkg-config", so it can be a program name with args.
11376 set dummy pkg-config; ac_word=$2
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11378 $as_echo_n "checking for $ac_word... " >&6; }
11379 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11380 $as_echo_n "(cached) " >&6
11381 else
11382 case $ac_pt_PKG_CONFIG in
11383 [\\/]* | ?:[\\/]*)
11384 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11385 ;;
11386 *)
11387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11388 for as_dir in $PATH
11389 do
11390 IFS=$as_save_IFS
11391 test -z "$as_dir" && as_dir=.
11392 for ac_exec_ext in '' $ac_executable_extensions; do
11393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11394 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11396 break 2
11397 fi
11398 done
11399 done
11400 IFS=$as_save_IFS
11401
11402 ;;
11403 esac
11404 fi
11405 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11406 if test -n "$ac_pt_PKG_CONFIG"; then
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11408 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11409 else
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11411 $as_echo "no" >&6; }
11412 fi
11413
11414 if test "x$ac_pt_PKG_CONFIG" = x; then
11415 PKG_CONFIG=""
11416 else
11417 case $cross_compiling:$ac_tool_warned in
11418 yes:)
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11420 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11421 ac_tool_warned=yes ;;
11422 esac
11423 PKG_CONFIG=$ac_pt_PKG_CONFIG
11424 fi
11425 else
11426 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11427 fi
11428
11429 fi
11430 if test -n "$PKG_CONFIG"; then
11431 _pkg_min_version=0.9.0
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11433 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11434 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11436 $as_echo "yes" >&6; }
11437 else
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11439 $as_echo "no" >&6; }
11440 PKG_CONFIG=""
11441 fi
11442 fi
11443
11444 pkg_failed=no
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POPPLER" >&5
11446 $as_echo_n "checking for POPPLER... " >&6; }
11447
11448 if test -n "$POPPLER_CFLAGS"; then
11449 pkg_cv_POPPLER_CFLAGS="$POPPLER_CFLAGS"
11450 elif test -n "$PKG_CONFIG"; then
11451 if test -n "$PKG_CONFIG" && \
11452 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"poppler >= \$POPPLER_REQUIRED\""; } >&5
11453 ($PKG_CONFIG --exists --print-errors "poppler >= $POPPLER_REQUIRED") 2>&5
11454 ac_status=$?
11455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11456 test $ac_status = 0; }; then
11457 pkg_cv_POPPLER_CFLAGS=`$PKG_CONFIG --cflags "poppler >= $POPPLER_REQUIRED" 2>/dev/null`
11458 test "x$?" != "x0" && pkg_failed=yes
11459 else
11460 pkg_failed=yes
11461 fi
11462 else
11463 pkg_failed=untried
11464 fi
11465 if test -n "$POPPLER_LIBS"; then
11466 pkg_cv_POPPLER_LIBS="$POPPLER_LIBS"
11467 elif test -n "$PKG_CONFIG"; then
11468 if test -n "$PKG_CONFIG" && \
11469 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"poppler >= \$POPPLER_REQUIRED\""; } >&5
11470 ($PKG_CONFIG --exists --print-errors "poppler >= $POPPLER_REQUIRED") 2>&5
11471 ac_status=$?
11472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11473 test $ac_status = 0; }; then
11474 pkg_cv_POPPLER_LIBS=`$PKG_CONFIG --libs "poppler >= $POPPLER_REQUIRED" 2>/dev/null`
11475 test "x$?" != "x0" && pkg_failed=yes
11476 else
11477 pkg_failed=yes
11478 fi
11479 else
11480 pkg_failed=untried
11481 fi
11482
11483
11484
11485 if test $pkg_failed = yes; then
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11487 $as_echo "no" >&6; }
11488
11489 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11490 _pkg_short_errors_supported=yes
11491 else
11492 _pkg_short_errors_supported=no
11493 fi
11494 if test $_pkg_short_errors_supported = yes; then
11495 POPPLER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "poppler >= $POPPLER_REQUIRED" 2>&1`
11496 else
11497 POPPLER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "poppler >= $POPPLER_REQUIRED" 2>&1`
11498 fi
11499 # Put the nasty error message in config.log where it belongs
11500 echo "$POPPLER_PKG_ERRORS" >&5
11501
11502 as_fn_error $? "Package requirements (poppler >= $POPPLER_REQUIRED) were not met:
11503
11504 $POPPLER_PKG_ERRORS
11505
11506 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11507 installed software in a non-standard prefix.
11508
11509 Alternatively, you may set the environment variables POPPLER_CFLAGS
11510 and POPPLER_LIBS to avoid the need to call pkg-config.
11511 See the pkg-config man page for more details." "$LINENO" 5
11512 elif test $pkg_failed = untried; then
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11514 $as_echo "no" >&6; }
11515 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11516 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11517 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11518 is in your PATH or set the PKG_CONFIG environment variable to the full
11519 path to pkg-config.
11520
11521 Alternatively, you may set the environment variables POPPLER_CFLAGS
11522 and POPPLER_LIBS to avoid the need to call pkg-config.
11523 See the pkg-config man page for more details.
11524
11525 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11526 See \`config.log' for more details" "$LINENO" 5; }
11527 else
11528 POPPLER_CFLAGS=$pkg_cv_POPPLER_CFLAGS
11529 POPPLER_LIBS=$pkg_cv_POPPLER_LIBS
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11531 $as_echo "yes" >&6; }
11532
11533 fi
11534 pkg_failed=no
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
11536 $as_echo_n "checking for GLIB... " >&6; }
11537
11538 if test -n "$GLIB_CFLAGS"; then
11539 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
11540 elif test -n "$PKG_CONFIG"; then
11541 if test -n "$PKG_CONFIG" && \
11542 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0\""; } >&5
11543 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
11544 ac_status=$?
11545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11546 test $ac_status = 0; }; then
11547 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
11548 test "x$?" != "x0" && pkg_failed=yes
11549 else
11550 pkg_failed=yes
11551 fi
11552 else
11553 pkg_failed=untried
11554 fi
11555 if test -n "$GLIB_LIBS"; then
11556 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
11557 elif test -n "$PKG_CONFIG"; then
11558 if test -n "$PKG_CONFIG" && \
11559 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0\""; } >&5
11560 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
11561 ac_status=$?
11562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11563 test $ac_status = 0; }; then
11564 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
11565 test "x$?" != "x0" && pkg_failed=yes
11566 else
11567 pkg_failed=yes
11568 fi
11569 else
11570 pkg_failed=untried
11571 fi
11572
11573
11574
11575 if test $pkg_failed = yes; then
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11577 $as_echo "no" >&6; }
11578
11579 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11580 _pkg_short_errors_supported=yes
11581 else
11582 _pkg_short_errors_supported=no
11583 fi
11584 if test $_pkg_short_errors_supported = yes; then
11585 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0" 2>&1`
11586 else
11587 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0" 2>&1`
11588 fi
11589 # Put the nasty error message in config.log where it belongs
11590 echo "$GLIB_PKG_ERRORS" >&5
11591
11592 as_fn_error $? "Package requirements (glib-2.0) were not met:
11593
11594 $GLIB_PKG_ERRORS
11595
11596 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11597 installed software in a non-standard prefix.
11598
11599 Alternatively, you may set the environment variables GLIB_CFLAGS
11600 and GLIB_LIBS to avoid the need to call pkg-config.
11601 See the pkg-config man page for more details." "$LINENO" 5
11602 elif test $pkg_failed = untried; then
11603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11604 $as_echo "no" >&6; }
11605 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11606 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11607 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11608 is in your PATH or set the PKG_CONFIG environment variable to the full
11609 path to pkg-config.
11610
11611 Alternatively, you may set the environment variables GLIB_CFLAGS
11612 and GLIB_LIBS to avoid the need to call pkg-config.
11613 See the pkg-config man page for more details.
11614
11615 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11616 See \`config.log' for more details" "$LINENO" 5; }
11617 else
11618 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
11619 GLIB_LIBS=$pkg_cv_GLIB_LIBS
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11621 $as_echo "yes" >&6; }
11622
11623 fi
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for g_free in -lpoppler" >&5
11625 $as_echo_n "checking for g_free in -lpoppler... " >&6; }
11626 if ${ac_cv_lib_poppler_g_free+:} false; then :
11627 $as_echo_n "(cached) " >&6
11628 else
11629 ac_check_lib_save_LIBS=$LIBS
11630 LIBS="-lpoppler $GLIB_LIBS $POPPLER_LIBS $LIBS"
11631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11632 /* end confdefs.h. */
11633
11634 /* Override any GCC internal prototype to avoid an error.
11635 Use char because int might match the return type of a GCC
11636 builtin and then its argument prototype would still apply. */
11637 #ifdef __cplusplus
11638 extern "C"
11639 #endif
11640 char g_free ();
11641 int
11642 main ()
11643 {
11644 return g_free ();
11645 ;
11646 return 0;
11647 }
11648 _ACEOF
11649 if ac_fn_cxx_try_link "$LINENO"; then :
11650 ac_cv_lib_poppler_g_free=yes
11651 else
11652 ac_cv_lib_poppler_g_free=no
11653 fi
11654 rm -f core conftest.err conftest.$ac_objext \
11655 conftest$ac_exeext conftest.$ac_ext
11656 LIBS=$ac_check_lib_save_LIBS
11657 fi
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_poppler_g_free" >&5
11659 $as_echo "$ac_cv_lib_poppler_g_free" >&6; }
11660 if test "x$ac_cv_lib_poppler_g_free" = xyes; then :
11661 have_poppler=yes
11662 LIBS="$LIBS $GLIB_LIBS $POPPLER_LIBS";
11663 CXXFLAGS="$CXXFLAGS $GLIB_CFLAGS $POPPLER_CFLAGS";
11664 CPPFLAGS="$CPPFLAGS $GLIB_CFLAGS $POPPLER_CFLAGS";
11665
11666 else
11667 have_poppler=no
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** POPPLER loader will not be built (POPPLER library not found) ***" >&5
11669 $as_echo "$as_me: WARNING: *** POPPLER loader will not be built (POPPLER library not found) ***" >&2;}
11670 fi
11671
11672 if test x"$have_poppler" = xyes; then
11673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for <cpp/poppler-version.h> <splash/SplashBitmap.h> <splash/SplashTypes.h> <poppler-config.h> <OutputDev.h> <PDFDoc.h> <SplashOutputDev.h> <Page.h> <GlobalParams.h> <glib.h> ..." >&5
11674 $as_echo_n "checking for <cpp/poppler-version.h> <splash/SplashBitmap.h> <splash/SplashTypes.h> <poppler-config.h> <OutputDev.h> <PDFDoc.h> <SplashOutputDev.h> <Page.h> <GlobalParams.h> <glib.h> ...... " >&6; }
11675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11676 /* end confdefs.h. */
11677 #include <stdio.h>
11678 #undef PACKAGE
11679 #undef VERSION
11680 #undef HAVE_STDLIB_H
11681 #include <cpp/poppler-version.h>
11682 #include <splash/SplashBitmap.h>
11683 #include <splash/SplashTypes.h>
11684 #include <poppler-config.h>
11685 #include <OutputDev.h>
11686 #include <PDFDoc.h>
11687 #include <SplashOutputDev.h>
11688 #include <Page.h>
11689 #include <GlobalParams.h>
11690 #include <glib.h>
11691
11692 _ACEOF
11693 if ac_fn_cxx_try_cpp "$LINENO"; then :
11694 have_poppler=yes
11695 else
11696 have_poppler=no
11697 fi
11698 rm -f conftest.err conftest.i conftest.$ac_ext
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_poppler" >&5
11700 $as_echo "$have_poppler" >&6; }
11701 if test x"$have_poppler" = xyes; then
11702 CXXFLAGS="$CXXFLAGS -DFIM_LIBPOPPLER_VERSION_MAYBE=$have_poppler_maybe_version"
11703 else
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** POPPLER/PDF loader will not be built (POPPLER header file not found) ***" >&5
11705 $as_echo "$as_me: WARNING: *** POPPLER/PDF loader will not be built (POPPLER header file not found) ***" >&2;}
11706 fi
11707 fi
11708 CPPFLAGS="$CPPFLAGS_precheck"; # restore: it's in CXXFLAGS anyway
11709 fi
11710
11711 # the following needs thorough testing
11712 if test x"$have_poppler" = xyes ; then
11713 FIM_LIB_OBJECTS="$FIM_LIB_OBJECTS FbiStuffPdf.o"
11714 LIBS="$LIBS $LIBPOPPLER"
11715
11716 $as_echo "#define HAVE_LIBPOPPLER 1" >>confdefs.h
11717
11718 else
11719 fim_handle_pdf=no
11720 as_fn_error $? "*** Could not detect POPPLER, which was requested via --enable-poppler. Please do not use that, or use --disable-poppler ***" "$LINENO" 5
11721 fi
11722
11723 else
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: POPPLER support (for PDF) not requested." >&5
11725 $as_echo "$as_me: POPPLER support (for PDF) not requested." >&6;}
11726 fim_handle_pdf=no
11727 fi
11728 if test x$have_poppler = xyes; then
11729 ENABLE_POPPLER_TRUE=
11730 ENABLE_POPPLER_FALSE='#'
11731 else
11732 ENABLE_POPPLER_TRUE='#'
11733 ENABLE_POPPLER_FALSE=
11734 fi
11735
11736
11737 # Check whether --enable-pdf was given.
11738 if test "${enable_pdf+set}" = set; then :
11739 enableval=$enable_pdf; enable_pdf="$enableval"
11740 else
11741 enable_pdf=yes
11742 fi
11743
11744
11745 if test x"$enable_pdf" = x"yes" -o x"$fim_handle_pdf" = x"yes"; then
11746 if test x"$enable_pdf" = x"yes" -a x"$fim_handle_pdf" != x"no" ; then
11747
11748 $as_echo "#define ENABLE_PDF 1" >>confdefs.h
11749
11750 SHELL_LIBS="$SHELL_LIBS $POPPLER_LIBS"
11751 SHELL_CXXFLAGS="$SHELL_CXXFLAGS $GLIB_CFLAGS $POPPLER_CFLAGS"
11752
11753 fim_save_LIBS=$LIBS
11754 LIBS="$LIBS $GLIB_LIBS $POPPLER_LIBS"
11755 LIBS=$fim_save_LIBS
11756 fi
11757 if test x"$enable_pdf" = x"yes" -a x"$fim_handle_pdf" != x"yes" ; then
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"PDF support can' be granted since poppler library version $POPPLER_REQUIRED or newer not found or not requested; perhaps can still open PDF with converters...\"" >&5
11759 $as_echo "$as_me: WARNING: \"PDF support can' be granted since poppler library version $POPPLER_REQUIRED or newer not found or not requested; perhaps can still open PDF with converters...\"" >&2;}
11760 enable_pdf=no;
11761 fi
11762 if test x"$enable_pdf" != x"yes" -a x"$fim_handle_pdf" = x"yes" ; then
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Disabling PDF support as requested\"" >&5
11764 $as_echo "$as_me: WARNING: \"Disabling PDF support as requested\"" >&2;}
11765 fim_handle_pdf=no;
11766 fi
11767 fi
11768
11769 if test x$enable_pdf = xyes; then
11770 ENABLE_PDF_TRUE=
11771 ENABLE_PDF_FALSE='#'
11772 else
11773 ENABLE_PDF_TRUE='#'
11774 ENABLE_PDF_FALSE=
11775 fi
11776
11777
11778 fim_handle_bmp=yes
11779 # Check whether --enable-bmp was given.
11780 if test "${enable_bmp+set}" = set; then :
11781 enableval=$enable_bmp; if test x$enableval = xno ; then
11782 fim_handle_bmp=no
11783 fi
11784
11785 fi
11786
11787 if test x$fim_handle_bmp = xyes; then
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling BMP file format support." >&5
11789 $as_echo "$as_me: Enabling BMP file format support." >&6;}
11790
11791 $as_echo "#define FIM_WITH_BMP 1" >>confdefs.h
11792
11793 FIM_LIB_OBJECTS="$FIM_LIB_OBJECTS FbiStuffBmp.o"
11794 else
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling BMP file format support." >&5
11796 $as_echo "$as_me: Disabling BMP file format support." >&6;}
11797
11798 $as_echo "#define FIM_WITH_BMP 0" >>confdefs.h
11799
11800 fi
11801 if test x$fim_handle_bmp = xyes; then
11802 ENABLE_BMP_TRUE=
11803 ENABLE_BMP_FALSE='#'
11804 else
11805 ENABLE_BMP_TRUE='#'
11806 ENABLE_BMP_FALSE=
11807 fi
11808
11809 fim_handle_pcx=yes
11810 # Check whether --enable-pcx was given.
11811 if test "${enable_pcx+set}" = set; then :
11812 enableval=$enable_pcx; if test x$enableval = xno ; then
11813 fim_handle_pcx=no
11814 fi
11815
11816 fi
11817
11818 if test x$fim_handle_pcx = xyes; then
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling PCX file format support." >&5
11820 $as_echo "$as_me: Enabling PCX file format support." >&6;}
11821
11822 $as_echo "#define FIM_WITH_PCX 1" >>confdefs.h
11823
11824 FIM_LIB_OBJECTS="$FIM_LIB_OBJECTS FbiStuffPcx.o"
11825 else
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling PCX file format support." >&5
11827 $as_echo "$as_me: Disabling PCX file format support." >&6;}
11828
11829 $as_echo "#define FIM_WITH_PCX 0" >>confdefs.h
11830
11831 fi
11832 if test x$fim_handle_pcx = xyes; then
11833 ENABLE_PCX_TRUE=
11834 ENABLE_PCX_FALSE='#'
11835 else
11836 ENABLE_PCX_TRUE='#'
11837 ENABLE_PCX_FALSE=
11838 fi
11839
11840
11841 ## webp file handling
11842 for ac_header in webp/decode.h webp/demux.h
11843 do :
11844 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11845 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11846 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11847 cat >>confdefs.h <<_ACEOF
11848 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11849 _ACEOF
11850 fim_handle_webp=yes;
11851 else
11852 fim_handle_webp=no;
11853 fi
11854
11855 done
11856
11857 # Check whether --enable-webp was given.
11858 if test "${enable_webp+set}" = set; then :
11859 enableval=$enable_webp; if test x$enableval = xno ; then
11860 fim_handle_webp=no
11861 fi
11862
11863 fi
11864
11865 if test x$fim_handle_webp = xyes; then
11866 LIBS="$LIBS `$PKG_CONFIG libwebpdemux --libs`";
11867 LIBS="$LIBS `$PKG_CONFIG libwebp --libs`";
11868 CXXFLAGS="$CXXFLAGS `$PKG_CONFIG libwebpdemux --cflags`";
11869 CXXFLAGS="$CXXFLAGS `$PKG_CONFIG libwebp --cflags`";
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling WebP file format support." >&5
11871 $as_echo "$as_me: Enabling WebP file format support." >&6;}
11872
11873 $as_echo "#define FIM_WITH_LIBWEBP 1" >>confdefs.h
11874
11875 FIM_LIB_OBJECTS="$FIM_LIB_OBJECTS FbiStuffWebP.o"
11876 else
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling PCX file format support." >&5
11878 $as_echo "$as_me: Disabling PCX file format support." >&6;}
11879
11880 $as_echo "#define FIM_WITH_LIBWEBP 0" >>confdefs.h
11881
11882 fi
11883 if test x$fim_handle_webp = xyes; then
11884 ENABLE_WEBP_TRUE=
11885 ENABLE_WEBP_FALSE='#'
11886 else
11887 ENABLE_WEBP_TRUE='#'
11888 ENABLE_WEBP_FALSE=
11889 fi
11890
11891
11892 ## avifile file handling
11893 for ac_header in avif/avif.h
11894 do :
11895 ac_fn_cxx_check_header_mongrel "$LINENO" "avif/avif.h" "ac_cv_header_avif_avif_h" "$ac_includes_default"
11896 if test "x$ac_cv_header_avif_avif_h" = xyes; then :
11897 cat >>confdefs.h <<_ACEOF
11898 #define HAVE_AVIF_AVIF_H 1
11899 _ACEOF
11900 fim_handle_avif=yes;
11901 else
11902 fim_handle_avif=no;
11903 fi
11904
11905 done
11906
11907 # Check whether --enable-avif was given.
11908 if test "${enable_avif+set}" = set; then :
11909 enableval=$enable_avif; if test x$enableval = xno ; then
11910 fim_handle_avif=no
11911 fi
11912
11913 fi
11914
11915 if test x$fim_handle_avif = xyes; then
11916 LIBS="$LIBS `$PKG_CONFIG libavif --libs`";
11917 CXXFLAGS="$CXXFLAGS `$PKG_CONFIG libavif --cflags`";
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling AVIF file format support." >&5
11919 $as_echo "$as_me: Enabling AVIF file format support." >&6;}
11920
11921 $as_echo "#define FIM_WITH_LIBAVIF 1" >>confdefs.h
11922
11923 FIM_LIB_OBJECTS="$FIM_LIB_OBJECTS FbiStuffAVIF.o"
11924 else
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling AVIF file format support." >&5
11926 $as_echo "$as_me: Disabling AVIF file format support." >&6;}
11927
11928 $as_echo "#define FIM_WITH_LIBAVIF 0" >>confdefs.h
11929
11930 fi
11931 if test x$fim_handle_avif = xyes; then
11932 ENABLE_AVIF_TRUE=
11933 ENABLE_AVIF_FALSE='#'
11934 else
11935 ENABLE_AVIF_TRUE='#'
11936 ENABLE_AVIF_FALSE=
11937 fi
11938
11939
11940
11941 ## png file handling
11942
11943
11944 # Check whether --with-png-prefix was given.
11945 if test "${with_png_prefix+set}" = set; then :
11946 withval=$with_png_prefix; libpng_config_prefix="$withval"
11947 else
11948 libpng_config_prefix=""
11949 fi
11950
11951
11952 fim_handle_png=yes
11953
11954 # Check whether --enable-png was given.
11955 if test "${enable_png+set}" = set; then :
11956 enableval=$enable_png; if test x$enableval = xno ; then
11957 fim_handle_png=no
11958 fi
11959
11960 fi
11961
11962
11963 if test x$fim_handle_png = xyes; then
11964 # support for custom library configurator path
11965 if test x$libpng_config_prefix != x; then
11966 LIBPNG_CONFIG="$libpng_config_prefix/bin/libpng-config"
11967 else
11968 # default path configurator
11969 # Extract the first word of "libpng-config", so it can be a program name with args.
11970 set dummy libpng-config; ac_word=$2
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11972 $as_echo_n "checking for $ac_word... " >&6; }
11973 if ${ac_cv_path_LIBPNG_CONFIG+:} false; then :
11974 $as_echo_n "(cached) " >&6
11975 else
11976 case $LIBPNG_CONFIG in
11977 [\\/]* | ?:[\\/]*)
11978 ac_cv_path_LIBPNG_CONFIG="$LIBPNG_CONFIG" # Let the user override the test with a path.
11979 ;;
11980 *)
11981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11982 for as_dir in $PATH
11983 do
11984 IFS=$as_save_IFS
11985 test -z "$as_dir" && as_dir=.
11986 for ac_exec_ext in '' $ac_executable_extensions; do
11987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11988 ac_cv_path_LIBPNG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11990 break 2
11991 fi
11992 done
11993 done
11994 IFS=$as_save_IFS
11995
11996 test -z "$ac_cv_path_LIBPNG_CONFIG" && ac_cv_path_LIBPNG_CONFIG="no"
11997 ;;
11998 esac
11999 fi
12000 LIBPNG_CONFIG=$ac_cv_path_LIBPNG_CONFIG
12001 if test -n "$LIBPNG_CONFIG"; then
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPNG_CONFIG" >&5
12003 $as_echo "$LIBPNG_CONFIG" >&6; }
12004 else
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12006 $as_echo "no" >&6; }
12007 fi
12008
12009
12010 fi
12011 if test "x$LIBPNG_CONFIG" = "xno"; then
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** PNG loader will not be built (PNG library not found) ***" >&5
12013 $as_echo "$as_me: WARNING: *** PNG loader will not be built (PNG library not found) ***" >&2;}
12014 fim_handle_png=no
12015 else
12016 CXXFLAGS="$CXXFLAGS `$LIBPNG_CONFIG --cflags`"
12017 if test x$fim_cv_want_static = x1 ; then
12018 LIBS="$LIBS `$LIBPNG_CONFIG --static --libs`"
12019 else
12020 LIBS="$LIBS `$LIBPNG_CONFIG --libs`"
12021 fi
12022 # finish this !
12023 FIM_LIB_OBJECTS="$FIM_LIB_OBJECTS FbiStuffPng.o"
12024
12025 $as_echo "#define FIM_WITH_LIBPNG 1" >>confdefs.h
12026
12027 fi
12028 fi
12029
12030 if test x$fim_handle_png = xyes; then
12031 ENABLE_PNG_TRUE=
12032 ENABLE_PNG_FALSE='#'
12033 else
12034 ENABLE_PNG_TRUE='#'
12035 ENABLE_PNG_FALSE=
12036 fi
12037
12038
12039 #AM_CONDITIONAL(BUILD_PNG, test x$fim_handle_png = xyes)
12040
12041
12042 fim_handle_xyz=no
12043
12044 # Check whether --enable-xyz was given.
12045 if test "${enable_xyz+set}" = set; then :
12046 enableval=$enable_xyz; if test x$enableval = xyes ; then
12047 fim_handle_xyz=yes
12048 fi
12049
12050 fi
12051
12052
12053 if test x$fim_handle_xyz = xyes; then
12054 LIBXYZ="" # one would set an actual value here
12055 LIBS="$LIBS $LIBXYZ"
12056 FIM_LIB_OBJECTS="$FIM_LIB_OBJECTS FbiStuffXyz.o"
12057
12058 $as_echo "#define FIM_WITH_LIBXYZ 1" >>confdefs.h
12059
12060 fi
12061
12062
12063 ## raw/nef file handling via UFRaw
12064
12065 fim_handle_ufraw=no
12066
12067 # Check whether --enable-ufraw was given.
12068 if test "${enable_ufraw+set}" = set; then :
12069 enableval=$enable_ufraw; if test x$enableval = xno ; then
12070 fim_handle_ufraw=no
12071 else
12072 fim_handle_ufraw=yes
12073 fi
12074
12075 fi
12076
12077
12078 if test x$fim_handle_ufraw = xyes; then
12079 # support for custom library configurator path
12080 CXXFLAGS="$CXXFLAGS $UFRAW_CXXFLAGS"
12081 LIBS="$LIBS $UFRAW_LIBS"
12082 FIM_LIB_OBJECTS="$FIM_LIB_OBJECTS FbiStuffUFRaw.o" # FIXME
12083
12084 $as_echo "#define FIM_WITH_UFRAW 1" >>confdefs.h
12085
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling UFRaw / libufraw." >&5
12087 $as_echo "$as_me: Enabling UFRaw / libufraw." >&6;}
12088 fi
12089
12090
12091 ## archive file handling via libarchive
12092
12093 fim_handle_archive=no
12094
12095 # Check whether --enable-archive was given.
12096 if test "${enable_archive+set}" = set; then :
12097 enableval=$enable_archive; if test x$enableval = xno ; then
12098 fim_handle_archive=no
12099 else
12100 fim_handle_archive=yes
12101 fi
12102
12103 fi
12104
12105
12106 if test x$fim_handle_archive = xyes; then
12107 # support for custom library configurator path
12108 CXXFLAGS="$CXXFLAGS $ARCHIVE_CXXFLAGS"
12109 LIBS="$LIBS $ARCHIVE_LIBS -larchive"
12110
12111 $as_echo "#define FIM_WITH_ARCHIVE 1" >>confdefs.h
12112
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling libarchive." >&5
12114 $as_echo "$as_me: Enabling libarchive." >&6;}
12115 fi
12116 if test x$fim_handle_archive = xyes; then
12117 ENABLE_ARCHIVE_TRUE=
12118 ENABLE_ARCHIVE_FALSE='#'
12119 else
12120 ENABLE_ARCHIVE_TRUE='#'
12121 ENABLE_ARCHIVE_FALSE=
12122 fi
12123
12124
12125
12126 for ac_header in libexif/exif-data.h
12127 do :
12128 ac_fn_cxx_check_header_mongrel "$LINENO" "libexif/exif-data.h" "ac_cv_header_libexif_exif_data_h" "$ac_includes_default"
12129 if test "x$ac_cv_header_libexif_exif_data_h" = xyes; then :
12130 cat >>confdefs.h <<_ACEOF
12131 #define HAVE_LIBEXIF_EXIF_DATA_H 1
12132 _ACEOF
12133
12134 fi
12135
12136 done
12137
12138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exif_data_new_from_data in -lexif" >&5
12139 $as_echo_n "checking for exif_data_new_from_data in -lexif... " >&6; }
12140 if ${ac_cv_lib_exif_exif_data_new_from_data+:} false; then :
12141 $as_echo_n "(cached) " >&6
12142 else
12143 ac_check_lib_save_LIBS=$LIBS
12144 LIBS="-lexif $LIBS"
12145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12146 /* end confdefs.h. */
12147
12148 /* Override any GCC internal prototype to avoid an error.
12149 Use char because int might match the return type of a GCC
12150 builtin and then its argument prototype would still apply. */
12151 #ifdef __cplusplus
12152 extern "C"
12153 #endif
12154 char exif_data_new_from_data ();
12155 int
12156 main ()
12157 {
12158 return exif_data_new_from_data ();
12159 ;
12160 return 0;
12161 }
12162 _ACEOF
12163 if ac_fn_cxx_try_link "$LINENO"; then :
12164 ac_cv_lib_exif_exif_data_new_from_data=yes
12165 else
12166 ac_cv_lib_exif_exif_data_new_from_data=no
12167 fi
12168 rm -f core conftest.err conftest.$ac_objext \
12169 conftest$ac_exeext conftest.$ac_ext
12170 LIBS=$ac_check_lib_save_LIBS
12171 fi
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_exif_exif_data_new_from_data" >&5
12173 $as_echo "$ac_cv_lib_exif_exif_data_new_from_data" >&6; }
12174 if test "x$ac_cv_lib_exif_exif_data_new_from_data" = xyes; then :
12175 have_libexif=yes
12176 else
12177 have_libexif=no
12178 fi
12179
12180 # Check whether --enable-exif was given.
12181 if test "${enable_exif+set}" = set; then :
12182 enableval=$enable_exif; if test x$enableval != xno; then fim_cv_libexif=yes; fi
12183 else
12184 fim_cv_libexif=yes;
12185 fi
12186
12187
12188
12189 if test x$fim_cv_libexif = xyes; then
12190 if test x$have_libexif = xyes -a x$ac_cv_header_libexif_exif_data_h = xyes; then
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling libexif usage." >&5
12192 $as_echo "$as_me: Enabling libexif usage." >&6;}
12193 CXXFLAGS="$CXXFLAGS";
12194 LIBS="$LIBS -lexif";
12195 else
12196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** libexif not was not detected, so cannot use it ***" >&5
12197 $as_echo "$as_me: WARNING: *** libexif not was not detected, so cannot use it ***" >&2;}
12198 fim_cv_libexif=no;
12199 fi
12200 else
12201 fim_cv_libexif=no;
12202 fi
12203
12204
12205 # Check whether --enable-jasper was given.
12206 if test "${enable_jasper+set}" = set; then :
12207 enableval=$enable_jasper; if test x$enableval = xyes; then
12208 fim_cv_libjasper=yes;
12209 CXXFLAGS="$CXXFLAGS";
12210 LIBS="$LIBS -ljasper";
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_init in -ljasper" >&5
12212 $as_echo_n "checking for jas_init in -ljasper... " >&6; }
12213 if ${ac_cv_lib_jasper_jas_init+:} false; then :
12214 $as_echo_n "(cached) " >&6
12215 else
12216 ac_check_lib_save_LIBS=$LIBS
12217 LIBS="-ljasper $LIBS"
12218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12219 /* end confdefs.h. */
12220
12221 /* Override any GCC internal prototype to avoid an error.
12222 Use char because int might match the return type of a GCC
12223 builtin and then its argument prototype would still apply. */
12224 #ifdef __cplusplus
12225 extern "C"
12226 #endif
12227 char jas_init ();
12228 int
12229 main ()
12230 {
12231 return jas_init ();
12232 ;
12233 return 0;
12234 }
12235 _ACEOF
12236 if ac_fn_cxx_try_link "$LINENO"; then :
12237 ac_cv_lib_jasper_jas_init=yes
12238 else
12239 ac_cv_lib_jasper_jas_init=no
12240 fi
12241 rm -f core conftest.err conftest.$ac_objext \
12242 conftest$ac_exeext conftest.$ac_ext
12243 LIBS=$ac_check_lib_save_LIBS
12244 fi
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_init" >&5
12246 $as_echo "$ac_cv_lib_jasper_jas_init" >&6; }
12247 if test "x$ac_cv_lib_jasper_jas_init" = xyes; then :
12248 have_libjasper=yes
12249 else
12250 have_libjasper=no
12251 fi
12252
12253 if test x$have_libjasper = xyes; then
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling support of JPEG-2K files with JasPer." >&5
12255 $as_echo "$as_me: Enabling support of JPEG-2K files with JasPer." >&6;};
12256 FIM_LIB_OBJECTS="$FIM_LIB_OBJECTS FbiStuffJasPer.o";
12257 else
12258 fim_cv_libjasper=no;
12259 as_fn_error $? "Sorry, it does not seem like libjasper is installed or detectable.
12260 Please run --disable-jasper or install libjasper in a system-wide directory instead.
12261 " "$LINENO" 5;
12262 fi
12263 fi
12264 else
12265 fim_cv_libjasper=no;
12266 fi
12267
12268
12269
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aa_getfirst in -laa" >&5
12271 $as_echo_n "checking for aa_getfirst in -laa... " >&6; }
12272 if ${ac_cv_lib_aa_aa_getfirst+:} false; then :
12273 $as_echo_n "(cached) " >&6
12274 else
12275 ac_check_lib_save_LIBS=$LIBS
12276 LIBS="-laa $LIBS"
12277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12278 /* end confdefs.h. */
12279
12280 /* Override any GCC internal prototype to avoid an error.
12281 Use char because int might match the return type of a GCC
12282 builtin and then its argument prototype would still apply. */
12283 #ifdef __cplusplus
12284 extern "C"
12285 #endif
12286 char aa_getfirst ();
12287 int
12288 main ()
12289 {
12290 return aa_getfirst ();
12291 ;
12292 return 0;
12293 }
12294 _ACEOF
12295 if ac_fn_cxx_try_link "$LINENO"; then :
12296 ac_cv_lib_aa_aa_getfirst=yes
12297 else
12298 ac_cv_lib_aa_aa_getfirst=no
12299 fi
12300 rm -f core conftest.err conftest.$ac_objext \
12301 conftest$ac_exeext conftest.$ac_ext
12302 LIBS=$ac_check_lib_save_LIBS
12303 fi
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_aa_aa_getfirst" >&5
12305 $as_echo "$ac_cv_lib_aa_aa_getfirst" >&6; }
12306 if test "x$ac_cv_lib_aa_aa_getfirst" = xyes; then :
12307 fim_cv_libaa=yes
12308 else
12309 fim_cv_libaa=no
12310 fi
12311
12312 # Check whether --enable-aa was given.
12313 if test "${enable_aa+set}" = set; then :
12314 enableval=$enable_aa; if test x$enableval != xno; then fim_cv_libaa=yes; else fim_cv_libaa=no; fi
12315 else
12316 fim_cv_libaa=yes;
12317 fi
12318
12319
12320 if test x$fim_cv_libaa != xno; then
12321 if test x$ac_cv_lib_aa_aa_getfirst = xyes; then
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling aalib driver." >&5
12323 $as_echo "$as_me: Enabling aalib driver." >&6;}
12324 fim_cv_aalib=yes
12325 if test x$libaa_config_prefix != x; then
12326 LIBAA_CONFIG="$libaa_config_prefix/bin/aalib-config"
12327 else
12328 # default path configurator
12329 # Extract the first word of "aalib-config", so it can be a program name with args.
12330 set dummy aalib-config; ac_word=$2
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12332 $as_echo_n "checking for $ac_word... " >&6; }
12333 if ${ac_cv_path_LIBAA_CONFIG+:} false; then :
12334 $as_echo_n "(cached) " >&6
12335 else
12336 case $LIBAA_CONFIG in
12337 [\\/]* | ?:[\\/]*)
12338 ac_cv_path_LIBAA_CONFIG="$LIBAA_CONFIG" # Let the user override the test with a path.
12339 ;;
12340 *)
12341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12342 for as_dir in $PATH
12343 do
12344 IFS=$as_save_IFS
12345 test -z "$as_dir" && as_dir=.
12346 for ac_exec_ext in '' $ac_executable_extensions; do
12347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12348 ac_cv_path_LIBAA_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12350 break 2
12351 fi
12352 done
12353 done
12354 IFS=$as_save_IFS
12355
12356 test -z "$ac_cv_path_LIBAA_CONFIG" && ac_cv_path_LIBAA_CONFIG="no"
12357 ;;
12358 esac
12359 fi
12360 LIBAA_CONFIG=$ac_cv_path_LIBAA_CONFIG
12361 if test -n "$LIBAA_CONFIG"; then
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBAA_CONFIG" >&5
12363 $as_echo "$LIBAA_CONFIG" >&6; }
12364 else
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12366 $as_echo "no" >&6; }
12367 fi
12368
12369
12370 fi
12371 if test "x$LIBAA_CONFIG" = "xno"; then
12372 # uhm
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** no aalib-config ? ***" >&5
12374 $as_echo "$as_me: WARNING: *** no aalib-config ? ***" >&2;}
12375 fim_cv_aalib=no
12376 else
12377 CXXFLAGS="$CXXFLAGS `$LIBAA_CONFIG --cflags`"
12378 LIBS="$LIBS `$LIBAA_CONFIG --libs`"
12379 # finish this !
12380 fi
12381 else
12382 fim_cv_aalib=no
12383 fi
12384 else
12385 fim_cv_aalib=no
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ASCII-art (-o aa) support disabled." >&5
12387 $as_echo "$as_me: WARNING: ASCII-art (-o aa) support disabled." >&2;}
12388 fi
12389
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lstdc++fs" >&5
12391 $as_echo_n "checking for main in -lstdc++fs... " >&6; }
12392 if ${ac_cv_lib_stdcppfs_main+:} false; then :
12393 $as_echo_n "(cached) " >&6
12394 else
12395 ac_check_lib_save_LIBS=$LIBS
12396 LIBS="-lstdc++fs $LIBS"
12397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12398 /* end confdefs.h. */
12399
12400
12401 int
12402 main ()
12403 {
12404 return main ();
12405 ;
12406 return 0;
12407 }
12408 _ACEOF
12409 if ac_fn_cxx_try_link "$LINENO"; then :
12410 ac_cv_lib_stdcppfs_main=yes
12411 else
12412 ac_cv_lib_stdcppfs_main=no
12413 fi
12414 rm -f core conftest.err conftest.$ac_objext \
12415 conftest$ac_exeext conftest.$ac_ext
12416 LIBS=$ac_check_lib_save_LIBS
12417 fi
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_stdcppfs_main" >&5
12419 $as_echo "$ac_cv_lib_stdcppfs_main" >&6; }
12420 if test "x$ac_cv_lib_stdcppfs_main" = xyes; then :
12421 LIBS="${LIBS} -lstdc++fs"
12422 fi
12423
12424
12425 ## sdl driver
12426
12427
12428 # Check whether --with-sdl-prefix was given.
12429 if test "${with_sdl_prefix+set}" = set; then :
12430 withval=$with_sdl_prefix; libsdl_config_prefix="$withval"
12431 else
12432 libsdl_config_prefix=""
12433 fi
12434
12435
12436 fim_handle_sdl='auto'
12437
12438
12439 sdl_version_preference=''
12440 # Check whether --enable-sdl was given.
12441 if test "${enable_sdl+set}" = set; then :
12442 enableval=$enable_sdl; sdl_version_preference="$enableval";
12443 if test x$enableval != xno ; then fim_handle_sdl=yes ; fi
12444 if test x$enableval = xno ; then fim_handle_sdl=no ; fi
12445 fi
12446
12447
12448 # tested with sdl 1.2
12449 if test x$fim_handle_sdl != xno; then
12450 # support for custom library configurator path
12451 if test x"${sdl_version_preference}" != x2; then
12452 if test x$libsdl_config_prefix != x; then
12453 LIBSDL_CONFIG="$libsdl_config_prefix/bin/sdl-config"
12454 else
12455 # Extract the first word of "sdl-config", so it can be a program name with args.
12456 set dummy sdl-config; ac_word=$2
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12458 $as_echo_n "checking for $ac_word... " >&6; }
12459 if ${ac_cv_path_LIBSDL_CONFIG+:} false; then :
12460 $as_echo_n "(cached) " >&6
12461 else
12462 case $LIBSDL_CONFIG in
12463 [\\/]* | ?:[\\/]*)
12464 ac_cv_path_LIBSDL_CONFIG="$LIBSDL_CONFIG" # Let the user override the test with a path.
12465 ;;
12466 *)
12467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12468 for as_dir in $PATH
12469 do
12470 IFS=$as_save_IFS
12471 test -z "$as_dir" && as_dir=.
12472 for ac_exec_ext in '' $ac_executable_extensions; do
12473 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12474 ac_cv_path_LIBSDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12476 break 2
12477 fi
12478 done
12479 done
12480 IFS=$as_save_IFS
12481
12482 test -z "$ac_cv_path_LIBSDL_CONFIG" && ac_cv_path_LIBSDL_CONFIG="no"
12483 ;;
12484 esac
12485 fi
12486 LIBSDL_CONFIG=$ac_cv_path_LIBSDL_CONFIG
12487 if test -n "$LIBSDL_CONFIG"; then
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBSDL_CONFIG" >&5
12489 $as_echo "$LIBSDL_CONFIG" >&6; }
12490 else
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12492 $as_echo "no" >&6; }
12493 fi
12494
12495
12496 fi
12497 fi
12498 if test x"${sdl_version_preference}" != x1; then
12499 if test x$libsdl_config_prefix != x; then
12500 LIBSDL2_CONFIG="$libsdl_config_prefix/bin/sdl2-config"
12501 else
12502 # Extract the first word of "sdl2-config", so it can be a program name with args.
12503 set dummy sdl2-config; ac_word=$2
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12505 $as_echo_n "checking for $ac_word... " >&6; }
12506 if ${ac_cv_path_LIBSDL2_CONFIG+:} false; then :
12507 $as_echo_n "(cached) " >&6
12508 else
12509 case $LIBSDL2_CONFIG in
12510 [\\/]* | ?:[\\/]*)
12511 ac_cv_path_LIBSDL2_CONFIG="$LIBSDL2_CONFIG" # Let the user override the test with a path.
12512 ;;
12513 *)
12514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12515 for as_dir in $PATH
12516 do
12517 IFS=$as_save_IFS
12518 test -z "$as_dir" && as_dir=.
12519 for ac_exec_ext in '' $ac_executable_extensions; do
12520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12521 ac_cv_path_LIBSDL2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12523 break 2
12524 fi
12525 done
12526 done
12527 IFS=$as_save_IFS
12528
12529 test -z "$ac_cv_path_LIBSDL2_CONFIG" && ac_cv_path_LIBSDL2_CONFIG="no"
12530 ;;
12531 esac
12532 fi
12533 LIBSDL2_CONFIG=$ac_cv_path_LIBSDL2_CONFIG
12534 if test -n "$LIBSDL2_CONFIG"; then
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBSDL2_CONFIG" >&5
12536 $as_echo "$LIBSDL2_CONFIG" >&6; }
12537 else
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12539 $as_echo "no" >&6; }
12540 fi
12541
12542
12543 fi
12544 if test x$LIBSDL2_CONFIG != x -a x$LIBSDL2_CONFIG != x"no" ; then
12545 LIBSDL_CONFIG="$LIBSDL2_CONFIG";
12546 fi
12547 LIBS_BEFORE_CHECK="$LIBS"
12548 export LIBS="$LIBS `$LIBSDL2_CONFIG --static-libs`"
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Whether sdl2-config gives linkable output with $LIBS" >&5
12550 $as_echo_n "checking Whether sdl2-config gives linkable output with $LIBS... " >&6; }
12551 if ${have_cv_sdl2_config_ok+:} false; then :
12552 $as_echo_n "(cached) " >&6
12553 else
12554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12555 /* end confdefs.h. */
12556 /*headers*/
12557 int
12558 main ()
12559 {
12560 /*main*/
12561 ;
12562 return 0;
12563 }
12564 _ACEOF
12565 if ac_fn_cxx_try_link "$LINENO"; then :
12566 have_cv_sdl2_config_ok=yes
12567 else
12568 have_cv_sdl2_config_ok=no
12569 fi
12570 rm -f core conftest.err conftest.$ac_objext \
12571 conftest$ac_exeext conftest.$ac_ext
12572 fi
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cv_sdl2_config_ok" >&5
12574 $as_echo "$have_cv_sdl2_config_ok" >&6; }
12575 LIBS="$LIBS_BEFORE_CHECK"
12576 unset LIBS_BEFORE_CHECK
12577 unset LIBSDL2_CONFIG;
12578 fi
12579 if test "x$LIBSDL_CONFIG" = "xno"; then
12580 if test x$fim_handle_sdl = xyes; then
12581 as_fn_error $? "LIBSDL not found (failed detecting the sdl configuration (sdl-config/sdl2-config) program)" "$LINENO" 5
12582 else
12583 fim_handle_sdl='no'
12584 fi
12585 else
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: Activating LIBSDL (use $LIBSDL_CONFIG)." >&5
12587 $as_echo "$as_me: Activating LIBSDL (use $LIBSDL_CONFIG)." >&6;}
12588 fim_handle_sdl='yes'
12589 LIBSDL_CXXFLAGS=`$LIBSDL_CONFIG --cflags`
12590 CXXFLAGS="$CXXFLAGS $LIBSDL_CXXFLAGS"
12591 LIBSDL_CONFIG_FLAGS=--libs
12592 if $LIBSDL_CONFIG $LIBSDL_CONFIG_FLAGS ; then
12593 LIBSDL_CONFIG_FLAGS=--libs
12594 else
12595 LIBSDL_CONFIG_FLAGS=--static-libs
12596 fi
12597 { $as_echo "$as_me:${as_lineno-$LINENO}: Invoking $LIBSDL_CONFIG $LIBSDL_CONFIG_FLAGS." >&5
12598 $as_echo "$as_me: Invoking $LIBSDL_CONFIG $LIBSDL_CONFIG_FLAGS." >&6;}
12599 LIBS="$LIBS `$LIBSDL_CONFIG $LIBSDL_CONFIG_FLAGS`"
12600 # finish this !
12601 #FIM_LIB_OBJECTS="$FIM_LIB_OBJECTS SDLDevice.o"
12602 if test x`$LIBSDL_CONFIG --version | head -c 1` = x2; then
12603
12604 $as_echo "#define FIM_WITH_LIBSDL 2" >>confdefs.h
12605
12606 else
12607
12608 $as_echo "#define FIM_WITH_LIBSDL 1" >>confdefs.h
12609
12610 fi
12611 fi
12612 fi
12613 if test x$fim_handle_sdl = xyes; then
12614 ENABLE_SDL_TRUE=
12615 ENABLE_SDL_FALSE='#'
12616 else
12617 ENABLE_SDL_TRUE='#'
12618 ENABLE_SDL_FALSE=
12619 fi
12620
12621
12622
12623 ## gtk driver
12624
12625 # Check whether --enable-gtk was given.
12626 if test "${enable_gtk+set}" = set; then :
12627 enableval=$enable_gtk; fim_want_gtk="$enableval";
12628 fi
12629
12630 fim_handle_gtk=no;
12631 if test x$fim_want_gtk != xno; then
12632
12633 pkg_failed=no
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
12635 $as_echo_n "checking for GTK... " >&6; }
12636
12637 if test -n "$GTK_CFLAGS"; then
12638 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
12639 elif test -n "$PKG_CONFIG"; then
12640 if test -n "$PKG_CONFIG" && \
12641 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0\""; } >&5
12642 ($PKG_CONFIG --exists --print-errors "gtk+-3.0") 2>&5
12643 ac_status=$?
12644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12645 test $ac_status = 0; }; then
12646 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-3.0" 2>/dev/null`
12647 test "x$?" != "x0" && pkg_failed=yes
12648 else
12649 pkg_failed=yes
12650 fi
12651 else
12652 pkg_failed=untried
12653 fi
12654 if test -n "$GTK_LIBS"; then
12655 pkg_cv_GTK_LIBS="$GTK_LIBS"
12656 elif test -n "$PKG_CONFIG"; then
12657 if test -n "$PKG_CONFIG" && \
12658 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0\""; } >&5
12659 ($PKG_CONFIG --exists --print-errors "gtk+-3.0") 2>&5
12660 ac_status=$?
12661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12662 test $ac_status = 0; }; then
12663 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-3.0" 2>/dev/null`
12664 test "x$?" != "x0" && pkg_failed=yes
12665 else
12666 pkg_failed=yes
12667 fi
12668 else
12669 pkg_failed=untried
12670 fi
12671
12672
12673
12674 if test $pkg_failed = yes; then
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12676 $as_echo "no" >&6; }
12677
12678 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12679 _pkg_short_errors_supported=yes
12680 else
12681 _pkg_short_errors_supported=no
12682 fi
12683 if test $_pkg_short_errors_supported = yes; then
12684 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-3.0" 2>&1`
12685 else
12686 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-3.0" 2>&1`
12687 fi
12688 # Put the nasty error message in config.log where it belongs
12689 echo "$GTK_PKG_ERRORS" >&5
12690
12691 fim_handle_gtk=no
12692 elif test $pkg_failed = untried; then
12693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12694 $as_echo "no" >&6; }
12695 fim_handle_gtk=no
12696 else
12697 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
12698 GTK_LIBS=$pkg_cv_GTK_LIBS
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12700 $as_echo "yes" >&6; }
12701 fim_handle_gtk=yes
12702 fi # keep this line commented or next line empty or it may break configure. (PKG_CHECK_MODULES-related)
12703 if test x$fim_handle_gtk = xyes; then
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for g_free in -lglib-2.0" >&5
12705 $as_echo_n "checking for g_free in -lglib-2.0... " >&6; }
12706 if ${ac_cv_lib_glib_2_0_g_free+:} false; then :
12707 $as_echo_n "(cached) " >&6
12708 else
12709 ac_check_lib_save_LIBS=$LIBS
12710 LIBS="-lglib-2.0 $LIBS"
12711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12712 /* end confdefs.h. */
12713
12714 /* Override any GCC internal prototype to avoid an error.
12715 Use char because int might match the return type of a GCC
12716 builtin and then its argument prototype would still apply. */
12717 #ifdef __cplusplus
12718 extern "C"
12719 #endif
12720 char g_free ();
12721 int
12722 main ()
12723 {
12724 return g_free ();
12725 ;
12726 return 0;
12727 }
12728 _ACEOF
12729 if ac_fn_cxx_try_link "$LINENO"; then :
12730 ac_cv_lib_glib_2_0_g_free=yes
12731 else
12732 ac_cv_lib_glib_2_0_g_free=no
12733 fi
12734 rm -f core conftest.err conftest.$ac_objext \
12735 conftest$ac_exeext conftest.$ac_ext
12736 LIBS=$ac_check_lib_save_LIBS
12737 fi
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_glib_2_0_g_free" >&5
12739 $as_echo "$ac_cv_lib_glib_2_0_g_free" >&6; }
12740 if test "x$ac_cv_lib_glib_2_0_g_free" = xyes; then :
12741 have_gtk=yes; fim_handle_gtk=yes; LIBS="$LIBS $GTK_LIBS"; CXXFLAGS="$CXXFLAGS $GTK_CFLAGS";
12742
12743 $as_echo "#define FIM_WITH_LIBGTK 1" >>confdefs.h
12744
12745 else
12746 have_gtk=no; fim_handle_gtk=no; { $as_echo "$as_me:${as_lineno-$LINENO}: *** GTK driver (-o gtk) won't be added (glib-2.0 library not found) ***" >&5
12747 $as_echo "$as_me: *** GTK driver (-o gtk) won't be added (glib-2.0 library not found) ***" >&6;}
12748
12749 fi
12750
12751 else
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** GTK driver (-o gtk) won't be added (glib-2.0 library not found) ***" >&5
12753 $as_echo "$as_me: WARNING: *** GTK driver (-o gtk) won't be added (glib-2.0 library not found) ***" >&2;}
12754 fi
12755 fi
12756 if test x$fim_handle_gtk = xyes; then
12757 ENABLE_GTK_TRUE=
12758 ENABLE_GTK_FALSE='#'
12759 else
12760 ENABLE_GTK_TRUE='#'
12761 ENABLE_GTK_FALSE=
12762 fi
12763
12764
12765
12766
12767 fim_cv_exiftool=no
12768 # Check whether --enable-exiftool was given.
12769 if test "${enable_exiftool+set}" = set; then :
12770 enableval=$enable_exiftool; if test x$enableval = xyes; then
12771 fim_cv_exiftool=yes
12772 CXXFLAGS="$CXXFLAGS $EXIFTOOLCXXFLAGS"
12773 LIBS="$LIBS $EXIFTOOLLINK"
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling exiftool interface." >&5
12775 $as_echo "$as_me: Enabling exiftool interface." >&6;}
12776
12777 $as_echo "#define FIM_WANT_EXIFTOOL 1" >>confdefs.h
12778
12779 fi
12780 else
12781 fim_cv_exiftool=no
12782 fi
12783
12784
12785 #AC_DEFINE([FIM_DEFAULT_KEY_CONFIG] ,1, [Defined, if GPGME support is enabled])
12786 #AC_DEFINE([FIM_DEFAULT_CONFIG], 1, [Defined, if GPGME support is enabled])
12787
12788 #AC_DEFINE([FIM_DEFAULT_CONFIGURATION], 1, [Defined, if GPGME support is enabled])
12789
12790 #AC_MSG_CHECKING(whether struct dirent defines d_ino)
12791
12792
12793 fim_cv_autocommands=yes
12794
12795 # Check whether --enable-autocommands was given.
12796 if test "${enable_autocommands+set}" = set; then :
12797 enableval=$enable_autocommands; if test x$enableval = xno; then
12798 fim_cv_autocommands=no
12799 fi
12800 fi
12801
12802
12803
12804 if test x$fim_cv_autocommands = xyes; then
12805 have_autocommands=yes
12806 $as_echo "#define FIM_AUTOCMDS 1" >>confdefs.h
12807
12808 else
12809 have_autocommands=no
12810 fi
12811
12812
12813
12814 # Check whether --enable-hardcoded-font was given.
12815 if test "${enable_hardcoded_font+set}" = set; then :
12816 enableval=$enable_hardcoded_font; if test x$enableval = xyes; then
12817 fim_cv_hardcoded_font=yes;
12818 else
12819 fim_cv_hardcoded_font=no;
12820 fi
12821 else
12822 fim_cv_hardcoded_font=yes;
12823 fi
12824
12825
12826
12827 if test x$fim_cv_hardcoded_font = xyes ; then
12828 have_hardcoded_font=yes
12829
12830 $as_echo "#define FIM_WANT_HARDCODED_FONT 1" >>confdefs.h
12831
12832 else
12833 have_hardcoded_font=no
12834 fi
12835 if test x$have_hardcoded_font = xyes ; then
12836 FIM_WANT_HARDCODED_CONSOLEFONT_TRUE=
12837 FIM_WANT_HARDCODED_CONSOLEFONT_FALSE='#'
12838 else
12839 FIM_WANT_HARDCODED_CONSOLEFONT_TRUE='#'
12840 FIM_WANT_HARDCODED_CONSOLEFONT_FALSE=
12841 fi
12842
12843 if test x$no = xyes ; then
12844 FIM_HAVE_ANY_CONSOLEFONT_TRUE=
12845 FIM_HAVE_ANY_CONSOLEFONT_FALSE='#'
12846 else
12847 FIM_HAVE_ANY_CONSOLEFONT_TRUE='#'
12848 FIM_HAVE_ANY_CONSOLEFONT_FALSE=
12849 fi
12850
12851
12852 # Extract the first word of "gs", so it can be a program name with args.
12853 set dummy gs; ac_word=$2
12854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12855 $as_echo_n "checking for $ac_word... " >&6; }
12856 if ${ac_cv_prog_have_gs+:} false; then :
12857 $as_echo_n "(cached) " >&6
12858 else
12859 if test -n "$have_gs"; then
12860 ac_cv_prog_have_gs="$have_gs" # Let the user override the test.
12861 else
12862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12863 for as_dir in $PATH
12864 do
12865 IFS=$as_save_IFS
12866 test -z "$as_dir" && as_dir=.
12867 for ac_exec_ext in '' $ac_executable_extensions; do
12868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12869 ac_cv_prog_have_gs="yes"
12870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12871 break 2
12872 fi
12873 done
12874 done
12875 IFS=$as_save_IFS
12876
12877 test -z "$ac_cv_prog_have_gs" && ac_cv_prog_have_gs="no"
12878 fi
12879 fi
12880 have_gs=$ac_cv_prog_have_gs
12881 if test -n "$have_gs"; then
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gs" >&5
12883 $as_echo "$have_gs" >&6; }
12884 else
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12886 $as_echo "no" >&6; }
12887 fi
12888
12889
12890 if test x$have_gs = xyes; then
12891 HAVE_GS_TRUE=
12892 HAVE_GS_FALSE='#'
12893 else
12894 HAVE_GS_TRUE='#'
12895 HAVE_GS_FALSE=
12896 fi
12897
12898 if test x$have_gs = xyes; then
12899 HAVE_FIMGS_TRUE=
12900 HAVE_FIMGS_FALSE='#'
12901 else
12902 HAVE_FIMGS_TRUE='#'
12903 HAVE_FIMGS_FALSE=
12904 fi
12905
12906
12907
12908 # Check whether --enable-long-int-vars was given.
12909 if test "${enable_long_int_vars+set}" = set; then :
12910 enableval=$enable_long_int_vars; if test x$enableval = xyes; then
12911 fim_cv_want_int64_int=yes;
12912 else
12913 fim_cv_want_int64_int=no;
12914 fi
12915 else
12916 fim_cv_want_int64_int=yes;
12917 fi
12918
12919
12920
12921 if test x$fim_cv_want_int64_int = xyes; then
12922
12923 $as_echo "#define FIM_WANT_LONG_INT 1" >>confdefs.h
12924
12925 else
12926
12927 $as_echo "#define FIM_WANT_LONG_INT 0" >>confdefs.h
12928
12929 fi
12930
12931 fim_cv_windows=yes
12932
12933 # Check whether --enable-windows was given.
12934 if test "${enable_windows+set}" = set; then :
12935 enableval=$enable_windows; if test x$enableval = xno; then
12936 fim_cv_windows=no
12937 fi
12938 fi
12939
12940
12941
12942 if test x$fim_cv_windows = xyes; then
12943 have_windows=yes
12944
12945 $as_echo "#define FIM_WINDOWS 1" >>confdefs.h
12946
12947 else
12948 have_windows=no
12949 fi
12950
12951
12952 fim_cv_fimrc=yes
12953
12954 # Check whether --enable-fimrc was given.
12955 if test "${enable_fimrc+set}" = set; then :
12956 enableval=$enable_fimrc; if test x$enableval = xno; then
12957 fim_cv_fimrc=no
12958 fi
12959 fi
12960
12961
12962
12963 if test x$fim_cv_fimrc = xyes; then
12964 have_fimrc=yes
12965 else
12966 $as_echo "#define FIM_NOFIMRC 1" >>confdefs.h
12967
12968 fi
12969 if test x$fim_cv_fimrc = xyes; then
12970 WANT_DEFAULT_FIMRC_TRUE=
12971 WANT_DEFAULT_FIMRC_FALSE='#'
12972 else
12973 WANT_DEFAULT_FIMRC_TRUE='#'
12974 WANT_DEFAULT_FIMRC_FALSE=
12975 fi
12976
12977
12978
12979 fim_cv_history=yes
12980
12981 # Check whether --enable-history was given.
12982 if test "${enable_history+set}" = set; then :
12983 enableval=$enable_history; if test x$enableval = xno ; then
12984 fim_cv_history=no
12985 fi
12986 fi
12987
12988 if test x$fim_want_readline = xno; then
12989 fim_cv_history=no;
12990 fi
12991 if test x$fim_cv_history != xno; then
12992 ENABLE_HISTORY_TRUE=
12993 ENABLE_HISTORY_FALSE='#'
12994 else
12995 ENABLE_HISTORY_TRUE='#'
12996 ENABLE_HISTORY_FALSE=
12997 fi
12998
12999 if test x$fim_cv_history = xno; then
13000 ENABLE_NO_HISTORY_TESTS_TRUE=
13001 ENABLE_NO_HISTORY_TESTS_FALSE='#'
13002 else
13003 ENABLE_NO_HISTORY_TESTS_TRUE='#'
13004 ENABLE_NO_HISTORY_TESTS_FALSE=
13005 fi
13006
13007
13008 if test x$fim_cv_history != xyes; then
13009 $as_echo "#define FIM_NOHISTORY 1" >>confdefs.h
13010
13011 fi
13012
13013
13014 fim_cv_warnings=no
13015 # Check whether --enable-screen was given.
13016 if test "${enable_screen+set}" = set; then :
13017 enableval=$enable_screen; if test x$enableval = xno; then
13018 fim_cv_screen=no
13019 else
13020 fim_cv_screen=yes
13021 fi
13022
13023 else
13024 fim_cv_screen=yes
13025
13026 fi
13027
13028
13029
13030 fim_cv_resize_optimizations=yes
13031 # Check whether --enable-resize-optimizations was given.
13032 if test "${enable_resize_optimizations+set}" = set; then :
13033 enableval=$enable_resize_optimizations; if test x$enableval = xno; then
13034 fim_cv_resize_optimizations=no
13035 else
13036 fim_cv_resize_optimizations=yes
13037 fi
13038
13039 else
13040 fim_cv_resize_optimizations=yes
13041
13042 fi
13043
13044
13045
13046 fim_cv_read_stdin_image=yes
13047 # Check whether --enable-stdin-image-reading was given.
13048 if test "${enable_stdin_image_reading+set}" = set; then :
13049 enableval=$enable_stdin_image_reading; if test x$enableval = xno; then
13050 fim_cv_read_stdin_image=no
13051 else
13052 fim_cv_read_stdin_image=yes
13053 fi
13054
13055 else
13056 fim_cv_read_stdin_image=yes
13057
13058 fi
13059
13060
13061 fim_cv_scan_consolefonts=yes
13062 # Check whether --enable-scan-consolefonts was given.
13063 if test "${enable_scan_consolefonts+set}" = set; then :
13064 enableval=$enable_scan_consolefonts; if test x$enableval = xyes; then
13065 fim_cv_scan_consolefonts=yes
13066 else
13067 fim_cv_scan_consolefonts=no
13068 fi
13069
13070 else
13071 fim_cv_scan_consolefonts=yes
13072
13073 fi
13074
13075 fim_cv_fb_console_switch_while_loading=no
13076 # Check whether --enable-framebuffer-switch-while-loading was given.
13077 if test "${enable_framebuffer_switch_while_loading+set}" = set; then :
13078 enableval=$enable_framebuffer_switch_while_loading; if test x$enableval = xyes; then
13079 fim_cv_fb_console_switch_while_loading=yes
13080 else
13081 fim_cv_fb_console_switch_while_loading=no
13082 fi
13083
13084 else
13085 fim_cv_fb_console_switch_while_loading=no
13086
13087 fi
13088
13089 fim_cv_seek_magic=yes
13090 # Check whether --enable-seek-magic was given.
13091 if test "${enable_seek_magic+set}" = set; then :
13092 enableval=$enable_seek_magic; if test x$enableval = xno; then
13093 fim_cv_seek_magic=no
13094 else
13095 fim_cv_seek_magic=yes
13096 fi
13097
13098 else
13099 fim_cv_seek_magic=yes
13100
13101 fi
13102
13103 fim_cv_paths_in_man=yes
13104 # Check whether --enable-paths-in-man was given.
13105 if test "${enable_paths_in_man+set}" = set; then :
13106 enableval=$enable_paths_in_man; if test x$enableval = xno; then
13107 fim_cv_paths_in_man=no
13108 else
13109 fim_cv_paths_in_man=yes
13110 fi
13111
13112 else
13113 fim_cv_paths_in_man=yes
13114
13115 fi
13116
13117 # Check whether --enable-pushdir was given.
13118 if test "${enable_pushdir+set}" = set; then :
13119 enableval=$enable_pushdir; if test x$enableval = xno; then
13120 fim_cv_read_dirs=no
13121 else
13122 fim_cv_read_dirs=yes
13123 fi
13124
13125 else
13126 fim_cv_read_dirs=yes
13127
13128 fi
13129
13130 # Check whether --enable-recursive-pushdir was given.
13131 if test "${enable_recursive_pushdir+set}" = set; then :
13132 enableval=$enable_recursive_pushdir; if test x$enableval = xyes; then
13133 fim_cv_recursive_dirs=yes;
13134 fim_cv_read_dirs=yes;
13135 else
13136 fim_cv_recursive_dirs=no;
13137 fi
13138
13139 else
13140 fim_cv_recursive_dirs=yes;fim_cv_read_dirs=yes;
13141
13142 fi
13143
13144
13145
13146
13147
13148
13149
13150
13151
13152
13153
13154 if test x$fim_cv_resize_optimizations != xyes; then
13155 $as_echo "#define FIM_WANTS_SLOW_RESIZE 1" >>confdefs.h
13156
13157 fi
13158
13159
13160 if test x$fim_cv_read_dirs = xyes; then
13161 $as_echo "#define FIM_READ_DIRS 1" >>confdefs.h
13162
13163 if test x$fim_cv_recursive_dirs = xyes; then
13164 $as_echo "#define FIM_RECURSIVE_DIRS 1" >>confdefs.h
13165
13166 fi
13167 fi
13168 if test x$fim_cv_recursive_dirs = xyes; then
13169 WANT_RECURSIVE_DIRS_TRUE=
13170 WANT_RECURSIVE_DIRS_FALSE='#'
13171 else
13172 WANT_RECURSIVE_DIRS_TRUE='#'
13173 WANT_RECURSIVE_DIRS_FALSE=
13174 fi
13175
13176
13177
13178 if test x$fim_cv_screen != xno; then
13179 # boz patch is on
13180 $as_echo "#define FIM_BOZ_PATCH 1" >>confdefs.h
13181
13182 fi
13183
13184
13185 fim_cv_read_stdin=yes
13186
13187 if test x$fim_cv_read_stdin != xno; then
13188 $as_echo "#define FIM_READ_STDIN 1" >>confdefs.h
13189
13190 fi
13191
13192
13193 if test x$fim_cv_read_stdin_image = xyes -a x$fim_cv_read_stdin = xyes; then
13194 $as_echo "#define FIM_READ_STDIN_IMAGE 1" >>confdefs.h
13195
13196 else
13197 # we revert to no just for the printout
13198 fim_cv_read_stdin_image=no
13199 fi
13200 if test x$fim_cv_read_stdin_image = xyes; then
13201 WANT_READ_STDIN_IMAGE_TRUE=
13202 WANT_READ_STDIN_IMAGE_FALSE='#'
13203 else
13204 WANT_READ_STDIN_IMAGE_TRUE='#'
13205 WANT_READ_STDIN_IMAGE_FALSE=
13206 fi
13207
13208
13209
13210 fim_cv_warnings=no
13211 # Check whether --enable-debug was given.
13212 if test "${enable_debug+set}" = set; then :
13213 enableval=$enable_debug; if test x$enableval = xyes; then
13214 fim_cv_debug=yes
13215 fi
13216 fi
13217
13218
13219 if test "x$fim_cv_debug" = xyes; then
13220 # Extract the first word of "valgrind", so it can be a program name with args.
13221 set dummy valgrind; ac_word=$2
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13223 $as_echo_n "checking for $ac_word... " >&6; }
13224 if ${ac_cv_prog_HAVE_VALGRIND+:} false; then :
13225 $as_echo_n "(cached) " >&6
13226 else
13227 if test -n "$HAVE_VALGRIND"; then
13228 ac_cv_prog_HAVE_VALGRIND="$HAVE_VALGRIND" # Let the user override the test.
13229 else
13230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13231 for as_dir in $PATH
13232 do
13233 IFS=$as_save_IFS
13234 test -z "$as_dir" && as_dir=.
13235 for ac_exec_ext in '' $ac_executable_extensions; do
13236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13237 ac_cv_prog_HAVE_VALGRIND="yes"
13238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13239 break 2
13240 fi
13241 done
13242 done
13243 IFS=$as_save_IFS
13244
13245 test -z "$ac_cv_prog_HAVE_VALGRIND" && ac_cv_prog_HAVE_VALGRIND="no"
13246 fi
13247 fi
13248 HAVE_VALGRIND=$ac_cv_prog_HAVE_VALGRIND
13249 if test -n "$HAVE_VALGRIND"; then
13250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_VALGRIND" >&5
13251 $as_echo "$HAVE_VALGRIND" >&6; }
13252 else
13253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13254 $as_echo "no" >&6; }
13255 fi
13256
13257
13258 fi
13259 if test x$HAVE_VALGRIND = xyes; then
13260 HAVE_VALGRIND_TRUE=
13261 HAVE_VALGRIND_FALSE='#'
13262 else
13263 HAVE_VALGRIND_TRUE='#'
13264 HAVE_VALGRIND_FALSE=
13265 fi
13266
13267
13268 fim_cv_warnings=no
13269 # Check whether --enable-warnings was given.
13270 if test "${enable_warnings+set}" = set; then :
13271 enableval=$enable_warnings; if test x$enableval = xyes; then
13272 fim_cv_warnings=yes
13273 fi
13274 fi
13275
13276
13277 if test x$GCC = xyes ; then
13278 if test x$fim_cv_debug = xyes; then
13279 CXXFLAGS="${CXXFLAGS} -g"
13280 fi
13281 fi
13282
13283 if test x$GCC = xyes ; then
13284 if test x$fim_cv_warnings = xyes ; then
13285 CXXFLAGS="-Wall -pedantic $CXXFLAGS"
13286 fi
13287 fi
13288
13289
13290
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for caca_create_canvas in -lcaca" >&5
13292 $as_echo_n "checking for caca_create_canvas in -lcaca... " >&6; }
13293 if ${ac_cv_lib_caca_caca_create_canvas+:} false; then :
13294 $as_echo_n "(cached) " >&6
13295 else
13296 ac_check_lib_save_LIBS=$LIBS
13297 LIBS="-lcaca $LIBS"
13298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13299 /* end confdefs.h. */
13300
13301 /* Override any GCC internal prototype to avoid an error.
13302 Use char because int might match the return type of a GCC
13303 builtin and then its argument prototype would still apply. */
13304 #ifdef __cplusplus
13305 extern "C"
13306 #endif
13307 char caca_create_canvas ();
13308 int
13309 main ()
13310 {
13311 return caca_create_canvas ();
13312 ;
13313 return 0;
13314 }
13315 _ACEOF
13316 if ac_fn_cxx_try_link "$LINENO"; then :
13317 ac_cv_lib_caca_caca_create_canvas=yes
13318 else
13319 ac_cv_lib_caca_caca_create_canvas=no
13320 fi
13321 rm -f core conftest.err conftest.$ac_objext \
13322 conftest$ac_exeext conftest.$ac_ext
13323 LIBS=$ac_check_lib_save_LIBS
13324 fi
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_caca_caca_create_canvas" >&5
13326 $as_echo "$ac_cv_lib_caca_caca_create_canvas" >&6; }
13327 if test "x$ac_cv_lib_caca_caca_create_canvas" = xyes; then :
13328 fim_cv_lib_caca=yes
13329 else
13330 fim_cv_lib_caca=no
13331 fi
13332
13333 # Check whether --enable-caca was given.
13334 if test "${enable_caca+set}" = set; then :
13335 enableval=$enable_caca; if test x$enableval != xno; then fim_cv_lib_caca=yes; else fim_cv_lib_caca=no; fi
13336 else
13337 fim_cv_lib_caca=yes;
13338 fi
13339
13340
13341 if test x$fim_cv_lib_caca != xno; then
13342 if test x$ac_cv_lib_caca_caca_create_canvas = xyes; then
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling libcaca driver." >&5
13344 $as_echo "$as_me: Enabling libcaca driver." >&6;}
13345 fim_cv_libcaca=yes
13346 if test x$libcaca_config_prefix != x; then
13347 LIBCACA_CONFIG="$libcaca_config_prefix/bin/caca-config"
13348 else
13349 # default path configurator
13350 # Extract the first word of "caca-config", so it can be a program name with args.
13351 set dummy caca-config; ac_word=$2
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13353 $as_echo_n "checking for $ac_word... " >&6; }
13354 if ${ac_cv_path_LIBCACA_CONFIG+:} false; then :
13355 $as_echo_n "(cached) " >&6
13356 else
13357 case $LIBCACA_CONFIG in
13358 [\\/]* | ?:[\\/]*)
13359 ac_cv_path_LIBCACA_CONFIG="$LIBCACA_CONFIG" # Let the user override the test with a path.
13360 ;;
13361 *)
13362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13363 for as_dir in $PATH
13364 do
13365 IFS=$as_save_IFS
13366 test -z "$as_dir" && as_dir=.
13367 for ac_exec_ext in '' $ac_executable_extensions; do
13368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13369 ac_cv_path_LIBCACA_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13371 break 2
13372 fi
13373 done
13374 done
13375 IFS=$as_save_IFS
13376
13377 test -z "$ac_cv_path_LIBCACA_CONFIG" && ac_cv_path_LIBCACA_CONFIG="no"
13378 ;;
13379 esac
13380 fi
13381 LIBCACA_CONFIG=$ac_cv_path_LIBCACA_CONFIG
13382 if test -n "$LIBCACA_CONFIG"; then
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBCACA_CONFIG" >&5
13384 $as_echo "$LIBCACA_CONFIG" >&6; }
13385 else
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13387 $as_echo "no" >&6; }
13388 fi
13389
13390
13391 fi
13392 if test "x$LIBCACA_CONFIG" = "xno"; then
13393 # uhm
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** no caca-config ? ***" >&5
13395 $as_echo "$as_me: WARNING: *** no caca-config ? ***" >&2;}
13396 fim_cv_libcaca=no
13397 else
13398 CXXFLAGS="$CXXFLAGS `$LIBCACA_CONFIG --cflags`"
13399 LIBS="$LIBS `$LIBCACA_CONFIG --libs`"
13400 # finish this !
13401 fi
13402 else
13403 fim_cv_libcaca=no
13404 fi
13405 else
13406 fim_cv_libcaca=no
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Colour ASCII-Art (-o ca) support disabled." >&5
13408 $as_echo "$as_me: WARNING: Colour ASCII-Art (-o ca) support disabled." >&2;}
13409 fi
13410
13411
13412 # This code still awaits for integration ...
13413
13414 # Check whether --with-cflags was given.
13415 if test "${with_cflags+set}" = set; then :
13416 withval=$with_cflags; if test "x$withval" != x; then
13417
13418 cat >>confdefs.h <<_ACEOF
13419 #define CXXFLAGS "$withval"
13420 _ACEOF
13421
13422 CXXFLAGS="$withval"
13423 CXXFLAGS="$CXXFLAGS"
13424 CXXFLAGS="$CXXFLAGS"
13425
13426 cat >>confdefs.h <<_ACEOF
13427 #define CXXFLAGS "$withval"
13428 _ACEOF
13429
13430 fi
13431 else
13432 cat >>confdefs.h <<_ACEOF
13433 #define EXECSHELL "/bin/sh"
13434 _ACEOF
13435
13436 fi
13437
13438
13439
13440
13441 # This code still awaits for integration ...
13442
13443 # Check whether --with-exec-shell was given.
13444 if test "${with_exec_shell+set}" = set; then :
13445 withval=$with_exec_shell; if test x$withval != xyes; then
13446
13447 cat >>confdefs.h <<_ACEOF
13448 #define EXECSHELL "$withval"
13449 _ACEOF
13450
13451 else
13452 cat >>confdefs.h <<_ACEOF
13453 #define EXECSHELL "/bin/sh"
13454 _ACEOF
13455
13456 fi
13457 else
13458 cat >>confdefs.h <<_ACEOF
13459 #define EXECSHELL "/bin/sh"
13460 _ACEOF
13461
13462 fi
13463
13464
13465 # Check whether --enable-smartautocompletion was given.
13466 if test "${enable_smartautocompletion+set}" = set; then :
13467 enableval=$enable_smartautocompletion; if test x$enableval = xno; then
13468 fim_cv_smartautcompletion=no
13469 else
13470 fim_cv_smartautcompletion=yes
13471 fi
13472
13473 else
13474 fim_cv_smartautcompletion=yes
13475
13476 fi
13477
13478 if test x$fim_cv_smartautcompletion = xyes; then
13479 $as_echo "#define FIM_SMART_COMPLETION 1" >>confdefs.h
13480
13481 fi
13482 if test x$fim_cv_scan_consolefonts = xyes; then
13483 $as_echo "#define FIM_LINUX_CONSOLEFONTS_DIR_SCAN 1" >>confdefs.h
13484
13485 fi
13486
13487 # Check whether --enable-convert was given.
13488 if test "${enable_convert+set}" = set; then :
13489 enableval=$enable_convert; if test x$enableval = xno; then
13490 fim_cv_convert=no
13491 else
13492 fim_cv_convert=yes
13493 fi
13494
13495 else
13496 fim_cv_convert=yes
13497
13498 fi
13499
13500
13501
13502 # Check whether --enable-dcraw was given.
13503 if test "${enable_dcraw+set}" = set; then :
13504 enableval=$enable_dcraw; if test x$enableval = xno; then
13505 fim_cv_dcraw=no
13506 else
13507 fim_cv_dcraw=yes
13508 fi
13509
13510 else
13511 fim_cv_dcraw=yes
13512
13513 fi
13514
13515
13516
13517 # Check whether --enable-xcftopnm was given.
13518 if test "${enable_xcftopnm+set}" = set; then :
13519 enableval=$enable_xcftopnm; if test x$enableval = xno; then
13520 fim_cv_xcftopnm=no
13521 else
13522 fim_cv_xcftopnm=yes
13523 fi
13524
13525 else
13526 fim_cv_xcftopnm=yes
13527
13528 fi
13529
13530 if test x$fim_cv_xcftopnm = xyes; then
13531 WITH_XCFTOPNM_TRUE=
13532 WITH_XCFTOPNM_FALSE='#'
13533 else
13534 WITH_XCFTOPNM_TRUE='#'
13535 WITH_XCFTOPNM_FALSE=
13536 fi
13537
13538
13539 # Check whether --enable-xcf2pnm was given.
13540 if test "${enable_xcf2pnm+set}" = set; then :
13541 enableval=$enable_xcf2pnm; if test x$enableval = xno; then
13542 fim_cv_xcf2pnm=no
13543 else
13544 fim_cv_xcf2pnm=yes
13545 fi
13546
13547 else
13548 fim_cv_xcf2pnm=yes
13549
13550 fi
13551
13552 if test x$fim_cv_xcf2pnm = xyes; then
13553 WITH_XCF2PNM_TRUE=
13554 WITH_XCF2PNM_FALSE='#'
13555 else
13556 WITH_XCF2PNM_TRUE='#'
13557 WITH_XCF2PNM_FALSE=
13558 fi
13559
13560
13561
13562 fim_cv_inkscape=yes
13563 # Check whether --enable-inkscape was given.
13564 if test "${enable_inkscape+set}" = set; then :
13565 enableval=$enable_inkscape; if test x$enableval = xno; then
13566 fim_cv_inkscape=no
13567 else
13568 fim_cv_inkscape=yes
13569 fi
13570
13571 else
13572 fim_cv_inkscape=yes
13573
13574 fi
13575
13576
13577
13578 # Check whether --enable-xfig was given.
13579 if test "${enable_xfig+set}" = set; then :
13580 enableval=$enable_xfig; if test x$enableval = xno; then
13581 fim_cv_xfig=no
13582 else
13583 fim_cv_xfig=yes
13584 fi
13585
13586 else
13587 fim_cv_xfig=yes
13588
13589 fi
13590
13591
13592
13593 # Check whether --enable-dia was given.
13594 if test "${enable_dia+set}" = set; then :
13595 enableval=$enable_dia; if test x$enableval = xno; then
13596 fim_cv_dia=no
13597 else
13598 fim_cv_dia=yes
13599 fi
13600
13601 else
13602 fim_cv_dia=yes
13603
13604 fi
13605
13606
13607
13608
13609 # Check whether --with-default-consolefont was given.
13610 if test "${with_default_consolefont+set}" = set; then :
13611 withval=$with_default_consolefont; cat >>confdefs.h <<_ACEOF
13612 #define FIM_DEFAULT_CONSOLEFONT "$withval"
13613 _ACEOF
13614
13615 fim_cv_defaultconsolefont="$withval";
13616
13617 else
13618 fim_cv_defaultconsolefont=""
13619 fi
13620
13621 FIM_CUSTOM_DEFAULT_CONSOLEFONT="$fim_cv_defaultconsolefont"
13622
13623
13624 # Check whether --with-custom-hardcoded-consolefont was given.
13625 if test "${with_custom_hardcoded_consolefont+set}" = set; then :
13626 withval=$with_custom_hardcoded_consolefont;
13627 fim_cv_want_custom_hardcoded_consolefont=true;
13628 FIM_CUSTOM_HARDCODED_CONSOLEFONT="$withval"
13629
13630
13631 fi
13632
13633 if test x$fim_cv_want_custom_hardcoded_consolefont = xtrue ; then
13634 FIM_WANT_CUSTOM_HARDCODED_CONSOLEFONT_TRUE=
13635 FIM_WANT_CUSTOM_HARDCODED_CONSOLEFONT_FALSE='#'
13636 else
13637 FIM_WANT_CUSTOM_HARDCODED_CONSOLEFONT_TRUE='#'
13638 FIM_WANT_CUSTOM_HARDCODED_CONSOLEFONT_FALSE=
13639 fi
13640
13641 fim_cv_want_font_magnify_factor=0;
13642
13643 # Check whether --with-font-magnifying-factor was given.
13644 if test "${with_font_magnifying_factor+set}" = set; then :
13645 withval=$with_font_magnifying_factor;
13646 fim_cv_want_font_magnify_factor="$withval";
13647
13648 fi
13649
13650 if test x$fim_cv_want_custom_hardcoded_consolefont = xtrue ; then
13651 FIM_WANT_CUSTOM_HARDCODED_CONSOLEFONT_TRUE=
13652 FIM_WANT_CUSTOM_HARDCODED_CONSOLEFONT_FALSE='#'
13653 else
13654 FIM_WANT_CUSTOM_HARDCODED_CONSOLEFONT_TRUE='#'
13655 FIM_WANT_CUSTOM_HARDCODED_CONSOLEFONT_FALSE=
13656 fi
13657
13658 if test x"$host_cpu" = x"$build_cpu" -a x"$host_os" = x"$build_os" -a x"$using_wasm" = x"no" ; then
13659 HAVE_RUNNABLE_TESTS_TRUE=
13660 HAVE_RUNNABLE_TESTS_FALSE='#'
13661 else
13662 HAVE_RUNNABLE_TESTS_TRUE='#'
13663 HAVE_RUNNABLE_TESTS_FALSE=
13664 fi
13665
13666
13667 # Check whether --with-tmpfile was given.
13668 if test "${with_tmpfile+set}" = set; then :
13669 withval=$with_tmpfile; fim_cv_tmpfile=$withval
13670 else
13671 fim_cv_tmpfile=""
13672 fi
13673
13674 # Check whether --enable-custom-status-bar was given.
13675 if test "${enable_custom_status_bar+set}" = set; then :
13676 enableval=$enable_custom_status_bar; if test x$enableval = xno; then
13677 fim_cv_custom_status_bar=no;
13678 else
13679 fim_cv_custom_status_bar=yes;
13680 fi
13681
13682 else
13683 fim_cv_custom_status_bar=yes;
13684
13685 fi
13686
13687
13688 # Check whether --enable-optimizations was given.
13689 if test "${enable_optimizations+set}" = set; then :
13690 enableval=$enable_optimizations; if test x$enableval = xno; then
13691 fim_cv_optimizations=no
13692 else
13693 fim_cv_optimizations=yes
13694 fi
13695
13696 else
13697 fim_cv_optimizations=no
13698
13699 fi
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711 # Extract the first word of "tex", so it can be a program name with args.
13712 set dummy tex; ac_word=$2
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13714 $as_echo_n "checking for $ac_word... " >&6; }
13715 if ${ac_cv_prog_have_tex+:} false; then :
13716 $as_echo_n "(cached) " >&6
13717 else
13718 if test -n "$have_tex"; then
13719 ac_cv_prog_have_tex="$have_tex" # Let the user override the test.
13720 else
13721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13722 for as_dir in $PATH
13723 do
13724 IFS=$as_save_IFS
13725 test -z "$as_dir" && as_dir=.
13726 for ac_exec_ext in '' $ac_executable_extensions; do
13727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13728 ac_cv_prog_have_tex="yes"
13729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13730 break 2
13731 fi
13732 done
13733 done
13734 IFS=$as_save_IFS
13735
13736 test -z "$ac_cv_prog_have_tex" && ac_cv_prog_have_tex="no"
13737 fi
13738 fi
13739 have_tex=$ac_cv_prog_have_tex
13740 if test -n "$have_tex"; then
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_tex" >&5
13742 $as_echo "$have_tex" >&6; }
13743 else
13744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13745 $as_echo "no" >&6; }
13746 fi
13747
13748
13749 # Extract the first word of "dvips", so it can be a program name with args.
13750 set dummy dvips; ac_word=$2
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13752 $as_echo_n "checking for $ac_word... " >&6; }
13753 if ${ac_cv_prog_have_dvips+:} false; then :
13754 $as_echo_n "(cached) " >&6
13755 else
13756 if test -n "$have_dvips"; then
13757 ac_cv_prog_have_dvips="$have_dvips" # Let the user override the test.
13758 else
13759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13760 for as_dir in $PATH
13761 do
13762 IFS=$as_save_IFS
13763 test -z "$as_dir" && as_dir=.
13764 for ac_exec_ext in '' $ac_executable_extensions; do
13765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13766 ac_cv_prog_have_dvips="yes"
13767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13768 break 2
13769 fi
13770 done
13771 done
13772 IFS=$as_save_IFS
13773
13774 test -z "$ac_cv_prog_have_dvips" && ac_cv_prog_have_dvips="no"
13775 fi
13776 fi
13777 have_dvips=$ac_cv_prog_have_dvips
13778 if test -n "$have_dvips"; then
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dvips" >&5
13780 $as_echo "$have_dvips" >&6; }
13781 else
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13783 $as_echo "no" >&6; }
13784 fi
13785
13786
13787 # Extract the first word of "pdf2djvu", so it can be a program name with args.
13788 set dummy pdf2djvu; ac_word=$2
13789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13790 $as_echo_n "checking for $ac_word... " >&6; }
13791 if ${ac_cv_prog_have_pdf2djvu+:} false; then :
13792 $as_echo_n "(cached) " >&6
13793 else
13794 if test -n "$have_pdf2djvu"; then
13795 ac_cv_prog_have_pdf2djvu="$have_pdf2djvu" # Let the user override the test.
13796 else
13797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13798 for as_dir in $PATH
13799 do
13800 IFS=$as_save_IFS
13801 test -z "$as_dir" && as_dir=.
13802 for ac_exec_ext in '' $ac_executable_extensions; do
13803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13804 ac_cv_prog_have_pdf2djvu="yes"
13805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13806 break 2
13807 fi
13808 done
13809 done
13810 IFS=$as_save_IFS
13811
13812 test -z "$ac_cv_prog_have_pdf2djvu" && ac_cv_prog_have_pdf2djvu="no"
13813 fi
13814 fi
13815 have_pdf2djvu=$ac_cv_prog_have_pdf2djvu
13816 if test -n "$have_pdf2djvu"; then
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pdf2djvu" >&5
13818 $as_echo "$have_pdf2djvu" >&6; }
13819 else
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13821 $as_echo "no" >&6; }
13822 fi
13823
13824
13825 # Extract the first word of "dvipdf", so it can be a program name with args.
13826 set dummy dvipdf; ac_word=$2
13827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13828 $as_echo_n "checking for $ac_word... " >&6; }
13829 if ${ac_cv_prog_have_dvipdf+:} false; then :
13830 $as_echo_n "(cached) " >&6
13831 else
13832 if test -n "$have_dvipdf"; then
13833 ac_cv_prog_have_dvipdf="$have_dvipdf" # Let the user override the test.
13834 else
13835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13836 for as_dir in $PATH
13837 do
13838 IFS=$as_save_IFS
13839 test -z "$as_dir" && as_dir=.
13840 for ac_exec_ext in '' $ac_executable_extensions; do
13841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13842 ac_cv_prog_have_dvipdf="yes"
13843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13844 break 2
13845 fi
13846 done
13847 done
13848 IFS=$as_save_IFS
13849
13850 test -z "$ac_cv_prog_have_dvipdf" && ac_cv_prog_have_dvipdf="no"
13851 fi
13852 fi
13853 have_dvipdf=$ac_cv_prog_have_dvipdf
13854 if test -n "$have_dvipdf"; then
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dvipdf" >&5
13856 $as_echo "$have_dvipdf" >&6; }
13857 else
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13859 $as_echo "no" >&6; }
13860 fi
13861
13862
13863 if test x$have_tex = xyes; then
13864 WITH_TEX_TRUE=
13865 WITH_TEX_FALSE='#'
13866 else
13867 WITH_TEX_TRUE='#'
13868 WITH_TEX_FALSE=
13869 fi
13870
13871 if test x$have_dvips = xyes; then
13872 WITH_DVIPS_TRUE=
13873 WITH_DVIPS_FALSE='#'
13874 else
13875 WITH_DVIPS_TRUE='#'
13876 WITH_DVIPS_FALSE=
13877 fi
13878
13879 if test x$have_pdf2djvu = xyes; then
13880 WITH_PDF2DJVU_TRUE=
13881 WITH_PDF2DJVU_FALSE='#'
13882 else
13883 WITH_PDF2DJVU_TRUE='#'
13884 WITH_PDF2DJVU_FALSE=
13885 fi
13886
13887 if test x$have_dvipdf = xyes; then
13888 WITH_DVIPDF_TRUE=
13889 WITH_DVIPDF_FALSE='#'
13890 else
13891 WITH_DVIPDF_TRUE='#'
13892 WITH_DVIPDF_FALSE=
13893 fi
13894
13895
13896 # Extract the first word of "zcat", so it can be a program name with args.
13897 set dummy zcat; ac_word=$2
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13899 $as_echo_n "checking for $ac_word... " >&6; }
13900 if ${ac_cv_prog_have_zcat+:} false; then :
13901 $as_echo_n "(cached) " >&6
13902 else
13903 if test -n "$have_zcat"; then
13904 ac_cv_prog_have_zcat="$have_zcat" # Let the user override the test.
13905 else
13906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13907 for as_dir in $PATH
13908 do
13909 IFS=$as_save_IFS
13910 test -z "$as_dir" && as_dir=.
13911 for ac_exec_ext in '' $ac_executable_extensions; do
13912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13913 ac_cv_prog_have_zcat="yes"
13914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13915 break 2
13916 fi
13917 done
13918 done
13919 IFS=$as_save_IFS
13920
13921 test -z "$ac_cv_prog_have_zcat" && ac_cv_prog_have_zcat="no"
13922 fi
13923 fi
13924 have_zcat=$ac_cv_prog_have_zcat
13925 if test -n "$have_zcat"; then
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_zcat" >&5
13927 $as_echo "$have_zcat" >&6; }
13928 else
13929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13930 $as_echo "no" >&6; }
13931 fi
13932
13933
13934 if test x$have_zcat = xyes ; then
13935 # legacy fbi feature : should not rely on this. FIXME
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: Fim will use 'zcat' to uncompress \"gzipped\" font files." >&5
13937 $as_echo "$as_me: Fim will use 'zcat' to uncompress \"gzipped\" font files." >&6;}
13938 $as_echo "#define FIM_USE_ZCAT 1" >>confdefs.h
13939
13940 fi
13941
13942
13943 # Extract the first word of "convert", so it can be a program name with args.
13944 set dummy convert; ac_word=$2
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13946 $as_echo_n "checking for $ac_word... " >&6; }
13947 if ${ac_cv_prog_have_convert+:} false; then :
13948 $as_echo_n "(cached) " >&6
13949 else
13950 if test -n "$have_convert"; then
13951 ac_cv_prog_have_convert="$have_convert" # Let the user override the test.
13952 else
13953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13954 for as_dir in $PATH
13955 do
13956 IFS=$as_save_IFS
13957 test -z "$as_dir" && as_dir=.
13958 for ac_exec_ext in '' $ac_executable_extensions; do
13959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13960 ac_cv_prog_have_convert="yes"
13961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13962 break 2
13963 fi
13964 done
13965 done
13966 IFS=$as_save_IFS
13967
13968 test -z "$ac_cv_prog_have_convert" && ac_cv_prog_have_convert="no"
13969 fi
13970 fi
13971 have_convert=$ac_cv_prog_have_convert
13972 if test -n "$have_convert"; then
13973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_convert" >&5
13974 $as_echo "$have_convert" >&6; }
13975 else
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13977 $as_echo "no" >&6; }
13978 fi
13979
13980
13981 if test x$have_convert = xyes -a x$fim_cv_convert = xyes ; then
13982 true
13983 else
13984 fim_cv_convert=no
13985 fi
13986 if test x$fim_cv_convert = xyes; then
13987 WITH_CONVERT_TRUE=
13988 WITH_CONVERT_FALSE='#'
13989 else
13990 WITH_CONVERT_TRUE='#'
13991 WITH_CONVERT_FALSE=
13992 fi
13993
13994
13995 # Extract the first word of "dcraw", so it can be a program name with args.
13996 set dummy dcraw; ac_word=$2
13997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13998 $as_echo_n "checking for $ac_word... " >&6; }
13999 if ${ac_cv_prog_have_dcraw+:} false; then :
14000 $as_echo_n "(cached) " >&6
14001 else
14002 if test -n "$have_dcraw"; then
14003 ac_cv_prog_have_dcraw="$have_dcraw" # Let the user override the test.
14004 else
14005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14006 for as_dir in $PATH
14007 do
14008 IFS=$as_save_IFS
14009 test -z "$as_dir" && as_dir=.
14010 for ac_exec_ext in '' $ac_executable_extensions; do
14011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14012 ac_cv_prog_have_dcraw="yes"
14013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14014 break 2
14015 fi
14016 done
14017 done
14018 IFS=$as_save_IFS
14019
14020 test -z "$ac_cv_prog_have_dcraw" && ac_cv_prog_have_dcraw="no"
14021 fi
14022 fi
14023 have_dcraw=$ac_cv_prog_have_dcraw
14024 if test -n "$have_dcraw"; then
14025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dcraw" >&5
14026 $as_echo "$have_dcraw" >&6; }
14027 else
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14029 $as_echo "no" >&6; }
14030 fi
14031
14032
14033 if test x$have_dcraw = xyes -a x$fim_cv_dcraw = xyes ; then
14034 true
14035 else
14036 fim_cv_dcraw=no
14037 fi
14038 if test x$fim_cv_dcraw = xyes; then
14039 WITH_DCRAW_TRUE=
14040 WITH_DCRAW_FALSE='#'
14041 else
14042 WITH_DCRAW_TRUE='#'
14043 WITH_DCRAW_FALSE=
14044 fi
14045
14046
14047 # Extract the first word of "xcftopnm", so it can be a program name with args.
14048 set dummy xcftopnm; ac_word=$2
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14050 $as_echo_n "checking for $ac_word... " >&6; }
14051 if ${ac_cv_prog_have_xcftopnm+:} false; then :
14052 $as_echo_n "(cached) " >&6
14053 else
14054 if test -n "$have_xcftopnm"; then
14055 ac_cv_prog_have_xcftopnm="$have_xcftopnm" # Let the user override the test.
14056 else
14057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14058 for as_dir in $PATH
14059 do
14060 IFS=$as_save_IFS
14061 test -z "$as_dir" && as_dir=.
14062 for ac_exec_ext in '' $ac_executable_extensions; do
14063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14064 ac_cv_prog_have_xcftopnm="yes"
14065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14066 break 2
14067 fi
14068 done
14069 done
14070 IFS=$as_save_IFS
14071
14072 test -z "$ac_cv_prog_have_xcftopnm" && ac_cv_prog_have_xcftopnm="no"
14073 fi
14074 fi
14075 have_xcftopnm=$ac_cv_prog_have_xcftopnm
14076 if test -n "$have_xcftopnm"; then
14077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xcftopnm" >&5
14078 $as_echo "$have_xcftopnm" >&6; }
14079 else
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14081 $as_echo "no" >&6; }
14082 fi
14083
14084
14085 if test x$have_xcftopnm = xyes -a x$fim_cv_xcftopnm = xyes ; then
14086 true
14087 else
14088 fim_cv_xcftopnm=no
14089 fi
14090
14091 # Extract the first word of "xcf2pnm", so it can be a program name with args.
14092 set dummy xcf2pnm; ac_word=$2
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14094 $as_echo_n "checking for $ac_word... " >&6; }
14095 if ${ac_cv_prog_have_xcf2pnm+:} false; then :
14096 $as_echo_n "(cached) " >&6
14097 else
14098 if test -n "$have_xcf2pnm"; then
14099 ac_cv_prog_have_xcf2pnm="$have_xcf2pnm" # Let the user override the test.
14100 else
14101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14102 for as_dir in $PATH
14103 do
14104 IFS=$as_save_IFS
14105 test -z "$as_dir" && as_dir=.
14106 for ac_exec_ext in '' $ac_executable_extensions; do
14107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14108 ac_cv_prog_have_xcf2pnm="yes"
14109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14110 break 2
14111 fi
14112 done
14113 done
14114 IFS=$as_save_IFS
14115
14116 test -z "$ac_cv_prog_have_xcf2pnm" && ac_cv_prog_have_xcf2pnm="no"
14117 fi
14118 fi
14119 have_xcf2pnm=$ac_cv_prog_have_xcf2pnm
14120 if test -n "$have_xcf2pnm"; then
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xcf2pnm" >&5
14122 $as_echo "$have_xcf2pnm" >&6; }
14123 else
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14125 $as_echo "no" >&6; }
14126 fi
14127
14128
14129 if test x$have_xcf2pnm = xyes -a x$fim_cv_xcf2pnm = xyes ; then
14130 true
14131 else
14132 fim_cv_xcf2pnm=no
14133 fi
14134
14135 # Extract the first word of "inkscape", so it can be a program name with args.
14136 set dummy inkscape; ac_word=$2
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14138 $as_echo_n "checking for $ac_word... " >&6; }
14139 if ${ac_cv_prog_have_inkscape+:} false; then :
14140 $as_echo_n "(cached) " >&6
14141 else
14142 if test -n "$have_inkscape"; then
14143 ac_cv_prog_have_inkscape="$have_inkscape" # Let the user override the test.
14144 else
14145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14146 for as_dir in $PATH
14147 do
14148 IFS=$as_save_IFS
14149 test -z "$as_dir" && as_dir=.
14150 for ac_exec_ext in '' $ac_executable_extensions; do
14151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14152 ac_cv_prog_have_inkscape="yes"
14153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14154 break 2
14155 fi
14156 done
14157 done
14158 IFS=$as_save_IFS
14159
14160 test -z "$ac_cv_prog_have_inkscape" && ac_cv_prog_have_inkscape="no"
14161 fi
14162 fi
14163 have_inkscape=$ac_cv_prog_have_inkscape
14164 if test -n "$have_inkscape"; then
14165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_inkscape" >&5
14166 $as_echo "$have_inkscape" >&6; }
14167 else
14168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14169 $as_echo "no" >&6; }
14170 fi
14171
14172
14173 if test x$have_inkscape = xyes -a x$fim_cv_inkscape = xyes ; then
14174 true
14175 else
14176 fim_cv_inkscape=no
14177 fi
14178 if test x$fim_cv_inkscape = xyes; then
14179 WITH_INKSCAPE_TRUE=
14180 WITH_INKSCAPE_FALSE='#'
14181 else
14182 WITH_INKSCAPE_TRUE='#'
14183 WITH_INKSCAPE_FALSE=
14184 fi
14185
14186
14187 # Extract the first word of "fig2dev", so it can be a program name with args.
14188 set dummy fig2dev; ac_word=$2
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14190 $as_echo_n "checking for $ac_word... " >&6; }
14191 if ${ac_cv_prog_have_xfig+:} false; then :
14192 $as_echo_n "(cached) " >&6
14193 else
14194 if test -n "$have_xfig"; then
14195 ac_cv_prog_have_xfig="$have_xfig" # Let the user override the test.
14196 else
14197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14198 for as_dir in $PATH
14199 do
14200 IFS=$as_save_IFS
14201 test -z "$as_dir" && as_dir=.
14202 for ac_exec_ext in '' $ac_executable_extensions; do
14203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14204 ac_cv_prog_have_xfig="yes"
14205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14206 break 2
14207 fi
14208 done
14209 done
14210 IFS=$as_save_IFS
14211
14212 test -z "$ac_cv_prog_have_xfig" && ac_cv_prog_have_xfig="no"
14213 fi
14214 fi
14215 have_xfig=$ac_cv_prog_have_xfig
14216 if test -n "$have_xfig"; then
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xfig" >&5
14218 $as_echo "$have_xfig" >&6; }
14219 else
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14221 $as_echo "no" >&6; }
14222 fi
14223
14224
14225 if test x$have_xfig = xyes -a x$fim_cv_xfig = xyes ; then
14226 true
14227 else
14228 fim_cv_xfig=no
14229 fi
14230 if test x$have_xfig = xyes -a x$fim_cv_xfig = xyes; then
14231 WITH_XFIG_TRUE=
14232 WITH_XFIG_FALSE='#'
14233 else
14234 WITH_XFIG_TRUE='#'
14235 WITH_XFIG_FALSE=
14236 fi
14237
14238
14239 # Extract the first word of "dia", so it can be a program name with args.
14240 set dummy dia; ac_word=$2
14241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14242 $as_echo_n "checking for $ac_word... " >&6; }
14243 if ${ac_cv_prog_have_dia+:} false; then :
14244 $as_echo_n "(cached) " >&6
14245 else
14246 if test -n "$have_dia"; then
14247 ac_cv_prog_have_dia="$have_dia" # Let the user override the test.
14248 else
14249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14250 for as_dir in $PATH
14251 do
14252 IFS=$as_save_IFS
14253 test -z "$as_dir" && as_dir=.
14254 for ac_exec_ext in '' $ac_executable_extensions; do
14255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14256 ac_cv_prog_have_dia="yes"
14257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14258 break 2
14259 fi
14260 done
14261 done
14262 IFS=$as_save_IFS
14263
14264 test -z "$ac_cv_prog_have_dia" && ac_cv_prog_have_dia="no"
14265 fi
14266 fi
14267 have_dia=$ac_cv_prog_have_dia
14268 if test -n "$have_dia"; then
14269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dia" >&5
14270 $as_echo "$have_dia" >&6; }
14271 else
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14273 $as_echo "no" >&6; }
14274 fi
14275
14276
14277 if test x$have_dia = xyes -a x$fim_cv_dia = xyes ; then
14278 true
14279 else
14280 fim_cv_dia=no
14281 fi
14282
14283
14284 if test x$fim_cv_optimizations = xyes ; then
14285 uname=`uname`
14286 if test x$uname = xLinux ; then
14287 if grep "^model name.*Pentium(R) 4" /proc/cpuinfo > /dev/null; then
14288 CXXFLAGS="$CXXFLAGS -march=native"
14289 fi
14290
14291 else
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: uhm. try to specify your own optimizations.." >&5
14293 $as_echo "$as_me: uhm. try to specify your own optimizations.." >&6;}
14294
14295 fi
14296 fi
14297
14298
14299 if test x$fim_cv_convert = xyes ; then
14300 $as_echo "#define FIM_TRY_CONVERT 1" >>confdefs.h
14301
14302 fi
14303
14304 if test x$fim_cv_dcraw = xyes ; then
14305 $as_echo "#define FIM_TRY_DCRAW 1" >>confdefs.h
14306
14307 fi
14308
14309 if test x$fim_cv_xcftopnm = xyes ; then
14310 $as_echo "#define FIM_TRY_XCFTOPNM 1" >>confdefs.h
14311
14312 fi
14313
14314 if test x$fim_cv_xcf2pnm = xyes ; then
14315 $as_echo "#define FIM_TRY_XCF2PNM 1" >>confdefs.h
14316
14317 fi
14318
14319 if test x$fim_cv_inkscape = xyes ; then
14320 $as_echo "#define FIM_TRY_INKSCAPE 1" >>confdefs.h
14321
14322 fi
14323
14324 if test x$have_xfig = xyes -a x$fim_cv_xfig = xyes; then
14325 $as_echo "#define FIM_TRY_XFIG 1" >>confdefs.h
14326
14327 fi
14328
14329 if test x$have_dia = xyes ; then
14330 $as_echo "#define FIM_TRY_DIA 1" >>confdefs.h
14331
14332 fi
14333
14334
14335
14336 if test x$fim_cv_libjasper = xyes ; then
14337 $as_echo "#define FIM_WITH_LIBJASPER 1" >>confdefs.h
14338
14339 fi
14340
14341
14342 if test x$fim_cv_libexif = xyes ; then
14343 $as_echo "#define FIM_WITH_LIBEXIF 1" >>confdefs.h
14344
14345 fi
14346
14347
14348 if test x$fim_cv_aalib = xyes ; then
14349 $as_echo "#define FIM_WITH_AALIB 1" >>confdefs.h
14350
14351 fi
14352 if test x$fim_cv_aalib = xyes; then
14353 ENABLE_AA_TRUE=
14354 ENABLE_AA_FALSE='#'
14355 else
14356 ENABLE_AA_TRUE='#'
14357 ENABLE_AA_FALSE=
14358 fi
14359
14360
14361
14362
14363 if test x$fim_cv_libcaca = xyes ; then
14364 $as_echo "#define FIM_WITH_LIBCACA 1" >>confdefs.h
14365
14366 fi
14367 if test x$fim_cv_libcaca = xyes; then
14368 ENABLE_CACA_TRUE=
14369 ENABLE_CACA_FALSE='#'
14370 else
14371 ENABLE_CACA_TRUE='#'
14372 ENABLE_CACA_FALSE=
14373 fi
14374
14375
14376
14377 if test x$fim_cv_fb_console_switch_while_loading = xyes ; then
14378 $as_echo "#define FIM_WANT_FB_CONSOLE_SWITCH_WHILE_LOADING 1" >>confdefs.h
14379
14380 fi
14381
14382
14383 if test x$fim_cv_seek_magic = xyes -a x$ac_cv_func_memmem = xyes; then
14384 $as_echo "#define FIM_WANT_SEEK_MAGIC 1" >>confdefs.h
14385
14386 fi
14387
14388
14389 if test x$fim_cv_paths_in_man = xyes ; then
14390 $as_echo "#define FIM_PATHS_IN_MAN 1" >>confdefs.h
14391
14392 fi
14393
14394
14395 cat >>confdefs.h <<_ACEOF
14396 #define FIM_WANT_FONT_MAGNIFY_FACTOR $fim_cv_want_font_magnify_factor
14397 _ACEOF
14398
14399
14400
14401 if test x$fim_cv_custom_status_bar = xyes ; then
14402 $as_echo "#define FIM_WANT_CUSTOM_INFO_STATUS_BAR 1" >>confdefs.h
14403
14404 fi
14405
14406
14407 # Check whether --enable-mark-and-dump was given.
14408 if test "${enable_mark_and_dump+set}" = set; then :
14409 enableval=$enable_mark_and_dump; if test x$enableval = xyes; then fim_cv_want_mark_and_dump=1 ; else fim_cv_want_mark_and_dump=0 ; fi
14410 else
14411 fim_cv_want_mark_and_dump=1
14412 fi
14413
14414
14415 cat >>confdefs.h <<_ACEOF
14416 #define FIM_WANT_FILENAME_MARK_AND_DUMP $fim_cv_want_mark_and_dump
14417 _ACEOF
14418
14419
14420 # Check whether --enable-mouse was given.
14421 if test "${enable_mouse+set}" = set; then :
14422 enableval=$enable_mouse; if test x$enableval = xyes; then fim_cv_want_mouse=1 ; else fim_cv_want_mouse=0 ; fi
14423 else
14424 fim_cv_want_mouse=1
14425 fi
14426
14427
14428 cat >>confdefs.h <<_ACEOF
14429 #define FIM_WANT_MOUSE $fim_cv_want_mouse
14430 _ACEOF
14431
14432 if test x$fim_cv_want_mouse = x1; then
14433 ENABLE_MOUSE_TRUE=
14434 ENABLE_MOUSE_FALSE='#'
14435 else
14436 ENABLE_MOUSE_TRUE='#'
14437 ENABLE_MOUSE_FALSE=
14438 fi
14439
14440 if test x$fim_cv_want_mouse = x1; then fim_cv_want_mouse=yes ; else fim_cv_want_mouse=no ; fi
14441
14442 # Check whether --enable-scripting was given.
14443 if test "${enable_scripting+set}" = set; then :
14444 enableval=$enable_scripting; if test x$enableval = xyes; then fim_cv_want_noscripting=0 ; else fim_cv_want_noscripting=1 ; fi
14445 else
14446 fim_cv_want_noscripting=0
14447 fi
14448
14449 if test x$fim_cv_want_noscripting = x1 ; then
14450
14451 cat >>confdefs.h <<_ACEOF
14452 #define FIM_WANT_NOSCRIPTING $fim_cv_want_noscripting
14453 _ACEOF
14454
14455 fi
14456
14457 # Check whether --enable-output-console was given.
14458 if test "${enable_output_console+set}" = set; then :
14459 enableval=$enable_output_console; if test x$enableval = xyes; then fim_cv_want_no_output_console=0 ; else fim_cv_want_no_output_console=1 ; fi
14460 else
14461 fim_cv_want_no_output_console=0
14462 fi
14463
14464 if test x$fim_cv_want_no_output_console = x1 ; then
14465
14466 cat >>confdefs.h <<_ACEOF
14467 #define FIM_WANT_NO_OUTPUT_CONSOLE $fim_cv_want_no_output_console
14468 _ACEOF
14469
14470 fi
14471
14472 fim_want_astext=yes
14473 # Check whether --enable-as-text-rendering was given.
14474 if test "${enable_as_text_rendering+set}" = set; then :
14475 enableval=$enable_as_text_rendering; if test x$enableval = xno ; then
14476 fim_want_astext=no
14477 fi
14478
14479 fi
14480
14481 if test x$fim_want_astext = xyes ; then
14482
14483 cat >>confdefs.h <<_ACEOF
14484 #define FIM_WANT_TEXT_RENDERING 1
14485 _ACEOF
14486
14487 fi
14488
14489 fim_want_rbr=yes
14490 # Check whether --enable-raw-bits-rendering was given.
14491 if test "${enable_raw_bits_rendering+set}" = set; then :
14492 enableval=$enable_raw_bits_rendering; if test x$enableval = xno ; then
14493 fim_want_rbr=no
14494 fi
14495
14496 fi
14497
14498 if test x$fim_want_rbr = xyes ; then
14499
14500 cat >>confdefs.h <<_ACEOF
14501 #define FIM_WANT_RAW_BITS_RENDERING 1
14502 _ACEOF
14503
14504 fi
14505 if test x$fim_want_rbr = xyes; then
14506 ENABLE_RAW_BITS_RENDERING_TRUE=
14507 ENABLE_RAW_BITS_RENDERING_FALSE='#'
14508 else
14509 ENABLE_RAW_BITS_RENDERING_TRUE='#'
14510 ENABLE_RAW_BITS_RENDERING_FALSE=
14511 fi
14512
14513
14514 fim_want_lss=yes
14515 # Check whether --enable-loader-string-specification was given.
14516 if test "${enable_loader_string_specification+set}" = set; then :
14517 enableval=$enable_loader_string_specification; if test x$enableval = xno ; then
14518 fim_want_lss=no
14519 fi
14520
14521 fi
14522
14523 if test x$fim_want_lss = xyes ; then
14524
14525 cat >>confdefs.h <<_ACEOF
14526 #define FIM_ALLOW_LOADER_STRING_SPECIFICATION 1
14527 _ACEOF
14528
14529 fi
14530
14531 ac_config_headers="$ac_config_headers config.h"
14532
14533
14534 # Extract the first word of "timeout", so it can be a program name with args.
14535 set dummy timeout; ac_word=$2
14536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14537 $as_echo_n "checking for $ac_word... " >&6; }
14538 if ${ac_cv_prog_HAVE_TIMEOUT+:} false; then :
14539 $as_echo_n "(cached) " >&6
14540 else
14541 if test -n "$HAVE_TIMEOUT"; then
14542 ac_cv_prog_HAVE_TIMEOUT="$HAVE_TIMEOUT" # Let the user override the test.
14543 else
14544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14545 for as_dir in $PATH
14546 do
14547 IFS=$as_save_IFS
14548 test -z "$as_dir" && as_dir=.
14549 for ac_exec_ext in '' $ac_executable_extensions; do
14550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14551 ac_cv_prog_HAVE_TIMEOUT="yes"
14552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14553 break 2
14554 fi
14555 done
14556 done
14557 IFS=$as_save_IFS
14558
14559 test -z "$ac_cv_prog_HAVE_TIMEOUT" && ac_cv_prog_HAVE_TIMEOUT="no"
14560 fi
14561 fi
14562 HAVE_TIMEOUT=$ac_cv_prog_HAVE_TIMEOUT
14563 if test -n "$HAVE_TIMEOUT"; then
14564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_TIMEOUT" >&5
14565 $as_echo "$HAVE_TIMEOUT" >&6; }
14566 else
14567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14568 $as_echo "no" >&6; }
14569 fi
14570
14571
14572
14573 if test x"$ac_cv_prog_HAVE_TIMEOUT" = x"yes"; then
14574 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use 'timeout ' in certain tests." >&5
14575 $as_echo "$as_me: Will use 'timeout ' in certain tests." >&6;}
14576 TIMEOUT_SMALL="timeout --foreground 5"
14577
14578 TIMEOUT_LARGE="timeout --foreground 30"
14579
14580 $as_echo "#define FIM_HAS_TIMEOUT 1" >>confdefs.h
14581
14582 fi
14583
14584
14585 $as_echo "#define FIM_RANDOM 1" >>confdefs.h
14586
14587
14588 $as_echo "#define FIM_DEFAULT_CONFIG 1" >>confdefs.h
14589
14590
14591 $as_echo "#define FIM_NOFB 1" >>confdefs.h
14592
14593
14594 $as_echo "#define FIM_RECORDING 1" >>confdefs.h
14595
14596
14597 $as_echo "#define FIM_SWITCH_FIXUP 1" >>confdefs.h
14598
14599
14600 $as_echo "#define FIM_CHECK_DUPLICATES 1" >>confdefs.h
14601
14602
14603 $as_echo "#define FIM_CHECK_FILE_EXISTENCE 1" >>confdefs.h
14604
14605
14606 $as_echo "#define FIM_REMOVE_FAILED 1" >>confdefs.h
14607
14608
14609 $as_echo "#define FIM_AUTOSKIP_FAILED 1" >>confdefs.h
14610
14611
14612 $as_echo "#define FIM_COMMAND_AUTOCOMPLETION 1" >>confdefs.h
14613
14614
14615 $as_echo "#define FIM_NAMESPACES 1" >>confdefs.h
14616
14617
14618
14619 cat >>confdefs.h <<_ACEOF
14620 #define FIM_VERSION "${VERSION}"
14621 _ACEOF
14622
14623
14624 cat >>confdefs.h <<_ACEOF
14625 #define FIM_TMP_FILENAME "$fim_cv_tmpfile"
14626 _ACEOF
14627
14628
14629 if test "x$fim_cv_debug" = xyes; then
14630 $as_echo "#define FIM_WITH_DEBUG 1" >>confdefs.h
14631
14632 else
14633 true;
14634 fi
14635 if test "x$fim_cv_debug" = xyes; then
14636 WITH_DEBUG_TRUE=
14637 WITH_DEBUG_FALSE='#'
14638 else
14639 WITH_DEBUG_TRUE='#'
14640 WITH_DEBUG_FALSE=
14641 fi
14642
14643
14644 $as_echo "#define FIM_ITERATED_COMMANDS 1" >>confdefs.h
14645
14646
14647 $as_echo "#define FIM_SKIP_KNOWN_FILETYPES 1" >>confdefs.h
14648
14649
14650 $as_echo "#define FIM_EXPERIMENTAL_ROTATION 1" >>confdefs.h
14651
14652
14653
14654
14655
14656
14657
14658
14659 $as_echo "#define FIM_AUTHOR_NAME \"Michele Martone\"" >>confdefs.h
14660
14661 $as_echo "#define FIM_AUTHOR_EMAIL \"<dezperado _CUT_ autistici _CUT_ org>\"" >>confdefs.h
14662
14663 $as_echo "#define FIM_AUTHOR \"Michele Martone <dezperado _CUT_ autistici _CUT_ org>\"" >>confdefs.h
14664
14665 # Note: Gerd changed his surname from Knorr to Hoffmann, so I report here his actual surname
14666 $as_echo "#define FBI_AUTHOR_NAME \"Gerd Hoffmann\"" >>confdefs.h
14667
14668 $as_echo "#define FBI_AUTHOR \"Gerd Hoffmann <kraxel _CUT_ bytesex.org>\"" >>confdefs.h
14669
14670 want_matrices_rendering=no;
14671 # Check whether --enable-matrices-rendering was given.
14672 if test "${enable_matrices_rendering+set}" = set; then :
14673 enableval=$enable_matrices_rendering; if test x$enableval = xyes; then
14674 if test x$ac_cv_func_rsb_lib_init = xyes; then
14675
14676 $as_echo "#define HAVE_MATRIX_MARKET_DECODER 1" >>confdefs.h
14677
14678 #CXXFLAGS="$CXXFLAGS `librsb-config --cflags`"
14679 #LIBS="$LIBS `librsb-config --static --ldflags | sed s/-static//g`"
14680 want_matrices_rendering=yes;
14681 else
14682 as_fn_error $? "Cannot detect librsb! Either disable matrix rendering or supply the right LIBS and CXXFLAGS!" "$LINENO" 5
14683 fi
14684 else
14685 true;
14686 fi
14687
14688 fi
14689
14690 if test x$ac_cv_func_rsb_lib_init = xyes -a x$want_matrices_rendering = xyes; then
14691 ENABLE_MATRIX_MARKET_DECODER_TRUE=
14692 ENABLE_MATRIX_MARKET_DECODER_FALSE='#'
14693 else
14694 ENABLE_MATRIX_MARKET_DECODER_TRUE='#'
14695 ENABLE_MATRIX_MARKET_DECODER_FALSE=
14696 fi
14697
14698 if test x"$using_wasm" != x"no"; then
14699 WANT_WASM_TRUE=
14700 WANT_WASM_FALSE='#'
14701 else
14702 WANT_WASM_TRUE='#'
14703 WANT_WASM_FALSE=
14704 fi
14705
14706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if you have c++11 ..." >&5
14707 $as_echo_n "checking if you have c++11 ...... " >&6; }
14708 if ${have_cv_cxx11+:} false; then :
14709 $as_echo_n "(cached) " >&6
14710 else
14711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14712 /* end confdefs.h. */
14713
14714 #if __cplusplus<201103L
14715 #error using pre-c++11
14716 #endif
14717 int main() { }
14718
14719 _ACEOF
14720 if ac_fn_cxx_try_compile "$LINENO"; then :
14721 fim_cxx_standard=new
14722 else
14723 fim_cxx_standard=old
14724 fi
14725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14726 fi
14727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cv_cxx11" >&5
14728 $as_echo "$have_cv_cxx11" >&6; }
14729
14730 if test x"$fim_cxx_standard" = x"new"; then
14731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14732 /* end confdefs.h. */
14733
14734 #include <thread>
14735 void thread_function() { }
14736
14737 int
14738 main ()
14739 {
14740
14741 std::thread t(&thread_function);
14742 t.join();
14743
14744 ;
14745 return 0;
14746 }
14747 _ACEOF
14748 if ac_fn_cxx_try_link "$LINENO"; then :
14749 have_cv_thread_libs=yes
14750 else
14751 have_cv_thread_libs=no
14752 fi
14753 rm -f core conftest.err conftest.$ac_objext \
14754 conftest$ac_exeext conftest.$ac_ext
14755
14756 if test x$have_cv_thread_libs != xyes; then
14757 { $as_echo "$as_me:${as_lineno-$LINENO}: Seemingly C++ threads need an extra library. Checking if -pthread solves this." >&5
14758 $as_echo "$as_me: Seemingly C++ threads need an extra library. Checking if -pthread solves this." >&6;}
14759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
14760 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
14761 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
14762 $as_echo_n "(cached) " >&6
14763 else
14764 ac_check_lib_save_LIBS=$LIBS
14765 LIBS="-lpthread $LIBS"
14766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14767 /* end confdefs.h. */
14768
14769 /* Override any GCC internal prototype to avoid an error.
14770 Use char because int might match the return type of a GCC
14771 builtin and then its argument prototype would still apply. */
14772 #ifdef __cplusplus
14773 extern "C"
14774 #endif
14775 char pthread_create ();
14776 int
14777 main ()
14778 {
14779 return pthread_create ();
14780 ;
14781 return 0;
14782 }
14783 _ACEOF
14784 if ac_fn_cxx_try_link "$LINENO"; then :
14785 ac_cv_lib_pthread_pthread_create=yes
14786 else
14787 ac_cv_lib_pthread_pthread_create=no
14788 fi
14789 rm -f core conftest.err conftest.$ac_objext \
14790 conftest$ac_exeext conftest.$ac_ext
14791 LIBS=$ac_check_lib_save_LIBS
14792 fi
14793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
14794 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
14795 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
14796 LIBS="$LIBS -lpthread";
14797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14798 /* end confdefs.h. */
14799
14800 #include <thread>
14801 void thread_function() { }
14802
14803 int
14804 main ()
14805 {
14806
14807 std::thread t(&thread_function);
14808 t.join();
14809
14810 ;
14811 return 0;
14812 }
14813 _ACEOF
14814 if ac_fn_cxx_try_link "$LINENO"; then :
14815 { $as_echo "$as_me:${as_lineno-$LINENO}: Yes, adding -lpthread allows using C++ threads." >&5
14816 $as_echo "$as_me: Yes, adding -lpthread allows using C++ threads." >&6;}
14817 fi
14818 rm -f core conftest.err conftest.$ac_objext \
14819 conftest$ac_exeext conftest.$ac_ext
14820 fim_cv_have_pthread_added=yes;
14821 else
14822 fim_cv_have_pthread_added=no
14823 fi
14824
14825 fi
14826 fi
14827
14828
14829
14830
14831
14832
14833
14834 FIM_SVN_REPOSITORY=http://svn.savannah.nongnu.org/svn/fbi-improved/
14835
14836
14837
14838
14839 #AC_CONFIG_FILES([Makefile],[src/Makefile])
14840
14841 ac_config_files="$ac_config_files Makefile src/Makefile doc/Makefile distros/Makefile scripts/Makefile media/Makefile media/multipage/Makefile scripts/maintenance/cron-build.sh scripts/maintenance/remote-build.sh scripts/maintenance/cron-svndump.pl scripts/maintenance/cron-rsync.sh"
14842
14843 cat >confcache <<\_ACEOF
14844 # This file is a shell script that caches the results of configure
14845 # tests run on this system so they can be shared between configure
14846 # scripts and configure runs, see configure's option --config-cache.
14847 # It is not useful on other systems. If it contains results you don't
14848 # want to keep, you may remove or edit it.
14849 #
14850 # config.status only pays attention to the cache file if you give it
14851 # the --recheck option to rerun configure.
14852 #
14853 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14854 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14855 # following values.
14856
14857 _ACEOF
14858
14859 # The following way of writing the cache mishandles newlines in values,
14860 # but we know of no workaround that is simple, portable, and efficient.
14861 # So, we kill variables containing newlines.
14862 # Ultrix sh set writes to stderr and can't be redirected directly,
14863 # and sets the high bit in the cache file unless we assign to the vars.
14864 (
14865 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14866 eval ac_val=\$$ac_var
14867 case $ac_val in #(
14868 *${as_nl}*)
14869 case $ac_var in #(
14870 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14871 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14872 esac
14873 case $ac_var in #(
14874 _ | IFS | as_nl) ;; #(
14875 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14876 *) { eval $ac_var=; unset $ac_var;} ;;
14877 esac ;;
14878 esac
14879 done
14880
14881 (set) 2>&1 |
14882 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14883 *${as_nl}ac_space=\ *)
14884 # `set' does not quote correctly, so add quotes: double-quote
14885 # substitution turns \\\\ into \\, and sed turns \\ into \.
14886 sed -n \
14887 "s/'/'\\\\''/g;
14888 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14889 ;; #(
14890 *)
14891 # `set' quotes correctly as required by POSIX, so do not add quotes.
14892 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14893 ;;
14894 esac |
14895 sort
14896 ) |
14897 sed '
14898 /^ac_cv_env_/b end
14899 t clear
14900 :clear
14901 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14902 t end
14903 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14904 :end' >>confcache
14905 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14906 if test -w "$cache_file"; then
14907 if test "x$cache_file" != "x/dev/null"; then
14908 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14909 $as_echo "$as_me: updating cache $cache_file" >&6;}
14910 if test ! -f "$cache_file" || test -h "$cache_file"; then
14911 cat confcache >"$cache_file"
14912 else
14913 case $cache_file in #(
14914 */* | ?:*)
14915 mv -f confcache "$cache_file"$$ &&
14916 mv -f "$cache_file"$$ "$cache_file" ;; #(
14917 *)
14918 mv -f confcache "$cache_file" ;;
14919 esac
14920 fi
14921 fi
14922 else
14923 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14924 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14925 fi
14926 fi
14927 rm -f confcache
14928
14929 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14930 # Let make expand exec_prefix.
14931 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14932
14933 DEFS=-DHAVE_CONFIG_H
14934
14935 ac_libobjs=
14936 ac_ltlibobjs=
14937 U=
14938 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14939 # 1. Remove the extension, and $U if already installed.
14940 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14941 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14942 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14943 # will be set to the directory where LIBOBJS objects are built.
14944 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14945 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14946 done
14947 LIBOBJS=$ac_libobjs
14948
14949 LTLIBOBJS=$ac_ltlibobjs
14950
14951
14952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14953 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14954 if test -n "$am_sleep_pid"; then
14955 # Hide warnings about reused PIDs.
14956 wait $am_sleep_pid 2>/dev/null
14957 fi
14958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14959 $as_echo "done" >&6; }
14960 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14961 as_fn_error $? "conditional \"AMDEP\" was never defined.
14962 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14963 fi
14964 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14965 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14966 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14967 fi
14968 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
14969 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
14970 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14971 fi
14972 if test -n "$EXEEXT"; then
14973 am__EXEEXT_TRUE=
14974 am__EXEEXT_FALSE='#'
14975 else
14976 am__EXEEXT_TRUE='#'
14977 am__EXEEXT_FALSE=
14978 fi
14979
14980 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14981 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14982 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14983 fi
14984 if test -z "${WITH_LIBGRAPHICSMAGICK_TRUE}" && test -z "${WITH_LIBGRAPHICSMAGICK_FALSE}"; then
14985 as_fn_error $? "conditional \"WITH_LIBGRAPHICSMAGICK\" was never defined.
14986 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14987 fi
14988 if test -z "${ENABLE_IMLIB2_TRUE}" && test -z "${ENABLE_IMLIB2_FALSE}"; then
14989 as_fn_error $? "conditional \"ENABLE_IMLIB2\" was never defined.
14990 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14991 fi
14992 if test -z "${WITH_SHELLCHECK_TRUE}" && test -z "${WITH_SHELLCHECK_FALSE}"; then
14993 as_fn_error $? "conditional \"WITH_SHELLCHECK\" was never defined.
14994 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14995 fi
14996 if test -z "${WITH_MAN2HTML_TRUE}" && test -z "${WITH_MAN2HTML_FALSE}"; then
14997 as_fn_error $? "conditional \"WITH_MAN2HTML\" was never defined.
14998 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14999 fi
15000 if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
15001 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
15002 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15003 fi
15004 if test -z "${WITH_GROFF_TRUE}" && test -z "${WITH_GROFF_FALSE}"; then
15005 as_fn_error $? "conditional \"WITH_GROFF\" was never defined.
15006 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15007 fi
15008 if test -z "${WITH_MAN_TRUE}" && test -z "${WITH_MAN_FALSE}"; then
15009 as_fn_error $? "conditional \"WITH_MAN\" was never defined.
15010 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15011 fi
15012 if test -z "${WITH_EXPECT_TRUE}" && test -z "${WITH_EXPECT_FALSE}"; then
15013 as_fn_error $? "conditional \"WITH_EXPECT\" was never defined.
15014 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15015 fi
15016 if test -z "${ENABLE_SYSTEM_CALLS_TRUE}" && test -z "${ENABLE_SYSTEM_CALLS_FALSE}"; then
15017 as_fn_error $? "conditional \"ENABLE_SYSTEM_CALLS\" was never defined.
15018 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15019 fi
15020 if test -z "${ENABLE_FRAMEBUFFER_TRUE}" && test -z "${ENABLE_FRAMEBUFFER_FALSE}"; then
15021 as_fn_error $? "conditional \"ENABLE_FRAMEBUFFER\" was never defined.
15022 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15023 fi
15024
15025 if test -z "${WITH_FLEXLEXER_TRUE}" && test -z "${WITH_FLEXLEXER_FALSE}"; then
15026 as_fn_error $? "conditional \"WITH_FLEXLEXER\" was never defined.
15027 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15028 fi
15029 if test -z "${ENABLE_GIF_TRUE}" && test -z "${ENABLE_GIF_FALSE}"; then
15030 as_fn_error $? "conditional \"ENABLE_GIF\" was never defined.
15031 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15032 fi
15033 if test -z "${ENABLE_QOI_TRUE}" && test -z "${ENABLE_QOI_FALSE}"; then
15034 as_fn_error $? "conditional \"ENABLE_QOI\" was never defined.
15035 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15036 fi
15037 if test -z "${ENABLE_TIFF_TRUE}" && test -z "${ENABLE_TIFF_FALSE}"; then
15038 as_fn_error $? "conditional \"ENABLE_TIFF\" was never defined.
15039 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15040 fi
15041 if test -z "${WANT_READLINE_TRUE}" && test -z "${WANT_READLINE_FALSE}"; then
15042 as_fn_error $? "conditional \"WANT_READLINE\" was never defined.
15043 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15044 fi
15045 if test -z "${ENABLE_JPEG_TRUE}" && test -z "${ENABLE_JPEG_FALSE}"; then
15046 as_fn_error $? "conditional \"ENABLE_JPEG\" was never defined.
15047 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15048 fi
15049 if test -z "${ENABLE_PS_TRUE}" && test -z "${ENABLE_PS_FALSE}"; then
15050 as_fn_error $? "conditional \"ENABLE_PS\" was never defined.
15051 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15052 fi
15053 if test -z "${ENABLE_DJVU_TRUE}" && test -z "${ENABLE_DJVU_FALSE}"; then
15054 as_fn_error $? "conditional \"ENABLE_DJVU\" was never defined.
15055 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15056 fi
15057 if test -z "${ENABLE_POPPLER_TRUE}" && test -z "${ENABLE_POPPLER_FALSE}"; then
15058 as_fn_error $? "conditional \"ENABLE_POPPLER\" was never defined.
15059 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15060 fi
15061 if test -z "${ENABLE_PDF_TRUE}" && test -z "${ENABLE_PDF_FALSE}"; then
15062 as_fn_error $? "conditional \"ENABLE_PDF\" was never defined.
15063 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15064 fi
15065 if test -z "${ENABLE_BMP_TRUE}" && test -z "${ENABLE_BMP_FALSE}"; then
15066 as_fn_error $? "conditional \"ENABLE_BMP\" was never defined.
15067 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15068 fi
15069 if test -z "${ENABLE_PCX_TRUE}" && test -z "${ENABLE_PCX_FALSE}"; then
15070 as_fn_error $? "conditional \"ENABLE_PCX\" was never defined.
15071 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15072 fi
15073 if test -z "${ENABLE_WEBP_TRUE}" && test -z "${ENABLE_WEBP_FALSE}"; then
15074 as_fn_error $? "conditional \"ENABLE_WEBP\" was never defined.
15075 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15076 fi
15077 if test -z "${ENABLE_AVIF_TRUE}" && test -z "${ENABLE_AVIF_FALSE}"; then
15078 as_fn_error $? "conditional \"ENABLE_AVIF\" was never defined.
15079 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15080 fi
15081 if test -z "${ENABLE_PNG_TRUE}" && test -z "${ENABLE_PNG_FALSE}"; then
15082 as_fn_error $? "conditional \"ENABLE_PNG\" was never defined.
15083 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15084 fi
15085 if test -z "${ENABLE_ARCHIVE_TRUE}" && test -z "${ENABLE_ARCHIVE_FALSE}"; then
15086 as_fn_error $? "conditional \"ENABLE_ARCHIVE\" was never defined.
15087 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15088 fi
15089 if test -z "${ENABLE_SDL_TRUE}" && test -z "${ENABLE_SDL_FALSE}"; then
15090 as_fn_error $? "conditional \"ENABLE_SDL\" was never defined.
15091 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15092 fi
15093 if test -z "${ENABLE_GTK_TRUE}" && test -z "${ENABLE_GTK_FALSE}"; then
15094 as_fn_error $? "conditional \"ENABLE_GTK\" was never defined.
15095 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15096 fi
15097 if test -z "${FIM_WANT_HARDCODED_CONSOLEFONT_TRUE}" && test -z "${FIM_WANT_HARDCODED_CONSOLEFONT_FALSE}"; then
15098 as_fn_error $? "conditional \"FIM_WANT_HARDCODED_CONSOLEFONT\" was never defined.
15099 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15100 fi
15101 if test -z "${FIM_HAVE_ANY_CONSOLEFONT_TRUE}" && test -z "${FIM_HAVE_ANY_CONSOLEFONT_FALSE}"; then
15102 as_fn_error $? "conditional \"FIM_HAVE_ANY_CONSOLEFONT\" was never defined.
15103 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15104 fi
15105 if test -z "${HAVE_GS_TRUE}" && test -z "${HAVE_GS_FALSE}"; then
15106 as_fn_error $? "conditional \"HAVE_GS\" was never defined.
15107 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15108 fi
15109 if test -z "${HAVE_FIMGS_TRUE}" && test -z "${HAVE_FIMGS_FALSE}"; then
15110 as_fn_error $? "conditional \"HAVE_FIMGS\" was never defined.
15111 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15112 fi
15113 if test -z "${WANT_DEFAULT_FIMRC_TRUE}" && test -z "${WANT_DEFAULT_FIMRC_FALSE}"; then
15114 as_fn_error $? "conditional \"WANT_DEFAULT_FIMRC\" was never defined.
15115 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15116 fi
15117 if test -z "${ENABLE_HISTORY_TRUE}" && test -z "${ENABLE_HISTORY_FALSE}"; then
15118 as_fn_error $? "conditional \"ENABLE_HISTORY\" was never defined.
15119 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15120 fi
15121 if test -z "${ENABLE_NO_HISTORY_TESTS_TRUE}" && test -z "${ENABLE_NO_HISTORY_TESTS_FALSE}"; then
15122 as_fn_error $? "conditional \"ENABLE_NO_HISTORY_TESTS\" was never defined.
15123 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15124 fi
15125 if test -z "${WANT_RECURSIVE_DIRS_TRUE}" && test -z "${WANT_RECURSIVE_DIRS_FALSE}"; then
15126 as_fn_error $? "conditional \"WANT_RECURSIVE_DIRS\" was never defined.
15127 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15128 fi
15129 if test -z "${WANT_READ_STDIN_IMAGE_TRUE}" && test -z "${WANT_READ_STDIN_IMAGE_FALSE}"; then
15130 as_fn_error $? "conditional \"WANT_READ_STDIN_IMAGE\" was never defined.
15131 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15132 fi
15133 if test -z "${HAVE_VALGRIND_TRUE}" && test -z "${HAVE_VALGRIND_FALSE}"; then
15134 as_fn_error $? "conditional \"HAVE_VALGRIND\" was never defined.
15135 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15136 fi
15137 if test -z "${WITH_XCFTOPNM_TRUE}" && test -z "${WITH_XCFTOPNM_FALSE}"; then
15138 as_fn_error $? "conditional \"WITH_XCFTOPNM\" was never defined.
15139 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15140 fi
15141 if test -z "${WITH_XCF2PNM_TRUE}" && test -z "${WITH_XCF2PNM_FALSE}"; then
15142 as_fn_error $? "conditional \"WITH_XCF2PNM\" was never defined.
15143 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15144 fi
15145 if test -z "${FIM_WANT_CUSTOM_HARDCODED_CONSOLEFONT_TRUE}" && test -z "${FIM_WANT_CUSTOM_HARDCODED_CONSOLEFONT_FALSE}"; then
15146 as_fn_error $? "conditional \"FIM_WANT_CUSTOM_HARDCODED_CONSOLEFONT\" was never defined.
15147 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15148 fi
15149 if test -z "${FIM_WANT_CUSTOM_HARDCODED_CONSOLEFONT_TRUE}" && test -z "${FIM_WANT_CUSTOM_HARDCODED_CONSOLEFONT_FALSE}"; then
15150 as_fn_error $? "conditional \"FIM_WANT_CUSTOM_HARDCODED_CONSOLEFONT\" was never defined.
15151 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15152 fi
15153 if test -z "${HAVE_RUNNABLE_TESTS_TRUE}" && test -z "${HAVE_RUNNABLE_TESTS_FALSE}"; then
15154 as_fn_error $? "conditional \"HAVE_RUNNABLE_TESTS\" was never defined.
15155 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15156 fi
15157 if test -z "${WITH_TEX_TRUE}" && test -z "${WITH_TEX_FALSE}"; then
15158 as_fn_error $? "conditional \"WITH_TEX\" was never defined.
15159 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15160 fi
15161 if test -z "${WITH_DVIPS_TRUE}" && test -z "${WITH_DVIPS_FALSE}"; then
15162 as_fn_error $? "conditional \"WITH_DVIPS\" was never defined.
15163 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15164 fi
15165 if test -z "${WITH_PDF2DJVU_TRUE}" && test -z "${WITH_PDF2DJVU_FALSE}"; then
15166 as_fn_error $? "conditional \"WITH_PDF2DJVU\" was never defined.
15167 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15168 fi
15169 if test -z "${WITH_DVIPDF_TRUE}" && test -z "${WITH_DVIPDF_FALSE}"; then
15170 as_fn_error $? "conditional \"WITH_DVIPDF\" was never defined.
15171 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15172 fi
15173 if test -z "${WITH_CONVERT_TRUE}" && test -z "${WITH_CONVERT_FALSE}"; then
15174 as_fn_error $? "conditional \"WITH_CONVERT\" was never defined.
15175 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15176 fi
15177 if test -z "${WITH_DCRAW_TRUE}" && test -z "${WITH_DCRAW_FALSE}"; then
15178 as_fn_error $? "conditional \"WITH_DCRAW\" was never defined.
15179 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15180 fi
15181 if test -z "${WITH_INKSCAPE_TRUE}" && test -z "${WITH_INKSCAPE_FALSE}"; then
15182 as_fn_error $? "conditional \"WITH_INKSCAPE\" was never defined.
15183 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15184 fi
15185 if test -z "${WITH_XFIG_TRUE}" && test -z "${WITH_XFIG_FALSE}"; then
15186 as_fn_error $? "conditional \"WITH_XFIG\" was never defined.
15187 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15188 fi
15189 if test -z "${ENABLE_AA_TRUE}" && test -z "${ENABLE_AA_FALSE}"; then
15190 as_fn_error $? "conditional \"ENABLE_AA\" was never defined.
15191 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15192 fi
15193 if test -z "${ENABLE_CACA_TRUE}" && test -z "${ENABLE_CACA_FALSE}"; then
15194 as_fn_error $? "conditional \"ENABLE_CACA\" was never defined.
15195 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15196 fi
15197 if test -z "${ENABLE_MOUSE_TRUE}" && test -z "${ENABLE_MOUSE_FALSE}"; then
15198 as_fn_error $? "conditional \"ENABLE_MOUSE\" was never defined.
15199 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15200 fi
15201 if test -z "${ENABLE_RAW_BITS_RENDERING_TRUE}" && test -z "${ENABLE_RAW_BITS_RENDERING_FALSE}"; then
15202 as_fn_error $? "conditional \"ENABLE_RAW_BITS_RENDERING\" was never defined.
15203 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15204 fi
15205 if test -z "${WITH_DEBUG_TRUE}" && test -z "${WITH_DEBUG_FALSE}"; then
15206 as_fn_error $? "conditional \"WITH_DEBUG\" was never defined.
15207 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15208 fi
15209 if test -z "${ENABLE_MATRIX_MARKET_DECODER_TRUE}" && test -z "${ENABLE_MATRIX_MARKET_DECODER_FALSE}"; then
15210 as_fn_error $? "conditional \"ENABLE_MATRIX_MARKET_DECODER\" was never defined.
15211 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15212 fi
15213 if test -z "${WANT_WASM_TRUE}" && test -z "${WANT_WASM_FALSE}"; then
15214 as_fn_error $? "conditional \"WANT_WASM\" was never defined.
15215 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15216 fi
15217
15218 : "${CONFIG_STATUS=./config.status}"
15219 ac_write_fail=0
15220 ac_clean_files_save=$ac_clean_files
15221 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15222 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15223 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15224 as_write_fail=0
15225 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15226 #! $SHELL
15227 # Generated by $as_me.
15228 # Run this file to recreate the current configuration.
15229 # Compiler output produced by configure, useful for debugging
15230 # configure, is in config.log if it exists.
15231
15232 debug=false
15233 ac_cs_recheck=false
15234 ac_cs_silent=false
15235
15236 SHELL=\${CONFIG_SHELL-$SHELL}
15237 export SHELL
15238 _ASEOF
15239 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15240 ## -------------------- ##
15241 ## M4sh Initialization. ##
15242 ## -------------------- ##
15243
15244 # Be more Bourne compatible
15245 DUALCASE=1; export DUALCASE # for MKS sh
15246 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15247 emulate sh
15248 NULLCMD=:
15249 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15250 # is contrary to our usage. Disable this feature.
15251 alias -g '${1+"$@"}'='"$@"'
15252 setopt NO_GLOB_SUBST
15253 else
15254 case `(set -o) 2>/dev/null` in #(
15255 *posix*) :
15256 set -o posix ;; #(
15257 *) :
15258 ;;
15259 esac
15260 fi
15261
15262
15263 as_nl='
15264 '
15265 export as_nl
15266 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15267 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15268 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15269 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15270 # Prefer a ksh shell builtin over an external printf program on Solaris,
15271 # but without wasting forks for bash or zsh.
15272 if test -z "$BASH_VERSION$ZSH_VERSION" \
15273 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15274 as_echo='print -r --'
15275 as_echo_n='print -rn --'
15276 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15277 as_echo='printf %s\n'
15278 as_echo_n='printf %s'
15279 else
15280 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15281 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15282 as_echo_n='/usr/ucb/echo -n'
15283 else
15284 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15285 as_echo_n_body='eval
15286 arg=$1;
15287 case $arg in #(
15288 *"$as_nl"*)
15289 expr "X$arg" : "X\\(.*\\)$as_nl";
15290 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15291 esac;
15292 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15293 '
15294 export as_echo_n_body
15295 as_echo_n='sh -c $as_echo_n_body as_echo'
15296 fi
15297 export as_echo_body
15298 as_echo='sh -c $as_echo_body as_echo'
15299 fi
15300
15301 # The user is always right.
15302 if test "${PATH_SEPARATOR+set}" != set; then
15303 PATH_SEPARATOR=:
15304 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15305 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15306 PATH_SEPARATOR=';'
15307 }
15308 fi
15309
15310
15311 # IFS
15312 # We need space, tab and new line, in precisely that order. Quoting is
15313 # there to prevent editors from complaining about space-tab.
15314 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15315 # splitting by setting IFS to empty value.)
15316 IFS=" "" $as_nl"
15317
15318 # Find who we are. Look in the path if we contain no directory separator.
15319 as_myself=
15320 case $0 in #((
15321 *[\\/]* ) as_myself=$0 ;;
15322 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15323 for as_dir in $PATH
15324 do
15325 IFS=$as_save_IFS
15326 test -z "$as_dir" && as_dir=.
15327 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15328 done
15329 IFS=$as_save_IFS
15330
15331 ;;
15332 esac
15333 # We did not find ourselves, most probably we were run as `sh COMMAND'
15334 # in which case we are not to be found in the path.
15335 if test "x$as_myself" = x; then
15336 as_myself=$0
15337 fi
15338 if test ! -f "$as_myself"; then
15339 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15340 exit 1
15341 fi
15342
15343 # Unset variables that we do not need and which cause bugs (e.g. in
15344 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15345 # suppresses any "Segmentation fault" message there. '((' could
15346 # trigger a bug in pdksh 5.2.14.
15347 for as_var in BASH_ENV ENV MAIL MAILPATH
15348 do eval test x\${$as_var+set} = xset \
15349 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15350 done
15351 PS1='$ '
15352 PS2='> '
15353 PS4='+ '
15354
15355 # NLS nuisances.
15356 LC_ALL=C
15357 export LC_ALL
15358 LANGUAGE=C
15359 export LANGUAGE
15360
15361 # CDPATH.
15362 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15363
15364
15365 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15366 # ----------------------------------------
15367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15369 # script with STATUS, using 1 if that was 0.
15370 as_fn_error ()
15371 {
15372 as_status=$1; test $as_status -eq 0 && as_status=1
15373 if test "$4"; then
15374 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15376 fi
15377 $as_echo "$as_me: error: $2" >&2
15378 as_fn_exit $as_status
15379 } # as_fn_error
15380
15381
15382 # as_fn_set_status STATUS
15383 # -----------------------
15384 # Set $? to STATUS, without forking.
15385 as_fn_set_status ()
15386 {
15387 return $1
15388 } # as_fn_set_status
15389
15390 # as_fn_exit STATUS
15391 # -----------------
15392 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15393 as_fn_exit ()
15394 {
15395 set +e
15396 as_fn_set_status $1
15397 exit $1
15398 } # as_fn_exit
15399
15400 # as_fn_unset VAR
15401 # ---------------
15402 # Portably unset VAR.
15403 as_fn_unset ()
15404 {
15405 { eval $1=; unset $1;}
15406 }
15407 as_unset=as_fn_unset
15408 # as_fn_append VAR VALUE
15409 # ----------------------
15410 # Append the text in VALUE to the end of the definition contained in VAR. Take
15411 # advantage of any shell optimizations that allow amortized linear growth over
15412 # repeated appends, instead of the typical quadratic growth present in naive
15413 # implementations.
15414 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15415 eval 'as_fn_append ()
15416 {
15417 eval $1+=\$2
15418 }'
15419 else
15420 as_fn_append ()
15421 {
15422 eval $1=\$$1\$2
15423 }
15424 fi # as_fn_append
15425
15426 # as_fn_arith ARG...
15427 # ------------------
15428 # Perform arithmetic evaluation on the ARGs, and store the result in the
15429 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15430 # must be portable across $(()) and expr.
15431 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15432 eval 'as_fn_arith ()
15433 {
15434 as_val=$(( $* ))
15435 }'
15436 else
15437 as_fn_arith ()
15438 {
15439 as_val=`expr "$@" || test $? -eq 1`
15440 }
15441 fi # as_fn_arith
15442
15443
15444 if expr a : '\(a\)' >/dev/null 2>&1 &&
15445 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15446 as_expr=expr
15447 else
15448 as_expr=false
15449 fi
15450
15451 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15452 as_basename=basename
15453 else
15454 as_basename=false
15455 fi
15456
15457 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15458 as_dirname=dirname
15459 else
15460 as_dirname=false
15461 fi
15462
15463 as_me=`$as_basename -- "$0" ||
15464 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15465 X"$0" : 'X\(//\)$' \| \
15466 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15467 $as_echo X/"$0" |
15468 sed '/^.*\/\([^/][^/]*\)\/*$/{
15469 s//\1/
15470 q
15471 }
15472 /^X\/\(\/\/\)$/{
15473 s//\1/
15474 q
15475 }
15476 /^X\/\(\/\).*/{
15477 s//\1/
15478 q
15479 }
15480 s/.*/./; q'`
15481
15482 # Avoid depending upon Character Ranges.
15483 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15484 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15485 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15486 as_cr_digits='0123456789'
15487 as_cr_alnum=$as_cr_Letters$as_cr_digits
15488
15489 ECHO_C= ECHO_N= ECHO_T=
15490 case `echo -n x` in #(((((
15491 -n*)
15492 case `echo 'xy\c'` in
15493 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15494 xy) ECHO_C='\c';;
15495 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15496 ECHO_T=' ';;
15497 esac;;
15498 *)
15499 ECHO_N='-n';;
15500 esac
15501
15502 rm -f conf$$ conf$$.exe conf$$.file
15503 if test -d conf$$.dir; then
15504 rm -f conf$$.dir/conf$$.file
15505 else
15506 rm -f conf$$.dir
15507 mkdir conf$$.dir 2>/dev/null
15508 fi
15509 if (echo >conf$$.file) 2>/dev/null; then
15510 if ln -s conf$$.file conf$$ 2>/dev/null; then
15511 as_ln_s='ln -s'
15512 # ... but there are two gotchas:
15513 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15514 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15515 # In both cases, we have to default to `cp -pR'.
15516 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15517 as_ln_s='cp -pR'
15518 elif ln conf$$.file conf$$ 2>/dev/null; then
15519 as_ln_s=ln
15520 else
15521 as_ln_s='cp -pR'
15522 fi
15523 else
15524 as_ln_s='cp -pR'
15525 fi
15526 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15527 rmdir conf$$.dir 2>/dev/null
15528
15529
15530 # as_fn_mkdir_p
15531 # -------------
15532 # Create "$as_dir" as a directory, including parents if necessary.
15533 as_fn_mkdir_p ()
15534 {
15535
15536 case $as_dir in #(
15537 -*) as_dir=./$as_dir;;
15538 esac
15539 test -d "$as_dir" || eval $as_mkdir_p || {
15540 as_dirs=
15541 while :; do
15542 case $as_dir in #(
15543 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15544 *) as_qdir=$as_dir;;
15545 esac
15546 as_dirs="'$as_qdir' $as_dirs"
15547 as_dir=`$as_dirname -- "$as_dir" ||
15548 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15549 X"$as_dir" : 'X\(//\)[^/]' \| \
15550 X"$as_dir" : 'X\(//\)$' \| \
15551 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15552 $as_echo X"$as_dir" |
15553 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15554 s//\1/
15555 q
15556 }
15557 /^X\(\/\/\)[^/].*/{
15558 s//\1/
15559 q
15560 }
15561 /^X\(\/\/\)$/{
15562 s//\1/
15563 q
15564 }
15565 /^X\(\/\).*/{
15566 s//\1/
15567 q
15568 }
15569 s/.*/./; q'`
15570 test -d "$as_dir" && break
15571 done
15572 test -z "$as_dirs" || eval "mkdir $as_dirs"
15573 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15574
15575
15576 } # as_fn_mkdir_p
15577 if mkdir -p . 2>/dev/null; then
15578 as_mkdir_p='mkdir -p "$as_dir"'
15579 else
15580 test -d ./-p && rmdir ./-p
15581 as_mkdir_p=false
15582 fi
15583
15584
15585 # as_fn_executable_p FILE
15586 # -----------------------
15587 # Test if FILE is an executable regular file.
15588 as_fn_executable_p ()
15589 {
15590 test -f "$1" && test -x "$1"
15591 } # as_fn_executable_p
15592 as_test_x='test -x'
15593 as_executable_p=as_fn_executable_p
15594
15595 # Sed expression to map a string onto a valid CPP name.
15596 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15597
15598 # Sed expression to map a string onto a valid variable name.
15599 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15600
15601
15602 exec 6>&1
15603 ## ----------------------------------- ##
15604 ## Main body of $CONFIG_STATUS script. ##
15605 ## ----------------------------------- ##
15606 _ASEOF
15607 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15608
15609 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15610 # Save the log message, to keep $0 and so on meaningful, and to
15611 # report actual input values of CONFIG_FILES etc. instead of their
15612 # values after options handling.
15613 ac_log="
15614 This file was extended by fim $as_me 0.7.1, which was
15615 generated by GNU Autoconf 2.69. Invocation command line was
15616
15617 CONFIG_FILES = $CONFIG_FILES
15618 CONFIG_HEADERS = $CONFIG_HEADERS
15619 CONFIG_LINKS = $CONFIG_LINKS
15620 CONFIG_COMMANDS = $CONFIG_COMMANDS
15621 $ $0 $@
15622
15623 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15624 "
15625
15626 _ACEOF
15627
15628 case $ac_config_files in *"
15629 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15630 esac
15631
15632 case $ac_config_headers in *"
15633 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15634 esac
15635
15636
15637 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15638 # Files that config.status was made for.
15639 config_files="$ac_config_files"
15640 config_headers="$ac_config_headers"
15641 config_commands="$ac_config_commands"
15642
15643 _ACEOF
15644
15645 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15646 ac_cs_usage="\
15647 \`$as_me' instantiates files and other configuration actions
15648 from templates according to the current configuration. Unless the files
15649 and actions are specified as TAGs, all are instantiated by default.
15650
15651 Usage: $0 [OPTION]... [TAG]...
15652
15653 -h, --help print this help, then exit
15654 -V, --version print version number and configuration settings, then exit
15655 --config print configuration, then exit
15656 -q, --quiet, --silent
15657 do not print progress messages
15658 -d, --debug don't remove temporary files
15659 --recheck update $as_me by reconfiguring in the same conditions
15660 --file=FILE[:TEMPLATE]
15661 instantiate the configuration file FILE
15662 --header=FILE[:TEMPLATE]
15663 instantiate the configuration header FILE
15664
15665 Configuration files:
15666 $config_files
15667
15668 Configuration headers:
15669 $config_headers
15670
15671 Configuration commands:
15672 $config_commands
15673
15674 Report bugs to <dezperado_FOobAr_autistici_Baz_org, by replacing _FOobAr_ with a @ and _Baz_ with a .>."
15675
15676 _ACEOF
15677 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15678 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15679 ac_cs_version="\\
15680 fim config.status 0.7.1
15681 configured by $0, generated by GNU Autoconf 2.69,
15682 with options \\"\$ac_cs_config\\"
15683
15684 Copyright (C) 2012 Free Software Foundation, Inc.
15685 This config.status script is free software; the Free Software Foundation
15686 gives unlimited permission to copy, distribute and modify it."
15687
15688 ac_pwd='$ac_pwd'
15689 srcdir='$srcdir'
15690 INSTALL='$INSTALL'
15691 MKDIR_P='$MKDIR_P'
15692 AWK='$AWK'
15693 test -n "\$AWK" || AWK=awk
15694 _ACEOF
15695
15696 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15697 # The default lists apply if the user does not specify any file.
15698 ac_need_defaults=:
15699 while test $# != 0
15700 do
15701 case $1 in
15702 --*=?*)
15703 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15704 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15705 ac_shift=:
15706 ;;
15707 --*=)
15708 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15709 ac_optarg=
15710 ac_shift=:
15711 ;;
15712 *)
15713 ac_option=$1
15714 ac_optarg=$2
15715 ac_shift=shift
15716 ;;
15717 esac
15718
15719 case $ac_option in
15720 # Handling of the options.
15721 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15722 ac_cs_recheck=: ;;
15723 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15724 $as_echo "$ac_cs_version"; exit ;;
15725 --config | --confi | --conf | --con | --co | --c )
15726 $as_echo "$ac_cs_config"; exit ;;
15727 --debug | --debu | --deb | --de | --d | -d )
15728 debug=: ;;
15729 --file | --fil | --fi | --f )
15730 $ac_shift
15731 case $ac_optarg in
15732 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15733 '') as_fn_error $? "missing file argument" ;;
15734 esac
15735 as_fn_append CONFIG_FILES " '$ac_optarg'"
15736 ac_need_defaults=false;;
15737 --header | --heade | --head | --hea )
15738 $ac_shift
15739 case $ac_optarg in
15740 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15741 esac
15742 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15743 ac_need_defaults=false;;
15744 --he | --h)
15745 # Conflict between --help and --header
15746 as_fn_error $? "ambiguous option: \`$1'
15747 Try \`$0 --help' for more information.";;
15748 --help | --hel | -h )
15749 $as_echo "$ac_cs_usage"; exit ;;
15750 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15751 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15752 ac_cs_silent=: ;;
15753
15754 # This is an error.
15755 -*) as_fn_error $? "unrecognized option: \`$1'
15756 Try \`$0 --help' for more information." ;;
15757
15758 *) as_fn_append ac_config_targets " $1"
15759 ac_need_defaults=false ;;
15760
15761 esac
15762 shift
15763 done
15764
15765 ac_configure_extra_args=
15766
15767 if $ac_cs_silent; then
15768 exec 6>/dev/null
15769 ac_configure_extra_args="$ac_configure_extra_args --silent"
15770 fi
15771
15772 _ACEOF
15773 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15774 if \$ac_cs_recheck; then
15775 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15776 shift
15777 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15778 CONFIG_SHELL='$SHELL'
15779 export CONFIG_SHELL
15780 exec "\$@"
15781 fi
15782
15783 _ACEOF
15784 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15785 exec 5>>config.log
15786 {
15787 echo
15788 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15789 ## Running $as_me. ##
15790 _ASBOX
15791 $as_echo "$ac_log"
15792 } >&5
15793
15794 _ACEOF
15795 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15796 #
15797 # INIT-COMMANDS
15798 #
15799 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
15800
15801 _ACEOF
15802
15803 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15804
15805 # Handling of arguments.
15806 for ac_config_target in $ac_config_targets
15807 do
15808 case $ac_config_target in
15809 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15810 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15811 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15812 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15813 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15814 "distros/Makefile") CONFIG_FILES="$CONFIG_FILES distros/Makefile" ;;
15815 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
15816 "media/Makefile") CONFIG_FILES="$CONFIG_FILES media/Makefile" ;;
15817 "media/multipage/Makefile") CONFIG_FILES="$CONFIG_FILES media/multipage/Makefile" ;;
15818 "scripts/maintenance/cron-build.sh") CONFIG_FILES="$CONFIG_FILES scripts/maintenance/cron-build.sh" ;;
15819 "scripts/maintenance/remote-build.sh") CONFIG_FILES="$CONFIG_FILES scripts/maintenance/remote-build.sh" ;;
15820 "scripts/maintenance/cron-svndump.pl") CONFIG_FILES="$CONFIG_FILES scripts/maintenance/cron-svndump.pl" ;;
15821 "scripts/maintenance/cron-rsync.sh") CONFIG_FILES="$CONFIG_FILES scripts/maintenance/cron-rsync.sh" ;;
15822
15823 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15824 esac
15825 done
15826
15827
15828 # If the user did not use the arguments to specify the items to instantiate,
15829 # then the envvar interface is used. Set only those that are not.
15830 # We use the long form for the default assignment because of an extremely
15831 # bizarre bug on SunOS 4.1.3.
15832 if $ac_need_defaults; then
15833 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15834 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15835 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15836 fi
15837
15838 # Have a temporary directory for convenience. Make it in the build tree
15839 # simply because there is no reason against having it here, and in addition,
15840 # creating and moving files from /tmp can sometimes cause problems.
15841 # Hook for its removal unless debugging.
15842 # Note that there is a small window in which the directory will not be cleaned:
15843 # after its creation but before its name has been assigned to `$tmp'.
15844 $debug ||
15845 {
15846 tmp= ac_tmp=
15847 trap 'exit_status=$?
15848 : "${ac_tmp:=$tmp}"
15849 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15850 ' 0
15851 trap 'as_fn_exit 1' 1 2 13 15
15852 }
15853 # Create a (secure) tmp directory for tmp files.
15854
15855 {
15856 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15857 test -d "$tmp"
15858 } ||
15859 {
15860 tmp=./conf$$-$RANDOM
15861 (umask 077 && mkdir "$tmp")
15862 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15863 ac_tmp=$tmp
15864
15865 # Set up the scripts for CONFIG_FILES section.
15866 # No need to generate them if there are no CONFIG_FILES.
15867 # This happens for instance with `./config.status config.h'.
15868 if test -n "$CONFIG_FILES"; then
15869
15870
15871 ac_cr=`echo X | tr X '\015'`
15872 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15873 # But we know of no other shell where ac_cr would be empty at this
15874 # point, so we can use a bashism as a fallback.
15875 if test "x$ac_cr" = x; then
15876 eval ac_cr=\$\'\\r\'
15877 fi
15878 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15879 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15880 ac_cs_awk_cr='\\r'
15881 else
15882 ac_cs_awk_cr=$ac_cr
15883 fi
15884
15885 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15886 _ACEOF
15887
15888
15889 {
15890 echo "cat >conf$$subs.awk <<_ACEOF" &&
15891 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15892 echo "_ACEOF"
15893 } >conf$$subs.sh ||
15894 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15895 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15896 ac_delim='%!_!# '
15897 for ac_last_try in false false false false false :; do
15898 . ./conf$$subs.sh ||
15899 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15900
15901 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15902 if test $ac_delim_n = $ac_delim_num; then
15903 break
15904 elif $ac_last_try; then
15905 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15906 else
15907 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15908 fi
15909 done
15910 rm -f conf$$subs.sh
15911
15912 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15913 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15914 _ACEOF
15915 sed -n '
15916 h
15917 s/^/S["/; s/!.*/"]=/
15918 p
15919 g
15920 s/^[^!]*!//
15921 :repl
15922 t repl
15923 s/'"$ac_delim"'$//
15924 t delim
15925 :nl
15926 h
15927 s/\(.\{148\}\)..*/\1/
15928 t more1
15929 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15930 p
15931 n
15932 b repl
15933 :more1
15934 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15935 p
15936 g
15937 s/.\{148\}//
15938 t nl
15939 :delim
15940 h
15941 s/\(.\{148\}\)..*/\1/
15942 t more2
15943 s/["\\]/\\&/g; s/^/"/; s/$/"/
15944 p
15945 b
15946 :more2
15947 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15948 p
15949 g
15950 s/.\{148\}//
15951 t delim
15952 ' <conf$$subs.awk | sed '
15953 /^[^""]/{
15954 N
15955 s/\n//
15956 }
15957 ' >>$CONFIG_STATUS || ac_write_fail=1
15958 rm -f conf$$subs.awk
15959 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15960 _ACAWK
15961 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15962 for (key in S) S_is_set[key] = 1
15963 FS = ""
15964
15965 }
15966 {
15967 line = $ 0
15968 nfields = split(line, field, "@")
15969 substed = 0
15970 len = length(field[1])
15971 for (i = 2; i < nfields; i++) {
15972 key = field[i]
15973 keylen = length(key)
15974 if (S_is_set[key]) {
15975 value = S[key]
15976 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15977 len += length(value) + length(field[++i])
15978 substed = 1
15979 } else
15980 len += 1 + keylen
15981 }
15982
15983 print line
15984 }
15985
15986 _ACAWK
15987 _ACEOF
15988 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15989 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15990 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15991 else
15992 cat
15993 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15994 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15995 _ACEOF
15996
15997 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15998 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15999 # trailing colons and then remove the whole line if VPATH becomes empty
16000 # (actually we leave an empty line to preserve line numbers).
16001 if test "x$srcdir" = x.; then
16002 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16003 h
16004 s///
16005 s/^/:/
16006 s/[ ]*$/:/
16007 s/:\$(srcdir):/:/g
16008 s/:\${srcdir}:/:/g
16009 s/:@srcdir@:/:/g
16010 s/^:*//
16011 s/:*$//
16012 x
16013 s/\(=[ ]*\).*/\1/
16014 G
16015 s/\n//
16016 s/^[^=]*=[ ]*$//
16017 }'
16018 fi
16019
16020 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16021 fi # test -n "$CONFIG_FILES"
16022
16023 # Set up the scripts for CONFIG_HEADERS section.
16024 # No need to generate them if there are no CONFIG_HEADERS.
16025 # This happens for instance with `./config.status Makefile'.
16026 if test -n "$CONFIG_HEADERS"; then
16027 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16028 BEGIN {
16029 _ACEOF
16030
16031 # Transform confdefs.h into an awk script `defines.awk', embedded as
16032 # here-document in config.status, that substitutes the proper values into
16033 # config.h.in to produce config.h.
16034
16035 # Create a delimiter string that does not exist in confdefs.h, to ease
16036 # handling of long lines.
16037 ac_delim='%!_!# '
16038 for ac_last_try in false false :; do
16039 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16040 if test -z "$ac_tt"; then
16041 break
16042 elif $ac_last_try; then
16043 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16044 else
16045 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16046 fi
16047 done
16048
16049 # For the awk script, D is an array of macro values keyed by name,
16050 # likewise P contains macro parameters if any. Preserve backslash
16051 # newline sequences.
16052
16053 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16054 sed -n '
16055 s/.\{148\}/&'"$ac_delim"'/g
16056 t rset
16057 :rset
16058 s/^[ ]*#[ ]*define[ ][ ]*/ /
16059 t def
16060 d
16061 :def
16062 s/\\$//
16063 t bsnl
16064 s/["\\]/\\&/g
16065 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16066 D["\1"]=" \3"/p
16067 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16068 d
16069 :bsnl
16070 s/["\\]/\\&/g
16071 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16072 D["\1"]=" \3\\\\\\n"\\/p
16073 t cont
16074 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16075 t cont
16076 d
16077 :cont
16078 n
16079 s/.\{148\}/&'"$ac_delim"'/g
16080 t clear
16081 :clear
16082 s/\\$//
16083 t bsnlc
16084 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16085 d
16086 :bsnlc
16087 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16088 b cont
16089 ' <confdefs.h | sed '
16090 s/'"$ac_delim"'/"\\\
16091 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16092
16093 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16094 for (key in D) D_is_set[key] = 1
16095 FS = ""
16096 }
16097 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16098 line = \$ 0
16099 split(line, arg, " ")
16100 if (arg[1] == "#") {
16101 defundef = arg[2]
16102 mac1 = arg[3]
16103 } else {
16104 defundef = substr(arg[1], 2)
16105 mac1 = arg[2]
16106 }
16107 split(mac1, mac2, "(") #)
16108 macro = mac2[1]
16109 prefix = substr(line, 1, index(line, defundef) - 1)
16110 if (D_is_set[macro]) {
16111 # Preserve the white space surrounding the "#".
16112 print prefix "define", macro P[macro] D[macro]
16113 next
16114 } else {
16115 # Replace #undef with comments. This is necessary, for example,
16116 # in the case of _POSIX_SOURCE, which is predefined and required
16117 # on some systems where configure will not decide to define it.
16118 if (defundef == "undef") {
16119 print "/*", prefix defundef, macro, "*/"
16120 next
16121 }
16122 }
16123 }
16124 { print }
16125 _ACAWK
16126 _ACEOF
16127 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16128 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16129 fi # test -n "$CONFIG_HEADERS"
16130
16131
16132 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16133 shift
16134 for ac_tag
16135 do
16136 case $ac_tag in
16137 :[FHLC]) ac_mode=$ac_tag; continue;;
16138 esac
16139 case $ac_mode$ac_tag in
16140 :[FHL]*:*);;
16141 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16142 :[FH]-) ac_tag=-:-;;
16143 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16144 esac
16145 ac_save_IFS=$IFS
16146 IFS=:
16147 set x $ac_tag
16148 IFS=$ac_save_IFS
16149 shift
16150 ac_file=$1
16151 shift
16152
16153 case $ac_mode in
16154 :L) ac_source=$1;;
16155 :[FH])
16156 ac_file_inputs=
16157 for ac_f
16158 do
16159 case $ac_f in
16160 -) ac_f="$ac_tmp/stdin";;
16161 *) # Look for the file first in the build tree, then in the source tree
16162 # (if the path is not absolute). The absolute path cannot be DOS-style,
16163 # because $ac_f cannot contain `:'.
16164 test -f "$ac_f" ||
16165 case $ac_f in
16166 [\\/$]*) false;;
16167 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16168 esac ||
16169 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16170 esac
16171 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16172 as_fn_append ac_file_inputs " '$ac_f'"
16173 done
16174
16175 # Let's still pretend it is `configure' which instantiates (i.e., don't
16176 # use $as_me), people would be surprised to read:
16177 # /* config.h. Generated by config.status. */
16178 configure_input='Generated from '`
16179 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16180 `' by configure.'
16181 if test x"$ac_file" != x-; then
16182 configure_input="$ac_file. $configure_input"
16183 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16184 $as_echo "$as_me: creating $ac_file" >&6;}
16185 fi
16186 # Neutralize special characters interpreted by sed in replacement strings.
16187 case $configure_input in #(
16188 *\&* | *\|* | *\\* )
16189 ac_sed_conf_input=`$as_echo "$configure_input" |
16190 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16191 *) ac_sed_conf_input=$configure_input;;
16192 esac
16193
16194 case $ac_tag in
16195 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16196 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16197 esac
16198 ;;
16199 esac
16200
16201 ac_dir=`$as_dirname -- "$ac_file" ||
16202 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16203 X"$ac_file" : 'X\(//\)[^/]' \| \
16204 X"$ac_file" : 'X\(//\)$' \| \
16205 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16206 $as_echo X"$ac_file" |
16207 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16208 s//\1/
16209 q
16210 }
16211 /^X\(\/\/\)[^/].*/{
16212 s//\1/
16213 q
16214 }
16215 /^X\(\/\/\)$/{
16216 s//\1/
16217 q
16218 }
16219 /^X\(\/\).*/{
16220 s//\1/
16221 q
16222 }
16223 s/.*/./; q'`
16224 as_dir="$ac_dir"; as_fn_mkdir_p
16225 ac_builddir=.
16226
16227 case "$ac_dir" in
16228 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16229 *)
16230 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16231 # A ".." for each directory in $ac_dir_suffix.
16232 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16233 case $ac_top_builddir_sub in
16234 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16235 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16236 esac ;;
16237 esac
16238 ac_abs_top_builddir=$ac_pwd
16239 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16240 # for backward compatibility:
16241 ac_top_builddir=$ac_top_build_prefix
16242
16243 case $srcdir in
16244 .) # We are building in place.
16245 ac_srcdir=.
16246 ac_top_srcdir=$ac_top_builddir_sub
16247 ac_abs_top_srcdir=$ac_pwd ;;
16248 [\\/]* | ?:[\\/]* ) # Absolute name.
16249 ac_srcdir=$srcdir$ac_dir_suffix;
16250 ac_top_srcdir=$srcdir
16251 ac_abs_top_srcdir=$srcdir ;;
16252 *) # Relative name.
16253 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16254 ac_top_srcdir=$ac_top_build_prefix$srcdir
16255 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16256 esac
16257 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16258
16259
16260 case $ac_mode in
16261 :F)
16262 #
16263 # CONFIG_FILE
16264 #
16265
16266 case $INSTALL in
16267 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16268 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16269 esac
16270 ac_MKDIR_P=$MKDIR_P
16271 case $MKDIR_P in
16272 [\\/$]* | ?:[\\/]* ) ;;
16273 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16274 esac
16275 _ACEOF
16276
16277 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16278 # If the template does not know about datarootdir, expand it.
16279 # FIXME: This hack should be removed a few years after 2.60.
16280 ac_datarootdir_hack=; ac_datarootdir_seen=
16281 ac_sed_dataroot='
16282 /datarootdir/ {
16283 p
16284 q
16285 }
16286 /@datadir@/p
16287 /@docdir@/p
16288 /@infodir@/p
16289 /@localedir@/p
16290 /@mandir@/p'
16291 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16292 *datarootdir*) ac_datarootdir_seen=yes;;
16293 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16295 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16296 _ACEOF
16297 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16298 ac_datarootdir_hack='
16299 s&@datadir@&$datadir&g
16300 s&@docdir@&$docdir&g
16301 s&@infodir@&$infodir&g
16302 s&@localedir@&$localedir&g
16303 s&@mandir@&$mandir&g
16304 s&\\\${datarootdir}&$datarootdir&g' ;;
16305 esac
16306 _ACEOF
16307
16308 # Neutralize VPATH when `$srcdir' = `.'.
16309 # Shell code in configure.ac might set extrasub.
16310 # FIXME: do we really want to maintain this feature?
16311 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16312 ac_sed_extra="$ac_vpsub
16313 $extrasub
16314 _ACEOF
16315 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16316 :t
16317 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16318 s|@configure_input@|$ac_sed_conf_input|;t t
16319 s&@top_builddir@&$ac_top_builddir_sub&;t t
16320 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16321 s&@srcdir@&$ac_srcdir&;t t
16322 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16323 s&@top_srcdir@&$ac_top_srcdir&;t t
16324 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16325 s&@builddir@&$ac_builddir&;t t
16326 s&@abs_builddir@&$ac_abs_builddir&;t t
16327 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16328 s&@INSTALL@&$ac_INSTALL&;t t
16329 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16330 $ac_datarootdir_hack
16331 "
16332 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16333 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16334
16335 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16336 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16337 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16338 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16340 which seems to be undefined. Please make sure it is defined" >&5
16341 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16342 which seems to be undefined. Please make sure it is defined" >&2;}
16343
16344 rm -f "$ac_tmp/stdin"
16345 case $ac_file in
16346 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16347 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16348 esac \
16349 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16350 ;;
16351 :H)
16352 #
16353 # CONFIG_HEADER
16354 #
16355 if test x"$ac_file" != x-; then
16356 {
16357 $as_echo "/* $configure_input */" \
16358 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16359 } >"$ac_tmp/config.h" \
16360 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16361 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16362 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16363 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16364 else
16365 rm -f "$ac_file"
16366 mv "$ac_tmp/config.h" "$ac_file" \
16367 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16368 fi
16369 else
16370 $as_echo "/* $configure_input */" \
16371 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16372 || as_fn_error $? "could not create -" "$LINENO" 5
16373 fi
16374 # Compute "$ac_file"'s index in $config_headers.
16375 _am_arg="$ac_file"
16376 _am_stamp_count=1
16377 for _am_header in $config_headers :; do
16378 case $_am_header in
16379 $_am_arg | $_am_arg:* )
16380 break ;;
16381 * )
16382 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16383 esac
16384 done
16385 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16386 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16387 X"$_am_arg" : 'X\(//\)[^/]' \| \
16388 X"$_am_arg" : 'X\(//\)$' \| \
16389 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16390 $as_echo X"$_am_arg" |
16391 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16392 s//\1/
16393 q
16394 }
16395 /^X\(\/\/\)[^/].*/{
16396 s//\1/
16397 q
16398 }
16399 /^X\(\/\/\)$/{
16400 s//\1/
16401 q
16402 }
16403 /^X\(\/\).*/{
16404 s//\1/
16405 q
16406 }
16407 s/.*/./; q'`/stamp-h$_am_stamp_count
16408 ;;
16409
16410 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16411 $as_echo "$as_me: executing $ac_file commands" >&6;}
16412 ;;
16413 esac
16414
16415
16416 case $ac_file$ac_mode in
16417 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16418 # Older Autoconf quotes --file arguments for eval, but not when files
16419 # are listed without --file. Let's play safe and only enable the eval
16420 # if we detect the quoting.
16421 # TODO: see whether this extra hack can be removed once we start
16422 # requiring Autoconf 2.70 or later.
16423 case $CONFIG_FILES in #(
16424 *\'*) :
16425 eval set x "$CONFIG_FILES" ;; #(
16426 *) :
16427 set x $CONFIG_FILES ;; #(
16428 *) :
16429 ;;
16430 esac
16431 shift
16432 # Used to flag and report bootstrapping failures.
16433 am_rc=0
16434 for am_mf
16435 do
16436 # Strip MF so we end up with the name of the file.
16437 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
16438 # Check whether this is an Automake generated Makefile which includes
16439 # dependency-tracking related rules and includes.
16440 # Grep'ing the whole file directly is not great: AIX grep has a line
16441 # limit of 2048, but all sed's we know have understand at least 4000.
16442 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
16443 || continue
16444 am_dirpart=`$as_dirname -- "$am_mf" ||
16445 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16446 X"$am_mf" : 'X\(//\)[^/]' \| \
16447 X"$am_mf" : 'X\(//\)$' \| \
16448 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16449 $as_echo X"$am_mf" |
16450 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16451 s//\1/
16452 q
16453 }
16454 /^X\(\/\/\)[^/].*/{
16455 s//\1/
16456 q
16457 }
16458 /^X\(\/\/\)$/{
16459 s//\1/
16460 q
16461 }
16462 /^X\(\/\).*/{
16463 s//\1/
16464 q
16465 }
16466 s/.*/./; q'`
16467 am_filepart=`$as_basename -- "$am_mf" ||
16468 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
16469 X"$am_mf" : 'X\(//\)$' \| \
16470 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16471 $as_echo X/"$am_mf" |
16472 sed '/^.*\/\([^/][^/]*\)\/*$/{
16473 s//\1/
16474 q
16475 }
16476 /^X\/\(\/\/\)$/{
16477 s//\1/
16478 q
16479 }
16480 /^X\/\(\/\).*/{
16481 s//\1/
16482 q
16483 }
16484 s/.*/./; q'`
16485 { echo "$as_me:$LINENO: cd "$am_dirpart" \
16486 && sed -e '/# am--include-marker/d' "$am_filepart" \
16487 | $MAKE -f - am--depfiles" >&5
16488 (cd "$am_dirpart" \
16489 && sed -e '/# am--include-marker/d' "$am_filepart" \
16490 | $MAKE -f - am--depfiles) >&5 2>&5
16491 ac_status=$?
16492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16493 (exit $ac_status); } || am_rc=$?
16494 done
16495 if test $am_rc -ne 0; then
16496 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16497 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16498 as_fn_error $? "Something went wrong bootstrapping makefile fragments
16499 for automatic dependency tracking. Try re-running configure with the
16500 '--disable-dependency-tracking' option to at least be able to build
16501 the package (albeit without support for automatic dependency tracking).
16502 See \`config.log' for more details" "$LINENO" 5; }
16503 fi
16504 { am_dirpart=; unset am_dirpart;}
16505 { am_filepart=; unset am_filepart;}
16506 { am_mf=; unset am_mf;}
16507 { am_rc=; unset am_rc;}
16508 rm -f conftest-deps.mk
16509 }
16510 ;;
16511
16512 esac
16513 done # for ac_tag
16514
16515
16516 as_fn_exit 0
16517 _ACEOF
16518 ac_clean_files=$ac_clean_files_save
16519
16520 test $ac_write_fail = 0 ||
16521 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16522
16523
16524 # configure is writing to config.log, and then calls config.status.
16525 # config.status does its own redirection, appending to config.log.
16526 # Unfortunately, on DOS this fails, as config.log is still kept open
16527 # by configure, so config.status won't be able to write to it; its
16528 # output is simply discarded. So we exec the FD to /dev/null,
16529 # effectively closing config.log, so it can be properly (re)opened and
16530 # appended to by config.status. When coming back to configure, we
16531 # need to make the FD available again.
16532 if test "$no_create" != yes; then
16533 ac_cs_success=:
16534 ac_config_status_args=
16535 test "$silent" = yes &&
16536 ac_config_status_args="$ac_config_status_args --quiet"
16537 exec 5>/dev/null
16538 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16539 exec 5>>config.log
16540 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16541 # would make configure fail if this is the last instruction.
16542 $ac_cs_success || as_fn_exit 1
16543 fi
16544 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16546 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16547 fi
16548
16549 #AC_OUTPUT
16550
16551 { $as_echo "$as_me:${as_lineno-$LINENO}:
16552 Fim v${VERSION} has been configured as follows (features marked with * are not recommended: either unfinished or broken: please do NOT use them when building for a distro):
16553
16554 default minimal key mapping : ${have_default_mapping:-no}
16555 default minimal key bindings : ${have_default_bindings:-no}
16556 default configuration file builtin : ${have_default_config:-no}
16557 resize optimizations : ${fim_cv_resize_optimizations:-no}
16558 system,popen calls wrappers enabled : ${fim_system_calls:-yes}
16559 will allow push of directories : ${fim_cv_read_dirs}
16560 will recurse directories (-R switch): ${fim_cv_recursive_dirs}
16561 patch for running under screen : ${fim_cv_screen:-no}
16562 ~/.fimrc startup file support : ${have_fimrc:-no}
16563 ~/.fim_history load/save support : ${fim_cv_history:-no}
16564 autocommands enabled : ${have_autocommands:-no}
16565 mouse enabled : ${fim_cv_want_mouse}
16566 hardcoded PSF font (FBFONT=fim://) : ${have_hardcoded_font:-no}
16567 will read image files from stdin(-i): ${fim_cv_read_stdin_image:-no}
16568 <regex> header : ${ac_cv_header_regex}
16569 seek magic signatures : ${fim_cv_seek_magic:-no}
16570 man page with user configured paths : ${fim_cv_paths_in_man}
16571 framebuffer console load switchable :*${fim_cv_fb_console_switch_while_loading:-no}
16572 hardcoded font magnifying factor : ${fim_cv_want_font_magnify_factor}
16573 customizable status bar : ${fim_cv_custom_status_bar:-no}
16574 readline (-lrl) library support : ${fim_want_readline}
16575 use 'xcftopnm' for XCF files :*${fim_cv_xcftopnm}
16576 use 'xcf2pnm' for XCF files :*${fim_cv_xcf2pnm}
16577 use 'inkscape' for SVG files : ${fim_cv_inkscape}
16578 use 'fig2dev' for FIG files : ${fim_cv_xfig}
16579 use 'convert' for unrecognized files:*${fim_cv_convert}
16580 use 'dcraw' for NEF files :*${fim_cv_dcraw}
16581 use 'exiftool' for EXIF tags in JPEG:*${fim_cv_exiftool}
16582 framebuffer (built-in) support : ${fim_handle_framebuffer:-yes}
16583 SDL (sdllib) support (-o sdl) : ${fim_handle_sdl}
16584 GTK (GTK3) support (-o gtk) : ${fim_handle_gtk}
16585 ASCII art (aalib) support (-o aa) : ${fim_cv_aalib}
16586 Colour ASCII art (libcaca) support : ${fim_cv_libcaca}
16587 EXIF (JPEG) tags support (libexif) : ${fim_cv_libexif}
16588 BMP file support (builtin) : ${fim_handle_bmp:-no}
16589 JP2 (JPEG-2K) file support (JasPer) : ${fim_cv_libjasper}
16590 PCX file support (builtin) : ${fim_handle_pcx:-no}
16591 PNG file support (libpng) : ${fim_handle_png:-no}
16592 JPEG file support (libjpeg) : ${fim_handle_jpeg:-no}
16593 TIFF file support (libtiff) : ${fim_handle_tiff:-no}
16594 GIF file support (libgif) : ${fim_handle_gif:-no}
16595 QOI file support (libqoi) :*${fim_handle_qoi:-no}
16596 DJVU file support (libdjvu) :*${fim_handle_djvu:-no}
16597 PDF file support (libpoppler) :*${fim_handle_pdf:-no}
16598 PS file support (libspectre) :*${fim_handle_ps:-no}
16599 NEF/RAW file support (libufraw) :*${fim_handle_ufraw:-no}
16600 TAR/ZIP/.. file support (libarchive):*${fim_handle_archive:-no}
16601 AVIF file support (libavif) :*${fim_handle_avif:-no}
16602 WEBP file support (libwebp) :*${fim_handle_webp:-no}
16603 GraphicsMagick support (libGraphicsMagick):*${fim_handle_graphicsmagick:-no}
16604
16605 YACC : ${YACC}
16606 LEX : ${LEX}
16607 CXX : ${CXX}
16608 CXXFLAGS : ${CXXFLAGS}
16609 LIBS : ${LIBS}
16610 prefix : ${prefix}
16611
16612 If you are not satisfied with this configuration, please invoke
16613 ./configure --help=short
16614 for a complete list of configure options and variables specific to Fim.
16615 When you are satisfied, run 'make' to build Fim and its documentation.
16616 To install the program and its documentation, run 'make install' if you are root,
16617 or run 'su -c '\"make install\"' if you are not root.
16618 RTFM: README, man fim, man fimrc. Enjoy!
16619 " >&5
16620 $as_echo "$as_me:
16621 Fim v${VERSION} has been configured as follows (features marked with * are not recommended: either unfinished or broken: please do NOT use them when building for a distro):
16622
16623 default minimal key mapping : ${have_default_mapping:-no}
16624 default minimal key bindings : ${have_default_bindings:-no}
16625 default configuration file builtin : ${have_default_config:-no}
16626 resize optimizations : ${fim_cv_resize_optimizations:-no}
16627 system,popen calls wrappers enabled : ${fim_system_calls:-yes}
16628 will allow push of directories : ${fim_cv_read_dirs}
16629 will recurse directories (-R switch): ${fim_cv_recursive_dirs}
16630 patch for running under screen : ${fim_cv_screen:-no}
16631 ~/.fimrc startup file support : ${have_fimrc:-no}
16632 ~/.fim_history load/save support : ${fim_cv_history:-no}
16633 autocommands enabled : ${have_autocommands:-no}
16634 mouse enabled : ${fim_cv_want_mouse}
16635 hardcoded PSF font (FBFONT=fim://) : ${have_hardcoded_font:-no}
16636 will read image files from stdin(-i): ${fim_cv_read_stdin_image:-no}
16637 <regex> header : ${ac_cv_header_regex}
16638 seek magic signatures : ${fim_cv_seek_magic:-no}
16639 man page with user configured paths : ${fim_cv_paths_in_man}
16640 framebuffer console load switchable :*${fim_cv_fb_console_switch_while_loading:-no}
16641 hardcoded font magnifying factor : ${fim_cv_want_font_magnify_factor}
16642 customizable status bar : ${fim_cv_custom_status_bar:-no}
16643 readline (-lrl) library support : ${fim_want_readline}
16644 use 'xcftopnm' for XCF files :*${fim_cv_xcftopnm}
16645 use 'xcf2pnm' for XCF files :*${fim_cv_xcf2pnm}
16646 use 'inkscape' for SVG files : ${fim_cv_inkscape}
16647 use 'fig2dev' for FIG files : ${fim_cv_xfig}
16648 use 'convert' for unrecognized files:*${fim_cv_convert}
16649 use 'dcraw' for NEF files :*${fim_cv_dcraw}
16650 use 'exiftool' for EXIF tags in JPEG:*${fim_cv_exiftool}
16651 framebuffer (built-in) support : ${fim_handle_framebuffer:-yes}
16652 SDL (sdllib) support (-o sdl) : ${fim_handle_sdl}
16653 GTK (GTK3) support (-o gtk) : ${fim_handle_gtk}
16654 ASCII art (aalib) support (-o aa) : ${fim_cv_aalib}
16655 Colour ASCII art (libcaca) support : ${fim_cv_libcaca}
16656 EXIF (JPEG) tags support (libexif) : ${fim_cv_libexif}
16657 BMP file support (builtin) : ${fim_handle_bmp:-no}
16658 JP2 (JPEG-2K) file support (JasPer) : ${fim_cv_libjasper}
16659 PCX file support (builtin) : ${fim_handle_pcx:-no}
16660 PNG file support (libpng) : ${fim_handle_png:-no}
16661 JPEG file support (libjpeg) : ${fim_handle_jpeg:-no}
16662 TIFF file support (libtiff) : ${fim_handle_tiff:-no}
16663 GIF file support (libgif) : ${fim_handle_gif:-no}
16664 QOI file support (libqoi) :*${fim_handle_qoi:-no}
16665 DJVU file support (libdjvu) :*${fim_handle_djvu:-no}
16666 PDF file support (libpoppler) :*${fim_handle_pdf:-no}
16667 PS file support (libspectre) :*${fim_handle_ps:-no}
16668 NEF/RAW file support (libufraw) :*${fim_handle_ufraw:-no}
16669 TAR/ZIP/.. file support (libarchive):*${fim_handle_archive:-no}
16670 AVIF file support (libavif) :*${fim_handle_avif:-no}
16671 WEBP file support (libwebp) :*${fim_handle_webp:-no}
16672 GraphicsMagick support (libGraphicsMagick):*${fim_handle_graphicsmagick:-no}
16673
16674 YACC : ${YACC}
16675 LEX : ${LEX}
16676 CXX : ${CXX}
16677 CXXFLAGS : ${CXXFLAGS}
16678 LIBS : ${LIBS}
16679 prefix : ${prefix}
16680
16681 If you are not satisfied with this configuration, please invoke
16682 ./configure --help=short
16683 for a complete list of configure options and variables specific to Fim.
16684 When you are satisfied, run 'make' to build Fim and its documentation.
16685 To install the program and its documentation, run 'make install' if you are root,
16686 or run 'su -c '\"make install\"' if you are not root.
16687 RTFM: README, man fim, man fimrc. Enjoy!
16688 " >&6;}
16689 if test x$ac_cv_header_FlexLexer_h != xyes; then
16690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
16691 ********************************************************************
16692 It seems you don't have a working FlexLexer.h !
16693 This is NOT what you want: Fim will build, but not work as intended!
16694 ********************************************************************
16695 " >&5
16696 $as_echo "$as_me: WARNING:
16697 ********************************************************************
16698 It seems you don't have a working FlexLexer.h !
16699 This is NOT what you want: Fim will build, but not work as intended!
16700 ********************************************************************
16701 " >&2;}
16702 fi