Add packaging files for Tizen
[profile/ivi/yasm.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for yasm 1.2.0.
4 #
5 # Report bugs to <bug-yasm@tortall.net>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96   *[\\/]* ) as_myself=$0 ;;
97   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100   IFS=$as_save_IFS
101   test -z "$as_dir" && as_dir=.
102     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103   done
104 IFS=$as_save_IFS
105
106      ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111   as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115   exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there.  '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141   emulate sh
142   NULLCMD=:
143   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144   # is contrary to our usage.  Disable this feature.
145   alias -g '\${1+\"\$@\"}'='\"\$@\"'
146   setopt NO_GLOB_SUBST
147 else
148   case \`(set -o) 2>/dev/null\` in #(
149   *posix*) :
150     set -o posix ;; #(
151   *) :
152      ;;
153 esac
154 fi
155 "
156   as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170   exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178   if (eval "$as_required") 2>/dev/null; then :
179   as_have_required=yes
180 else
181   as_have_required=no
182 fi
183   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185 else
186   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 as_found=false
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189 do
190   IFS=$as_save_IFS
191   test -z "$as_dir" && as_dir=.
192   as_found=:
193   case $as_dir in #(
194          /*)
195            for as_base in sh bash ksh sh5; do
196              # Try only shells that exist, to save several forks.
197              as_shell=$as_dir/$as_base
198              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200   CONFIG_SHELL=$as_shell as_have_required=yes
201                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202   break 2
203 fi
204 fi
205            done;;
206        esac
207   as_found=false
208 done
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211   CONFIG_SHELL=$SHELL as_have_required=yes
212 fi; }
213 IFS=$as_save_IFS
214
215
216       if test "x$CONFIG_SHELL" != x; then :
217   # We cannot yet assume a decent shell, so we have to provide a
218         # neutralization value for shells without unset; and this also
219         # works around shells that cannot unset nonexistent variables.
220         # Preserve -v and -x to the replacement shell.
221         BASH_ENV=/dev/null
222         ENV=/dev/null
223         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224         export CONFIG_SHELL
225         case $- in # ((((
226           *v*x* | *x*v* ) as_opts=-vx ;;
227           *v* ) as_opts=-v ;;
228           *x* ) as_opts=-x ;;
229           * ) as_opts= ;;
230         esac
231         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 fi
233
234     if test x$as_have_required = xno; then :
235   $as_echo "$0: This script requires a shell more modern than all"
236   $as_echo "$0: the shells that I found on your system."
237   if test x${ZSH_VERSION+set} = xset ; then
238     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240   else
241     $as_echo "$0: Please tell bug-autoconf@gnu.org and
242 $0: bug-yasm@tortall.net about your system, including any
243 $0: error possibly output before this message. Then install
244 $0: a modern shell, or manually run the script under such a
245 $0: shell if you do have one."
246   fi
247   exit 1
248 fi
249 fi
250 fi
251 SHELL=${CONFIG_SHELL-/bin/sh}
252 export SHELL
253 # Unset more variables known to interfere with behavior of common tools.
254 CLICOLOR_FORCE= GREP_OPTIONS=
255 unset CLICOLOR_FORCE GREP_OPTIONS
256
257 ## --------------------- ##
258 ## M4sh Shell Functions. ##
259 ## --------------------- ##
260 # as_fn_unset VAR
261 # ---------------
262 # Portably unset VAR.
263 as_fn_unset ()
264 {
265   { eval $1=; unset $1;}
266 }
267 as_unset=as_fn_unset
268
269 # as_fn_set_status STATUS
270 # -----------------------
271 # Set $? to STATUS, without forking.
272 as_fn_set_status ()
273 {
274   return $1
275 } # as_fn_set_status
276
277 # as_fn_exit STATUS
278 # -----------------
279 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
280 as_fn_exit ()
281 {
282   set +e
283   as_fn_set_status $1
284   exit $1
285 } # as_fn_exit
286
287 # as_fn_mkdir_p
288 # -------------
289 # Create "$as_dir" as a directory, including parents if necessary.
290 as_fn_mkdir_p ()
291 {
292
293   case $as_dir in #(
294   -*) as_dir=./$as_dir;;
295   esac
296   test -d "$as_dir" || eval $as_mkdir_p || {
297     as_dirs=
298     while :; do
299       case $as_dir in #(
300       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
301       *) as_qdir=$as_dir;;
302       esac
303       as_dirs="'$as_qdir' $as_dirs"
304       as_dir=`$as_dirname -- "$as_dir" ||
305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306          X"$as_dir" : 'X\(//\)[^/]' \| \
307          X"$as_dir" : 'X\(//\)$' \| \
308          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309 $as_echo X"$as_dir" |
310     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
311             s//\1/
312             q
313           }
314           /^X\(\/\/\)[^/].*/{
315             s//\1/
316             q
317           }
318           /^X\(\/\/\)$/{
319             s//\1/
320             q
321           }
322           /^X\(\/\).*/{
323             s//\1/
324             q
325           }
326           s/.*/./; q'`
327       test -d "$as_dir" && break
328     done
329     test -z "$as_dirs" || eval "mkdir $as_dirs"
330   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
331
332
333 } # as_fn_mkdir_p
334 # as_fn_append VAR VALUE
335 # ----------------------
336 # Append the text in VALUE to the end of the definition contained in VAR. Take
337 # advantage of any shell optimizations that allow amortized linear growth over
338 # repeated appends, instead of the typical quadratic growth present in naive
339 # implementations.
340 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341   eval 'as_fn_append ()
342   {
343     eval $1+=\$2
344   }'
345 else
346   as_fn_append ()
347   {
348     eval $1=\$$1\$2
349   }
350 fi # as_fn_append
351
352 # as_fn_arith ARG...
353 # ------------------
354 # Perform arithmetic evaluation on the ARGs, and store the result in the
355 # global $as_val. Take advantage of shells that can avoid forks. The arguments
356 # must be portable across $(()) and expr.
357 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
358   eval 'as_fn_arith ()
359   {
360     as_val=$(( $* ))
361   }'
362 else
363   as_fn_arith ()
364   {
365     as_val=`expr "$@" || test $? -eq 1`
366   }
367 fi # as_fn_arith
368
369
370 # as_fn_error STATUS ERROR [LINENO LOG_FD]
371 # ----------------------------------------
372 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374 # script with STATUS, using 1 if that was 0.
375 as_fn_error ()
376 {
377   as_status=$1; test $as_status -eq 0 && as_status=1
378   if test "$4"; then
379     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
381   fi
382   $as_echo "$as_me: error: $2" >&2
383   as_fn_exit $as_status
384 } # as_fn_error
385
386 if expr a : '\(a\)' >/dev/null 2>&1 &&
387    test "X`expr 00001 : '.*\(...\)'`" = X001; then
388   as_expr=expr
389 else
390   as_expr=false
391 fi
392
393 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394   as_basename=basename
395 else
396   as_basename=false
397 fi
398
399 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400   as_dirname=dirname
401 else
402   as_dirname=false
403 fi
404
405 as_me=`$as_basename -- "$0" ||
406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407          X"$0" : 'X\(//\)$' \| \
408          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
409 $as_echo X/"$0" |
410     sed '/^.*\/\([^/][^/]*\)\/*$/{
411             s//\1/
412             q
413           }
414           /^X\/\(\/\/\)$/{
415             s//\1/
416             q
417           }
418           /^X\/\(\/\).*/{
419             s//\1/
420             q
421           }
422           s/.*/./; q'`
423
424 # Avoid depending upon Character Ranges.
425 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428 as_cr_digits='0123456789'
429 as_cr_alnum=$as_cr_Letters$as_cr_digits
430
431
432   as_lineno_1=$LINENO as_lineno_1a=$LINENO
433   as_lineno_2=$LINENO as_lineno_2a=$LINENO
434   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
437   sed -n '
438     p
439     /[$]LINENO/=
440   ' <$as_myself |
441     sed '
442       s/[$]LINENO.*/&-/
443       t lineno
444       b
445       :lineno
446       N
447       :loop
448       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449       t loop
450       s/-\n.*//
451     ' >$as_me.lineno &&
452   chmod +x "$as_me.lineno" ||
453     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
454
455   # Don't try to exec as it changes $[0], causing all sort of problems
456   # (the dirname of $[0] is not the place where we might find the
457   # original and so on.  Autoconf is especially sensitive to this).
458   . "./$as_me.lineno"
459   # Exit status is that of the last command.
460   exit
461 }
462
463 ECHO_C= ECHO_N= ECHO_T=
464 case `echo -n x` in #(((((
465 -n*)
466   case `echo 'xy\c'` in
467   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
468   xy)  ECHO_C='\c';;
469   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
470        ECHO_T=' ';;
471   esac;;
472 *)
473   ECHO_N='-n';;
474 esac
475
476 rm -f conf$$ conf$$.exe conf$$.file
477 if test -d conf$$.dir; then
478   rm -f conf$$.dir/conf$$.file
479 else
480   rm -f conf$$.dir
481   mkdir conf$$.dir 2>/dev/null
482 fi
483 if (echo >conf$$.file) 2>/dev/null; then
484   if ln -s conf$$.file conf$$ 2>/dev/null; then
485     as_ln_s='ln -s'
486     # ... but there are two gotchas:
487     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489     # In both cases, we have to default to `cp -p'.
490     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
491       as_ln_s='cp -p'
492   elif ln conf$$.file conf$$ 2>/dev/null; then
493     as_ln_s=ln
494   else
495     as_ln_s='cp -p'
496   fi
497 else
498   as_ln_s='cp -p'
499 fi
500 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501 rmdir conf$$.dir 2>/dev/null
502
503 if mkdir -p . 2>/dev/null; then
504   as_mkdir_p='mkdir -p "$as_dir"'
505 else
506   test -d ./-p && rmdir ./-p
507   as_mkdir_p=false
508 fi
509
510 if test -x / >/dev/null 2>&1; then
511   as_test_x='test -x'
512 else
513   if ls -dL / >/dev/null 2>&1; then
514     as_ls_L_option=L
515   else
516     as_ls_L_option=
517   fi
518   as_test_x='
519     eval sh -c '\''
520       if test -d "$1"; then
521         test -d "$1/.";
522       else
523         case $1 in #(
524         -*)set "./$1";;
525         esac;
526         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527         ???[sx]*):;;*)false;;esac;fi
528     '\'' sh
529   '
530 fi
531 as_executable_p=$as_test_x
532
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
540 test -n "$DJDIR" || exec 7<&0 </dev/null
541 exec 6>&1
542
543 # Name of the host.
544 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
548 #
549 # Initializations.
550 #
551 ac_default_prefix=/usr/local
552 ac_clean_files=
553 ac_config_libobj_dir=.
554 LIBOBJS=
555 cross_compiling=no
556 subdirs=
557 MFLAGS=
558 MAKEFLAGS=
559
560 # Identity of this package.
561 PACKAGE_NAME='yasm'
562 PACKAGE_TARNAME='yasm'
563 PACKAGE_VERSION='1.2.0'
564 PACKAGE_STRING='yasm 1.2.0'
565 PACKAGE_BUGREPORT='bug-yasm@tortall.net'
566 PACKAGE_URL=''
567
568 # Factoring default headers for most tests.
569 ac_includes_default="\
570 #include <stdio.h>
571 #ifdef HAVE_SYS_TYPES_H
572 # include <sys/types.h>
573 #endif
574 #ifdef HAVE_SYS_STAT_H
575 # include <sys/stat.h>
576 #endif
577 #ifdef STDC_HEADERS
578 # include <stdlib.h>
579 # include <stddef.h>
580 #else
581 # ifdef HAVE_STDLIB_H
582 #  include <stdlib.h>
583 # endif
584 #endif
585 #ifdef HAVE_STRING_H
586 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
587 #  include <memory.h>
588 # endif
589 # include <string.h>
590 #endif
591 #ifdef HAVE_STRINGS_H
592 # include <strings.h>
593 #endif
594 #ifdef HAVE_INTTYPES_H
595 # include <inttypes.h>
596 #endif
597 #ifdef HAVE_STDINT_H
598 # include <stdint.h>
599 #endif
600 #ifdef HAVE_UNISTD_H
601 # include <unistd.h>
602 #endif"
603
604 gt_needs=
605 ac_subst_vars='am__EXEEXT_FALSE
606 am__EXEEXT_TRUE
607 LTLIBOBJS
608 LIBOBJS
609 HAVE_PYTHON_BINDINGS_FALSE
610 HAVE_PYTHON_BINDINGS_TRUE
611 HAVE_PYTHON_FALSE
612 HAVE_PYTHON_TRUE
613 PYTHON_INCLUDES
614 pkgpyexecdir
615 pyexecdir
616 pkgpythondir
617 pythondir
618 PYTHON_PLATFORM
619 PYTHON_EXEC_PREFIX
620 PYTHON_PREFIX
621 PYTHON_VERSION
622 PYTHON
623 CPP_FOR_HOST
624 CCLD_FOR_BUILD
625 CC_FOR_BUILD
626 MORE_CFLAGS
627 GCC
628 ARCH
629 POSUB
630 LTLIBINTL
631 LIBINTL
632 INTLLIBS
633 LTLIBICONV
634 LIBICONV
635 INTL_MACOSX_LIBS
636 host_os
637 host_vendor
638 host_cpu
639 host
640 build_os
641 build_vendor
642 build_cpu
643 build
644 XGETTEXT_EXTRA_OPTIONS
645 MSGMERGE
646 XGETTEXT_015
647 XGETTEXT
648 GMSGFMT_015
649 MSGFMT_015
650 GMSGFMT
651 MSGFMT
652 GETTEXT_MACRO_VERSION
653 USE_NLS
654 EGREP
655 GREP
656 BUILD_MAN_FALSE
657 BUILD_MAN_TRUE
658 XMLTO
659 RANLIB
660 ac_ct_AR
661 AR
662 LN_S
663 CPP
664 am__fastdepCC_FALSE
665 am__fastdepCC_TRUE
666 CCDEPMODE
667 AMDEPBACKSLASH
668 AMDEP_FALSE
669 AMDEP_TRUE
670 am__quote
671 am__include
672 DEPDIR
673 OBJEXT
674 EXEEXT
675 ac_ct_CC
676 CPPFLAGS
677 LDFLAGS
678 CFLAGS
679 CC
680 MAINT
681 MAINTAINER_MODE_FALSE
682 MAINTAINER_MODE_TRUE
683 am__untar
684 am__tar
685 AMTAR
686 am__leading_dot
687 SET_MAKE
688 AWK
689 mkdir_p
690 MKDIR_P
691 INSTALL_STRIP_PROGRAM
692 STRIP
693 install_sh
694 MAKEINFO
695 AUTOHEADER
696 AUTOMAKE
697 AUTOCONF
698 ACLOCAL
699 VERSION
700 PACKAGE
701 CYGPATH_W
702 am__isrc
703 INSTALL_DATA
704 INSTALL_SCRIPT
705 INSTALL_PROGRAM
706 target_alias
707 host_alias
708 build_alias
709 LIBS
710 ECHO_T
711 ECHO_N
712 ECHO_C
713 DEFS
714 mandir
715 localedir
716 libdir
717 psdir
718 pdfdir
719 dvidir
720 htmldir
721 infodir
722 docdir
723 oldincludedir
724 includedir
725 localstatedir
726 sharedstatedir
727 sysconfdir
728 datadir
729 datarootdir
730 libexecdir
731 sbindir
732 bindir
733 program_transform_name
734 prefix
735 exec_prefix
736 PACKAGE_URL
737 PACKAGE_BUGREPORT
738 PACKAGE_STRING
739 PACKAGE_VERSION
740 PACKAGE_TARNAME
741 PACKAGE_NAME
742 PATH_SEPARATOR
743 SHELL'
744 ac_subst_files=''
745 ac_user_opts='
746 enable_option_checking
747 enable_maintainer_mode
748 enable_debug
749 enable_warnerror
750 enable_profiling
751 enable_gcov
752 enable_python
753 enable_python_bindings
754 enable_dependency_tracking
755 with_dmalloc
756 enable_nls
757 with_gnu_ld
758 enable_rpath
759 with_libiconv_prefix
760 with_libintl_prefix
761 '
762       ac_precious_vars='build_alias
763 host_alias
764 target_alias
765 CC
766 CFLAGS
767 LDFLAGS
768 LIBS
769 CPPFLAGS
770 CPP
771 CC_FOR_BUILD
772 CCLD_FOR_BUILD
773 CPP_FOR_HOST'
774
775
776 # Initialize some variables set by options.
777 ac_init_help=
778 ac_init_version=false
779 ac_unrecognized_opts=
780 ac_unrecognized_sep=
781 # The variables have the same names as the options, with
782 # dashes changed to underlines.
783 cache_file=/dev/null
784 exec_prefix=NONE
785 no_create=
786 no_recursion=
787 prefix=NONE
788 program_prefix=NONE
789 program_suffix=NONE
790 program_transform_name=s,x,x,
791 silent=
792 site=
793 srcdir=
794 verbose=
795 x_includes=NONE
796 x_libraries=NONE
797
798 # Installation directory options.
799 # These are left unexpanded so users can "make install exec_prefix=/foo"
800 # and all the variables that are supposed to be based on exec_prefix
801 # by default will actually change.
802 # Use braces instead of parens because sh, perl, etc. also accept them.
803 # (The list follows the same order as the GNU Coding Standards.)
804 bindir='${exec_prefix}/bin'
805 sbindir='${exec_prefix}/sbin'
806 libexecdir='${exec_prefix}/libexec'
807 datarootdir='${prefix}/share'
808 datadir='${datarootdir}'
809 sysconfdir='${prefix}/etc'
810 sharedstatedir='${prefix}/com'
811 localstatedir='${prefix}/var'
812 includedir='${prefix}/include'
813 oldincludedir='/usr/include'
814 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
815 infodir='${datarootdir}/info'
816 htmldir='${docdir}'
817 dvidir='${docdir}'
818 pdfdir='${docdir}'
819 psdir='${docdir}'
820 libdir='${exec_prefix}/lib'
821 localedir='${datarootdir}/locale'
822 mandir='${datarootdir}/man'
823
824 ac_prev=
825 ac_dashdash=
826 for ac_option
827 do
828   # If the previous option needs an argument, assign it.
829   if test -n "$ac_prev"; then
830     eval $ac_prev=\$ac_option
831     ac_prev=
832     continue
833   fi
834
835   case $ac_option in
836   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
837   *=)   ac_optarg= ;;
838   *)    ac_optarg=yes ;;
839   esac
840
841   # Accept the important Cygnus configure options, so we can diagnose typos.
842
843   case $ac_dashdash$ac_option in
844   --)
845     ac_dashdash=yes ;;
846
847   -bindir | --bindir | --bindi | --bind | --bin | --bi)
848     ac_prev=bindir ;;
849   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
850     bindir=$ac_optarg ;;
851
852   -build | --build | --buil | --bui | --bu)
853     ac_prev=build_alias ;;
854   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
855     build_alias=$ac_optarg ;;
856
857   -cache-file | --cache-file | --cache-fil | --cache-fi \
858   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
859     ac_prev=cache_file ;;
860   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
861   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
862     cache_file=$ac_optarg ;;
863
864   --config-cache | -C)
865     cache_file=config.cache ;;
866
867   -datadir | --datadir | --datadi | --datad)
868     ac_prev=datadir ;;
869   -datadir=* | --datadir=* | --datadi=* | --datad=*)
870     datadir=$ac_optarg ;;
871
872   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
873   | --dataroo | --dataro | --datar)
874     ac_prev=datarootdir ;;
875   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
876   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
877     datarootdir=$ac_optarg ;;
878
879   -disable-* | --disable-*)
880     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
881     # Reject names that are not valid shell variable names.
882     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
883       as_fn_error $? "invalid feature name: $ac_useropt"
884     ac_useropt_orig=$ac_useropt
885     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
886     case $ac_user_opts in
887       *"
888 "enable_$ac_useropt"
889 "*) ;;
890       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
891          ac_unrecognized_sep=', ';;
892     esac
893     eval enable_$ac_useropt=no ;;
894
895   -docdir | --docdir | --docdi | --doc | --do)
896     ac_prev=docdir ;;
897   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
898     docdir=$ac_optarg ;;
899
900   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
901     ac_prev=dvidir ;;
902   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
903     dvidir=$ac_optarg ;;
904
905   -enable-* | --enable-*)
906     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
907     # Reject names that are not valid shell variable names.
908     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
909       as_fn_error $? "invalid feature name: $ac_useropt"
910     ac_useropt_orig=$ac_useropt
911     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
912     case $ac_user_opts in
913       *"
914 "enable_$ac_useropt"
915 "*) ;;
916       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
917          ac_unrecognized_sep=', ';;
918     esac
919     eval enable_$ac_useropt=\$ac_optarg ;;
920
921   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
922   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
923   | --exec | --exe | --ex)
924     ac_prev=exec_prefix ;;
925   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
926   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
927   | --exec=* | --exe=* | --ex=*)
928     exec_prefix=$ac_optarg ;;
929
930   -gas | --gas | --ga | --g)
931     # Obsolete; use --with-gas.
932     with_gas=yes ;;
933
934   -help | --help | --hel | --he | -h)
935     ac_init_help=long ;;
936   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
937     ac_init_help=recursive ;;
938   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
939     ac_init_help=short ;;
940
941   -host | --host | --hos | --ho)
942     ac_prev=host_alias ;;
943   -host=* | --host=* | --hos=* | --ho=*)
944     host_alias=$ac_optarg ;;
945
946   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
947     ac_prev=htmldir ;;
948   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
949   | --ht=*)
950     htmldir=$ac_optarg ;;
951
952   -includedir | --includedir | --includedi | --included | --include \
953   | --includ | --inclu | --incl | --inc)
954     ac_prev=includedir ;;
955   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
956   | --includ=* | --inclu=* | --incl=* | --inc=*)
957     includedir=$ac_optarg ;;
958
959   -infodir | --infodir | --infodi | --infod | --info | --inf)
960     ac_prev=infodir ;;
961   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
962     infodir=$ac_optarg ;;
963
964   -libdir | --libdir | --libdi | --libd)
965     ac_prev=libdir ;;
966   -libdir=* | --libdir=* | --libdi=* | --libd=*)
967     libdir=$ac_optarg ;;
968
969   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
970   | --libexe | --libex | --libe)
971     ac_prev=libexecdir ;;
972   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
973   | --libexe=* | --libex=* | --libe=*)
974     libexecdir=$ac_optarg ;;
975
976   -localedir | --localedir | --localedi | --localed | --locale)
977     ac_prev=localedir ;;
978   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
979     localedir=$ac_optarg ;;
980
981   -localstatedir | --localstatedir | --localstatedi | --localstated \
982   | --localstate | --localstat | --localsta | --localst | --locals)
983     ac_prev=localstatedir ;;
984   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
985   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
986     localstatedir=$ac_optarg ;;
987
988   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
989     ac_prev=mandir ;;
990   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
991     mandir=$ac_optarg ;;
992
993   -nfp | --nfp | --nf)
994     # Obsolete; use --without-fp.
995     with_fp=no ;;
996
997   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
998   | --no-cr | --no-c | -n)
999     no_create=yes ;;
1000
1001   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1002   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1003     no_recursion=yes ;;
1004
1005   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1006   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1007   | --oldin | --oldi | --old | --ol | --o)
1008     ac_prev=oldincludedir ;;
1009   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1010   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1011   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1012     oldincludedir=$ac_optarg ;;
1013
1014   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1015     ac_prev=prefix ;;
1016   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1017     prefix=$ac_optarg ;;
1018
1019   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1020   | --program-pre | --program-pr | --program-p)
1021     ac_prev=program_prefix ;;
1022   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1023   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1024     program_prefix=$ac_optarg ;;
1025
1026   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1027   | --program-suf | --program-su | --program-s)
1028     ac_prev=program_suffix ;;
1029   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1030   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1031     program_suffix=$ac_optarg ;;
1032
1033   -program-transform-name | --program-transform-name \
1034   | --program-transform-nam | --program-transform-na \
1035   | --program-transform-n | --program-transform- \
1036   | --program-transform | --program-transfor \
1037   | --program-transfo | --program-transf \
1038   | --program-trans | --program-tran \
1039   | --progr-tra | --program-tr | --program-t)
1040     ac_prev=program_transform_name ;;
1041   -program-transform-name=* | --program-transform-name=* \
1042   | --program-transform-nam=* | --program-transform-na=* \
1043   | --program-transform-n=* | --program-transform-=* \
1044   | --program-transform=* | --program-transfor=* \
1045   | --program-transfo=* | --program-transf=* \
1046   | --program-trans=* | --program-tran=* \
1047   | --progr-tra=* | --program-tr=* | --program-t=*)
1048     program_transform_name=$ac_optarg ;;
1049
1050   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1051     ac_prev=pdfdir ;;
1052   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1053     pdfdir=$ac_optarg ;;
1054
1055   -psdir | --psdir | --psdi | --psd | --ps)
1056     ac_prev=psdir ;;
1057   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1058     psdir=$ac_optarg ;;
1059
1060   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1061   | -silent | --silent | --silen | --sile | --sil)
1062     silent=yes ;;
1063
1064   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1065     ac_prev=sbindir ;;
1066   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1067   | --sbi=* | --sb=*)
1068     sbindir=$ac_optarg ;;
1069
1070   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1071   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1072   | --sharedst | --shareds | --shared | --share | --shar \
1073   | --sha | --sh)
1074     ac_prev=sharedstatedir ;;
1075   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1076   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1077   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1078   | --sha=* | --sh=*)
1079     sharedstatedir=$ac_optarg ;;
1080
1081   -site | --site | --sit)
1082     ac_prev=site ;;
1083   -site=* | --site=* | --sit=*)
1084     site=$ac_optarg ;;
1085
1086   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1087     ac_prev=srcdir ;;
1088   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1089     srcdir=$ac_optarg ;;
1090
1091   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1092   | --syscon | --sysco | --sysc | --sys | --sy)
1093     ac_prev=sysconfdir ;;
1094   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1095   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1096     sysconfdir=$ac_optarg ;;
1097
1098   -target | --target | --targe | --targ | --tar | --ta | --t)
1099     ac_prev=target_alias ;;
1100   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1101     target_alias=$ac_optarg ;;
1102
1103   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1104     verbose=yes ;;
1105
1106   -version | --version | --versio | --versi | --vers | -V)
1107     ac_init_version=: ;;
1108
1109   -with-* | --with-*)
1110     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1111     # Reject names that are not valid shell variable names.
1112     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1113       as_fn_error $? "invalid package name: $ac_useropt"
1114     ac_useropt_orig=$ac_useropt
1115     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1116     case $ac_user_opts in
1117       *"
1118 "with_$ac_useropt"
1119 "*) ;;
1120       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1121          ac_unrecognized_sep=', ';;
1122     esac
1123     eval with_$ac_useropt=\$ac_optarg ;;
1124
1125   -without-* | --without-*)
1126     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1127     # Reject names that are not valid shell variable names.
1128     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1129       as_fn_error $? "invalid package name: $ac_useropt"
1130     ac_useropt_orig=$ac_useropt
1131     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1132     case $ac_user_opts in
1133       *"
1134 "with_$ac_useropt"
1135 "*) ;;
1136       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1137          ac_unrecognized_sep=', ';;
1138     esac
1139     eval with_$ac_useropt=no ;;
1140
1141   --x)
1142     # Obsolete; use --with-x.
1143     with_x=yes ;;
1144
1145   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1146   | --x-incl | --x-inc | --x-in | --x-i)
1147     ac_prev=x_includes ;;
1148   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1149   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1150     x_includes=$ac_optarg ;;
1151
1152   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1153   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1154     ac_prev=x_libraries ;;
1155   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1156   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1157     x_libraries=$ac_optarg ;;
1158
1159   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1160 Try \`$0 --help' for more information"
1161     ;;
1162
1163   *=*)
1164     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1165     # Reject names that are not valid shell variable names.
1166     case $ac_envvar in #(
1167       '' | [0-9]* | *[!_$as_cr_alnum]* )
1168       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1169     esac
1170     eval $ac_envvar=\$ac_optarg
1171     export $ac_envvar ;;
1172
1173   *)
1174     # FIXME: should be removed in autoconf 3.0.
1175     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1176     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1177       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1178     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1179     ;;
1180
1181   esac
1182 done
1183
1184 if test -n "$ac_prev"; then
1185   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1186   as_fn_error $? "missing argument to $ac_option"
1187 fi
1188
1189 if test -n "$ac_unrecognized_opts"; then
1190   case $enable_option_checking in
1191     no) ;;
1192     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1193     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1194   esac
1195 fi
1196
1197 # Check all directory arguments for consistency.
1198 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1199                 datadir sysconfdir sharedstatedir localstatedir includedir \
1200                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1201                 libdir localedir mandir
1202 do
1203   eval ac_val=\$$ac_var
1204   # Remove trailing slashes.
1205   case $ac_val in
1206     */ )
1207       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1208       eval $ac_var=\$ac_val;;
1209   esac
1210   # Be sure to have absolute directory names.
1211   case $ac_val in
1212     [\\/$]* | ?:[\\/]* )  continue;;
1213     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1214   esac
1215   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1216 done
1217
1218 # There might be people who depend on the old broken behavior: `$host'
1219 # used to hold the argument of --host etc.
1220 # FIXME: To remove some day.
1221 build=$build_alias
1222 host=$host_alias
1223 target=$target_alias
1224
1225 # FIXME: To remove some day.
1226 if test "x$host_alias" != x; then
1227   if test "x$build_alias" = x; then
1228     cross_compiling=maybe
1229     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1230     If a cross compiler is detected then cross compile mode will be used" >&2
1231   elif test "x$build_alias" != "x$host_alias"; then
1232     cross_compiling=yes
1233   fi
1234 fi
1235
1236 ac_tool_prefix=
1237 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1238
1239 test "$silent" = yes && exec 6>/dev/null
1240
1241
1242 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1243 ac_ls_di=`ls -di .` &&
1244 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1245   as_fn_error $? "working directory cannot be determined"
1246 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1247   as_fn_error $? "pwd does not report name of working directory"
1248
1249
1250 # Find the source files, if location was not specified.
1251 if test -z "$srcdir"; then
1252   ac_srcdir_defaulted=yes
1253   # Try the directory containing this script, then the parent directory.
1254   ac_confdir=`$as_dirname -- "$as_myself" ||
1255 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1256          X"$as_myself" : 'X\(//\)[^/]' \| \
1257          X"$as_myself" : 'X\(//\)$' \| \
1258          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1259 $as_echo X"$as_myself" |
1260     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1261             s//\1/
1262             q
1263           }
1264           /^X\(\/\/\)[^/].*/{
1265             s//\1/
1266             q
1267           }
1268           /^X\(\/\/\)$/{
1269             s//\1/
1270             q
1271           }
1272           /^X\(\/\).*/{
1273             s//\1/
1274             q
1275           }
1276           s/.*/./; q'`
1277   srcdir=$ac_confdir
1278   if test ! -r "$srcdir/$ac_unique_file"; then
1279     srcdir=..
1280   fi
1281 else
1282   ac_srcdir_defaulted=no
1283 fi
1284 if test ! -r "$srcdir/$ac_unique_file"; then
1285   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1286   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1287 fi
1288 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1289 ac_abs_confdir=`(
1290         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1291         pwd)`
1292 # When building in place, set srcdir=.
1293 if test "$ac_abs_confdir" = "$ac_pwd"; then
1294   srcdir=.
1295 fi
1296 # Remove unnecessary trailing slashes from srcdir.
1297 # Double slashes in file names in object file debugging info
1298 # mess up M-x gdb in Emacs.
1299 case $srcdir in
1300 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1301 esac
1302 for ac_var in $ac_precious_vars; do
1303   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1304   eval ac_env_${ac_var}_value=\$${ac_var}
1305   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1306   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1307 done
1308
1309 #
1310 # Report the --help message.
1311 #
1312 if test "$ac_init_help" = "long"; then
1313   # Omit some internal or obsolete options to make the list less imposing.
1314   # This message is too long to be a string in the A/UX 3.1 sh.
1315   cat <<_ACEOF
1316 \`configure' configures yasm 1.2.0 to adapt to many kinds of systems.
1317
1318 Usage: $0 [OPTION]... [VAR=VALUE]...
1319
1320 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1321 VAR=VALUE.  See below for descriptions of some of the useful variables.
1322
1323 Defaults for the options are specified in brackets.
1324
1325 Configuration:
1326   -h, --help              display this help and exit
1327       --help=short        display options specific to this package
1328       --help=recursive    display the short help of all the included packages
1329   -V, --version           display version information and exit
1330   -q, --quiet, --silent   do not print \`checking ...' messages
1331       --cache-file=FILE   cache test results in FILE [disabled]
1332   -C, --config-cache      alias for \`--cache-file=config.cache'
1333   -n, --no-create         do not create output files
1334       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1335
1336 Installation directories:
1337   --prefix=PREFIX         install architecture-independent files in PREFIX
1338                           [$ac_default_prefix]
1339   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1340                           [PREFIX]
1341
1342 By default, \`make install' will install all the files in
1343 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1344 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1345 for instance \`--prefix=\$HOME'.
1346
1347 For better control, use the options below.
1348
1349 Fine tuning of the installation directories:
1350   --bindir=DIR            user executables [EPREFIX/bin]
1351   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1352   --libexecdir=DIR        program executables [EPREFIX/libexec]
1353   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1354   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1355   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1356   --libdir=DIR            object code libraries [EPREFIX/lib]
1357   --includedir=DIR        C header files [PREFIX/include]
1358   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1359   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1360   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1361   --infodir=DIR           info documentation [DATAROOTDIR/info]
1362   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1363   --mandir=DIR            man documentation [DATAROOTDIR/man]
1364   --docdir=DIR            documentation root [DATAROOTDIR/doc/yasm]
1365   --htmldir=DIR           html documentation [DOCDIR]
1366   --dvidir=DIR            dvi documentation [DOCDIR]
1367   --pdfdir=DIR            pdf documentation [DOCDIR]
1368   --psdir=DIR             ps documentation [DOCDIR]
1369 _ACEOF
1370
1371   cat <<\_ACEOF
1372
1373 Program names:
1374   --program-prefix=PREFIX            prepend PREFIX to installed program names
1375   --program-suffix=SUFFIX            append SUFFIX to installed program names
1376   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1377
1378 System types:
1379   --build=BUILD     configure for building on BUILD [guessed]
1380   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1381 _ACEOF
1382 fi
1383
1384 if test -n "$ac_init_help"; then
1385   case $ac_init_help in
1386      short | recursive ) echo "Configuration of yasm 1.2.0:";;
1387    esac
1388   cat <<\_ACEOF
1389
1390 Optional Features:
1391   --disable-option-checking  ignore unrecognized --enable/--with options
1392   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1393   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1394   --enable-maintainer-mode  enable make rules and dependencies not useful
1395                           (and sometimes confusing) to the casual installer
1396   --enable-debug          Turn on debugging and compile time warnings
1397   --enable-warnerror      Treat GCC warnings as errors
1398   --enable-profiling      Enable profiling (requires GCC)
1399   --enable-gcov           Enable gcov code coverage (requires GCC)
1400   --enable-python         Enable Python-requiring portions of build
1401   --enable-python-bindings
1402                           Build Python bindings
1403   --disable-dependency-tracking  speeds up one-time build
1404   --enable-dependency-tracking   do not reject slow dependency extractors
1405   --disable-nls           do not use Native Language Support
1406   --disable-rpath         do not hardcode runtime library paths
1407
1408 Optional Packages:
1409   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1410   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1411   --with-dmalloc          use dmalloc, as in
1412                           http://www.dmalloc.com/dmalloc.tar.gz
1413   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1414   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1415   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1416   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1417   --without-libintl-prefix     don't search for libintl in includedir and libdir
1418
1419 Some influential environment variables:
1420   CC          C compiler command
1421   CFLAGS      C compiler flags
1422   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1423               nonstandard directory <lib dir>
1424   LIBS        libraries to pass to the linker, e.g. -l<library>
1425   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1426               you have headers in a nonstandard directory <include dir>
1427   CPP         C preprocessor
1428   CC_FOR_BUILD
1429               build system C compiler
1430   CCLD_FOR_BUILD
1431               build system C linker frontend
1432   CPP_FOR_HOST
1433               host system C preprocessor
1434
1435 Use these variables to override the choices made by `configure' or to help
1436 it to find libraries and programs with nonstandard names/locations.
1437
1438 Report bugs to <bug-yasm@tortall.net>.
1439 _ACEOF
1440 ac_status=$?
1441 fi
1442
1443 if test "$ac_init_help" = "recursive"; then
1444   # If there are subdirs, report their specific --help.
1445   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1446     test -d "$ac_dir" ||
1447       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1448       continue
1449     ac_builddir=.
1450
1451 case "$ac_dir" in
1452 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1453 *)
1454   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1455   # A ".." for each directory in $ac_dir_suffix.
1456   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1457   case $ac_top_builddir_sub in
1458   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1459   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1460   esac ;;
1461 esac
1462 ac_abs_top_builddir=$ac_pwd
1463 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1464 # for backward compatibility:
1465 ac_top_builddir=$ac_top_build_prefix
1466
1467 case $srcdir in
1468   .)  # We are building in place.
1469     ac_srcdir=.
1470     ac_top_srcdir=$ac_top_builddir_sub
1471     ac_abs_top_srcdir=$ac_pwd ;;
1472   [\\/]* | ?:[\\/]* )  # Absolute name.
1473     ac_srcdir=$srcdir$ac_dir_suffix;
1474     ac_top_srcdir=$srcdir
1475     ac_abs_top_srcdir=$srcdir ;;
1476   *) # Relative name.
1477     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1478     ac_top_srcdir=$ac_top_build_prefix$srcdir
1479     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1480 esac
1481 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1482
1483     cd "$ac_dir" || { ac_status=$?; continue; }
1484     # Check for guested configure.
1485     if test -f "$ac_srcdir/configure.gnu"; then
1486       echo &&
1487       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1488     elif test -f "$ac_srcdir/configure"; then
1489       echo &&
1490       $SHELL "$ac_srcdir/configure" --help=recursive
1491     else
1492       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1493     fi || ac_status=$?
1494     cd "$ac_pwd" || { ac_status=$?; break; }
1495   done
1496 fi
1497
1498 test -n "$ac_init_help" && exit $ac_status
1499 if $ac_init_version; then
1500   cat <<\_ACEOF
1501 yasm configure 1.2.0
1502 generated by GNU Autoconf 2.68
1503
1504 Copyright (C) 2010 Free Software Foundation, Inc.
1505 This configure script is free software; the Free Software Foundation
1506 gives unlimited permission to copy, distribute and modify it.
1507 _ACEOF
1508   exit
1509 fi
1510
1511 ## ------------------------ ##
1512 ## Autoconf initialization. ##
1513 ## ------------------------ ##
1514
1515 # ac_fn_c_try_compile LINENO
1516 # --------------------------
1517 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1518 ac_fn_c_try_compile ()
1519 {
1520   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1521   rm -f conftest.$ac_objext
1522   if { { ac_try="$ac_compile"
1523 case "(($ac_try" in
1524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1525   *) ac_try_echo=$ac_try;;
1526 esac
1527 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1528 $as_echo "$ac_try_echo"; } >&5
1529   (eval "$ac_compile") 2>conftest.err
1530   ac_status=$?
1531   if test -s conftest.err; then
1532     grep -v '^ *+' conftest.err >conftest.er1
1533     cat conftest.er1 >&5
1534     mv -f conftest.er1 conftest.err
1535   fi
1536   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1537   test $ac_status = 0; } && {
1538          test -z "$ac_c_werror_flag" ||
1539          test ! -s conftest.err
1540        } && test -s conftest.$ac_objext; then :
1541   ac_retval=0
1542 else
1543   $as_echo "$as_me: failed program was:" >&5
1544 sed 's/^/| /' conftest.$ac_ext >&5
1545
1546         ac_retval=1
1547 fi
1548   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1549   as_fn_set_status $ac_retval
1550
1551 } # ac_fn_c_try_compile
1552
1553 # ac_fn_c_try_cpp LINENO
1554 # ----------------------
1555 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1556 ac_fn_c_try_cpp ()
1557 {
1558   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1559   if { { ac_try="$ac_cpp conftest.$ac_ext"
1560 case "(($ac_try" in
1561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1562   *) ac_try_echo=$ac_try;;
1563 esac
1564 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1565 $as_echo "$ac_try_echo"; } >&5
1566   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1567   ac_status=$?
1568   if test -s conftest.err; then
1569     grep -v '^ *+' conftest.err >conftest.er1
1570     cat conftest.er1 >&5
1571     mv -f conftest.er1 conftest.err
1572   fi
1573   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1574   test $ac_status = 0; } > conftest.i && {
1575          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1576          test ! -s conftest.err
1577        }; then :
1578   ac_retval=0
1579 else
1580   $as_echo "$as_me: failed program was:" >&5
1581 sed 's/^/| /' conftest.$ac_ext >&5
1582
1583     ac_retval=1
1584 fi
1585   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1586   as_fn_set_status $ac_retval
1587
1588 } # ac_fn_c_try_cpp
1589
1590 # ac_fn_c_try_run LINENO
1591 # ----------------------
1592 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1593 # that executables *can* be run.
1594 ac_fn_c_try_run ()
1595 {
1596   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1597   if { { ac_try="$ac_link"
1598 case "(($ac_try" in
1599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1600   *) ac_try_echo=$ac_try;;
1601 esac
1602 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1603 $as_echo "$ac_try_echo"; } >&5
1604   (eval "$ac_link") 2>&5
1605   ac_status=$?
1606   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1607   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1608   { { case "(($ac_try" in
1609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1610   *) ac_try_echo=$ac_try;;
1611 esac
1612 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1613 $as_echo "$ac_try_echo"; } >&5
1614   (eval "$ac_try") 2>&5
1615   ac_status=$?
1616   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1617   test $ac_status = 0; }; }; then :
1618   ac_retval=0
1619 else
1620   $as_echo "$as_me: program exited with status $ac_status" >&5
1621        $as_echo "$as_me: failed program was:" >&5
1622 sed 's/^/| /' conftest.$ac_ext >&5
1623
1624        ac_retval=$ac_status
1625 fi
1626   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1627   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1628   as_fn_set_status $ac_retval
1629
1630 } # ac_fn_c_try_run
1631
1632 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1633 # -------------------------------------------------------
1634 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1635 # the include files in INCLUDES and setting the cache variable VAR
1636 # accordingly.
1637 ac_fn_c_check_header_mongrel ()
1638 {
1639   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1640   if eval \${$3+:} false; then :
1641   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1642 $as_echo_n "checking for $2... " >&6; }
1643 if eval \${$3+:} false; then :
1644   $as_echo_n "(cached) " >&6
1645 fi
1646 eval ac_res=\$$3
1647                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1648 $as_echo "$ac_res" >&6; }
1649 else
1650   # Is the header compilable?
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1652 $as_echo_n "checking $2 usability... " >&6; }
1653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1654 /* end confdefs.h.  */
1655 $4
1656 #include <$2>
1657 _ACEOF
1658 if ac_fn_c_try_compile "$LINENO"; then :
1659   ac_header_compiler=yes
1660 else
1661   ac_header_compiler=no
1662 fi
1663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1665 $as_echo "$ac_header_compiler" >&6; }
1666
1667 # Is the header present?
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1669 $as_echo_n "checking $2 presence... " >&6; }
1670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1671 /* end confdefs.h.  */
1672 #include <$2>
1673 _ACEOF
1674 if ac_fn_c_try_cpp "$LINENO"; then :
1675   ac_header_preproc=yes
1676 else
1677   ac_header_preproc=no
1678 fi
1679 rm -f conftest.err conftest.i conftest.$ac_ext
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1681 $as_echo "$ac_header_preproc" >&6; }
1682
1683 # So?  What about this header?
1684 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1685   yes:no: )
1686     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1687 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1688     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1689 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1690     ;;
1691   no:yes:* )
1692     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1693 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1694     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1695 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1696     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1697 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1698     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1699 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1700     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1701 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1702 ( $as_echo "## ----------------------------------- ##
1703 ## Report this to bug-yasm@tortall.net ##
1704 ## ----------------------------------- ##"
1705      ) | sed "s/^/$as_me: WARNING:     /" >&2
1706     ;;
1707 esac
1708   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1709 $as_echo_n "checking for $2... " >&6; }
1710 if eval \${$3+:} false; then :
1711   $as_echo_n "(cached) " >&6
1712 else
1713   eval "$3=\$ac_header_compiler"
1714 fi
1715 eval ac_res=\$$3
1716                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1717 $as_echo "$ac_res" >&6; }
1718 fi
1719   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1720
1721 } # ac_fn_c_check_header_mongrel
1722
1723 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1724 # -------------------------------------------------------
1725 # Tests whether HEADER exists and can be compiled using the include files in
1726 # INCLUDES, setting the cache variable VAR accordingly.
1727 ac_fn_c_check_header_compile ()
1728 {
1729   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1731 $as_echo_n "checking for $2... " >&6; }
1732 if eval \${$3+:} false; then :
1733   $as_echo_n "(cached) " >&6
1734 else
1735   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1736 /* end confdefs.h.  */
1737 $4
1738 #include <$2>
1739 _ACEOF
1740 if ac_fn_c_try_compile "$LINENO"; then :
1741   eval "$3=yes"
1742 else
1743   eval "$3=no"
1744 fi
1745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1746 fi
1747 eval ac_res=\$$3
1748                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1749 $as_echo "$ac_res" >&6; }
1750   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1751
1752 } # ac_fn_c_check_header_compile
1753
1754 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1755 # -------------------------------------------
1756 # Tests whether TYPE exists after having included INCLUDES, setting cache
1757 # variable VAR accordingly.
1758 ac_fn_c_check_type ()
1759 {
1760   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1762 $as_echo_n "checking for $2... " >&6; }
1763 if eval \${$3+:} false; then :
1764   $as_echo_n "(cached) " >&6
1765 else
1766   eval "$3=no"
1767   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1768 /* end confdefs.h.  */
1769 $4
1770 int
1771 main ()
1772 {
1773 if (sizeof ($2))
1774          return 0;
1775   ;
1776   return 0;
1777 }
1778 _ACEOF
1779 if ac_fn_c_try_compile "$LINENO"; then :
1780   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1781 /* end confdefs.h.  */
1782 $4
1783 int
1784 main ()
1785 {
1786 if (sizeof (($2)))
1787             return 0;
1788   ;
1789   return 0;
1790 }
1791 _ACEOF
1792 if ac_fn_c_try_compile "$LINENO"; then :
1793
1794 else
1795   eval "$3=yes"
1796 fi
1797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1798 fi
1799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1800 fi
1801 eval ac_res=\$$3
1802                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1803 $as_echo "$ac_res" >&6; }
1804   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1805
1806 } # ac_fn_c_check_type
1807
1808 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1809 # --------------------------------------------
1810 # Tries to find the compile-time value of EXPR in a program that includes
1811 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1812 # computed
1813 ac_fn_c_compute_int ()
1814 {
1815   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1816   if test "$cross_compiling" = yes; then
1817     # Depending upon the size, compute the lo and hi bounds.
1818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1819 /* end confdefs.h.  */
1820 $4
1821 int
1822 main ()
1823 {
1824 static int test_array [1 - 2 * !(($2) >= 0)];
1825 test_array [0] = 0
1826
1827   ;
1828   return 0;
1829 }
1830 _ACEOF
1831 if ac_fn_c_try_compile "$LINENO"; then :
1832   ac_lo=0 ac_mid=0
1833   while :; do
1834     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1835 /* end confdefs.h.  */
1836 $4
1837 int
1838 main ()
1839 {
1840 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1841 test_array [0] = 0
1842
1843   ;
1844   return 0;
1845 }
1846 _ACEOF
1847 if ac_fn_c_try_compile "$LINENO"; then :
1848   ac_hi=$ac_mid; break
1849 else
1850   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1851                         if test $ac_lo -le $ac_mid; then
1852                           ac_lo= ac_hi=
1853                           break
1854                         fi
1855                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1856 fi
1857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1858   done
1859 else
1860   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1861 /* end confdefs.h.  */
1862 $4
1863 int
1864 main ()
1865 {
1866 static int test_array [1 - 2 * !(($2) < 0)];
1867 test_array [0] = 0
1868
1869   ;
1870   return 0;
1871 }
1872 _ACEOF
1873 if ac_fn_c_try_compile "$LINENO"; then :
1874   ac_hi=-1 ac_mid=-1
1875   while :; do
1876     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1877 /* end confdefs.h.  */
1878 $4
1879 int
1880 main ()
1881 {
1882 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1883 test_array [0] = 0
1884
1885   ;
1886   return 0;
1887 }
1888 _ACEOF
1889 if ac_fn_c_try_compile "$LINENO"; then :
1890   ac_lo=$ac_mid; break
1891 else
1892   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1893                         if test $ac_mid -le $ac_hi; then
1894                           ac_lo= ac_hi=
1895                           break
1896                         fi
1897                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1898 fi
1899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1900   done
1901 else
1902   ac_lo= ac_hi=
1903 fi
1904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1905 fi
1906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1907 # Binary search between lo and hi bounds.
1908 while test "x$ac_lo" != "x$ac_hi"; do
1909   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1910   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1911 /* end confdefs.h.  */
1912 $4
1913 int
1914 main ()
1915 {
1916 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1917 test_array [0] = 0
1918
1919   ;
1920   return 0;
1921 }
1922 _ACEOF
1923 if ac_fn_c_try_compile "$LINENO"; then :
1924   ac_hi=$ac_mid
1925 else
1926   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1927 fi
1928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1929 done
1930 case $ac_lo in #((
1931 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1932 '') ac_retval=1 ;;
1933 esac
1934   else
1935     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1936 /* end confdefs.h.  */
1937 $4
1938 static long int longval () { return $2; }
1939 static unsigned long int ulongval () { return $2; }
1940 #include <stdio.h>
1941 #include <stdlib.h>
1942 int
1943 main ()
1944 {
1945
1946   FILE *f = fopen ("conftest.val", "w");
1947   if (! f)
1948     return 1;
1949   if (($2) < 0)
1950     {
1951       long int i = longval ();
1952       if (i != ($2))
1953         return 1;
1954       fprintf (f, "%ld", i);
1955     }
1956   else
1957     {
1958       unsigned long int i = ulongval ();
1959       if (i != ($2))
1960         return 1;
1961       fprintf (f, "%lu", i);
1962     }
1963   /* Do not output a trailing newline, as this causes \r\n confusion
1964      on some platforms.  */
1965   return ferror (f) || fclose (f) != 0;
1966
1967   ;
1968   return 0;
1969 }
1970 _ACEOF
1971 if ac_fn_c_try_run "$LINENO"; then :
1972   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1973 else
1974   ac_retval=1
1975 fi
1976 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1977   conftest.$ac_objext conftest.beam conftest.$ac_ext
1978 rm -f conftest.val
1979
1980   fi
1981   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1982   as_fn_set_status $ac_retval
1983
1984 } # ac_fn_c_compute_int
1985
1986 # ac_fn_c_try_link LINENO
1987 # -----------------------
1988 # Try to link conftest.$ac_ext, and return whether this succeeded.
1989 ac_fn_c_try_link ()
1990 {
1991   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1992   rm -f conftest.$ac_objext conftest$ac_exeext
1993   if { { ac_try="$ac_link"
1994 case "(($ac_try" in
1995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1996   *) ac_try_echo=$ac_try;;
1997 esac
1998 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1999 $as_echo "$ac_try_echo"; } >&5
2000   (eval "$ac_link") 2>conftest.err
2001   ac_status=$?
2002   if test -s conftest.err; then
2003     grep -v '^ *+' conftest.err >conftest.er1
2004     cat conftest.er1 >&5
2005     mv -f conftest.er1 conftest.err
2006   fi
2007   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2008   test $ac_status = 0; } && {
2009          test -z "$ac_c_werror_flag" ||
2010          test ! -s conftest.err
2011        } && test -s conftest$ac_exeext && {
2012          test "$cross_compiling" = yes ||
2013          $as_test_x conftest$ac_exeext
2014        }; then :
2015   ac_retval=0
2016 else
2017   $as_echo "$as_me: failed program was:" >&5
2018 sed 's/^/| /' conftest.$ac_ext >&5
2019
2020         ac_retval=1
2021 fi
2022   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2023   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2024   # interfere with the next link command; also delete a directory that is
2025   # left behind by Apple's compiler.  We do this before executing the actions.
2026   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2027   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2028   as_fn_set_status $ac_retval
2029
2030 } # ac_fn_c_try_link
2031
2032 # ac_fn_c_check_func LINENO FUNC VAR
2033 # ----------------------------------
2034 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2035 ac_fn_c_check_func ()
2036 {
2037   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2038   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2039 $as_echo_n "checking for $2... " >&6; }
2040 if eval \${$3+:} false; then :
2041   $as_echo_n "(cached) " >&6
2042 else
2043   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2044 /* end confdefs.h.  */
2045 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2046    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2047 #define $2 innocuous_$2
2048
2049 /* System header to define __stub macros and hopefully few prototypes,
2050     which can conflict with char $2 (); below.
2051     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2052     <limits.h> exists even on freestanding compilers.  */
2053
2054 #ifdef __STDC__
2055 # include <limits.h>
2056 #else
2057 # include <assert.h>
2058 #endif
2059
2060 #undef $2
2061
2062 /* Override any GCC internal prototype to avoid an error.
2063    Use char because int might match the return type of a GCC
2064    builtin and then its argument prototype would still apply.  */
2065 #ifdef __cplusplus
2066 extern "C"
2067 #endif
2068 char $2 ();
2069 /* The GNU C library defines this for functions which it implements
2070     to always fail with ENOSYS.  Some functions are actually named
2071     something starting with __ and the normal name is an alias.  */
2072 #if defined __stub_$2 || defined __stub___$2
2073 choke me
2074 #endif
2075
2076 int
2077 main ()
2078 {
2079 return $2 ();
2080   ;
2081   return 0;
2082 }
2083 _ACEOF
2084 if ac_fn_c_try_link "$LINENO"; then :
2085   eval "$3=yes"
2086 else
2087   eval "$3=no"
2088 fi
2089 rm -f core conftest.err conftest.$ac_objext \
2090     conftest$ac_exeext conftest.$ac_ext
2091 fi
2092 eval ac_res=\$$3
2093                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2094 $as_echo "$ac_res" >&6; }
2095   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2096
2097 } # ac_fn_c_check_func
2098 cat >config.log <<_ACEOF
2099 This file contains any messages produced by compilers while
2100 running configure, to aid debugging if configure makes a mistake.
2101
2102 It was created by yasm $as_me 1.2.0, which was
2103 generated by GNU Autoconf 2.68.  Invocation command line was
2104
2105   $ $0 $@
2106
2107 _ACEOF
2108 exec 5>>config.log
2109 {
2110 cat <<_ASUNAME
2111 ## --------- ##
2112 ## Platform. ##
2113 ## --------- ##
2114
2115 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2116 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2117 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2118 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2119 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2120
2121 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2122 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2123
2124 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2125 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2126 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2127 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2128 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2129 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2130 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2131
2132 _ASUNAME
2133
2134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2135 for as_dir in $PATH
2136 do
2137   IFS=$as_save_IFS
2138   test -z "$as_dir" && as_dir=.
2139     $as_echo "PATH: $as_dir"
2140   done
2141 IFS=$as_save_IFS
2142
2143 } >&5
2144
2145 cat >&5 <<_ACEOF
2146
2147
2148 ## ----------- ##
2149 ## Core tests. ##
2150 ## ----------- ##
2151
2152 _ACEOF
2153
2154
2155 # Keep a trace of the command line.
2156 # Strip out --no-create and --no-recursion so they do not pile up.
2157 # Strip out --silent because we don't want to record it for future runs.
2158 # Also quote any args containing shell meta-characters.
2159 # Make two passes to allow for proper duplicate-argument suppression.
2160 ac_configure_args=
2161 ac_configure_args0=
2162 ac_configure_args1=
2163 ac_must_keep_next=false
2164 for ac_pass in 1 2
2165 do
2166   for ac_arg
2167   do
2168     case $ac_arg in
2169     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2170     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2171     | -silent | --silent | --silen | --sile | --sil)
2172       continue ;;
2173     *\'*)
2174       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2175     esac
2176     case $ac_pass in
2177     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2178     2)
2179       as_fn_append ac_configure_args1 " '$ac_arg'"
2180       if test $ac_must_keep_next = true; then
2181         ac_must_keep_next=false # Got value, back to normal.
2182       else
2183         case $ac_arg in
2184           *=* | --config-cache | -C | -disable-* | --disable-* \
2185           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2186           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2187           | -with-* | --with-* | -without-* | --without-* | --x)
2188             case "$ac_configure_args0 " in
2189               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2190             esac
2191             ;;
2192           -* ) ac_must_keep_next=true ;;
2193         esac
2194       fi
2195       as_fn_append ac_configure_args " '$ac_arg'"
2196       ;;
2197     esac
2198   done
2199 done
2200 { ac_configure_args0=; unset ac_configure_args0;}
2201 { ac_configure_args1=; unset ac_configure_args1;}
2202
2203 # When interrupted or exit'd, cleanup temporary files, and complete
2204 # config.log.  We remove comments because anyway the quotes in there
2205 # would cause problems or look ugly.
2206 # WARNING: Use '\'' to represent an apostrophe within the trap.
2207 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2208 trap 'exit_status=$?
2209   # Save into config.log some information that might help in debugging.
2210   {
2211     echo
2212
2213     $as_echo "## ---------------- ##
2214 ## Cache variables. ##
2215 ## ---------------- ##"
2216     echo
2217     # The following way of writing the cache mishandles newlines in values,
2218 (
2219   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2220     eval ac_val=\$$ac_var
2221     case $ac_val in #(
2222     *${as_nl}*)
2223       case $ac_var in #(
2224       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2225 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2226       esac
2227       case $ac_var in #(
2228       _ | IFS | as_nl) ;; #(
2229       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2230       *) { eval $ac_var=; unset $ac_var;} ;;
2231       esac ;;
2232     esac
2233   done
2234   (set) 2>&1 |
2235     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2236     *${as_nl}ac_space=\ *)
2237       sed -n \
2238         "s/'\''/'\''\\\\'\'''\''/g;
2239           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2240       ;; #(
2241     *)
2242       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2243       ;;
2244     esac |
2245     sort
2246 )
2247     echo
2248
2249     $as_echo "## ----------------- ##
2250 ## Output variables. ##
2251 ## ----------------- ##"
2252     echo
2253     for ac_var in $ac_subst_vars
2254     do
2255       eval ac_val=\$$ac_var
2256       case $ac_val in
2257       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2258       esac
2259       $as_echo "$ac_var='\''$ac_val'\''"
2260     done | sort
2261     echo
2262
2263     if test -n "$ac_subst_files"; then
2264       $as_echo "## ------------------- ##
2265 ## File substitutions. ##
2266 ## ------------------- ##"
2267       echo
2268       for ac_var in $ac_subst_files
2269       do
2270         eval ac_val=\$$ac_var
2271         case $ac_val in
2272         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2273         esac
2274         $as_echo "$ac_var='\''$ac_val'\''"
2275       done | sort
2276       echo
2277     fi
2278
2279     if test -s confdefs.h; then
2280       $as_echo "## ----------- ##
2281 ## confdefs.h. ##
2282 ## ----------- ##"
2283       echo
2284       cat confdefs.h
2285       echo
2286     fi
2287     test "$ac_signal" != 0 &&
2288       $as_echo "$as_me: caught signal $ac_signal"
2289     $as_echo "$as_me: exit $exit_status"
2290   } >&5
2291   rm -f core *.core core.conftest.* &&
2292     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2293     exit $exit_status
2294 ' 0
2295 for ac_signal in 1 2 13 15; do
2296   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2297 done
2298 ac_signal=0
2299
2300 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2301 rm -f -r conftest* confdefs.h
2302
2303 $as_echo "/* confdefs.h */" > confdefs.h
2304
2305 # Predefined preprocessor variables.
2306
2307 cat >>confdefs.h <<_ACEOF
2308 #define PACKAGE_NAME "$PACKAGE_NAME"
2309 _ACEOF
2310
2311 cat >>confdefs.h <<_ACEOF
2312 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2313 _ACEOF
2314
2315 cat >>confdefs.h <<_ACEOF
2316 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2317 _ACEOF
2318
2319 cat >>confdefs.h <<_ACEOF
2320 #define PACKAGE_STRING "$PACKAGE_STRING"
2321 _ACEOF
2322
2323 cat >>confdefs.h <<_ACEOF
2324 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2325 _ACEOF
2326
2327 cat >>confdefs.h <<_ACEOF
2328 #define PACKAGE_URL "$PACKAGE_URL"
2329 _ACEOF
2330
2331
2332 # Let the site file select an alternate cache file if it wants to.
2333 # Prefer an explicitly selected file to automatically selected ones.
2334 ac_site_file1=NONE
2335 ac_site_file2=NONE
2336 if test -n "$CONFIG_SITE"; then
2337   # We do not want a PATH search for config.site.
2338   case $CONFIG_SITE in #((
2339     -*)  ac_site_file1=./$CONFIG_SITE;;
2340     */*) ac_site_file1=$CONFIG_SITE;;
2341     *)   ac_site_file1=./$CONFIG_SITE;;
2342   esac
2343 elif test "x$prefix" != xNONE; then
2344   ac_site_file1=$prefix/share/config.site
2345   ac_site_file2=$prefix/etc/config.site
2346 else
2347   ac_site_file1=$ac_default_prefix/share/config.site
2348   ac_site_file2=$ac_default_prefix/etc/config.site
2349 fi
2350 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2351 do
2352   test "x$ac_site_file" = xNONE && continue
2353   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2354     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2355 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2356     sed 's/^/| /' "$ac_site_file" >&5
2357     . "$ac_site_file" \
2358       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2359 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2360 as_fn_error $? "failed to load site script $ac_site_file
2361 See \`config.log' for more details" "$LINENO" 5; }
2362   fi
2363 done
2364
2365 if test -r "$cache_file"; then
2366   # Some versions of bash will fail to source /dev/null (special files
2367   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2368   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2369     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2370 $as_echo "$as_me: loading cache $cache_file" >&6;}
2371     case $cache_file in
2372       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2373       *)                      . "./$cache_file";;
2374     esac
2375   fi
2376 else
2377   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2378 $as_echo "$as_me: creating cache $cache_file" >&6;}
2379   >$cache_file
2380 fi
2381
2382 gt_needs="$gt_needs "
2383 # Check that the precious variables saved in the cache have kept the same
2384 # value.
2385 ac_cache_corrupted=false
2386 for ac_var in $ac_precious_vars; do
2387   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2388   eval ac_new_set=\$ac_env_${ac_var}_set
2389   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2390   eval ac_new_val=\$ac_env_${ac_var}_value
2391   case $ac_old_set,$ac_new_set in
2392     set,)
2393       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2394 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2395       ac_cache_corrupted=: ;;
2396     ,set)
2397       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2398 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2399       ac_cache_corrupted=: ;;
2400     ,);;
2401     *)
2402       if test "x$ac_old_val" != "x$ac_new_val"; then
2403         # differences in whitespace do not lead to failure.
2404         ac_old_val_w=`echo x $ac_old_val`
2405         ac_new_val_w=`echo x $ac_new_val`
2406         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2407           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2408 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2409           ac_cache_corrupted=:
2410         else
2411           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2412 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2413           eval $ac_var=\$ac_old_val
2414         fi
2415         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2416 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2417         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2418 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2419       fi;;
2420   esac
2421   # Pass precious variables to config.status.
2422   if test "$ac_new_set" = set; then
2423     case $ac_new_val in
2424     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2425     *) ac_arg=$ac_var=$ac_new_val ;;
2426     esac
2427     case " $ac_configure_args " in
2428       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2429       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2430     esac
2431   fi
2432 done
2433 if $ac_cache_corrupted; then
2434   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2435 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2436   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2437 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2438   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2439 fi
2440 ## -------------------- ##
2441 ## Main body of script. ##
2442 ## -------------------- ##
2443
2444 ac_ext=c
2445 ac_cpp='$CPP $CPPFLAGS'
2446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2449
2450
2451 #AC_CONFIG_SRCDIR([src/main.c])
2452 ac_aux_dir=
2453 for ac_dir in config "$srcdir"/config; do
2454   if test -f "$ac_dir/install-sh"; then
2455     ac_aux_dir=$ac_dir
2456     ac_install_sh="$ac_aux_dir/install-sh -c"
2457     break
2458   elif test -f "$ac_dir/install.sh"; then
2459     ac_aux_dir=$ac_dir
2460     ac_install_sh="$ac_aux_dir/install.sh -c"
2461     break
2462   elif test -f "$ac_dir/shtool"; then
2463     ac_aux_dir=$ac_dir
2464     ac_install_sh="$ac_aux_dir/shtool install -c"
2465     break
2466   fi
2467 done
2468 if test -z "$ac_aux_dir"; then
2469   as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2470 fi
2471
2472 # These three variables are undocumented and unsupported,
2473 # and are intended to be withdrawn in a future Autoconf release.
2474 # They can cause serious problems if a builder's source tree is in a directory
2475 # whose full name contains unusual characters.
2476 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2477 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2478 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2479
2480
2481 ac_config_headers="$ac_config_headers config.h"
2482
2483
2484 am__api_version='1.11'
2485
2486 # Find a good install program.  We prefer a C program (faster),
2487 # so one script is as good as another.  But avoid the broken or
2488 # incompatible versions:
2489 # SysV /etc/install, /usr/sbin/install
2490 # SunOS /usr/etc/install
2491 # IRIX /sbin/install
2492 # AIX /bin/install
2493 # AmigaOS /C/install, which installs bootblocks on floppy discs
2494 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2495 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2496 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2497 # OS/2's system install, which has a completely different semantic
2498 # ./install, which can be erroneously created by make from ./install.sh.
2499 # Reject install programs that cannot install multiple files.
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2501 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2502 if test -z "$INSTALL"; then
2503 if ${ac_cv_path_install+:} false; then :
2504   $as_echo_n "(cached) " >&6
2505 else
2506   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2507 for as_dir in $PATH
2508 do
2509   IFS=$as_save_IFS
2510   test -z "$as_dir" && as_dir=.
2511     # Account for people who put trailing slashes in PATH elements.
2512 case $as_dir/ in #((
2513   ./ | .// | /[cC]/* | \
2514   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2515   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2516   /usr/ucb/* ) ;;
2517   *)
2518     # OSF1 and SCO ODT 3.0 have their own names for install.
2519     # Don't use installbsd from OSF since it installs stuff as root
2520     # by default.
2521     for ac_prog in ginstall scoinst install; do
2522       for ac_exec_ext in '' $ac_executable_extensions; do
2523         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2524           if test $ac_prog = install &&
2525             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2526             # AIX install.  It has an incompatible calling convention.
2527             :
2528           elif test $ac_prog = install &&
2529             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2530             # program-specific install script used by HP pwplus--don't use.
2531             :
2532           else
2533             rm -rf conftest.one conftest.two conftest.dir
2534             echo one > conftest.one
2535             echo two > conftest.two
2536             mkdir conftest.dir
2537             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2538               test -s conftest.one && test -s conftest.two &&
2539               test -s conftest.dir/conftest.one &&
2540               test -s conftest.dir/conftest.two
2541             then
2542               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2543               break 3
2544             fi
2545           fi
2546         fi
2547       done
2548     done
2549     ;;
2550 esac
2551
2552   done
2553 IFS=$as_save_IFS
2554
2555 rm -rf conftest.one conftest.two conftest.dir
2556
2557 fi
2558   if test "${ac_cv_path_install+set}" = set; then
2559     INSTALL=$ac_cv_path_install
2560   else
2561     # As a last resort, use the slow shell script.  Don't cache a
2562     # value for INSTALL within a source directory, because that will
2563     # break other packages using the cache if that directory is
2564     # removed, or if the value is a relative name.
2565     INSTALL=$ac_install_sh
2566   fi
2567 fi
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2569 $as_echo "$INSTALL" >&6; }
2570
2571 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2572 # It thinks the first close brace ends the variable substitution.
2573 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2574
2575 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2576
2577 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2578
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2580 $as_echo_n "checking whether build environment is sane... " >&6; }
2581 # Just in case
2582 sleep 1
2583 echo timestamp > conftest.file
2584 # Reject unsafe characters in $srcdir or the absolute working directory
2585 # name.  Accept space and tab only in the latter.
2586 am_lf='
2587 '
2588 case `pwd` in
2589   *[\\\"\#\$\&\'\`$am_lf]*)
2590     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2591 esac
2592 case $srcdir in
2593   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2594     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2595 esac
2596
2597 # Do `set' in a subshell so we don't clobber the current shell's
2598 # arguments.  Must try -L first in case configure is actually a
2599 # symlink; some systems play weird games with the mod time of symlinks
2600 # (eg FreeBSD returns the mod time of the symlink's containing
2601 # directory).
2602 if (
2603    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2604    if test "$*" = "X"; then
2605       # -L didn't work.
2606       set X `ls -t "$srcdir/configure" conftest.file`
2607    fi
2608    rm -f conftest.file
2609    if test "$*" != "X $srcdir/configure conftest.file" \
2610       && test "$*" != "X conftest.file $srcdir/configure"; then
2611
2612       # If neither matched, then we have a broken ls.  This can happen
2613       # if, for instance, CONFIG_SHELL is bash and it inherits a
2614       # broken ls alias from the environment.  This has actually
2615       # happened.  Such a system could not be considered "sane".
2616       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2617 alias in your environment" "$LINENO" 5
2618    fi
2619
2620    test "$2" = conftest.file
2621    )
2622 then
2623    # Ok.
2624    :
2625 else
2626    as_fn_error $? "newly created file is older than distributed files!
2627 Check your system clock" "$LINENO" 5
2628 fi
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2630 $as_echo "yes" >&6; }
2631 test "$program_prefix" != NONE &&
2632   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2633 # Use a double $ so make ignores it.
2634 test "$program_suffix" != NONE &&
2635   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2636 # Double any \ or $.
2637 # By default was `s,x,x', remove it if useless.
2638 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2639 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2640
2641 # expand $ac_aux_dir to an absolute path
2642 am_aux_dir=`cd $ac_aux_dir && pwd`
2643
2644 if test x"${MISSING+set}" != xset; then
2645   case $am_aux_dir in
2646   *\ * | *\     *)
2647     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2648   *)
2649     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2650   esac
2651 fi
2652 # Use eval to expand $SHELL
2653 if eval "$MISSING --run true"; then
2654   am_missing_run="$MISSING --run "
2655 else
2656   am_missing_run=
2657   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2658 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2659 fi
2660
2661 if test x"${install_sh}" != xset; then
2662   case $am_aux_dir in
2663   *\ * | *\     *)
2664     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2665   *)
2666     install_sh="\${SHELL} $am_aux_dir/install-sh"
2667   esac
2668 fi
2669
2670 # Installed binaries are usually stripped using `strip' when the user
2671 # run `make install-strip'.  However `strip' might not be the right
2672 # tool to use in cross-compilation environments, therefore Automake
2673 # will honor the `STRIP' environment variable to overrule this program.
2674 if test "$cross_compiling" != no; then
2675   if test -n "$ac_tool_prefix"; then
2676   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2677 set dummy ${ac_tool_prefix}strip; ac_word=$2
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2679 $as_echo_n "checking for $ac_word... " >&6; }
2680 if ${ac_cv_prog_STRIP+:} false; then :
2681   $as_echo_n "(cached) " >&6
2682 else
2683   if test -n "$STRIP"; then
2684   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2685 else
2686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2687 for as_dir in $PATH
2688 do
2689   IFS=$as_save_IFS
2690   test -z "$as_dir" && as_dir=.
2691     for ac_exec_ext in '' $ac_executable_extensions; do
2692   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2693     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2694     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2695     break 2
2696   fi
2697 done
2698   done
2699 IFS=$as_save_IFS
2700
2701 fi
2702 fi
2703 STRIP=$ac_cv_prog_STRIP
2704 if test -n "$STRIP"; then
2705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2706 $as_echo "$STRIP" >&6; }
2707 else
2708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2709 $as_echo "no" >&6; }
2710 fi
2711
2712
2713 fi
2714 if test -z "$ac_cv_prog_STRIP"; then
2715   ac_ct_STRIP=$STRIP
2716   # Extract the first word of "strip", so it can be a program name with args.
2717 set dummy strip; ac_word=$2
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2719 $as_echo_n "checking for $ac_word... " >&6; }
2720 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2721   $as_echo_n "(cached) " >&6
2722 else
2723   if test -n "$ac_ct_STRIP"; then
2724   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2725 else
2726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2727 for as_dir in $PATH
2728 do
2729   IFS=$as_save_IFS
2730   test -z "$as_dir" && as_dir=.
2731     for ac_exec_ext in '' $ac_executable_extensions; do
2732   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2733     ac_cv_prog_ac_ct_STRIP="strip"
2734     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2735     break 2
2736   fi
2737 done
2738   done
2739 IFS=$as_save_IFS
2740
2741 fi
2742 fi
2743 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2744 if test -n "$ac_ct_STRIP"; then
2745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2746 $as_echo "$ac_ct_STRIP" >&6; }
2747 else
2748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2749 $as_echo "no" >&6; }
2750 fi
2751
2752   if test "x$ac_ct_STRIP" = x; then
2753     STRIP=":"
2754   else
2755     case $cross_compiling:$ac_tool_warned in
2756 yes:)
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2758 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2759 ac_tool_warned=yes ;;
2760 esac
2761     STRIP=$ac_ct_STRIP
2762   fi
2763 else
2764   STRIP="$ac_cv_prog_STRIP"
2765 fi
2766
2767 fi
2768 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2769
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2771 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2772 if test -z "$MKDIR_P"; then
2773   if ${ac_cv_path_mkdir+:} false; then :
2774   $as_echo_n "(cached) " >&6
2775 else
2776   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2777 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2778 do
2779   IFS=$as_save_IFS
2780   test -z "$as_dir" && as_dir=.
2781     for ac_prog in mkdir gmkdir; do
2782          for ac_exec_ext in '' $ac_executable_extensions; do
2783            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2784            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2785              'mkdir (GNU coreutils) '* | \
2786              'mkdir (coreutils) '* | \
2787              'mkdir (fileutils) '4.1*)
2788                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2789                break 3;;
2790            esac
2791          done
2792        done
2793   done
2794 IFS=$as_save_IFS
2795
2796 fi
2797
2798   test -d ./--version && rmdir ./--version
2799   if test "${ac_cv_path_mkdir+set}" = set; then
2800     MKDIR_P="$ac_cv_path_mkdir -p"
2801   else
2802     # As a last resort, use the slow shell script.  Don't cache a
2803     # value for MKDIR_P within a source directory, because that will
2804     # break other packages using the cache if that directory is
2805     # removed, or if the value is a relative name.
2806     MKDIR_P="$ac_install_sh -d"
2807   fi
2808 fi
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2810 $as_echo "$MKDIR_P" >&6; }
2811
2812 mkdir_p="$MKDIR_P"
2813 case $mkdir_p in
2814   [\\/$]* | ?:[\\/]*) ;;
2815   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2816 esac
2817
2818 for ac_prog in gawk mawk nawk awk
2819 do
2820   # Extract the first word of "$ac_prog", so it can be a program name with args.
2821 set dummy $ac_prog; ac_word=$2
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2823 $as_echo_n "checking for $ac_word... " >&6; }
2824 if ${ac_cv_prog_AWK+:} false; then :
2825   $as_echo_n "(cached) " >&6
2826 else
2827   if test -n "$AWK"; then
2828   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2829 else
2830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2831 for as_dir in $PATH
2832 do
2833   IFS=$as_save_IFS
2834   test -z "$as_dir" && as_dir=.
2835     for ac_exec_ext in '' $ac_executable_extensions; do
2836   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2837     ac_cv_prog_AWK="$ac_prog"
2838     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2839     break 2
2840   fi
2841 done
2842   done
2843 IFS=$as_save_IFS
2844
2845 fi
2846 fi
2847 AWK=$ac_cv_prog_AWK
2848 if test -n "$AWK"; then
2849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2850 $as_echo "$AWK" >&6; }
2851 else
2852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2853 $as_echo "no" >&6; }
2854 fi
2855
2856
2857   test -n "$AWK" && break
2858 done
2859
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2861 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2862 set x ${MAKE-make}
2863 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2864 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2865   $as_echo_n "(cached) " >&6
2866 else
2867   cat >conftest.make <<\_ACEOF
2868 SHELL = /bin/sh
2869 all:
2870         @echo '@@@%%%=$(MAKE)=@@@%%%'
2871 _ACEOF
2872 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2873 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2874   *@@@%%%=?*=@@@%%%*)
2875     eval ac_cv_prog_make_${ac_make}_set=yes;;
2876   *)
2877     eval ac_cv_prog_make_${ac_make}_set=no;;
2878 esac
2879 rm -f conftest.make
2880 fi
2881 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2883 $as_echo "yes" >&6; }
2884   SET_MAKE=
2885 else
2886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2887 $as_echo "no" >&6; }
2888   SET_MAKE="MAKE=${MAKE-make}"
2889 fi
2890
2891 rm -rf .tst 2>/dev/null
2892 mkdir .tst 2>/dev/null
2893 if test -d .tst; then
2894   am__leading_dot=.
2895 else
2896   am__leading_dot=_
2897 fi
2898 rmdir .tst 2>/dev/null
2899
2900 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2901   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2902   # is not polluted with repeated "-I."
2903   am__isrc=' -I$(srcdir)'
2904   # test to see if srcdir already configured
2905   if test -f $srcdir/config.status; then
2906     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2907   fi
2908 fi
2909
2910 # test whether we have cygpath
2911 if test -z "$CYGPATH_W"; then
2912   if (cygpath --version) >/dev/null 2>/dev/null; then
2913     CYGPATH_W='cygpath -w'
2914   else
2915     CYGPATH_W=echo
2916   fi
2917 fi
2918
2919
2920 # Define the identity of the package.
2921  PACKAGE='yasm'
2922  VERSION='1.2.0'
2923
2924
2925 cat >>confdefs.h <<_ACEOF
2926 #define PACKAGE "$PACKAGE"
2927 _ACEOF
2928
2929
2930 cat >>confdefs.h <<_ACEOF
2931 #define VERSION "$VERSION"
2932 _ACEOF
2933
2934 # Some tools Automake needs.
2935
2936 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2937
2938
2939 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2940
2941
2942 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2943
2944
2945 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2946
2947
2948 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2949
2950 # We need awk for the "check" target.  The system "awk" is bad on
2951 # some platforms.
2952 # Always define AMTAR for backward compatibility.
2953
2954 AMTAR=${AMTAR-"${am_missing_run}tar"}
2955
2956 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2957
2958
2959
2960
2961
2962
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2964 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2965     # Check whether --enable-maintainer-mode was given.
2966 if test "${enable_maintainer_mode+set}" = set; then :
2967   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2968 else
2969   USE_MAINTAINER_MODE=no
2970 fi
2971
2972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2973 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2974    if test $USE_MAINTAINER_MODE = yes; then
2975   MAINTAINER_MODE_TRUE=
2976   MAINTAINER_MODE_FALSE='#'
2977 else
2978   MAINTAINER_MODE_TRUE='#'
2979   MAINTAINER_MODE_FALSE=
2980 fi
2981
2982   MAINT=$MAINTAINER_MODE_TRUE
2983
2984
2985
2986 #
2987 # autoconf command-line options
2988 #
2989 # Check whether --enable-debug was given.
2990 if test "${enable_debug+set}" = set; then :
2991   enableval=$enable_debug; case "${enableval}" in
2992   yes) debugging="yes" ;;
2993   no)  debugging="no" ;;
2994   *) as_fn_error $? "bad value ${enableval} for --enable-debug" "$LINENO" 5 ;;
2995 esac
2996 fi
2997
2998
2999 # Check whether --enable-warnerror was given.
3000 if test "${enable_warnerror+set}" = set; then :
3001   enableval=$enable_warnerror; case "${enableval}" in
3002   yes) warnerror="yes" ;;
3003   no)  warnerror="no" ;;
3004   *) as_fn_error $? "bad value ${enableval} for --enable-warnerror" "$LINENO" 5 ;;
3005 esac
3006 fi
3007
3008
3009 # Check whether --enable-profiling was given.
3010 if test "${enable_profiling+set}" = set; then :
3011   enableval=$enable_profiling; case "${enableval}" in
3012   yes) profiling="yes" ;;
3013   no)  profiling="no" ;;
3014   *) as_fn_error $? "bad value ${enableval} for --enable-profiling" "$LINENO" 5 ;;
3015 esac
3016 fi
3017
3018
3019 # Check whether --enable-gcov was given.
3020 if test "${enable_gcov+set}" = set; then :
3021   enableval=$enable_gcov; case "${enableval}" in
3022   yes) gcov="yes" ;;
3023   no)  gcov="no" ;;
3024   *) as_fn_error $? "bad value ${enableval} for --enable-gcov" "$LINENO" 5 ;;
3025 esac
3026 fi
3027
3028
3029 # Check whether --enable-python was given.
3030 if test "${enable_python+set}" = set; then :
3031   enableval=$enable_python; case "${enableval}" in
3032   yes) enable_python="yes" ;;
3033   no)  enable_python="no" ;;
3034   *) as_fn_error $? "bad value ${enableval} for --enable-python" "$LINENO" 5 ;;
3035 esac
3036 else
3037   enable_python="auto"
3038 fi
3039
3040
3041 # Check whether --enable-python-bindings was given.
3042 if test "${enable_python_bindings+set}" = set; then :
3043   enableval=$enable_python_bindings; case "${enableval}" in
3044   yes) enable_python_bindings="yes" ;;
3045   no)  enable_python_bindings="no" ;;
3046   *) as_fn_error $? "bad value ${enableval} for --enable-python-bindings" "$LINENO" 5 ;;
3047 esac
3048 else
3049   enable_python_bindings="no"
3050 fi
3051
3052
3053 #
3054 # Checks for programs.
3055 #
3056 DEPDIR="${am__leading_dot}deps"
3057
3058 ac_config_commands="$ac_config_commands depfiles"
3059
3060
3061 am_make=${MAKE-make}
3062 cat > confinc << 'END'
3063 am__doit:
3064         @echo this is the am__doit target
3065 .PHONY: am__doit
3066 END
3067 # If we don't find an include directive, just comment out the code.
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3069 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3070 am__include="#"
3071 am__quote=
3072 _am_result=none
3073 # First try GNU make style include.
3074 echo "include confinc" > confmf
3075 # Ignore all kinds of additional output from `make'.
3076 case `$am_make -s -f confmf 2> /dev/null` in #(
3077 *the\ am__doit\ target*)
3078   am__include=include
3079   am__quote=
3080   _am_result=GNU
3081   ;;
3082 esac
3083 # Now try BSD make style include.
3084 if test "$am__include" = "#"; then
3085    echo '.include "confinc"' > confmf
3086    case `$am_make -s -f confmf 2> /dev/null` in #(
3087    *the\ am__doit\ target*)
3088      am__include=.include
3089      am__quote="\""
3090      _am_result=BSD
3091      ;;
3092    esac
3093 fi
3094
3095
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3097 $as_echo "$_am_result" >&6; }
3098 rm -f confinc confmf
3099
3100 # Check whether --enable-dependency-tracking was given.
3101 if test "${enable_dependency_tracking+set}" = set; then :
3102   enableval=$enable_dependency_tracking;
3103 fi
3104
3105 if test "x$enable_dependency_tracking" != xno; then
3106   am_depcomp="$ac_aux_dir/depcomp"
3107   AMDEPBACKSLASH='\'
3108 fi
3109  if test "x$enable_dependency_tracking" != xno; then
3110   AMDEP_TRUE=
3111   AMDEP_FALSE='#'
3112 else
3113   AMDEP_TRUE='#'
3114   AMDEP_FALSE=
3115 fi
3116
3117
3118 ac_ext=c
3119 ac_cpp='$CPP $CPPFLAGS'
3120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3123 if test -n "$ac_tool_prefix"; then
3124   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3125 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3127 $as_echo_n "checking for $ac_word... " >&6; }
3128 if ${ac_cv_prog_CC+:} false; then :
3129   $as_echo_n "(cached) " >&6
3130 else
3131   if test -n "$CC"; then
3132   ac_cv_prog_CC="$CC" # Let the user override the test.
3133 else
3134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3135 for as_dir in $PATH
3136 do
3137   IFS=$as_save_IFS
3138   test -z "$as_dir" && as_dir=.
3139     for ac_exec_ext in '' $ac_executable_extensions; do
3140   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3141     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3142     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3143     break 2
3144   fi
3145 done
3146   done
3147 IFS=$as_save_IFS
3148
3149 fi
3150 fi
3151 CC=$ac_cv_prog_CC
3152 if test -n "$CC"; then
3153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3154 $as_echo "$CC" >&6; }
3155 else
3156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3157 $as_echo "no" >&6; }
3158 fi
3159
3160
3161 fi
3162 if test -z "$ac_cv_prog_CC"; then
3163   ac_ct_CC=$CC
3164   # Extract the first word of "gcc", so it can be a program name with args.
3165 set dummy gcc; ac_word=$2
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3167 $as_echo_n "checking for $ac_word... " >&6; }
3168 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3169   $as_echo_n "(cached) " >&6
3170 else
3171   if test -n "$ac_ct_CC"; then
3172   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3173 else
3174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3175 for as_dir in $PATH
3176 do
3177   IFS=$as_save_IFS
3178   test -z "$as_dir" && as_dir=.
3179     for ac_exec_ext in '' $ac_executable_extensions; do
3180   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3181     ac_cv_prog_ac_ct_CC="gcc"
3182     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3183     break 2
3184   fi
3185 done
3186   done
3187 IFS=$as_save_IFS
3188
3189 fi
3190 fi
3191 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3192 if test -n "$ac_ct_CC"; then
3193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3194 $as_echo "$ac_ct_CC" >&6; }
3195 else
3196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3197 $as_echo "no" >&6; }
3198 fi
3199
3200   if test "x$ac_ct_CC" = x; then
3201     CC=""
3202   else
3203     case $cross_compiling:$ac_tool_warned in
3204 yes:)
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3206 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3207 ac_tool_warned=yes ;;
3208 esac
3209     CC=$ac_ct_CC
3210   fi
3211 else
3212   CC="$ac_cv_prog_CC"
3213 fi
3214
3215 if test -z "$CC"; then
3216           if test -n "$ac_tool_prefix"; then
3217     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3218 set dummy ${ac_tool_prefix}cc; ac_word=$2
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3220 $as_echo_n "checking for $ac_word... " >&6; }
3221 if ${ac_cv_prog_CC+:} false; then :
3222   $as_echo_n "(cached) " >&6
3223 else
3224   if test -n "$CC"; then
3225   ac_cv_prog_CC="$CC" # Let the user override the test.
3226 else
3227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3228 for as_dir in $PATH
3229 do
3230   IFS=$as_save_IFS
3231   test -z "$as_dir" && as_dir=.
3232     for ac_exec_ext in '' $ac_executable_extensions; do
3233   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3234     ac_cv_prog_CC="${ac_tool_prefix}cc"
3235     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3236     break 2
3237   fi
3238 done
3239   done
3240 IFS=$as_save_IFS
3241
3242 fi
3243 fi
3244 CC=$ac_cv_prog_CC
3245 if test -n "$CC"; then
3246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3247 $as_echo "$CC" >&6; }
3248 else
3249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3250 $as_echo "no" >&6; }
3251 fi
3252
3253
3254   fi
3255 fi
3256 if test -z "$CC"; then
3257   # Extract the first word of "cc", so it can be a program name with args.
3258 set dummy cc; ac_word=$2
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3260 $as_echo_n "checking for $ac_word... " >&6; }
3261 if ${ac_cv_prog_CC+:} false; then :
3262   $as_echo_n "(cached) " >&6
3263 else
3264   if test -n "$CC"; then
3265   ac_cv_prog_CC="$CC" # Let the user override the test.
3266 else
3267   ac_prog_rejected=no
3268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3269 for as_dir in $PATH
3270 do
3271   IFS=$as_save_IFS
3272   test -z "$as_dir" && as_dir=.
3273     for ac_exec_ext in '' $ac_executable_extensions; do
3274   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3275     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3276        ac_prog_rejected=yes
3277        continue
3278      fi
3279     ac_cv_prog_CC="cc"
3280     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3281     break 2
3282   fi
3283 done
3284   done
3285 IFS=$as_save_IFS
3286
3287 if test $ac_prog_rejected = yes; then
3288   # We found a bogon in the path, so make sure we never use it.
3289   set dummy $ac_cv_prog_CC
3290   shift
3291   if test $# != 0; then
3292     # We chose a different compiler from the bogus one.
3293     # However, it has the same basename, so the bogon will be chosen
3294     # first if we set CC to just the basename; use the full file name.
3295     shift
3296     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3297   fi
3298 fi
3299 fi
3300 fi
3301 CC=$ac_cv_prog_CC
3302 if test -n "$CC"; then
3303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3304 $as_echo "$CC" >&6; }
3305 else
3306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3307 $as_echo "no" >&6; }
3308 fi
3309
3310
3311 fi
3312 if test -z "$CC"; then
3313   if test -n "$ac_tool_prefix"; then
3314   for ac_prog in cl.exe
3315   do
3316     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3317 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3319 $as_echo_n "checking for $ac_word... " >&6; }
3320 if ${ac_cv_prog_CC+:} false; then :
3321   $as_echo_n "(cached) " >&6
3322 else
3323   if test -n "$CC"; then
3324   ac_cv_prog_CC="$CC" # Let the user override the test.
3325 else
3326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3327 for as_dir in $PATH
3328 do
3329   IFS=$as_save_IFS
3330   test -z "$as_dir" && as_dir=.
3331     for ac_exec_ext in '' $ac_executable_extensions; do
3332   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3333     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3334     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3335     break 2
3336   fi
3337 done
3338   done
3339 IFS=$as_save_IFS
3340
3341 fi
3342 fi
3343 CC=$ac_cv_prog_CC
3344 if test -n "$CC"; then
3345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3346 $as_echo "$CC" >&6; }
3347 else
3348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3349 $as_echo "no" >&6; }
3350 fi
3351
3352
3353     test -n "$CC" && break
3354   done
3355 fi
3356 if test -z "$CC"; then
3357   ac_ct_CC=$CC
3358   for ac_prog in cl.exe
3359 do
3360   # Extract the first word of "$ac_prog", so it can be a program name with args.
3361 set dummy $ac_prog; ac_word=$2
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3363 $as_echo_n "checking for $ac_word... " >&6; }
3364 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3365   $as_echo_n "(cached) " >&6
3366 else
3367   if test -n "$ac_ct_CC"; then
3368   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3369 else
3370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3371 for as_dir in $PATH
3372 do
3373   IFS=$as_save_IFS
3374   test -z "$as_dir" && as_dir=.
3375     for ac_exec_ext in '' $ac_executable_extensions; do
3376   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3377     ac_cv_prog_ac_ct_CC="$ac_prog"
3378     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3379     break 2
3380   fi
3381 done
3382   done
3383 IFS=$as_save_IFS
3384
3385 fi
3386 fi
3387 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3388 if test -n "$ac_ct_CC"; then
3389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3390 $as_echo "$ac_ct_CC" >&6; }
3391 else
3392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3393 $as_echo "no" >&6; }
3394 fi
3395
3396
3397   test -n "$ac_ct_CC" && break
3398 done
3399
3400   if test "x$ac_ct_CC" = x; then
3401     CC=""
3402   else
3403     case $cross_compiling:$ac_tool_warned in
3404 yes:)
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3406 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3407 ac_tool_warned=yes ;;
3408 esac
3409     CC=$ac_ct_CC
3410   fi
3411 fi
3412
3413 fi
3414
3415
3416 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3417 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3418 as_fn_error $? "no acceptable C compiler found in \$PATH
3419 See \`config.log' for more details" "$LINENO" 5; }
3420
3421 # Provide some information about the compiler.
3422 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3423 set X $ac_compile
3424 ac_compiler=$2
3425 for ac_option in --version -v -V -qversion; do
3426   { { ac_try="$ac_compiler $ac_option >&5"
3427 case "(($ac_try" in
3428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3429   *) ac_try_echo=$ac_try;;
3430 esac
3431 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3432 $as_echo "$ac_try_echo"; } >&5
3433   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3434   ac_status=$?
3435   if test -s conftest.err; then
3436     sed '10a\
3437 ... rest of stderr output deleted ...
3438          10q' conftest.err >conftest.er1
3439     cat conftest.er1 >&5
3440   fi
3441   rm -f conftest.er1 conftest.err
3442   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3443   test $ac_status = 0; }
3444 done
3445
3446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3447 /* end confdefs.h.  */
3448
3449 int
3450 main ()
3451 {
3452
3453   ;
3454   return 0;
3455 }
3456 _ACEOF
3457 ac_clean_files_save=$ac_clean_files
3458 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3459 # Try to create an executable without -o first, disregard a.out.
3460 # It will help us diagnose broken compilers, and finding out an intuition
3461 # of exeext.
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3463 $as_echo_n "checking whether the C compiler works... " >&6; }
3464 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3465
3466 # The possible output files:
3467 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3468
3469 ac_rmfiles=
3470 for ac_file in $ac_files
3471 do
3472   case $ac_file in
3473     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3474     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3475   esac
3476 done
3477 rm -f $ac_rmfiles
3478
3479 if { { ac_try="$ac_link_default"
3480 case "(($ac_try" in
3481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3482   *) ac_try_echo=$ac_try;;
3483 esac
3484 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3485 $as_echo "$ac_try_echo"; } >&5
3486   (eval "$ac_link_default") 2>&5
3487   ac_status=$?
3488   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3489   test $ac_status = 0; }; then :
3490   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3491 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3492 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3493 # so that the user can short-circuit this test for compilers unknown to
3494 # Autoconf.
3495 for ac_file in $ac_files ''
3496 do
3497   test -f "$ac_file" || continue
3498   case $ac_file in
3499     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3500         ;;
3501     [ab].out )
3502         # We found the default executable, but exeext='' is most
3503         # certainly right.
3504         break;;
3505     *.* )
3506         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3507         then :; else
3508            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3509         fi
3510         # We set ac_cv_exeext here because the later test for it is not
3511         # safe: cross compilers may not add the suffix if given an `-o'
3512         # argument, so we may need to know it at that point already.
3513         # Even if this section looks crufty: it has the advantage of
3514         # actually working.
3515         break;;
3516     * )
3517         break;;
3518   esac
3519 done
3520 test "$ac_cv_exeext" = no && ac_cv_exeext=
3521
3522 else
3523   ac_file=''
3524 fi
3525 if test -z "$ac_file"; then :
3526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3527 $as_echo "no" >&6; }
3528 $as_echo "$as_me: failed program was:" >&5
3529 sed 's/^/| /' conftest.$ac_ext >&5
3530
3531 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3532 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3533 as_fn_error 77 "C compiler cannot create executables
3534 See \`config.log' for more details" "$LINENO" 5; }
3535 else
3536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3537 $as_echo "yes" >&6; }
3538 fi
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3540 $as_echo_n "checking for C compiler default output file name... " >&6; }
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3542 $as_echo "$ac_file" >&6; }
3543 ac_exeext=$ac_cv_exeext
3544
3545 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3546 ac_clean_files=$ac_clean_files_save
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3548 $as_echo_n "checking for suffix of executables... " >&6; }
3549 if { { ac_try="$ac_link"
3550 case "(($ac_try" in
3551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3552   *) ac_try_echo=$ac_try;;
3553 esac
3554 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3555 $as_echo "$ac_try_echo"; } >&5
3556   (eval "$ac_link") 2>&5
3557   ac_status=$?
3558   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3559   test $ac_status = 0; }; then :
3560   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3561 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3562 # work properly (i.e., refer to `conftest.exe'), while it won't with
3563 # `rm'.
3564 for ac_file in conftest.exe conftest conftest.*; do
3565   test -f "$ac_file" || continue
3566   case $ac_file in
3567     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3568     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3569           break;;
3570     * ) break;;
3571   esac
3572 done
3573 else
3574   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3575 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3576 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3577 See \`config.log' for more details" "$LINENO" 5; }
3578 fi
3579 rm -f conftest conftest$ac_cv_exeext
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3581 $as_echo "$ac_cv_exeext" >&6; }
3582
3583 rm -f conftest.$ac_ext
3584 EXEEXT=$ac_cv_exeext
3585 ac_exeext=$EXEEXT
3586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3587 /* end confdefs.h.  */
3588 #include <stdio.h>
3589 int
3590 main ()
3591 {
3592 FILE *f = fopen ("conftest.out", "w");
3593  return ferror (f) || fclose (f) != 0;
3594
3595   ;
3596   return 0;
3597 }
3598 _ACEOF
3599 ac_clean_files="$ac_clean_files conftest.out"
3600 # Check that the compiler produces executables we can run.  If not, either
3601 # the compiler is broken, or we cross compile.
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3603 $as_echo_n "checking whether we are cross compiling... " >&6; }
3604 if test "$cross_compiling" != yes; then
3605   { { ac_try="$ac_link"
3606 case "(($ac_try" in
3607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3608   *) ac_try_echo=$ac_try;;
3609 esac
3610 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3611 $as_echo "$ac_try_echo"; } >&5
3612   (eval "$ac_link") 2>&5
3613   ac_status=$?
3614   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3615   test $ac_status = 0; }
3616   if { ac_try='./conftest$ac_cv_exeext'
3617   { { case "(($ac_try" in
3618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3619   *) ac_try_echo=$ac_try;;
3620 esac
3621 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3622 $as_echo "$ac_try_echo"; } >&5
3623   (eval "$ac_try") 2>&5
3624   ac_status=$?
3625   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3626   test $ac_status = 0; }; }; then
3627     cross_compiling=no
3628   else
3629     if test "$cross_compiling" = maybe; then
3630         cross_compiling=yes
3631     else
3632         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3633 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3634 as_fn_error $? "cannot run C compiled programs.
3635 If you meant to cross compile, use \`--host'.
3636 See \`config.log' for more details" "$LINENO" 5; }
3637     fi
3638   fi
3639 fi
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3641 $as_echo "$cross_compiling" >&6; }
3642
3643 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3644 ac_clean_files=$ac_clean_files_save
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3646 $as_echo_n "checking for suffix of object files... " >&6; }
3647 if ${ac_cv_objext+:} false; then :
3648   $as_echo_n "(cached) " >&6
3649 else
3650   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3651 /* end confdefs.h.  */
3652
3653 int
3654 main ()
3655 {
3656
3657   ;
3658   return 0;
3659 }
3660 _ACEOF
3661 rm -f conftest.o conftest.obj
3662 if { { ac_try="$ac_compile"
3663 case "(($ac_try" in
3664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3665   *) ac_try_echo=$ac_try;;
3666 esac
3667 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3668 $as_echo "$ac_try_echo"; } >&5
3669   (eval "$ac_compile") 2>&5
3670   ac_status=$?
3671   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3672   test $ac_status = 0; }; then :
3673   for ac_file in conftest.o conftest.obj conftest.*; do
3674   test -f "$ac_file" || continue;
3675   case $ac_file in
3676     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3677     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3678        break;;
3679   esac
3680 done
3681 else
3682   $as_echo "$as_me: failed program was:" >&5
3683 sed 's/^/| /' conftest.$ac_ext >&5
3684
3685 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3686 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3687 as_fn_error $? "cannot compute suffix of object files: cannot compile
3688 See \`config.log' for more details" "$LINENO" 5; }
3689 fi
3690 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3691 fi
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3693 $as_echo "$ac_cv_objext" >&6; }
3694 OBJEXT=$ac_cv_objext
3695 ac_objext=$OBJEXT
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3697 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3698 if ${ac_cv_c_compiler_gnu+:} false; then :
3699   $as_echo_n "(cached) " >&6
3700 else
3701   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3702 /* end confdefs.h.  */
3703
3704 int
3705 main ()
3706 {
3707 #ifndef __GNUC__
3708        choke me
3709 #endif
3710
3711   ;
3712   return 0;
3713 }
3714 _ACEOF
3715 if ac_fn_c_try_compile "$LINENO"; then :
3716   ac_compiler_gnu=yes
3717 else
3718   ac_compiler_gnu=no
3719 fi
3720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3721 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3722
3723 fi
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3725 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3726 if test $ac_compiler_gnu = yes; then
3727   GCC=yes
3728 else
3729   GCC=
3730 fi
3731 ac_test_CFLAGS=${CFLAGS+set}
3732 ac_save_CFLAGS=$CFLAGS
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3734 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3735 if ${ac_cv_prog_cc_g+:} false; then :
3736   $as_echo_n "(cached) " >&6
3737 else
3738   ac_save_c_werror_flag=$ac_c_werror_flag
3739    ac_c_werror_flag=yes
3740    ac_cv_prog_cc_g=no
3741    CFLAGS="-g"
3742    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3743 /* end confdefs.h.  */
3744
3745 int
3746 main ()
3747 {
3748
3749   ;
3750   return 0;
3751 }
3752 _ACEOF
3753 if ac_fn_c_try_compile "$LINENO"; then :
3754   ac_cv_prog_cc_g=yes
3755 else
3756   CFLAGS=""
3757       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3758 /* end confdefs.h.  */
3759
3760 int
3761 main ()
3762 {
3763
3764   ;
3765   return 0;
3766 }
3767 _ACEOF
3768 if ac_fn_c_try_compile "$LINENO"; then :
3769
3770 else
3771   ac_c_werror_flag=$ac_save_c_werror_flag
3772          CFLAGS="-g"
3773          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3774 /* end confdefs.h.  */
3775
3776 int
3777 main ()
3778 {
3779
3780   ;
3781   return 0;
3782 }
3783 _ACEOF
3784 if ac_fn_c_try_compile "$LINENO"; then :
3785   ac_cv_prog_cc_g=yes
3786 fi
3787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3788 fi
3789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3790 fi
3791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3792    ac_c_werror_flag=$ac_save_c_werror_flag
3793 fi
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3795 $as_echo "$ac_cv_prog_cc_g" >&6; }
3796 if test "$ac_test_CFLAGS" = set; then
3797   CFLAGS=$ac_save_CFLAGS
3798 elif test $ac_cv_prog_cc_g = yes; then
3799   if test "$GCC" = yes; then
3800     CFLAGS="-g -O2"
3801   else
3802     CFLAGS="-g"
3803   fi
3804 else
3805   if test "$GCC" = yes; then
3806     CFLAGS="-O2"
3807   else
3808     CFLAGS=
3809   fi
3810 fi
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3812 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3813 if ${ac_cv_prog_cc_c89+:} false; then :
3814   $as_echo_n "(cached) " >&6
3815 else
3816   ac_cv_prog_cc_c89=no
3817 ac_save_CC=$CC
3818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3819 /* end confdefs.h.  */
3820 #include <stdarg.h>
3821 #include <stdio.h>
3822 #include <sys/types.h>
3823 #include <sys/stat.h>
3824 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3825 struct buf { int x; };
3826 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3827 static char *e (p, i)
3828      char **p;
3829      int i;
3830 {
3831   return p[i];
3832 }
3833 static char *f (char * (*g) (char **, int), char **p, ...)
3834 {
3835   char *s;
3836   va_list v;
3837   va_start (v,p);
3838   s = g (p, va_arg (v,int));
3839   va_end (v);
3840   return s;
3841 }
3842
3843 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3844    function prototypes and stuff, but not '\xHH' hex character constants.
3845    These don't provoke an error unfortunately, instead are silently treated
3846    as 'x'.  The following induces an error, until -std is added to get
3847    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3848    array size at least.  It's necessary to write '\x00'==0 to get something
3849    that's true only with -std.  */
3850 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3851
3852 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3853    inside strings and character constants.  */
3854 #define FOO(x) 'x'
3855 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3856
3857 int test (int i, double x);
3858 struct s1 {int (*f) (int a);};
3859 struct s2 {int (*f) (double a);};
3860 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3861 int argc;
3862 char **argv;
3863 int
3864 main ()
3865 {
3866 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3867   ;
3868   return 0;
3869 }
3870 _ACEOF
3871 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3872         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3873 do
3874   CC="$ac_save_CC $ac_arg"
3875   if ac_fn_c_try_compile "$LINENO"; then :
3876   ac_cv_prog_cc_c89=$ac_arg
3877 fi
3878 rm -f core conftest.err conftest.$ac_objext
3879   test "x$ac_cv_prog_cc_c89" != "xno" && break
3880 done
3881 rm -f conftest.$ac_ext
3882 CC=$ac_save_CC
3883
3884 fi
3885 # AC_CACHE_VAL
3886 case "x$ac_cv_prog_cc_c89" in
3887   x)
3888     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3889 $as_echo "none needed" >&6; } ;;
3890   xno)
3891     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3892 $as_echo "unsupported" >&6; } ;;
3893   *)
3894     CC="$CC $ac_cv_prog_cc_c89"
3895     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3896 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3897 esac
3898 if test "x$ac_cv_prog_cc_c89" != xno; then :
3899
3900 fi
3901
3902 ac_ext=c
3903 ac_cpp='$CPP $CPPFLAGS'
3904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3907
3908 depcc="$CC"   am_compiler_list=
3909
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3911 $as_echo_n "checking dependency style of $depcc... " >&6; }
3912 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3913   $as_echo_n "(cached) " >&6
3914 else
3915   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3916   # We make a subdir and do the tests there.  Otherwise we can end up
3917   # making bogus files that we don't know about and never remove.  For
3918   # instance it was reported that on HP-UX the gcc test will end up
3919   # making a dummy file named `D' -- because `-MD' means `put the output
3920   # in D'.
3921   mkdir conftest.dir
3922   # Copy depcomp to subdir because otherwise we won't find it if we're
3923   # using a relative directory.
3924   cp "$am_depcomp" conftest.dir
3925   cd conftest.dir
3926   # We will build objects and dependencies in a subdirectory because
3927   # it helps to detect inapplicable dependency modes.  For instance
3928   # both Tru64's cc and ICC support -MD to output dependencies as a
3929   # side effect of compilation, but ICC will put the dependencies in
3930   # the current directory while Tru64 will put them in the object
3931   # directory.
3932   mkdir sub
3933
3934   am_cv_CC_dependencies_compiler_type=none
3935   if test "$am_compiler_list" = ""; then
3936      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3937   fi
3938   am__universal=false
3939   case " $depcc " in #(
3940      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3941      esac
3942
3943   for depmode in $am_compiler_list; do
3944     # Setup a source with many dependencies, because some compilers
3945     # like to wrap large dependency lists on column 80 (with \), and
3946     # we should not choose a depcomp mode which is confused by this.
3947     #
3948     # We need to recreate these files for each test, as the compiler may
3949     # overwrite some of them when testing with obscure command lines.
3950     # This happens at least with the AIX C compiler.
3951     : > sub/conftest.c
3952     for i in 1 2 3 4 5 6; do
3953       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3954       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3955       # Solaris 8's {/usr,}/bin/sh.
3956       touch sub/conftst$i.h
3957     done
3958     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3959
3960     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3961     # mode.  It turns out that the SunPro C++ compiler does not properly
3962     # handle `-M -o', and we need to detect this.  Also, some Intel
3963     # versions had trouble with output in subdirs
3964     am__obj=sub/conftest.${OBJEXT-o}
3965     am__minus_obj="-o $am__obj"
3966     case $depmode in
3967     gcc)
3968       # This depmode causes a compiler race in universal mode.
3969       test "$am__universal" = false || continue
3970       ;;
3971     nosideeffect)
3972       # after this tag, mechanisms are not by side-effect, so they'll
3973       # only be used when explicitly requested
3974       if test "x$enable_dependency_tracking" = xyes; then
3975         continue
3976       else
3977         break
3978       fi
3979       ;;
3980     msvisualcpp | msvcmsys)
3981       # This compiler won't grok `-c -o', but also, the minuso test has
3982       # not run yet.  These depmodes are late enough in the game, and
3983       # so weak that their functioning should not be impacted.
3984       am__obj=conftest.${OBJEXT-o}
3985       am__minus_obj=
3986       ;;
3987     none) break ;;
3988     esac
3989     if depmode=$depmode \
3990        source=sub/conftest.c object=$am__obj \
3991        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3992        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3993          >/dev/null 2>conftest.err &&
3994        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3995        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3996        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3997        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3998       # icc doesn't choke on unknown options, it will just issue warnings
3999       # or remarks (even with -Werror).  So we grep stderr for any message
4000       # that says an option was ignored or not supported.
4001       # When given -MP, icc 7.0 and 7.1 complain thusly:
4002       #   icc: Command line warning: ignoring option '-M'; no argument required
4003       # The diagnosis changed in icc 8.0:
4004       #   icc: Command line remark: option '-MP' not supported
4005       if (grep 'ignoring option' conftest.err ||
4006           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4007         am_cv_CC_dependencies_compiler_type=$depmode
4008         break
4009       fi
4010     fi
4011   done
4012
4013   cd ..
4014   rm -rf conftest.dir
4015 else
4016   am_cv_CC_dependencies_compiler_type=none
4017 fi
4018
4019 fi
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4021 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4022 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4023
4024  if
4025   test "x$enable_dependency_tracking" != xno \
4026   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4027   am__fastdepCC_TRUE=
4028   am__fastdepCC_FALSE='#'
4029 else
4030   am__fastdepCC_TRUE='#'
4031   am__fastdepCC_FALSE=
4032 fi
4033
4034
4035 ac_ext=c
4036 ac_cpp='$CPP $CPPFLAGS'
4037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4041 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4042 # On Suns, sometimes $CPP names a directory.
4043 if test -n "$CPP" && test -d "$CPP"; then
4044   CPP=
4045 fi
4046 if test -z "$CPP"; then
4047   if ${ac_cv_prog_CPP+:} false; then :
4048   $as_echo_n "(cached) " >&6
4049 else
4050       # Double quotes because CPP needs to be expanded
4051     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4052     do
4053       ac_preproc_ok=false
4054 for ac_c_preproc_warn_flag in '' yes
4055 do
4056   # Use a header file that comes with gcc, so configuring glibc
4057   # with a fresh cross-compiler works.
4058   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4059   # <limits.h> exists even on freestanding compilers.
4060   # On the NeXT, cc -E runs the code through the compiler's parser,
4061   # not just through cpp. "Syntax error" is here to catch this case.
4062   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4063 /* end confdefs.h.  */
4064 #ifdef __STDC__
4065 # include <limits.h>
4066 #else
4067 # include <assert.h>
4068 #endif
4069                      Syntax error
4070 _ACEOF
4071 if ac_fn_c_try_cpp "$LINENO"; then :
4072
4073 else
4074   # Broken: fails on valid input.
4075 continue
4076 fi
4077 rm -f conftest.err conftest.i conftest.$ac_ext
4078
4079   # OK, works on sane cases.  Now check whether nonexistent headers
4080   # can be detected and how.
4081   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4082 /* end confdefs.h.  */
4083 #include <ac_nonexistent.h>
4084 _ACEOF
4085 if ac_fn_c_try_cpp "$LINENO"; then :
4086   # Broken: success on invalid input.
4087 continue
4088 else
4089   # Passes both tests.
4090 ac_preproc_ok=:
4091 break
4092 fi
4093 rm -f conftest.err conftest.i conftest.$ac_ext
4094
4095 done
4096 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4097 rm -f conftest.i conftest.err conftest.$ac_ext
4098 if $ac_preproc_ok; then :
4099   break
4100 fi
4101
4102     done
4103     ac_cv_prog_CPP=$CPP
4104
4105 fi
4106   CPP=$ac_cv_prog_CPP
4107 else
4108   ac_cv_prog_CPP=$CPP
4109 fi
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4111 $as_echo "$CPP" >&6; }
4112 ac_preproc_ok=false
4113 for ac_c_preproc_warn_flag in '' yes
4114 do
4115   # Use a header file that comes with gcc, so configuring glibc
4116   # with a fresh cross-compiler works.
4117   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4118   # <limits.h> exists even on freestanding compilers.
4119   # On the NeXT, cc -E runs the code through the compiler's parser,
4120   # not just through cpp. "Syntax error" is here to catch this case.
4121   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4122 /* end confdefs.h.  */
4123 #ifdef __STDC__
4124 # include <limits.h>
4125 #else
4126 # include <assert.h>
4127 #endif
4128                      Syntax error
4129 _ACEOF
4130 if ac_fn_c_try_cpp "$LINENO"; then :
4131
4132 else
4133   # Broken: fails on valid input.
4134 continue
4135 fi
4136 rm -f conftest.err conftest.i conftest.$ac_ext
4137
4138   # OK, works on sane cases.  Now check whether nonexistent headers
4139   # can be detected and how.
4140   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4141 /* end confdefs.h.  */
4142 #include <ac_nonexistent.h>
4143 _ACEOF
4144 if ac_fn_c_try_cpp "$LINENO"; then :
4145   # Broken: success on invalid input.
4146 continue
4147 else
4148   # Passes both tests.
4149 ac_preproc_ok=:
4150 break
4151 fi
4152 rm -f conftest.err conftest.i conftest.$ac_ext
4153
4154 done
4155 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4156 rm -f conftest.i conftest.err conftest.$ac_ext
4157 if $ac_preproc_ok; then :
4158
4159 else
4160   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4161 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4162 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4163 See \`config.log' for more details" "$LINENO" 5; }
4164 fi
4165
4166 ac_ext=c
4167 ac_cpp='$CPP $CPPFLAGS'
4168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4171
4172    case $ac_cv_prog_cc_stdc in #(
4173   no) :
4174     ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
4175   *) :
4176     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4177 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4178 if ${ac_cv_prog_cc_c99+:} false; then :
4179   $as_echo_n "(cached) " >&6
4180 else
4181   ac_cv_prog_cc_c99=no
4182 ac_save_CC=$CC
4183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4184 /* end confdefs.h.  */
4185 #include <stdarg.h>
4186 #include <stdbool.h>
4187 #include <stdlib.h>
4188 #include <wchar.h>
4189 #include <stdio.h>
4190
4191 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
4192 #define debug(...) fprintf (stderr, __VA_ARGS__)
4193 #define showlist(...) puts (#__VA_ARGS__)
4194 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4195 static void
4196 test_varargs_macros (void)
4197 {
4198   int x = 1234;
4199   int y = 5678;
4200   debug ("Flag");
4201   debug ("X = %d\n", x);
4202   showlist (The first, second, and third items.);
4203   report (x>y, "x is %d but y is %d", x, y);
4204 }
4205
4206 // Check long long types.
4207 #define BIG64 18446744073709551615ull
4208 #define BIG32 4294967295ul
4209 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4210 #if !BIG_OK
4211   your preprocessor is broken;
4212 #endif
4213 #if BIG_OK
4214 #else
4215   your preprocessor is broken;
4216 #endif
4217 static long long int bignum = -9223372036854775807LL;
4218 static unsigned long long int ubignum = BIG64;
4219
4220 struct incomplete_array
4221 {
4222   int datasize;
4223   double data[];
4224 };
4225
4226 struct named_init {
4227   int number;
4228   const wchar_t *name;
4229   double average;
4230 };
4231
4232 typedef const char *ccp;
4233
4234 static inline int
4235 test_restrict (ccp restrict text)
4236 {
4237   // See if C++-style comments work.
4238   // Iterate through items via the restricted pointer.
4239   // Also check for declarations in for loops.
4240   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4241     continue;
4242   return 0;
4243 }
4244
4245 // Check varargs and va_copy.
4246 static void
4247 test_varargs (const char *format, ...)
4248 {
4249   va_list args;
4250   va_start (args, format);
4251   va_list args_copy;
4252   va_copy (args_copy, args);
4253
4254   const char *str;
4255   int number;
4256   float fnumber;
4257
4258   while (*format)
4259     {
4260       switch (*format++)
4261         {
4262         case 's': // string
4263           str = va_arg (args_copy, const char *);
4264           break;
4265         case 'd': // int
4266           number = va_arg (args_copy, int);
4267           break;
4268         case 'f': // float
4269           fnumber = va_arg (args_copy, double);
4270           break;
4271         default:
4272           break;
4273         }
4274     }
4275   va_end (args_copy);
4276   va_end (args);
4277 }
4278
4279 int
4280 main ()
4281 {
4282
4283   // Check bool.
4284   _Bool success = false;
4285
4286   // Check restrict.
4287   if (test_restrict ("String literal") == 0)
4288     success = true;
4289   char *restrict newvar = "Another string";
4290
4291   // Check varargs.
4292   test_varargs ("s, d' f .", "string", 65, 34.234);
4293   test_varargs_macros ();
4294
4295   // Check flexible array members.
4296   struct incomplete_array *ia =
4297     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4298   ia->datasize = 10;
4299   for (int i = 0; i < ia->datasize; ++i)
4300     ia->data[i] = i * 1.234;
4301
4302   // Check named initializers.
4303   struct named_init ni = {
4304     .number = 34,
4305     .name = L"Test wide string",
4306     .average = 543.34343,
4307   };
4308
4309   ni.number = 58;
4310
4311   int dynamic_array[ni.number];
4312   dynamic_array[ni.number - 1] = 543;
4313
4314   // work around unused variable warnings
4315   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4316           || dynamic_array[ni.number - 1] != 543);
4317
4318   ;
4319   return 0;
4320 }
4321 _ACEOF
4322 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4323 do
4324   CC="$ac_save_CC $ac_arg"
4325   if ac_fn_c_try_compile "$LINENO"; then :
4326   ac_cv_prog_cc_c99=$ac_arg
4327 fi
4328 rm -f core conftest.err conftest.$ac_objext
4329   test "x$ac_cv_prog_cc_c99" != "xno" && break
4330 done
4331 rm -f conftest.$ac_ext
4332 CC=$ac_save_CC
4333
4334 fi
4335 # AC_CACHE_VAL
4336 case "x$ac_cv_prog_cc_c99" in
4337   x)
4338     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4339 $as_echo "none needed" >&6; } ;;
4340   xno)
4341     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4342 $as_echo "unsupported" >&6; } ;;
4343   *)
4344     CC="$CC $ac_cv_prog_cc_c99"
4345     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4346 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4347 esac
4348 if test "x$ac_cv_prog_cc_c99" != xno; then :
4349   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4350 else
4351   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4352 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4353 if ${ac_cv_prog_cc_c89+:} false; then :
4354   $as_echo_n "(cached) " >&6
4355 else
4356   ac_cv_prog_cc_c89=no
4357 ac_save_CC=$CC
4358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4359 /* end confdefs.h.  */
4360 #include <stdarg.h>
4361 #include <stdio.h>
4362 #include <sys/types.h>
4363 #include <sys/stat.h>
4364 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4365 struct buf { int x; };
4366 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4367 static char *e (p, i)
4368      char **p;
4369      int i;
4370 {
4371   return p[i];
4372 }
4373 static char *f (char * (*g) (char **, int), char **p, ...)
4374 {
4375   char *s;
4376   va_list v;
4377   va_start (v,p);
4378   s = g (p, va_arg (v,int));
4379   va_end (v);
4380   return s;
4381 }
4382
4383 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4384    function prototypes and stuff, but not '\xHH' hex character constants.
4385    These don't provoke an error unfortunately, instead are silently treated
4386    as 'x'.  The following induces an error, until -std is added to get
4387    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4388    array size at least.  It's necessary to write '\x00'==0 to get something
4389    that's true only with -std.  */
4390 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4391
4392 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4393    inside strings and character constants.  */
4394 #define FOO(x) 'x'
4395 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4396
4397 int test (int i, double x);
4398 struct s1 {int (*f) (int a);};
4399 struct s2 {int (*f) (double a);};
4400 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4401 int argc;
4402 char **argv;
4403 int
4404 main ()
4405 {
4406 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4407   ;
4408   return 0;
4409 }
4410 _ACEOF
4411 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4412         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4413 do
4414   CC="$ac_save_CC $ac_arg"
4415   if ac_fn_c_try_compile "$LINENO"; then :
4416   ac_cv_prog_cc_c89=$ac_arg
4417 fi
4418 rm -f core conftest.err conftest.$ac_objext
4419   test "x$ac_cv_prog_cc_c89" != "xno" && break
4420 done
4421 rm -f conftest.$ac_ext
4422 CC=$ac_save_CC
4423
4424 fi
4425 # AC_CACHE_VAL
4426 case "x$ac_cv_prog_cc_c89" in
4427   x)
4428     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4429 $as_echo "none needed" >&6; } ;;
4430   xno)
4431     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4432 $as_echo "unsupported" >&6; } ;;
4433   *)
4434     CC="$CC $ac_cv_prog_cc_c89"
4435     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4436 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4437 esac
4438 if test "x$ac_cv_prog_cc_c89" != xno; then :
4439   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4440 else
4441   ac_cv_prog_cc_stdc=no
4442 fi
4443
4444 fi
4445  ;;
4446 esac
4447   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4448 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4449   if ${ac_cv_prog_cc_stdc+:} false; then :
4450   $as_echo_n "(cached) " >&6
4451 fi
4452
4453   case $ac_cv_prog_cc_stdc in #(
4454   no) :
4455     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4456 $as_echo "unsupported" >&6; } ;; #(
4457   '') :
4458     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4459 $as_echo "none needed" >&6; } ;; #(
4460   *) :
4461     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4462 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4463 esac
4464
4465
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4467 $as_echo_n "checking whether ln -s works... " >&6; }
4468 LN_S=$as_ln_s
4469 if test "$LN_S" = "ln -s"; then
4470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4471 $as_echo "yes" >&6; }
4472 else
4473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4474 $as_echo "no, using $LN_S" >&6; }
4475 fi
4476
4477 #automake default ARFLAGS to "cru"
4478 if test -n "$ac_tool_prefix"; then
4479   for ac_prog in $AR ar
4480   do
4481     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4482 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4484 $as_echo_n "checking for $ac_word... " >&6; }
4485 if ${ac_cv_prog_AR+:} false; then :
4486   $as_echo_n "(cached) " >&6
4487 else
4488   if test -n "$AR"; then
4489   ac_cv_prog_AR="$AR" # Let the user override the test.
4490 else
4491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4492 for as_dir in $PATH
4493 do
4494   IFS=$as_save_IFS
4495   test -z "$as_dir" && as_dir=.
4496     for ac_exec_ext in '' $ac_executable_extensions; do
4497   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4498     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4499     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4500     break 2
4501   fi
4502 done
4503   done
4504 IFS=$as_save_IFS
4505
4506 fi
4507 fi
4508 AR=$ac_cv_prog_AR
4509 if test -n "$AR"; then
4510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4511 $as_echo "$AR" >&6; }
4512 else
4513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4514 $as_echo "no" >&6; }
4515 fi
4516
4517
4518     test -n "$AR" && break
4519   done
4520 fi
4521 if test -z "$AR"; then
4522   ac_ct_AR=$AR
4523   for ac_prog in $AR ar
4524 do
4525   # Extract the first word of "$ac_prog", so it can be a program name with args.
4526 set dummy $ac_prog; ac_word=$2
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4528 $as_echo_n "checking for $ac_word... " >&6; }
4529 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4530   $as_echo_n "(cached) " >&6
4531 else
4532   if test -n "$ac_ct_AR"; then
4533   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4534 else
4535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4536 for as_dir in $PATH
4537 do
4538   IFS=$as_save_IFS
4539   test -z "$as_dir" && as_dir=.
4540     for ac_exec_ext in '' $ac_executable_extensions; do
4541   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4542     ac_cv_prog_ac_ct_AR="$ac_prog"
4543     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4544     break 2
4545   fi
4546 done
4547   done
4548 IFS=$as_save_IFS
4549
4550 fi
4551 fi
4552 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4553 if test -n "$ac_ct_AR"; then
4554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4555 $as_echo "$ac_ct_AR" >&6; }
4556 else
4557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4558 $as_echo "no" >&6; }
4559 fi
4560
4561
4562   test -n "$ac_ct_AR" && break
4563 done
4564
4565   if test "x$ac_ct_AR" = x; then
4566     AR="ar"
4567   else
4568     case $cross_compiling:$ac_tool_warned in
4569 yes:)
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4571 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4572 ac_tool_warned=yes ;;
4573 esac
4574     AR=$ac_ct_AR
4575   fi
4576 fi
4577
4578 if test -n "$ac_tool_prefix"; then
4579   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4580 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4582 $as_echo_n "checking for $ac_word... " >&6; }
4583 if ${ac_cv_prog_RANLIB+:} false; then :
4584   $as_echo_n "(cached) " >&6
4585 else
4586   if test -n "$RANLIB"; then
4587   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4588 else
4589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4590 for as_dir in $PATH
4591 do
4592   IFS=$as_save_IFS
4593   test -z "$as_dir" && as_dir=.
4594     for ac_exec_ext in '' $ac_executable_extensions; do
4595   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4596     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4597     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4598     break 2
4599   fi
4600 done
4601   done
4602 IFS=$as_save_IFS
4603
4604 fi
4605 fi
4606 RANLIB=$ac_cv_prog_RANLIB
4607 if test -n "$RANLIB"; then
4608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4609 $as_echo "$RANLIB" >&6; }
4610 else
4611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4612 $as_echo "no" >&6; }
4613 fi
4614
4615
4616 fi
4617 if test -z "$ac_cv_prog_RANLIB"; then
4618   ac_ct_RANLIB=$RANLIB
4619   # Extract the first word of "ranlib", so it can be a program name with args.
4620 set dummy ranlib; ac_word=$2
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4622 $as_echo_n "checking for $ac_word... " >&6; }
4623 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4624   $as_echo_n "(cached) " >&6
4625 else
4626   if test -n "$ac_ct_RANLIB"; then
4627   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4628 else
4629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630 for as_dir in $PATH
4631 do
4632   IFS=$as_save_IFS
4633   test -z "$as_dir" && as_dir=.
4634     for ac_exec_ext in '' $ac_executable_extensions; do
4635   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4636     ac_cv_prog_ac_ct_RANLIB="ranlib"
4637     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4638     break 2
4639   fi
4640 done
4641   done
4642 IFS=$as_save_IFS
4643
4644 fi
4645 fi
4646 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4647 if test -n "$ac_ct_RANLIB"; then
4648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4649 $as_echo "$ac_ct_RANLIB" >&6; }
4650 else
4651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4652 $as_echo "no" >&6; }
4653 fi
4654
4655   if test "x$ac_ct_RANLIB" = x; then
4656     RANLIB=":"
4657   else
4658     case $cross_compiling:$ac_tool_warned in
4659 yes:)
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4661 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4662 ac_tool_warned=yes ;;
4663 esac
4664     RANLIB=$ac_ct_RANLIB
4665   fi
4666 else
4667   RANLIB="$ac_cv_prog_RANLIB"
4668 fi
4669
4670
4671 # REQUIRE a standard (ANSI/ISO) C compiler
4672 if test "$ac_cv_prog_cc_stdc" = no; then
4673         as_fn_error $? "A standard (ANSI/ISO C89) C compiler is required." "$LINENO" 5
4674 fi
4675
4676 # Check for xmlto (for rendering manpages, needed only for development)
4677 for ac_prog in $XMLTO xmlto
4678 do
4679   # Extract the first word of "$ac_prog", so it can be a program name with args.
4680 set dummy $ac_prog; ac_word=$2
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4682 $as_echo_n "checking for $ac_word... " >&6; }
4683 if ${ac_cv_prog_XMLTO+:} false; then :
4684   $as_echo_n "(cached) " >&6
4685 else
4686   if test -n "$XMLTO"; then
4687   ac_cv_prog_XMLTO="$XMLTO" # Let the user override the test.
4688 else
4689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4690 for as_dir in $PATH
4691 do
4692   IFS=$as_save_IFS
4693   test -z "$as_dir" && as_dir=.
4694     for ac_exec_ext in '' $ac_executable_extensions; do
4695   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4696     ac_cv_prog_XMLTO="$ac_prog"
4697     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4698     break 2
4699   fi
4700 done
4701   done
4702 IFS=$as_save_IFS
4703
4704 fi
4705 fi
4706 XMLTO=$ac_cv_prog_XMLTO
4707 if test -n "$XMLTO"; then
4708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
4709 $as_echo "$XMLTO" >&6; }
4710 else
4711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4712 $as_echo "no" >&6; }
4713 fi
4714
4715
4716   test -n "$XMLTO" && break
4717 done
4718 test -n "$XMLTO" || XMLTO=":"
4719
4720 if test "$XMLTO" = ":"; then
4721   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found, manpages will not be rebuilt." >&5
4722 $as_echo "$as_me: WARNING: xmlto not found, manpages will not be rebuilt." >&2;}
4723 fi
4724  if test "$XMLTO" != ":"; then
4725   BUILD_MAN_TRUE=
4726   BUILD_MAN_FALSE='#'
4727 else
4728   BUILD_MAN_TRUE='#'
4729   BUILD_MAN_FALSE=
4730 fi
4731
4732
4733 # Check for compiler output filename suffixes.
4734
4735
4736
4737 #
4738 # Checks for libraries.
4739 #
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
4741 $as_echo_n "checking if malloc debugging is wanted... " >&6; }
4742
4743 # Check whether --with-dmalloc was given.
4744 if test "${with_dmalloc+set}" = set; then :
4745   withval=$with_dmalloc; if test "$withval" = yes; then
4746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4747 $as_echo "yes" >&6; }
4748
4749 $as_echo "#define WITH_DMALLOC 1" >>confdefs.h
4750
4751   LIBS="$LIBS -ldmalloc"
4752   LDFLAGS="$LDFLAGS -g"
4753 else
4754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4755 $as_echo "no" >&6; }
4756 fi
4757 else
4758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4759 $as_echo "no" >&6; }
4760 fi
4761
4762
4763
4764 #
4765 # Checks for header files.
4766 #
4767
4768
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4770 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4771 if ${ac_cv_path_GREP+:} false; then :
4772   $as_echo_n "(cached) " >&6
4773 else
4774   if test -z "$GREP"; then
4775   ac_path_GREP_found=false
4776   # Loop through the user's path and test for each of PROGNAME-LIST
4777   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4778 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4779 do
4780   IFS=$as_save_IFS
4781   test -z "$as_dir" && as_dir=.
4782     for ac_prog in grep ggrep; do
4783     for ac_exec_ext in '' $ac_executable_extensions; do
4784       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4785       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4786 # Check for GNU ac_path_GREP and select it if it is found.
4787   # Check for GNU $ac_path_GREP
4788 case `"$ac_path_GREP" --version 2>&1` in
4789 *GNU*)
4790   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4791 *)
4792   ac_count=0
4793   $as_echo_n 0123456789 >"conftest.in"
4794   while :
4795   do
4796     cat "conftest.in" "conftest.in" >"conftest.tmp"
4797     mv "conftest.tmp" "conftest.in"
4798     cp "conftest.in" "conftest.nl"
4799     $as_echo 'GREP' >> "conftest.nl"
4800     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4801     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4802     as_fn_arith $ac_count + 1 && ac_count=$as_val
4803     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4804       # Best one so far, save it but keep looking for a better one
4805       ac_cv_path_GREP="$ac_path_GREP"
4806       ac_path_GREP_max=$ac_count
4807     fi
4808     # 10*(2^10) chars as input seems more than enough
4809     test $ac_count -gt 10 && break
4810   done
4811   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4812 esac
4813
4814       $ac_path_GREP_found && break 3
4815     done
4816   done
4817   done
4818 IFS=$as_save_IFS
4819   if test -z "$ac_cv_path_GREP"; then
4820     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4821   fi
4822 else
4823   ac_cv_path_GREP=$GREP
4824 fi
4825
4826 fi
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4828 $as_echo "$ac_cv_path_GREP" >&6; }
4829  GREP="$ac_cv_path_GREP"
4830
4831
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4833 $as_echo_n "checking for egrep... " >&6; }
4834 if ${ac_cv_path_EGREP+:} false; then :
4835   $as_echo_n "(cached) " >&6
4836 else
4837   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4838    then ac_cv_path_EGREP="$GREP -E"
4839    else
4840      if test -z "$EGREP"; then
4841   ac_path_EGREP_found=false
4842   # Loop through the user's path and test for each of PROGNAME-LIST
4843   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4844 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4845 do
4846   IFS=$as_save_IFS
4847   test -z "$as_dir" && as_dir=.
4848     for ac_prog in egrep; do
4849     for ac_exec_ext in '' $ac_executable_extensions; do
4850       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4851       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4852 # Check for GNU ac_path_EGREP and select it if it is found.
4853   # Check for GNU $ac_path_EGREP
4854 case `"$ac_path_EGREP" --version 2>&1` in
4855 *GNU*)
4856   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4857 *)
4858   ac_count=0
4859   $as_echo_n 0123456789 >"conftest.in"
4860   while :
4861   do
4862     cat "conftest.in" "conftest.in" >"conftest.tmp"
4863     mv "conftest.tmp" "conftest.in"
4864     cp "conftest.in" "conftest.nl"
4865     $as_echo 'EGREP' >> "conftest.nl"
4866     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4867     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4868     as_fn_arith $ac_count + 1 && ac_count=$as_val
4869     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4870       # Best one so far, save it but keep looking for a better one
4871       ac_cv_path_EGREP="$ac_path_EGREP"
4872       ac_path_EGREP_max=$ac_count
4873     fi
4874     # 10*(2^10) chars as input seems more than enough
4875     test $ac_count -gt 10 && break
4876   done
4877   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4878 esac
4879
4880       $ac_path_EGREP_found && break 3
4881     done
4882   done
4883   done
4884 IFS=$as_save_IFS
4885   if test -z "$ac_cv_path_EGREP"; then
4886     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4887   fi
4888 else
4889   ac_cv_path_EGREP=$EGREP
4890 fi
4891
4892    fi
4893 fi
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4895 $as_echo "$ac_cv_path_EGREP" >&6; }
4896  EGREP="$ac_cv_path_EGREP"
4897
4898
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4900 $as_echo_n "checking for ANSI C header files... " >&6; }
4901 if ${ac_cv_header_stdc+:} false; then :
4902   $as_echo_n "(cached) " >&6
4903 else
4904   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4905 /* end confdefs.h.  */
4906 #include <stdlib.h>
4907 #include <stdarg.h>
4908 #include <string.h>
4909 #include <float.h>
4910
4911 int
4912 main ()
4913 {
4914
4915   ;
4916   return 0;
4917 }
4918 _ACEOF
4919 if ac_fn_c_try_compile "$LINENO"; then :
4920   ac_cv_header_stdc=yes
4921 else
4922   ac_cv_header_stdc=no
4923 fi
4924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4925
4926 if test $ac_cv_header_stdc = yes; then
4927   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4928   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4929 /* end confdefs.h.  */
4930 #include <string.h>
4931
4932 _ACEOF
4933 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4934   $EGREP "memchr" >/dev/null 2>&1; then :
4935
4936 else
4937   ac_cv_header_stdc=no
4938 fi
4939 rm -f conftest*
4940
4941 fi
4942
4943 if test $ac_cv_header_stdc = yes; then
4944   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4945   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4946 /* end confdefs.h.  */
4947 #include <stdlib.h>
4948
4949 _ACEOF
4950 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4951   $EGREP "free" >/dev/null 2>&1; then :
4952
4953 else
4954   ac_cv_header_stdc=no
4955 fi
4956 rm -f conftest*
4957
4958 fi
4959
4960 if test $ac_cv_header_stdc = yes; then
4961   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4962   if test "$cross_compiling" = yes; then :
4963   :
4964 else
4965   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4966 /* end confdefs.h.  */
4967 #include <ctype.h>
4968 #include <stdlib.h>
4969 #if ((' ' & 0x0FF) == 0x020)
4970 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4971 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4972 #else
4973 # define ISLOWER(c) \
4974                    (('a' <= (c) && (c) <= 'i') \
4975                      || ('j' <= (c) && (c) <= 'r') \
4976                      || ('s' <= (c) && (c) <= 'z'))
4977 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4978 #endif
4979
4980 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4981 int
4982 main ()
4983 {
4984   int i;
4985   for (i = 0; i < 256; i++)
4986     if (XOR (islower (i), ISLOWER (i))
4987         || toupper (i) != TOUPPER (i))
4988       return 2;
4989   return 0;
4990 }
4991 _ACEOF
4992 if ac_fn_c_try_run "$LINENO"; then :
4993
4994 else
4995   ac_cv_header_stdc=no
4996 fi
4997 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4998   conftest.$ac_objext conftest.beam conftest.$ac_ext
4999 fi
5000
5001 fi
5002 fi
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5004 $as_echo "$ac_cv_header_stdc" >&6; }
5005 if test $ac_cv_header_stdc = yes; then
5006
5007 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5008
5009 fi
5010
5011 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5012 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5013                   inttypes.h stdint.h unistd.h
5014 do :
5015   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5016 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5017 "
5018 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5019   cat >>confdefs.h <<_ACEOF
5020 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5021 _ACEOF
5022
5023 fi
5024
5025 done
5026
5027
5028 for ac_header in strings.h libgen.h unistd.h direct.h sys/stat.h
5029 do :
5030   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5031 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5032 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5033   cat >>confdefs.h <<_ACEOF
5034 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5035 _ACEOF
5036
5037 fi
5038
5039 done
5040
5041
5042 # REQUIRE standard C headers
5043 if test "$ac_cv_header_stdc" != yes; then
5044         as_fn_error $? "Standard (ANSI/ISO C89) header files are required." "$LINENO" 5
5045 fi
5046
5047 #
5048 # Checks for typedefs, structures, and compiler characteristics.
5049 #
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5051 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5052 if ${ac_cv_c_const+:} false; then :
5053   $as_echo_n "(cached) " >&6
5054 else
5055   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5056 /* end confdefs.h.  */
5057
5058 int
5059 main ()
5060 {
5061 /* FIXME: Include the comments suggested by Paul. */
5062 #ifndef __cplusplus
5063   /* Ultrix mips cc rejects this.  */
5064   typedef int charset[2];
5065   const charset cs;
5066   /* SunOS 4.1.1 cc rejects this.  */
5067   char const *const *pcpcc;
5068   char **ppc;
5069   /* NEC SVR4.0.2 mips cc rejects this.  */
5070   struct point {int x, y;};
5071   static struct point const zero = {0,0};
5072   /* AIX XL C 1.02.0.0 rejects this.
5073      It does not let you subtract one const X* pointer from another in
5074      an arm of an if-expression whose if-part is not a constant
5075      expression */
5076   const char *g = "string";
5077   pcpcc = &g + (g ? g-g : 0);
5078   /* HPUX 7.0 cc rejects these. */
5079   ++pcpcc;
5080   ppc = (char**) pcpcc;
5081   pcpcc = (char const *const *) ppc;
5082   { /* SCO 3.2v4 cc rejects this.  */
5083     char *t;
5084     char const *s = 0 ? (char *) 0 : (char const *) 0;
5085
5086     *t++ = 0;
5087     if (s) return 0;
5088   }
5089   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5090     int x[] = {25, 17};
5091     const int *foo = &x[0];
5092     ++foo;
5093   }
5094   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5095     typedef const int *iptr;
5096     iptr p = 0;
5097     ++p;
5098   }
5099   { /* AIX XL C 1.02.0.0 rejects this saying
5100        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5101     struct s { int j; const int *ap[3]; };
5102     struct s *b; b->j = 5;
5103   }
5104   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5105     const int foo = 10;
5106     if (!foo) return 0;
5107   }
5108   return !cs[0] && !zero.x;
5109 #endif
5110
5111   ;
5112   return 0;
5113 }
5114 _ACEOF
5115 if ac_fn_c_try_compile "$LINENO"; then :
5116   ac_cv_c_const=yes
5117 else
5118   ac_cv_c_const=no
5119 fi
5120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5121 fi
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5123 $as_echo "$ac_cv_c_const" >&6; }
5124 if test $ac_cv_c_const = no; then
5125
5126 $as_echo "#define const /**/" >>confdefs.h
5127
5128 fi
5129
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5131 $as_echo_n "checking for inline... " >&6; }
5132 if ${ac_cv_c_inline+:} false; then :
5133   $as_echo_n "(cached) " >&6
5134 else
5135   ac_cv_c_inline=no
5136 for ac_kw in inline __inline__ __inline; do
5137   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5138 /* end confdefs.h.  */
5139 #ifndef __cplusplus
5140 typedef int foo_t;
5141 static $ac_kw foo_t static_foo () {return 0; }
5142 $ac_kw foo_t foo () {return 0; }
5143 #endif
5144
5145 _ACEOF
5146 if ac_fn_c_try_compile "$LINENO"; then :
5147   ac_cv_c_inline=$ac_kw
5148 fi
5149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5150   test "$ac_cv_c_inline" != no && break
5151 done
5152
5153 fi
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5155 $as_echo "$ac_cv_c_inline" >&6; }
5156
5157 case $ac_cv_c_inline in
5158   inline | yes) ;;
5159   *)
5160     case $ac_cv_c_inline in
5161       no) ac_val=;;
5162       *) ac_val=$ac_cv_c_inline;;
5163     esac
5164     cat >>confdefs.h <<_ACEOF
5165 #ifndef __cplusplus
5166 #define inline $ac_val
5167 #endif
5168 _ACEOF
5169     ;;
5170 esac
5171
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
5173 $as_echo_n "checking for function prototypes... " >&6; }
5174 if test "$ac_cv_prog_cc_c89" != no; then
5175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5176 $as_echo "yes" >&6; }
5177
5178 $as_echo "#define PROTOTYPES 1" >>confdefs.h
5179
5180
5181 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
5182
5183 else
5184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5185 $as_echo "no" >&6; }
5186 fi
5187
5188 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5189 if test "x$ac_cv_type_size_t" = xyes; then :
5190
5191 else
5192
5193 cat >>confdefs.h <<_ACEOF
5194 #define size_t unsigned int
5195 _ACEOF
5196
5197 fi
5198
5199 # ------ AX CREATE STDINT H -------------------------------------
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint types" >&5
5201 $as_echo_n "checking for stdint types... " >&6; }
5202 ac_stdint_h=`echo libyasm-stdint.h`
5203 # try to shortcircuit - if the default include path of the compiler
5204 # can find a "stdint.h" header then we assume that all compilers can.
5205 if ${ac_cv_header_stdint_t+:} false; then :
5206   $as_echo_n "(cached) " >&6
5207 else
5208
5209 old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS=""
5210 old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS=""
5211 old_CFLAGS="$CFLAGS"     ; CFLAGS=""
5212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5213 /* end confdefs.h.  */
5214 #include <stdint.h>
5215 int
5216 main ()
5217 {
5218 int_least32_t v = 0;
5219   ;
5220   return 0;
5221 }
5222 _ACEOF
5223 if ac_fn_c_try_compile "$LINENO"; then :
5224   ac_cv_stdint_result="(assuming C99 compatible system)"
5225  ac_cv_header_stdint_t="stdint.h";
5226 else
5227   ac_cv_header_stdint_t=""
5228 fi
5229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5230 CXXFLAGS="$old_CXXFLAGS"
5231 CPPFLAGS="$old_CPPFLAGS"
5232 CFLAGS="$old_CFLAGS"
5233 fi
5234
5235
5236 v="... $ac_cv_header_stdint_h"
5237 if test "$ac_stdint_h" = "stdint.h" ; then
5238  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./stdint.h?)" >&5
5239 $as_echo "(are you sure you want them in ./stdint.h?)" >&6; }
5240 elif test "$ac_stdint_h" = "inttypes.h" ; then
5241  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./inttypes.h?)" >&5
5242 $as_echo "(are you sure you want them in ./inttypes.h?)" >&6; }
5243 elif test "_$ac_cv_header_stdint_t" = "_" ; then
5244  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (putting them into $ac_stdint_h)$v" >&5
5245 $as_echo "(putting them into $ac_stdint_h)$v" >&6; }
5246 else
5247  ac_cv_header_stdint="$ac_cv_header_stdint_t"
5248  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint (shortcircuit)" >&5
5249 $as_echo "$ac_cv_header_stdint (shortcircuit)" >&6; }
5250 fi
5251
5252 if test "_$ac_cv_header_stdint_t" = "_" ; then # can not shortcircuit..
5253
5254
5255 inttype_headers=`echo  | sed -e 's/,/ /g'`
5256
5257 ac_cv_stdint_result="(no helpful system typedefs seen)"
5258
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
5260 $as_echo_n "checking for stdint uintptr_t... " >&6; }
5261 if ${ac_cv_header_stdint_x+:} false; then :
5262   $as_echo_n "(cached) " >&6
5263 else
5264
5265  ac_cv_header_stdint_x="" # the 1997 typedefs (inttypes.h)
5266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
5267 $as_echo "(..)" >&6; }
5268   for i in    stdint.h inttypes.h sys/inttypes.h $inttype_headers ; do
5269    unset ac_cv_type_uintptr_t
5270    unset ac_cv_type_uint64_t
5271    ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <$i>
5272 "
5273 if test "x$ac_cv_type_uintptr_t" = xyes; then :
5274   ac_cv_header_stdint_x=$i
5275 else
5276   continue
5277 fi
5278
5279    ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
5280 "
5281 if test "x$ac_cv_type_uint64_t" = xyes; then :
5282   and64="/uint64_t"
5283 else
5284   and64=""
5285 fi
5286
5287    break;
5288   done
5289   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
5290 $as_echo_n "checking for stdint uintptr_t... " >&6; }
5291
5292 fi
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_x" >&5
5294 $as_echo "$ac_cv_header_stdint_x" >&6; }
5295
5296
5297 if test "_$ac_cv_header_stdint_x" = "_" ; then
5298
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
5300 $as_echo_n "checking for stdint uint32_t... " >&6; }
5301 if ${ac_cv_header_stdint_o+:} false; then :
5302   $as_echo_n "(cached) " >&6
5303 else
5304
5305  ac_cv_header_stdint_o="" # the 1995 typedefs (sys/inttypes.h)
5306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
5307 $as_echo "(..)" >&6; }
5308   for i in    inttypes.h sys/inttypes.h stdint.h $inttype_headers ; do
5309    unset ac_cv_type_uint32_t
5310    unset ac_cv_type_uint64_t
5311    ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <$i>
5312 "
5313 if test "x$ac_cv_type_uint32_t" = xyes; then :
5314   ac_cv_header_stdint_o=$i
5315 else
5316   continue
5317 fi
5318
5319    ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
5320 "
5321 if test "x$ac_cv_type_uint64_t" = xyes; then :
5322   and64="/uint64_t"
5323 else
5324   and64=""
5325 fi
5326
5327    break;
5328   done
5329   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
5330 $as_echo_n "checking for stdint uint32_t... " >&6; }
5331
5332 fi
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_o" >&5
5334 $as_echo "$ac_cv_header_stdint_o" >&6; }
5335
5336 fi
5337
5338 if test "_$ac_cv_header_stdint_x" = "_" ; then
5339 if test "_$ac_cv_header_stdint_o" = "_" ; then
5340
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
5342 $as_echo_n "checking for stdint u_int32_t... " >&6; }
5343 if ${ac_cv_header_stdint_u+:} false; then :
5344   $as_echo_n "(cached) " >&6
5345 else
5346
5347  ac_cv_header_stdint_u="" # the BSD typedefs (sys/types.h)
5348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
5349 $as_echo "(..)" >&6; }
5350   for i in    sys/types.h inttypes.h sys/inttypes.h $inttype_headers ; do
5351    unset ac_cv_type_u_int32_t
5352    unset ac_cv_type_u_int64_t
5353    ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <$i>
5354 "
5355 if test "x$ac_cv_type_u_int32_t" = xyes; then :
5356   ac_cv_header_stdint_u=$i
5357 else
5358   continue
5359 fi
5360
5361    ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include<$i>
5362 "
5363 if test "x$ac_cv_type_u_int64_t" = xyes; then :
5364   and64="/u_int64_t"
5365 else
5366   and64=""
5367 fi
5368
5369    break;
5370   done
5371   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
5372 $as_echo_n "checking for stdint u_int32_t... " >&6; }
5373
5374 fi
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_u" >&5
5376 $as_echo "$ac_cv_header_stdint_u" >&6; }
5377
5378 fi fi
5379
5380 if test "_$ac_cv_header_stdint_x" = "_" ; then
5381    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint datatype model" >&5
5382 $as_echo_n "checking for stdint datatype model... " >&6; }
5383    { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
5384 $as_echo "(..)" >&6; }
5385
5386    # The cast to long int works around a bug in the HP C Compiler
5387 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5388 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5389 # This bug is HP SR number 8606223364.
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
5391 $as_echo_n "checking size of char... " >&6; }
5392 if ${ac_cv_sizeof_char+:} false; then :
5393   $as_echo_n "(cached) " >&6
5394 else
5395   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
5396
5397 else
5398   if test "$ac_cv_type_char" = yes; then
5399      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5400 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5401 as_fn_error 77 "cannot compute sizeof (char)
5402 See \`config.log' for more details" "$LINENO" 5; }
5403    else
5404      ac_cv_sizeof_char=0
5405    fi
5406 fi
5407
5408 fi
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
5410 $as_echo "$ac_cv_sizeof_char" >&6; }
5411
5412
5413
5414 cat >>confdefs.h <<_ACEOF
5415 #define SIZEOF_CHAR $ac_cv_sizeof_char
5416 _ACEOF
5417
5418
5419    # The cast to long int works around a bug in the HP C Compiler
5420 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5421 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5422 # This bug is HP SR number 8606223364.
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5424 $as_echo_n "checking size of short... " >&6; }
5425 if ${ac_cv_sizeof_short+:} false; then :
5426   $as_echo_n "(cached) " >&6
5427 else
5428   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
5429
5430 else
5431   if test "$ac_cv_type_short" = yes; then
5432      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5433 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5434 as_fn_error 77 "cannot compute sizeof (short)
5435 See \`config.log' for more details" "$LINENO" 5; }
5436    else
5437      ac_cv_sizeof_short=0
5438    fi
5439 fi
5440
5441 fi
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5443 $as_echo "$ac_cv_sizeof_short" >&6; }
5444
5445
5446
5447 cat >>confdefs.h <<_ACEOF
5448 #define SIZEOF_SHORT $ac_cv_sizeof_short
5449 _ACEOF
5450
5451
5452    # The cast to long int works around a bug in the HP C Compiler
5453 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5454 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5455 # This bug is HP SR number 8606223364.
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5457 $as_echo_n "checking size of int... " >&6; }
5458 if ${ac_cv_sizeof_int+:} false; then :
5459   $as_echo_n "(cached) " >&6
5460 else
5461   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
5462
5463 else
5464   if test "$ac_cv_type_int" = yes; then
5465      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5466 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5467 as_fn_error 77 "cannot compute sizeof (int)
5468 See \`config.log' for more details" "$LINENO" 5; }
5469    else
5470      ac_cv_sizeof_int=0
5471    fi
5472 fi
5473
5474 fi
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5476 $as_echo "$ac_cv_sizeof_int" >&6; }
5477
5478
5479
5480 cat >>confdefs.h <<_ACEOF
5481 #define SIZEOF_INT $ac_cv_sizeof_int
5482 _ACEOF
5483
5484
5485    # The cast to long int works around a bug in the HP C Compiler
5486 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5487 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5488 # This bug is HP SR number 8606223364.
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5490 $as_echo_n "checking size of long... " >&6; }
5491 if ${ac_cv_sizeof_long+:} false; then :
5492   $as_echo_n "(cached) " >&6
5493 else
5494   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
5495
5496 else
5497   if test "$ac_cv_type_long" = yes; then
5498      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5499 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5500 as_fn_error 77 "cannot compute sizeof (long)
5501 See \`config.log' for more details" "$LINENO" 5; }
5502    else
5503      ac_cv_sizeof_long=0
5504    fi
5505 fi
5506
5507 fi
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5509 $as_echo "$ac_cv_sizeof_long" >&6; }
5510
5511
5512
5513 cat >>confdefs.h <<_ACEOF
5514 #define SIZEOF_LONG $ac_cv_sizeof_long
5515 _ACEOF
5516
5517
5518    # The cast to long int works around a bug in the HP C Compiler
5519 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5520 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5521 # This bug is HP SR number 8606223364.
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
5523 $as_echo_n "checking size of void*... " >&6; }
5524 if ${ac_cv_sizeof_voidp+:} false; then :
5525   $as_echo_n "(cached) " >&6
5526 else
5527   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp"        "$ac_includes_default"; then :
5528
5529 else
5530   if test "$ac_cv_type_voidp" = yes; then
5531      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5532 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5533 as_fn_error 77 "cannot compute sizeof (void*)
5534 See \`config.log' for more details" "$LINENO" 5; }
5535    else
5536      ac_cv_sizeof_voidp=0
5537    fi
5538 fi
5539
5540 fi
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
5542 $as_echo "$ac_cv_sizeof_voidp" >&6; }
5543
5544
5545
5546 cat >>confdefs.h <<_ACEOF
5547 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
5548 _ACEOF
5549
5550
5551    ac_cv_char_data_model=""
5552    ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_char"
5553    ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_short"
5554    ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_int"
5555    ac_cv_long_data_model=""
5556    ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_int"
5557    ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_long"
5558    ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_voidp"
5559    { $as_echo "$as_me:${as_lineno-$LINENO}: checking data model" >&5
5560 $as_echo_n "checking data model... " >&6; }
5561    case "$ac_cv_char_data_model/$ac_cv_long_data_model" in
5562     122/242)     ac_cv_data_model="IP16"  ; n="standard 16bit machine" ;;
5563     122/244)     ac_cv_data_model="LP32"  ; n="standard 32bit machine" ;;
5564     122/*)       ac_cv_data_model="i16"   ; n="unusual int16 model" ;;
5565     124/444)     ac_cv_data_model="ILP32" ; n="standard 32bit unixish" ;;
5566     124/488)     ac_cv_data_model="LP64"  ; n="standard 64bit unixish" ;;
5567     124/448)     ac_cv_data_model="LLP64" ; n="unusual 64bit unixish" ;;
5568     124/*)       ac_cv_data_model="i32"   ; n="unusual int32 model" ;;
5569     128/888)     ac_cv_data_model="ILP64" ; n="unusual 64bit numeric" ;;
5570     128/*)       ac_cv_data_model="i64"   ; n="unusual int64 model" ;;
5571     222/*2)      ac_cv_data_model="DSP16" ; n="strict 16bit dsptype" ;;
5572     333/*3)      ac_cv_data_model="DSP24" ; n="strict 24bit dsptype" ;;
5573     444/*4)      ac_cv_data_model="DSP32" ; n="strict 32bit dsptype" ;;
5574     666/*6)      ac_cv_data_model="DSP48" ; n="strict 48bit dsptype" ;;
5575     888/*8)      ac_cv_data_model="DSP64" ; n="strict 64bit dsptype" ;;
5576     222/*|333/*|444/*|666/*|888/*) :
5577                  ac_cv_data_model="iDSP"  ; n="unusual dsptype" ;;
5578      *)          ac_cv_data_model="none"  ; n="very unusual model" ;;
5579    esac
5580    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_data_model ($ac_cv_long_data_model, $n)" >&5
5581 $as_echo "$ac_cv_data_model ($ac_cv_long_data_model, $n)" >&6; }
5582
5583 fi
5584
5585 if test "_$ac_cv_header_stdint_x" != "_" ; then
5586    ac_cv_header_stdint="$ac_cv_header_stdint_x"
5587 elif  test "_$ac_cv_header_stdint_o" != "_" ; then
5588    ac_cv_header_stdint="$ac_cv_header_stdint_o"
5589 elif  test "_$ac_cv_header_stdint_u" != "_" ; then
5590    ac_cv_header_stdint="$ac_cv_header_stdint_u"
5591 else
5592    ac_cv_header_stdint="stddef.h"
5593 fi
5594
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra inttypes in chosen header" >&5
5596 $as_echo_n "checking for extra inttypes in chosen header... " >&6; }
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($ac_cv_header_stdint)" >&5
5598 $as_echo "($ac_cv_header_stdint)" >&6; }
5599 unset ac_cv_type_int_least32_t
5600 unset ac_cv_type_int_fast32_t
5601 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <$ac_cv_header_stdint>
5602 "
5603 if test "x$ac_cv_type_int_least32_t" = xyes; then :
5604
5605 fi
5606
5607 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include<$ac_cv_header_stdint>
5608 "
5609 if test "x$ac_cv_type_int_fast32_t" = xyes; then :
5610
5611 fi
5612
5613 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "#include <$ac_cv_header_stdint>
5614 "
5615 if test "x$ac_cv_type_intmax_t" = xyes; then :
5616
5617 fi
5618
5619
5620 fi # shortcircut to system "stdint.h"
5621 # ------------------ PREPARE VARIABLES ------------------------------
5622 #if test "$GCC" = "yes" ; then
5623 #ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1`
5624 #else
5625 ac_cv_stdint_message="using $CC"
5626 #fi
5627
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&5
5629 $as_echo "make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&6; }
5630
5631 # ----------------- DONE inttypes.h checks START header -------------
5632 ac_config_commands="$ac_config_commands $ac_stdint_h"
5633
5634
5635
5636 #
5637 # Checks for library functions.
5638 #
5639 for ac_func in abort toascii vsnprintf
5640 do :
5641   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5642 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5643 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5644   cat >>confdefs.h <<_ACEOF
5645 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5646 _ACEOF
5647
5648 fi
5649 done
5650
5651 for ac_func in strsep mergesort getcwd
5652 do :
5653   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5654 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5655 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5656   cat >>confdefs.h <<_ACEOF
5657 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5658 _ACEOF
5659
5660 fi
5661 done
5662
5663 for ac_func in popen ftruncate
5664 do :
5665   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5666 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5667 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5668   cat >>confdefs.h <<_ACEOF
5669 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5670 _ACEOF
5671
5672 fi
5673 done
5674
5675 # Look for the case-insensitive comparison functions
5676 for ac_func in strcasecmp strncasecmp stricmp _stricmp strcmpi
5677 do :
5678   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5679 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5680 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5681   cat >>confdefs.h <<_ACEOF
5682 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5683 _ACEOF
5684
5685 fi
5686 done
5687
5688
5689 #
5690 # Check for gettext() and other i18n/l10n things.
5691 #
5692 ALL_LINGUAS=""
5693
5694   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5695 $as_echo_n "checking whether NLS is requested... " >&6; }
5696     # Check whether --enable-nls was given.
5697 if test "${enable_nls+set}" = set; then :
5698   enableval=$enable_nls; USE_NLS=$enableval
5699 else
5700   USE_NLS=yes
5701 fi
5702
5703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5704 $as_echo "$USE_NLS" >&6; }
5705
5706
5707
5708
5709       GETTEXT_MACRO_VERSION=0.17
5710
5711
5712
5713
5714 # Prepare PATH_SEPARATOR.
5715 # The user is always right.
5716 if test "${PATH_SEPARATOR+set}" != set; then
5717   echo "#! /bin/sh" >conf$$.sh
5718   echo  "exit 0"   >>conf$$.sh
5719   chmod +x conf$$.sh
5720   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5721     PATH_SEPARATOR=';'
5722   else
5723     PATH_SEPARATOR=:
5724   fi
5725   rm -f conf$$.sh
5726 fi
5727
5728 # Find out how to test for executable files. Don't use a zero-byte file,
5729 # as systems may use methods other than mode bits to determine executability.
5730 cat >conf$$.file <<_ASEOF
5731 #! /bin/sh
5732 exit 0
5733 _ASEOF
5734 chmod +x conf$$.file
5735 if test -x conf$$.file >/dev/null 2>&1; then
5736   ac_executable_p="test -x"
5737 else
5738   ac_executable_p="test -f"
5739 fi
5740 rm -f conf$$.file
5741
5742 # Extract the first word of "msgfmt", so it can be a program name with args.
5743 set dummy msgfmt; ac_word=$2
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5745 $as_echo_n "checking for $ac_word... " >&6; }
5746 if ${ac_cv_path_MSGFMT+:} false; then :
5747   $as_echo_n "(cached) " >&6
5748 else
5749   case "$MSGFMT" in
5750   [\\/]* | ?:[\\/]*)
5751     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5752     ;;
5753   *)
5754     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5755     for ac_dir in $PATH; do
5756       IFS="$ac_save_IFS"
5757       test -z "$ac_dir" && ac_dir=.
5758       for ac_exec_ext in '' $ac_executable_extensions; do
5759         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5760           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5761           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
5762      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5763             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5764             break 2
5765           fi
5766         fi
5767       done
5768     done
5769     IFS="$ac_save_IFS"
5770   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5771     ;;
5772 esac
5773 fi
5774 MSGFMT="$ac_cv_path_MSGFMT"
5775 if test "$MSGFMT" != ":"; then
5776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5777 $as_echo "$MSGFMT" >&6; }
5778 else
5779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5780 $as_echo "no" >&6; }
5781 fi
5782
5783   # Extract the first word of "gmsgfmt", so it can be a program name with args.
5784 set dummy gmsgfmt; ac_word=$2
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5786 $as_echo_n "checking for $ac_word... " >&6; }
5787 if ${ac_cv_path_GMSGFMT+:} false; then :
5788   $as_echo_n "(cached) " >&6
5789 else
5790   case $GMSGFMT in
5791   [\\/]* | ?:[\\/]*)
5792   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5793   ;;
5794   *)
5795   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5796 for as_dir in $PATH
5797 do
5798   IFS=$as_save_IFS
5799   test -z "$as_dir" && as_dir=.
5800     for ac_exec_ext in '' $ac_executable_extensions; do
5801   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5802     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5803     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5804     break 2
5805   fi
5806 done
5807   done
5808 IFS=$as_save_IFS
5809
5810   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5811   ;;
5812 esac
5813 fi
5814 GMSGFMT=$ac_cv_path_GMSGFMT
5815 if test -n "$GMSGFMT"; then
5816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5817 $as_echo "$GMSGFMT" >&6; }
5818 else
5819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5820 $as_echo "no" >&6; }
5821 fi
5822
5823
5824
5825     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5826     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
5827     *) MSGFMT_015=$MSGFMT ;;
5828   esac
5829
5830   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5831     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
5832     *) GMSGFMT_015=$GMSGFMT ;;
5833   esac
5834
5835
5836
5837 # Prepare PATH_SEPARATOR.
5838 # The user is always right.
5839 if test "${PATH_SEPARATOR+set}" != set; then
5840   echo "#! /bin/sh" >conf$$.sh
5841   echo  "exit 0"   >>conf$$.sh
5842   chmod +x conf$$.sh
5843   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5844     PATH_SEPARATOR=';'
5845   else
5846     PATH_SEPARATOR=:
5847   fi
5848   rm -f conf$$.sh
5849 fi
5850
5851 # Find out how to test for executable files. Don't use a zero-byte file,
5852 # as systems may use methods other than mode bits to determine executability.
5853 cat >conf$$.file <<_ASEOF
5854 #! /bin/sh
5855 exit 0
5856 _ASEOF
5857 chmod +x conf$$.file
5858 if test -x conf$$.file >/dev/null 2>&1; then
5859   ac_executable_p="test -x"
5860 else
5861   ac_executable_p="test -f"
5862 fi
5863 rm -f conf$$.file
5864
5865 # Extract the first word of "xgettext", so it can be a program name with args.
5866 set dummy xgettext; ac_word=$2
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5868 $as_echo_n "checking for $ac_word... " >&6; }
5869 if ${ac_cv_path_XGETTEXT+:} false; then :
5870   $as_echo_n "(cached) " >&6
5871 else
5872   case "$XGETTEXT" in
5873   [\\/]* | ?:[\\/]*)
5874     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5875     ;;
5876   *)
5877     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5878     for ac_dir in $PATH; do
5879       IFS="$ac_save_IFS"
5880       test -z "$ac_dir" && ac_dir=.
5881       for ac_exec_ext in '' $ac_executable_extensions; do
5882         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5883           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5884           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5885      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5886             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5887             break 2
5888           fi
5889         fi
5890       done
5891     done
5892     IFS="$ac_save_IFS"
5893   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5894     ;;
5895 esac
5896 fi
5897 XGETTEXT="$ac_cv_path_XGETTEXT"
5898 if test "$XGETTEXT" != ":"; then
5899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
5900 $as_echo "$XGETTEXT" >&6; }
5901 else
5902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5903 $as_echo "no" >&6; }
5904 fi
5905
5906     rm -f messages.po
5907
5908     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5909     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
5910     *) XGETTEXT_015=$XGETTEXT ;;
5911   esac
5912
5913
5914
5915 # Prepare PATH_SEPARATOR.
5916 # The user is always right.
5917 if test "${PATH_SEPARATOR+set}" != set; then
5918   echo "#! /bin/sh" >conf$$.sh
5919   echo  "exit 0"   >>conf$$.sh
5920   chmod +x conf$$.sh
5921   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5922     PATH_SEPARATOR=';'
5923   else
5924     PATH_SEPARATOR=:
5925   fi
5926   rm -f conf$$.sh
5927 fi
5928
5929 # Find out how to test for executable files. Don't use a zero-byte file,
5930 # as systems may use methods other than mode bits to determine executability.
5931 cat >conf$$.file <<_ASEOF
5932 #! /bin/sh
5933 exit 0
5934 _ASEOF
5935 chmod +x conf$$.file
5936 if test -x conf$$.file >/dev/null 2>&1; then
5937   ac_executable_p="test -x"
5938 else
5939   ac_executable_p="test -f"
5940 fi
5941 rm -f conf$$.file
5942
5943 # Extract the first word of "msgmerge", so it can be a program name with args.
5944 set dummy msgmerge; ac_word=$2
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5946 $as_echo_n "checking for $ac_word... " >&6; }
5947 if ${ac_cv_path_MSGMERGE+:} false; then :
5948   $as_echo_n "(cached) " >&6
5949 else
5950   case "$MSGMERGE" in
5951   [\\/]* | ?:[\\/]*)
5952     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5953     ;;
5954   *)
5955     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5956     for ac_dir in $PATH; do
5957       IFS="$ac_save_IFS"
5958       test -z "$ac_dir" && ac_dir=.
5959       for ac_exec_ext in '' $ac_executable_extensions; do
5960         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5961           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5962           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
5963             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5964             break 2
5965           fi
5966         fi
5967       done
5968     done
5969     IFS="$ac_save_IFS"
5970   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5971     ;;
5972 esac
5973 fi
5974 MSGMERGE="$ac_cv_path_MSGMERGE"
5975 if test "$MSGMERGE" != ":"; then
5976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
5977 $as_echo "$MSGMERGE" >&6; }
5978 else
5979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5980 $as_echo "no" >&6; }
5981 fi
5982
5983
5984         test -n "$localedir" || localedir='${datadir}/locale'
5985
5986
5987     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
5988
5989
5990   ac_config_commands="$ac_config_commands po-directories"
5991
5992
5993
5994       if test "X$prefix" = "XNONE"; then
5995     acl_final_prefix="$ac_default_prefix"
5996   else
5997     acl_final_prefix="$prefix"
5998   fi
5999   if test "X$exec_prefix" = "XNONE"; then
6000     acl_final_exec_prefix='${prefix}'
6001   else
6002     acl_final_exec_prefix="$exec_prefix"
6003   fi
6004   acl_save_prefix="$prefix"
6005   prefix="$acl_final_prefix"
6006   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6007   prefix="$acl_save_prefix"
6008
6009 # Make sure we can run config.sub.
6010 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6011   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6012
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6014 $as_echo_n "checking build system type... " >&6; }
6015 if ${ac_cv_build+:} false; then :
6016   $as_echo_n "(cached) " >&6
6017 else
6018   ac_build_alias=$build_alias
6019 test "x$ac_build_alias" = x &&
6020   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6021 test "x$ac_build_alias" = x &&
6022   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6023 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6024   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6025
6026 fi
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6028 $as_echo "$ac_cv_build" >&6; }
6029 case $ac_cv_build in
6030 *-*-*) ;;
6031 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6032 esac
6033 build=$ac_cv_build
6034 ac_save_IFS=$IFS; IFS='-'
6035 set x $ac_cv_build
6036 shift
6037 build_cpu=$1
6038 build_vendor=$2
6039 shift; shift
6040 # Remember, the first character of IFS is used to create $*,
6041 # except with old shells:
6042 build_os=$*
6043 IFS=$ac_save_IFS
6044 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6045
6046
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6048 $as_echo_n "checking host system type... " >&6; }
6049 if ${ac_cv_host+:} false; then :
6050   $as_echo_n "(cached) " >&6
6051 else
6052   if test "x$host_alias" = x; then
6053   ac_cv_host=$ac_cv_build
6054 else
6055   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6056     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6057 fi
6058
6059 fi
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6061 $as_echo "$ac_cv_host" >&6; }
6062 case $ac_cv_host in
6063 *-*-*) ;;
6064 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6065 esac
6066 host=$ac_cv_host
6067 ac_save_IFS=$IFS; IFS='-'
6068 set x $ac_cv_host
6069 shift
6070 host_cpu=$1
6071 host_vendor=$2
6072 shift; shift
6073 # Remember, the first character of IFS is used to create $*,
6074 # except with old shells:
6075 host_os=$*
6076 IFS=$ac_save_IFS
6077 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6078
6079
6080
6081 # Check whether --with-gnu-ld was given.
6082 if test "${with_gnu_ld+set}" = set; then :
6083   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6084 else
6085   with_gnu_ld=no
6086 fi
6087
6088 # Prepare PATH_SEPARATOR.
6089 # The user is always right.
6090 if test "${PATH_SEPARATOR+set}" != set; then
6091   echo "#! /bin/sh" >conf$$.sh
6092   echo  "exit 0"   >>conf$$.sh
6093   chmod +x conf$$.sh
6094   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6095     PATH_SEPARATOR=';'
6096   else
6097     PATH_SEPARATOR=:
6098   fi
6099   rm -f conf$$.sh
6100 fi
6101 ac_prog=ld
6102 if test "$GCC" = yes; then
6103   # Check if gcc -print-prog-name=ld gives a path.
6104   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
6105 $as_echo_n "checking for ld used by GCC... " >&6; }
6106   case $host in
6107   *-*-mingw*)
6108     # gcc leaves a trailing carriage return which upsets mingw
6109     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6110   *)
6111     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6112   esac
6113   case $ac_prog in
6114     # Accept absolute paths.
6115     [\\/]* | [A-Za-z]:[\\/]*)
6116       re_direlt='/[^/][^/]*/\.\./'
6117       # Canonicalize the path of ld
6118       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6119       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6120         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6121       done
6122       test -z "$LD" && LD="$ac_prog"
6123       ;;
6124   "")
6125     # If it fails, then pretend we aren't using GCC.
6126     ac_prog=ld
6127     ;;
6128   *)
6129     # If it is relative, then search for the first ld in PATH.
6130     with_gnu_ld=unknown
6131     ;;
6132   esac
6133 elif test "$with_gnu_ld" = yes; then
6134   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6135 $as_echo_n "checking for GNU ld... " >&6; }
6136 else
6137   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6138 $as_echo_n "checking for non-GNU ld... " >&6; }
6139 fi
6140 if ${acl_cv_path_LD+:} false; then :
6141   $as_echo_n "(cached) " >&6
6142 else
6143   if test -z "$LD"; then
6144   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6145   for ac_dir in $PATH; do
6146     test -z "$ac_dir" && ac_dir=.
6147     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6148       acl_cv_path_LD="$ac_dir/$ac_prog"
6149       # Check to see if the program is GNU ld.  I'd rather use --version,
6150       # but apparently some GNU ld's only accept -v.
6151       # Break only if it was the GNU/non-GNU ld that we prefer.
6152       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
6153       *GNU* | *'with BFD'*)
6154         test "$with_gnu_ld" != no && break ;;
6155       *)
6156         test "$with_gnu_ld" != yes && break ;;
6157       esac
6158     fi
6159   done
6160   IFS="$ac_save_ifs"
6161 else
6162   acl_cv_path_LD="$LD" # Let the user override the test with a path.
6163 fi
6164 fi
6165
6166 LD="$acl_cv_path_LD"
6167 if test -n "$LD"; then
6168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6169 $as_echo "$LD" >&6; }
6170 else
6171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6172 $as_echo "no" >&6; }
6173 fi
6174 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6176 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6177 if ${acl_cv_prog_gnu_ld+:} false; then :
6178   $as_echo_n "(cached) " >&6
6179 else
6180   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6181 case `$LD -v 2>&1 </dev/null` in
6182 *GNU* | *'with BFD'*)
6183   acl_cv_prog_gnu_ld=yes ;;
6184 *)
6185   acl_cv_prog_gnu_ld=no ;;
6186 esac
6187 fi
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
6189 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
6190 with_gnu_ld=$acl_cv_prog_gnu_ld
6191
6192
6193
6194
6195                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
6196 $as_echo_n "checking for shared library run path origin... " >&6; }
6197 if ${acl_cv_rpath+:} false; then :
6198   $as_echo_n "(cached) " >&6
6199 else
6200
6201     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6202     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6203     . ./conftest.sh
6204     rm -f ./conftest.sh
6205     acl_cv_rpath=done
6206
6207 fi
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
6209 $as_echo "$acl_cv_rpath" >&6; }
6210   wl="$acl_cv_wl"
6211   acl_libext="$acl_cv_libext"
6212   acl_shlibext="$acl_cv_shlibext"
6213   acl_libname_spec="$acl_cv_libname_spec"
6214   acl_library_names_spec="$acl_cv_library_names_spec"
6215   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6216   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6217   acl_hardcode_direct="$acl_cv_hardcode_direct"
6218   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
6219     # Check whether --enable-rpath was given.
6220 if test "${enable_rpath+set}" = set; then :
6221   enableval=$enable_rpath; :
6222 else
6223   enable_rpath=yes
6224 fi
6225
6226
6227
6228                   acl_libdirstem=lib
6229   searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
6230   if test -n "$searchpath"; then
6231     acl_save_IFS="${IFS=        }"; IFS=":"
6232     for searchdir in $searchpath; do
6233       if test -d "$searchdir"; then
6234         case "$searchdir" in
6235           */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
6236           *) searchdir=`cd "$searchdir" && pwd`
6237              case "$searchdir" in
6238                */lib64 ) acl_libdirstem=lib64 ;;
6239              esac ;;
6240         esac
6241       fi
6242     done
6243     IFS="$acl_save_IFS"
6244   fi
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254     use_additional=yes
6255
6256   acl_save_prefix="$prefix"
6257   prefix="$acl_final_prefix"
6258   acl_save_exec_prefix="$exec_prefix"
6259   exec_prefix="$acl_final_exec_prefix"
6260
6261     eval additional_includedir=\"$includedir\"
6262     eval additional_libdir=\"$libdir\"
6263
6264   exec_prefix="$acl_save_exec_prefix"
6265   prefix="$acl_save_prefix"
6266
6267
6268 # Check whether --with-libiconv-prefix was given.
6269 if test "${with_libiconv_prefix+set}" = set; then :
6270   withval=$with_libiconv_prefix;
6271     if test "X$withval" = "Xno"; then
6272       use_additional=no
6273     else
6274       if test "X$withval" = "X"; then
6275
6276   acl_save_prefix="$prefix"
6277   prefix="$acl_final_prefix"
6278   acl_save_exec_prefix="$exec_prefix"
6279   exec_prefix="$acl_final_exec_prefix"
6280
6281           eval additional_includedir=\"$includedir\"
6282           eval additional_libdir=\"$libdir\"
6283
6284   exec_prefix="$acl_save_exec_prefix"
6285   prefix="$acl_save_prefix"
6286
6287       else
6288         additional_includedir="$withval/include"
6289         additional_libdir="$withval/$acl_libdirstem"
6290       fi
6291     fi
6292
6293 fi
6294
6295       LIBICONV=
6296   LTLIBICONV=
6297   INCICONV=
6298   LIBICONV_PREFIX=
6299   rpathdirs=
6300   ltrpathdirs=
6301   names_already_handled=
6302   names_next_round='iconv '
6303   while test -n "$names_next_round"; do
6304     names_this_round="$names_next_round"
6305     names_next_round=
6306     for name in $names_this_round; do
6307       already_handled=
6308       for n in $names_already_handled; do
6309         if test "$n" = "$name"; then
6310           already_handled=yes
6311           break
6312         fi
6313       done
6314       if test -z "$already_handled"; then
6315         names_already_handled="$names_already_handled $name"
6316                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6317         eval value=\"\$HAVE_LIB$uppername\"
6318         if test -n "$value"; then
6319           if test "$value" = yes; then
6320             eval value=\"\$LIB$uppername\"
6321             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6322             eval value=\"\$LTLIB$uppername\"
6323             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6324           else
6325                                     :
6326           fi
6327         else
6328                               found_dir=
6329           found_la=
6330           found_so=
6331           found_a=
6332           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
6333           if test -n "$acl_shlibext"; then
6334             shrext=".$acl_shlibext"             # typically: shrext=.so
6335           else
6336             shrext=
6337           fi
6338           if test $use_additional = yes; then
6339             dir="$additional_libdir"
6340                                     if test -n "$acl_shlibext"; then
6341               if test -f "$dir/$libname$shrext"; then
6342                 found_dir="$dir"
6343                 found_so="$dir/$libname$shrext"
6344               else
6345                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6346                   ver=`(cd "$dir" && \
6347                         for f in "$libname$shrext".*; do echo "$f"; done \
6348                         | sed -e "s,^$libname$shrext\\\\.,," \
6349                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6350                         | sed 1q ) 2>/dev/null`
6351                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6352                     found_dir="$dir"
6353                     found_so="$dir/$libname$shrext.$ver"
6354                   fi
6355                 else
6356                   eval library_names=\"$acl_library_names_spec\"
6357                   for f in $library_names; do
6358                     if test -f "$dir/$f"; then
6359                       found_dir="$dir"
6360                       found_so="$dir/$f"
6361                       break
6362                     fi
6363                   done
6364                 fi
6365               fi
6366             fi
6367                         if test "X$found_dir" = "X"; then
6368               if test -f "$dir/$libname.$acl_libext"; then
6369                 found_dir="$dir"
6370                 found_a="$dir/$libname.$acl_libext"
6371               fi
6372             fi
6373             if test "X$found_dir" != "X"; then
6374               if test -f "$dir/$libname.la"; then
6375                 found_la="$dir/$libname.la"
6376               fi
6377             fi
6378           fi
6379           if test "X$found_dir" = "X"; then
6380             for x in $LDFLAGS $LTLIBICONV; do
6381
6382   acl_save_prefix="$prefix"
6383   prefix="$acl_final_prefix"
6384   acl_save_exec_prefix="$exec_prefix"
6385   exec_prefix="$acl_final_exec_prefix"
6386   eval x=\"$x\"
6387   exec_prefix="$acl_save_exec_prefix"
6388   prefix="$acl_save_prefix"
6389
6390               case "$x" in
6391                 -L*)
6392                   dir=`echo "X$x" | sed -e 's/^X-L//'`
6393                                     if test -n "$acl_shlibext"; then
6394                     if test -f "$dir/$libname$shrext"; then
6395                       found_dir="$dir"
6396                       found_so="$dir/$libname$shrext"
6397                     else
6398                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6399                         ver=`(cd "$dir" && \
6400                               for f in "$libname$shrext".*; do echo "$f"; done \
6401                               | sed -e "s,^$libname$shrext\\\\.,," \
6402                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6403                               | sed 1q ) 2>/dev/null`
6404                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6405                           found_dir="$dir"
6406                           found_so="$dir/$libname$shrext.$ver"
6407                         fi
6408                       else
6409                         eval library_names=\"$acl_library_names_spec\"
6410                         for f in $library_names; do
6411                           if test -f "$dir/$f"; then
6412                             found_dir="$dir"
6413                             found_so="$dir/$f"
6414                             break
6415                           fi
6416                         done
6417                       fi
6418                     fi
6419                   fi
6420                                     if test "X$found_dir" = "X"; then
6421                     if test -f "$dir/$libname.$acl_libext"; then
6422                       found_dir="$dir"
6423                       found_a="$dir/$libname.$acl_libext"
6424                     fi
6425                   fi
6426                   if test "X$found_dir" != "X"; then
6427                     if test -f "$dir/$libname.la"; then
6428                       found_la="$dir/$libname.la"
6429                     fi
6430                   fi
6431                   ;;
6432               esac
6433               if test "X$found_dir" != "X"; then
6434                 break
6435               fi
6436             done
6437           fi
6438           if test "X$found_dir" != "X"; then
6439                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6440             if test "X$found_so" != "X"; then
6441                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
6442                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6443               else
6444                                                                                 haveit=
6445                 for x in $ltrpathdirs; do
6446                   if test "X$x" = "X$found_dir"; then
6447                     haveit=yes
6448                     break
6449                   fi
6450                 done
6451                 if test -z "$haveit"; then
6452                   ltrpathdirs="$ltrpathdirs $found_dir"
6453                 fi
6454                                 if test "$acl_hardcode_direct" = yes; then
6455                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6456                 else
6457                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
6458                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6459                                                             haveit=
6460                     for x in $rpathdirs; do
6461                       if test "X$x" = "X$found_dir"; then
6462                         haveit=yes
6463                         break
6464                       fi
6465                     done
6466                     if test -z "$haveit"; then
6467                       rpathdirs="$rpathdirs $found_dir"
6468                     fi
6469                   else
6470                                                                                 haveit=
6471                     for x in $LDFLAGS $LIBICONV; do
6472
6473   acl_save_prefix="$prefix"
6474   prefix="$acl_final_prefix"
6475   acl_save_exec_prefix="$exec_prefix"
6476   exec_prefix="$acl_final_exec_prefix"
6477   eval x=\"$x\"
6478   exec_prefix="$acl_save_exec_prefix"
6479   prefix="$acl_save_prefix"
6480
6481                       if test "X$x" = "X-L$found_dir"; then
6482                         haveit=yes
6483                         break
6484                       fi
6485                     done
6486                     if test -z "$haveit"; then
6487                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6488                     fi
6489                     if test "$acl_hardcode_minus_L" != no; then
6490                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6491                     else
6492                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6493                     fi
6494                   fi
6495                 fi
6496               fi
6497             else
6498               if test "X$found_a" != "X"; then
6499                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6500               else
6501                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6502               fi
6503             fi
6504                         additional_includedir=
6505             case "$found_dir" in
6506               */$acl_libdirstem | */$acl_libdirstem/)
6507                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6508                 LIBICONV_PREFIX="$basedir"
6509                 additional_includedir="$basedir/include"
6510                 ;;
6511             esac
6512             if test "X$additional_includedir" != "X"; then
6513                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
6514                 haveit=
6515                 if test "X$additional_includedir" = "X/usr/local/include"; then
6516                   if test -n "$GCC"; then
6517                     case $host_os in
6518                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6519                     esac
6520                   fi
6521                 fi
6522                 if test -z "$haveit"; then
6523                   for x in $CPPFLAGS $INCICONV; do
6524
6525   acl_save_prefix="$prefix"
6526   prefix="$acl_final_prefix"
6527   acl_save_exec_prefix="$exec_prefix"
6528   exec_prefix="$acl_final_exec_prefix"
6529   eval x=\"$x\"
6530   exec_prefix="$acl_save_exec_prefix"
6531   prefix="$acl_save_prefix"
6532
6533                     if test "X$x" = "X-I$additional_includedir"; then
6534                       haveit=yes
6535                       break
6536                     fi
6537                   done
6538                   if test -z "$haveit"; then
6539                     if test -d "$additional_includedir"; then
6540                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6541                     fi
6542                   fi
6543                 fi
6544               fi
6545             fi
6546                         if test -n "$found_la"; then
6547                                                         save_libdir="$libdir"
6548               case "$found_la" in
6549                 */* | *\\*) . "$found_la" ;;
6550                 *) . "./$found_la" ;;
6551               esac
6552               libdir="$save_libdir"
6553                             for dep in $dependency_libs; do
6554                 case "$dep" in
6555                   -L*)
6556                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6557                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
6558                       haveit=
6559                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
6560                         if test -n "$GCC"; then
6561                           case $host_os in
6562                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6563                           esac
6564                         fi
6565                       fi
6566                       if test -z "$haveit"; then
6567                         haveit=
6568                         for x in $LDFLAGS $LIBICONV; do
6569
6570   acl_save_prefix="$prefix"
6571   prefix="$acl_final_prefix"
6572   acl_save_exec_prefix="$exec_prefix"
6573   exec_prefix="$acl_final_exec_prefix"
6574   eval x=\"$x\"
6575   exec_prefix="$acl_save_exec_prefix"
6576   prefix="$acl_save_prefix"
6577
6578                           if test "X$x" = "X-L$additional_libdir"; then
6579                             haveit=yes
6580                             break
6581                           fi
6582                         done
6583                         if test -z "$haveit"; then
6584                           if test -d "$additional_libdir"; then
6585                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6586                           fi
6587                         fi
6588                         haveit=
6589                         for x in $LDFLAGS $LTLIBICONV; do
6590
6591   acl_save_prefix="$prefix"
6592   prefix="$acl_final_prefix"
6593   acl_save_exec_prefix="$exec_prefix"
6594   exec_prefix="$acl_final_exec_prefix"
6595   eval x=\"$x\"
6596   exec_prefix="$acl_save_exec_prefix"
6597   prefix="$acl_save_prefix"
6598
6599                           if test "X$x" = "X-L$additional_libdir"; then
6600                             haveit=yes
6601                             break
6602                           fi
6603                         done
6604                         if test -z "$haveit"; then
6605                           if test -d "$additional_libdir"; then
6606                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6607                           fi
6608                         fi
6609                       fi
6610                     fi
6611                     ;;
6612                   -R*)
6613                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
6614                     if test "$enable_rpath" != no; then
6615                                                                   haveit=
6616                       for x in $rpathdirs; do
6617                         if test "X$x" = "X$dir"; then
6618                           haveit=yes
6619                           break
6620                         fi
6621                       done
6622                       if test -z "$haveit"; then
6623                         rpathdirs="$rpathdirs $dir"
6624                       fi
6625                                                                   haveit=
6626                       for x in $ltrpathdirs; do
6627                         if test "X$x" = "X$dir"; then
6628                           haveit=yes
6629                           break
6630                         fi
6631                       done
6632                       if test -z "$haveit"; then
6633                         ltrpathdirs="$ltrpathdirs $dir"
6634                       fi
6635                     fi
6636                     ;;
6637                   -l*)
6638                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6639                     ;;
6640                   *.la)
6641                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6642                     ;;
6643                   *)
6644                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6645                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6646                     ;;
6647                 esac
6648               done
6649             fi
6650           else
6651                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6652             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6653           fi
6654         fi
6655       fi
6656     done
6657   done
6658   if test "X$rpathdirs" != "X"; then
6659     if test -n "$acl_hardcode_libdir_separator"; then
6660                         alldirs=
6661       for found_dir in $rpathdirs; do
6662         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6663       done
6664             acl_save_libdir="$libdir"
6665       libdir="$alldirs"
6666       eval flag=\"$acl_hardcode_libdir_flag_spec\"
6667       libdir="$acl_save_libdir"
6668       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6669     else
6670             for found_dir in $rpathdirs; do
6671         acl_save_libdir="$libdir"
6672         libdir="$found_dir"
6673         eval flag=\"$acl_hardcode_libdir_flag_spec\"
6674         libdir="$acl_save_libdir"
6675         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6676       done
6677     fi
6678   fi
6679   if test "X$ltrpathdirs" != "X"; then
6680             for found_dir in $ltrpathdirs; do
6681       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6682     done
6683   fi
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
6710 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
6711 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
6712   $as_echo_n "(cached) " >&6
6713 else
6714   gt_save_LIBS="$LIBS"
6715      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
6716      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6717 /* end confdefs.h.  */
6718 #include <CoreFoundation/CFPreferences.h>
6719 int
6720 main ()
6721 {
6722 CFPreferencesCopyAppValue(NULL, NULL)
6723   ;
6724   return 0;
6725 }
6726 _ACEOF
6727 if ac_fn_c_try_link "$LINENO"; then :
6728   gt_cv_func_CFPreferencesCopyAppValue=yes
6729 else
6730   gt_cv_func_CFPreferencesCopyAppValue=no
6731 fi
6732 rm -f core conftest.err conftest.$ac_objext \
6733     conftest$ac_exeext conftest.$ac_ext
6734      LIBS="$gt_save_LIBS"
6735 fi
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6737 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
6738   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6739
6740 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
6741
6742   fi
6743     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
6744 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
6745 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
6746   $as_echo_n "(cached) " >&6
6747 else
6748   gt_save_LIBS="$LIBS"
6749      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
6750      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6751 /* end confdefs.h.  */
6752 #include <CoreFoundation/CFLocale.h>
6753 int
6754 main ()
6755 {
6756 CFLocaleCopyCurrent();
6757   ;
6758   return 0;
6759 }
6760 _ACEOF
6761 if ac_fn_c_try_link "$LINENO"; then :
6762   gt_cv_func_CFLocaleCopyCurrent=yes
6763 else
6764   gt_cv_func_CFLocaleCopyCurrent=no
6765 fi
6766 rm -f core conftest.err conftest.$ac_objext \
6767     conftest$ac_exeext conftest.$ac_ext
6768      LIBS="$gt_save_LIBS"
6769 fi
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
6771 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
6772   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6773
6774 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
6775
6776   fi
6777   INTL_MACOSX_LIBS=
6778   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6779     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6780   fi
6781
6782
6783
6784
6785
6786
6787   LIBINTL=
6788   LTLIBINTL=
6789   POSUB=
6790
6791     case " $gt_needs " in
6792     *" need-formatstring-macros "*) gt_api_version=3 ;;
6793     *" need-ngettext "*) gt_api_version=2 ;;
6794     *) gt_api_version=1 ;;
6795   esac
6796   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
6797   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
6798
6799     if test "$USE_NLS" = "yes"; then
6800     gt_use_preinstalled_gnugettext=no
6801
6802
6803         if test $gt_api_version -ge 3; then
6804           gt_revision_test_code='
6805 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
6806 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
6807 #endif
6808 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
6809 '
6810         else
6811           gt_revision_test_code=
6812         fi
6813         if test $gt_api_version -ge 2; then
6814           gt_expression_test_code=' + * ngettext ("", "", 0)'
6815         else
6816           gt_expression_test_code=
6817         fi
6818
6819         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
6820 $as_echo_n "checking for GNU gettext in libc... " >&6; }
6821 if eval \${$gt_func_gnugettext_libc+:} false; then :
6822   $as_echo_n "(cached) " >&6
6823 else
6824   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6825 /* end confdefs.h.  */
6826 #include <libintl.h>
6827 $gt_revision_test_code
6828 extern int _nl_msg_cat_cntr;
6829 extern int *_nl_domain_bindings;
6830 int
6831 main ()
6832 {
6833 bindtextdomain ("", "");
6834 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
6835   ;
6836   return 0;
6837 }
6838 _ACEOF
6839 if ac_fn_c_try_link "$LINENO"; then :
6840   eval "$gt_func_gnugettext_libc=yes"
6841 else
6842   eval "$gt_func_gnugettext_libc=no"
6843 fi
6844 rm -f core conftest.err conftest.$ac_objext \
6845     conftest$ac_exeext conftest.$ac_ext
6846 fi
6847 eval ac_res=\$$gt_func_gnugettext_libc
6848                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6849 $as_echo "$ac_res" >&6; }
6850
6851         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
6852
6853
6854
6855
6856
6857           am_save_CPPFLAGS="$CPPFLAGS"
6858
6859   for element in $INCICONV; do
6860     haveit=
6861     for x in $CPPFLAGS; do
6862
6863   acl_save_prefix="$prefix"
6864   prefix="$acl_final_prefix"
6865   acl_save_exec_prefix="$exec_prefix"
6866   exec_prefix="$acl_final_exec_prefix"
6867   eval x=\"$x\"
6868   exec_prefix="$acl_save_exec_prefix"
6869   prefix="$acl_save_prefix"
6870
6871       if test "X$x" = "X$element"; then
6872         haveit=yes
6873         break
6874       fi
6875     done
6876     if test -z "$haveit"; then
6877       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6878     fi
6879   done
6880
6881
6882   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
6883 $as_echo_n "checking for iconv... " >&6; }
6884 if ${am_cv_func_iconv+:} false; then :
6885   $as_echo_n "(cached) " >&6
6886 else
6887
6888     am_cv_func_iconv="no, consider installing GNU libiconv"
6889     am_cv_lib_iconv=no
6890     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6891 /* end confdefs.h.  */
6892 #include <stdlib.h>
6893 #include <iconv.h>
6894 int
6895 main ()
6896 {
6897 iconv_t cd = iconv_open("","");
6898        iconv(cd,NULL,NULL,NULL,NULL);
6899        iconv_close(cd);
6900   ;
6901   return 0;
6902 }
6903 _ACEOF
6904 if ac_fn_c_try_link "$LINENO"; then :
6905   am_cv_func_iconv=yes
6906 fi
6907 rm -f core conftest.err conftest.$ac_objext \
6908     conftest$ac_exeext conftest.$ac_ext
6909     if test "$am_cv_func_iconv" != yes; then
6910       am_save_LIBS="$LIBS"
6911       LIBS="$LIBS $LIBICONV"
6912       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6913 /* end confdefs.h.  */
6914 #include <stdlib.h>
6915 #include <iconv.h>
6916 int
6917 main ()
6918 {
6919 iconv_t cd = iconv_open("","");
6920          iconv(cd,NULL,NULL,NULL,NULL);
6921          iconv_close(cd);
6922   ;
6923   return 0;
6924 }
6925 _ACEOF
6926 if ac_fn_c_try_link "$LINENO"; then :
6927   am_cv_lib_iconv=yes
6928         am_cv_func_iconv=yes
6929 fi
6930 rm -f core conftest.err conftest.$ac_objext \
6931     conftest$ac_exeext conftest.$ac_ext
6932       LIBS="$am_save_LIBS"
6933     fi
6934
6935 fi
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
6937 $as_echo "$am_cv_func_iconv" >&6; }
6938   if test "$am_cv_func_iconv" = yes; then
6939     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
6940 $as_echo_n "checking for working iconv... " >&6; }
6941 if ${am_cv_func_iconv_works+:} false; then :
6942   $as_echo_n "(cached) " >&6
6943 else
6944
6945             am_save_LIBS="$LIBS"
6946       if test $am_cv_lib_iconv = yes; then
6947         LIBS="$LIBS $LIBICONV"
6948       fi
6949       if test "$cross_compiling" = yes; then :
6950   case "$host_os" in
6951            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
6952            *)            am_cv_func_iconv_works="guessing yes" ;;
6953          esac
6954 else
6955   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6956 /* end confdefs.h.  */
6957
6958 #include <iconv.h>
6959 #include <string.h>
6960 int main ()
6961 {
6962   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
6963      returns.  */
6964   {
6965     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
6966     if (cd_utf8_to_88591 != (iconv_t)(-1))
6967       {
6968         static const char input[] = "\342\202\254"; /* EURO SIGN */
6969         char buf[10];
6970         const char *inptr = input;
6971         size_t inbytesleft = strlen (input);
6972         char *outptr = buf;
6973         size_t outbytesleft = sizeof (buf);
6974         size_t res = iconv (cd_utf8_to_88591,
6975                             (char **) &inptr, &inbytesleft,
6976                             &outptr, &outbytesleft);
6977         if (res == 0)
6978           return 1;
6979       }
6980   }
6981 #if 0 /* This bug could be worked around by the caller.  */
6982   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
6983   {
6984     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
6985     if (cd_88591_to_utf8 != (iconv_t)(-1))
6986       {
6987         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
6988         char buf[50];
6989         const char *inptr = input;
6990         size_t inbytesleft = strlen (input);
6991         char *outptr = buf;
6992         size_t outbytesleft = sizeof (buf);
6993         size_t res = iconv (cd_88591_to_utf8,
6994                             (char **) &inptr, &inbytesleft,
6995                             &outptr, &outbytesleft);
6996         if ((int)res > 0)
6997           return 1;
6998       }
6999   }
7000 #endif
7001   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
7002      provided.  */
7003   if (/* Try standardized names.  */
7004       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
7005       /* Try IRIX, OSF/1 names.  */
7006       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
7007       /* Try AIX names.  */
7008       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
7009       /* Try HP-UX names.  */
7010       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
7011     return 1;
7012   return 0;
7013 }
7014 _ACEOF
7015 if ac_fn_c_try_run "$LINENO"; then :
7016   am_cv_func_iconv_works=yes
7017 else
7018   am_cv_func_iconv_works=no
7019 fi
7020 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7021   conftest.$ac_objext conftest.beam conftest.$ac_ext
7022 fi
7023
7024       LIBS="$am_save_LIBS"
7025
7026 fi
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
7028 $as_echo "$am_cv_func_iconv_works" >&6; }
7029     case "$am_cv_func_iconv_works" in
7030       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
7031       *)   am_func_iconv=yes ;;
7032     esac
7033   else
7034     am_func_iconv=no am_cv_lib_iconv=no
7035   fi
7036   if test "$am_func_iconv" = yes; then
7037
7038 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
7039
7040   fi
7041   if test "$am_cv_lib_iconv" = yes; then
7042     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
7043 $as_echo_n "checking how to link with libiconv... " >&6; }
7044     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
7045 $as_echo "$LIBICONV" >&6; }
7046   else
7047             CPPFLAGS="$am_save_CPPFLAGS"
7048     LIBICONV=
7049     LTLIBICONV=
7050   fi
7051
7052
7053
7054
7055
7056
7057
7058
7059     use_additional=yes
7060
7061   acl_save_prefix="$prefix"
7062   prefix="$acl_final_prefix"
7063   acl_save_exec_prefix="$exec_prefix"
7064   exec_prefix="$acl_final_exec_prefix"
7065
7066     eval additional_includedir=\"$includedir\"
7067     eval additional_libdir=\"$libdir\"
7068
7069   exec_prefix="$acl_save_exec_prefix"
7070   prefix="$acl_save_prefix"
7071
7072
7073 # Check whether --with-libintl-prefix was given.
7074 if test "${with_libintl_prefix+set}" = set; then :
7075   withval=$with_libintl_prefix;
7076     if test "X$withval" = "Xno"; then
7077       use_additional=no
7078     else
7079       if test "X$withval" = "X"; then
7080
7081   acl_save_prefix="$prefix"
7082   prefix="$acl_final_prefix"
7083   acl_save_exec_prefix="$exec_prefix"
7084   exec_prefix="$acl_final_exec_prefix"
7085
7086           eval additional_includedir=\"$includedir\"
7087           eval additional_libdir=\"$libdir\"
7088
7089   exec_prefix="$acl_save_exec_prefix"
7090   prefix="$acl_save_prefix"
7091
7092       else
7093         additional_includedir="$withval/include"
7094         additional_libdir="$withval/$acl_libdirstem"
7095       fi
7096     fi
7097
7098 fi
7099
7100       LIBINTL=
7101   LTLIBINTL=
7102   INCINTL=
7103   LIBINTL_PREFIX=
7104   rpathdirs=
7105   ltrpathdirs=
7106   names_already_handled=
7107   names_next_round='intl '
7108   while test -n "$names_next_round"; do
7109     names_this_round="$names_next_round"
7110     names_next_round=
7111     for name in $names_this_round; do
7112       already_handled=
7113       for n in $names_already_handled; do
7114         if test "$n" = "$name"; then
7115           already_handled=yes
7116           break
7117         fi
7118       done
7119       if test -z "$already_handled"; then
7120         names_already_handled="$names_already_handled $name"
7121                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7122         eval value=\"\$HAVE_LIB$uppername\"
7123         if test -n "$value"; then
7124           if test "$value" = yes; then
7125             eval value=\"\$LIB$uppername\"
7126             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
7127             eval value=\"\$LTLIB$uppername\"
7128             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
7129           else
7130                                     :
7131           fi
7132         else
7133                               found_dir=
7134           found_la=
7135           found_so=
7136           found_a=
7137           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
7138           if test -n "$acl_shlibext"; then
7139             shrext=".$acl_shlibext"             # typically: shrext=.so
7140           else
7141             shrext=
7142           fi
7143           if test $use_additional = yes; then
7144             dir="$additional_libdir"
7145                                     if test -n "$acl_shlibext"; then
7146               if test -f "$dir/$libname$shrext"; then
7147                 found_dir="$dir"
7148                 found_so="$dir/$libname$shrext"
7149               else
7150                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7151                   ver=`(cd "$dir" && \
7152                         for f in "$libname$shrext".*; do echo "$f"; done \
7153                         | sed -e "s,^$libname$shrext\\\\.,," \
7154                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7155                         | sed 1q ) 2>/dev/null`
7156                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7157                     found_dir="$dir"
7158                     found_so="$dir/$libname$shrext.$ver"
7159                   fi
7160                 else
7161                   eval library_names=\"$acl_library_names_spec\"
7162                   for f in $library_names; do
7163                     if test -f "$dir/$f"; then
7164                       found_dir="$dir"
7165                       found_so="$dir/$f"
7166                       break
7167                     fi
7168                   done
7169                 fi
7170               fi
7171             fi
7172                         if test "X$found_dir" = "X"; then
7173               if test -f "$dir/$libname.$acl_libext"; then
7174                 found_dir="$dir"
7175                 found_a="$dir/$libname.$acl_libext"
7176               fi
7177             fi
7178             if test "X$found_dir" != "X"; then
7179               if test -f "$dir/$libname.la"; then
7180                 found_la="$dir/$libname.la"
7181               fi
7182             fi
7183           fi
7184           if test "X$found_dir" = "X"; then
7185             for x in $LDFLAGS $LTLIBINTL; do
7186
7187   acl_save_prefix="$prefix"
7188   prefix="$acl_final_prefix"
7189   acl_save_exec_prefix="$exec_prefix"
7190   exec_prefix="$acl_final_exec_prefix"
7191   eval x=\"$x\"
7192   exec_prefix="$acl_save_exec_prefix"
7193   prefix="$acl_save_prefix"
7194
7195               case "$x" in
7196                 -L*)
7197                   dir=`echo "X$x" | sed -e 's/^X-L//'`
7198                                     if test -n "$acl_shlibext"; then
7199                     if test -f "$dir/$libname$shrext"; then
7200                       found_dir="$dir"
7201                       found_so="$dir/$libname$shrext"
7202                     else
7203                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7204                         ver=`(cd "$dir" && \
7205                               for f in "$libname$shrext".*; do echo "$f"; done \
7206                               | sed -e "s,^$libname$shrext\\\\.,," \
7207                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7208                               | sed 1q ) 2>/dev/null`
7209                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7210                           found_dir="$dir"
7211                           found_so="$dir/$libname$shrext.$ver"
7212                         fi
7213                       else
7214                         eval library_names=\"$acl_library_names_spec\"
7215                         for f in $library_names; do
7216                           if test -f "$dir/$f"; then
7217                             found_dir="$dir"
7218                             found_so="$dir/$f"
7219                             break
7220                           fi
7221                         done
7222                       fi
7223                     fi
7224                   fi
7225                                     if test "X$found_dir" = "X"; then
7226                     if test -f "$dir/$libname.$acl_libext"; then
7227                       found_dir="$dir"
7228                       found_a="$dir/$libname.$acl_libext"
7229                     fi
7230                   fi
7231                   if test "X$found_dir" != "X"; then
7232                     if test -f "$dir/$libname.la"; then
7233                       found_la="$dir/$libname.la"
7234                     fi
7235                   fi
7236                   ;;
7237               esac
7238               if test "X$found_dir" != "X"; then
7239                 break
7240               fi
7241             done
7242           fi
7243           if test "X$found_dir" != "X"; then
7244                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
7245             if test "X$found_so" != "X"; then
7246                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
7247                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7248               else
7249                                                                                 haveit=
7250                 for x in $ltrpathdirs; do
7251                   if test "X$x" = "X$found_dir"; then
7252                     haveit=yes
7253                     break
7254                   fi
7255                 done
7256                 if test -z "$haveit"; then
7257                   ltrpathdirs="$ltrpathdirs $found_dir"
7258                 fi
7259                                 if test "$acl_hardcode_direct" = yes; then
7260                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7261                 else
7262                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
7263                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7264                                                             haveit=
7265                     for x in $rpathdirs; do
7266                       if test "X$x" = "X$found_dir"; then
7267                         haveit=yes
7268                         break
7269                       fi
7270                     done
7271                     if test -z "$haveit"; then
7272                       rpathdirs="$rpathdirs $found_dir"
7273                     fi
7274                   else
7275                                                                                 haveit=
7276                     for x in $LDFLAGS $LIBINTL; do
7277
7278   acl_save_prefix="$prefix"
7279   prefix="$acl_final_prefix"
7280   acl_save_exec_prefix="$exec_prefix"
7281   exec_prefix="$acl_final_exec_prefix"
7282   eval x=\"$x\"
7283   exec_prefix="$acl_save_exec_prefix"
7284   prefix="$acl_save_prefix"
7285
7286                       if test "X$x" = "X-L$found_dir"; then
7287                         haveit=yes
7288                         break
7289                       fi
7290                     done
7291                     if test -z "$haveit"; then
7292                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
7293                     fi
7294                     if test "$acl_hardcode_minus_L" != no; then
7295                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7296                     else
7297                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7298                     fi
7299                   fi
7300                 fi
7301               fi
7302             else
7303               if test "X$found_a" != "X"; then
7304                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
7305               else
7306                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
7307               fi
7308             fi
7309                         additional_includedir=
7310             case "$found_dir" in
7311               */$acl_libdirstem | */$acl_libdirstem/)
7312                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
7313                 LIBINTL_PREFIX="$basedir"
7314                 additional_includedir="$basedir/include"
7315                 ;;
7316             esac
7317             if test "X$additional_includedir" != "X"; then
7318                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
7319                 haveit=
7320                 if test "X$additional_includedir" = "X/usr/local/include"; then
7321                   if test -n "$GCC"; then
7322                     case $host_os in
7323                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7324                     esac
7325                   fi
7326                 fi
7327                 if test -z "$haveit"; then
7328                   for x in $CPPFLAGS $INCINTL; do
7329
7330   acl_save_prefix="$prefix"
7331   prefix="$acl_final_prefix"
7332   acl_save_exec_prefix="$exec_prefix"
7333   exec_prefix="$acl_final_exec_prefix"
7334   eval x=\"$x\"
7335   exec_prefix="$acl_save_exec_prefix"
7336   prefix="$acl_save_prefix"
7337
7338                     if test "X$x" = "X-I$additional_includedir"; then
7339                       haveit=yes
7340                       break
7341                     fi
7342                   done
7343                   if test -z "$haveit"; then
7344                     if test -d "$additional_includedir"; then
7345                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
7346                     fi
7347                   fi
7348                 fi
7349               fi
7350             fi
7351                         if test -n "$found_la"; then
7352                                                         save_libdir="$libdir"
7353               case "$found_la" in
7354                 */* | *\\*) . "$found_la" ;;
7355                 *) . "./$found_la" ;;
7356               esac
7357               libdir="$save_libdir"
7358                             for dep in $dependency_libs; do
7359                 case "$dep" in
7360                   -L*)
7361                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7362                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
7363                       haveit=
7364                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
7365                         if test -n "$GCC"; then
7366                           case $host_os in
7367                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7368                           esac
7369                         fi
7370                       fi
7371                       if test -z "$haveit"; then
7372                         haveit=
7373                         for x in $LDFLAGS $LIBINTL; do
7374
7375   acl_save_prefix="$prefix"
7376   prefix="$acl_final_prefix"
7377   acl_save_exec_prefix="$exec_prefix"
7378   exec_prefix="$acl_final_exec_prefix"
7379   eval x=\"$x\"
7380   exec_prefix="$acl_save_exec_prefix"
7381   prefix="$acl_save_prefix"
7382
7383                           if test "X$x" = "X-L$additional_libdir"; then
7384                             haveit=yes
7385                             break
7386                           fi
7387                         done
7388                         if test -z "$haveit"; then
7389                           if test -d "$additional_libdir"; then
7390                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
7391                           fi
7392                         fi
7393                         haveit=
7394                         for x in $LDFLAGS $LTLIBINTL; do
7395
7396   acl_save_prefix="$prefix"
7397   prefix="$acl_final_prefix"
7398   acl_save_exec_prefix="$exec_prefix"
7399   exec_prefix="$acl_final_exec_prefix"
7400   eval x=\"$x\"
7401   exec_prefix="$acl_save_exec_prefix"
7402   prefix="$acl_save_prefix"
7403
7404                           if test "X$x" = "X-L$additional_libdir"; then
7405                             haveit=yes
7406                             break
7407                           fi
7408                         done
7409                         if test -z "$haveit"; then
7410                           if test -d "$additional_libdir"; then
7411                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
7412                           fi
7413                         fi
7414                       fi
7415                     fi
7416                     ;;
7417                   -R*)
7418                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
7419                     if test "$enable_rpath" != no; then
7420                                                                   haveit=
7421                       for x in $rpathdirs; do
7422                         if test "X$x" = "X$dir"; then
7423                           haveit=yes
7424                           break
7425                         fi
7426                       done
7427                       if test -z "$haveit"; then
7428                         rpathdirs="$rpathdirs $dir"
7429                       fi
7430                                                                   haveit=
7431                       for x in $ltrpathdirs; do
7432                         if test "X$x" = "X$dir"; then
7433                           haveit=yes
7434                           break
7435                         fi
7436                       done
7437                       if test -z "$haveit"; then
7438                         ltrpathdirs="$ltrpathdirs $dir"
7439                       fi
7440                     fi
7441                     ;;
7442                   -l*)
7443                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7444                     ;;
7445                   *.la)
7446                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7447                     ;;
7448                   *)
7449                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7450                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7451                     ;;
7452                 esac
7453               done
7454             fi
7455           else
7456                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7457             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7458           fi
7459         fi
7460       fi
7461     done
7462   done
7463   if test "X$rpathdirs" != "X"; then
7464     if test -n "$acl_hardcode_libdir_separator"; then
7465                         alldirs=
7466       for found_dir in $rpathdirs; do
7467         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
7468       done
7469             acl_save_libdir="$libdir"
7470       libdir="$alldirs"
7471       eval flag=\"$acl_hardcode_libdir_flag_spec\"
7472       libdir="$acl_save_libdir"
7473       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7474     else
7475             for found_dir in $rpathdirs; do
7476         acl_save_libdir="$libdir"
7477         libdir="$found_dir"
7478         eval flag=\"$acl_hardcode_libdir_flag_spec\"
7479         libdir="$acl_save_libdir"
7480         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7481       done
7482     fi
7483   fi
7484   if test "X$ltrpathdirs" != "X"; then
7485             for found_dir in $ltrpathdirs; do
7486       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7487     done
7488   fi
7489
7490           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
7491 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
7492 if eval \${$gt_func_gnugettext_libintl+:} false; then :
7493   $as_echo_n "(cached) " >&6
7494 else
7495   gt_save_CPPFLAGS="$CPPFLAGS"
7496             CPPFLAGS="$CPPFLAGS $INCINTL"
7497             gt_save_LIBS="$LIBS"
7498             LIBS="$LIBS $LIBINTL"
7499                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7500 /* end confdefs.h.  */
7501 #include <libintl.h>
7502 $gt_revision_test_code
7503 extern int _nl_msg_cat_cntr;
7504 extern
7505 #ifdef __cplusplus
7506 "C"
7507 #endif
7508 const char *_nl_expand_alias (const char *);
7509 int
7510 main ()
7511 {
7512 bindtextdomain ("", "");
7513 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7514   ;
7515   return 0;
7516 }
7517 _ACEOF
7518 if ac_fn_c_try_link "$LINENO"; then :
7519   eval "$gt_func_gnugettext_libintl=yes"
7520 else
7521   eval "$gt_func_gnugettext_libintl=no"
7522 fi
7523 rm -f core conftest.err conftest.$ac_objext \
7524     conftest$ac_exeext conftest.$ac_ext
7525                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
7526               LIBS="$LIBS $LIBICONV"
7527               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7528 /* end confdefs.h.  */
7529 #include <libintl.h>
7530 $gt_revision_test_code
7531 extern int _nl_msg_cat_cntr;
7532 extern
7533 #ifdef __cplusplus
7534 "C"
7535 #endif
7536 const char *_nl_expand_alias (const char *);
7537 int
7538 main ()
7539 {
7540 bindtextdomain ("", "");
7541 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7542   ;
7543   return 0;
7544 }
7545 _ACEOF
7546 if ac_fn_c_try_link "$LINENO"; then :
7547   LIBINTL="$LIBINTL $LIBICONV"
7548                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7549                 eval "$gt_func_gnugettext_libintl=yes"
7550
7551 fi
7552 rm -f core conftest.err conftest.$ac_objext \
7553     conftest$ac_exeext conftest.$ac_ext
7554             fi
7555             CPPFLAGS="$gt_save_CPPFLAGS"
7556             LIBS="$gt_save_LIBS"
7557 fi
7558 eval ac_res=\$$gt_func_gnugettext_libintl
7559                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7560 $as_echo "$ac_res" >&6; }
7561         fi
7562
7563                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
7564            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
7565                 && test "$PACKAGE" != gettext-runtime \
7566                 && test "$PACKAGE" != gettext-tools; }; then
7567           gt_use_preinstalled_gnugettext=yes
7568         else
7569                     LIBINTL=
7570           LTLIBINTL=
7571           INCINTL=
7572         fi
7573
7574
7575
7576     if test -n "$INTL_MACOSX_LIBS"; then
7577       if test "$gt_use_preinstalled_gnugettext" = "yes" \
7578          || test "$nls_cv_use_gnu_gettext" = "yes"; then
7579                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
7580         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
7581       fi
7582     fi
7583
7584     if test "$gt_use_preinstalled_gnugettext" = "yes" \
7585        || test "$nls_cv_use_gnu_gettext" = "yes"; then
7586
7587 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
7588
7589     else
7590       USE_NLS=no
7591     fi
7592   fi
7593
7594   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
7595 $as_echo_n "checking whether to use NLS... " >&6; }
7596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
7597 $as_echo "$USE_NLS" >&6; }
7598   if test "$USE_NLS" = "yes"; then
7599     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
7600 $as_echo_n "checking where the gettext function comes from... " >&6; }
7601     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7602       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
7603         gt_source="external libintl"
7604       else
7605         gt_source="libc"
7606       fi
7607     else
7608       gt_source="included intl directory"
7609     fi
7610     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
7611 $as_echo "$gt_source" >&6; }
7612   fi
7613
7614   if test "$USE_NLS" = "yes"; then
7615
7616     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7617       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
7618         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
7619 $as_echo_n "checking how to link with libintl... " >&6; }
7620         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
7621 $as_echo "$LIBINTL" >&6; }
7622
7623   for element in $INCINTL; do
7624     haveit=
7625     for x in $CPPFLAGS; do
7626
7627   acl_save_prefix="$prefix"
7628   prefix="$acl_final_prefix"
7629   acl_save_exec_prefix="$exec_prefix"
7630   exec_prefix="$acl_final_exec_prefix"
7631   eval x=\"$x\"
7632   exec_prefix="$acl_save_exec_prefix"
7633   prefix="$acl_save_prefix"
7634
7635       if test "X$x" = "X$element"; then
7636         haveit=yes
7637         break
7638       fi
7639     done
7640     if test -z "$haveit"; then
7641       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7642     fi
7643   done
7644
7645       fi
7646
7647
7648 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
7649
7650
7651 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
7652
7653     fi
7654
7655         POSUB=po
7656   fi
7657
7658
7659
7660     INTLLIBS="$LIBINTL"
7661
7662
7663
7664
7665
7666
7667 # autoheader templates for AM_GNU_GETTEXT checks.
7668
7669
7670
7671
7672
7673
7674 # Check for GNU C Library
7675
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU C Library" >&5
7677 $as_echo_n "checking for GNU C Library... " >&6; }
7678 if ${yasm_cv_header_gnulib+:} false; then :
7679   $as_echo_n "(cached) " >&6
7680 else
7681   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7682 /* end confdefs.h.  */
7683 #include <features.h>
7684         #ifdef __GNU_LIBRARY__
7685           gnulib
7686         #endif
7687
7688 _ACEOF
7689 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7690   $EGREP "gnulib" >/dev/null 2>&1; then :
7691   yasm_cv_header_gnulib=yes
7692 else
7693   yasm_cv_header_gnulib=no
7694 fi
7695 rm -f conftest*
7696
7697 fi
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $yasm_cv_header_gnulib" >&5
7699 $as_echo "$yasm_cv_header_gnulib" >&6; }
7700 if test "$yasm_cv_header_gnulib" = yes; then
7701         $as_echo "#define HAVE_GNU_C_LIBRARY 1" >>confdefs.h
7702
7703 fi
7704
7705 # Force x86 architecture only for now.
7706 ARCH=x86
7707
7708
7709
7710 # Require things for --enable-maintainer-mode option.
7711 if test "$USE_MAINTAINER_MODE" = "yes"; then
7712   # Enable debugging
7713   if test "$debugging" != "no"; then
7714     debugging=yes
7715   fi
7716
7717   # Enable more warnings
7718   if test "$GCC" = "yes"; then
7719     MORE_CFLAGS="$MORE_CFLAGS -W"
7720     MORE_CFLAGS="$MORE_CFLAGS -Waggregate-return"
7721     MORE_CFLAGS="$MORE_CFLAGS -Wbad-function-cast"
7722     MORE_CFLAGS="$MORE_CFLAGS -Wcast-align"
7723     MORE_CFLAGS="$MORE_CFLAGS -Wcast-qual"
7724     MORE_CFLAGS="$MORE_CFLAGS -Wchar-subscripts"
7725 #    MORE_CFLAGS="$MORE_CFLAGS -Wconversion"
7726 #    MORE_CFLAGS="$MORE_CFLAGS -Wdeclaration-after-statement"
7727 #    MORE_CFLAGS="$MORE_CFLAGS -Wendif-labels"
7728     MORE_CFLAGS="$MORE_CFLAGS -Winline"
7729     MORE_CFLAGS="$MORE_CFLAGS -Wmissing-declarations"
7730     MORE_CFLAGS="$MORE_CFLAGS -Wmissing-prototypes"
7731     MORE_CFLAGS="$MORE_CFLAGS -Wnested-externs"
7732     MORE_CFLAGS="$MORE_CFLAGS -Wpointer-arith"
7733     MORE_CFLAGS="$MORE_CFLAGS -Wreturn-type"
7734     MORE_CFLAGS="$MORE_CFLAGS -Wshadow"
7735     MORE_CFLAGS="$MORE_CFLAGS -Wsign-compare"
7736     MORE_CFLAGS="$MORE_CFLAGS -Wstrict-prototypes"
7737     MORE_CFLAGS="$MORE_CFLAGS -Wswitch"
7738     MORE_CFLAGS="$MORE_CFLAGS -Wwrite-strings"
7739     MORE_CFLAGS="$MORE_CFLAGS -Wno-undef"
7740 #    MORE_CFLAGS="$MORE_CFLAGS -Wno-unused"
7741     MORE_CFLAGS="$MORE_CFLAGS -Wno-unused-parameter"
7742   fi
7743 fi
7744
7745 #
7746 # Add some more CFLAGS for various options.
7747 #
7748
7749 if test "$debugging" = "no" ; then
7750
7751   CFLAGS="`echo $CFLAGS' ' | sed -e 's/-g[0-9] //g' | sed -e 's/-g//g'`"
7752
7753 fi
7754
7755 # Turn warnings into errors
7756 if test "$warnerror" = "yes"; then
7757   if test "$GCC" = "yes"; then
7758     MORE_CFLAGS="$MORE_CFLAGS -Werror"
7759   fi
7760 fi
7761
7762 # Enable output of profiling information
7763 if test "$profiling" = "yes"; then
7764   if test "$GCC" = "yes"; then
7765     MORE_CFLAGS="$MORE_CFLAGS -pg"
7766   fi
7767 fi
7768
7769 # Enable output of gcov information
7770 if test "$gcov" = "yes"; then
7771   if test "$GCC" = "yes"; then
7772     MORE_CFLAGS="$MORE_CFLAGS -fprofile-arcs -ftest-coverage"
7773   fi
7774 fi
7775
7776 # If we're using GCC, then we can turn on -ansi -pedantic -Wall too.
7777 if test "$USE_MAINTAINER_MODE" = "yes"; then
7778   if test "$GCC" = yes; then
7779     MORE_CFLAGS="-ansi -pedantic -Wall $MORE_CFLAGS"
7780   fi
7781 fi
7782
7783
7784
7785
7786 if test "${build}" != "${host}" ; then
7787   CC_FOR_BUILD=${CC_FOR_BUILD-cc}
7788   CCLD_FOR_BUILD=${CCLD_FOR_BUILD-cc}
7789 else
7790   CC_FOR_BUILD="\$(CC)"
7791   CCLD_FOR_BUILD="\$(CC)"
7792 fi
7793
7794
7795
7796
7797 if test "$build" != "$target" || test "$build" != "$host"; then
7798   CPP_PROG="${CPP_FOR_HOST-cc -E}"
7799 else
7800   CPP_PROG="${CPP}"
7801 fi
7802
7803 cat >>confdefs.h <<_ACEOF
7804 #define CPP_PROG "${CPP_PROG}"
7805 _ACEOF
7806
7807
7808 # Detect if we have Python
7809 if test x$enable_python = xno; then
7810     have_python=no
7811 else
7812     { $as_echo "$as_me:${as_lineno-$LINENO}: Checking for Python" >&5
7813 $as_echo "$as_me: Checking for Python" >&6;}
7814     have_python=no
7815
7816
7817
7818
7819         if test -n "$PYTHON"; then
7820       # If the user set $PYTHON, use it and don't search something else.
7821       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.4" >&5
7822 $as_echo_n "checking whether $PYTHON version >= 2.4... " >&6; }
7823       prog="import sys
7824 # split strings by '.' and convert to numeric.  Append some zeros
7825 # because we need at least 4 digits for the hex conversion.
7826 # map returns an iterator in Python 3.0 and a list in 2.x
7827 minver = list(map(int, '2.4'.split('.'))) + [0, 0, 0]
7828 minverhex = 0
7829 # xrange is not present in Python 3.0 and range returns an iterator
7830 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
7831 sys.exit(sys.hexversion < minverhex)"
7832   if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
7833    ($PYTHON -c "$prog") >&5 2>&5
7834    ac_status=$?
7835    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7836    (exit $ac_status); }; then :
7837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7838 $as_echo "yes" >&6; }
7839 else
7840   as_fn_error $? "too old" "$LINENO" 5
7841 fi
7842       am_display_PYTHON=$PYTHON
7843     else
7844       # Otherwise, try each interpreter until we find one that satisfies
7845       # VERSION.
7846       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.4" >&5
7847 $as_echo_n "checking for a Python interpreter with version >= 2.4... " >&6; }
7848 if ${am_cv_pathless_PYTHON+:} false; then :
7849   $as_echo_n "(cached) " >&6
7850 else
7851
7852         for am_cv_pathless_PYTHON in python python2 python3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
7853           test "$am_cv_pathless_PYTHON" = none && break
7854           prog="import sys
7855 # split strings by '.' and convert to numeric.  Append some zeros
7856 # because we need at least 4 digits for the hex conversion.
7857 # map returns an iterator in Python 3.0 and a list in 2.x
7858 minver = list(map(int, '2.4'.split('.'))) + [0, 0, 0]
7859 minverhex = 0
7860 # xrange is not present in Python 3.0 and range returns an iterator
7861 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
7862 sys.exit(sys.hexversion < minverhex)"
7863   if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
7864    ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
7865    ac_status=$?
7866    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867    (exit $ac_status); }; then :
7868   break
7869 fi
7870         done
7871 fi
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
7873 $as_echo "$am_cv_pathless_PYTHON" >&6; }
7874       # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
7875       if test "$am_cv_pathless_PYTHON" = none; then
7876         PYTHON=:
7877       else
7878         # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
7879 set dummy $am_cv_pathless_PYTHON; ac_word=$2
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7881 $as_echo_n "checking for $ac_word... " >&6; }
7882 if ${ac_cv_path_PYTHON+:} false; then :
7883   $as_echo_n "(cached) " >&6
7884 else
7885   case $PYTHON in
7886   [\\/]* | ?:[\\/]*)
7887   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
7888   ;;
7889   *)
7890   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7891 for as_dir in $PATH
7892 do
7893   IFS=$as_save_IFS
7894   test -z "$as_dir" && as_dir=.
7895     for ac_exec_ext in '' $ac_executable_extensions; do
7896   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7897     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
7898     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7899     break 2
7900   fi
7901 done
7902   done
7903 IFS=$as_save_IFS
7904
7905   ;;
7906 esac
7907 fi
7908 PYTHON=$ac_cv_path_PYTHON
7909 if test -n "$PYTHON"; then
7910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
7911 $as_echo "$PYTHON" >&6; }
7912 else
7913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7914 $as_echo "no" >&6; }
7915 fi
7916
7917
7918       fi
7919       am_display_PYTHON=$am_cv_pathless_PYTHON
7920     fi
7921
7922
7923   if test "$PYTHON" = :; then
7924       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Python not found" >&5
7925 $as_echo "$as_me: WARNING: Python not found" >&2;}
7926   else
7927
7928
7929   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
7930 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
7931 if ${am_cv_python_version+:} false; then :
7932   $as_echo_n "(cached) " >&6
7933 else
7934   am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
7935 fi
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
7937 $as_echo "$am_cv_python_version" >&6; }
7938   PYTHON_VERSION=$am_cv_python_version
7939
7940
7941
7942   PYTHON_PREFIX='${prefix}'
7943
7944   PYTHON_EXEC_PREFIX='${exec_prefix}'
7945
7946
7947
7948   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
7949 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
7950 if ${am_cv_python_platform+:} false; then :
7951   $as_echo_n "(cached) " >&6
7952 else
7953   am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
7954 fi
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
7956 $as_echo "$am_cv_python_platform" >&6; }
7957   PYTHON_PLATFORM=$am_cv_python_platform
7958
7959
7960
7961
7962                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
7963 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
7964 if ${am_cv_python_pythondir+:} false; then :
7965   $as_echo_n "(cached) " >&6
7966 else
7967   if test "x$prefix" = xNONE
7968      then
7969        am_py_prefix=$ac_default_prefix
7970      else
7971        am_py_prefix=$prefix
7972      fi
7973      am_cv_python_pythondir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(0,0,prefix='$am_py_prefix'))" 2>/dev/null ||
7974      echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
7975      case $am_cv_python_pythondir in
7976      $am_py_prefix*)
7977        am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
7978        am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
7979        ;;
7980      *)
7981        case $am_py_prefix in
7982          /usr|/System*) ;;
7983          *)
7984           am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
7985           ;;
7986        esac
7987        ;;
7988      esac
7989
7990 fi
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
7992 $as_echo "$am_cv_python_pythondir" >&6; }
7993   pythondir=$am_cv_python_pythondir
7994
7995
7996
7997   pkgpythondir=\${pythondir}/$PACKAGE
7998
7999
8000             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
8001 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
8002 if ${am_cv_python_pyexecdir+:} false; then :
8003   $as_echo_n "(cached) " >&6
8004 else
8005   if test "x$exec_prefix" = xNONE
8006      then
8007        am_py_exec_prefix=$am_py_prefix
8008      else
8009        am_py_exec_prefix=$exec_prefix
8010      fi
8011      am_cv_python_pyexecdir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(1,0,prefix='$am_py_exec_prefix'))" 2>/dev/null ||
8012      echo "$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
8013      case $am_cv_python_pyexecdir in
8014      $am_py_exec_prefix*)
8015        am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
8016        am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
8017        ;;
8018      *)
8019        case $am_py_exec_prefix in
8020          /usr|/System*) ;;
8021          *)
8022            am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
8023            ;;
8024        esac
8025        ;;
8026      esac
8027
8028 fi
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
8030 $as_echo "$am_cv_python_pyexecdir" >&6; }
8031   pyexecdir=$am_cv_python_pyexecdir
8032
8033
8034
8035   pkgpyexecdir=\${pyexecdir}/$PACKAGE
8036
8037
8038
8039   fi
8040
8041
8042
8043     if test -z "$PYTHON" || test "$PYTHON" = : ; then
8044         have_python=no
8045     else
8046         have_python=yes
8047     fi
8048
8049     if test x$have_python = xno ; then
8050         if test x$enable_python = xyes ; then
8051             as_fn_error $? "Python explicitly requested, but a suitable Python version was not found" "$LINENO" 5
8052         else
8053             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find a suitable version of Python" >&5
8054 $as_echo "$as_me: WARNING: Could not find a suitable version of Python" >&2;}
8055         fi
8056     fi
8057 fi
8058
8059 # Detect if we can build Python bindings
8060 # (needs Python, Python headers, and Cython)
8061 if test x$enable_python_bindings = xno; then
8062     have_python_bindings=no
8063 else
8064     { $as_echo "$as_me:${as_lineno-$LINENO}: Checking to see if we can build Python bindings" >&5
8065 $as_echo "$as_me: Checking to see if we can build Python bindings" >&6;}
8066     have_python_bindings=no
8067     if test x$have_python = xyes; then
8068         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cython >= 0.11.3" >&5
8069 $as_echo_n "checking for Cython >= 0.11.3... " >&6; }
8070         prog="import sys
8071 from Cython.Compiler.Version import version
8072 def get_int(arg):
8073     try:
8074         return int(arg)
8075     except ValueError:
8076         return 0
8077 # split strings by '.' and convert to numeric.  Append some zeros
8078 # because we need at least 4 digits for the hex conversion.
8079 ver = map(get_int, version.rstrip('abcdefghijklmnopqrstuvwxyz').split('.')) + [0, 0, 0]
8080 verhex = 0
8081 for i in range(0, 4): verhex = (verhex << 8) + ver[i]
8082 minver = map(get_int, '0.11.3'.split('.')) + [0, 0, 0]
8083 minverhex = 0
8084 for i in range(0, 4): minverhex = (minverhex << 8) + minver[i]
8085 sys.exit(verhex < minverhex)"
8086   if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
8087    ($PYTHON -c "$prog") >&5 2>&5
8088    ac_status=$?
8089    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8090    (exit $ac_status); }; then :
8091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8092 $as_echo "yes" >&6; }
8093                                       have_cython=yes
8094 else
8095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8096 $as_echo "no" >&6; }
8097                                       have_cython=no
8098 fi
8099
8100
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for headers required to compile python extensions" >&5
8102 $as_echo_n "checking for headers required to compile python extensions... " >&6; }
8103 py_prefix=`$PYTHON -c "import sys; print sys.prefix"`
8104 py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"`
8105 PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}"
8106 if test "$py_prefix" != "$py_exec_prefix"; then
8107   PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION}"
8108 fi
8109
8110 save_CPPFLAGS="$CPPFLAGS"
8111 CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES"
8112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8113 /* end confdefs.h.  */
8114 #include <Python.h>
8115 _ACEOF
8116 if ac_fn_c_try_cpp "$LINENO"; then :
8117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
8118 $as_echo "found" >&6; }
8119 have_python_headers=yes
8120 else
8121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8122 $as_echo "not found" >&6; }
8123 have_python_headers=no
8124 fi
8125 rm -f conftest.err conftest.i conftest.$ac_ext
8126 CPPFLAGS="$save_CPPFLAGS"
8127
8128
8129         if test x$have_cython = xyes -a x$have_python_headers = xyes ; then
8130             have_python_bindings=yes
8131         fi
8132     fi
8133
8134     if test x$have_python_bindings = xno ; then
8135         if test x$enable_python_bindings = xyes ; then
8136             as_fn_error $? "Building Python bindings explicitly requested, but can't build Python bindings because either Cython, Python headers or a suitable Python version was not found" "$LINENO" 5
8137         else
8138             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Couldn't find either Cython, the Python headers or a suitable version of Python, not building Python bindings" >&5
8139 $as_echo "$as_me: WARNING: Couldn't find either Cython, the Python headers or a suitable version of Python, not building Python bindings" >&2;}
8140         fi
8141     fi
8142 fi
8143
8144  if test x$have_python = xyes; then
8145   HAVE_PYTHON_TRUE=
8146   HAVE_PYTHON_FALSE='#'
8147 else
8148   HAVE_PYTHON_TRUE='#'
8149   HAVE_PYTHON_FALSE=
8150 fi
8151
8152  if test x$have_python_bindings = xyes; then
8153   HAVE_PYTHON_BINDINGS_TRUE=
8154   HAVE_PYTHON_BINDINGS_FALSE='#'
8155 else
8156   HAVE_PYTHON_BINDINGS_TRUE='#'
8157   HAVE_PYTHON_BINDINGS_FALSE=
8158 fi
8159
8160
8161 ac_config_files="$ac_config_files Makefile po/Makefile.in"
8162
8163 cat >confcache <<\_ACEOF
8164 # This file is a shell script that caches the results of configure
8165 # tests run on this system so they can be shared between configure
8166 # scripts and configure runs, see configure's option --config-cache.
8167 # It is not useful on other systems.  If it contains results you don't
8168 # want to keep, you may remove or edit it.
8169 #
8170 # config.status only pays attention to the cache file if you give it
8171 # the --recheck option to rerun configure.
8172 #
8173 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8174 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8175 # following values.
8176
8177 _ACEOF
8178
8179 # The following way of writing the cache mishandles newlines in values,
8180 # but we know of no workaround that is simple, portable, and efficient.
8181 # So, we kill variables containing newlines.
8182 # Ultrix sh set writes to stderr and can't be redirected directly,
8183 # and sets the high bit in the cache file unless we assign to the vars.
8184 (
8185   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8186     eval ac_val=\$$ac_var
8187     case $ac_val in #(
8188     *${as_nl}*)
8189       case $ac_var in #(
8190       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8191 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8192       esac
8193       case $ac_var in #(
8194       _ | IFS | as_nl) ;; #(
8195       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8196       *) { eval $ac_var=; unset $ac_var;} ;;
8197       esac ;;
8198     esac
8199   done
8200
8201   (set) 2>&1 |
8202     case $as_nl`(ac_space=' '; set) 2>&1` in #(
8203     *${as_nl}ac_space=\ *)
8204       # `set' does not quote correctly, so add quotes: double-quote
8205       # substitution turns \\\\ into \\, and sed turns \\ into \.
8206       sed -n \
8207         "s/'/'\\\\''/g;
8208           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8209       ;; #(
8210     *)
8211       # `set' quotes correctly as required by POSIX, so do not add quotes.
8212       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8213       ;;
8214     esac |
8215     sort
8216 ) |
8217   sed '
8218      /^ac_cv_env_/b end
8219      t clear
8220      :clear
8221      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8222      t end
8223      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8224      :end' >>confcache
8225 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8226   if test -w "$cache_file"; then
8227     if test "x$cache_file" != "x/dev/null"; then
8228       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8229 $as_echo "$as_me: updating cache $cache_file" >&6;}
8230       if test ! -f "$cache_file" || test -h "$cache_file"; then
8231         cat confcache >"$cache_file"
8232       else
8233         case $cache_file in #(
8234         */* | ?:*)
8235           mv -f confcache "$cache_file"$$ &&
8236           mv -f "$cache_file"$$ "$cache_file" ;; #(
8237         *)
8238           mv -f confcache "$cache_file" ;;
8239         esac
8240       fi
8241     fi
8242   else
8243     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8244 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8245   fi
8246 fi
8247 rm -f confcache
8248
8249 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8250 # Let make expand exec_prefix.
8251 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8252
8253 DEFS=-DHAVE_CONFIG_H
8254
8255 ac_libobjs=
8256 ac_ltlibobjs=
8257 U=
8258 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8259   # 1. Remove the extension, and $U if already installed.
8260   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8261   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8262   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
8263   #    will be set to the directory where LIBOBJS objects are built.
8264   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8265   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8266 done
8267 LIBOBJS=$ac_libobjs
8268
8269 LTLIBOBJS=$ac_ltlibobjs
8270
8271
8272  if test -n "$EXEEXT"; then
8273   am__EXEEXT_TRUE=
8274   am__EXEEXT_FALSE='#'
8275 else
8276   am__EXEEXT_TRUE='#'
8277   am__EXEEXT_FALSE=
8278 fi
8279
8280 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
8281   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
8282 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8283 fi
8284 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8285   as_fn_error $? "conditional \"AMDEP\" was never defined.
8286 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8287 fi
8288 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8289   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
8290 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8291 fi
8292 if test -z "${BUILD_MAN_TRUE}" && test -z "${BUILD_MAN_FALSE}"; then
8293   as_fn_error $? "conditional \"BUILD_MAN\" was never defined.
8294 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8295 fi
8296 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
8297   as_fn_error $? "conditional \"HAVE_PYTHON\" was never defined.
8298 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8299 fi
8300 if test -z "${HAVE_PYTHON_BINDINGS_TRUE}" && test -z "${HAVE_PYTHON_BINDINGS_FALSE}"; then
8301   as_fn_error $? "conditional \"HAVE_PYTHON_BINDINGS\" was never defined.
8302 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8303 fi
8304
8305 : "${CONFIG_STATUS=./config.status}"
8306 ac_write_fail=0
8307 ac_clean_files_save=$ac_clean_files
8308 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8310 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8311 as_write_fail=0
8312 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8313 #! $SHELL
8314 # Generated by $as_me.
8315 # Run this file to recreate the current configuration.
8316 # Compiler output produced by configure, useful for debugging
8317 # configure, is in config.log if it exists.
8318
8319 debug=false
8320 ac_cs_recheck=false
8321 ac_cs_silent=false
8322
8323 SHELL=\${CONFIG_SHELL-$SHELL}
8324 export SHELL
8325 _ASEOF
8326 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8327 ## -------------------- ##
8328 ## M4sh Initialization. ##
8329 ## -------------------- ##
8330
8331 # Be more Bourne compatible
8332 DUALCASE=1; export DUALCASE # for MKS sh
8333 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8334   emulate sh
8335   NULLCMD=:
8336   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8337   # is contrary to our usage.  Disable this feature.
8338   alias -g '${1+"$@"}'='"$@"'
8339   setopt NO_GLOB_SUBST
8340 else
8341   case `(set -o) 2>/dev/null` in #(
8342   *posix*) :
8343     set -o posix ;; #(
8344   *) :
8345      ;;
8346 esac
8347 fi
8348
8349
8350 as_nl='
8351 '
8352 export as_nl
8353 # Printing a long string crashes Solaris 7 /usr/bin/printf.
8354 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8355 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8356 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8357 # Prefer a ksh shell builtin over an external printf program on Solaris,
8358 # but without wasting forks for bash or zsh.
8359 if test -z "$BASH_VERSION$ZSH_VERSION" \
8360     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8361   as_echo='print -r --'
8362   as_echo_n='print -rn --'
8363 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8364   as_echo='printf %s\n'
8365   as_echo_n='printf %s'
8366 else
8367   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8368     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8369     as_echo_n='/usr/ucb/echo -n'
8370   else
8371     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8372     as_echo_n_body='eval
8373       arg=$1;
8374       case $arg in #(
8375       *"$as_nl"*)
8376         expr "X$arg" : "X\\(.*\\)$as_nl";
8377         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8378       esac;
8379       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8380     '
8381     export as_echo_n_body
8382     as_echo_n='sh -c $as_echo_n_body as_echo'
8383   fi
8384   export as_echo_body
8385   as_echo='sh -c $as_echo_body as_echo'
8386 fi
8387
8388 # The user is always right.
8389 if test "${PATH_SEPARATOR+set}" != set; then
8390   PATH_SEPARATOR=:
8391   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8392     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8393       PATH_SEPARATOR=';'
8394   }
8395 fi
8396
8397
8398 # IFS
8399 # We need space, tab and new line, in precisely that order.  Quoting is
8400 # there to prevent editors from complaining about space-tab.
8401 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8402 # splitting by setting IFS to empty value.)
8403 IFS=" ""        $as_nl"
8404
8405 # Find who we are.  Look in the path if we contain no directory separator.
8406 as_myself=
8407 case $0 in #((
8408   *[\\/]* ) as_myself=$0 ;;
8409   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8410 for as_dir in $PATH
8411 do
8412   IFS=$as_save_IFS
8413   test -z "$as_dir" && as_dir=.
8414     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8415   done
8416 IFS=$as_save_IFS
8417
8418      ;;
8419 esac
8420 # We did not find ourselves, most probably we were run as `sh COMMAND'
8421 # in which case we are not to be found in the path.
8422 if test "x$as_myself" = x; then
8423   as_myself=$0
8424 fi
8425 if test ! -f "$as_myself"; then
8426   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8427   exit 1
8428 fi
8429
8430 # Unset variables that we do not need and which cause bugs (e.g. in
8431 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
8432 # suppresses any "Segmentation fault" message there.  '((' could
8433 # trigger a bug in pdksh 5.2.14.
8434 for as_var in BASH_ENV ENV MAIL MAILPATH
8435 do eval test x\${$as_var+set} = xset \
8436   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8437 done
8438 PS1='$ '
8439 PS2='> '
8440 PS4='+ '
8441
8442 # NLS nuisances.
8443 LC_ALL=C
8444 export LC_ALL
8445 LANGUAGE=C
8446 export LANGUAGE
8447
8448 # CDPATH.
8449 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8450
8451
8452 # as_fn_error STATUS ERROR [LINENO LOG_FD]
8453 # ----------------------------------------
8454 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8455 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8456 # script with STATUS, using 1 if that was 0.
8457 as_fn_error ()
8458 {
8459   as_status=$1; test $as_status -eq 0 && as_status=1
8460   if test "$4"; then
8461     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8462     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8463   fi
8464   $as_echo "$as_me: error: $2" >&2
8465   as_fn_exit $as_status
8466 } # as_fn_error
8467
8468
8469 # as_fn_set_status STATUS
8470 # -----------------------
8471 # Set $? to STATUS, without forking.
8472 as_fn_set_status ()
8473 {
8474   return $1
8475 } # as_fn_set_status
8476
8477 # as_fn_exit STATUS
8478 # -----------------
8479 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8480 as_fn_exit ()
8481 {
8482   set +e
8483   as_fn_set_status $1
8484   exit $1
8485 } # as_fn_exit
8486
8487 # as_fn_unset VAR
8488 # ---------------
8489 # Portably unset VAR.
8490 as_fn_unset ()
8491 {
8492   { eval $1=; unset $1;}
8493 }
8494 as_unset=as_fn_unset
8495 # as_fn_append VAR VALUE
8496 # ----------------------
8497 # Append the text in VALUE to the end of the definition contained in VAR. Take
8498 # advantage of any shell optimizations that allow amortized linear growth over
8499 # repeated appends, instead of the typical quadratic growth present in naive
8500 # implementations.
8501 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8502   eval 'as_fn_append ()
8503   {
8504     eval $1+=\$2
8505   }'
8506 else
8507   as_fn_append ()
8508   {
8509     eval $1=\$$1\$2
8510   }
8511 fi # as_fn_append
8512
8513 # as_fn_arith ARG...
8514 # ------------------
8515 # Perform arithmetic evaluation on the ARGs, and store the result in the
8516 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8517 # must be portable across $(()) and expr.
8518 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8519   eval 'as_fn_arith ()
8520   {
8521     as_val=$(( $* ))
8522   }'
8523 else
8524   as_fn_arith ()
8525   {
8526     as_val=`expr "$@" || test $? -eq 1`
8527   }
8528 fi # as_fn_arith
8529
8530
8531 if expr a : '\(a\)' >/dev/null 2>&1 &&
8532    test "X`expr 00001 : '.*\(...\)'`" = X001; then
8533   as_expr=expr
8534 else
8535   as_expr=false
8536 fi
8537
8538 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8539   as_basename=basename
8540 else
8541   as_basename=false
8542 fi
8543
8544 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8545   as_dirname=dirname
8546 else
8547   as_dirname=false
8548 fi
8549
8550 as_me=`$as_basename -- "$0" ||
8551 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8552          X"$0" : 'X\(//\)$' \| \
8553          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8554 $as_echo X/"$0" |
8555     sed '/^.*\/\([^/][^/]*\)\/*$/{
8556             s//\1/
8557             q
8558           }
8559           /^X\/\(\/\/\)$/{
8560             s//\1/
8561             q
8562           }
8563           /^X\/\(\/\).*/{
8564             s//\1/
8565             q
8566           }
8567           s/.*/./; q'`
8568
8569 # Avoid depending upon Character Ranges.
8570 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8571 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8572 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8573 as_cr_digits='0123456789'
8574 as_cr_alnum=$as_cr_Letters$as_cr_digits
8575
8576 ECHO_C= ECHO_N= ECHO_T=
8577 case `echo -n x` in #(((((
8578 -n*)
8579   case `echo 'xy\c'` in
8580   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
8581   xy)  ECHO_C='\c';;
8582   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
8583        ECHO_T=' ';;
8584   esac;;
8585 *)
8586   ECHO_N='-n';;
8587 esac
8588
8589 rm -f conf$$ conf$$.exe conf$$.file
8590 if test -d conf$$.dir; then
8591   rm -f conf$$.dir/conf$$.file
8592 else
8593   rm -f conf$$.dir
8594   mkdir conf$$.dir 2>/dev/null
8595 fi
8596 if (echo >conf$$.file) 2>/dev/null; then
8597   if ln -s conf$$.file conf$$ 2>/dev/null; then
8598     as_ln_s='ln -s'
8599     # ... but there are two gotchas:
8600     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8601     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8602     # In both cases, we have to default to `cp -p'.
8603     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8604       as_ln_s='cp -p'
8605   elif ln conf$$.file conf$$ 2>/dev/null; then
8606     as_ln_s=ln
8607   else
8608     as_ln_s='cp -p'
8609   fi
8610 else
8611   as_ln_s='cp -p'
8612 fi
8613 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8614 rmdir conf$$.dir 2>/dev/null
8615
8616
8617 # as_fn_mkdir_p
8618 # -------------
8619 # Create "$as_dir" as a directory, including parents if necessary.
8620 as_fn_mkdir_p ()
8621 {
8622
8623   case $as_dir in #(
8624   -*) as_dir=./$as_dir;;
8625   esac
8626   test -d "$as_dir" || eval $as_mkdir_p || {
8627     as_dirs=
8628     while :; do
8629       case $as_dir in #(
8630       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8631       *) as_qdir=$as_dir;;
8632       esac
8633       as_dirs="'$as_qdir' $as_dirs"
8634       as_dir=`$as_dirname -- "$as_dir" ||
8635 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8636          X"$as_dir" : 'X\(//\)[^/]' \| \
8637          X"$as_dir" : 'X\(//\)$' \| \
8638          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8639 $as_echo X"$as_dir" |
8640     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8641             s//\1/
8642             q
8643           }
8644           /^X\(\/\/\)[^/].*/{
8645             s//\1/
8646             q
8647           }
8648           /^X\(\/\/\)$/{
8649             s//\1/
8650             q
8651           }
8652           /^X\(\/\).*/{
8653             s//\1/
8654             q
8655           }
8656           s/.*/./; q'`
8657       test -d "$as_dir" && break
8658     done
8659     test -z "$as_dirs" || eval "mkdir $as_dirs"
8660   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8661
8662
8663 } # as_fn_mkdir_p
8664 if mkdir -p . 2>/dev/null; then
8665   as_mkdir_p='mkdir -p "$as_dir"'
8666 else
8667   test -d ./-p && rmdir ./-p
8668   as_mkdir_p=false
8669 fi
8670
8671 if test -x / >/dev/null 2>&1; then
8672   as_test_x='test -x'
8673 else
8674   if ls -dL / >/dev/null 2>&1; then
8675     as_ls_L_option=L
8676   else
8677     as_ls_L_option=
8678   fi
8679   as_test_x='
8680     eval sh -c '\''
8681       if test -d "$1"; then
8682         test -d "$1/.";
8683       else
8684         case $1 in #(
8685         -*)set "./$1";;
8686         esac;
8687         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
8688         ???[sx]*):;;*)false;;esac;fi
8689     '\'' sh
8690   '
8691 fi
8692 as_executable_p=$as_test_x
8693
8694 # Sed expression to map a string onto a valid CPP name.
8695 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8696
8697 # Sed expression to map a string onto a valid variable name.
8698 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8699
8700
8701 exec 6>&1
8702 ## ----------------------------------- ##
8703 ## Main body of $CONFIG_STATUS script. ##
8704 ## ----------------------------------- ##
8705 _ASEOF
8706 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8707
8708 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8709 # Save the log message, to keep $0 and so on meaningful, and to
8710 # report actual input values of CONFIG_FILES etc. instead of their
8711 # values after options handling.
8712 ac_log="
8713 This file was extended by yasm $as_me 1.2.0, which was
8714 generated by GNU Autoconf 2.68.  Invocation command line was
8715
8716   CONFIG_FILES    = $CONFIG_FILES
8717   CONFIG_HEADERS  = $CONFIG_HEADERS
8718   CONFIG_LINKS    = $CONFIG_LINKS
8719   CONFIG_COMMANDS = $CONFIG_COMMANDS
8720   $ $0 $@
8721
8722 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8723 "
8724
8725 _ACEOF
8726
8727 case $ac_config_files in *"
8728 "*) set x $ac_config_files; shift; ac_config_files=$*;;
8729 esac
8730
8731 case $ac_config_headers in *"
8732 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8733 esac
8734
8735
8736 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8737 # Files that config.status was made for.
8738 config_files="$ac_config_files"
8739 config_headers="$ac_config_headers"
8740 config_commands="$ac_config_commands"
8741
8742 _ACEOF
8743
8744 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8745 ac_cs_usage="\
8746 \`$as_me' instantiates files and other configuration actions
8747 from templates according to the current configuration.  Unless the files
8748 and actions are specified as TAGs, all are instantiated by default.
8749
8750 Usage: $0 [OPTION]... [TAG]...
8751
8752   -h, --help       print this help, then exit
8753   -V, --version    print version number and configuration settings, then exit
8754       --config     print configuration, then exit
8755   -q, --quiet, --silent
8756                    do not print progress messages
8757   -d, --debug      don't remove temporary files
8758       --recheck    update $as_me by reconfiguring in the same conditions
8759       --file=FILE[:TEMPLATE]
8760                    instantiate the configuration file FILE
8761       --header=FILE[:TEMPLATE]
8762                    instantiate the configuration header FILE
8763
8764 Configuration files:
8765 $config_files
8766
8767 Configuration headers:
8768 $config_headers
8769
8770 Configuration commands:
8771 $config_commands
8772
8773 Report bugs to <bug-yasm@tortall.net>."
8774
8775 _ACEOF
8776 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8777 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8778 ac_cs_version="\\
8779 yasm config.status 1.2.0
8780 configured by $0, generated by GNU Autoconf 2.68,
8781   with options \\"\$ac_cs_config\\"
8782
8783 Copyright (C) 2010 Free Software Foundation, Inc.
8784 This config.status script is free software; the Free Software Foundation
8785 gives unlimited permission to copy, distribute and modify it."
8786
8787 ac_pwd='$ac_pwd'
8788 srcdir='$srcdir'
8789 INSTALL='$INSTALL'
8790 MKDIR_P='$MKDIR_P'
8791 AWK='$AWK'
8792 test -n "\$AWK" || AWK=awk
8793 _ACEOF
8794
8795 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8796 # The default lists apply if the user does not specify any file.
8797 ac_need_defaults=:
8798 while test $# != 0
8799 do
8800   case $1 in
8801   --*=?*)
8802     ac_option=`expr "X$1" : 'X\([^=]*\)='`
8803     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8804     ac_shift=:
8805     ;;
8806   --*=)
8807     ac_option=`expr "X$1" : 'X\([^=]*\)='`
8808     ac_optarg=
8809     ac_shift=:
8810     ;;
8811   *)
8812     ac_option=$1
8813     ac_optarg=$2
8814     ac_shift=shift
8815     ;;
8816   esac
8817
8818   case $ac_option in
8819   # Handling of the options.
8820   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8821     ac_cs_recheck=: ;;
8822   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8823     $as_echo "$ac_cs_version"; exit ;;
8824   --config | --confi | --conf | --con | --co | --c )
8825     $as_echo "$ac_cs_config"; exit ;;
8826   --debug | --debu | --deb | --de | --d | -d )
8827     debug=: ;;
8828   --file | --fil | --fi | --f )
8829     $ac_shift
8830     case $ac_optarg in
8831     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8832     '') as_fn_error $? "missing file argument" ;;
8833     esac
8834     as_fn_append CONFIG_FILES " '$ac_optarg'"
8835     ac_need_defaults=false;;
8836   --header | --heade | --head | --hea )
8837     $ac_shift
8838     case $ac_optarg in
8839     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8840     esac
8841     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8842     ac_need_defaults=false;;
8843   --he | --h)
8844     # Conflict between --help and --header
8845     as_fn_error $? "ambiguous option: \`$1'
8846 Try \`$0 --help' for more information.";;
8847   --help | --hel | -h )
8848     $as_echo "$ac_cs_usage"; exit ;;
8849   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8850   | -silent | --silent | --silen | --sile | --sil | --si | --s)
8851     ac_cs_silent=: ;;
8852
8853   # This is an error.
8854   -*) as_fn_error $? "unrecognized option: \`$1'
8855 Try \`$0 --help' for more information." ;;
8856
8857   *) as_fn_append ac_config_targets " $1"
8858      ac_need_defaults=false ;;
8859
8860   esac
8861   shift
8862 done
8863
8864 ac_configure_extra_args=
8865
8866 if $ac_cs_silent; then
8867   exec 6>/dev/null
8868   ac_configure_extra_args="$ac_configure_extra_args --silent"
8869 fi
8870
8871 _ACEOF
8872 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8873 if \$ac_cs_recheck; then
8874   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8875   shift
8876   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8877   CONFIG_SHELL='$SHELL'
8878   export CONFIG_SHELL
8879   exec "\$@"
8880 fi
8881
8882 _ACEOF
8883 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8884 exec 5>>config.log
8885 {
8886   echo
8887   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8888 ## Running $as_me. ##
8889 _ASBOX
8890   $as_echo "$ac_log"
8891 } >&5
8892
8893 _ACEOF
8894 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8895 #
8896 # INIT-COMMANDS
8897 #
8898 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8899 # variables for create stdint.h replacement
8900 PACKAGE="$PACKAGE"
8901 VERSION="$VERSION"
8902 ac_stdint_h="$ac_stdint_h"
8903 _ac_stdint_h=`$as_echo "_$PACKAGE-$ac_stdint_h" | $as_tr_cpp`
8904 ac_cv_stdint_message="$ac_cv_stdint_message"
8905 ac_cv_header_stdint_t="$ac_cv_header_stdint_t"
8906 ac_cv_header_stdint_x="$ac_cv_header_stdint_x"
8907 ac_cv_header_stdint_o="$ac_cv_header_stdint_o"
8908 ac_cv_header_stdint_u="$ac_cv_header_stdint_u"
8909 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
8910 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
8911 ac_cv_char_data_model="$ac_cv_char_data_model"
8912 ac_cv_long_data_model="$ac_cv_long_data_model"
8913 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
8914 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
8915 ac_cv_type_intmax_t="$ac_cv_type_intmax_t"
8916
8917 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
8918     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
8919     # from automake < 1.5.
8920     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
8921     # Capture the value of LINGUAS because we need it to compute CATALOGS.
8922     LINGUAS="${LINGUAS-%UNSET%}"
8923
8924
8925 _ACEOF
8926
8927 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8928
8929 # Handling of arguments.
8930 for ac_config_target in $ac_config_targets
8931 do
8932   case $ac_config_target in
8933     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8934     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8935     "$ac_stdint_h") CONFIG_COMMANDS="$CONFIG_COMMANDS $ac_stdint_h" ;;
8936     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
8937     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8938     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
8939
8940   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8941   esac
8942 done
8943
8944
8945 # If the user did not use the arguments to specify the items to instantiate,
8946 # then the envvar interface is used.  Set only those that are not.
8947 # We use the long form for the default assignment because of an extremely
8948 # bizarre bug on SunOS 4.1.3.
8949 if $ac_need_defaults; then
8950   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8951   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8952   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8953 fi
8954
8955 # Have a temporary directory for convenience.  Make it in the build tree
8956 # simply because there is no reason against having it here, and in addition,
8957 # creating and moving files from /tmp can sometimes cause problems.
8958 # Hook for its removal unless debugging.
8959 # Note that there is a small window in which the directory will not be cleaned:
8960 # after its creation but before its name has been assigned to `$tmp'.
8961 $debug ||
8962 {
8963   tmp= ac_tmp=
8964   trap 'exit_status=$?
8965   : "${ac_tmp:=$tmp}"
8966   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8967 ' 0
8968   trap 'as_fn_exit 1' 1 2 13 15
8969 }
8970 # Create a (secure) tmp directory for tmp files.
8971
8972 {
8973   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8974   test -d "$tmp"
8975 }  ||
8976 {
8977   tmp=./conf$$-$RANDOM
8978   (umask 077 && mkdir "$tmp")
8979 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8980 ac_tmp=$tmp
8981
8982 # Set up the scripts for CONFIG_FILES section.
8983 # No need to generate them if there are no CONFIG_FILES.
8984 # This happens for instance with `./config.status config.h'.
8985 if test -n "$CONFIG_FILES"; then
8986
8987
8988 ac_cr=`echo X | tr X '\015'`
8989 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8990 # But we know of no other shell where ac_cr would be empty at this
8991 # point, so we can use a bashism as a fallback.
8992 if test "x$ac_cr" = x; then
8993   eval ac_cr=\$\'\\r\'
8994 fi
8995 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8996 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8997   ac_cs_awk_cr='\\r'
8998 else
8999   ac_cs_awk_cr=$ac_cr
9000 fi
9001
9002 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9003 _ACEOF
9004
9005
9006 {
9007   echo "cat >conf$$subs.awk <<_ACEOF" &&
9008   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9009   echo "_ACEOF"
9010 } >conf$$subs.sh ||
9011   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9012 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9013 ac_delim='%!_!# '
9014 for ac_last_try in false false false false false :; do
9015   . ./conf$$subs.sh ||
9016     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9017
9018   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9019   if test $ac_delim_n = $ac_delim_num; then
9020     break
9021   elif $ac_last_try; then
9022     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9023   else
9024     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9025   fi
9026 done
9027 rm -f conf$$subs.sh
9028
9029 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9030 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
9031 _ACEOF
9032 sed -n '
9033 h
9034 s/^/S["/; s/!.*/"]=/
9035 p
9036 g
9037 s/^[^!]*!//
9038 :repl
9039 t repl
9040 s/'"$ac_delim"'$//
9041 t delim
9042 :nl
9043 h
9044 s/\(.\{148\}\)..*/\1/
9045 t more1
9046 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9047 p
9048 n
9049 b repl
9050 :more1
9051 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9052 p
9053 g
9054 s/.\{148\}//
9055 t nl
9056 :delim
9057 h
9058 s/\(.\{148\}\)..*/\1/
9059 t more2
9060 s/["\\]/\\&/g; s/^/"/; s/$/"/
9061 p
9062 b
9063 :more2
9064 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9065 p
9066 g
9067 s/.\{148\}//
9068 t delim
9069 ' <conf$$subs.awk | sed '
9070 /^[^""]/{
9071   N
9072   s/\n//
9073 }
9074 ' >>$CONFIG_STATUS || ac_write_fail=1
9075 rm -f conf$$subs.awk
9076 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9077 _ACAWK
9078 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
9079   for (key in S) S_is_set[key] = 1
9080   FS = "\a"
9081
9082 }
9083 {
9084   line = $ 0
9085   nfields = split(line, field, "@")
9086   substed = 0
9087   len = length(field[1])
9088   for (i = 2; i < nfields; i++) {
9089     key = field[i]
9090     keylen = length(key)
9091     if (S_is_set[key]) {
9092       value = S[key]
9093       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9094       len += length(value) + length(field[++i])
9095       substed = 1
9096     } else
9097       len += 1 + keylen
9098   }
9099
9100   print line
9101 }
9102
9103 _ACAWK
9104 _ACEOF
9105 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9106 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9107   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9108 else
9109   cat
9110 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
9111   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9112 _ACEOF
9113
9114 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9115 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9116 # trailing colons and then remove the whole line if VPATH becomes empty
9117 # (actually we leave an empty line to preserve line numbers).
9118 if test "x$srcdir" = x.; then
9119   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
9120 h
9121 s///
9122 s/^/:/
9123 s/[      ]*$/:/
9124 s/:\$(srcdir):/:/g
9125 s/:\${srcdir}:/:/g
9126 s/:@srcdir@:/:/g
9127 s/^:*//
9128 s/:*$//
9129 x
9130 s/\(=[   ]*\).*/\1/
9131 G
9132 s/\n//
9133 s/^[^=]*=[       ]*$//
9134 }'
9135 fi
9136
9137 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9138 fi # test -n "$CONFIG_FILES"
9139
9140 # Set up the scripts for CONFIG_HEADERS section.
9141 # No need to generate them if there are no CONFIG_HEADERS.
9142 # This happens for instance with `./config.status Makefile'.
9143 if test -n "$CONFIG_HEADERS"; then
9144 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
9145 BEGIN {
9146 _ACEOF
9147
9148 # Transform confdefs.h into an awk script `defines.awk', embedded as
9149 # here-document in config.status, that substitutes the proper values into
9150 # config.h.in to produce config.h.
9151
9152 # Create a delimiter string that does not exist in confdefs.h, to ease
9153 # handling of long lines.
9154 ac_delim='%!_!# '
9155 for ac_last_try in false false :; do
9156   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
9157   if test -z "$ac_tt"; then
9158     break
9159   elif $ac_last_try; then
9160     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
9161   else
9162     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9163   fi
9164 done
9165
9166 # For the awk script, D is an array of macro values keyed by name,
9167 # likewise P contains macro parameters if any.  Preserve backslash
9168 # newline sequences.
9169
9170 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9171 sed -n '
9172 s/.\{148\}/&'"$ac_delim"'/g
9173 t rset
9174 :rset
9175 s/^[     ]*#[    ]*define[       ][      ]*/ /
9176 t def
9177 d
9178 :def
9179 s/\\$//
9180 t bsnl
9181 s/["\\]/\\&/g
9182 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
9183 D["\1"]=" \3"/p
9184 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
9185 d
9186 :bsnl
9187 s/["\\]/\\&/g
9188 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
9189 D["\1"]=" \3\\\\\\n"\\/p
9190 t cont
9191 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9192 t cont
9193 d
9194 :cont
9195 n
9196 s/.\{148\}/&'"$ac_delim"'/g
9197 t clear
9198 :clear
9199 s/\\$//
9200 t bsnlc
9201 s/["\\]/\\&/g; s/^/"/; s/$/"/p
9202 d
9203 :bsnlc
9204 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9205 b cont
9206 ' <confdefs.h | sed '
9207 s/'"$ac_delim"'/"\\\
9208 "/g' >>$CONFIG_STATUS || ac_write_fail=1
9209
9210 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9211   for (key in D) D_is_set[key] = 1
9212   FS = "\a"
9213 }
9214 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9215   line = \$ 0
9216   split(line, arg, " ")
9217   if (arg[1] == "#") {
9218     defundef = arg[2]
9219     mac1 = arg[3]
9220   } else {
9221     defundef = substr(arg[1], 2)
9222     mac1 = arg[2]
9223   }
9224   split(mac1, mac2, "(") #)
9225   macro = mac2[1]
9226   prefix = substr(line, 1, index(line, defundef) - 1)
9227   if (D_is_set[macro]) {
9228     # Preserve the white space surrounding the "#".
9229     print prefix "define", macro P[macro] D[macro]
9230     next
9231   } else {
9232     # Replace #undef with comments.  This is necessary, for example,
9233     # in the case of _POSIX_SOURCE, which is predefined and required
9234     # on some systems where configure will not decide to define it.
9235     if (defundef == "undef") {
9236       print "/*", prefix defundef, macro, "*/"
9237       next
9238     }
9239   }
9240 }
9241 { print }
9242 _ACAWK
9243 _ACEOF
9244 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9245   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
9246 fi # test -n "$CONFIG_HEADERS"
9247
9248
9249 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
9250 shift
9251 for ac_tag
9252 do
9253   case $ac_tag in
9254   :[FHLC]) ac_mode=$ac_tag; continue;;
9255   esac
9256   case $ac_mode$ac_tag in
9257   :[FHL]*:*);;
9258   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
9259   :[FH]-) ac_tag=-:-;;
9260   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9261   esac
9262   ac_save_IFS=$IFS
9263   IFS=:
9264   set x $ac_tag
9265   IFS=$ac_save_IFS
9266   shift
9267   ac_file=$1
9268   shift
9269
9270   case $ac_mode in
9271   :L) ac_source=$1;;
9272   :[FH])
9273     ac_file_inputs=
9274     for ac_f
9275     do
9276       case $ac_f in
9277       -) ac_f="$ac_tmp/stdin";;
9278       *) # Look for the file first in the build tree, then in the source tree
9279          # (if the path is not absolute).  The absolute path cannot be DOS-style,
9280          # because $ac_f cannot contain `:'.
9281          test -f "$ac_f" ||
9282            case $ac_f in
9283            [\\/$]*) false;;
9284            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9285            esac ||
9286            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9287       esac
9288       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9289       as_fn_append ac_file_inputs " '$ac_f'"
9290     done
9291
9292     # Let's still pretend it is `configure' which instantiates (i.e., don't
9293     # use $as_me), people would be surprised to read:
9294     #    /* config.h.  Generated by config.status.  */
9295     configure_input='Generated from '`
9296           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9297         `' by configure.'
9298     if test x"$ac_file" != x-; then
9299       configure_input="$ac_file.  $configure_input"
9300       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9301 $as_echo "$as_me: creating $ac_file" >&6;}
9302     fi
9303     # Neutralize special characters interpreted by sed in replacement strings.
9304     case $configure_input in #(
9305     *\&* | *\|* | *\\* )
9306        ac_sed_conf_input=`$as_echo "$configure_input" |
9307        sed 's/[\\\\&|]/\\\\&/g'`;; #(
9308     *) ac_sed_conf_input=$configure_input;;
9309     esac
9310
9311     case $ac_tag in
9312     *:-:* | *:-) cat >"$ac_tmp/stdin" \
9313       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9314     esac
9315     ;;
9316   esac
9317
9318   ac_dir=`$as_dirname -- "$ac_file" ||
9319 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9320          X"$ac_file" : 'X\(//\)[^/]' \| \
9321          X"$ac_file" : 'X\(//\)$' \| \
9322          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9323 $as_echo X"$ac_file" |
9324     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9325             s//\1/
9326             q
9327           }
9328           /^X\(\/\/\)[^/].*/{
9329             s//\1/
9330             q
9331           }
9332           /^X\(\/\/\)$/{
9333             s//\1/
9334             q
9335           }
9336           /^X\(\/\).*/{
9337             s//\1/
9338             q
9339           }
9340           s/.*/./; q'`
9341   as_dir="$ac_dir"; as_fn_mkdir_p
9342   ac_builddir=.
9343
9344 case "$ac_dir" in
9345 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9346 *)
9347   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9348   # A ".." for each directory in $ac_dir_suffix.
9349   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9350   case $ac_top_builddir_sub in
9351   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9352   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9353   esac ;;
9354 esac
9355 ac_abs_top_builddir=$ac_pwd
9356 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9357 # for backward compatibility:
9358 ac_top_builddir=$ac_top_build_prefix
9359
9360 case $srcdir in
9361   .)  # We are building in place.
9362     ac_srcdir=.
9363     ac_top_srcdir=$ac_top_builddir_sub
9364     ac_abs_top_srcdir=$ac_pwd ;;
9365   [\\/]* | ?:[\\/]* )  # Absolute name.
9366     ac_srcdir=$srcdir$ac_dir_suffix;
9367     ac_top_srcdir=$srcdir
9368     ac_abs_top_srcdir=$srcdir ;;
9369   *) # Relative name.
9370     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9371     ac_top_srcdir=$ac_top_build_prefix$srcdir
9372     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9373 esac
9374 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9375
9376
9377   case $ac_mode in
9378   :F)
9379   #
9380   # CONFIG_FILE
9381   #
9382
9383   case $INSTALL in
9384   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9385   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9386   esac
9387   ac_MKDIR_P=$MKDIR_P
9388   case $MKDIR_P in
9389   [\\/$]* | ?:[\\/]* ) ;;
9390   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
9391   esac
9392 _ACEOF
9393
9394 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9395 # If the template does not know about datarootdir, expand it.
9396 # FIXME: This hack should be removed a few years after 2.60.
9397 ac_datarootdir_hack=; ac_datarootdir_seen=
9398 ac_sed_dataroot='
9399 /datarootdir/ {
9400   p
9401   q
9402 }
9403 /@datadir@/p
9404 /@docdir@/p
9405 /@infodir@/p
9406 /@localedir@/p
9407 /@mandir@/p'
9408 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9409 *datarootdir*) ac_datarootdir_seen=yes;;
9410 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9411   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9412 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9413 _ACEOF
9414 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9415   ac_datarootdir_hack='
9416   s&@datadir@&$datadir&g
9417   s&@docdir@&$docdir&g
9418   s&@infodir@&$infodir&g
9419   s&@localedir@&$localedir&g
9420   s&@mandir@&$mandir&g
9421   s&\\\${datarootdir}&$datarootdir&g' ;;
9422 esac
9423 _ACEOF
9424
9425 # Neutralize VPATH when `$srcdir' = `.'.
9426 # Shell code in configure.ac might set extrasub.
9427 # FIXME: do we really want to maintain this feature?
9428 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9429 ac_sed_extra="$ac_vpsub
9430 $extrasub
9431 _ACEOF
9432 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9433 :t
9434 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9435 s|@configure_input@|$ac_sed_conf_input|;t t
9436 s&@top_builddir@&$ac_top_builddir_sub&;t t
9437 s&@top_build_prefix@&$ac_top_build_prefix&;t t
9438 s&@srcdir@&$ac_srcdir&;t t
9439 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9440 s&@top_srcdir@&$ac_top_srcdir&;t t
9441 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9442 s&@builddir@&$ac_builddir&;t t
9443 s&@abs_builddir@&$ac_abs_builddir&;t t
9444 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9445 s&@INSTALL@&$ac_INSTALL&;t t
9446 s&@MKDIR_P@&$ac_MKDIR_P&;t t
9447 $ac_datarootdir_hack
9448 "
9449 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
9450   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9451
9452 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9453   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
9454   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
9455       "$ac_tmp/out"`; test -z "$ac_out"; } &&
9456   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9457 which seems to be undefined.  Please make sure it is defined" >&5
9458 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9459 which seems to be undefined.  Please make sure it is defined" >&2;}
9460
9461   rm -f "$ac_tmp/stdin"
9462   case $ac_file in
9463   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9464   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9465   esac \
9466   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9467  ;;
9468   :H)
9469   #
9470   # CONFIG_HEADER
9471   #
9472   if test x"$ac_file" != x-; then
9473     {
9474       $as_echo "/* $configure_input  */" \
9475       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
9476     } >"$ac_tmp/config.h" \
9477       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9478     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
9479       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9480 $as_echo "$as_me: $ac_file is unchanged" >&6;}
9481     else
9482       rm -f "$ac_file"
9483       mv "$ac_tmp/config.h" "$ac_file" \
9484         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9485     fi
9486   else
9487     $as_echo "/* $configure_input  */" \
9488       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
9489       || as_fn_error $? "could not create -" "$LINENO" 5
9490   fi
9491 # Compute "$ac_file"'s index in $config_headers.
9492 _am_arg="$ac_file"
9493 _am_stamp_count=1
9494 for _am_header in $config_headers :; do
9495   case $_am_header in
9496     $_am_arg | $_am_arg:* )
9497       break ;;
9498     * )
9499       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9500   esac
9501 done
9502 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
9503 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9504          X"$_am_arg" : 'X\(//\)[^/]' \| \
9505          X"$_am_arg" : 'X\(//\)$' \| \
9506          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
9507 $as_echo X"$_am_arg" |
9508     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9509             s//\1/
9510             q
9511           }
9512           /^X\(\/\/\)[^/].*/{
9513             s//\1/
9514             q
9515           }
9516           /^X\(\/\/\)$/{
9517             s//\1/
9518             q
9519           }
9520           /^X\(\/\).*/{
9521             s//\1/
9522             q
9523           }
9524           s/.*/./; q'`/stamp-h$_am_stamp_count
9525  ;;
9526
9527   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9528 $as_echo "$as_me: executing $ac_file commands" >&6;}
9529  ;;
9530   esac
9531
9532
9533   case $ac_file$ac_mode in
9534     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
9535   # Autoconf 2.62 quotes --file arguments for eval, but not when files
9536   # are listed without --file.  Let's play safe and only enable the eval
9537   # if we detect the quoting.
9538   case $CONFIG_FILES in
9539   *\'*) eval set x "$CONFIG_FILES" ;;
9540   *)   set x $CONFIG_FILES ;;
9541   esac
9542   shift
9543   for mf
9544   do
9545     # Strip MF so we end up with the name of the file.
9546     mf=`echo "$mf" | sed -e 's/:.*$//'`
9547     # Check whether this is an Automake generated Makefile or not.
9548     # We used to match only the files named `Makefile.in', but
9549     # some people rename them; so instead we look at the file content.
9550     # Grep'ing the first line is not enough: some people post-process
9551     # each Makefile.in and add a new line on top of each file to say so.
9552     # Grep'ing the whole file is not good either: AIX grep has a line
9553     # limit of 2048, but all sed's we know have understand at least 4000.
9554     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
9555       dirpart=`$as_dirname -- "$mf" ||
9556 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9557          X"$mf" : 'X\(//\)[^/]' \| \
9558          X"$mf" : 'X\(//\)$' \| \
9559          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
9560 $as_echo X"$mf" |
9561     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9562             s//\1/
9563             q
9564           }
9565           /^X\(\/\/\)[^/].*/{
9566             s//\1/
9567             q
9568           }
9569           /^X\(\/\/\)$/{
9570             s//\1/
9571             q
9572           }
9573           /^X\(\/\).*/{
9574             s//\1/
9575             q
9576           }
9577           s/.*/./; q'`
9578     else
9579       continue
9580     fi
9581     # Extract the definition of DEPDIR, am__include, and am__quote
9582     # from the Makefile without running `make'.
9583     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9584     test -z "$DEPDIR" && continue
9585     am__include=`sed -n 's/^am__include = //p' < "$mf"`
9586     test -z "am__include" && continue
9587     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9588     # When using ansi2knr, U may be empty or an underscore; expand it
9589     U=`sed -n 's/^U = //p' < "$mf"`
9590     # Find all dependency output files, they are included files with
9591     # $(DEPDIR) in their names.  We invoke sed twice because it is the
9592     # simplest approach to changing $(DEPDIR) to its actual value in the
9593     # expansion.
9594     for file in `sed -n "
9595       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9596          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9597       # Make sure the directory exists.
9598       test -f "$dirpart/$file" && continue
9599       fdir=`$as_dirname -- "$file" ||
9600 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9601          X"$file" : 'X\(//\)[^/]' \| \
9602          X"$file" : 'X\(//\)$' \| \
9603          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
9604 $as_echo X"$file" |
9605     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9606             s//\1/
9607             q
9608           }
9609           /^X\(\/\/\)[^/].*/{
9610             s//\1/
9611             q
9612           }
9613           /^X\(\/\/\)$/{
9614             s//\1/
9615             q
9616           }
9617           /^X\(\/\).*/{
9618             s//\1/
9619             q
9620           }
9621           s/.*/./; q'`
9622       as_dir=$dirpart/$fdir; as_fn_mkdir_p
9623       # echo "creating $dirpart/$file"
9624       echo '# dummy' > "$dirpart/$file"
9625     done
9626   done
9627 }
9628  ;;
9629     "$ac_stdint_h":C)
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_stdint_h : $_ac_stdint_h" >&5
9631 $as_echo "$as_me: creating $ac_stdint_h : $_ac_stdint_h" >&6;}
9632 ac_stdint=$tmp/_stdint.h
9633
9634 echo "#ifndef" $_ac_stdint_h >$ac_stdint
9635 echo "#define" $_ac_stdint_h "1" >>$ac_stdint
9636 echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint
9637 echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint
9638 echo "/* generated $ac_cv_stdint_message */" >>$ac_stdint
9639 if test "_$ac_cv_header_stdint_t" != "_" ; then
9640 echo "#define _STDINT_HAVE_STDINT_H" "1" >>$ac_stdint
9641 echo "#include <stdint.h>" >>$ac_stdint
9642 echo "#endif" >>$ac_stdint
9643 echo "#endif" >>$ac_stdint
9644 else
9645
9646 cat >>$ac_stdint <<STDINT_EOF
9647
9648 /* ................... shortcircuit part ........................... */
9649
9650 #if defined HAVE_STDINT_H || defined _STDINT_HAVE_STDINT_H
9651 #include <stdint.h>
9652 #else
9653 #include <stddef.h>
9654
9655 /* .................... configured part ............................ */
9656
9657 STDINT_EOF
9658
9659 echo "/* whether we have a C99 compatible stdint header file */" >>$ac_stdint
9660 if test "_$ac_cv_header_stdint_x" != "_" ; then
9661   ac_header="$ac_cv_header_stdint_x"
9662   echo "#define _STDINT_HEADER_INTPTR" '"'"$ac_header"'"' >>$ac_stdint
9663 else
9664   echo "/* #undef _STDINT_HEADER_INTPTR */" >>$ac_stdint
9665 fi
9666
9667 echo "/* whether we have a C96 compatible inttypes header file */" >>$ac_stdint
9668 if  test "_$ac_cv_header_stdint_o" != "_" ; then
9669   ac_header="$ac_cv_header_stdint_o"
9670   echo "#define _STDINT_HEADER_UINT32" '"'"$ac_header"'"' >>$ac_stdint
9671 else
9672   echo "/* #undef _STDINT_HEADER_UINT32 */" >>$ac_stdint
9673 fi
9674
9675 echo "/* whether we have a BSD compatible inet types header */" >>$ac_stdint
9676 if  test "_$ac_cv_header_stdint_u" != "_" ; then
9677   ac_header="$ac_cv_header_stdint_u"
9678   echo "#define _STDINT_HEADER_U_INT32" '"'"$ac_header"'"' >>$ac_stdint
9679 else
9680   echo "/* #undef _STDINT_HEADER_U_INT32 */" >>$ac_stdint
9681 fi
9682
9683 echo "" >>$ac_stdint
9684
9685 if test "_$ac_header" != "_" ; then if test "$ac_header" != "stddef.h" ; then
9686   echo "#include <$ac_header>" >>$ac_stdint
9687   echo "" >>$ac_stdint
9688 fi fi
9689
9690 echo "/* which 64bit typedef has been found */" >>$ac_stdint
9691 if test "$ac_cv_type_uint64_t" = "yes" ; then
9692 echo "#define   _STDINT_HAVE_UINT64_T" "1"  >>$ac_stdint
9693 else
9694 echo "/* #undef _STDINT_HAVE_UINT64_T */" >>$ac_stdint
9695 fi
9696 if test "$ac_cv_type_u_int64_t" = "yes" ; then
9697 echo "#define   _STDINT_HAVE_U_INT64_T" "1"  >>$ac_stdint
9698 else
9699 echo "/* #undef _STDINT_HAVE_U_INT64_T */" >>$ac_stdint
9700 fi
9701 echo "" >>$ac_stdint
9702
9703 echo "/* which type model has been detected */" >>$ac_stdint
9704 if test "_$ac_cv_char_data_model" != "_" ; then
9705 echo "#define   _STDINT_CHAR_MODEL" "$ac_cv_char_data_model" >>$ac_stdint
9706 echo "#define   _STDINT_LONG_MODEL" "$ac_cv_long_data_model" >>$ac_stdint
9707 else
9708 echo "/* #undef _STDINT_CHAR_MODEL // skipped */" >>$ac_stdint
9709 echo "/* #undef _STDINT_LONG_MODEL // skipped */" >>$ac_stdint
9710 fi
9711 echo "" >>$ac_stdint
9712
9713 echo "/* whether int_least types were detected */" >>$ac_stdint
9714 if test "$ac_cv_type_int_least32_t" = "yes"; then
9715 echo "#define   _STDINT_HAVE_INT_LEAST32_T" "1"  >>$ac_stdint
9716 else
9717 echo "/* #undef _STDINT_HAVE_INT_LEAST32_T */" >>$ac_stdint
9718 fi
9719 echo "/* whether int_fast types were detected */" >>$ac_stdint
9720 if test "$ac_cv_type_int_fast32_t" = "yes"; then
9721 echo "#define   _STDINT_HAVE_INT_FAST32_T" "1" >>$ac_stdint
9722 else
9723 echo "/* #undef _STDINT_HAVE_INT_FAST32_T */" >>$ac_stdint
9724 fi
9725 echo "/* whether intmax_t type was detected */" >>$ac_stdint
9726 if test "$ac_cv_type_intmax_t" = "yes"; then
9727 echo "#define   _STDINT_HAVE_INTMAX_T" "1" >>$ac_stdint
9728 else
9729 echo "/* #undef _STDINT_HAVE_INTMAX_T */" >>$ac_stdint
9730 fi
9731 echo "" >>$ac_stdint
9732
9733   cat >>$ac_stdint <<STDINT_EOF
9734 /* .................... detections part ............................ */
9735
9736 /* whether we need to define bitspecific types from compiler base types */
9737 #ifndef _STDINT_HEADER_INTPTR
9738 #ifndef _STDINT_HEADER_UINT32
9739 #ifndef _STDINT_HEADER_U_INT32
9740 #define _STDINT_NEED_INT_MODEL_T
9741 #else
9742 #define _STDINT_HAVE_U_INT_TYPES
9743 #endif
9744 #endif
9745 #endif
9746
9747 #ifdef _STDINT_HAVE_U_INT_TYPES
9748 #undef _STDINT_NEED_INT_MODEL_T
9749 #endif
9750
9751 #ifdef  _STDINT_CHAR_MODEL
9752 #if     _STDINT_CHAR_MODEL+0 == 122 || _STDINT_CHAR_MODEL+0 == 124
9753 #ifndef _STDINT_BYTE_MODEL
9754 #define _STDINT_BYTE_MODEL 12
9755 #endif
9756 #endif
9757 #endif
9758
9759 #ifndef _STDINT_HAVE_INT_LEAST32_T
9760 #define _STDINT_NEED_INT_LEAST_T
9761 #endif
9762
9763 #ifndef _STDINT_HAVE_INT_FAST32_T
9764 #define _STDINT_NEED_INT_FAST_T
9765 #endif
9766
9767 #ifndef _STDINT_HEADER_INTPTR
9768 #define _STDINT_NEED_INTPTR_T
9769 #endif
9770
9771 #ifndef _STDINT_HAVE_INTMAX_T
9772 #define _STDINT_NEED_INTMAX_T
9773 #endif
9774
9775 /* .................... definition part ............................ */
9776
9777 /* some system headers have good uint64_t */
9778 #ifndef _HAVE_UINT64_T
9779 #if     defined _STDINT_HAVE_UINT64_T  || defined HAVE_UINT64_T
9780 #define _HAVE_UINT64_T
9781 #elif   defined _STDINT_HAVE_U_INT64_T || defined HAVE_U_INT64_T
9782 #define _HAVE_UINT64_T
9783 typedef u_int64_t uint64_t;
9784 #endif
9785 #endif
9786
9787 #ifndef _HAVE_UINT64_T
9788 /* .. here are some common heuristics using compiler runtime specifics */
9789 #if defined __STDC_VERSION__ && defined __STDC_VERSION__ >= 199901L
9790 #define _HAVE_UINT64_T
9791 #define _HAVE_LONGLONG_UINT64_T
9792 typedef long long int64_t;
9793 typedef unsigned long long uint64_t;
9794
9795 #elif !defined __STRICT_ANSI__
9796 #if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
9797 #define _HAVE_UINT64_T
9798 typedef __int64 int64_t;
9799 typedef unsigned __int64 uint64_t;
9800
9801 #elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__
9802 /* note: all ELF-systems seem to have loff-support which needs 64-bit */
9803 #if !defined _NO_LONGLONG
9804 #define _HAVE_UINT64_T
9805 #define _HAVE_LONGLONG_UINT64_T
9806 typedef long long int64_t;
9807 typedef unsigned long long uint64_t;
9808 #endif
9809
9810 #elif defined __alpha || (defined __mips && defined _ABIN32)
9811 #if !defined _NO_LONGLONG
9812 typedef long int64_t;
9813 typedef unsigned long uint64_t;
9814 #endif
9815   /* compiler/cpu type to define int64_t */
9816 #endif
9817 #endif
9818 #endif
9819
9820 #if defined _STDINT_HAVE_U_INT_TYPES
9821 /* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */
9822 typedef u_int8_t uint8_t;
9823 typedef u_int16_t uint16_t;
9824 typedef u_int32_t uint32_t;
9825
9826 /* glibc compatibility */
9827 #ifndef __int8_t_defined
9828 #define __int8_t_defined
9829 #endif
9830 #endif
9831
9832 #ifdef _STDINT_NEED_INT_MODEL_T
9833 /* we must guess all the basic types. Apart from byte-adressable system, */
9834 /* there a few 32-bit-only dsp-systems that we guard with BYTE_MODEL 8-} */
9835 /* (btw, those nibble-addressable systems are way off, or so we assume) */
9836
9837
9838 #if defined _STDINT_BYTE_MODEL
9839 #if _STDINT_LONG_MODEL+0 == 242
9840 /* 2:4:2 =  IP16 = a normal 16-bit system                */
9841 typedef unsigned char   uint8_t;
9842 typedef unsigned short  uint16_t;
9843 typedef unsigned long   uint32_t;
9844 #ifndef __int8_t_defined
9845 #define __int8_t_defined
9846 typedef          char    int8_t;
9847 typedef          short   int16_t;
9848 typedef          long    int32_t;
9849 #endif
9850 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444
9851 /* 2:4:4 =  LP32 = a 32-bit system derived from a 16-bit */
9852 /* 4:4:4 = ILP32 = a normal 32-bit system                */
9853 typedef unsigned char   uint8_t;
9854 typedef unsigned short  uint16_t;
9855 typedef unsigned int    uint32_t;
9856 #ifndef __int8_t_defined
9857 #define __int8_t_defined
9858 typedef          char    int8_t;
9859 typedef          short   int16_t;
9860 typedef          int     int32_t;
9861 #endif
9862 #elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488
9863 /* 4:8:4 =  IP32 = a 32-bit system prepared for 64-bit    */
9864 /* 4:8:8 =  LP64 = a normal 64-bit system                 */
9865 typedef unsigned char   uint8_t;
9866 typedef unsigned short  uint16_t;
9867 typedef unsigned int    uint32_t;
9868 #ifndef __int8_t_defined
9869 #define __int8_t_defined
9870 typedef          char    int8_t;
9871 typedef          short   int16_t;
9872 typedef          int     int32_t;
9873 #endif
9874 /* this system has a "long" of 64bit */
9875 #ifndef _HAVE_UINT64_T
9876 #define _HAVE_UINT64_T
9877 typedef unsigned long   uint64_t;
9878 typedef          long    int64_t;
9879 #endif
9880 #elif _STDINT_LONG_MODEL+0 == 448
9881 /*      LLP64   a 64-bit system derived from a 32-bit system */
9882 typedef unsigned char   uint8_t;
9883 typedef unsigned short  uint16_t;
9884 typedef unsigned int    uint32_t;
9885 #ifndef __int8_t_defined
9886 #define __int8_t_defined
9887 typedef          char    int8_t;
9888 typedef          short   int16_t;
9889 typedef          int     int32_t;
9890 #endif
9891 /* assuming the system has a "long long" */
9892 #ifndef _HAVE_UINT64_T
9893 #define _HAVE_UINT64_T
9894 #define _HAVE_LONGLONG_UINT64_T
9895 typedef unsigned long long uint64_t;
9896 typedef          long long  int64_t;
9897 #endif
9898 #else
9899 #define _STDINT_NO_INT32_T
9900 #endif
9901 #else
9902 #define _STDINT_NO_INT8_T
9903 #define _STDINT_NO_INT32_T
9904 #endif
9905 #endif
9906
9907 /*
9908  * quote from SunOS-5.8 sys/inttypes.h:
9909  * Use at your own risk.  As of February 1996, the committee is squarely
9910  * behind the fixed sized types; the "least" and "fast" types are still being
9911  * discussed.  The probability that the "fast" types may be removed before
9912  * the standard is finalized is high enough that they are not currently
9913  * implemented.
9914  */
9915
9916 #if defined _STDINT_NEED_INT_LEAST_T
9917 typedef  int8_t    int_least8_t;
9918 typedef  int16_t   int_least16_t;
9919 typedef  int32_t   int_least32_t;
9920 #ifdef _HAVE_UINT64_T
9921 typedef  int64_t   int_least64_t;
9922 #endif
9923
9924 typedef uint8_t   uint_least8_t;
9925 typedef uint16_t  uint_least16_t;
9926 typedef uint32_t  uint_least32_t;
9927 #ifdef _HAVE_UINT64_T
9928 typedef uint64_t  uint_least64_t;
9929 #endif
9930   /* least types */
9931 #endif
9932
9933 #if defined _STDINT_NEED_INT_FAST_T
9934 typedef  int8_t    int_fast8_t;
9935 typedef  int       int_fast16_t;
9936 typedef  int32_t   int_fast32_t;
9937 #ifdef _HAVE_UINT64_T
9938 typedef  int64_t   int_fast64_t;
9939 #endif
9940
9941 typedef uint8_t   uint_fast8_t;
9942 typedef unsigned  uint_fast16_t;
9943 typedef uint32_t  uint_fast32_t;
9944 #ifdef _HAVE_UINT64_T
9945 typedef uint64_t  uint_fast64_t;
9946 #endif
9947   /* fast types */
9948 #endif
9949
9950 #ifdef _STDINT_NEED_INTMAX_T
9951 #ifdef _HAVE_UINT64_T
9952 typedef  int64_t       intmax_t;
9953 typedef uint64_t      uintmax_t;
9954 #else
9955 typedef          long  intmax_t;
9956 typedef unsigned long uintmax_t;
9957 #endif
9958 #endif
9959
9960 #ifdef _STDINT_NEED_INTPTR_T
9961 #ifndef __intptr_t_defined
9962 #define __intptr_t_defined
9963 /* we encourage using "long" to store pointer values, never use "int" ! */
9964 #if   _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484
9965 typedef  unsinged int   uintptr_t;
9966 typedef           int    intptr_t;
9967 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444
9968 typedef  unsigned long  uintptr_t;
9969 typedef           long   intptr_t;
9970 #elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_T
9971 typedef        uint64_t uintptr_t;
9972 typedef         int64_t  intptr_t;
9973 #else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */
9974 typedef  unsigned long  uintptr_t;
9975 typedef           long   intptr_t;
9976 #endif
9977 #endif
9978 #endif
9979
9980 /* The ISO C99 standard specifies that in C++ implementations these
9981    should only be defined if explicitly requested.  */
9982 #if !defined __cplusplus || defined __STDC_CONSTANT_MACROS
9983 #ifndef UINT32_C
9984
9985 /* Signed.  */
9986 # define INT8_C(c)      c
9987 # define INT16_C(c)     c
9988 # define INT32_C(c)     c
9989 # ifdef _HAVE_LONGLONG_UINT64_T
9990 #  define INT64_C(c)    c ## L
9991 # else
9992 #  define INT64_C(c)    c ## LL
9993 # endif
9994
9995 /* Unsigned.  */
9996 # define UINT8_C(c)     c ## U
9997 # define UINT16_C(c)    c ## U
9998 # define UINT32_C(c)    c ## U
9999 # ifdef _HAVE_LONGLONG_UINT64_T
10000 #  define UINT64_C(c)   c ## UL
10001 # else
10002 #  define UINT64_C(c)   c ## ULL
10003 # endif
10004
10005 /* Maximal type.  */
10006 # ifdef _HAVE_LONGLONG_UINT64_T
10007 #  define INTMAX_C(c)   c ## L
10008 #  define UINTMAX_C(c)  c ## UL
10009 # else
10010 #  define INTMAX_C(c)   c ## LL
10011 #  define UINTMAX_C(c)  c ## ULL
10012 # endif
10013
10014   /* literalnumbers */
10015 #endif
10016 #endif
10017
10018 /* These limits are merily those of a two complement byte-oriented system */
10019
10020 /* Minimum of signed integral types.  */
10021 # define INT8_MIN               (-128)
10022 # define INT16_MIN              (-32767-1)
10023 # define INT32_MIN              (-2147483647-1)
10024 # define INT64_MIN              (-__INT64_C(9223372036854775807)-1)
10025 /* Maximum of signed integral types.  */
10026 # define INT8_MAX               (127)
10027 # define INT16_MAX              (32767)
10028 # define INT32_MAX              (2147483647)
10029 # define INT64_MAX              (__INT64_C(9223372036854775807))
10030
10031 /* Maximum of unsigned integral types.  */
10032 # define UINT8_MAX              (255)
10033 # define UINT16_MAX             (65535)
10034 # define UINT32_MAX             (4294967295U)
10035 # define UINT64_MAX             (__UINT64_C(18446744073709551615))
10036
10037 /* Minimum of signed integral types having a minimum size.  */
10038 # define INT_LEAST8_MIN         INT8_MIN
10039 # define INT_LEAST16_MIN        INT16_MIN
10040 # define INT_LEAST32_MIN        INT32_MIN
10041 # define INT_LEAST64_MIN        INT64_MIN
10042 /* Maximum of signed integral types having a minimum size.  */
10043 # define INT_LEAST8_MAX         INT8_MAX
10044 # define INT_LEAST16_MAX        INT16_MAX
10045 # define INT_LEAST32_MAX        INT32_MAX
10046 # define INT_LEAST64_MAX        INT64_MAX
10047
10048 /* Maximum of unsigned integral types having a minimum size.  */
10049 # define UINT_LEAST8_MAX        UINT8_MAX
10050 # define UINT_LEAST16_MAX       UINT16_MAX
10051 # define UINT_LEAST32_MAX       UINT32_MAX
10052 # define UINT_LEAST64_MAX       UINT64_MAX
10053
10054   /* shortcircuit*/
10055 #endif
10056   /* once */
10057 #endif
10058 #endif
10059 STDINT_EOF
10060 fi
10061     if cmp -s $ac_stdint_h $ac_stdint 2>/dev/null; then
10062       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_stdint_h is unchanged" >&5
10063 $as_echo "$as_me: $ac_stdint_h is unchanged" >&6;}
10064     else
10065       ac_dir=`$as_dirname -- "$ac_stdint_h" ||
10066 $as_expr X"$ac_stdint_h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10067          X"$ac_stdint_h" : 'X\(//\)[^/]' \| \
10068          X"$ac_stdint_h" : 'X\(//\)$' \| \
10069          X"$ac_stdint_h" : 'X\(/\)' \| . 2>/dev/null ||
10070 $as_echo X"$ac_stdint_h" |
10071     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10072             s//\1/
10073             q
10074           }
10075           /^X\(\/\/\)[^/].*/{
10076             s//\1/
10077             q
10078           }
10079           /^X\(\/\/\)$/{
10080             s//\1/
10081             q
10082           }
10083           /^X\(\/\).*/{
10084             s//\1/
10085             q
10086           }
10087           s/.*/./; q'`
10088       as_dir="$ac_dir"; as_fn_mkdir_p
10089       rm -f $ac_stdint_h
10090       mv $ac_stdint $ac_stdint_h
10091     fi
10092  ;;
10093     "po-directories":C)
10094     for ac_file in $CONFIG_FILES; do
10095       # Support "outfile[:infile[:infile...]]"
10096       case "$ac_file" in
10097         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10098       esac
10099       # PO directories have a Makefile.in generated from Makefile.in.in.
10100       case "$ac_file" in */Makefile.in)
10101         # Adjust a relative srcdir.
10102         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
10103         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
10104         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
10105         # In autoconf-2.13 it is called $ac_given_srcdir.
10106         # In autoconf-2.50 it is called $srcdir.
10107         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
10108         case "$ac_given_srcdir" in
10109           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
10110           /*) top_srcdir="$ac_given_srcdir" ;;
10111           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
10112         esac
10113         # Treat a directory as a PO directory if and only if it has a
10114         # POTFILES.in file. This allows packages to have multiple PO
10115         # directories under different names or in different locations.
10116         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
10117           rm -f "$ac_dir/POTFILES"
10118           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
10119           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
10120           POMAKEFILEDEPS="POTFILES.in"
10121           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
10122           # on $ac_dir but don't depend on user-specified configuration
10123           # parameters.
10124           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
10125             # The LINGUAS file contains the set of available languages.
10126             if test -n "$OBSOLETE_ALL_LINGUAS"; then
10127               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
10128             fi
10129             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
10130             # Hide the ALL_LINGUAS assigment from automake < 1.5.
10131             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
10132             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
10133           else
10134             # The set of available languages was given in configure.in.
10135             # Hide the ALL_LINGUAS assigment from automake < 1.5.
10136             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
10137           fi
10138           # Compute POFILES
10139           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
10140           # Compute UPDATEPOFILES
10141           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
10142           # Compute DUMMYPOFILES
10143           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
10144           # Compute GMOFILES
10145           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
10146           case "$ac_given_srcdir" in
10147             .) srcdirpre= ;;
10148             *) srcdirpre='$(srcdir)/' ;;
10149           esac
10150           POFILES=
10151           UPDATEPOFILES=
10152           DUMMYPOFILES=
10153           GMOFILES=
10154           for lang in $ALL_LINGUAS; do
10155             POFILES="$POFILES $srcdirpre$lang.po"
10156             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
10157             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
10158             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
10159           done
10160           # CATALOGS depends on both $ac_dir and the user's LINGUAS
10161           # environment variable.
10162           INST_LINGUAS=
10163           if test -n "$ALL_LINGUAS"; then
10164             for presentlang in $ALL_LINGUAS; do
10165               useit=no
10166               if test "%UNSET%" != "$LINGUAS"; then
10167                 desiredlanguages="$LINGUAS"
10168               else
10169                 desiredlanguages="$ALL_LINGUAS"
10170               fi
10171               for desiredlang in $desiredlanguages; do
10172                 # Use the presentlang catalog if desiredlang is
10173                 #   a. equal to presentlang, or
10174                 #   b. a variant of presentlang (because in this case,
10175                 #      presentlang can be used as a fallback for messages
10176                 #      which are not translated in the desiredlang catalog).
10177                 case "$desiredlang" in
10178                   "$presentlang"*) useit=yes;;
10179                 esac
10180               done
10181               if test $useit = yes; then
10182                 INST_LINGUAS="$INST_LINGUAS $presentlang"
10183               fi
10184             done
10185           fi
10186           CATALOGS=
10187           if test -n "$INST_LINGUAS"; then
10188             for lang in $INST_LINGUAS; do
10189               CATALOGS="$CATALOGS $lang.gmo"
10190             done
10191           fi
10192           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
10193           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
10194           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
10195             if test -f "$f"; then
10196               case "$f" in
10197                 *.orig | *.bak | *~) ;;
10198                 *) cat "$f" >> "$ac_dir/Makefile" ;;
10199               esac
10200             fi
10201           done
10202         fi
10203         ;;
10204       esac
10205     done ;;
10206
10207   esac
10208 done # for ac_tag
10209
10210
10211 as_fn_exit 0
10212 _ACEOF
10213 ac_clean_files=$ac_clean_files_save
10214
10215 test $ac_write_fail = 0 ||
10216   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
10217
10218
10219 # configure is writing to config.log, and then calls config.status.
10220 # config.status does its own redirection, appending to config.log.
10221 # Unfortunately, on DOS this fails, as config.log is still kept open
10222 # by configure, so config.status won't be able to write to it; its
10223 # output is simply discarded.  So we exec the FD to /dev/null,
10224 # effectively closing config.log, so it can be properly (re)opened and
10225 # appended to by config.status.  When coming back to configure, we
10226 # need to make the FD available again.
10227 if test "$no_create" != yes; then
10228   ac_cs_success=:
10229   ac_config_status_args=
10230   test "$silent" = yes &&
10231     ac_config_status_args="$ac_config_status_args --quiet"
10232   exec 5>/dev/null
10233   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10234   exec 5>>config.log
10235   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10236   # would make configure fail if this is the last instruction.
10237   $ac_cs_success || as_fn_exit 1
10238 fi
10239 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10240   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10241 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
10242 fi
10243