source: configure @ 09489b89

barnowl_perlaimdebianowlrelease-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
Last change on this file since 09489b89 was 09489b89, checked in by James M. Kretchmar <kretch@mit.edu>, 17 years ago
First pass at making owl build without zephyr
  • Property mode set to 100755
File size: 72.2 KB
Line 
1#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
4# Generated automatically using autoconf version 2.13
5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6#
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10# Defaults:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
14
15# Initialize some variables set by options.
16# The variables have the same names as the options, with
17# dashes changed to underlines.
18build=NONE
19cache_file=./config.cache
20exec_prefix=NONE
21host=NONE
22no_create=
23nonopt=NONE
24no_recursion=
25prefix=NONE
26program_prefix=NONE
27program_suffix=NONE
28program_transform_name=s,x,x,
29silent=
30site=
31srcdir=
32target=NONE
33verbose=
34x_includes=NONE
35x_libraries=NONE
36bindir='${exec_prefix}/bin'
37sbindir='${exec_prefix}/sbin'
38libexecdir='${exec_prefix}/libexec'
39datadir='${prefix}/share'
40sysconfdir='${prefix}/etc'
41sharedstatedir='${prefix}/com'
42localstatedir='${prefix}/var'
43libdir='${exec_prefix}/lib'
44includedir='${prefix}/include'
45oldincludedir='/usr/include'
46infodir='${prefix}/info'
47mandir='${prefix}/man'
48
49# Initialize some other variables.
50subdirs=
51MFLAGS= MAKEFLAGS=
52SHELL=${CONFIG_SHELL-/bin/sh}
53# Maximum number of lines to put in a shell here document.
54ac_max_here_lines=12
55
56ac_prev=
57for ac_option
58do
59
60  # If the previous option needs an argument, assign it.
61  if test -n "$ac_prev"; then
62    eval "$ac_prev=\$ac_option"
63    ac_prev=
64    continue
65  fi
66
67  case "$ac_option" in
68  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
69  *) ac_optarg= ;;
70  esac
71
72  # Accept the important Cygnus configure options, so we can diagnose typos.
73
74  case "$ac_option" in
75
76  -bindir | --bindir | --bindi | --bind | --bin | --bi)
77    ac_prev=bindir ;;
78  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
79    bindir="$ac_optarg" ;;
80
81  -build | --build | --buil | --bui | --bu)
82    ac_prev=build ;;
83  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
84    build="$ac_optarg" ;;
85
86  -cache-file | --cache-file | --cache-fil | --cache-fi \
87  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
88    ac_prev=cache_file ;;
89  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
90  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
91    cache_file="$ac_optarg" ;;
92
93  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
94    ac_prev=datadir ;;
95  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
96  | --da=*)
97    datadir="$ac_optarg" ;;
98
99  -disable-* | --disable-*)
100    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
101    # Reject names that are not valid shell variable names.
102    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
103      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
104    fi
105    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
106    eval "enable_${ac_feature}=no" ;;
107
108  -enable-* | --enable-*)
109    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
110    # Reject names that are not valid shell variable names.
111    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
112      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
113    fi
114    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
115    case "$ac_option" in
116      *=*) ;;
117      *) ac_optarg=yes ;;
118    esac
119    eval "enable_${ac_feature}='$ac_optarg'" ;;
120
121  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
122  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
123  | --exec | --exe | --ex)
124    ac_prev=exec_prefix ;;
125  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
126  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
127  | --exec=* | --exe=* | --ex=*)
128    exec_prefix="$ac_optarg" ;;
129
130  -gas | --gas | --ga | --g)
131    # Obsolete; use --with-gas.
132    with_gas=yes ;;
133
134  -help | --help | --hel | --he)
135    # Omit some internal or obsolete options to make the list less imposing.
136    # This message is too long to be a string in the A/UX 3.1 sh.
137    cat << EOF
138Usage: configure [options] [host]
139Options: [defaults in brackets after descriptions]
140Configuration:
141  --cache-file=FILE       cache test results in FILE
142  --help                  print this message
143  --no-create             do not create output files
144  --quiet, --silent       do not print \`checking...' messages
145  --version               print the version of autoconf that created configure
146Directory and file names:
147  --prefix=PREFIX         install architecture-independent files in PREFIX
148                          [$ac_default_prefix]
149  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
150                          [same as prefix]
151  --bindir=DIR            user executables in DIR [EPREFIX/bin]
152  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
153  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
154  --datadir=DIR           read-only architecture-independent data in DIR
155                          [PREFIX/share]
156  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
157  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
158                          [PREFIX/com]
159  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
160  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
161  --includedir=DIR        C header files in DIR [PREFIX/include]
162  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
163  --infodir=DIR           info documentation in DIR [PREFIX/info]
164  --mandir=DIR            man documentation in DIR [PREFIX/man]
165  --srcdir=DIR            find the sources in DIR [configure dir or ..]
166  --program-prefix=PREFIX prepend PREFIX to installed program names
167  --program-suffix=SUFFIX append SUFFIX to installed program names
168  --program-transform-name=PROGRAM
169                          run sed PROGRAM on installed program names
170EOF
171    cat << EOF
172Host type:
173  --build=BUILD           configure for building on BUILD [BUILD=HOST]
174  --host=HOST             configure for HOST [guessed]
175  --target=TARGET         configure for TARGET [TARGET=HOST]
176Features and packages:
177  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
178  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
179  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
180  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
181  --x-includes=DIR        X include files are in DIR
182  --x-libraries=DIR       X library files are in DIR
183EOF
184    if test -n "$ac_help"; then
185      echo "--enable and --with options recognized:$ac_help"
186    fi
187    exit 0 ;;
188
189  -host | --host | --hos | --ho)
190    ac_prev=host ;;
191  -host=* | --host=* | --hos=* | --ho=*)
192    host="$ac_optarg" ;;
193
194  -includedir | --includedir | --includedi | --included | --include \
195  | --includ | --inclu | --incl | --inc)
196    ac_prev=includedir ;;
197  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
198  | --includ=* | --inclu=* | --incl=* | --inc=*)
199    includedir="$ac_optarg" ;;
200
201  -infodir | --infodir | --infodi | --infod | --info | --inf)
202    ac_prev=infodir ;;
203  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
204    infodir="$ac_optarg" ;;
205
206  -libdir | --libdir | --libdi | --libd)
207    ac_prev=libdir ;;
208  -libdir=* | --libdir=* | --libdi=* | --libd=*)
209    libdir="$ac_optarg" ;;
210
211  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
212  | --libexe | --libex | --libe)
213    ac_prev=libexecdir ;;
214  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
215  | --libexe=* | --libex=* | --libe=*)
216    libexecdir="$ac_optarg" ;;
217
218  -localstatedir | --localstatedir | --localstatedi | --localstated \
219  | --localstate | --localstat | --localsta | --localst \
220  | --locals | --local | --loca | --loc | --lo)
221    ac_prev=localstatedir ;;
222  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
223  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
224  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
225    localstatedir="$ac_optarg" ;;
226
227  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
228    ac_prev=mandir ;;
229  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
230    mandir="$ac_optarg" ;;
231
232  -nfp | --nfp | --nf)
233    # Obsolete; use --without-fp.
234    with_fp=no ;;
235
236  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
237  | --no-cr | --no-c)
238    no_create=yes ;;
239
240  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
241  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
242    no_recursion=yes ;;
243
244  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
245  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
246  | --oldin | --oldi | --old | --ol | --o)
247    ac_prev=oldincludedir ;;
248  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
249  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
250  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
251    oldincludedir="$ac_optarg" ;;
252
253  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
254    ac_prev=prefix ;;
255  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
256    prefix="$ac_optarg" ;;
257
258  -program-prefix | --program-prefix | --program-prefi | --program-pref \
259  | --program-pre | --program-pr | --program-p)
260    ac_prev=program_prefix ;;
261  -program-prefix=* | --program-prefix=* | --program-prefi=* \
262  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
263    program_prefix="$ac_optarg" ;;
264
265  -program-suffix | --program-suffix | --program-suffi | --program-suff \
266  | --program-suf | --program-su | --program-s)
267    ac_prev=program_suffix ;;
268  -program-suffix=* | --program-suffix=* | --program-suffi=* \
269  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
270    program_suffix="$ac_optarg" ;;
271
272  -program-transform-name | --program-transform-name \
273  | --program-transform-nam | --program-transform-na \
274  | --program-transform-n | --program-transform- \
275  | --program-transform | --program-transfor \
276  | --program-transfo | --program-transf \
277  | --program-trans | --program-tran \
278  | --progr-tra | --program-tr | --program-t)
279    ac_prev=program_transform_name ;;
280  -program-transform-name=* | --program-transform-name=* \
281  | --program-transform-nam=* | --program-transform-na=* \
282  | --program-transform-n=* | --program-transform-=* \
283  | --program-transform=* | --program-transfor=* \
284  | --program-transfo=* | --program-transf=* \
285  | --program-trans=* | --program-tran=* \
286  | --progr-tra=* | --program-tr=* | --program-t=*)
287    program_transform_name="$ac_optarg" ;;
288
289  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
290  | -silent | --silent | --silen | --sile | --sil)
291    silent=yes ;;
292
293  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
294    ac_prev=sbindir ;;
295  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
296  | --sbi=* | --sb=*)
297    sbindir="$ac_optarg" ;;
298
299  -sharedstatedir | --sharedstatedir | --sharedstatedi \
300  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
301  | --sharedst | --shareds | --shared | --share | --shar \
302  | --sha | --sh)
303    ac_prev=sharedstatedir ;;
304  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
305  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
306  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
307  | --sha=* | --sh=*)
308    sharedstatedir="$ac_optarg" ;;
309
310  -site | --site | --sit)
311    ac_prev=site ;;
312  -site=* | --site=* | --sit=*)
313    site="$ac_optarg" ;;
314
315  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
316    ac_prev=srcdir ;;
317  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
318    srcdir="$ac_optarg" ;;
319
320  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
321  | --syscon | --sysco | --sysc | --sys | --sy)
322    ac_prev=sysconfdir ;;
323  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
324  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
325    sysconfdir="$ac_optarg" ;;
326
327  -target | --target | --targe | --targ | --tar | --ta | --t)
328    ac_prev=target ;;
329  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
330    target="$ac_optarg" ;;
331
332  -v | -verbose | --verbose | --verbos | --verbo | --verb)
333    verbose=yes ;;
334
335  -version | --version | --versio | --versi | --vers)
336    echo "configure generated by autoconf version 2.13"
337    exit 0 ;;
338
339  -with-* | --with-*)
340    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
341    # Reject names that are not valid shell variable names.
342    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
343      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
344    fi
345    ac_package=`echo $ac_package| sed 's/-/_/g'`
346    case "$ac_option" in
347      *=*) ;;
348      *) ac_optarg=yes ;;
349    esac
350    eval "with_${ac_package}='$ac_optarg'" ;;
351
352  -without-* | --without-*)
353    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
354    # Reject names that are not valid shell variable names.
355    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
356      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
357    fi
358    ac_package=`echo $ac_package| sed 's/-/_/g'`
359    eval "with_${ac_package}=no" ;;
360
361  --x)
362    # Obsolete; use --with-x.
363    with_x=yes ;;
364
365  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
366  | --x-incl | --x-inc | --x-in | --x-i)
367    ac_prev=x_includes ;;
368  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
369  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
370    x_includes="$ac_optarg" ;;
371
372  -x-libraries | --x-libraries | --x-librarie | --x-librari \
373  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
374    ac_prev=x_libraries ;;
375  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
376  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
377    x_libraries="$ac_optarg" ;;
378
379  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
380    ;;
381
382  *)
383    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
384      echo "configure: warning: $ac_option: invalid host type" 1>&2
385    fi
386    if test "x$nonopt" != xNONE; then
387      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
388    fi
389    nonopt="$ac_option"
390    ;;
391
392  esac
393done
394
395if test -n "$ac_prev"; then
396  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
397fi
398
399trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
400
401# File descriptor usage:
402# 0 standard input
403# 1 file creation
404# 2 errors and warnings
405# 3 some systems may open it to /dev/tty
406# 4 used on the Kubota Titan
407# 6 checking for... messages and results
408# 5 compiler messages saved in config.log
409if test "$silent" = yes; then
410  exec 6>/dev/null
411else
412  exec 6>&1
413fi
414exec 5>./config.log
415
416echo "\
417This file contains any messages produced by compilers while
418running configure, to aid debugging if configure makes a mistake.
419" 1>&5
420
421# Strip out --no-create and --no-recursion so they do not pile up.
422# Also quote any args containing shell metacharacters.
423ac_configure_args=
424for ac_arg
425do
426  case "$ac_arg" in
427  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
428  | --no-cr | --no-c) ;;
429  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
430  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
431  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
432  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
433  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
434  esac
435done
436
437# NLS nuisances.
438# Only set these to C if already set.  These must not be set unconditionally
439# because not all systems understand e.g. LANG=C (notably SCO).
440# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
441# Non-C LC_CTYPE values break the ctype check.
442if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
443if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
444if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
445if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
446
447# confdefs.h avoids OS command line length limits that DEFS can exceed.
448rm -rf conftest* confdefs.h
449# AIX cpp loses on an empty file, so make sure it contains at least a newline.
450echo > confdefs.h
451
452# A filename unique to this package, relative to the directory that
453# configure is in, which we can look for to find out if srcdir is correct.
454ac_unique_file=owl.c
455
456# Find the source files, if location was not specified.
457if test -z "$srcdir"; then
458  ac_srcdir_defaulted=yes
459  # Try the directory containing this script, then its parent.
460  ac_prog=$0
461  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
462  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
463  srcdir=$ac_confdir
464  if test ! -r $srcdir/$ac_unique_file; then
465    srcdir=..
466  fi
467else
468  ac_srcdir_defaulted=no
469fi
470if test ! -r $srcdir/$ac_unique_file; then
471  if test "$ac_srcdir_defaulted" = yes; then
472    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
473  else
474    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
475  fi
476fi
477srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
478
479# Prefer explicitly selected file to automatically selected ones.
480if test -z "$CONFIG_SITE"; then
481  if test "x$prefix" != xNONE; then
482    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
483  else
484    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
485  fi
486fi
487for ac_site_file in $CONFIG_SITE; do
488  if test -r "$ac_site_file"; then
489    echo "loading site script $ac_site_file"
490    . "$ac_site_file"
491  fi
492done
493
494if test -r "$cache_file"; then
495  echo "loading cache $cache_file"
496  . $cache_file
497else
498  echo "creating cache $cache_file"
499  > $cache_file
500fi
501
502ac_ext=c
503# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
504ac_cpp='$CPP $CPPFLAGS'
505ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
506ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
507cross_compiling=$ac_cv_prog_cc_cross
508
509ac_exeext=
510ac_objext=o
511if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
512  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
513  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
514    ac_n= ac_c='
515' ac_t='        '
516  else
517    ac_n=-n ac_c= ac_t=
518  fi
519else
520  ac_n= ac_c='\c' ac_t=
521fi
522
523
524
525
526
527# Extract the first word of "gcc", so it can be a program name with args.
528set dummy gcc; ac_word=$2
529echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
530echo "configure:531: checking for $ac_word" >&5
531if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
532  echo $ac_n "(cached) $ac_c" 1>&6
533else
534  if test -n "$CC"; then
535  ac_cv_prog_CC="$CC" # Let the user override the test.
536else
537  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
538  ac_dummy="$PATH"
539  for ac_dir in $ac_dummy; do
540    test -z "$ac_dir" && ac_dir=.
541    if test -f $ac_dir/$ac_word; then
542      ac_cv_prog_CC="gcc"
543      break
544    fi
545  done
546  IFS="$ac_save_ifs"
547fi
548fi
549CC="$ac_cv_prog_CC"
550if test -n "$CC"; then
551  echo "$ac_t""$CC" 1>&6
552else
553  echo "$ac_t""no" 1>&6
554fi
555
556if test -z "$CC"; then
557  # Extract the first word of "cc", so it can be a program name with args.
558set dummy cc; ac_word=$2
559echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
560echo "configure:561: checking for $ac_word" >&5
561if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
562  echo $ac_n "(cached) $ac_c" 1>&6
563else
564  if test -n "$CC"; then
565  ac_cv_prog_CC="$CC" # Let the user override the test.
566else
567  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
568  ac_prog_rejected=no
569  ac_dummy="$PATH"
570  for ac_dir in $ac_dummy; do
571    test -z "$ac_dir" && ac_dir=.
572    if test -f $ac_dir/$ac_word; then
573      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
574        ac_prog_rejected=yes
575        continue
576      fi
577      ac_cv_prog_CC="cc"
578      break
579    fi
580  done
581  IFS="$ac_save_ifs"
582if test $ac_prog_rejected = yes; then
583  # We found a bogon in the path, so make sure we never use it.
584  set dummy $ac_cv_prog_CC
585  shift
586  if test $# -gt 0; then
587    # We chose a different compiler from the bogus one.
588    # However, it has the same basename, so the bogon will be chosen
589    # first if we set CC to just the basename; use the full file name.
590    shift
591    set dummy "$ac_dir/$ac_word" "$@"
592    shift
593    ac_cv_prog_CC="$@"
594  fi
595fi
596fi
597fi
598CC="$ac_cv_prog_CC"
599if test -n "$CC"; then
600  echo "$ac_t""$CC" 1>&6
601else
602  echo "$ac_t""no" 1>&6
603fi
604
605  if test -z "$CC"; then
606    case "`uname -s`" in
607    *win32* | *WIN32*)
608      # Extract the first word of "cl", so it can be a program name with args.
609set dummy cl; ac_word=$2
610echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
611echo "configure:612: checking for $ac_word" >&5
612if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
613  echo $ac_n "(cached) $ac_c" 1>&6
614else
615  if test -n "$CC"; then
616  ac_cv_prog_CC="$CC" # Let the user override the test.
617else
618  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
619  ac_dummy="$PATH"
620  for ac_dir in $ac_dummy; do
621    test -z "$ac_dir" && ac_dir=.
622    if test -f $ac_dir/$ac_word; then
623      ac_cv_prog_CC="cl"
624      break
625    fi
626  done
627  IFS="$ac_save_ifs"
628fi
629fi
630CC="$ac_cv_prog_CC"
631if test -n "$CC"; then
632  echo "$ac_t""$CC" 1>&6
633else
634  echo "$ac_t""no" 1>&6
635fi
636 ;;
637    esac
638  fi
639  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
640fi
641
642echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
643echo "configure:644: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
644
645ac_ext=c
646# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
647ac_cpp='$CPP $CPPFLAGS'
648ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
649ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
650cross_compiling=$ac_cv_prog_cc_cross
651
652cat > conftest.$ac_ext << EOF
653
654#line 655 "configure"
655#include "confdefs.h"
656
657main(){return(0);}
658EOF
659if { (eval echo configure:660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
660  ac_cv_prog_cc_works=yes
661  # If we can't run a trivial program, we are probably using a cross compiler.
662  if (./conftest; exit) 2>/dev/null; then
663    ac_cv_prog_cc_cross=no
664  else
665    ac_cv_prog_cc_cross=yes
666  fi
667else
668  echo "configure: failed program was:" >&5
669  cat conftest.$ac_ext >&5
670  ac_cv_prog_cc_works=no
671fi
672rm -fr conftest*
673ac_ext=c
674# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
675ac_cpp='$CPP $CPPFLAGS'
676ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
677ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
678cross_compiling=$ac_cv_prog_cc_cross
679
680echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
681if test $ac_cv_prog_cc_works = no; then
682  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
683fi
684echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
685echo "configure:686: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
686echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
687cross_compiling=$ac_cv_prog_cc_cross
688
689echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
690echo "configure:691: checking whether we are using GNU C" >&5
691if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
692  echo $ac_n "(cached) $ac_c" 1>&6
693else
694  cat > conftest.c <<EOF
695#ifdef __GNUC__
696  yes;
697#endif
698EOF
699if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:700: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
700  ac_cv_prog_gcc=yes
701else
702  ac_cv_prog_gcc=no
703fi
704fi
705
706echo "$ac_t""$ac_cv_prog_gcc" 1>&6
707
708if test $ac_cv_prog_gcc = yes; then
709  GCC=yes
710else
711  GCC=
712fi
713
714ac_test_CFLAGS="${CFLAGS+set}"
715ac_save_CFLAGS="$CFLAGS"
716CFLAGS=
717echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
718echo "configure:719: checking whether ${CC-cc} accepts -g" >&5
719if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
720  echo $ac_n "(cached) $ac_c" 1>&6
721else
722  echo 'void f(){}' > conftest.c
723if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
724  ac_cv_prog_cc_g=yes
725else
726  ac_cv_prog_cc_g=no
727fi
728rm -f conftest*
729
730fi
731
732echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
733if test "$ac_test_CFLAGS" = set; then
734  CFLAGS="$ac_save_CFLAGS"
735elif test $ac_cv_prog_cc_g = yes; then
736  if test "$GCC" = yes; then
737    CFLAGS="-g -O2"
738  else
739    CFLAGS="-g"
740  fi
741else
742  if test "$GCC" = yes; then
743    CFLAGS="-O2"
744  else
745    CFLAGS=
746  fi
747fi
748
749
750if test "$GCC" = yes; then
751     CFLAGS="$CFLAGS -Wall -g";
752fi
753
754
755echo $ac_n "checking for /usr/athena/include""... $ac_c" 1>&6
756echo "configure:757: checking for /usr/athena/include" >&5
757if test -d /usr/athena/include; then
758        CFLAGS=${CFLAGS}\ -I/usr/athena/include
759        echo "$ac_t""yes" 1>&6
760else
761        echo "$ac_t""no" 1>&6
762fi
763echo $ac_n "checking for /usr/athena/lib""... $ac_c" 1>&6
764echo "configure:765: checking for /usr/athena/lib" >&5
765if test -d /usr/athena/lib; then
766        LDFLAGS=-L/usr/athena/lib\ ${LDFLAGS}
767        echo "$ac_t""yes" 1>&6
768else
769        echo "$ac_t""no" 1>&6
770fi
771
772echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
773echo "configure:774: checking for initscr in -lncurses" >&5
774ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-%__p_%'`
775if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
776  echo $ac_n "(cached) $ac_c" 1>&6
777else
778  ac_save_LIBS="$LIBS"
779LIBS="-lncurses  $LIBS"
780cat > conftest.$ac_ext <<EOF
781#line 782 "configure"
782#include "confdefs.h"
783/* Override any gcc2 internal prototype to avoid an error.  */
784/* We use char because int might match the return type of a gcc2
785    builtin and then its argument prototype would still apply.  */
786char initscr();
787
788int main() {
789initscr()
790; return 0; }
791EOF
792if { (eval echo configure:793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
793  rm -rf conftest*
794  eval "ac_cv_lib_$ac_lib_var=yes"
795else
796  echo "configure: failed program was:" >&5
797  cat conftest.$ac_ext >&5
798  rm -rf conftest*
799  eval "ac_cv_lib_$ac_lib_var=no"
800fi
801rm -f conftest*
802LIBS="$ac_save_LIBS"
803
804fi
805if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
806  echo "$ac_t""yes" 1>&6
807    ac_tr_lib=HAVE_LIB`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
808    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
809  cat >> confdefs.h <<EOF
810#define $ac_tr_lib 1
811EOF
812
813  LIBS="-lncurses $LIBS"
814
815else
816  echo "$ac_t""no" 1>&6
817echo $ac_n "checking for initscr in -lcurses""... $ac_c" 1>&6
818echo "configure:819: checking for initscr in -lcurses" >&5
819ac_lib_var=`echo curses'_'initscr | sed 'y%./+-%__p_%'`
820if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
821  echo $ac_n "(cached) $ac_c" 1>&6
822else
823  ac_save_LIBS="$LIBS"
824LIBS="-lcurses  $LIBS"
825cat > conftest.$ac_ext <<EOF
826#line 827 "configure"
827#include "confdefs.h"
828/* Override any gcc2 internal prototype to avoid an error.  */
829/* We use char because int might match the return type of a gcc2
830    builtin and then its argument prototype would still apply.  */
831char initscr();
832
833int main() {
834initscr()
835; return 0; }
836EOF
837if { (eval echo configure:838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
838  rm -rf conftest*
839  eval "ac_cv_lib_$ac_lib_var=yes"
840else
841  echo "configure: failed program was:" >&5
842  cat conftest.$ac_ext >&5
843  rm -rf conftest*
844  eval "ac_cv_lib_$ac_lib_var=no"
845fi
846rm -f conftest*
847LIBS="$ac_save_LIBS"
848
849fi
850if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
851  echo "$ac_t""yes" 1>&6
852    ac_tr_lib=HAVE_LIB`echo curses | sed -e 's/^a-zA-Z0-9_/_/g' \
853    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
854  cat >> confdefs.h <<EOF
855#define $ac_tr_lib 1
856EOF
857
858  LIBS="-lcurses $LIBS"
859
860else
861  echo "$ac_t""no" 1>&6
862{ echo "configure: error: No curses library found." 1>&2; exit 1; }
863fi
864
865fi
866
867echo $ac_n "checking for com_err in -lcom_err""... $ac_c" 1>&6
868echo "configure:869: checking for com_err in -lcom_err" >&5
869ac_lib_var=`echo com_err'_'com_err | sed 'y%./+-%__p_%'`
870if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
871  echo $ac_n "(cached) $ac_c" 1>&6
872else
873  ac_save_LIBS="$LIBS"
874LIBS="-lcom_err  $LIBS"
875cat > conftest.$ac_ext <<EOF
876#line 877 "configure"
877#include "confdefs.h"
878/* Override any gcc2 internal prototype to avoid an error.  */
879/* We use char because int might match the return type of a gcc2
880    builtin and then its argument prototype would still apply.  */
881char com_err();
882
883int main() {
884com_err()
885; return 0; }
886EOF
887if { (eval echo configure:888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
888  rm -rf conftest*
889  eval "ac_cv_lib_$ac_lib_var=yes"
890else
891  echo "configure: failed program was:" >&5
892  cat conftest.$ac_ext >&5
893  rm -rf conftest*
894  eval "ac_cv_lib_$ac_lib_var=no"
895fi
896rm -f conftest*
897LIBS="$ac_save_LIBS"
898
899fi
900if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
901  echo "$ac_t""yes" 1>&6
902    ac_tr_lib=HAVE_LIB`echo com_err | sed -e 's/[^a-zA-Z0-9_]/_/g' \
903    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
904  cat >> confdefs.h <<EOF
905#define $ac_tr_lib 1
906EOF
907
908  LIBS="-lcom_err $LIBS"
909
910else
911  echo "$ac_t""no" 1>&6
912fi
913
914echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
915echo "configure:916: checking for gethostbyname in -lnsl" >&5
916ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
917if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
918  echo $ac_n "(cached) $ac_c" 1>&6
919else
920  ac_save_LIBS="$LIBS"
921LIBS="-lnsl  $LIBS"
922cat > conftest.$ac_ext <<EOF
923#line 924 "configure"
924#include "confdefs.h"
925/* Override any gcc2 internal prototype to avoid an error.  */
926/* We use char because int might match the return type of a gcc2
927    builtin and then its argument prototype would still apply.  */
928char gethostbyname();
929
930int main() {
931gethostbyname()
932; return 0; }
933EOF
934if { (eval echo configure:935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
935  rm -rf conftest*
936  eval "ac_cv_lib_$ac_lib_var=yes"
937else
938  echo "configure: failed program was:" >&5
939  cat conftest.$ac_ext >&5
940  rm -rf conftest*
941  eval "ac_cv_lib_$ac_lib_var=no"
942fi
943rm -f conftest*
944LIBS="$ac_save_LIBS"
945
946fi
947if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
948  echo "$ac_t""yes" 1>&6
949    ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
950    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
951  cat >> confdefs.h <<EOF
952#define $ac_tr_lib 1
953EOF
954
955  LIBS="-lnsl $LIBS"
956
957else
958  echo "$ac_t""no" 1>&6
959fi
960
961echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
962echo "configure:963: checking for socket in -lsocket" >&5
963ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
964if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
965  echo $ac_n "(cached) $ac_c" 1>&6
966else
967  ac_save_LIBS="$LIBS"
968LIBS="-lsocket  $LIBS"
969cat > conftest.$ac_ext <<EOF
970#line 971 "configure"
971#include "confdefs.h"
972/* Override any gcc2 internal prototype to avoid an error.  */
973/* We use char because int might match the return type of a gcc2
974    builtin and then its argument prototype would still apply.  */
975char socket();
976
977int main() {
978socket()
979; return 0; }
980EOF
981if { (eval echo configure:982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
982  rm -rf conftest*
983  eval "ac_cv_lib_$ac_lib_var=yes"
984else
985  echo "configure: failed program was:" >&5
986  cat conftest.$ac_ext >&5
987  rm -rf conftest*
988  eval "ac_cv_lib_$ac_lib_var=no"
989fi
990rm -f conftest*
991LIBS="$ac_save_LIBS"
992
993fi
994if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
995  echo "$ac_t""yes" 1>&6
996    ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
997    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
998  cat >> confdefs.h <<EOF
999#define $ac_tr_lib 1
1000EOF
1001
1002  LIBS="-lsocket $LIBS"
1003
1004else
1005  echo "$ac_t""no" 1>&6
1006fi
1007
1008echo $ac_n "checking for krb5_derive_key in -lk5crypto""... $ac_c" 1>&6
1009echo "configure:1010: checking for krb5_derive_key in -lk5crypto" >&5
1010ac_lib_var=`echo k5crypto'_'krb5_derive_key | sed 'y%./+-%__p_%'`
1011if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1012  echo $ac_n "(cached) $ac_c" 1>&6
1013else
1014  ac_save_LIBS="$LIBS"
1015LIBS="-lk5crypto  $LIBS"
1016cat > conftest.$ac_ext <<EOF
1017#line 1018 "configure"
1018#include "confdefs.h"
1019/* Override any gcc2 internal prototype to avoid an error.  */
1020/* We use char because int might match the return type of a gcc2
1021    builtin and then its argument prototype would still apply.  */
1022char krb5_derive_key();
1023
1024int main() {
1025krb5_derive_key()
1026; return 0; }
1027EOF
1028if { (eval echo configure:1029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1029  rm -rf conftest*
1030  eval "ac_cv_lib_$ac_lib_var=yes"
1031else
1032  echo "configure: failed program was:" >&5
1033  cat conftest.$ac_ext >&5
1034  rm -rf conftest*
1035  eval "ac_cv_lib_$ac_lib_var=no"
1036fi
1037rm -f conftest*
1038LIBS="$ac_save_LIBS"
1039
1040fi
1041if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1042  echo "$ac_t""yes" 1>&6
1043    ac_tr_lib=HAVE_LIB`echo k5crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1044    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1045  cat >> confdefs.h <<EOF
1046#define $ac_tr_lib 1
1047EOF
1048
1049  LIBS="-lk5crypto $LIBS"
1050
1051else
1052  echo "$ac_t""no" 1>&6
1053fi
1054
1055echo $ac_n "checking for req_act_vno in -ldes425""... $ac_c" 1>&6
1056echo "configure:1057: checking for req_act_vno in -ldes425" >&5
1057ac_lib_var=`echo des425'_'req_act_vno | sed 'y%./+-%__p_%'`
1058if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1059  echo $ac_n "(cached) $ac_c" 1>&6
1060else
1061  ac_save_LIBS="$LIBS"
1062LIBS="-ldes425  $LIBS"
1063cat > conftest.$ac_ext <<EOF
1064#line 1065 "configure"
1065#include "confdefs.h"
1066/* Override any gcc2 internal prototype to avoid an error.  */
1067/* We use char because int might match the return type of a gcc2
1068    builtin and then its argument prototype would still apply.  */
1069char req_act_vno();
1070
1071int main() {
1072req_act_vno()
1073; return 0; }
1074EOF
1075if { (eval echo configure:1076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1076  rm -rf conftest*
1077  eval "ac_cv_lib_$ac_lib_var=yes"
1078else
1079  echo "configure: failed program was:" >&5
1080  cat conftest.$ac_ext >&5
1081  rm -rf conftest*
1082  eval "ac_cv_lib_$ac_lib_var=no"
1083fi
1084rm -f conftest*
1085LIBS="$ac_save_LIBS"
1086
1087fi
1088if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1089  echo "$ac_t""yes" 1>&6
1090    ac_tr_lib=HAVE_LIB`echo des425 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1091    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1092  cat >> confdefs.h <<EOF
1093#define $ac_tr_lib 1
1094EOF
1095
1096  LIBS="-ldes425 $LIBS"
1097
1098else
1099  echo "$ac_t""no" 1>&6
1100fi
1101
1102echo $ac_n "checking for des_quad_cksum in -ldes""... $ac_c" 1>&6
1103echo "configure:1104: checking for des_quad_cksum in -ldes" >&5
1104ac_lib_var=`echo des'_'des_quad_cksum | sed 'y%./+-%__p_%'`
1105if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1106  echo $ac_n "(cached) $ac_c" 1>&6
1107else
1108  ac_save_LIBS="$LIBS"
1109LIBS="-ldes  $LIBS"
1110cat > conftest.$ac_ext <<EOF
1111#line 1112 "configure"
1112#include "confdefs.h"
1113/* Override any gcc2 internal prototype to avoid an error.  */
1114/* We use char because int might match the return type of a gcc2
1115    builtin and then its argument prototype would still apply.  */
1116char des_quad_cksum();
1117
1118int main() {
1119des_quad_cksum()
1120; return 0; }
1121EOF
1122if { (eval echo configure:1123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1123  rm -rf conftest*
1124  eval "ac_cv_lib_$ac_lib_var=yes"
1125else
1126  echo "configure: failed program was:" >&5
1127  cat conftest.$ac_ext >&5
1128  rm -rf conftest*
1129  eval "ac_cv_lib_$ac_lib_var=no"
1130fi
1131rm -f conftest*
1132LIBS="$ac_save_LIBS"
1133
1134fi
1135if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1136  echo "$ac_t""yes" 1>&6
1137    ac_tr_lib=HAVE_LIB`echo des | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1138    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1139  cat >> confdefs.h <<EOF
1140#define $ac_tr_lib 1
1141EOF
1142
1143  LIBS="-ldes $LIBS"
1144
1145else
1146  echo "$ac_t""no" 1>&6
1147fi
1148
1149echo $ac_n "checking for res_search in -lresolv""... $ac_c" 1>&6
1150echo "configure:1151: checking for res_search in -lresolv" >&5
1151ac_lib_var=`echo resolv'_'res_search | sed 'y%./+-%__p_%'`
1152if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1153  echo $ac_n "(cached) $ac_c" 1>&6
1154else
1155  ac_save_LIBS="$LIBS"
1156LIBS="-lresolv  $LIBS"
1157cat > conftest.$ac_ext <<EOF
1158#line 1159 "configure"
1159#include "confdefs.h"
1160/* Override any gcc2 internal prototype to avoid an error.  */
1161/* We use char because int might match the return type of a gcc2
1162    builtin and then its argument prototype would still apply.  */
1163char res_search();
1164
1165int main() {
1166res_search()
1167; return 0; }
1168EOF
1169if { (eval echo configure:1170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1170  rm -rf conftest*
1171  eval "ac_cv_lib_$ac_lib_var=yes"
1172else
1173  echo "configure: failed program was:" >&5
1174  cat conftest.$ac_ext >&5
1175  rm -rf conftest*
1176  eval "ac_cv_lib_$ac_lib_var=no"
1177fi
1178rm -f conftest*
1179LIBS="$ac_save_LIBS"
1180
1181fi
1182if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1183  echo "$ac_t""yes" 1>&6
1184    ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1185    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1186  cat >> confdefs.h <<EOF
1187#define $ac_tr_lib 1
1188EOF
1189
1190  LIBS="-lresolv $LIBS"
1191
1192else
1193  echo "$ac_t""no" 1>&6
1194fi
1195
1196echo $ac_n "checking for krb5_get_credentials in -lkrb5""... $ac_c" 1>&6
1197echo "configure:1198: checking for krb5_get_credentials in -lkrb5" >&5
1198ac_lib_var=`echo krb5'_'krb5_get_credentials | sed 'y%./+-%__p_%'`
1199if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1200  echo $ac_n "(cached) $ac_c" 1>&6
1201else
1202  ac_save_LIBS="$LIBS"
1203LIBS="-lkrb5  $LIBS"
1204cat > conftest.$ac_ext <<EOF
1205#line 1206 "configure"
1206#include "confdefs.h"
1207/* Override any gcc2 internal prototype to avoid an error.  */
1208/* We use char because int might match the return type of a gcc2
1209    builtin and then its argument prototype would still apply.  */
1210char krb5_get_credentials();
1211
1212int main() {
1213krb5_get_credentials()
1214; return 0; }
1215EOF
1216if { (eval echo configure:1217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1217  rm -rf conftest*
1218  eval "ac_cv_lib_$ac_lib_var=yes"
1219else
1220  echo "configure: failed program was:" >&5
1221  cat conftest.$ac_ext >&5
1222  rm -rf conftest*
1223  eval "ac_cv_lib_$ac_lib_var=no"
1224fi
1225rm -f conftest*
1226LIBS="$ac_save_LIBS"
1227
1228fi
1229if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1230  echo "$ac_t""yes" 1>&6
1231    ac_tr_lib=HAVE_LIB`echo krb5 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1232    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1233  cat >> confdefs.h <<EOF
1234#define $ac_tr_lib 1
1235EOF
1236
1237  LIBS="-lkrb5 $LIBS"
1238
1239else
1240  echo "$ac_t""no" 1>&6
1241fi
1242
1243echo $ac_n "checking for krb_sendauth in -lkrb4""... $ac_c" 1>&6
1244echo "configure:1245: checking for krb_sendauth in -lkrb4" >&5
1245ac_lib_var=`echo krb4'_'krb_sendauth | sed 'y%./+-%__p_%'`
1246if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1247  echo $ac_n "(cached) $ac_c" 1>&6
1248else
1249  ac_save_LIBS="$LIBS"
1250LIBS="-lkrb4  $LIBS"
1251cat > conftest.$ac_ext <<EOF
1252#line 1253 "configure"
1253#include "confdefs.h"
1254/* Override any gcc2 internal prototype to avoid an error.  */
1255/* We use char because int might match the return type of a gcc2
1256    builtin and then its argument prototype would still apply.  */
1257char krb_sendauth();
1258
1259int main() {
1260krb_sendauth()
1261; return 0; }
1262EOF
1263if { (eval echo configure:1264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1264  rm -rf conftest*
1265  eval "ac_cv_lib_$ac_lib_var=yes"
1266else
1267  echo "configure: failed program was:" >&5
1268  cat conftest.$ac_ext >&5
1269  rm -rf conftest*
1270  eval "ac_cv_lib_$ac_lib_var=no"
1271fi
1272rm -f conftest*
1273LIBS="$ac_save_LIBS"
1274
1275fi
1276if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1277  echo "$ac_t""yes" 1>&6
1278    ac_tr_lib=HAVE_LIB`echo krb4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1279    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1280  cat >> confdefs.h <<EOF
1281#define $ac_tr_lib 1
1282EOF
1283
1284  LIBS="-lkrb4 $LIBS"
1285
1286else
1287  echo "$ac_t""no" 1>&6
1288echo $ac_n "checking for krb_sendauth in -lkrb""... $ac_c" 1>&6
1289echo "configure:1290: checking for krb_sendauth in -lkrb" >&5
1290ac_lib_var=`echo krb'_'krb_sendauth | sed 'y%./+-%__p_%'`
1291if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1292  echo $ac_n "(cached) $ac_c" 1>&6
1293else
1294  ac_save_LIBS="$LIBS"
1295LIBS="-lkrb  $LIBS"
1296cat > conftest.$ac_ext <<EOF
1297#line 1298 "configure"
1298#include "confdefs.h"
1299/* Override any gcc2 internal prototype to avoid an error.  */
1300/* We use char because int might match the return type of a gcc2
1301    builtin and then its argument prototype would still apply.  */
1302char krb_sendauth();
1303
1304int main() {
1305krb_sendauth()
1306; return 0; }
1307EOF
1308if { (eval echo configure:1309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1309  rm -rf conftest*
1310  eval "ac_cv_lib_$ac_lib_var=yes"
1311else
1312  echo "configure: failed program was:" >&5
1313  cat conftest.$ac_ext >&5
1314  rm -rf conftest*
1315  eval "ac_cv_lib_$ac_lib_var=no"
1316fi
1317rm -f conftest*
1318LIBS="$ac_save_LIBS"
1319
1320fi
1321if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1322  echo "$ac_t""yes" 1>&6
1323    ac_tr_lib=HAVE_LIB`echo krb | sed -e 's/^a-zA-Z0-9_/_/g' \
1324    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1325  cat >> confdefs.h <<EOF
1326#define $ac_tr_lib 1
1327EOF
1328
1329  LIBS="-lkrb $LIBS"
1330
1331else
1332  echo "$ac_t""no" 1>&6
1333fi
1334
1335fi
1336
1337echo $ac_n "checking for ZGetSender in -lzephyr""... $ac_c" 1>&6
1338echo "configure:1339: checking for ZGetSender in -lzephyr" >&5
1339ac_lib_var=`echo zephyr'_'ZGetSender | sed 'y%./+-%__p_%'`
1340if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1341  echo $ac_n "(cached) $ac_c" 1>&6
1342else
1343  ac_save_LIBS="$LIBS"
1344LIBS="-lzephyr  $LIBS"
1345cat > conftest.$ac_ext <<EOF
1346#line 1347 "configure"
1347#include "confdefs.h"
1348/* Override any gcc2 internal prototype to avoid an error.  */
1349/* We use char because int might match the return type of a gcc2
1350    builtin and then its argument prototype would still apply.  */
1351char ZGetSender();
1352
1353int main() {
1354ZGetSender()
1355; return 0; }
1356EOF
1357if { (eval echo configure:1358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1358  rm -rf conftest*
1359  eval "ac_cv_lib_$ac_lib_var=yes"
1360else
1361  echo "configure: failed program was:" >&5
1362  cat conftest.$ac_ext >&5
1363  rm -rf conftest*
1364  eval "ac_cv_lib_$ac_lib_var=no"
1365fi
1366rm -f conftest*
1367LIBS="$ac_save_LIBS"
1368
1369fi
1370if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1371  echo "$ac_t""yes" 1>&6
1372    ac_tr_lib=HAVE_LIB`echo zephyr | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1373    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1374  cat >> confdefs.h <<EOF
1375#define $ac_tr_lib 1
1376EOF
1377
1378  LIBS="-lzephyr $LIBS"
1379
1380else
1381  echo "$ac_t""no" 1>&6
1382fi
1383
1384echo $ac_n "checking for ZInitLocationInfo in -lzephyr""... $ac_c" 1>&6
1385echo "configure:1386: checking for ZInitLocationInfo in -lzephyr" >&5
1386ac_lib_var=`echo zephyr'_'ZInitLocationInfo | sed 'y%./+-%__p_%'`
1387if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1388  echo $ac_n "(cached) $ac_c" 1>&6
1389else
1390  ac_save_LIBS="$LIBS"
1391LIBS="-lzephyr  $LIBS"
1392cat > conftest.$ac_ext <<EOF
1393#line 1394 "configure"
1394#include "confdefs.h"
1395/* Override any gcc2 internal prototype to avoid an error.  */
1396/* We use char because int might match the return type of a gcc2
1397    builtin and then its argument prototype would still apply.  */
1398char ZInitLocationInfo();
1399
1400int main() {
1401ZInitLocationInfo()
1402; return 0; }
1403EOF
1404if { (eval echo configure:1405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1405  rm -rf conftest*
1406  eval "ac_cv_lib_$ac_lib_var=yes"
1407else
1408  echo "configure: failed program was:" >&5
1409  cat conftest.$ac_ext >&5
1410  rm -rf conftest*
1411  eval "ac_cv_lib_$ac_lib_var=no"
1412fi
1413rm -f conftest*
1414LIBS="$ac_save_LIBS"
1415
1416fi
1417if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1418  echo "$ac_t""yes" 1>&6
1419  cat >> confdefs.h <<\EOF
1420#define HAVE_LIBZEPHYR_ZINITLOCATIONINFO
1421EOF
1422
1423else
1424  echo "$ac_t""no" 1>&6
1425fi
1426
1427
1428for ac_func in use_default_colors des_string_to_key des_key_sched des_ecb_encrypt
1429do
1430echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1431echo "configure:1432: checking for $ac_func" >&5
1432if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1433  echo $ac_n "(cached) $ac_c" 1>&6
1434else
1435  cat > conftest.$ac_ext <<EOF
1436#line 1437 "configure"
1437#include "confdefs.h"
1438/* System header to define __stub macros and hopefully few prototypes,
1439    which can conflict with char $ac_func(); below.  */
1440#include <assert.h>
1441/* Override any gcc2 internal prototype to avoid an error.  */
1442/* We use char because int might match the return type of a gcc2
1443    builtin and then its argument prototype would still apply.  */
1444char $ac_func();
1445
1446int main() {
1447
1448/* The GNU C library defines this for functions which it implements
1449    to always fail with ENOSYS.  Some functions are actually named
1450    something starting with __ and the normal name is an alias.  */
1451#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1452choke me
1453#else
1454$ac_func();
1455#endif
1456
1457; return 0; }
1458EOF
1459if { (eval echo configure:1460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1460  rm -rf conftest*
1461  eval "ac_cv_func_$ac_func=yes"
1462else
1463  echo "configure: failed program was:" >&5
1464  cat conftest.$ac_ext >&5
1465  rm -rf conftest*
1466  eval "ac_cv_func_$ac_func=no"
1467fi
1468rm -f conftest*
1469fi
1470
1471if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1472  echo "$ac_t""yes" 1>&6
1473    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1474  cat >> confdefs.h <<EOF
1475#define $ac_tr_func 1
1476EOF
1477 
1478else
1479  echo "$ac_t""no" 1>&6
1480fi
1481done
1482
1483
1484echo $ac_n "checking for des_ecb_encrypt prototype""... $ac_c" 1>&6
1485echo "configure:1486: checking for des_ecb_encrypt prototype" >&5
1486cat > conftest.$ac_ext <<EOF
1487#line 1488 "configure"
1488#include "confdefs.h"
1489#include <des.h>
1490int des_ecb_encrypt(char foo[], char bar[], des_key_schedule baz, int qux);
1491int main() {
1492int foo = des_ecb_encrypt(0,0,0,0);
1493; return 0; }
1494EOF
1495if { (eval echo configure:1496: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1496  rm -rf conftest*
1497  ac_cv_des_ecb_encrypt_proto=no
1498else
1499  echo "configure: failed program was:" >&5
1500  cat conftest.$ac_ext >&5
1501  rm -rf conftest*
1502  ac_cv_des_ecb_encrypt_proto=yes
1503fi
1504rm -f conftest*
1505echo "$ac_t""$ac_cv_des_ecb_encrypt_proto" 1>&6
1506if test "$ac_cv_des_ecb_encrypt_proto" = yes; then
1507        cat >> confdefs.h <<\EOF
1508#define HAVE_DES_ECB_ENCRYPT_PROTO
1509EOF
1510
1511fi
1512
1513echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1514echo "configure:1515: checking how to run the C preprocessor" >&5
1515# On Suns, sometimes $CPP names a directory.
1516if test -n "$CPP" && test -d "$CPP"; then
1517  CPP=
1518fi
1519if test -z "$CPP"; then
1520if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1521  echo $ac_n "(cached) $ac_c" 1>&6
1522else
1523    # This must be in double quotes, not single quotes, because CPP may get
1524  # substituted into the Makefile and "${CC-cc}" will confuse make.
1525  CPP="${CC-cc} -E"
1526  # On the NeXT, cc -E runs the code through the compiler's parser,
1527  # not just through cpp.
1528  cat > conftest.$ac_ext <<EOF
1529#line 1530 "configure"
1530#include "confdefs.h"
1531#include <assert.h>
1532Syntax Error
1533EOF
1534ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1535{ (eval echo configure:1536: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1536ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1537if test -z "$ac_err"; then
1538  :
1539else
1540  echo "$ac_err" >&5
1541  echo "configure: failed program was:" >&5
1542  cat conftest.$ac_ext >&5
1543  rm -rf conftest*
1544  CPP="${CC-cc} -E -traditional-cpp"
1545  cat > conftest.$ac_ext <<EOF
1546#line 1547 "configure"
1547#include "confdefs.h"
1548#include <assert.h>
1549Syntax Error
1550EOF
1551ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1552{ (eval echo configure:1553: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1553ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1554if test -z "$ac_err"; then
1555  :
1556else
1557  echo "$ac_err" >&5
1558  echo "configure: failed program was:" >&5
1559  cat conftest.$ac_ext >&5
1560  rm -rf conftest*
1561  CPP="${CC-cc} -nologo -E"
1562  cat > conftest.$ac_ext <<EOF
1563#line 1564 "configure"
1564#include "confdefs.h"
1565#include <assert.h>
1566Syntax Error
1567EOF
1568ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1569{ (eval echo configure:1570: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1570ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1571if test -z "$ac_err"; then
1572  :
1573else
1574  echo "$ac_err" >&5
1575  echo "configure: failed program was:" >&5
1576  cat conftest.$ac_ext >&5
1577  rm -rf conftest*
1578  CPP=/lib/cpp
1579fi
1580rm -f conftest*
1581fi
1582rm -f conftest*
1583fi
1584rm -f conftest*
1585  ac_cv_prog_CPP="$CPP"
1586fi
1587  CPP="$ac_cv_prog_CPP"
1588else
1589  ac_cv_prog_CPP="$CPP"
1590fi
1591echo "$ac_t""$CPP" 1>&6
1592
1593echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1594echo "configure:1595: checking for ANSI C header files" >&5
1595if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1596  echo $ac_n "(cached) $ac_c" 1>&6
1597else
1598  cat > conftest.$ac_ext <<EOF
1599#line 1600 "configure"
1600#include "confdefs.h"
1601#include <stdlib.h>
1602#include <stdarg.h>
1603#include <string.h>
1604#include <float.h>
1605EOF
1606ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1607{ (eval echo configure:1608: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1608ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1609if test -z "$ac_err"; then
1610  rm -rf conftest*
1611  ac_cv_header_stdc=yes
1612else
1613  echo "$ac_err" >&5
1614  echo "configure: failed program was:" >&5
1615  cat conftest.$ac_ext >&5
1616  rm -rf conftest*
1617  ac_cv_header_stdc=no
1618fi
1619rm -f conftest*
1620
1621if test $ac_cv_header_stdc = yes; then
1622  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1623cat > conftest.$ac_ext <<EOF
1624#line 1625 "configure"
1625#include "confdefs.h"
1626#include <string.h>
1627EOF
1628if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1629  egrep "memchr" >/dev/null 2>&1; then
1630  :
1631else
1632  rm -rf conftest*
1633  ac_cv_header_stdc=no
1634fi
1635rm -f conftest*
1636
1637fi
1638
1639if test $ac_cv_header_stdc = yes; then
1640  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1641cat > conftest.$ac_ext <<EOF
1642#line 1643 "configure"
1643#include "confdefs.h"
1644#include <stdlib.h>
1645EOF
1646if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1647  egrep "free" >/dev/null 2>&1; then
1648  :
1649else
1650  rm -rf conftest*
1651  ac_cv_header_stdc=no
1652fi
1653rm -f conftest*
1654
1655fi
1656
1657if test $ac_cv_header_stdc = yes; then
1658  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1659if test "$cross_compiling" = yes; then
1660  :
1661else
1662  cat > conftest.$ac_ext <<EOF
1663#line 1664 "configure"
1664#include "confdefs.h"
1665#include <ctype.h>
1666#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1667#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1668#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1669int main () { int i; for (i = 0; i < 256; i++)
1670if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1671exit (0); }
1672
1673EOF
1674if { (eval echo configure:1675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1675then
1676  :
1677else
1678  echo "configure: failed program was:" >&5
1679  cat conftest.$ac_ext >&5
1680  rm -fr conftest*
1681  ac_cv_header_stdc=no
1682fi
1683rm -fr conftest*
1684fi
1685
1686fi
1687fi
1688
1689echo "$ac_t""$ac_cv_header_stdc" 1>&6
1690if test $ac_cv_header_stdc = yes; then
1691  cat >> confdefs.h <<\EOF
1692#define STDC_HEADERS 1
1693EOF
1694
1695fi
1696
1697echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1698echo "configure:1699: checking for sys/wait.h that is POSIX.1 compatible" >&5
1699if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1700  echo $ac_n "(cached) $ac_c" 1>&6
1701else
1702  cat > conftest.$ac_ext <<EOF
1703#line 1704 "configure"
1704#include "confdefs.h"
1705#include <sys/types.h>
1706#include <sys/wait.h>
1707#ifndef WEXITSTATUS
1708#define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1709#endif
1710#ifndef WIFEXITED
1711#define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1712#endif
1713int main() {
1714int s;
1715wait (&s);
1716s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1717; return 0; }
1718EOF
1719if { (eval echo configure:1720: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1720  rm -rf conftest*
1721  ac_cv_header_sys_wait_h=yes
1722else
1723  echo "configure: failed program was:" >&5
1724  cat conftest.$ac_ext >&5
1725  rm -rf conftest*
1726  ac_cv_header_sys_wait_h=no
1727fi
1728rm -f conftest*
1729fi
1730
1731echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1732if test $ac_cv_header_sys_wait_h = yes; then
1733  cat >> confdefs.h <<\EOF
1734#define HAVE_SYS_WAIT_H 1
1735EOF
1736
1737fi
1738
1739for ac_hdr in strings.h sys/ioctl.h unistd.h
1740do
1741ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1742echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1743echo "configure:1744: checking for $ac_hdr" >&5
1744if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1745  echo $ac_n "(cached) $ac_c" 1>&6
1746else
1747  cat > conftest.$ac_ext <<EOF
1748#line 1749 "configure"
1749#include "confdefs.h"
1750#include <$ac_hdr>
1751EOF
1752ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1753{ (eval echo configure:1754: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1754ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1755if test -z "$ac_err"; then
1756  rm -rf conftest*
1757  eval "ac_cv_header_$ac_safe=yes"
1758else
1759  echo "$ac_err" >&5
1760  echo "configure: failed program was:" >&5
1761  cat conftest.$ac_ext >&5
1762  rm -rf conftest*
1763  eval "ac_cv_header_$ac_safe=no"
1764fi
1765rm -f conftest*
1766fi
1767if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1768  echo "$ac_t""yes" 1>&6
1769    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1770  cat >> confdefs.h <<EOF
1771#define $ac_tr_hdr 1
1772EOF
1773 
1774else
1775  echo "$ac_t""no" 1>&6
1776fi
1777done
1778
1779
1780FOO=`perl -MExtUtils::Embed -e ccopts`
1781echo Adding perl CFLAGS ${FOO}
1782CFLAGS=${CFLAGS}\ ${FOO}
1783
1784echo $ac_n "checking for the perl xsubpp precompiler""... $ac_c" 1>&6
1785echo "configure:1786: checking for the perl xsubpp precompiler" >&5
1786XSUBPPDIR="`(perl -MExtUtils::MakeMaker -e 'print ExtUtils::MakeMaker->new({NAME => qw(owl)})->tool_xsubpp;') | grep \^XSUBPPDIR | sed -e 's/XSUBPPDIR = //g;'`"
1787if test -n "${XSUBPPDIR}"; then
1788   echo "$ac_t""${XSUBPPDIR}" 1>&6
1789else
1790   { echo "configure: error: not found" 1>&2; exit 1; }
1791fi
1792
1793FOO=`perl -MExtUtils::Embed -e ldopts | sed 's/,-E//' | sed 's/-liconv//'`
1794echo Adding perl LDFLAGS ${FOO}
1795LDFLAGS=${LDFLAGS}\ ${FOO}
1796
1797
1798ac_safe=`echo "/usr/share/terminfo" | sed 'y%./+-%__p_%'`
1799echo $ac_n "checking for /usr/share/terminfo""... $ac_c" 1>&6
1800echo "configure:1801: checking for /usr/share/terminfo" >&5
1801if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then
1802  echo $ac_n "(cached) $ac_c" 1>&6
1803else
1804  if test "$cross_compiling" = yes; then
1805    { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
1806else
1807  if test -r /usr/share/terminfo; then
1808    eval "ac_cv_file_$ac_safe=yes"
1809  else
1810    eval "ac_cv_file_$ac_safe=no"
1811  fi
1812fi
1813fi
1814if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
1815  echo "$ac_t""yes" 1>&6
1816  cat >> confdefs.h <<\EOF
1817#define TERMINFO "/usr/share/terminfo"
1818EOF
1819
1820else
1821  echo "$ac_t""no" 1>&6
1822
1823ac_safe=`echo "/usr/share/lib/terminfo" | sed 'y%./+-%__p_%'`
1824echo $ac_n "checking for /usr/share/lib/terminfo""... $ac_c" 1>&6
1825echo "configure:1826: checking for /usr/share/lib/terminfo" >&5
1826if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then
1827  echo $ac_n "(cached) $ac_c" 1>&6
1828else
1829  if test "$cross_compiling" = yes; then
1830    { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
1831else
1832  if test -r /usr/share/lib/terminfo; then
1833    eval "ac_cv_file_$ac_safe=yes"
1834  else
1835    eval "ac_cv_file_$ac_safe=no"
1836  fi
1837fi
1838fi
1839if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
1840  echo "$ac_t""yes" 1>&6
1841  cat >> confdefs.h <<\EOF
1842#define TERMINFO "/usr/share/lib/terminfo"
1843EOF
1844
1845else
1846  echo "$ac_t""no" 1>&6
1847{ echo "configure: error: No terminfo found for this system" 1>&2; exit 1; }
1848fi
1849
1850fi
1851
1852
1853
1854
1855ac_aux_dir=
1856for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1857  if test -f $ac_dir/install-sh; then
1858    ac_aux_dir=$ac_dir
1859    ac_install_sh="$ac_aux_dir/install-sh -c"
1860    break
1861  elif test -f $ac_dir/install.sh; then
1862    ac_aux_dir=$ac_dir
1863    ac_install_sh="$ac_aux_dir/install.sh -c"
1864    break
1865  fi
1866done
1867if test -z "$ac_aux_dir"; then
1868  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1869fi
1870ac_config_guess=$ac_aux_dir/config.guess
1871ac_config_sub=$ac_aux_dir/config.sub
1872ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1873
1874# Find a good install program.  We prefer a C program (faster),
1875# so one script is as good as another.  But avoid the broken or
1876# incompatible versions:
1877# SysV /etc/install, /usr/sbin/install
1878# SunOS /usr/etc/install
1879# IRIX /sbin/install
1880# AIX /bin/install
1881# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1882# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1883# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1884# ./install, which can be erroneously created by make from ./install.sh.
1885echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1886echo "configure:1887: checking for a BSD compatible install" >&5
1887if test -z "$INSTALL"; then
1888if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1889  echo $ac_n "(cached) $ac_c" 1>&6
1890else
1891    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1892  for ac_dir in $PATH; do
1893    # Account for people who put trailing slashes in PATH elements.
1894    case "$ac_dir/" in
1895    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1896    *)
1897      # OSF1 and SCO ODT 3.0 have their own names for install.
1898      # Don't use installbsd from OSF since it installs stuff as root
1899      # by default.
1900      for ac_prog in ginstall scoinst install; do
1901        if test -f $ac_dir/$ac_prog; then
1902          if test $ac_prog = install &&
1903            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1904            # AIX install.  It has an incompatible calling convention.
1905            :
1906          else
1907            ac_cv_path_install="$ac_dir/$ac_prog -c"
1908            break 2
1909          fi
1910        fi
1911      done
1912      ;;
1913    esac
1914  done
1915  IFS="$ac_save_IFS"
1916
1917fi
1918  if test "${ac_cv_path_install+set}" = set; then
1919    INSTALL="$ac_cv_path_install"
1920  else
1921    # As a last resort, use the slow shell script.  We don't cache a
1922    # path for INSTALL within a source directory, because that will
1923    # break other packages using the cache if that directory is
1924    # removed, or if the path is relative.
1925    INSTALL="$ac_install_sh"
1926  fi
1927fi
1928echo "$ac_t""$INSTALL" 1>&6
1929
1930# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1931# It thinks the first close brace ends the variable substitution.
1932test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1933
1934test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1935
1936test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1937
1938
1939subdirs="libfaim"
1940
1941
1942trap '' 1 2 15
1943cat > confcache <<\EOF
1944# This file is a shell script that caches the results of configure
1945# tests run on this system so they can be shared between configure
1946# scripts and configure runs.  It is not useful on other systems.
1947# If it contains results you don't want to keep, you may remove or edit it.
1948#
1949# By default, configure uses ./config.cache as the cache file,
1950# creating it if it does not exist already.  You can give configure
1951# the --cache-file=FILE option to use a different cache file; that is
1952# what configure does when it calls configure scripts in
1953# subdirectories, so they share the cache.
1954# Giving --cache-file=/dev/null disables caching, for debugging configure.
1955# config.status only pays attention to the cache file if you give it the
1956# --recheck option to rerun configure.
1957#
1958EOF
1959# The following way of writing the cache mishandles newlines in values,
1960# but we know of no workaround that is simple, portable, and efficient.
1961# So, don't put newlines in cache variables' values.
1962# Ultrix sh set writes to stderr and can't be redirected directly,
1963# and sets the high bit in the cache file unless we assign to the vars.
1964(set) 2>&1 |
1965  case `(ac_space=' '; set | grep ac_space) 2>&1` in
1966  *ac_space=\ *)
1967    # `set' does not quote correctly, so add quotes (double-quote substitution
1968    # turns \\\\ into \\, and sed turns \\ into \).
1969    sed -n \
1970      -e "s/'/'\\\\''/g" \
1971      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1972    ;;
1973  *)
1974    # `set' quotes correctly as required by POSIX, so do not add quotes.
1975    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1976    ;;
1977  esac >> confcache
1978if cmp -s $cache_file confcache; then
1979  :
1980else
1981  if test -w $cache_file; then
1982    echo "updating cache $cache_file"
1983    cat confcache > $cache_file
1984  else
1985    echo "not updating unwritable cache $cache_file"
1986  fi
1987fi
1988rm -f confcache
1989
1990trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1991
1992test "x$prefix" = xNONE && prefix=$ac_default_prefix
1993# Let make expand exec_prefix.
1994test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1995
1996# Any assignment to VPATH causes Sun make to only execute
1997# the first set of double-colon rules, so remove it if not needed.
1998# If there is a colon in the path, we need to keep it.
1999if test "x$srcdir" = x.; then
2000  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
2001fi
2002
2003trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2004
2005DEFS=-DHAVE_CONFIG_H
2006
2007# Without the "./", some shells look in PATH for config.status.
2008: ${CONFIG_STATUS=./config.status}
2009
2010echo creating $CONFIG_STATUS
2011rm -f $CONFIG_STATUS
2012cat > $CONFIG_STATUS <<EOF
2013#! /bin/sh
2014# Generated automatically by configure.
2015# Run this file to recreate the current configuration.
2016# This directory was configured as follows,
2017# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2018#
2019# $0 $ac_configure_args
2020#
2021# Compiler output produced by configure, useful for debugging
2022# configure, is in ./config.log if it exists.
2023
2024ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2025for ac_option
2026do
2027  case "\$ac_option" in
2028  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2029    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2030    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2031  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2032    echo "$CONFIG_STATUS generated by autoconf version 2.13"
2033    exit 0 ;;
2034  -help | --help | --hel | --he | --h)
2035    echo "\$ac_cs_usage"; exit 0 ;;
2036  *) echo "\$ac_cs_usage"; exit 1 ;;
2037  esac
2038done
2039
2040ac_given_srcdir=$srcdir
2041ac_given_INSTALL="$INSTALL"
2042
2043trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2044EOF
2045cat >> $CONFIG_STATUS <<EOF
2046
2047# Protect against being on the right side of a sed subst in config.status.
2048sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2049 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2050$ac_vpsub
2051$extrasub
2052s%@SHELL@%$SHELL%g
2053s%@CFLAGS@%$CFLAGS%g
2054s%@CPPFLAGS@%$CPPFLAGS%g
2055s%@CXXFLAGS@%$CXXFLAGS%g
2056s%@FFLAGS@%$FFLAGS%g
2057s%@DEFS@%$DEFS%g
2058s%@LDFLAGS@%$LDFLAGS%g
2059s%@LIBS@%$LIBS%g
2060s%@exec_prefix@%$exec_prefix%g
2061s%@prefix@%$prefix%g
2062s%@program_transform_name@%$program_transform_name%g
2063s%@bindir@%$bindir%g
2064s%@sbindir@%$sbindir%g
2065s%@libexecdir@%$libexecdir%g
2066s%@datadir@%$datadir%g
2067s%@sysconfdir@%$sysconfdir%g
2068s%@sharedstatedir@%$sharedstatedir%g
2069s%@localstatedir@%$localstatedir%g
2070s%@libdir@%$libdir%g
2071s%@includedir@%$includedir%g
2072s%@oldincludedir@%$oldincludedir%g
2073s%@infodir@%$infodir%g
2074s%@mandir@%$mandir%g
2075s%@CC@%$CC%g
2076s%@CPP@%$CPP%g
2077s%@XSUBPPDIR@%$XSUBPPDIR%g
2078s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2079s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2080s%@INSTALL_DATA@%$INSTALL_DATA%g
2081s%@subdirs@%$subdirs%g
2082
2083CEOF
2084EOF
2085
2086cat >> $CONFIG_STATUS <<\EOF
2087
2088# Split the substitutions into bite-sized pieces for seds with
2089# small command number limits, like on Digital OSF/1 and HP-UX.
2090ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2091ac_file=1 # Number of current file.
2092ac_beg=1 # First line for current file.
2093ac_end=$ac_max_sed_cmds # Line after last line for current file.
2094ac_more_lines=:
2095ac_sed_cmds=""
2096while $ac_more_lines; do
2097  if test $ac_beg -gt 1; then
2098    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2099  else
2100    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2101  fi
2102  if test ! -s conftest.s$ac_file; then
2103    ac_more_lines=false
2104    rm -f conftest.s$ac_file
2105  else
2106    if test -z "$ac_sed_cmds"; then
2107      ac_sed_cmds="sed -f conftest.s$ac_file"
2108    else
2109      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2110    fi
2111    ac_file=`expr $ac_file + 1`
2112    ac_beg=$ac_end
2113    ac_end=`expr $ac_end + $ac_max_sed_cmds`
2114  fi
2115done
2116if test -z "$ac_sed_cmds"; then
2117  ac_sed_cmds=cat
2118fi
2119EOF
2120
2121cat >> $CONFIG_STATUS <<EOF
2122
2123CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
2124EOF
2125cat >> $CONFIG_STATUS <<\EOF
2126for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2127  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2128  case "$ac_file" in
2129  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2130       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2131  *) ac_file_in="${ac_file}.in" ;;
2132  esac
2133
2134  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2135
2136  # Remove last slash and all that follows it.  Not all systems have dirname.
2137  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2138  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2139    # The file is in a subdirectory.
2140    test ! -d "$ac_dir" && mkdir "$ac_dir"
2141    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2142    # A "../" for each directory in $ac_dir_suffix.
2143    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2144  else
2145    ac_dir_suffix= ac_dots=
2146  fi
2147
2148  case "$ac_given_srcdir" in
2149  .)  srcdir=.
2150      if test -z "$ac_dots"; then top_srcdir=.
2151      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2152  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2153  *) # Relative path.
2154    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2155    top_srcdir="$ac_dots$ac_given_srcdir" ;;
2156  esac
2157
2158  case "$ac_given_INSTALL" in
2159  [/$]*) INSTALL="$ac_given_INSTALL" ;;
2160  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2161  esac
2162
2163  echo creating "$ac_file"
2164  rm -f "$ac_file"
2165  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2166  case "$ac_file" in
2167  *Makefile*) ac_comsub="1i\\
2168# $configure_input" ;;
2169  *) ac_comsub= ;;
2170  esac
2171
2172  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2173  sed -e "$ac_comsub
2174s%@configure_input@%$configure_input%g
2175s%@srcdir@%$srcdir%g
2176s%@top_srcdir@%$top_srcdir%g
2177s%@INSTALL@%$INSTALL%g
2178" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2179fi; done
2180rm -f conftest.s*
2181
2182# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2183# NAME is the cpp macro being defined and VALUE is the value it is being given.
2184#
2185# ac_d sets the value in "#define NAME VALUE" lines.
2186ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
2187ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
2188ac_dC='\3'
2189ac_dD='%g'
2190# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2191ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
2192ac_uB='\([      ]\)%\1#\2define\3'
2193ac_uC=' '
2194ac_uD='\4%g'
2195# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2196ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
2197ac_eB='$%\1#\2define\3'
2198ac_eC=' '
2199ac_eD='%g'
2200
2201if test "${CONFIG_HEADERS+set}" != set; then
2202EOF
2203cat >> $CONFIG_STATUS <<EOF
2204  CONFIG_HEADERS="config.h"
2205EOF
2206cat >> $CONFIG_STATUS <<\EOF
2207fi
2208for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2209  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2210  case "$ac_file" in
2211  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2212       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2213  *) ac_file_in="${ac_file}.in" ;;
2214  esac
2215
2216  echo creating $ac_file
2217
2218  rm -f conftest.frag conftest.in conftest.out
2219  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2220  cat $ac_file_inputs > conftest.in
2221
2222EOF
2223
2224# Transform confdefs.h into a sed script conftest.vals that substitutes
2225# the proper values into config.h.in to produce config.h.  And first:
2226# Protect against being on the right side of a sed subst in config.status.
2227# Protect against being in an unquoted here document in config.status.
2228rm -f conftest.vals
2229cat > conftest.hdr <<\EOF
2230s/[\\&%]/\\&/g
2231s%[\\$`]%\\&%g
2232s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2233s%ac_d%ac_u%gp
2234s%ac_u%ac_e%gp
2235EOF
2236sed -n -f conftest.hdr confdefs.h > conftest.vals
2237rm -f conftest.hdr
2238
2239# This sed command replaces #undef with comments.  This is necessary, for
2240# example, in the case of _POSIX_SOURCE, which is predefined and required
2241# on some systems where configure will not decide to define it.
2242cat >> conftest.vals <<\EOF
2243s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2244EOF
2245
2246# Break up conftest.vals because some shells have a limit on
2247# the size of here documents, and old seds have small limits too.
2248
2249rm -f conftest.tail
2250while :
2251do
2252  ac_lines=`grep -c . conftest.vals`
2253  # grep -c gives empty output for an empty file on some AIX systems.
2254  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2255  # Write a limited-size here document to conftest.frag.
2256  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2257  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2258  echo 'CEOF
2259  sed -f conftest.frag conftest.in > conftest.out
2260  rm -f conftest.in
2261  mv conftest.out conftest.in
2262' >> $CONFIG_STATUS
2263  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2264  rm -f conftest.vals
2265  mv conftest.tail conftest.vals
2266done
2267rm -f conftest.vals
2268
2269cat >> $CONFIG_STATUS <<\EOF
2270  rm -f conftest.frag conftest.h
2271  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
2272  cat conftest.in >> conftest.h
2273  rm -f conftest.in
2274  if cmp -s $ac_file conftest.h 2>/dev/null; then
2275    echo "$ac_file is unchanged"
2276    rm -f conftest.h
2277  else
2278    # Remove last slash and all that follows it.  Not all systems have dirname.
2279      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2280      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2281      # The file is in a subdirectory.
2282      test ! -d "$ac_dir" && mkdir "$ac_dir"
2283    fi
2284    rm -f $ac_file
2285    mv conftest.h $ac_file
2286  fi
2287fi; done
2288
2289EOF
2290cat >> $CONFIG_STATUS <<EOF
2291
2292EOF
2293cat >> $CONFIG_STATUS <<\EOF
2294
2295exit 0
2296EOF
2297chmod +x $CONFIG_STATUS
2298rm -fr confdefs* $ac_clean_files
2299test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2300
2301if test "$no_recursion" != yes; then
2302
2303  # Remove --cache-file and --srcdir arguments so they do not pile up.
2304  ac_sub_configure_args=
2305  ac_prev=
2306  for ac_arg in $ac_configure_args; do
2307    if test -n "$ac_prev"; then
2308      ac_prev=
2309      continue
2310    fi
2311    case "$ac_arg" in
2312    -cache-file | --cache-file | --cache-fil | --cache-fi \
2313    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
2314      ac_prev=cache_file ;;
2315    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
2316    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2317      ;;
2318    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2319      ac_prev=srcdir ;;
2320    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2321      ;;
2322    *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
2323    esac
2324  done
2325
2326  for ac_config_dir in libfaim; do
2327
2328    # Do not complain, so a configure script can configure whichever
2329    # parts of a large source tree are present.
2330    if test ! -d $srcdir/$ac_config_dir; then
2331      continue
2332    fi
2333
2334    echo configuring in $ac_config_dir
2335
2336    case "$srcdir" in
2337    .) ;;
2338    *)
2339      if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
2340      else
2341        { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
2342      fi
2343      ;;
2344    esac
2345
2346    ac_popdir=`pwd`
2347    cd $ac_config_dir
2348
2349      # A "../" for each directory in /$ac_config_dir.
2350      ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2351
2352    case "$srcdir" in
2353    .) # No --srcdir option.  We are building in place.
2354      ac_sub_srcdir=$srcdir ;;
2355    /*) # Absolute path.
2356      ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2357    *) # Relative path.
2358      ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
2359    esac
2360
2361    # Check for guested configure; otherwise get Cygnus style configure.
2362    if test -f $ac_sub_srcdir/configure; then
2363      ac_sub_configure=$ac_sub_srcdir/configure
2364    elif test -f $ac_sub_srcdir/configure.in; then
2365      ac_sub_configure=$ac_configure
2366    else
2367      echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2368      ac_sub_configure=
2369    fi
2370
2371    # The recursion is here.
2372    if test -n "$ac_sub_configure"; then
2373
2374      # Make the cache file name correct relative to the subdirectory.
2375      case "$cache_file" in
2376      /*) ac_sub_cache_file=$cache_file ;;
2377      *) # Relative path.
2378        ac_sub_cache_file="$ac_dots$cache_file" ;;
2379      esac
2380  case "$ac_given_INSTALL" in
2381        [/$]*) INSTALL="$ac_given_INSTALL" ;;
2382        *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2383        esac
2384
2385      echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2386      # The eval makes quoting arguments work.
2387      if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
2388      then :
2389      else
2390        { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
2391      fi
2392    fi
2393
2394    cd $ac_popdir
2395  done
2396fi
2397
Note: See TracBrowser for help on using the repository browser.