Debian Codegraph @

configure

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