source: configure @ b310c0e

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