OSDN Git Service

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