OSDN Git Service

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