source: configure @ 3674002

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