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