document rlm_otp fd leak fix
[freeradius.git] / src / modules / rlm_otp / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.5 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59.
5 #
6 # Copyright (C) 2003 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 Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21   set -o posix
22 fi
23 DUALCASE=1; export DUALCASE # for MKS sh
24
25 # Support unset when possible.
26 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27   as_unset=unset
28 else
29   as_unset=false
30 fi
31
32
33 # Work around bugs in pre-3.0 UWIN ksh.
34 $as_unset ENV MAIL MAILPATH
35 PS1='$ '
36 PS2='> '
37 PS4='+ '
38
39 # NLS nuisances.
40 for as_var in \
41   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
43   LC_TELEPHONE LC_TIME
44 do
45   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
46     eval $as_var=C; export $as_var
47   else
48     $as_unset $as_var
49   fi
50 done
51
52 # Required to use basename.
53 if expr a : '\(a\)' >/dev/null 2>&1; then
54   as_expr=expr
55 else
56   as_expr=false
57 fi
58
59 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
60   as_basename=basename
61 else
62   as_basename=false
63 fi
64
65
66 # Name of the executable.
67 as_me=`$as_basename "$0" ||
68 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
69          X"$0" : 'X\(//\)$' \| \
70          X"$0" : 'X\(/\)$' \| \
71          .     : '\(.\)' 2>/dev/null ||
72 echo X/"$0" |
73     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
74           /^X\/\(\/\/\)$/{ s//\1/; q; }
75           /^X\/\(\/\).*/{ s//\1/; q; }
76           s/.*/./; q'`
77
78
79 # PATH needs CR, and LINENO needs CR and PATH.
80 # Avoid depending upon Character Ranges.
81 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
82 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
84 as_cr_digits='0123456789'
85 as_cr_alnum=$as_cr_Letters$as_cr_digits
86
87 # The user is always right.
88 if test "${PATH_SEPARATOR+set}" != set; then
89   echo "#! /bin/sh" >conf$$.sh
90   echo  "exit 0"   >>conf$$.sh
91   chmod +x conf$$.sh
92   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
93     PATH_SEPARATOR=';'
94   else
95     PATH_SEPARATOR=:
96   fi
97   rm -f conf$$.sh
98 fi
99
100
101   as_lineno_1=$LINENO
102   as_lineno_2=$LINENO
103   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
104   test "x$as_lineno_1" != "x$as_lineno_2" &&
105   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
106   # Find who we are.  Look in the path if we contain no path at all
107   # relative or not.
108   case $0 in
109     *[\\/]* ) as_myself=$0 ;;
110     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
111 for as_dir in $PATH
112 do
113   IFS=$as_save_IFS
114   test -z "$as_dir" && as_dir=.
115   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
116 done
117
118        ;;
119   esac
120   # We did not find ourselves, most probably we were run as `sh COMMAND'
121   # in which case we are not to be found in the path.
122   if test "x$as_myself" = x; then
123     as_myself=$0
124   fi
125   if test ! -f "$as_myself"; then
126     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127    { (exit 1); exit 1; }; }
128   fi
129   case $CONFIG_SHELL in
130   '')
131     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 do
134   IFS=$as_save_IFS
135   test -z "$as_dir" && as_dir=.
136   for as_base in sh bash ksh sh5; do
137          case $as_dir in
138          /*)
139            if ("$as_dir/$as_base" -c '
140   as_lineno_1=$LINENO
141   as_lineno_2=$LINENO
142   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143   test "x$as_lineno_1" != "x$as_lineno_2" &&
144   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
145              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
146              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
147              CONFIG_SHELL=$as_dir/$as_base
148              export CONFIG_SHELL
149              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
150            fi;;
151          esac
152        done
153 done
154 ;;
155   esac
156
157   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
158   # uniformly replaced by the line number.  The first 'sed' inserts a
159   # line-number line before each line; the second 'sed' does the real
160   # work.  The second script uses 'N' to pair each line-number line
161   # with the numbered line, and appends trailing '-' during
162   # substitution so that $LINENO is not a special case at line end.
163   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
164   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
165   sed '=' <$as_myself |
166     sed '
167       N
168       s,$,-,
169       : loop
170       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
171       t loop
172       s,-$,,
173       s,^['$as_cr_digits']*\n,,
174     ' >$as_me.lineno &&
175   chmod +x $as_me.lineno ||
176     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
177    { (exit 1); exit 1; }; }
178
179   # Don't try to exec as it changes $[0], causing all sort of problems
180   # (the dirname of $[0] is not the place where we might find the
181   # original and so on.  Autoconf is especially sensible to this).
182   . ./$as_me.lineno
183   # Exit status is that of the last command.
184   exit
185 }
186
187
188 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
189   *c*,-n*) ECHO_N= ECHO_C='
190 ' ECHO_T='      ' ;;
191   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
192   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
193 esac
194
195 if expr a : '\(a\)' >/dev/null 2>&1; then
196   as_expr=expr
197 else
198   as_expr=false
199 fi
200
201 rm -f conf$$ conf$$.exe conf$$.file
202 echo >conf$$.file
203 if ln -s conf$$.file conf$$ 2>/dev/null; then
204   # We could just check for DJGPP; but this test a) works b) is more generic
205   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
206   if test -f conf$$.exe; then
207     # Don't use ln at all; we don't have any links
208     as_ln_s='cp -p'
209   else
210     as_ln_s='ln -s'
211   fi
212 elif ln conf$$.file conf$$ 2>/dev/null; then
213   as_ln_s=ln
214 else
215   as_ln_s='cp -p'
216 fi
217 rm -f conf$$ conf$$.exe conf$$.file
218
219 if mkdir -p . 2>/dev/null; then
220   as_mkdir_p=:
221 else
222   test -d ./-p && rmdir ./-p
223   as_mkdir_p=false
224 fi
225
226 as_executable_p="test -f"
227
228 # Sed expression to map a string onto a valid CPP name.
229 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230
231 # Sed expression to map a string onto a valid variable name.
232 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
233
234
235 # IFS
236 # We need space, tab and new line, in precisely that order.
237 as_nl='
238 '
239 IFS="   $as_nl"
240
241 # CDPATH.
242 $as_unset CDPATH
243
244
245 # Name of the host.
246 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
247 # so uname gets run too.
248 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249
250 exec 6>&1
251
252 #
253 # Initializations.
254 #
255 ac_default_prefix=/usr/local
256 ac_config_libobj_dir=.
257 cross_compiling=no
258 subdirs=
259 MFLAGS=
260 MAKEFLAGS=
261 SHELL=${CONFIG_SHELL-/bin/sh}
262
263 # Maximum number of lines to put in a shell here document.
264 # This variable seems obsolete.  It should probably be removed, and
265 # only ac_max_sed_lines should be used.
266 : ${ac_max_here_lines=38}
267
268 # Identity of this package.
269 PACKAGE_NAME=
270 PACKAGE_TARNAME=
271 PACKAGE_VERSION=
272 PACKAGE_STRING=
273 PACKAGE_BUGREPORT=
274
275 ac_unique_file="otp_rlm.c"
276 # Factoring default headers for most tests.
277 ac_includes_default="\
278 #include <stdio.h>
279 #if HAVE_SYS_TYPES_H
280 # include <sys/types.h>
281 #endif
282 #if HAVE_SYS_STAT_H
283 # include <sys/stat.h>
284 #endif
285 #if STDC_HEADERS
286 # include <stdlib.h>
287 # include <stddef.h>
288 #else
289 # if HAVE_STDLIB_H
290 #  include <stdlib.h>
291 # endif
292 #endif
293 #if HAVE_STRING_H
294 # if !STDC_HEADERS && HAVE_MEMORY_H
295 #  include <memory.h>
296 # endif
297 # include <string.h>
298 #endif
299 #if HAVE_STRINGS_H
300 # include <strings.h>
301 #endif
302 #if HAVE_INTTYPES_H
303 # include <inttypes.h>
304 #else
305 # if HAVE_STDINT_H
306 #  include <stdint.h>
307 # endif
308 #endif
309 #if HAVE_UNISTD_H
310 # include <unistd.h>
311 #endif"
312
313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP otp_cflags otp_ldflags targetname LIBOBJS LTLIBOBJS'
314 ac_subst_files=''
315
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
335
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
353
354 ac_prev=
355 for ac_option
356 do
357   # If the previous option needs an argument, assign it.
358   if test -n "$ac_prev"; then
359     eval "$ac_prev=\$ac_option"
360     ac_prev=
361     continue
362   fi
363
364   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365
366   # Accept the important Cygnus configure options, so we can diagnose typos.
367
368   case $ac_option in
369
370   -bindir | --bindir | --bindi | --bind | --bin | --bi)
371     ac_prev=bindir ;;
372   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373     bindir=$ac_optarg ;;
374
375   -build | --build | --buil | --bui | --bu)
376     ac_prev=build_alias ;;
377   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378     build_alias=$ac_optarg ;;
379
380   -cache-file | --cache-file | --cache-fil | --cache-fi \
381   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382     ac_prev=cache_file ;;
383   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385     cache_file=$ac_optarg ;;
386
387   --config-cache | -C)
388     cache_file=config.cache ;;
389
390   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391     ac_prev=datadir ;;
392   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393   | --da=*)
394     datadir=$ac_optarg ;;
395
396   -disable-* | --disable-*)
397     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398     # Reject names that are not valid shell variable names.
399     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401    { (exit 1); exit 1; }; }
402     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403     eval "enable_$ac_feature=no" ;;
404
405   -enable-* | --enable-*)
406     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407     # Reject names that are not valid shell variable names.
408     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410    { (exit 1); exit 1; }; }
411     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412     case $ac_option in
413       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414       *) ac_optarg=yes ;;
415     esac
416     eval "enable_$ac_feature='$ac_optarg'" ;;
417
418   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420   | --exec | --exe | --ex)
421     ac_prev=exec_prefix ;;
422   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424   | --exec=* | --exe=* | --ex=*)
425     exec_prefix=$ac_optarg ;;
426
427   -gas | --gas | --ga | --g)
428     # Obsolete; use --with-gas.
429     with_gas=yes ;;
430
431   -help | --help | --hel | --he | -h)
432     ac_init_help=long ;;
433   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434     ac_init_help=recursive ;;
435   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436     ac_init_help=short ;;
437
438   -host | --host | --hos | --ho)
439     ac_prev=host_alias ;;
440   -host=* | --host=* | --hos=* | --ho=*)
441     host_alias=$ac_optarg ;;
442
443   -includedir | --includedir | --includedi | --included | --include \
444   | --includ | --inclu | --incl | --inc)
445     ac_prev=includedir ;;
446   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447   | --includ=* | --inclu=* | --incl=* | --inc=*)
448     includedir=$ac_optarg ;;
449
450   -infodir | --infodir | --infodi | --infod | --info | --inf)
451     ac_prev=infodir ;;
452   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453     infodir=$ac_optarg ;;
454
455   -libdir | --libdir | --libdi | --libd)
456     ac_prev=libdir ;;
457   -libdir=* | --libdir=* | --libdi=* | --libd=*)
458     libdir=$ac_optarg ;;
459
460   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461   | --libexe | --libex | --libe)
462     ac_prev=libexecdir ;;
463   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464   | --libexe=* | --libex=* | --libe=*)
465     libexecdir=$ac_optarg ;;
466
467   -localstatedir | --localstatedir | --localstatedi | --localstated \
468   | --localstate | --localstat | --localsta | --localst \
469   | --locals | --local | --loca | --loc | --lo)
470     ac_prev=localstatedir ;;
471   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474     localstatedir=$ac_optarg ;;
475
476   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477     ac_prev=mandir ;;
478   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479     mandir=$ac_optarg ;;
480
481   -nfp | --nfp | --nf)
482     # Obsolete; use --without-fp.
483     with_fp=no ;;
484
485   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486   | --no-cr | --no-c | -n)
487     no_create=yes ;;
488
489   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491     no_recursion=yes ;;
492
493   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495   | --oldin | --oldi | --old | --ol | --o)
496     ac_prev=oldincludedir ;;
497   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500     oldincludedir=$ac_optarg ;;
501
502   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503     ac_prev=prefix ;;
504   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505     prefix=$ac_optarg ;;
506
507   -program-prefix | --program-prefix | --program-prefi | --program-pref \
508   | --program-pre | --program-pr | --program-p)
509     ac_prev=program_prefix ;;
510   -program-prefix=* | --program-prefix=* | --program-prefi=* \
511   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512     program_prefix=$ac_optarg ;;
513
514   -program-suffix | --program-suffix | --program-suffi | --program-suff \
515   | --program-suf | --program-su | --program-s)
516     ac_prev=program_suffix ;;
517   -program-suffix=* | --program-suffix=* | --program-suffi=* \
518   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519     program_suffix=$ac_optarg ;;
520
521   -program-transform-name | --program-transform-name \
522   | --program-transform-nam | --program-transform-na \
523   | --program-transform-n | --program-transform- \
524   | --program-transform | --program-transfor \
525   | --program-transfo | --program-transf \
526   | --program-trans | --program-tran \
527   | --progr-tra | --program-tr | --program-t)
528     ac_prev=program_transform_name ;;
529   -program-transform-name=* | --program-transform-name=* \
530   | --program-transform-nam=* | --program-transform-na=* \
531   | --program-transform-n=* | --program-transform-=* \
532   | --program-transform=* | --program-transfor=* \
533   | --program-transfo=* | --program-transf=* \
534   | --program-trans=* | --program-tran=* \
535   | --progr-tra=* | --program-tr=* | --program-t=*)
536     program_transform_name=$ac_optarg ;;
537
538   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539   | -silent | --silent | --silen | --sile | --sil)
540     silent=yes ;;
541
542   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543     ac_prev=sbindir ;;
544   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545   | --sbi=* | --sb=*)
546     sbindir=$ac_optarg ;;
547
548   -sharedstatedir | --sharedstatedir | --sharedstatedi \
549   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550   | --sharedst | --shareds | --shared | --share | --shar \
551   | --sha | --sh)
552     ac_prev=sharedstatedir ;;
553   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556   | --sha=* | --sh=*)
557     sharedstatedir=$ac_optarg ;;
558
559   -site | --site | --sit)
560     ac_prev=site ;;
561   -site=* | --site=* | --sit=*)
562     site=$ac_optarg ;;
563
564   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565     ac_prev=srcdir ;;
566   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567     srcdir=$ac_optarg ;;
568
569   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570   | --syscon | --sysco | --sysc | --sys | --sy)
571     ac_prev=sysconfdir ;;
572   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574     sysconfdir=$ac_optarg ;;
575
576   -target | --target | --targe | --targ | --tar | --ta | --t)
577     ac_prev=target_alias ;;
578   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579     target_alias=$ac_optarg ;;
580
581   -v | -verbose | --verbose | --verbos | --verbo | --verb)
582     verbose=yes ;;
583
584   -version | --version | --versio | --versi | --vers | -V)
585     ac_init_version=: ;;
586
587   -with-* | --with-*)
588     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589     # Reject names that are not valid shell variable names.
590     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591       { echo "$as_me: error: invalid package name: $ac_package" >&2
592    { (exit 1); exit 1; }; }
593     ac_package=`echo $ac_package| sed 's/-/_/g'`
594     case $ac_option in
595       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596       *) ac_optarg=yes ;;
597     esac
598     eval "with_$ac_package='$ac_optarg'" ;;
599
600   -without-* | --without-*)
601     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602     # Reject names that are not valid shell variable names.
603     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604       { echo "$as_me: error: invalid package name: $ac_package" >&2
605    { (exit 1); exit 1; }; }
606     ac_package=`echo $ac_package | sed 's/-/_/g'`
607     eval "with_$ac_package=no" ;;
608
609   --x)
610     # Obsolete; use --with-x.
611     with_x=yes ;;
612
613   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614   | --x-incl | --x-inc | --x-in | --x-i)
615     ac_prev=x_includes ;;
616   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618     x_includes=$ac_optarg ;;
619
620   -x-libraries | --x-libraries | --x-librarie | --x-librari \
621   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622     ac_prev=x_libraries ;;
623   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625     x_libraries=$ac_optarg ;;
626
627   -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629    { (exit 1); exit 1; }; }
630     ;;
631
632   *=*)
633     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634     # Reject names that are not valid shell variable names.
635     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637    { (exit 1); exit 1; }; }
638     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639     eval "$ac_envvar='$ac_optarg'"
640     export $ac_envvar ;;
641
642   *)
643     # FIXME: should be removed in autoconf 3.0.
644     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648     ;;
649
650   esac
651 done
652
653 if test -n "$ac_prev"; then
654   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655   { echo "$as_me: error: missing argument to $ac_option" >&2
656    { (exit 1); exit 1; }; }
657 fi
658
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
661 do
662   eval ac_val=$`echo $ac_var`
663   case $ac_val in
664     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666    { (exit 1); exit 1; }; };;
667   esac
668 done
669
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672               localstatedir libdir includedir oldincludedir infodir mandir
673 do
674   eval ac_val=$`echo $ac_var`
675   case $ac_val in
676     [\\/$]* | ?:[\\/]* ) ;;
677     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678    { (exit 1); exit 1; }; };;
679   esac
680 done
681
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
688
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691   if test "x$build_alias" = x; then
692     cross_compiling=maybe
693     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694     If a cross compiler is detected then cross compile mode will be used." >&2
695   elif test "x$build_alias" != "x$host_alias"; then
696     cross_compiling=yes
697   fi
698 fi
699
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
703 test "$silent" = yes && exec 6>/dev/null
704
705
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708   ac_srcdir_defaulted=yes
709   # Try the directory containing this script, then its parent.
710   ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712          X"$0" : 'X\(//\)[^/]' \| \
713          X"$0" : 'X\(//\)$' \| \
714          X"$0" : 'X\(/\)' \| \
715          .     : '\(.\)' 2>/dev/null ||
716 echo X"$0" |
717     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719           /^X\(\/\/\)$/{ s//\1/; q; }
720           /^X\(\/\).*/{ s//\1/; q; }
721           s/.*/./; q'`
722   srcdir=$ac_confdir
723   if test ! -r $srcdir/$ac_unique_file; then
724     srcdir=..
725   fi
726 else
727   ac_srcdir_defaulted=no
728 fi
729 if test ! -r $srcdir/$ac_unique_file; then
730   if test "$ac_srcdir_defaulted" = yes; then
731     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732    { (exit 1); exit 1; }; }
733   else
734     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735    { (exit 1); exit 1; }; }
736   fi
737 fi
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740    { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CC_set=${CC+set}
755 ac_env_CC_value=$CC
756 ac_cv_env_CC_set=${CC+set}
757 ac_cv_env_CC_value=$CC
758 ac_env_CFLAGS_set=${CFLAGS+set}
759 ac_env_CFLAGS_value=$CFLAGS
760 ac_cv_env_CFLAGS_set=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value=$CFLAGS
762 ac_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_env_LDFLAGS_value=$LDFLAGS
764 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value=$LDFLAGS
766 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770 ac_env_CPP_set=${CPP+set}
771 ac_env_CPP_value=$CPP
772 ac_cv_env_CPP_set=${CPP+set}
773 ac_cv_env_CPP_value=$CPP
774
775 #
776 # Report the --help message.
777 #
778 if test "$ac_init_help" = "long"; then
779   # Omit some internal or obsolete options to make the list less imposing.
780   # This message is too long to be a string in the A/UX 3.1 sh.
781   cat <<_ACEOF
782 \`configure' configures this package to adapt to many kinds of systems.
783
784 Usage: $0 [OPTION]... [VAR=VALUE]...
785
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE.  See below for descriptions of some of the useful variables.
788
789 Defaults for the options are specified in brackets.
790
791 Configuration:
792   -h, --help              display this help and exit
793       --help=short        display options specific to this package
794       --help=recursive    display the short help of all the included packages
795   -V, --version           display version information and exit
796   -q, --quiet, --silent   do not print \`checking...' messages
797       --cache-file=FILE   cache test results in FILE [disabled]
798   -C, --config-cache      alias for \`--cache-file=config.cache'
799   -n, --no-create         do not create output files
800       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
801
802 _ACEOF
803
804   cat <<_ACEOF
805 Installation directories:
806   --prefix=PREFIX         install architecture-independent files in PREFIX
807                           [$ac_default_prefix]
808   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
809                           [PREFIX]
810
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
815
816 For better control, use the options below.
817
818 Fine tuning of the installation directories:
819   --bindir=DIR           user executables [EPREFIX/bin]
820   --sbindir=DIR          system admin executables [EPREFIX/sbin]
821   --libexecdir=DIR       program executables [EPREFIX/libexec]
822   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
823   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
824   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
825   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
826   --libdir=DIR           object code libraries [EPREFIX/lib]
827   --includedir=DIR       C header files [PREFIX/include]
828   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
829   --infodir=DIR          info documentation [PREFIX/info]
830   --mandir=DIR           man documentation [PREFIX/man]
831 _ACEOF
832
833   cat <<\_ACEOF
834 _ACEOF
835 fi
836
837 if test -n "$ac_init_help"; then
838
839   cat <<\_ACEOF
840
841 Optional Packages:
842   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
843   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
844   --with-rlm-otp-lib-dir        directory for otp libs
845   --with-rlm-otp-include-dir    directory for otp includes
846   --with-openssl-libraries=DIR  directory to look for OpenSSL library files
847   --with-openssl-includes=DIR   directory to look for OpenSSL include files
848
849 Some influential environment variables:
850   CC          C compiler command
851   CFLAGS      C compiler flags
852   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
853               nonstandard directory <lib dir>
854   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
855               headers in a nonstandard directory <include dir>
856   CPP         C preprocessor
857
858 Use these variables to override the choices made by `configure' or to help
859 it to find libraries and programs with nonstandard names/locations.
860
861 _ACEOF
862 fi
863
864 if test "$ac_init_help" = "recursive"; then
865   # If there are subdirs, report their specific --help.
866   ac_popdir=`pwd`
867   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
868     test -d $ac_dir || continue
869     ac_builddir=.
870
871 if test "$ac_dir" != .; then
872   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
873   # A "../" for each directory in $ac_dir_suffix.
874   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
875 else
876   ac_dir_suffix= ac_top_builddir=
877 fi
878
879 case $srcdir in
880   .)  # No --srcdir option.  We are building in place.
881     ac_srcdir=.
882     if test -z "$ac_top_builddir"; then
883        ac_top_srcdir=.
884     else
885        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
886     fi ;;
887   [\\/]* | ?:[\\/]* )  # Absolute path.
888     ac_srcdir=$srcdir$ac_dir_suffix;
889     ac_top_srcdir=$srcdir ;;
890   *) # Relative path.
891     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
892     ac_top_srcdir=$ac_top_builddir$srcdir ;;
893 esac
894
895 # Do not use `cd foo && pwd` to compute absolute paths, because
896 # the directories may not exist.
897 case `pwd` in
898 .) ac_abs_builddir="$ac_dir";;
899 *)
900   case "$ac_dir" in
901   .) ac_abs_builddir=`pwd`;;
902   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
903   *) ac_abs_builddir=`pwd`/"$ac_dir";;
904   esac;;
905 esac
906 case $ac_abs_builddir in
907 .) ac_abs_top_builddir=${ac_top_builddir}.;;
908 *)
909   case ${ac_top_builddir}. in
910   .) ac_abs_top_builddir=$ac_abs_builddir;;
911   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
912   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
913   esac;;
914 esac
915 case $ac_abs_builddir in
916 .) ac_abs_srcdir=$ac_srcdir;;
917 *)
918   case $ac_srcdir in
919   .) ac_abs_srcdir=$ac_abs_builddir;;
920   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
921   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
922   esac;;
923 esac
924 case $ac_abs_builddir in
925 .) ac_abs_top_srcdir=$ac_top_srcdir;;
926 *)
927   case $ac_top_srcdir in
928   .) ac_abs_top_srcdir=$ac_abs_builddir;;
929   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
930   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
931   esac;;
932 esac
933
934     cd $ac_dir
935     # Check for guested configure; otherwise get Cygnus style configure.
936     if test -f $ac_srcdir/configure.gnu; then
937       echo
938       $SHELL $ac_srcdir/configure.gnu  --help=recursive
939     elif test -f $ac_srcdir/configure; then
940       echo
941       $SHELL $ac_srcdir/configure  --help=recursive
942     elif test -f $ac_srcdir/configure.ac ||
943            test -f $ac_srcdir/configure.in; then
944       echo
945       $ac_configure --help
946     else
947       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
948     fi
949     cd $ac_popdir
950   done
951 fi
952
953 test -n "$ac_init_help" && exit 0
954 if $ac_init_version; then
955   cat <<\_ACEOF
956
957 Copyright (C) 2003 Free Software Foundation, Inc.
958 This configure script is free software; the Free Software Foundation
959 gives unlimited permission to copy, distribute and modify it.
960 _ACEOF
961   exit 0
962 fi
963 exec 5>config.log
964 cat >&5 <<_ACEOF
965 This file contains any messages produced by compilers while
966 running configure, to aid debugging if configure makes a mistake.
967
968 It was created by $as_me, which was
969 generated by GNU Autoconf 2.59.  Invocation command line was
970
971   $ $0 $@
972
973 _ACEOF
974 {
975 cat <<_ASUNAME
976 ## --------- ##
977 ## Platform. ##
978 ## --------- ##
979
980 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
981 uname -m = `(uname -m) 2>/dev/null || echo unknown`
982 uname -r = `(uname -r) 2>/dev/null || echo unknown`
983 uname -s = `(uname -s) 2>/dev/null || echo unknown`
984 uname -v = `(uname -v) 2>/dev/null || echo unknown`
985
986 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
987 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
988
989 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
990 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
991 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
992 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
993 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
994 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
995 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
996
997 _ASUNAME
998
999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1000 for as_dir in $PATH
1001 do
1002   IFS=$as_save_IFS
1003   test -z "$as_dir" && as_dir=.
1004   echo "PATH: $as_dir"
1005 done
1006
1007 } >&5
1008
1009 cat >&5 <<_ACEOF
1010
1011
1012 ## ----------- ##
1013 ## Core tests. ##
1014 ## ----------- ##
1015
1016 _ACEOF
1017
1018
1019 # Keep a trace of the command line.
1020 # Strip out --no-create and --no-recursion so they do not pile up.
1021 # Strip out --silent because we don't want to record it for future runs.
1022 # Also quote any args containing shell meta-characters.
1023 # Make two passes to allow for proper duplicate-argument suppression.
1024 ac_configure_args=
1025 ac_configure_args0=
1026 ac_configure_args1=
1027 ac_sep=
1028 ac_must_keep_next=false
1029 for ac_pass in 1 2
1030 do
1031   for ac_arg
1032   do
1033     case $ac_arg in
1034     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1035     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1036     | -silent | --silent | --silen | --sile | --sil)
1037       continue ;;
1038     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1039       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1040     esac
1041     case $ac_pass in
1042     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1043     2)
1044       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1045       if test $ac_must_keep_next = true; then
1046         ac_must_keep_next=false # Got value, back to normal.
1047       else
1048         case $ac_arg in
1049           *=* | --config-cache | -C | -disable-* | --disable-* \
1050           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1051           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1052           | -with-* | --with-* | -without-* | --without-* | --x)
1053             case "$ac_configure_args0 " in
1054               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1055             esac
1056             ;;
1057           -* ) ac_must_keep_next=true ;;
1058         esac
1059       fi
1060       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1061       # Get rid of the leading space.
1062       ac_sep=" "
1063       ;;
1064     esac
1065   done
1066 done
1067 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1068 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1069
1070 # When interrupted or exit'd, cleanup temporary files, and complete
1071 # config.log.  We remove comments because anyway the quotes in there
1072 # would cause problems or look ugly.
1073 # WARNING: Be sure not to use single quotes in there, as some shells,
1074 # such as our DU 5.0 friend, will then `close' the trap.
1075 trap 'exit_status=$?
1076   # Save into config.log some information that might help in debugging.
1077   {
1078     echo
1079
1080     cat <<\_ASBOX
1081 ## ---------------- ##
1082 ## Cache variables. ##
1083 ## ---------------- ##
1084 _ASBOX
1085     echo
1086     # The following way of writing the cache mishandles newlines in values,
1087 {
1088   (set) 2>&1 |
1089     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1090     *ac_space=\ *)
1091       sed -n \
1092         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1093           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1094       ;;
1095     *)
1096       sed -n \
1097         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1098       ;;
1099     esac;
1100 }
1101     echo
1102
1103     cat <<\_ASBOX
1104 ## ----------------- ##
1105 ## Output variables. ##
1106 ## ----------------- ##
1107 _ASBOX
1108     echo
1109     for ac_var in $ac_subst_vars
1110     do
1111       eval ac_val=$`echo $ac_var`
1112       echo "$ac_var='"'"'$ac_val'"'"'"
1113     done | sort
1114     echo
1115
1116     if test -n "$ac_subst_files"; then
1117       cat <<\_ASBOX
1118 ## ------------- ##
1119 ## Output files. ##
1120 ## ------------- ##
1121 _ASBOX
1122       echo
1123       for ac_var in $ac_subst_files
1124       do
1125         eval ac_val=$`echo $ac_var`
1126         echo "$ac_var='"'"'$ac_val'"'"'"
1127       done | sort
1128       echo
1129     fi
1130
1131     if test -s confdefs.h; then
1132       cat <<\_ASBOX
1133 ## ----------- ##
1134 ## confdefs.h. ##
1135 ## ----------- ##
1136 _ASBOX
1137       echo
1138       sed "/^$/d" confdefs.h | sort
1139       echo
1140     fi
1141     test "$ac_signal" != 0 &&
1142       echo "$as_me: caught signal $ac_signal"
1143     echo "$as_me: exit $exit_status"
1144   } >&5
1145   rm -f core *.core &&
1146   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1147     exit $exit_status
1148      ' 0
1149 for ac_signal in 1 2 13 15; do
1150   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1151 done
1152 ac_signal=0
1153
1154 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1155 rm -rf conftest* confdefs.h
1156 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1157 echo >confdefs.h
1158
1159 # Predefined preprocessor variables.
1160
1161 cat >>confdefs.h <<_ACEOF
1162 #define PACKAGE_NAME "$PACKAGE_NAME"
1163 _ACEOF
1164
1165
1166 cat >>confdefs.h <<_ACEOF
1167 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1168 _ACEOF
1169
1170
1171 cat >>confdefs.h <<_ACEOF
1172 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1173 _ACEOF
1174
1175
1176 cat >>confdefs.h <<_ACEOF
1177 #define PACKAGE_STRING "$PACKAGE_STRING"
1178 _ACEOF
1179
1180
1181 cat >>confdefs.h <<_ACEOF
1182 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1183 _ACEOF
1184
1185
1186 # Let the site file select an alternate cache file if it wants to.
1187 # Prefer explicitly selected file to automatically selected ones.
1188 if test -z "$CONFIG_SITE"; then
1189   if test "x$prefix" != xNONE; then
1190     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1191   else
1192     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1193   fi
1194 fi
1195 for ac_site_file in $CONFIG_SITE; do
1196   if test -r "$ac_site_file"; then
1197     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1198 echo "$as_me: loading site script $ac_site_file" >&6;}
1199     sed 's/^/| /' "$ac_site_file" >&5
1200     . "$ac_site_file"
1201   fi
1202 done
1203
1204 if test -r "$cache_file"; then
1205   # Some versions of bash will fail to source /dev/null (special
1206   # files actually), so we avoid doing that.
1207   if test -f "$cache_file"; then
1208     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1209 echo "$as_me: loading cache $cache_file" >&6;}
1210     case $cache_file in
1211       [\\/]* | ?:[\\/]* ) . $cache_file;;
1212       *)                      . ./$cache_file;;
1213     esac
1214   fi
1215 else
1216   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1217 echo "$as_me: creating cache $cache_file" >&6;}
1218   >$cache_file
1219 fi
1220
1221 # Check that the precious variables saved in the cache have kept the same
1222 # value.
1223 ac_cache_corrupted=false
1224 for ac_var in `(set) 2>&1 |
1225                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1226   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1227   eval ac_new_set=\$ac_env_${ac_var}_set
1228   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1229   eval ac_new_val="\$ac_env_${ac_var}_value"
1230   case $ac_old_set,$ac_new_set in
1231     set,)
1232       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1233 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1234       ac_cache_corrupted=: ;;
1235     ,set)
1236       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1237 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1238       ac_cache_corrupted=: ;;
1239     ,);;
1240     *)
1241       if test "x$ac_old_val" != "x$ac_new_val"; then
1242         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1243 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1244         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1245 echo "$as_me:   former value:  $ac_old_val" >&2;}
1246         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1247 echo "$as_me:   current value: $ac_new_val" >&2;}
1248         ac_cache_corrupted=:
1249       fi;;
1250   esac
1251   # Pass precious variables to config.status.
1252   if test "$ac_new_set" = set; then
1253     case $ac_new_val in
1254     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1255       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1256     *) ac_arg=$ac_var=$ac_new_val ;;
1257     esac
1258     case " $ac_configure_args " in
1259       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1260       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1261     esac
1262   fi
1263 done
1264 if $ac_cache_corrupted; then
1265   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1266 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1267   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1268 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1269    { (exit 1); exit 1; }; }
1270 fi
1271
1272 ac_ext=c
1273 ac_cpp='$CPP $CPPFLAGS'
1274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299 otp_cflags=
1300 otp_ldflags=
1301
1302 if test x$with_rlm_otp != xno; then
1303
1304
1305                 ac_ext=c
1306 ac_cpp='$CPP $CPPFLAGS'
1307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1310 if test -n "$ac_tool_prefix"; then
1311   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1312 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1313 echo "$as_me:$LINENO: checking for $ac_word" >&5
1314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1315 if test "${ac_cv_prog_CC+set}" = set; then
1316   echo $ECHO_N "(cached) $ECHO_C" >&6
1317 else
1318   if test -n "$CC"; then
1319   ac_cv_prog_CC="$CC" # Let the user override the test.
1320 else
1321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1322 for as_dir in $PATH
1323 do
1324   IFS=$as_save_IFS
1325   test -z "$as_dir" && as_dir=.
1326   for ac_exec_ext in '' $ac_executable_extensions; do
1327   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1328     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1329     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1330     break 2
1331   fi
1332 done
1333 done
1334
1335 fi
1336 fi
1337 CC=$ac_cv_prog_CC
1338 if test -n "$CC"; then
1339   echo "$as_me:$LINENO: result: $CC" >&5
1340 echo "${ECHO_T}$CC" >&6
1341 else
1342   echo "$as_me:$LINENO: result: no" >&5
1343 echo "${ECHO_T}no" >&6
1344 fi
1345
1346 fi
1347 if test -z "$ac_cv_prog_CC"; then
1348   ac_ct_CC=$CC
1349   # Extract the first word of "gcc", so it can be a program name with args.
1350 set dummy gcc; ac_word=$2
1351 echo "$as_me:$LINENO: checking for $ac_word" >&5
1352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1353 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1354   echo $ECHO_N "(cached) $ECHO_C" >&6
1355 else
1356   if test -n "$ac_ct_CC"; then
1357   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1358 else
1359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1360 for as_dir in $PATH
1361 do
1362   IFS=$as_save_IFS
1363   test -z "$as_dir" && as_dir=.
1364   for ac_exec_ext in '' $ac_executable_extensions; do
1365   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1366     ac_cv_prog_ac_ct_CC="gcc"
1367     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1368     break 2
1369   fi
1370 done
1371 done
1372
1373 fi
1374 fi
1375 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1376 if test -n "$ac_ct_CC"; then
1377   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1378 echo "${ECHO_T}$ac_ct_CC" >&6
1379 else
1380   echo "$as_me:$LINENO: result: no" >&5
1381 echo "${ECHO_T}no" >&6
1382 fi
1383
1384   CC=$ac_ct_CC
1385 else
1386   CC="$ac_cv_prog_CC"
1387 fi
1388
1389 if test -z "$CC"; then
1390   if test -n "$ac_tool_prefix"; then
1391   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1392 set dummy ${ac_tool_prefix}cc; ac_word=$2
1393 echo "$as_me:$LINENO: checking for $ac_word" >&5
1394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1395 if test "${ac_cv_prog_CC+set}" = set; then
1396   echo $ECHO_N "(cached) $ECHO_C" >&6
1397 else
1398   if test -n "$CC"; then
1399   ac_cv_prog_CC="$CC" # Let the user override the test.
1400 else
1401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1402 for as_dir in $PATH
1403 do
1404   IFS=$as_save_IFS
1405   test -z "$as_dir" && as_dir=.
1406   for ac_exec_ext in '' $ac_executable_extensions; do
1407   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1408     ac_cv_prog_CC="${ac_tool_prefix}cc"
1409     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1410     break 2
1411   fi
1412 done
1413 done
1414
1415 fi
1416 fi
1417 CC=$ac_cv_prog_CC
1418 if test -n "$CC"; then
1419   echo "$as_me:$LINENO: result: $CC" >&5
1420 echo "${ECHO_T}$CC" >&6
1421 else
1422   echo "$as_me:$LINENO: result: no" >&5
1423 echo "${ECHO_T}no" >&6
1424 fi
1425
1426 fi
1427 if test -z "$ac_cv_prog_CC"; then
1428   ac_ct_CC=$CC
1429   # Extract the first word of "cc", so it can be a program name with args.
1430 set dummy cc; ac_word=$2
1431 echo "$as_me:$LINENO: checking for $ac_word" >&5
1432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1433 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1434   echo $ECHO_N "(cached) $ECHO_C" >&6
1435 else
1436   if test -n "$ac_ct_CC"; then
1437   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1438 else
1439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1440 for as_dir in $PATH
1441 do
1442   IFS=$as_save_IFS
1443   test -z "$as_dir" && as_dir=.
1444   for ac_exec_ext in '' $ac_executable_extensions; do
1445   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1446     ac_cv_prog_ac_ct_CC="cc"
1447     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1448     break 2
1449   fi
1450 done
1451 done
1452
1453 fi
1454 fi
1455 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1456 if test -n "$ac_ct_CC"; then
1457   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1458 echo "${ECHO_T}$ac_ct_CC" >&6
1459 else
1460   echo "$as_me:$LINENO: result: no" >&5
1461 echo "${ECHO_T}no" >&6
1462 fi
1463
1464   CC=$ac_ct_CC
1465 else
1466   CC="$ac_cv_prog_CC"
1467 fi
1468
1469 fi
1470 if test -z "$CC"; then
1471   # Extract the first word of "cc", so it can be a program name with args.
1472 set dummy cc; ac_word=$2
1473 echo "$as_me:$LINENO: checking for $ac_word" >&5
1474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1475 if test "${ac_cv_prog_CC+set}" = set; then
1476   echo $ECHO_N "(cached) $ECHO_C" >&6
1477 else
1478   if test -n "$CC"; then
1479   ac_cv_prog_CC="$CC" # Let the user override the test.
1480 else
1481   ac_prog_rejected=no
1482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1483 for as_dir in $PATH
1484 do
1485   IFS=$as_save_IFS
1486   test -z "$as_dir" && as_dir=.
1487   for ac_exec_ext in '' $ac_executable_extensions; do
1488   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1489     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1490        ac_prog_rejected=yes
1491        continue
1492      fi
1493     ac_cv_prog_CC="cc"
1494     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1495     break 2
1496   fi
1497 done
1498 done
1499
1500 if test $ac_prog_rejected = yes; then
1501   # We found a bogon in the path, so make sure we never use it.
1502   set dummy $ac_cv_prog_CC
1503   shift
1504   if test $# != 0; then
1505     # We chose a different compiler from the bogus one.
1506     # However, it has the same basename, so the bogon will be chosen
1507     # first if we set CC to just the basename; use the full file name.
1508     shift
1509     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1510   fi
1511 fi
1512 fi
1513 fi
1514 CC=$ac_cv_prog_CC
1515 if test -n "$CC"; then
1516   echo "$as_me:$LINENO: result: $CC" >&5
1517 echo "${ECHO_T}$CC" >&6
1518 else
1519   echo "$as_me:$LINENO: result: no" >&5
1520 echo "${ECHO_T}no" >&6
1521 fi
1522
1523 fi
1524 if test -z "$CC"; then
1525   if test -n "$ac_tool_prefix"; then
1526   for ac_prog in cl
1527   do
1528     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1529 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1530 echo "$as_me:$LINENO: checking for $ac_word" >&5
1531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1532 if test "${ac_cv_prog_CC+set}" = set; then
1533   echo $ECHO_N "(cached) $ECHO_C" >&6
1534 else
1535   if test -n "$CC"; then
1536   ac_cv_prog_CC="$CC" # Let the user override the test.
1537 else
1538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1539 for as_dir in $PATH
1540 do
1541   IFS=$as_save_IFS
1542   test -z "$as_dir" && as_dir=.
1543   for ac_exec_ext in '' $ac_executable_extensions; do
1544   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1545     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1546     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1547     break 2
1548   fi
1549 done
1550 done
1551
1552 fi
1553 fi
1554 CC=$ac_cv_prog_CC
1555 if test -n "$CC"; then
1556   echo "$as_me:$LINENO: result: $CC" >&5
1557 echo "${ECHO_T}$CC" >&6
1558 else
1559   echo "$as_me:$LINENO: result: no" >&5
1560 echo "${ECHO_T}no" >&6
1561 fi
1562
1563     test -n "$CC" && break
1564   done
1565 fi
1566 if test -z "$CC"; then
1567   ac_ct_CC=$CC
1568   for ac_prog in cl
1569 do
1570   # Extract the first word of "$ac_prog", so it can be a program name with args.
1571 set dummy $ac_prog; ac_word=$2
1572 echo "$as_me:$LINENO: checking for $ac_word" >&5
1573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1574 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1575   echo $ECHO_N "(cached) $ECHO_C" >&6
1576 else
1577   if test -n "$ac_ct_CC"; then
1578   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1579 else
1580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1581 for as_dir in $PATH
1582 do
1583   IFS=$as_save_IFS
1584   test -z "$as_dir" && as_dir=.
1585   for ac_exec_ext in '' $ac_executable_extensions; do
1586   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1587     ac_cv_prog_ac_ct_CC="$ac_prog"
1588     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1589     break 2
1590   fi
1591 done
1592 done
1593
1594 fi
1595 fi
1596 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1597 if test -n "$ac_ct_CC"; then
1598   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1599 echo "${ECHO_T}$ac_ct_CC" >&6
1600 else
1601   echo "$as_me:$LINENO: result: no" >&5
1602 echo "${ECHO_T}no" >&6
1603 fi
1604
1605   test -n "$ac_ct_CC" && break
1606 done
1607
1608   CC=$ac_ct_CC
1609 fi
1610
1611 fi
1612
1613
1614 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1615 See \`config.log' for more details." >&5
1616 echo "$as_me: error: no acceptable C compiler found in \$PATH
1617 See \`config.log' for more details." >&2;}
1618    { (exit 1); exit 1; }; }
1619
1620 # Provide some information about the compiler.
1621 echo "$as_me:$LINENO:" \
1622      "checking for C compiler version" >&5
1623 ac_compiler=`set X $ac_compile; echo $2`
1624 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1625   (eval $ac_compiler --version </dev/null >&5) 2>&5
1626   ac_status=$?
1627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1628   (exit $ac_status); }
1629 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1630   (eval $ac_compiler -v </dev/null >&5) 2>&5
1631   ac_status=$?
1632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1633   (exit $ac_status); }
1634 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1635   (eval $ac_compiler -V </dev/null >&5) 2>&5
1636   ac_status=$?
1637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1638   (exit $ac_status); }
1639
1640 cat >conftest.$ac_ext <<_ACEOF
1641 /* confdefs.h.  */
1642 _ACEOF
1643 cat confdefs.h >>conftest.$ac_ext
1644 cat >>conftest.$ac_ext <<_ACEOF
1645 /* end confdefs.h.  */
1646
1647 int
1648 main ()
1649 {
1650
1651   ;
1652   return 0;
1653 }
1654 _ACEOF
1655 ac_clean_files_save=$ac_clean_files
1656 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1657 # Try to create an executable without -o first, disregard a.out.
1658 # It will help us diagnose broken compilers, and finding out an intuition
1659 # of exeext.
1660 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1661 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1662 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1663 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1664   (eval $ac_link_default) 2>&5
1665   ac_status=$?
1666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1667   (exit $ac_status); }; then
1668   # Find the output, starting from the most likely.  This scheme is
1669 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1670 # resort.
1671
1672 # Be careful to initialize this variable, since it used to be cached.
1673 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1674 ac_cv_exeext=
1675 # b.out is created by i960 compilers.
1676 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1677 do
1678   test -f "$ac_file" || continue
1679   case $ac_file in
1680     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1681         ;;
1682     conftest.$ac_ext )
1683         # This is the source file.
1684         ;;
1685     [ab].out )
1686         # We found the default executable, but exeext='' is most
1687         # certainly right.
1688         break;;
1689     *.* )
1690         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1691         # FIXME: I believe we export ac_cv_exeext for Libtool,
1692         # but it would be cool to find out if it's true.  Does anybody
1693         # maintain Libtool? --akim.
1694         export ac_cv_exeext
1695         break;;
1696     * )
1697         break;;
1698   esac
1699 done
1700 else
1701   echo "$as_me: failed program was:" >&5
1702 sed 's/^/| /' conftest.$ac_ext >&5
1703
1704 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1705 See \`config.log' for more details." >&5
1706 echo "$as_me: error: C compiler cannot create executables
1707 See \`config.log' for more details." >&2;}
1708    { (exit 77); exit 77; }; }
1709 fi
1710
1711 ac_exeext=$ac_cv_exeext
1712 echo "$as_me:$LINENO: result: $ac_file" >&5
1713 echo "${ECHO_T}$ac_file" >&6
1714
1715 # Check the compiler produces executables we can run.  If not, either
1716 # the compiler is broken, or we cross compile.
1717 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1718 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1719 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1720 # If not cross compiling, check that we can run a simple program.
1721 if test "$cross_compiling" != yes; then
1722   if { ac_try='./$ac_file'
1723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1724   (eval $ac_try) 2>&5
1725   ac_status=$?
1726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1727   (exit $ac_status); }; }; then
1728     cross_compiling=no
1729   else
1730     if test "$cross_compiling" = maybe; then
1731         cross_compiling=yes
1732     else
1733         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1734 If you meant to cross compile, use \`--host'.
1735 See \`config.log' for more details." >&5
1736 echo "$as_me: error: cannot run C compiled programs.
1737 If you meant to cross compile, use \`--host'.
1738 See \`config.log' for more details." >&2;}
1739    { (exit 1); exit 1; }; }
1740     fi
1741   fi
1742 fi
1743 echo "$as_me:$LINENO: result: yes" >&5
1744 echo "${ECHO_T}yes" >&6
1745
1746 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1747 ac_clean_files=$ac_clean_files_save
1748 # Check the compiler produces executables we can run.  If not, either
1749 # the compiler is broken, or we cross compile.
1750 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1751 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1752 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1753 echo "${ECHO_T}$cross_compiling" >&6
1754
1755 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1756 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1758   (eval $ac_link) 2>&5
1759   ac_status=$?
1760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1761   (exit $ac_status); }; then
1762   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1763 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1764 # work properly (i.e., refer to `conftest.exe'), while it won't with
1765 # `rm'.
1766 for ac_file in conftest.exe conftest conftest.*; do
1767   test -f "$ac_file" || continue
1768   case $ac_file in
1769     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1770     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1771           export ac_cv_exeext
1772           break;;
1773     * ) break;;
1774   esac
1775 done
1776 else
1777   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1778 See \`config.log' for more details." >&5
1779 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1780 See \`config.log' for more details." >&2;}
1781    { (exit 1); exit 1; }; }
1782 fi
1783
1784 rm -f conftest$ac_cv_exeext
1785 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1786 echo "${ECHO_T}$ac_cv_exeext" >&6
1787
1788 rm -f conftest.$ac_ext
1789 EXEEXT=$ac_cv_exeext
1790 ac_exeext=$EXEEXT
1791 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1792 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1793 if test "${ac_cv_objext+set}" = set; then
1794   echo $ECHO_N "(cached) $ECHO_C" >&6
1795 else
1796   cat >conftest.$ac_ext <<_ACEOF
1797 /* confdefs.h.  */
1798 _ACEOF
1799 cat confdefs.h >>conftest.$ac_ext
1800 cat >>conftest.$ac_ext <<_ACEOF
1801 /* end confdefs.h.  */
1802
1803 int
1804 main ()
1805 {
1806
1807   ;
1808   return 0;
1809 }
1810 _ACEOF
1811 rm -f conftest.o conftest.obj
1812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1813   (eval $ac_compile) 2>&5
1814   ac_status=$?
1815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1816   (exit $ac_status); }; then
1817   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1818   case $ac_file in
1819     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1820     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1821        break;;
1822   esac
1823 done
1824 else
1825   echo "$as_me: failed program was:" >&5
1826 sed 's/^/| /' conftest.$ac_ext >&5
1827
1828 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1829 See \`config.log' for more details." >&5
1830 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1831 See \`config.log' for more details." >&2;}
1832    { (exit 1); exit 1; }; }
1833 fi
1834
1835 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1836 fi
1837 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1838 echo "${ECHO_T}$ac_cv_objext" >&6
1839 OBJEXT=$ac_cv_objext
1840 ac_objext=$OBJEXT
1841 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1842 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1843 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1844   echo $ECHO_N "(cached) $ECHO_C" >&6
1845 else
1846   cat >conftest.$ac_ext <<_ACEOF
1847 /* confdefs.h.  */
1848 _ACEOF
1849 cat confdefs.h >>conftest.$ac_ext
1850 cat >>conftest.$ac_ext <<_ACEOF
1851 /* end confdefs.h.  */
1852
1853 int
1854 main ()
1855 {
1856 #ifndef __GNUC__
1857        choke me
1858 #endif
1859
1860   ;
1861   return 0;
1862 }
1863 _ACEOF
1864 rm -f conftest.$ac_objext
1865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1866   (eval $ac_compile) 2>conftest.er1
1867   ac_status=$?
1868   grep -v '^ *+' conftest.er1 >conftest.err
1869   rm -f conftest.er1
1870   cat conftest.err >&5
1871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1872   (exit $ac_status); } &&
1873          { ac_try='test -z "$ac_c_werror_flag"
1874                          || test ! -s conftest.err'
1875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1876   (eval $ac_try) 2>&5
1877   ac_status=$?
1878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1879   (exit $ac_status); }; } &&
1880          { ac_try='test -s conftest.$ac_objext'
1881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1882   (eval $ac_try) 2>&5
1883   ac_status=$?
1884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1885   (exit $ac_status); }; }; then
1886   ac_compiler_gnu=yes
1887 else
1888   echo "$as_me: failed program was:" >&5
1889 sed 's/^/| /' conftest.$ac_ext >&5
1890
1891 ac_compiler_gnu=no
1892 fi
1893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1894 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1895
1896 fi
1897 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1898 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1899 GCC=`test $ac_compiler_gnu = yes && echo yes`
1900 ac_test_CFLAGS=${CFLAGS+set}
1901 ac_save_CFLAGS=$CFLAGS
1902 CFLAGS="-g"
1903 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1904 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1905 if test "${ac_cv_prog_cc_g+set}" = set; then
1906   echo $ECHO_N "(cached) $ECHO_C" >&6
1907 else
1908   cat >conftest.$ac_ext <<_ACEOF
1909 /* confdefs.h.  */
1910 _ACEOF
1911 cat confdefs.h >>conftest.$ac_ext
1912 cat >>conftest.$ac_ext <<_ACEOF
1913 /* end confdefs.h.  */
1914
1915 int
1916 main ()
1917 {
1918
1919   ;
1920   return 0;
1921 }
1922 _ACEOF
1923 rm -f conftest.$ac_objext
1924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1925   (eval $ac_compile) 2>conftest.er1
1926   ac_status=$?
1927   grep -v '^ *+' conftest.er1 >conftest.err
1928   rm -f conftest.er1
1929   cat conftest.err >&5
1930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1931   (exit $ac_status); } &&
1932          { ac_try='test -z "$ac_c_werror_flag"
1933                          || test ! -s conftest.err'
1934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1935   (eval $ac_try) 2>&5
1936   ac_status=$?
1937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1938   (exit $ac_status); }; } &&
1939          { ac_try='test -s conftest.$ac_objext'
1940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1941   (eval $ac_try) 2>&5
1942   ac_status=$?
1943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1944   (exit $ac_status); }; }; then
1945   ac_cv_prog_cc_g=yes
1946 else
1947   echo "$as_me: failed program was:" >&5
1948 sed 's/^/| /' conftest.$ac_ext >&5
1949
1950 ac_cv_prog_cc_g=no
1951 fi
1952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1953 fi
1954 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1955 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1956 if test "$ac_test_CFLAGS" = set; then
1957   CFLAGS=$ac_save_CFLAGS
1958 elif test $ac_cv_prog_cc_g = yes; then
1959   if test "$GCC" = yes; then
1960     CFLAGS="-g -O2"
1961   else
1962     CFLAGS="-g"
1963   fi
1964 else
1965   if test "$GCC" = yes; then
1966     CFLAGS="-O2"
1967   else
1968     CFLAGS=
1969   fi
1970 fi
1971 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1972 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1973 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1974   echo $ECHO_N "(cached) $ECHO_C" >&6
1975 else
1976   ac_cv_prog_cc_stdc=no
1977 ac_save_CC=$CC
1978 cat >conftest.$ac_ext <<_ACEOF
1979 /* confdefs.h.  */
1980 _ACEOF
1981 cat confdefs.h >>conftest.$ac_ext
1982 cat >>conftest.$ac_ext <<_ACEOF
1983 /* end confdefs.h.  */
1984 #include <stdarg.h>
1985 #include <stdio.h>
1986 #include <sys/types.h>
1987 #include <sys/stat.h>
1988 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
1989 struct buf { int x; };
1990 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1991 static char *e (p, i)
1992      char **p;
1993      int i;
1994 {
1995   return p[i];
1996 }
1997 static char *f (char * (*g) (char **, int), char **p, ...)
1998 {
1999   char *s;
2000   va_list v;
2001   va_start (v,p);
2002   s = g (p, va_arg (v,int));
2003   va_end (v);
2004   return s;
2005 }
2006
2007 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2008    function prototypes and stuff, but not '\xHH' hex character constants.
2009    These don't provoke an error unfortunately, instead are silently treated
2010    as 'x'.  The following induces an error, until -std1 is added to get
2011    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2012    array size at least.  It's necessary to write '\x00'==0 to get something
2013    that's true only with -std1.  */
2014 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2015
2016 int test (int i, double x);
2017 struct s1 {int (*f) (int a);};
2018 struct s2 {int (*f) (double a);};
2019 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2020 int argc;
2021 char **argv;
2022 int
2023 main ()
2024 {
2025 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2026   ;
2027   return 0;
2028 }
2029 _ACEOF
2030 # Don't try gcc -ansi; that turns off useful extensions and
2031 # breaks some systems' header files.
2032 # AIX                   -qlanglvl=ansi
2033 # Ultrix and OSF/1      -std1
2034 # HP-UX 10.20 and later -Ae
2035 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2036 # SVR4                  -Xc -D__EXTENSIONS__
2037 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2038 do
2039   CC="$ac_save_CC $ac_arg"
2040   rm -f conftest.$ac_objext
2041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2042   (eval $ac_compile) 2>conftest.er1
2043   ac_status=$?
2044   grep -v '^ *+' conftest.er1 >conftest.err
2045   rm -f conftest.er1
2046   cat conftest.err >&5
2047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2048   (exit $ac_status); } &&
2049          { ac_try='test -z "$ac_c_werror_flag"
2050                          || test ! -s conftest.err'
2051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2052   (eval $ac_try) 2>&5
2053   ac_status=$?
2054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2055   (exit $ac_status); }; } &&
2056          { ac_try='test -s conftest.$ac_objext'
2057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2058   (eval $ac_try) 2>&5
2059   ac_status=$?
2060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2061   (exit $ac_status); }; }; then
2062   ac_cv_prog_cc_stdc=$ac_arg
2063 break
2064 else
2065   echo "$as_me: failed program was:" >&5
2066 sed 's/^/| /' conftest.$ac_ext >&5
2067
2068 fi
2069 rm -f conftest.err conftest.$ac_objext
2070 done
2071 rm -f conftest.$ac_ext conftest.$ac_objext
2072 CC=$ac_save_CC
2073
2074 fi
2075
2076 case "x$ac_cv_prog_cc_stdc" in
2077   x|xno)
2078     echo "$as_me:$LINENO: result: none needed" >&5
2079 echo "${ECHO_T}none needed" >&6 ;;
2080   *)
2081     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2082 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2083     CC="$CC $ac_cv_prog_cc_stdc" ;;
2084 esac
2085
2086 # Some people use a C++ compiler to compile C.  Since we use `exit',
2087 # in C++ we need to declare it.  In case someone uses the same compiler
2088 # for both compiling C and C++ we need to have the C++ compiler decide
2089 # the declaration of exit, since it's the most demanding environment.
2090 cat >conftest.$ac_ext <<_ACEOF
2091 #ifndef __cplusplus
2092   choke me
2093 #endif
2094 _ACEOF
2095 rm -f conftest.$ac_objext
2096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2097   (eval $ac_compile) 2>conftest.er1
2098   ac_status=$?
2099   grep -v '^ *+' conftest.er1 >conftest.err
2100   rm -f conftest.er1
2101   cat conftest.err >&5
2102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2103   (exit $ac_status); } &&
2104          { ac_try='test -z "$ac_c_werror_flag"
2105                          || test ! -s conftest.err'
2106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2107   (eval $ac_try) 2>&5
2108   ac_status=$?
2109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2110   (exit $ac_status); }; } &&
2111          { ac_try='test -s conftest.$ac_objext'
2112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2113   (eval $ac_try) 2>&5
2114   ac_status=$?
2115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2116   (exit $ac_status); }; }; then
2117   for ac_declaration in \
2118    '' \
2119    'extern "C" void std::exit (int) throw (); using std::exit;' \
2120    'extern "C" void std::exit (int); using std::exit;' \
2121    'extern "C" void exit (int) throw ();' \
2122    'extern "C" void exit (int);' \
2123    'void exit (int);'
2124 do
2125   cat >conftest.$ac_ext <<_ACEOF
2126 /* confdefs.h.  */
2127 _ACEOF
2128 cat confdefs.h >>conftest.$ac_ext
2129 cat >>conftest.$ac_ext <<_ACEOF
2130 /* end confdefs.h.  */
2131 $ac_declaration
2132 #include <stdlib.h>
2133 int
2134 main ()
2135 {
2136 exit (42);
2137   ;
2138   return 0;
2139 }
2140 _ACEOF
2141 rm -f conftest.$ac_objext
2142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2143   (eval $ac_compile) 2>conftest.er1
2144   ac_status=$?
2145   grep -v '^ *+' conftest.er1 >conftest.err
2146   rm -f conftest.er1
2147   cat conftest.err >&5
2148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2149   (exit $ac_status); } &&
2150          { ac_try='test -z "$ac_c_werror_flag"
2151                          || test ! -s conftest.err'
2152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2153   (eval $ac_try) 2>&5
2154   ac_status=$?
2155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2156   (exit $ac_status); }; } &&
2157          { ac_try='test -s conftest.$ac_objext'
2158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2159   (eval $ac_try) 2>&5
2160   ac_status=$?
2161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2162   (exit $ac_status); }; }; then
2163   :
2164 else
2165   echo "$as_me: failed program was:" >&5
2166 sed 's/^/| /' conftest.$ac_ext >&5
2167
2168 continue
2169 fi
2170 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2171   cat >conftest.$ac_ext <<_ACEOF
2172 /* confdefs.h.  */
2173 _ACEOF
2174 cat confdefs.h >>conftest.$ac_ext
2175 cat >>conftest.$ac_ext <<_ACEOF
2176 /* end confdefs.h.  */
2177 $ac_declaration
2178 int
2179 main ()
2180 {
2181 exit (42);
2182   ;
2183   return 0;
2184 }
2185 _ACEOF
2186 rm -f conftest.$ac_objext
2187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2188   (eval $ac_compile) 2>conftest.er1
2189   ac_status=$?
2190   grep -v '^ *+' conftest.er1 >conftest.err
2191   rm -f conftest.er1
2192   cat conftest.err >&5
2193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2194   (exit $ac_status); } &&
2195          { ac_try='test -z "$ac_c_werror_flag"
2196                          || test ! -s conftest.err'
2197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2198   (eval $ac_try) 2>&5
2199   ac_status=$?
2200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2201   (exit $ac_status); }; } &&
2202          { ac_try='test -s conftest.$ac_objext'
2203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2204   (eval $ac_try) 2>&5
2205   ac_status=$?
2206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2207   (exit $ac_status); }; }; then
2208   break
2209 else
2210   echo "$as_me: failed program was:" >&5
2211 sed 's/^/| /' conftest.$ac_ext >&5
2212
2213 fi
2214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2215 done
2216 rm -f conftest*
2217 if test -n "$ac_declaration"; then
2218   echo '#ifdef __cplusplus' >>confdefs.h
2219   echo $ac_declaration      >>confdefs.h
2220   echo '#endif'             >>confdefs.h
2221 fi
2222
2223 else
2224   echo "$as_me: failed program was:" >&5
2225 sed 's/^/| /' conftest.$ac_ext >&5
2226
2227 fi
2228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2229 ac_ext=c
2230 ac_cpp='$CPP $CPPFLAGS'
2231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2234
2235
2236 ac_ext=c
2237 ac_cpp='$CPP $CPPFLAGS'
2238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2241 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2242 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2243 # On Suns, sometimes $CPP names a directory.
2244 if test -n "$CPP" && test -d "$CPP"; then
2245   CPP=
2246 fi
2247 if test -z "$CPP"; then
2248   if test "${ac_cv_prog_CPP+set}" = set; then
2249   echo $ECHO_N "(cached) $ECHO_C" >&6
2250 else
2251       # Double quotes because CPP needs to be expanded
2252     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2253     do
2254       ac_preproc_ok=false
2255 for ac_c_preproc_warn_flag in '' yes
2256 do
2257   # Use a header file that comes with gcc, so configuring glibc
2258   # with a fresh cross-compiler works.
2259   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2260   # <limits.h> exists even on freestanding compilers.
2261   # On the NeXT, cc -E runs the code through the compiler's parser,
2262   # not just through cpp. "Syntax error" is here to catch this case.
2263   cat >conftest.$ac_ext <<_ACEOF
2264 /* confdefs.h.  */
2265 _ACEOF
2266 cat confdefs.h >>conftest.$ac_ext
2267 cat >>conftest.$ac_ext <<_ACEOF
2268 /* end confdefs.h.  */
2269 #ifdef __STDC__
2270 # include <limits.h>
2271 #else
2272 # include <assert.h>
2273 #endif
2274                      Syntax error
2275 _ACEOF
2276 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2277   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2278   ac_status=$?
2279   grep -v '^ *+' conftest.er1 >conftest.err
2280   rm -f conftest.er1
2281   cat conftest.err >&5
2282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283   (exit $ac_status); } >/dev/null; then
2284   if test -s conftest.err; then
2285     ac_cpp_err=$ac_c_preproc_warn_flag
2286     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2287   else
2288     ac_cpp_err=
2289   fi
2290 else
2291   ac_cpp_err=yes
2292 fi
2293 if test -z "$ac_cpp_err"; then
2294   :
2295 else
2296   echo "$as_me: failed program was:" >&5
2297 sed 's/^/| /' conftest.$ac_ext >&5
2298
2299   # Broken: fails on valid input.
2300 continue
2301 fi
2302 rm -f conftest.err conftest.$ac_ext
2303
2304   # OK, works on sane cases.  Now check whether non-existent headers
2305   # can be detected and how.
2306   cat >conftest.$ac_ext <<_ACEOF
2307 /* confdefs.h.  */
2308 _ACEOF
2309 cat confdefs.h >>conftest.$ac_ext
2310 cat >>conftest.$ac_ext <<_ACEOF
2311 /* end confdefs.h.  */
2312 #include <ac_nonexistent.h>
2313 _ACEOF
2314 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2315   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2316   ac_status=$?
2317   grep -v '^ *+' conftest.er1 >conftest.err
2318   rm -f conftest.er1
2319   cat conftest.err >&5
2320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321   (exit $ac_status); } >/dev/null; then
2322   if test -s conftest.err; then
2323     ac_cpp_err=$ac_c_preproc_warn_flag
2324     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2325   else
2326     ac_cpp_err=
2327   fi
2328 else
2329   ac_cpp_err=yes
2330 fi
2331 if test -z "$ac_cpp_err"; then
2332   # Broken: success on invalid input.
2333 continue
2334 else
2335   echo "$as_me: failed program was:" >&5
2336 sed 's/^/| /' conftest.$ac_ext >&5
2337
2338   # Passes both tests.
2339 ac_preproc_ok=:
2340 break
2341 fi
2342 rm -f conftest.err conftest.$ac_ext
2343
2344 done
2345 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2346 rm -f conftest.err conftest.$ac_ext
2347 if $ac_preproc_ok; then
2348   break
2349 fi
2350
2351     done
2352     ac_cv_prog_CPP=$CPP
2353
2354 fi
2355   CPP=$ac_cv_prog_CPP
2356 else
2357   ac_cv_prog_CPP=$CPP
2358 fi
2359 echo "$as_me:$LINENO: result: $CPP" >&5
2360 echo "${ECHO_T}$CPP" >&6
2361 ac_preproc_ok=false
2362 for ac_c_preproc_warn_flag in '' yes
2363 do
2364   # Use a header file that comes with gcc, so configuring glibc
2365   # with a fresh cross-compiler works.
2366   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2367   # <limits.h> exists even on freestanding compilers.
2368   # On the NeXT, cc -E runs the code through the compiler's parser,
2369   # not just through cpp. "Syntax error" is here to catch this case.
2370   cat >conftest.$ac_ext <<_ACEOF
2371 /* confdefs.h.  */
2372 _ACEOF
2373 cat confdefs.h >>conftest.$ac_ext
2374 cat >>conftest.$ac_ext <<_ACEOF
2375 /* end confdefs.h.  */
2376 #ifdef __STDC__
2377 # include <limits.h>
2378 #else
2379 # include <assert.h>
2380 #endif
2381                      Syntax error
2382 _ACEOF
2383 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2384   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2385   ac_status=$?
2386   grep -v '^ *+' conftest.er1 >conftest.err
2387   rm -f conftest.er1
2388   cat conftest.err >&5
2389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390   (exit $ac_status); } >/dev/null; then
2391   if test -s conftest.err; then
2392     ac_cpp_err=$ac_c_preproc_warn_flag
2393     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2394   else
2395     ac_cpp_err=
2396   fi
2397 else
2398   ac_cpp_err=yes
2399 fi
2400 if test -z "$ac_cpp_err"; then
2401   :
2402 else
2403   echo "$as_me: failed program was:" >&5
2404 sed 's/^/| /' conftest.$ac_ext >&5
2405
2406   # Broken: fails on valid input.
2407 continue
2408 fi
2409 rm -f conftest.err conftest.$ac_ext
2410
2411   # OK, works on sane cases.  Now check whether non-existent headers
2412   # can be detected and how.
2413   cat >conftest.$ac_ext <<_ACEOF
2414 /* confdefs.h.  */
2415 _ACEOF
2416 cat confdefs.h >>conftest.$ac_ext
2417 cat >>conftest.$ac_ext <<_ACEOF
2418 /* end confdefs.h.  */
2419 #include <ac_nonexistent.h>
2420 _ACEOF
2421 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2422   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2423   ac_status=$?
2424   grep -v '^ *+' conftest.er1 >conftest.err
2425   rm -f conftest.er1
2426   cat conftest.err >&5
2427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428   (exit $ac_status); } >/dev/null; then
2429   if test -s conftest.err; then
2430     ac_cpp_err=$ac_c_preproc_warn_flag
2431     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2432   else
2433     ac_cpp_err=
2434   fi
2435 else
2436   ac_cpp_err=yes
2437 fi
2438 if test -z "$ac_cpp_err"; then
2439   # Broken: success on invalid input.
2440 continue
2441 else
2442   echo "$as_me: failed program was:" >&5
2443 sed 's/^/| /' conftest.$ac_ext >&5
2444
2445   # Passes both tests.
2446 ac_preproc_ok=:
2447 break
2448 fi
2449 rm -f conftest.err conftest.$ac_ext
2450
2451 done
2452 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2453 rm -f conftest.err conftest.$ac_ext
2454 if $ac_preproc_ok; then
2455   :
2456 else
2457   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2458 See \`config.log' for more details." >&5
2459 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2460 See \`config.log' for more details." >&2;}
2461    { (exit 1); exit 1; }; }
2462 fi
2463
2464 ac_ext=c
2465 ac_cpp='$CPP $CPPFLAGS'
2466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2469
2470
2471 echo "$as_me:$LINENO: checking for egrep" >&5
2472 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2473 if test "${ac_cv_prog_egrep+set}" = set; then
2474   echo $ECHO_N "(cached) $ECHO_C" >&6
2475 else
2476   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2477     then ac_cv_prog_egrep='grep -E'
2478     else ac_cv_prog_egrep='egrep'
2479     fi
2480 fi
2481 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2482 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2483  EGREP=$ac_cv_prog_egrep
2484
2485
2486 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2487 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2488 if test "${ac_cv_header_stdc+set}" = set; then
2489   echo $ECHO_N "(cached) $ECHO_C" >&6
2490 else
2491   cat >conftest.$ac_ext <<_ACEOF
2492 /* confdefs.h.  */
2493 _ACEOF
2494 cat confdefs.h >>conftest.$ac_ext
2495 cat >>conftest.$ac_ext <<_ACEOF
2496 /* end confdefs.h.  */
2497 #include <stdlib.h>
2498 #include <stdarg.h>
2499 #include <string.h>
2500 #include <float.h>
2501
2502 int
2503 main ()
2504 {
2505
2506   ;
2507   return 0;
2508 }
2509 _ACEOF
2510 rm -f conftest.$ac_objext
2511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2512   (eval $ac_compile) 2>conftest.er1
2513   ac_status=$?
2514   grep -v '^ *+' conftest.er1 >conftest.err
2515   rm -f conftest.er1
2516   cat conftest.err >&5
2517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518   (exit $ac_status); } &&
2519          { ac_try='test -z "$ac_c_werror_flag"
2520                          || test ! -s conftest.err'
2521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2522   (eval $ac_try) 2>&5
2523   ac_status=$?
2524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525   (exit $ac_status); }; } &&
2526          { ac_try='test -s conftest.$ac_objext'
2527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2528   (eval $ac_try) 2>&5
2529   ac_status=$?
2530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531   (exit $ac_status); }; }; then
2532   ac_cv_header_stdc=yes
2533 else
2534   echo "$as_me: failed program was:" >&5
2535 sed 's/^/| /' conftest.$ac_ext >&5
2536
2537 ac_cv_header_stdc=no
2538 fi
2539 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2540
2541 if test $ac_cv_header_stdc = yes; then
2542   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2543   cat >conftest.$ac_ext <<_ACEOF
2544 /* confdefs.h.  */
2545 _ACEOF
2546 cat confdefs.h >>conftest.$ac_ext
2547 cat >>conftest.$ac_ext <<_ACEOF
2548 /* end confdefs.h.  */
2549 #include <string.h>
2550
2551 _ACEOF
2552 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2553   $EGREP "memchr" >/dev/null 2>&1; then
2554   :
2555 else
2556   ac_cv_header_stdc=no
2557 fi
2558 rm -f conftest*
2559
2560 fi
2561
2562 if test $ac_cv_header_stdc = yes; then
2563   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2564   cat >conftest.$ac_ext <<_ACEOF
2565 /* confdefs.h.  */
2566 _ACEOF
2567 cat confdefs.h >>conftest.$ac_ext
2568 cat >>conftest.$ac_ext <<_ACEOF
2569 /* end confdefs.h.  */
2570 #include <stdlib.h>
2571
2572 _ACEOF
2573 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2574   $EGREP "free" >/dev/null 2>&1; then
2575   :
2576 else
2577   ac_cv_header_stdc=no
2578 fi
2579 rm -f conftest*
2580
2581 fi
2582
2583 if test $ac_cv_header_stdc = yes; then
2584   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2585   if test "$cross_compiling" = yes; then
2586   :
2587 else
2588   cat >conftest.$ac_ext <<_ACEOF
2589 /* confdefs.h.  */
2590 _ACEOF
2591 cat confdefs.h >>conftest.$ac_ext
2592 cat >>conftest.$ac_ext <<_ACEOF
2593 /* end confdefs.h.  */
2594 #include <ctype.h>
2595 #if ((' ' & 0x0FF) == 0x020)
2596 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2597 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2598 #else
2599 # define ISLOWER(c) \
2600                    (('a' <= (c) && (c) <= 'i') \
2601                      || ('j' <= (c) && (c) <= 'r') \
2602                      || ('s' <= (c) && (c) <= 'z'))
2603 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2604 #endif
2605
2606 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2607 int
2608 main ()
2609 {
2610   int i;
2611   for (i = 0; i < 256; i++)
2612     if (XOR (islower (i), ISLOWER (i))
2613         || toupper (i) != TOUPPER (i))
2614       exit(2);
2615   exit (0);
2616 }
2617 _ACEOF
2618 rm -f conftest$ac_exeext
2619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2620   (eval $ac_link) 2>&5
2621   ac_status=$?
2622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2625   (eval $ac_try) 2>&5
2626   ac_status=$?
2627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628   (exit $ac_status); }; }; then
2629   :
2630 else
2631   echo "$as_me: program exited with status $ac_status" >&5
2632 echo "$as_me: failed program was:" >&5
2633 sed 's/^/| /' conftest.$ac_ext >&5
2634
2635 ( exit $ac_status )
2636 ac_cv_header_stdc=no
2637 fi
2638 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2639 fi
2640 fi
2641 fi
2642 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2643 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2644 if test $ac_cv_header_stdc = yes; then
2645
2646 cat >>confdefs.h <<\_ACEOF
2647 #define STDC_HEADERS 1
2648 _ACEOF
2649
2650 fi
2651
2652 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2663                   inttypes.h stdint.h unistd.h
2664 do
2665 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2666 echo "$as_me:$LINENO: checking for $ac_header" >&5
2667 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2668 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2669   echo $ECHO_N "(cached) $ECHO_C" >&6
2670 else
2671   cat >conftest.$ac_ext <<_ACEOF
2672 /* confdefs.h.  */
2673 _ACEOF
2674 cat confdefs.h >>conftest.$ac_ext
2675 cat >>conftest.$ac_ext <<_ACEOF
2676 /* end confdefs.h.  */
2677 $ac_includes_default
2678
2679 #include <$ac_header>
2680 _ACEOF
2681 rm -f conftest.$ac_objext
2682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2683   (eval $ac_compile) 2>conftest.er1
2684   ac_status=$?
2685   grep -v '^ *+' conftest.er1 >conftest.err
2686   rm -f conftest.er1
2687   cat conftest.err >&5
2688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689   (exit $ac_status); } &&
2690          { ac_try='test -z "$ac_c_werror_flag"
2691                          || test ! -s conftest.err'
2692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2693   (eval $ac_try) 2>&5
2694   ac_status=$?
2695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696   (exit $ac_status); }; } &&
2697          { ac_try='test -s conftest.$ac_objext'
2698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2699   (eval $ac_try) 2>&5
2700   ac_status=$?
2701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702   (exit $ac_status); }; }; then
2703   eval "$as_ac_Header=yes"
2704 else
2705   echo "$as_me: failed program was:" >&5
2706 sed 's/^/| /' conftest.$ac_ext >&5
2707
2708 eval "$as_ac_Header=no"
2709 fi
2710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2711 fi
2712 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2713 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2714 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2715   cat >>confdefs.h <<_ACEOF
2716 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2717 _ACEOF
2718
2719 fi
2720
2721 done
2722
2723
2724 if test "${ac_cv_header_inttypes_h+set}" = set; then
2725   echo "$as_me:$LINENO: checking for inttypes.h" >&5
2726 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
2727 if test "${ac_cv_header_inttypes_h+set}" = set; then
2728   echo $ECHO_N "(cached) $ECHO_C" >&6
2729 fi
2730 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
2731 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
2732 else
2733   # Is the header compilable?
2734 echo "$as_me:$LINENO: checking inttypes.h usability" >&5
2735 echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6
2736 cat >conftest.$ac_ext <<_ACEOF
2737 /* confdefs.h.  */
2738 _ACEOF
2739 cat confdefs.h >>conftest.$ac_ext
2740 cat >>conftest.$ac_ext <<_ACEOF
2741 /* end confdefs.h.  */
2742 $ac_includes_default
2743 #include <inttypes.h>
2744 _ACEOF
2745 rm -f conftest.$ac_objext
2746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2747   (eval $ac_compile) 2>conftest.er1
2748   ac_status=$?
2749   grep -v '^ *+' conftest.er1 >conftest.err
2750   rm -f conftest.er1
2751   cat conftest.err >&5
2752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753   (exit $ac_status); } &&
2754          { ac_try='test -z "$ac_c_werror_flag"
2755                          || test ! -s conftest.err'
2756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2757   (eval $ac_try) 2>&5
2758   ac_status=$?
2759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760   (exit $ac_status); }; } &&
2761          { ac_try='test -s conftest.$ac_objext'
2762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2763   (eval $ac_try) 2>&5
2764   ac_status=$?
2765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766   (exit $ac_status); }; }; then
2767   ac_header_compiler=yes
2768 else
2769   echo "$as_me: failed program was:" >&5
2770 sed 's/^/| /' conftest.$ac_ext >&5
2771
2772 ac_header_compiler=no
2773 fi
2774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2775 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2776 echo "${ECHO_T}$ac_header_compiler" >&6
2777
2778 # Is the header present?
2779 echo "$as_me:$LINENO: checking inttypes.h presence" >&5
2780 echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6
2781 cat >conftest.$ac_ext <<_ACEOF
2782 /* confdefs.h.  */
2783 _ACEOF
2784 cat confdefs.h >>conftest.$ac_ext
2785 cat >>conftest.$ac_ext <<_ACEOF
2786 /* end confdefs.h.  */
2787 #include <inttypes.h>
2788 _ACEOF
2789 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2790   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2791   ac_status=$?
2792   grep -v '^ *+' conftest.er1 >conftest.err
2793   rm -f conftest.er1
2794   cat conftest.err >&5
2795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796   (exit $ac_status); } >/dev/null; then
2797   if test -s conftest.err; then
2798     ac_cpp_err=$ac_c_preproc_warn_flag
2799     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2800   else
2801     ac_cpp_err=
2802   fi
2803 else
2804   ac_cpp_err=yes
2805 fi
2806 if test -z "$ac_cpp_err"; then
2807   ac_header_preproc=yes
2808 else
2809   echo "$as_me: failed program was:" >&5
2810 sed 's/^/| /' conftest.$ac_ext >&5
2811
2812   ac_header_preproc=no
2813 fi
2814 rm -f conftest.err conftest.$ac_ext
2815 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2816 echo "${ECHO_T}$ac_header_preproc" >&6
2817
2818 # So?  What about this header?
2819 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
2820   yes:no: )
2821     { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
2822 echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
2823     { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the compiler's result" >&5
2824 echo "$as_me: WARNING: inttypes.h: proceeding with the compiler's result" >&2;}
2825     ac_header_preproc=yes
2826     ;;
2827   no:yes:* )
2828     { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
2829 echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
2830     { echo "$as_me:$LINENO: WARNING: inttypes.h:     check for missing prerequisite headers?" >&5
2831 echo "$as_me: WARNING: inttypes.h:     check for missing prerequisite headers?" >&2;}
2832     { echo "$as_me:$LINENO: WARNING: inttypes.h: see the Autoconf documentation" >&5
2833 echo "$as_me: WARNING: inttypes.h: see the Autoconf documentation" >&2;}
2834     { echo "$as_me:$LINENO: WARNING: inttypes.h:     section \"Present But Cannot Be Compiled\"" >&5
2835 echo "$as_me: WARNING: inttypes.h:     section \"Present But Cannot Be Compiled\"" >&2;}
2836     { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
2837 echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
2838     { echo "$as_me:$LINENO: WARNING: inttypes.h: in the future, the compiler will take precedence" >&5
2839 echo "$as_me: WARNING: inttypes.h: in the future, the compiler will take precedence" >&2;}
2840     (
2841       cat <<\_ASBOX
2842 ## ------------------------------------------ ##
2843 ## Report this to the AC_PACKAGE_NAME lists.  ##
2844 ## ------------------------------------------ ##
2845 _ASBOX
2846     ) |
2847       sed "s/^/$as_me: WARNING:     /" >&2
2848     ;;
2849 esac
2850 echo "$as_me:$LINENO: checking for inttypes.h" >&5
2851 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
2852 if test "${ac_cv_header_inttypes_h+set}" = set; then
2853   echo $ECHO_N "(cached) $ECHO_C" >&6
2854 else
2855   ac_cv_header_inttypes_h=$ac_header_preproc
2856 fi
2857 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
2858 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
2859
2860 fi
2861 if test $ac_cv_header_inttypes_h = yes; then
2862   :
2863 else
2864    fail="$fail inttypes.h"
2865
2866 fi
2867
2868
2869
2870
2871
2872 # Check whether --with-rlm-otp-lib-dir or --without-rlm-otp-lib-dir was given.
2873 if test "${with_rlm_otp_lib_dir+set}" = set; then
2874   withval="$with_rlm_otp_lib_dir"
2875   otp_ldflags="-L$withval $otp_ldflags"
2876 fi;
2877
2878 # Check whether --with-rlm-otp-include-dir or --without-rlm-otp-include-dir was given.
2879 if test "${with_rlm_otp_include_dir+set}" = set; then
2880   withval="$with_rlm_otp_include_dir"
2881   otp_cflags="$otp_cflags -I$withval"
2882 fi;
2883
2884
2885 # Check whether --with-openssl-libraries or --without-openssl-libraries was given.
2886 if test "${with_openssl_libraries+set}" = set; then
2887   withval="$with_openssl_libraries"
2888   otp_ldflags="-L$withval $otp_ldflags"
2889 fi;
2890
2891
2892 # Check whether --with-openssl-includes or --without-openssl-includes was given.
2893 if test "${with_openssl_includes+set}" = set; then
2894   withval="$with_openssl_includes"
2895   otp_cflags="$otp_cflags -I$withval"
2896 fi;
2897
2898
2899         old_LDFLAGS="$LDFLAGS"
2900         LDFLAGS="$otp_ldflags $LDFLAGS"
2901
2902 echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
2903 echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6
2904 if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then
2905   echo $ECHO_N "(cached) $ECHO_C" >&6
2906 else
2907   ac_check_lib_save_LIBS=$LIBS
2908 LIBS="-lssl  $LIBS"
2909 cat >conftest.$ac_ext <<_ACEOF
2910 /* confdefs.h.  */
2911 _ACEOF
2912 cat confdefs.h >>conftest.$ac_ext
2913 cat >>conftest.$ac_ext <<_ACEOF
2914 /* end confdefs.h.  */
2915
2916 /* Override any gcc2 internal prototype to avoid an error.  */
2917 #ifdef __cplusplus
2918 extern "C"
2919 #endif
2920 /* We use char because int might match the return type of a gcc2
2921    builtin and then its argument prototype would still apply.  */
2922 char SSL_new ();
2923 int
2924 main ()
2925 {
2926 SSL_new ();
2927   ;
2928   return 0;
2929 }
2930 _ACEOF
2931 rm -f conftest.$ac_objext conftest$ac_exeext
2932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2933   (eval $ac_link) 2>conftest.er1
2934   ac_status=$?
2935   grep -v '^ *+' conftest.er1 >conftest.err
2936   rm -f conftest.er1
2937   cat conftest.err >&5
2938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939   (exit $ac_status); } &&
2940          { ac_try='test -z "$ac_c_werror_flag"
2941                          || test ! -s conftest.err'
2942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2943   (eval $ac_try) 2>&5
2944   ac_status=$?
2945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946   (exit $ac_status); }; } &&
2947          { ac_try='test -s conftest$ac_exeext'
2948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2949   (eval $ac_try) 2>&5
2950   ac_status=$?
2951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952   (exit $ac_status); }; }; then
2953   ac_cv_lib_ssl_SSL_new=yes
2954 else
2955   echo "$as_me: failed program was:" >&5
2956 sed 's/^/| /' conftest.$ac_ext >&5
2957
2958 ac_cv_lib_ssl_SSL_new=no
2959 fi
2960 rm -f conftest.err conftest.$ac_objext \
2961       conftest$ac_exeext conftest.$ac_ext
2962 LIBS=$ac_check_lib_save_LIBS
2963 fi
2964 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_new" >&5
2965 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_new" >&6
2966 if test $ac_cv_lib_ssl_SSL_new = yes; then
2967   cat >>confdefs.h <<_ACEOF
2968 #define HAVE_LIBSSL 1
2969 _ACEOF
2970
2971   LIBS="-lssl $LIBS"
2972
2973 else
2974    fail="$fail openssl-libs"
2975 fi
2976
2977         LDFLAGS="$old_LDFLAGS"
2978
2979
2980         old_CFLAGS="$CFLAGS"
2981         CFLAGS="$CFLAGS $otp_cflags"
2982
2983
2984
2985
2986
2987 for ac_header in \
2988                 openssl/des.h \
2989                 openssl/hmac.h \
2990                 openssl/md4.h \
2991                 openssl/md5.h \
2992                 openssl/sha.h
2993 do
2994 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2995 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2996   echo "$as_me:$LINENO: checking for $ac_header" >&5
2997 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2998 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2999   echo $ECHO_N "(cached) $ECHO_C" >&6
3000 fi
3001 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3002 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3003 else
3004   # Is the header compilable?
3005 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3006 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3007 cat >conftest.$ac_ext <<_ACEOF
3008 /* confdefs.h.  */
3009 _ACEOF
3010 cat confdefs.h >>conftest.$ac_ext
3011 cat >>conftest.$ac_ext <<_ACEOF
3012 /* end confdefs.h.  */
3013 $ac_includes_default
3014 #include <$ac_header>
3015 _ACEOF
3016 rm -f conftest.$ac_objext
3017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3018   (eval $ac_compile) 2>conftest.er1
3019   ac_status=$?
3020   grep -v '^ *+' conftest.er1 >conftest.err
3021   rm -f conftest.er1
3022   cat conftest.err >&5
3023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024   (exit $ac_status); } &&
3025          { ac_try='test -z "$ac_c_werror_flag"
3026                          || test ! -s conftest.err'
3027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3028   (eval $ac_try) 2>&5
3029   ac_status=$?
3030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031   (exit $ac_status); }; } &&
3032          { ac_try='test -s conftest.$ac_objext'
3033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3034   (eval $ac_try) 2>&5
3035   ac_status=$?
3036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037   (exit $ac_status); }; }; then
3038   ac_header_compiler=yes
3039 else
3040   echo "$as_me: failed program was:" >&5
3041 sed 's/^/| /' conftest.$ac_ext >&5
3042
3043 ac_header_compiler=no
3044 fi
3045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3046 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3047 echo "${ECHO_T}$ac_header_compiler" >&6
3048
3049 # Is the header present?
3050 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3051 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3052 cat >conftest.$ac_ext <<_ACEOF
3053 /* confdefs.h.  */
3054 _ACEOF
3055 cat confdefs.h >>conftest.$ac_ext
3056 cat >>conftest.$ac_ext <<_ACEOF
3057 /* end confdefs.h.  */
3058 #include <$ac_header>
3059 _ACEOF
3060 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3061   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3062   ac_status=$?
3063   grep -v '^ *+' conftest.er1 >conftest.err
3064   rm -f conftest.er1
3065   cat conftest.err >&5
3066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067   (exit $ac_status); } >/dev/null; then
3068   if test -s conftest.err; then
3069     ac_cpp_err=$ac_c_preproc_warn_flag
3070     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3071   else
3072     ac_cpp_err=
3073   fi
3074 else
3075   ac_cpp_err=yes
3076 fi
3077 if test -z "$ac_cpp_err"; then
3078   ac_header_preproc=yes
3079 else
3080   echo "$as_me: failed program was:" >&5
3081 sed 's/^/| /' conftest.$ac_ext >&5
3082
3083   ac_header_preproc=no
3084 fi
3085 rm -f conftest.err conftest.$ac_ext
3086 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3087 echo "${ECHO_T}$ac_header_preproc" >&6
3088
3089 # So?  What about this header?
3090 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3091   yes:no: )
3092     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3093 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3094     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3095 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3096     ac_header_preproc=yes
3097     ;;
3098   no:yes:* )
3099     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3100 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3101     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3102 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3103     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3104 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3105     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3106 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3107     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3108 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3109     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3110 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3111     (
3112       cat <<\_ASBOX
3113 ## ------------------------------------------ ##
3114 ## Report this to the AC_PACKAGE_NAME lists.  ##
3115 ## ------------------------------------------ ##
3116 _ASBOX
3117     ) |
3118       sed "s/^/$as_me: WARNING:     /" >&2
3119     ;;
3120 esac
3121 echo "$as_me:$LINENO: checking for $ac_header" >&5
3122 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3123 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3124   echo $ECHO_N "(cached) $ECHO_C" >&6
3125 else
3126   eval "$as_ac_Header=\$ac_header_preproc"
3127 fi
3128 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3129 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3130
3131 fi
3132 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3133   cat >>confdefs.h <<_ACEOF
3134 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3135 _ACEOF
3136
3137 else
3138    fail="$fail openssl-includes"
3139
3140 fi
3141
3142 done
3143
3144         CFLAGS="$old_CFLAGS"
3145
3146         targetname=rlm_otp     # keep this!  Don't change!
3147 else
3148         targetname=            # keep this!  Don't change!
3149         echo \*\*\* module rlm_otp is disabled.  # keep this!  Don't change!
3150 fi
3151
3152 if test x"$fail" != x""; then
3153         if test x"${enable_strict_dependencies}" = x"yes"; then
3154                 { { echo "$as_me:$LINENO: error: set --without-rlm_otp to disable it explicitly." >&5
3155 echo "$as_me: error: set --without-rlm_otp to disable it explicitly." >&2;}
3156    { (exit 1); exit 1; }; }
3157         else
3158                 { echo "$as_me:$LINENO: WARNING: silently not building rlm_otp." >&5
3159 echo "$as_me: WARNING: silently not building rlm_otp." >&2;}
3160                 { echo "$as_me:$LINENO: WARNING: FAILURE: rlm_otp requires: $fail." >&5
3161 echo "$as_me: WARNING: FAILURE: rlm_otp requires: $fail." >&2;}
3162                 targetname=""
3163         fi
3164 fi
3165
3166
3167
3168
3169   # keep this!  Don't change!
3170           ac_config_files="$ac_config_files Makefile"
3171 cat >confcache <<\_ACEOF
3172 # This file is a shell script that caches the results of configure
3173 # tests run on this system so they can be shared between configure
3174 # scripts and configure runs, see configure's option --config-cache.
3175 # It is not useful on other systems.  If it contains results you don't
3176 # want to keep, you may remove or edit it.
3177 #
3178 # config.status only pays attention to the cache file if you give it
3179 # the --recheck option to rerun configure.
3180 #
3181 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3182 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3183 # following values.
3184
3185 _ACEOF
3186
3187 # The following way of writing the cache mishandles newlines in values,
3188 # but we know of no workaround that is simple, portable, and efficient.
3189 # So, don't put newlines in cache variables' values.
3190 # Ultrix sh set writes to stderr and can't be redirected directly,
3191 # and sets the high bit in the cache file unless we assign to the vars.
3192 {
3193   (set) 2>&1 |
3194     case `(ac_space=' '; set | grep ac_space) 2>&1` in
3195     *ac_space=\ *)
3196       # `set' does not quote correctly, so add quotes (double-quote
3197       # substitution turns \\\\ into \\, and sed turns \\ into \).
3198       sed -n \
3199         "s/'/'\\\\''/g;
3200           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3201       ;;
3202     *)
3203       # `set' quotes correctly as required by POSIX, so do not add quotes.
3204       sed -n \
3205         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3206       ;;
3207     esac;
3208 } |
3209   sed '
3210      t clear
3211      : clear
3212      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3213      t end
3214      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3215      : end' >>confcache
3216 if diff $cache_file confcache >/dev/null 2>&1; then :; else
3217   if test -w $cache_file; then
3218     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3219     cat confcache >$cache_file
3220   else
3221     echo "not updating unwritable cache $cache_file"
3222   fi
3223 fi
3224 rm -f confcache
3225
3226 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3227 # Let make expand exec_prefix.
3228 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3229
3230 # VPATH may cause trouble with some makes, so we remove $(srcdir),
3231 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3232 # trailing colons and then remove the whole line if VPATH becomes empty
3233 # (actually we leave an empty line to preserve line numbers).
3234 if test "x$srcdir" = x.; then
3235   ac_vpsub='/^[  ]*VPATH[        ]*=/{
3236 s/:*\$(srcdir):*/:/;
3237 s/:*\${srcdir}:*/:/;
3238 s/:*@srcdir@:*/:/;
3239 s/^\([^=]*=[     ]*\):*/\1/;
3240 s/:*$//;
3241 s/^[^=]*=[       ]*$//;
3242 }'
3243 fi
3244
3245 # Transform confdefs.h into DEFS.
3246 # Protect against shell expansion while executing Makefile rules.
3247 # Protect against Makefile macro expansion.
3248 #
3249 # If the first sed substitution is executed (which looks for macros that
3250 # take arguments), then we branch to the quote section.  Otherwise,
3251 # look for a macro that doesn't take arguments.
3252 cat >confdef2opt.sed <<\_ACEOF
3253 t clear
3254 : clear
3255 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
3256 t quote
3257 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
3258 t quote
3259 d
3260 : quote
3261 s,[      `~#$^&*(){}\\|;'"<>?],\\&,g
3262 s,\[,\\&,g
3263 s,\],\\&,g
3264 s,\$,$$,g
3265 p
3266 _ACEOF
3267 # We use echo to avoid assuming a particular line-breaking character.
3268 # The extra dot is to prevent the shell from consuming trailing
3269 # line-breaks from the sub-command output.  A line-break within
3270 # single-quotes doesn't work because, if this script is created in a
3271 # platform that uses two characters for line-breaks (e.g., DOS), tr
3272 # would break.
3273 ac_LF_and_DOT=`echo; echo .`
3274 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
3275 rm -f confdef2opt.sed
3276
3277
3278 ac_libobjs=
3279 ac_ltlibobjs=
3280 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3281   # 1. Remove the extension, and $U if already installed.
3282   ac_i=`echo "$ac_i" |
3283          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
3284   # 2. Add them.
3285   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
3286   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
3287 done
3288 LIBOBJS=$ac_libobjs
3289
3290 LTLIBOBJS=$ac_ltlibobjs
3291
3292
3293
3294 : ${CONFIG_STATUS=./config.status}
3295 ac_clean_files_save=$ac_clean_files
3296 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3297 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3298 echo "$as_me: creating $CONFIG_STATUS" >&6;}
3299 cat >$CONFIG_STATUS <<_ACEOF
3300 #! $SHELL
3301 # Generated by $as_me.
3302 # Run this file to recreate the current configuration.
3303 # Compiler output produced by configure, useful for debugging
3304 # configure, is in config.log if it exists.
3305
3306 debug=false
3307 ac_cs_recheck=false
3308 ac_cs_silent=false
3309 SHELL=\${CONFIG_SHELL-$SHELL}
3310 _ACEOF
3311
3312 cat >>$CONFIG_STATUS <<\_ACEOF
3313 ## --------------------- ##
3314 ## M4sh Initialization.  ##
3315 ## --------------------- ##
3316
3317 # Be Bourne compatible
3318 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3319   emulate sh
3320   NULLCMD=:
3321   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3322   # is contrary to our usage.  Disable this feature.
3323   alias -g '${1+"$@"}'='"$@"'
3324 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3325   set -o posix
3326 fi
3327 DUALCASE=1; export DUALCASE # for MKS sh
3328
3329 # Support unset when possible.
3330 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3331   as_unset=unset
3332 else
3333   as_unset=false
3334 fi
3335
3336
3337 # Work around bugs in pre-3.0 UWIN ksh.
3338 $as_unset ENV MAIL MAILPATH
3339 PS1='$ '
3340 PS2='> '
3341 PS4='+ '
3342
3343 # NLS nuisances.
3344 for as_var in \
3345   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
3346   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
3347   LC_TELEPHONE LC_TIME
3348 do
3349   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
3350     eval $as_var=C; export $as_var
3351   else
3352     $as_unset $as_var
3353   fi
3354 done
3355
3356 # Required to use basename.
3357 if expr a : '\(a\)' >/dev/null 2>&1; then
3358   as_expr=expr
3359 else
3360   as_expr=false
3361 fi
3362
3363 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
3364   as_basename=basename
3365 else
3366   as_basename=false
3367 fi
3368
3369
3370 # Name of the executable.
3371 as_me=`$as_basename "$0" ||
3372 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3373          X"$0" : 'X\(//\)$' \| \
3374          X"$0" : 'X\(/\)$' \| \
3375          .     : '\(.\)' 2>/dev/null ||
3376 echo X/"$0" |
3377     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3378           /^X\/\(\/\/\)$/{ s//\1/; q; }
3379           /^X\/\(\/\).*/{ s//\1/; q; }
3380           s/.*/./; q'`
3381
3382
3383 # PATH needs CR, and LINENO needs CR and PATH.
3384 # Avoid depending upon Character Ranges.
3385 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3386 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3387 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3388 as_cr_digits='0123456789'
3389 as_cr_alnum=$as_cr_Letters$as_cr_digits
3390
3391 # The user is always right.
3392 if test "${PATH_SEPARATOR+set}" != set; then
3393   echo "#! /bin/sh" >conf$$.sh
3394   echo  "exit 0"   >>conf$$.sh
3395   chmod +x conf$$.sh
3396   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3397     PATH_SEPARATOR=';'
3398   else
3399     PATH_SEPARATOR=:
3400   fi
3401   rm -f conf$$.sh
3402 fi
3403
3404
3405   as_lineno_1=$LINENO
3406   as_lineno_2=$LINENO
3407   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3408   test "x$as_lineno_1" != "x$as_lineno_2" &&
3409   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
3410   # Find who we are.  Look in the path if we contain no path at all
3411   # relative or not.
3412   case $0 in
3413     *[\\/]* ) as_myself=$0 ;;
3414     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3415 for as_dir in $PATH
3416 do
3417   IFS=$as_save_IFS
3418   test -z "$as_dir" && as_dir=.
3419   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3420 done
3421
3422        ;;
3423   esac
3424   # We did not find ourselves, most probably we were run as `sh COMMAND'
3425   # in which case we are not to be found in the path.
3426   if test "x$as_myself" = x; then
3427     as_myself=$0
3428   fi
3429   if test ! -f "$as_myself"; then
3430     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
3431 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
3432    { (exit 1); exit 1; }; }
3433   fi
3434   case $CONFIG_SHELL in
3435   '')
3436     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3437 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
3438 do
3439   IFS=$as_save_IFS
3440   test -z "$as_dir" && as_dir=.
3441   for as_base in sh bash ksh sh5; do
3442          case $as_dir in
3443          /*)
3444            if ("$as_dir/$as_base" -c '
3445   as_lineno_1=$LINENO
3446   as_lineno_2=$LINENO
3447   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3448   test "x$as_lineno_1" != "x$as_lineno_2" &&
3449   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
3450              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
3451              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
3452              CONFIG_SHELL=$as_dir/$as_base
3453              export CONFIG_SHELL
3454              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
3455            fi;;
3456          esac
3457        done
3458 done
3459 ;;
3460   esac
3461
3462   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3463   # uniformly replaced by the line number.  The first 'sed' inserts a
3464   # line-number line before each line; the second 'sed' does the real
3465   # work.  The second script uses 'N' to pair each line-number line
3466   # with the numbered line, and appends trailing '-' during
3467   # substitution so that $LINENO is not a special case at line end.
3468   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3469   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
3470   sed '=' <$as_myself |
3471     sed '
3472       N
3473       s,$,-,
3474       : loop
3475       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
3476       t loop
3477       s,-$,,
3478       s,^['$as_cr_digits']*\n,,
3479     ' >$as_me.lineno &&
3480   chmod +x $as_me.lineno ||
3481     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
3482 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
3483    { (exit 1); exit 1; }; }
3484
3485   # Don't try to exec as it changes $[0], causing all sort of problems
3486   # (the dirname of $[0] is not the place where we might find the
3487   # original and so on.  Autoconf is especially sensible to this).
3488   . ./$as_me.lineno
3489   # Exit status is that of the last command.
3490   exit
3491 }
3492
3493
3494 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
3495   *c*,-n*) ECHO_N= ECHO_C='
3496 ' ECHO_T='      ' ;;
3497   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
3498   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
3499 esac
3500
3501 if expr a : '\(a\)' >/dev/null 2>&1; then
3502   as_expr=expr
3503 else
3504   as_expr=false
3505 fi
3506
3507 rm -f conf$$ conf$$.exe conf$$.file
3508 echo >conf$$.file
3509 if ln -s conf$$.file conf$$ 2>/dev/null; then
3510   # We could just check for DJGPP; but this test a) works b) is more generic
3511   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3512   if test -f conf$$.exe; then
3513     # Don't use ln at all; we don't have any links
3514     as_ln_s='cp -p'
3515   else
3516     as_ln_s='ln -s'
3517   fi
3518 elif ln conf$$.file conf$$ 2>/dev/null; then
3519   as_ln_s=ln
3520 else
3521   as_ln_s='cp -p'
3522 fi
3523 rm -f conf$$ conf$$.exe conf$$.file
3524
3525 if mkdir -p . 2>/dev/null; then
3526   as_mkdir_p=:
3527 else
3528   test -d ./-p && rmdir ./-p
3529   as_mkdir_p=false
3530 fi
3531
3532 as_executable_p="test -f"
3533
3534 # Sed expression to map a string onto a valid CPP name.
3535 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3536
3537 # Sed expression to map a string onto a valid variable name.
3538 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3539
3540
3541 # IFS
3542 # We need space, tab and new line, in precisely that order.
3543 as_nl='
3544 '
3545 IFS="   $as_nl"
3546
3547 # CDPATH.
3548 $as_unset CDPATH
3549
3550 exec 6>&1
3551
3552 # Open the log real soon, to keep \$[0] and so on meaningful, and to
3553 # report actual input values of CONFIG_FILES etc. instead of their
3554 # values after options handling.  Logging --version etc. is OK.
3555 exec 5>>config.log
3556 {
3557   echo
3558   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3559 ## Running $as_me. ##
3560 _ASBOX
3561 } >&5
3562 cat >&5 <<_CSEOF
3563
3564 This file was extended by $as_me, which was
3565 generated by GNU Autoconf 2.59.  Invocation command line was
3566
3567   CONFIG_FILES    = $CONFIG_FILES
3568   CONFIG_HEADERS  = $CONFIG_HEADERS
3569   CONFIG_LINKS    = $CONFIG_LINKS
3570   CONFIG_COMMANDS = $CONFIG_COMMANDS
3571   $ $0 $@
3572
3573 _CSEOF
3574 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
3575 echo >&5
3576 _ACEOF
3577
3578 # Files that config.status was made for.
3579 if test -n "$ac_config_files"; then
3580   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3581 fi
3582
3583 if test -n "$ac_config_headers"; then
3584   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3585 fi
3586
3587 if test -n "$ac_config_links"; then
3588   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3589 fi
3590
3591 if test -n "$ac_config_commands"; then
3592   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3593 fi
3594
3595 cat >>$CONFIG_STATUS <<\_ACEOF
3596
3597 ac_cs_usage="\
3598 \`$as_me' instantiates files from templates according to the
3599 current configuration.
3600
3601 Usage: $0 [OPTIONS] [FILE]...
3602
3603   -h, --help       print this help, then exit
3604   -V, --version    print version number, then exit
3605   -q, --quiet      do not print progress messages
3606   -d, --debug      don't remove temporary files
3607       --recheck    update $as_me by reconfiguring in the same conditions
3608   --file=FILE[:TEMPLATE]
3609                    instantiate the configuration file FILE
3610
3611 Configuration files:
3612 $config_files
3613
3614 Report bugs to <bug-autoconf@gnu.org>."
3615 _ACEOF
3616
3617 cat >>$CONFIG_STATUS <<_ACEOF
3618 ac_cs_version="\\
3619 config.status
3620 configured by $0, generated by GNU Autoconf 2.59,
3621   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
3622
3623 Copyright (C) 2003 Free Software Foundation, Inc.
3624 This config.status script is free software; the Free Software Foundation
3625 gives unlimited permission to copy, distribute and modify it."
3626 srcdir=$srcdir
3627 _ACEOF
3628
3629 cat >>$CONFIG_STATUS <<\_ACEOF
3630 # If no file are specified by the user, then we need to provide default
3631 # value.  By we need to know if files were specified by the user.
3632 ac_need_defaults=:
3633 while test $# != 0
3634 do
3635   case $1 in
3636   --*=*)
3637     ac_option=`expr "x$1" : 'x\([^=]*\)='`
3638     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
3639     ac_shift=:
3640     ;;
3641   -*)
3642     ac_option=$1
3643     ac_optarg=$2
3644     ac_shift=shift
3645     ;;
3646   *) # This is not an option, so the user has probably given explicit
3647      # arguments.
3648      ac_option=$1
3649      ac_need_defaults=false;;
3650   esac
3651
3652   case $ac_option in
3653   # Handling of the options.
3654 _ACEOF
3655 cat >>$CONFIG_STATUS <<\_ACEOF
3656   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3657     ac_cs_recheck=: ;;
3658   --version | --vers* | -V )
3659     echo "$ac_cs_version"; exit 0 ;;
3660   --he | --h)
3661     # Conflict between --help and --header
3662     { { echo "$as_me:$LINENO: error: ambiguous option: $1
3663 Try \`$0 --help' for more information." >&5
3664 echo "$as_me: error: ambiguous option: $1
3665 Try \`$0 --help' for more information." >&2;}
3666    { (exit 1); exit 1; }; };;
3667   --help | --hel | -h )
3668     echo "$ac_cs_usage"; exit 0 ;;
3669   --debug | --d* | -d )
3670     debug=: ;;
3671   --file | --fil | --fi | --f )
3672     $ac_shift
3673     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
3674     ac_need_defaults=false;;
3675   --header | --heade | --head | --hea )
3676     $ac_shift
3677     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
3678     ac_need_defaults=false;;
3679   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3680   | -silent | --silent | --silen | --sile | --sil | --si | --s)
3681     ac_cs_silent=: ;;
3682
3683   # This is an error.
3684   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
3685 Try \`$0 --help' for more information." >&5
3686 echo "$as_me: error: unrecognized option: $1
3687 Try \`$0 --help' for more information." >&2;}
3688    { (exit 1); exit 1; }; } ;;
3689
3690   *) ac_config_targets="$ac_config_targets $1" ;;
3691
3692   esac
3693   shift
3694 done
3695
3696 ac_configure_extra_args=
3697
3698 if $ac_cs_silent; then
3699   exec 6>/dev/null
3700   ac_configure_extra_args="$ac_configure_extra_args --silent"
3701 fi
3702
3703 _ACEOF
3704 cat >>$CONFIG_STATUS <<_ACEOF
3705 if \$ac_cs_recheck; then
3706   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
3707   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3708 fi
3709
3710 _ACEOF
3711
3712
3713
3714
3715
3716 cat >>$CONFIG_STATUS <<\_ACEOF
3717 for ac_config_target in $ac_config_targets
3718 do
3719   case "$ac_config_target" in
3720   # Handling of arguments.
3721   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3722   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
3723 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
3724    { (exit 1); exit 1; }; };;
3725   esac
3726 done
3727
3728 # If the user did not use the arguments to specify the items to instantiate,
3729 # then the envvar interface is used.  Set only those that are not.
3730 # We use the long form for the default assignment because of an extremely
3731 # bizarre bug on SunOS 4.1.3.
3732 if $ac_need_defaults; then
3733   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3734 fi
3735
3736 # Have a temporary directory for convenience.  Make it in the build tree
3737 # simply because there is no reason to put it here, and in addition,
3738 # creating and moving files from /tmp can sometimes cause problems.
3739 # Create a temporary directory, and hook for its removal unless debugging.
3740 $debug ||
3741 {
3742   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3743   trap '{ (exit 1); exit 1; }' 1 2 13 15
3744 }
3745
3746 # Create a (secure) tmp directory for tmp files.
3747
3748 {
3749   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
3750   test -n "$tmp" && test -d "$tmp"
3751 }  ||
3752 {
3753   tmp=./confstat$$-$RANDOM
3754   (umask 077 && mkdir $tmp)
3755 } ||
3756 {
3757    echo "$me: cannot create a temporary directory in ." >&2
3758    { (exit 1); exit 1; }
3759 }
3760
3761 _ACEOF
3762
3763 cat >>$CONFIG_STATUS <<_ACEOF
3764
3765 #
3766 # CONFIG_FILES section.
3767 #
3768
3769 # No need to generate the scripts if there are no CONFIG_FILES.
3770 # This happens for instance when ./config.status config.h
3771 if test -n "\$CONFIG_FILES"; then
3772   # Protect against being on the right side of a sed subst in config.status.
3773   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
3774    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
3775 s,@SHELL@,$SHELL,;t t
3776 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
3777 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
3778 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
3779 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
3780 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
3781 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
3782 s,@exec_prefix@,$exec_prefix,;t t
3783 s,@prefix@,$prefix,;t t
3784 s,@program_transform_name@,$program_transform_name,;t t
3785 s,@bindir@,$bindir,;t t
3786 s,@sbindir@,$sbindir,;t t
3787 s,@libexecdir@,$libexecdir,;t t
3788 s,@datadir@,$datadir,;t t
3789 s,@sysconfdir@,$sysconfdir,;t t
3790 s,@sharedstatedir@,$sharedstatedir,;t t
3791 s,@localstatedir@,$localstatedir,;t t
3792 s,@libdir@,$libdir,;t t
3793 s,@includedir@,$includedir,;t t
3794 s,@oldincludedir@,$oldincludedir,;t t
3795 s,@infodir@,$infodir,;t t
3796 s,@mandir@,$mandir,;t t
3797 s,@build_alias@,$build_alias,;t t
3798 s,@host_alias@,$host_alias,;t t
3799 s,@target_alias@,$target_alias,;t t
3800 s,@DEFS@,$DEFS,;t t
3801 s,@ECHO_C@,$ECHO_C,;t t
3802 s,@ECHO_N@,$ECHO_N,;t t
3803 s,@ECHO_T@,$ECHO_T,;t t
3804 s,@LIBS@,$LIBS,;t t
3805 s,@CC@,$CC,;t t
3806 s,@CFLAGS@,$CFLAGS,;t t
3807 s,@LDFLAGS@,$LDFLAGS,;t t
3808 s,@CPPFLAGS@,$CPPFLAGS,;t t
3809 s,@ac_ct_CC@,$ac_ct_CC,;t t
3810 s,@EXEEXT@,$EXEEXT,;t t
3811 s,@OBJEXT@,$OBJEXT,;t t
3812 s,@CPP@,$CPP,;t t
3813 s,@EGREP@,$EGREP,;t t
3814 s,@otp_cflags@,$otp_cflags,;t t
3815 s,@otp_ldflags@,$otp_ldflags,;t t
3816 s,@targetname@,$targetname,;t t
3817 s,@LIBOBJS@,$LIBOBJS,;t t
3818 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
3819 CEOF
3820
3821 _ACEOF
3822
3823   cat >>$CONFIG_STATUS <<\_ACEOF
3824   # Split the substitutions into bite-sized pieces for seds with
3825   # small command number limits, like on Digital OSF/1 and HP-UX.
3826   ac_max_sed_lines=48
3827   ac_sed_frag=1 # Number of current file.
3828   ac_beg=1 # First line for current file.
3829   ac_end=$ac_max_sed_lines # Line after last line for current file.
3830   ac_more_lines=:
3831   ac_sed_cmds=
3832   while $ac_more_lines; do
3833     if test $ac_beg -gt 1; then
3834       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3835     else
3836       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3837     fi
3838     if test ! -s $tmp/subs.frag; then
3839       ac_more_lines=false
3840     else
3841       # The purpose of the label and of the branching condition is to
3842       # speed up the sed processing (if there are no `@' at all, there
3843       # is no need to browse any of the substitutions).
3844       # These are the two extra sed commands mentioned above.
3845       (echo ':t
3846   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
3847       if test -z "$ac_sed_cmds"; then
3848         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
3849       else
3850         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
3851       fi
3852       ac_sed_frag=`expr $ac_sed_frag + 1`
3853       ac_beg=$ac_end
3854       ac_end=`expr $ac_end + $ac_max_sed_lines`
3855     fi
3856   done
3857   if test -z "$ac_sed_cmds"; then
3858     ac_sed_cmds=cat
3859   fi
3860 fi # test -n "$CONFIG_FILES"
3861
3862 _ACEOF
3863 cat >>$CONFIG_STATUS <<\_ACEOF
3864 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
3865   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3866   case $ac_file in
3867   - | *:- | *:-:* ) # input from stdin
3868         cat >$tmp/stdin
3869         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3870         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3871   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3872         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3873   * )   ac_file_in=$ac_file.in ;;
3874   esac
3875
3876   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
3877   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
3878 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3879          X"$ac_file" : 'X\(//\)[^/]' \| \
3880          X"$ac_file" : 'X\(//\)$' \| \
3881          X"$ac_file" : 'X\(/\)' \| \
3882          .     : '\(.\)' 2>/dev/null ||
3883 echo X"$ac_file" |
3884     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3885           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3886           /^X\(\/\/\)$/{ s//\1/; q; }
3887           /^X\(\/\).*/{ s//\1/; q; }
3888           s/.*/./; q'`
3889   { if $as_mkdir_p; then
3890     mkdir -p "$ac_dir"
3891   else
3892     as_dir="$ac_dir"
3893     as_dirs=
3894     while test ! -d "$as_dir"; do
3895       as_dirs="$as_dir $as_dirs"
3896       as_dir=`(dirname "$as_dir") 2>/dev/null ||
3897 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3898          X"$as_dir" : 'X\(//\)[^/]' \| \
3899          X"$as_dir" : 'X\(//\)$' \| \
3900          X"$as_dir" : 'X\(/\)' \| \
3901          .     : '\(.\)' 2>/dev/null ||
3902 echo X"$as_dir" |
3903     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3904           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3905           /^X\(\/\/\)$/{ s//\1/; q; }
3906           /^X\(\/\).*/{ s//\1/; q; }
3907           s/.*/./; q'`
3908     done
3909     test ! -n "$as_dirs" || mkdir $as_dirs
3910   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
3911 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
3912    { (exit 1); exit 1; }; }; }
3913
3914   ac_builddir=.
3915
3916 if test "$ac_dir" != .; then
3917   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
3918   # A "../" for each directory in $ac_dir_suffix.
3919   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
3920 else
3921   ac_dir_suffix= ac_top_builddir=
3922 fi
3923
3924 case $srcdir in
3925   .)  # No --srcdir option.  We are building in place.
3926     ac_srcdir=.
3927     if test -z "$ac_top_builddir"; then
3928        ac_top_srcdir=.
3929     else
3930        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
3931     fi ;;
3932   [\\/]* | ?:[\\/]* )  # Absolute path.
3933     ac_srcdir=$srcdir$ac_dir_suffix;
3934     ac_top_srcdir=$srcdir ;;
3935   *) # Relative path.
3936     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
3937     ac_top_srcdir=$ac_top_builddir$srcdir ;;
3938 esac
3939
3940 # Do not use `cd foo && pwd` to compute absolute paths, because
3941 # the directories may not exist.
3942 case `pwd` in
3943 .) ac_abs_builddir="$ac_dir";;
3944 *)
3945   case "$ac_dir" in
3946   .) ac_abs_builddir=`pwd`;;
3947   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
3948   *) ac_abs_builddir=`pwd`/"$ac_dir";;
3949   esac;;
3950 esac
3951 case $ac_abs_builddir in
3952 .) ac_abs_top_builddir=${ac_top_builddir}.;;
3953 *)
3954   case ${ac_top_builddir}. in
3955   .) ac_abs_top_builddir=$ac_abs_builddir;;
3956   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
3957   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
3958   esac;;
3959 esac
3960 case $ac_abs_builddir in
3961 .) ac_abs_srcdir=$ac_srcdir;;
3962 *)
3963   case $ac_srcdir in
3964   .) ac_abs_srcdir=$ac_abs_builddir;;
3965   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
3966   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
3967   esac;;
3968 esac
3969 case $ac_abs_builddir in
3970 .) ac_abs_top_srcdir=$ac_top_srcdir;;
3971 *)
3972   case $ac_top_srcdir in
3973   .) ac_abs_top_srcdir=$ac_abs_builddir;;
3974   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
3975   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
3976   esac;;
3977 esac
3978
3979
3980
3981   if test x"$ac_file" != x-; then
3982     { echo "$as_me:$LINENO: creating $ac_file" >&5
3983 echo "$as_me: creating $ac_file" >&6;}
3984     rm -f "$ac_file"
3985   fi
3986   # Let's still pretend it is `configure' which instantiates (i.e., don't
3987   # use $as_me), people would be surprised to read:
3988   #    /* config.h.  Generated by config.status.  */
3989   if test x"$ac_file" = x-; then
3990     configure_input=
3991   else
3992     configure_input="$ac_file.  "
3993   fi
3994   configure_input=$configure_input"Generated from `echo $ac_file_in |
3995                                      sed 's,.*/,,'` by configure."
3996
3997   # First look for the input files in the build tree, otherwise in the
3998   # src tree.
3999   ac_file_inputs=`IFS=:
4000     for f in $ac_file_in; do
4001       case $f in
4002       -) echo $tmp/stdin ;;
4003       [\\/$]*)
4004          # Absolute (can't be DOS-style, as IFS=:)
4005          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4006 echo "$as_me: error: cannot find input file: $f" >&2;}
4007    { (exit 1); exit 1; }; }
4008          echo "$f";;
4009       *) # Relative
4010          if test -f "$f"; then
4011            # Build tree
4012            echo "$f"
4013          elif test -f "$srcdir/$f"; then
4014            # Source tree
4015            echo "$srcdir/$f"
4016          else
4017            # /dev/null tree
4018            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4019 echo "$as_me: error: cannot find input file: $f" >&2;}
4020    { (exit 1); exit 1; }; }
4021          fi;;
4022       esac
4023     done` || { (exit 1); exit 1; }
4024 _ACEOF
4025 cat >>$CONFIG_STATUS <<_ACEOF
4026   sed "$ac_vpsub
4027 $extrasub
4028 _ACEOF
4029 cat >>$CONFIG_STATUS <<\_ACEOF
4030 :t
4031 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4032 s,@configure_input@,$configure_input,;t t
4033 s,@srcdir@,$ac_srcdir,;t t
4034 s,@abs_srcdir@,$ac_abs_srcdir,;t t
4035 s,@top_srcdir@,$ac_top_srcdir,;t t
4036 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4037 s,@builddir@,$ac_builddir,;t t
4038 s,@abs_builddir@,$ac_abs_builddir,;t t
4039 s,@top_builddir@,$ac_top_builddir,;t t
4040 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
4041 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4042   rm -f $tmp/stdin
4043   if test x"$ac_file" != x-; then
4044     mv $tmp/out $ac_file
4045   else
4046     cat $tmp/out
4047     rm -f $tmp/out
4048   fi
4049
4050 done
4051 _ACEOF
4052
4053 cat >>$CONFIG_STATUS <<\_ACEOF
4054
4055 { (exit 0); exit 0; }
4056 _ACEOF
4057 chmod +x $CONFIG_STATUS
4058 ac_clean_files=$ac_clean_files_save
4059
4060
4061 # configure is writing to config.log, and then calls config.status.
4062 # config.status does its own redirection, appending to config.log.
4063 # Unfortunately, on DOS this fails, as config.log is still kept open
4064 # by configure, so config.status won't be able to write to it; its
4065 # output is simply discarded.  So we exec the FD to /dev/null,
4066 # effectively closing config.log, so it can be properly (re)opened and
4067 # appended to by config.status.  When coming back to configure, we
4068 # need to make the FD available again.
4069 if test "$no_create" != yes; then
4070   ac_cs_success=:
4071   ac_config_status_args=
4072   test "$silent" = yes &&
4073     ac_config_status_args="$ac_config_status_args --quiet"
4074   exec 5>/dev/null
4075   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4076   exec 5>>config.log
4077   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4078   # would make configure fail if this is the last instruction.
4079   $ac_cs_success || { (exit 1); exit 1; }
4080 fi
4081   # keep this!  Don't change!