]> git.ipfire.org Git - thirdparty/gcc.git/blame - libgomp/configure
re PR tree-optimization/25860 (ice with -g -O2 -fPIC)
[thirdparty/gcc.git] / libgomp / configure
CommitLineData
953ff289
DN
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
13if 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+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for 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
43do
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
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo 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.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if 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
97fi
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
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
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
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
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
152done
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
187case `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= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if 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
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_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.
231as_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.
236as_nl='
237'
238IFS=" $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.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
254ac_default_prefix=/usr/local
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${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.
268PACKAGE_NAME='GNU OpenMP Runtime Library'
269PACKAGE_TARNAME='libgomp'
270PACKAGE_VERSION='1.0'
271PACKAGE_STRING='GNU OpenMP Runtime Library 1.0'
272PACKAGE_BUGREPORT=''
273
274# Factoring default headers for most tests.
275ac_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
311ac_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'
312ac_subst_files=''
313
314# Initialize some variables set by options.
315ac_init_help=
316ac_init_version=false
317# The variables have the same names as the options, with
318# dashes changed to underlines.
319cache_file=/dev/null
320exec_prefix=NONE
321no_create=
322no_recursion=
323prefix=NONE
324program_prefix=NONE
325program_suffix=NONE
326program_transform_name=s,x,x,
327silent=
328site=
329srcdir=
330verbose=
331x_includes=NONE
332x_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.
339bindir='${exec_prefix}/bin'
340sbindir='${exec_prefix}/sbin'
341libexecdir='${exec_prefix}/libexec'
342datadir='${prefix}/share'
343sysconfdir='${prefix}/etc'
344sharedstatedir='${prefix}/com'
345localstatedir='${prefix}/var'
346libdir='${exec_prefix}/lib'
347includedir='${prefix}/include'
348oldincludedir='/usr/include'
349infodir='${prefix}/info'
350mandir='${prefix}/man'
351
352ac_prev=
353for ac_option
354do
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
626Try \`$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
649done
650
651if 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; }; }
655fi
656
657# Be sure to have absolute paths.
658for ac_var in exec_prefix prefix
659do
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
666done
667
668# Be sure to have absolute paths.
669for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
671do
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
678done
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.
683build=$build_alias
684host=$host_alias
685target=$target_alias
686
687# FIXME: To remove some day.
688if 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
696fi
697
698ac_tool_prefix=
699test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701test "$silent" = yes && exec 6>/dev/null
702
703
704# Find the source files, if location was not specified.
705if 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 ||
714echo 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
724else
725 ac_srcdir_defaulted=no
726fi
727if 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
735fi
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; }; }
739srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740ac_env_build_alias_set=${build_alias+set}
741ac_env_build_alias_value=$build_alias
742ac_cv_env_build_alias_set=${build_alias+set}
743ac_cv_env_build_alias_value=$build_alias
744ac_env_host_alias_set=${host_alias+set}
745ac_env_host_alias_value=$host_alias
746ac_cv_env_host_alias_set=${host_alias+set}
747ac_cv_env_host_alias_value=$host_alias
748ac_env_target_alias_set=${target_alias+set}
749ac_env_target_alias_value=$target_alias
750ac_cv_env_target_alias_set=${target_alias+set}
751ac_cv_env_target_alias_value=$target_alias
752ac_env_FC_set=${FC+set}
753ac_env_FC_value=$FC
754ac_cv_env_FC_set=${FC+set}
755ac_cv_env_FC_value=$FC
756ac_env_FCFLAGS_set=${FCFLAGS+set}
757ac_env_FCFLAGS_value=$FCFLAGS
758ac_cv_env_FCFLAGS_set=${FCFLAGS+set}
759ac_cv_env_FCFLAGS_value=$FCFLAGS
760ac_env_LDFLAGS_set=${LDFLAGS+set}
761ac_env_LDFLAGS_value=$LDFLAGS
762ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763ac_cv_env_LDFLAGS_value=$LDFLAGS
764ac_env_CPP_set=${CPP+set}
765ac_env_CPP_value=$CPP
766ac_cv_env_CPP_set=${CPP+set}
767ac_cv_env_CPP_value=$CPP
768ac_env_CPPFLAGS_set=${CPPFLAGS+set}
769ac_env_CPPFLAGS_value=$CPPFLAGS
770ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
771ac_cv_env_CPPFLAGS_value=$CPPFLAGS
772
773#
774# Report the --help message.
775#
776if 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
782Usage: $0 [OPTION]... [VAR=VALUE]...
783
784To assign environment variables (e.g., CC, CFLAGS...), specify them as
785VAR=VALUE. See below for descriptions of some of the useful variables.
786
787Defaults for the options are specified in brackets.
788
789Configuration:
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
803Installation 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
809By default, \`make install' will install all the files in
810\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
811an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812for instance \`--prefix=\$HOME'.
813
814For better control, use the options below.
815
816Fine 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
833Program 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
838System 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
843fi
844
845if 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
851Optional 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
871Optional 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
877Some 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
888Use these variables to override the choices made by `configure' or to help
889it to find libraries and programs with nonstandard names/locations.
890
891_ACEOF
892fi
893
894if 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
901if 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'`
905else
906 ac_dir_suffix= ac_top_builddir=
907fi
908
909case $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 ;;
923esac
924
925# Do not use `cd foo && pwd` to compute absolute paths, because
926# the directories may not exist.
927case `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;;
935esac
936case $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;;
944esac
945case $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;;
953esac
954case $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;;
962esac
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
981fi
982
983test -n "$ac_init_help" && exit 0
984if $ac_init_version; then
985 cat <<\_ACEOF
986GNU OpenMP Runtime Library configure 1.0
987generated by GNU Autoconf 2.59
988
989Copyright (C) 2003 Free Software Foundation, Inc.
990This configure script is free software; the Free Software Foundation
991gives unlimited permission to copy, distribute and modify it.
992_ACEOF
993 exit 0
994fi
995exec 5>config.log
996cat >&5 <<_ACEOF
997This file contains any messages produced by compilers while
998running configure, to aid debugging if configure makes a mistake.
999
1000It was created by GNU OpenMP Runtime Library $as_me 1.0, which was
1001generated by GNU Autoconf 2.59. Invocation command line was
1002
1003 $ $0 $@
1004
1005_ACEOF
1006{
1007cat <<_ASUNAME
1008## --------- ##
1009## Platform. ##
1010## --------- ##
1011
1012hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1013uname -m = `(uname -m) 2>/dev/null || echo unknown`
1014uname -r = `(uname -r) 2>/dev/null || echo unknown`
1015uname -s = `(uname -s) 2>/dev/null || echo unknown`
1016uname -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`
1024hostinfo = `(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
1031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1032for as_dir in $PATH
1033do
1034 IFS=$as_save_IFS
1035 test -z "$as_dir" && as_dir=.
1036 echo "PATH: $as_dir"
1037done
1038
1039} >&5
1040
1041cat >&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.
1056ac_configure_args=
1057ac_configure_args0=
1058ac_configure_args1=
1059ac_sep=
1060ac_must_keep_next=false
1061for ac_pass in 1 2
1062do
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
1098done
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.
1107trap '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
1181for ac_signal in 1 2 13 15; do
1182 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1183done
1184ac_signal=0
1185
1186# confdefs.h avoids OS command line length limits that DEFS can exceed.
1187rm -rf conftest* confdefs.h
1188# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1189echo >confdefs.h
1190
1191# Predefined preprocessor variables.
1192
1193cat >>confdefs.h <<_ACEOF
1194#define PACKAGE_NAME "$PACKAGE_NAME"
1195_ACEOF
1196
1197
1198cat >>confdefs.h <<_ACEOF
1199#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1200_ACEOF
1201
1202
1203cat >>confdefs.h <<_ACEOF
1204#define PACKAGE_VERSION "$PACKAGE_VERSION"
1205_ACEOF
1206
1207
1208cat >>confdefs.h <<_ACEOF
1209#define PACKAGE_STRING "$PACKAGE_STRING"
1210_ACEOF
1211
1212
1213cat >>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.
1220if 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
1226fi
1227for 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
1230echo "$as_me: loading site script $ac_site_file" >&6;}
1231 sed 's/^/| /' "$ac_site_file" >&5
1232 . "$ac_site_file"
1233 fi
1234done
1235
1236if 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
1241echo "$as_me: loading cache $cache_file" >&6;}
1242 case $cache_file in
1243 [\\/]* | ?:[\\/]* ) . $cache_file;;
1244 *) . ./$cache_file;;
1245 esac
1246 fi
1247else
1248 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1249echo "$as_me: creating cache $cache_file" >&6;}
1250 >$cache_file
1251fi
1252
1253# Check that the precious variables saved in the cache have kept the same
1254# value.
1255ac_cache_corrupted=false
1256for 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
1265echo "$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
1269echo "$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
1275echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1276 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1277echo "$as_me: former value: $ac_old_val" >&2;}
1278 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1279echo "$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
1295done
1296if $ac_cache_corrupted; then
1297 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1298echo "$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
1300echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1301 { (exit 1); exit 1; }; }
1302fi
1303
1304ac_ext=c
1305ac_cpp='$CPP $CPPFLAGS'
1306ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1307ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1308ac_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
1343echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
1344echo $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.
1346if 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
1352echo "$as_me: error: Unknown argument to enable/disable version-specific-runtime-libs" >&2;}
1353 { (exit 1); exit 1; }; } ;;
1354 esac
1355
1356else
1357 enable_version_specific_runtime_libs=no
1358fi;
1359
1360echo "$as_me:$LINENO: result: $enable_version_specific_runtime_libs" >&5
1361echo "${ECHO_T}$enable_version_specific_runtime_libs" >&6
1362
1363echo "$as_me:$LINENO: checking for --enable-linux-futex" >&5
1364echo $ECHO_N "checking for --enable-linux-futex... $ECHO_C" >&6
1365 # Check whether --enable-linux-futex or --disable-linux-futex was given.
1366if 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
1372echo "$as_me: error: Argument to enable/disable linux-futex must be yes or no" >&2;}
1373 { (exit 1); exit 1; }; } ;;
1374 esac
1375
1376else
1377 enable_linux_futex=yes
1378fi;
1379
1380echo "$as_me:$LINENO: result: $enable_linux_futex" >&5
1381echo "${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
1401ac_aux_dir=
1402for 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
1416done
1417if test -z "$ac_aux_dir"; then
1418 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1419echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1420 { (exit 1); exit 1; }; }
1421fi
1422ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1423ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1424ac_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
1429echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1430 { (exit 1); exit 1; }; }
1431
1432echo "$as_me:$LINENO: checking build system type" >&5
1433echo $ECHO_N "checking build system type... $ECHO_C" >&6
1434if test "${ac_cv_build+set}" = set; then
1435 echo $ECHO_N "(cached) $ECHO_C" >&6
1436else
1437 ac_cv_build_alias=$build_alias
1438test -z "$ac_cv_build_alias" &&
1439 ac_cv_build_alias=`$ac_config_guess`
1440test -z "$ac_cv_build_alias" &&
1441 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1442echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1443 { (exit 1); exit 1; }; }
1444ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1445 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1446echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1447 { (exit 1); exit 1; }; }
1448
1449fi
1450echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1451echo "${ECHO_T}$ac_cv_build" >&6
1452build=$ac_cv_build
1453build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1454build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1455build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1456
1457
1458echo "$as_me:$LINENO: checking host system type" >&5
1459echo $ECHO_N "checking host system type... $ECHO_C" >&6
1460if test "${ac_cv_host+set}" = set; then
1461 echo $ECHO_N "(cached) $ECHO_C" >&6
1462else
1463 ac_cv_host_alias=$host_alias
1464test -z "$ac_cv_host_alias" &&
1465 ac_cv_host_alias=$ac_cv_build_alias
1466ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1467 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1468echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1469 { (exit 1); exit 1; }; }
1470
1471fi
1472echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1473echo "${ECHO_T}$ac_cv_host" >&6
1474host=$ac_cv_host
1475host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1476host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1477host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1478
1479
1480echo "$as_me:$LINENO: checking target system type" >&5
1481echo $ECHO_N "checking target system type... $ECHO_C" >&6
1482if test "${ac_cv_target+set}" = set; then
1483 echo $ECHO_N "(cached) $ECHO_C" >&6
1484else
1485 ac_cv_target_alias=$target_alias
1486test "x$ac_cv_target_alias" = "x" &&
1487 ac_cv_target_alias=$ac_cv_host_alias
1488ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1489 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1490echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1491 { (exit 1); exit 1; }; }
1492
1493fi
1494echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1495echo "${ECHO_T}$ac_cv_target" >&6
1496target=$ac_cv_target
1497target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1498target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1499target_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.
1504test -n "$target_alias" &&
1505 test "$program_prefix$program_suffix$program_transform_name" = \
1506 NONENONEs,x,x, &&
1507 program_prefix=${target_alias}-
1508target_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.
1522am__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.
1536echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1537echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1538if test -z "$INSTALL"; then
1539if test "${ac_cv_path_install+set}" = set; then
1540 echo $ECHO_N "(cached) $ECHO_C" >&6
1541else
1542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1543for as_dir in $PATH
1544do
1545 IFS=$as_save_IFS
1546 test -z "$as_dir" && as_dir=.
1547 # Account for people who put trailing slashes in PATH elements.
1548case $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 ;;
1576esac
1577done
1578
1579
1580fi
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
1590fi
1591echo "$as_me:$LINENO: result: $INSTALL" >&5
1592echo "${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.
1596test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1597
1598test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1599
1600test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1601
1602echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1603echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1604# Just in case
1605sleep 1
1606echo 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).
1612if (
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
1627alias in your environment" >&5
1628echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1629alias in your environment" >&2;}
1630 { (exit 1); exit 1; }; }
1631 fi
1632
1633 test "$2" = conftest.file
1634 )
1635then
1636 # Ok.
1637 :
1638else
1639 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1640Check your system clock" >&5
1641echo "$as_me: error: newly created file is older than distributed files!
1642Check your system clock" >&2;}
1643 { (exit 1); exit 1; }; }
1644fi
1645echo "$as_me:$LINENO: result: yes" >&5
1646echo "${ECHO_T}yes" >&6
1647test "$program_prefix" != NONE &&
1648 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1649# Use a double $ so make ignores it.
1650test "$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.
1654cat <<\_ACEOF >conftest.sed
1655s/[\\$]/&&/g;s/;s,x,x,$//
1656_ACEOF
1657program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1658rm conftest.sed
1659
1660# expand $ac_aux_dir to an absolute path
1661am_aux_dir=`cd $ac_aux_dir && pwd`
1662
1663test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1664# Use eval to expand $SHELL
1665if eval "$MISSING --run true"; then
1666 am_missing_run="$MISSING --run "
1667else
1668 am_missing_run=
1669 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1670echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1671fi
1672
1673if 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 --'
1689else
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
1704fi
1705
1706for ac_prog in gawk mawk nawk awk
1707do
1708 # Extract the first word of "$ac_prog", so it can be a program name with args.
1709set dummy $ac_prog; ac_word=$2
1710echo "$as_me:$LINENO: checking for $ac_word" >&5
1711echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1712if test "${ac_cv_prog_AWK+set}" = set; then
1713 echo $ECHO_N "(cached) $ECHO_C" >&6
1714else
1715 if test -n "$AWK"; then
1716 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1717else
1718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1719for as_dir in $PATH
1720do
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
1729done
1730done
1731
1732fi
1733fi
1734AWK=$ac_cv_prog_AWK
1735if test -n "$AWK"; then
1736 echo "$as_me:$LINENO: result: $AWK" >&5
1737echo "${ECHO_T}$AWK" >&6
1738else
1739 echo "$as_me:$LINENO: result: no" >&5
1740echo "${ECHO_T}no" >&6
1741fi
1742
1743 test -n "$AWK" && break
1744done
1745
1746echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1747echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1748set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1749if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1750 echo $ECHO_N "(cached) $ECHO_C" >&6
1751else
1752 cat >conftest.make <<\_ACEOF
1753all:
1754 @echo 'ac_maketemp="$(MAKE)"'
1755_ACEOF
1756# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1757eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1758if test -n "$ac_maketemp"; then
1759 eval ac_cv_prog_make_${ac_make}_set=yes
1760else
1761 eval ac_cv_prog_make_${ac_make}_set=no
1762fi
1763rm -f conftest.make
1764fi
1765if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1766 echo "$as_me:$LINENO: result: yes" >&5
1767echo "${ECHO_T}yes" >&6
1768 SET_MAKE=
1769else
1770 echo "$as_me:$LINENO: result: no" >&5
1771echo "${ECHO_T}no" >&6
1772 SET_MAKE="MAKE=${MAKE-make}"
1773fi
1774
1775rm -rf .tst 2>/dev/null
1776mkdir .tst 2>/dev/null
1777if test -d .tst; then
1778 am__leading_dot=.
1779else
1780 am__leading_dot=_
1781fi
1782rmdir .tst 2>/dev/null
1783
1784# test to see if srcdir already configured
1785if 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
1788echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1789 { (exit 1); exit 1; }; }
1790fi
1791
1792# test whether we have cygpath
1793if 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
1799fi
1800
1801
1802# Define the identity of the package.
1803 PACKAGE='libgomp'
1804 VERSION='1.0'
1805
1806
1807cat >>confdefs.h <<_ACEOF
1808#define PACKAGE "$PACKAGE"
1809_ACEOF
1810
1811
1812cat >>confdefs.h <<_ACEOF
1813#define VERSION "$VERSION"
1814_ACEOF
1815
1816# Some tools Automake needs.
1817
1818ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1819
1820
1821AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1822
1823
1824AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1825
1826
1827AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1828
1829
1830MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1831
1832install_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.
1838if 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.
1841set dummy ${ac_tool_prefix}strip; ac_word=$2
1842echo "$as_me:$LINENO: checking for $ac_word" >&5
1843echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1844if test "${ac_cv_prog_STRIP+set}" = set; then
1845 echo $ECHO_N "(cached) $ECHO_C" >&6
1846else
1847 if test -n "$STRIP"; then
1848 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1849else
1850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1851for as_dir in $PATH
1852do
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
1861done
1862done
1863
1864fi
1865fi
1866STRIP=$ac_cv_prog_STRIP
1867if test -n "$STRIP"; then
1868 echo "$as_me:$LINENO: result: $STRIP" >&5
1869echo "${ECHO_T}$STRIP" >&6
1870else
1871 echo "$as_me:$LINENO: result: no" >&5
1872echo "${ECHO_T}no" >&6
1873fi
1874
1875fi
1876if 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.
1879set dummy strip; ac_word=$2
1880echo "$as_me:$LINENO: checking for $ac_word" >&5
1881echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1882if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1883 echo $ECHO_N "(cached) $ECHO_C" >&6
1884else
1885 if test -n "$ac_ct_STRIP"; then
1886 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1887else
1888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1889for as_dir in $PATH
1890do
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
1899done
1900done
1901
1902 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1903fi
1904fi
1905ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1906if test -n "$ac_ct_STRIP"; then
1907 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1908echo "${ECHO_T}$ac_ct_STRIP" >&6
1909else
1910 echo "$as_me:$LINENO: result: no" >&5
1911echo "${ECHO_T}no" >&6
1912fi
1913
1914 STRIP=$ac_ct_STRIP
1915else
1916 STRIP="$ac_cv_prog_STRIP"
1917fi
1918
1919fi
1920INSTALL_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
1926AMTAR=${AMTAR-"${am_missing_run}tar"}
1927
1928am__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.
1936if 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
1942echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1943 { (exit 1); exit 1; }; } ;;
1944 esac
1945else
1946 multilib=yes
1947fi;
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
1953if 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
1959else
1960 multi_basedir="$srcdir/.."
1961fi
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
1969case ${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 ;;
1993esac
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
2005ac_ext=c
2006ac_cpp='$CPP $CPPFLAGS'
2007ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2008ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2009ac_compiler_gnu=$ac_cv_c_compiler_gnu
2010if 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.
2012set dummy ${ac_tool_prefix}gcc; ac_word=$2
2013echo "$as_me:$LINENO: checking for $ac_word" >&5
2014echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2015if test "${ac_cv_prog_CC+set}" = set; then
2016 echo $ECHO_N "(cached) $ECHO_C" >&6
2017else
2018 if test -n "$CC"; then
2019 ac_cv_prog_CC="$CC" # Let the user override the test.
2020else
2021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2022for as_dir in $PATH
2023do
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
2032done
2033done
2034
2035fi
2036fi
2037CC=$ac_cv_prog_CC
2038if test -n "$CC"; then
2039 echo "$as_me:$LINENO: result: $CC" >&5
2040echo "${ECHO_T}$CC" >&6
2041else
2042 echo "$as_me:$LINENO: result: no" >&5
2043echo "${ECHO_T}no" >&6
2044fi
2045
2046fi
2047if 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.
2050set dummy gcc; ac_word=$2
2051echo "$as_me:$LINENO: checking for $ac_word" >&5
2052echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2053if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2054 echo $ECHO_N "(cached) $ECHO_C" >&6
2055else
2056 if test -n "$ac_ct_CC"; then
2057 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2058else
2059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2060for as_dir in $PATH
2061do
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
2070done
2071done
2072
2073fi
2074fi
2075ac_ct_CC=$ac_cv_prog_ac_ct_CC
2076if test -n "$ac_ct_CC"; then
2077 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2078echo "${ECHO_T}$ac_ct_CC" >&6
2079else
2080 echo "$as_me:$LINENO: result: no" >&5
2081echo "${ECHO_T}no" >&6
2082fi
2083
2084 CC=$ac_ct_CC
2085else
2086 CC="$ac_cv_prog_CC"
2087fi
2088
2089if 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.
2092set dummy ${ac_tool_prefix}cc; ac_word=$2
2093echo "$as_me:$LINENO: checking for $ac_word" >&5
2094echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2095if test "${ac_cv_prog_CC+set}" = set; then
2096 echo $ECHO_N "(cached) $ECHO_C" >&6
2097else
2098 if test -n "$CC"; then
2099 ac_cv_prog_CC="$CC" # Let the user override the test.
2100else
2101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2102for as_dir in $PATH
2103do
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
2112done
2113done
2114
2115fi
2116fi
2117CC=$ac_cv_prog_CC
2118if test -n "$CC"; then
2119 echo "$as_me:$LINENO: result: $CC" >&5
2120echo "${ECHO_T}$CC" >&6
2121else
2122 echo "$as_me:$LINENO: result: no" >&5
2123echo "${ECHO_T}no" >&6
2124fi
2125
2126fi
2127if 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.
2130set dummy cc; ac_word=$2
2131echo "$as_me:$LINENO: checking for $ac_word" >&5
2132echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2133if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2134 echo $ECHO_N "(cached) $ECHO_C" >&6
2135else
2136 if test -n "$ac_ct_CC"; then
2137 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2138else
2139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2140for as_dir in $PATH
2141do
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
2150done
2151done
2152
2153fi
2154fi
2155ac_ct_CC=$ac_cv_prog_ac_ct_CC
2156if test -n "$ac_ct_CC"; then
2157 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2158echo "${ECHO_T}$ac_ct_CC" >&6
2159else
2160 echo "$as_me:$LINENO: result: no" >&5
2161echo "${ECHO_T}no" >&6
2162fi
2163
2164 CC=$ac_ct_CC
2165else
2166 CC="$ac_cv_prog_CC"
2167fi
2168
2169fi
2170if test -z "$CC"; then
2171 # Extract the first word of "cc", so it can be a program name with args.
2172set dummy cc; ac_word=$2
2173echo "$as_me:$LINENO: checking for $ac_word" >&5
2174echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2175if test "${ac_cv_prog_CC+set}" = set; then
2176 echo $ECHO_N "(cached) $ECHO_C" >&6
2177else
2178 if test -n "$CC"; then
2179 ac_cv_prog_CC="$CC" # Let the user override the test.
2180else
2181 ac_prog_rejected=no
2182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2183for as_dir in $PATH
2184do
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
2197done
2198done
2199
2200if 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
2211fi
2212fi
2213fi
2214CC=$ac_cv_prog_CC
2215if test -n "$CC"; then
2216 echo "$as_me:$LINENO: result: $CC" >&5
2217echo "${ECHO_T}$CC" >&6
2218else
2219 echo "$as_me:$LINENO: result: no" >&5
2220echo "${ECHO_T}no" >&6
2221fi
2222
2223fi
2224if 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.
2229set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2230echo "$as_me:$LINENO: checking for $ac_word" >&5
2231echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2232if test "${ac_cv_prog_CC+set}" = set; then
2233 echo $ECHO_N "(cached) $ECHO_C" >&6
2234else
2235 if test -n "$CC"; then
2236 ac_cv_prog_CC="$CC" # Let the user override the test.
2237else
2238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2239for as_dir in $PATH
2240do
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
2249done
2250done
2251
2252fi
2253fi
2254CC=$ac_cv_prog_CC
2255if test -n "$CC"; then
2256 echo "$as_me:$LINENO: result: $CC" >&5
2257echo "${ECHO_T}$CC" >&6
2258else
2259 echo "$as_me:$LINENO: result: no" >&5
2260echo "${ECHO_T}no" >&6
2261fi
2262
2263 test -n "$CC" && break
2264 done
2265fi
2266if test -z "$CC"; then
2267 ac_ct_CC=$CC
2268 for ac_prog in cl
2269do
2270 # Extract the first word of "$ac_prog", so it can be a program name with args.
2271set dummy $ac_prog; ac_word=$2
2272echo "$as_me:$LINENO: checking for $ac_word" >&5
2273echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2274if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2275 echo $ECHO_N "(cached) $ECHO_C" >&6
2276else
2277 if test -n "$ac_ct_CC"; then
2278 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2279else
2280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2281for as_dir in $PATH
2282do
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
2291done
2292done
2293
2294fi
2295fi
2296ac_ct_CC=$ac_cv_prog_ac_ct_CC
2297if test -n "$ac_ct_CC"; then
2298 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2299echo "${ECHO_T}$ac_ct_CC" >&6
2300else
2301 echo "$as_me:$LINENO: result: no" >&5
2302echo "${ECHO_T}no" >&6
2303fi
2304
2305 test -n "$ac_ct_CC" && break
2306done
2307
2308 CC=$ac_ct_CC
2309fi
2310
2311fi
2312
2313
2314test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2315See \`config.log' for more details." >&5
2316echo "$as_me: error: no acceptable C compiler found in \$PATH
2317See \`config.log' for more details." >&2;}
2318 { (exit 1); exit 1; }; }
2319
2320# Provide some information about the compiler.
2321echo "$as_me:$LINENO:" \
2322 "checking for C compiler version" >&5
2323ac_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
2340cat >conftest.$ac_ext <<_ACEOF
2341/* confdefs.h. */
2342_ACEOF
2343cat confdefs.h >>conftest.$ac_ext
2344cat >>conftest.$ac_ext <<_ACEOF
2345/* end confdefs.h. */
2346
2347int
2348main ()
2349{
2350
2351 ;
2352 return 0;
2353}
2354_ACEOF
2355ac_clean_files_save=$ac_clean_files
2356ac_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.
2360echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2361echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2362ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2363if { (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.
2374ac_cv_exeext=
2375# b.out is created by i960 compilers.
2376for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2377do
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
2399done
2400else
2401 echo "$as_me: failed program was:" >&5
2402sed 's/^/| /' conftest.$ac_ext >&5
2403
2404{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2405See \`config.log' for more details." >&5
2406echo "$as_me: error: C compiler cannot create executables
2407See \`config.log' for more details." >&2;}
2408 { (exit 77); exit 77; }; }
2409fi
2410
2411ac_exeext=$ac_cv_exeext
2412echo "$as_me:$LINENO: result: $ac_file" >&5
2413echo "${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.
2417echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2418echo $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.
2421if 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.
2434If you meant to cross compile, use \`--host'.
2435See \`config.log' for more details." >&5
2436echo "$as_me: error: cannot run C compiled programs.
2437If you meant to cross compile, use \`--host'.
2438See \`config.log' for more details." >&2;}
2439 { (exit 1); exit 1; }; }
2440 fi
2441 fi
2442fi
2443echo "$as_me:$LINENO: result: yes" >&5
2444echo "${ECHO_T}yes" >&6
2445
2446rm -f a.out a.exe conftest$ac_cv_exeext b.out
2447ac_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.
2450echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2451echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2452echo "$as_me:$LINENO: result: $cross_compiling" >&5
2453echo "${ECHO_T}$cross_compiling" >&6
2454
2455echo "$as_me:$LINENO: checking for suffix of executables" >&5
2456echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2457if { (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'.
2466for 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
2475done
2476else
2477 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2478See \`config.log' for more details." >&5
2479echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2480See \`config.log' for more details." >&2;}
2481 { (exit 1); exit 1; }; }
2482fi
2483
2484rm -f conftest$ac_cv_exeext
2485echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2486echo "${ECHO_T}$ac_cv_exeext" >&6
2487
2488rm -f conftest.$ac_ext
2489EXEEXT=$ac_cv_exeext
2490ac_exeext=$EXEEXT
2491echo "$as_me:$LINENO: checking for suffix of object files" >&5
2492echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2493if test "${ac_cv_objext+set}" = set; then
2494 echo $ECHO_N "(cached) $ECHO_C" >&6
2495else
2496 cat >conftest.$ac_ext <<_ACEOF
2497/* confdefs.h. */
2498_ACEOF
2499cat confdefs.h >>conftest.$ac_ext
2500cat >>conftest.$ac_ext <<_ACEOF
2501/* end confdefs.h. */
2502
2503int
2504main ()
2505{
2506
2507 ;
2508 return 0;
2509}
2510_ACEOF
2511rm -f conftest.o conftest.obj
2512if { (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
2523done
2524else
2525 echo "$as_me: failed program was:" >&5
2526sed 's/^/| /' conftest.$ac_ext >&5
2527
2528{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2529See \`config.log' for more details." >&5
2530echo "$as_me: error: cannot compute suffix of object files: cannot compile
2531See \`config.log' for more details." >&2;}
2532 { (exit 1); exit 1; }; }
2533fi
2534
2535rm -f conftest.$ac_cv_objext conftest.$ac_ext
2536fi
2537echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2538echo "${ECHO_T}$ac_cv_objext" >&6
2539OBJEXT=$ac_cv_objext
2540ac_objext=$OBJEXT
2541echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2542echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2543if test "${ac_cv_c_compiler_gnu+set}" = set; then
2544 echo $ECHO_N "(cached) $ECHO_C" >&6
2545else
2546 cat >conftest.$ac_ext <<_ACEOF
2547/* confdefs.h. */
2548_ACEOF
2549cat confdefs.h >>conftest.$ac_ext
2550cat >>conftest.$ac_ext <<_ACEOF
2551/* end confdefs.h. */
2552
2553int
2554main ()
2555{
2556#ifndef __GNUC__
2557 choke me
2558#endif
2559
2560 ;
2561 return 0;
2562}
2563_ACEOF
2564rm -f conftest.$ac_objext
2565if { (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
2587else
2588 echo "$as_me: failed program was:" >&5
2589sed 's/^/| /' conftest.$ac_ext >&5
2590
2591ac_compiler_gnu=no
2592fi
2593rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2594ac_cv_c_compiler_gnu=$ac_compiler_gnu
2595
2596fi
2597echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2598echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2599GCC=`test $ac_compiler_gnu = yes && echo yes`
2600ac_test_CFLAGS=${CFLAGS+set}
2601ac_save_CFLAGS=$CFLAGS
2602CFLAGS="-g"
2603echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2604echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2605if test "${ac_cv_prog_cc_g+set}" = set; then
2606 echo $ECHO_N "(cached) $ECHO_C" >&6
2607else
2608 cat >conftest.$ac_ext <<_ACEOF
2609/* confdefs.h. */
2610_ACEOF
2611cat confdefs.h >>conftest.$ac_ext
2612cat >>conftest.$ac_ext <<_ACEOF
2613/* end confdefs.h. */
2614
2615int
2616main ()
2617{
2618
2619 ;
2620 return 0;
2621}
2622_ACEOF
2623rm -f conftest.$ac_objext
2624if { (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
2646else
2647 echo "$as_me: failed program was:" >&5
2648sed 's/^/| /' conftest.$ac_ext >&5
2649
2650ac_cv_prog_cc_g=no
2651fi
2652rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2653fi
2654echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2655echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2656if test "$ac_test_CFLAGS" = set; then
2657 CFLAGS=$ac_save_CFLAGS
2658elif 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
2664else
2665 if test "$GCC" = yes; then
2666 CFLAGS="-O2"
2667 else
2668 CFLAGS=
2669 fi
2670fi
2671echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2672echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2673if test "${ac_cv_prog_cc_stdc+set}" = set; then
2674 echo $ECHO_N "(cached) $ECHO_C" >&6
2675else
2676 ac_cv_prog_cc_stdc=no
2677ac_save_CC=$CC
2678cat >conftest.$ac_ext <<_ACEOF
2679/* confdefs.h. */
2680_ACEOF
2681cat confdefs.h >>conftest.$ac_ext
2682cat >>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. */
2689struct buf { int x; };
2690FILE * (*rcsopen) (struct buf *, struct stat *, int);
2691static char *e (p, i)
2692 char **p;
2693 int i;
2694{
2695 return p[i];
2696}
2697static 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. */
2714int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2715
2716int test (int i, double x);
2717struct s1 {int (*f) (int a);};
2718struct s2 {int (*f) (double a);};
2719int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2720int argc;
2721char **argv;
2722int
2723main ()
2724{
2725return 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__
2737for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2738do
2739 CC="$ac_save_CC $ac_arg"
2740 rm -f conftest.$ac_objext
2741if { (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
2763break
2764else
2765 echo "$as_me: failed program was:" >&5
2766sed 's/^/| /' conftest.$ac_ext >&5
2767
2768fi
2769rm -f conftest.err conftest.$ac_objext
2770done
2771rm -f conftest.$ac_ext conftest.$ac_objext
2772CC=$ac_save_CC
2773
2774fi
2775
2776case "x$ac_cv_prog_cc_stdc" in
2777 x|xno)
2778 echo "$as_me:$LINENO: result: none needed" >&5
2779echo "${ECHO_T}none needed" >&6 ;;
2780 *)
2781 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2782echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2783 CC="$CC $ac_cv_prog_cc_stdc" ;;
2784esac
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.
2790cat >conftest.$ac_ext <<_ACEOF
2791#ifndef __cplusplus
2792 choke me
2793#endif
2794_ACEOF
2795rm -f conftest.$ac_objext
2796if { (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);'
2824do
2825 cat >conftest.$ac_ext <<_ACEOF
2826/* confdefs.h. */
2827_ACEOF
2828cat confdefs.h >>conftest.$ac_ext
2829cat >>conftest.$ac_ext <<_ACEOF
2830/* end confdefs.h. */
2831$ac_declaration
2832#include <stdlib.h>
2833int
2834main ()
2835{
2836exit (42);
2837 ;
2838 return 0;
2839}
2840_ACEOF
2841rm -f conftest.$ac_objext
2842if { (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 :
2864else
2865 echo "$as_me: failed program was:" >&5
2866sed 's/^/| /' conftest.$ac_ext >&5
2867
2868continue
2869fi
2870rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2871 cat >conftest.$ac_ext <<_ACEOF
2872/* confdefs.h. */
2873_ACEOF
2874cat confdefs.h >>conftest.$ac_ext
2875cat >>conftest.$ac_ext <<_ACEOF
2876/* end confdefs.h. */
2877$ac_declaration
2878int
2879main ()
2880{
2881exit (42);
2882 ;
2883 return 0;
2884}
2885_ACEOF
2886rm -f conftest.$ac_objext
2887if { (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
2909else
2910 echo "$as_me: failed program was:" >&5
2911sed 's/^/| /' conftest.$ac_ext >&5
2912
2913fi
2914rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2915done
2916rm -f conftest*
2917if test -n "$ac_declaration"; then
2918 echo '#ifdef __cplusplus' >>confdefs.h
2919 echo $ac_declaration >>confdefs.h
2920 echo '#endif' >>confdefs.h
2921fi
2922
2923else
2924 echo "$as_me: failed program was:" >&5
2925sed 's/^/| /' conftest.$ac_ext >&5
2926
2927fi
2928rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2929ac_ext=c
2930ac_cpp='$CPP $CPPFLAGS'
2931ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2932ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2933ac_compiler_gnu=$ac_cv_c_compiler_gnu
2934DEPDIR="${am__leading_dot}deps"
2935
2936 ac_config_commands="$ac_config_commands depfiles"
2937
2938
2939am_make=${MAKE-make}
2940cat > confinc << 'END'
2941am__doit:
2942 @echo done
2943.PHONY: am__doit
2944END
2945# If we don't find an include directive, just comment out the code.
2946echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2947echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2948am__include="#"
2949am__quote=
2950_am_result=none
2951# First try GNU make style include.
2952echo "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'.
2958if 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
2962fi
2963# Now try BSD make style include.
2964if 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
2971fi
2972
2973
2974echo "$as_me:$LINENO: result: $_am_result" >&5
2975echo "${ECHO_T}$_am_result" >&6
2976rm -f confinc confmf
2977
2978# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2979if test "${enable_dependency_tracking+set}" = set; then
2980 enableval="$enable_dependency_tracking"
2981
2982fi;
2983if test "x$enable_dependency_tracking" != xno; then
2984 am_depcomp="$ac_aux_dir/depcomp"
2985 AMDEPBACKSLASH='\'
2986fi
2987
2988
2989if test "x$enable_dependency_tracking" != xno; then
2990 AMDEP_TRUE=
2991 AMDEP_FALSE='#'
2992else
2993 AMDEP_TRUE='#'
2994 AMDEP_FALSE=
2995fi
2996
2997
2998
2999
3000depcc="$CC" am_compiler_list=
3001
3002echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3003echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3004if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3005 echo $ECHO_N "(cached) $ECHO_C" >&6
3006else
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
3087else
3088 am_cv_CC_dependencies_compiler_type=none
3089fi
3090
3091fi
3092echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3093echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3094CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3095
3096
3097
3098if
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='#'
3103else
3104 am__fastdepCC_TRUE='#'
3105 am__fastdepCC_FALSE=
3106fi
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.
3116save_CFLAGS="$CFLAGS"
3117
3118# Add -Wall -Werror if we are using GCC.
3119if test "x$GCC" = "xyes"; then
3120 XCFLAGS="$XCFLAGS -Wall -Werror"
3121fi
3122
3123# Find other programs we need.
3124if 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.
3126set dummy ${ac_tool_prefix}ar; ac_word=$2
3127echo "$as_me:$LINENO: checking for $ac_word" >&5
3128echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3129if test "${ac_cv_prog_AR+set}" = set; then
3130 echo $ECHO_N "(cached) $ECHO_C" >&6
3131else
3132 if test -n "$AR"; then
3133 ac_cv_prog_AR="$AR" # Let the user override the test.
3134else
3135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3136for as_dir in $PATH
3137do
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
3146done
3147done
3148
3149fi
3150fi
3151AR=$ac_cv_prog_AR
3152if test -n "$AR"; then
3153 echo "$as_me:$LINENO: result: $AR" >&5
3154echo "${ECHO_T}$AR" >&6
3155else
3156 echo "$as_me:$LINENO: result: no" >&5
3157echo "${ECHO_T}no" >&6
3158fi
3159
3160fi
3161if 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.
3164set dummy ar; ac_word=$2
3165echo "$as_me:$LINENO: checking for $ac_word" >&5
3166echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3167if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3168 echo $ECHO_N "(cached) $ECHO_C" >&6
3169else
3170 if test -n "$ac_ct_AR"; then
3171 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3172else
3173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3174for as_dir in $PATH
3175do
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
3184done
3185done
3186
3187fi
3188fi
3189ac_ct_AR=$ac_cv_prog_ac_ct_AR
3190if test -n "$ac_ct_AR"; then
3191 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3192echo "${ECHO_T}$ac_ct_AR" >&6
3193else
3194 echo "$as_me:$LINENO: result: no" >&5
3195echo "${ECHO_T}no" >&6
3196fi
3197
3198 AR=$ac_ct_AR
3199else
3200 AR="$ac_cv_prog_AR"
3201fi
3202
3203if 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.
3205set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3206echo "$as_me:$LINENO: checking for $ac_word" >&5
3207echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3208if test "${ac_cv_prog_RANLIB+set}" = set; then
3209 echo $ECHO_N "(cached) $ECHO_C" >&6
3210else
3211 if test -n "$RANLIB"; then
3212 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3213else
3214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3215for as_dir in $PATH
3216do
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
3225done
3226done
3227
3228fi
3229fi
3230RANLIB=$ac_cv_prog_RANLIB
3231if test -n "$RANLIB"; then
3232 echo "$as_me:$LINENO: result: $RANLIB" >&5
3233echo "${ECHO_T}$RANLIB" >&6
3234else
3235 echo "$as_me:$LINENO: result: no" >&5
3236echo "${ECHO_T}no" >&6
3237fi
3238
3239fi
3240if 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.
3243set dummy ranlib; ac_word=$2
3244echo "$as_me:$LINENO: checking for $ac_word" >&5
3245echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3246if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3247 echo $ECHO_N "(cached) $ECHO_C" >&6
3248else
3249 if test -n "$ac_ct_RANLIB"; then
3250 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3251else
3252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3253for as_dir in $PATH
3254do
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
3263done
3264done
3265
3266 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error"
3267fi
3268fi
3269ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3270if test -n "$ac_ct_RANLIB"; then
3271 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3272echo "${ECHO_T}$ac_ct_RANLIB" >&6
3273else
3274 echo "$as_me:$LINENO: result: no" >&5
3275echo "${ECHO_T}no" >&6
3276fi
3277
3278 RANLIB=$ac_ct_RANLIB
3279else
3280 RANLIB="$ac_cv_prog_RANLIB"
3281fi
3282
3283# Extract the first word of "perl", so it can be a program name with args.
3284set dummy perl; ac_word=$2
3285echo "$as_me:$LINENO: checking for $ac_word" >&5
3286echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3287if test "${ac_cv_path_PERL+set}" = set; then
3288 echo $ECHO_N "(cached) $ECHO_C" >&6
3289else
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
3296for as_dir in $PATH
3297do
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
3306done
3307done
3308
3309 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
3310 ;;
3311esac
3312fi
3313PERL=$ac_cv_path_PERL
3314
3315if test -n "$PERL"; then
3316 echo "$as_me:$LINENO: result: $PERL" >&5
3317echo "${ECHO_T}$PERL" >&6
3318else
3319 echo "$as_me:$LINENO: result: no" >&5
3320echo "${ECHO_T}no" >&6
3321fi
3322
3323echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3324echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3325set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3326if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3327 echo $ECHO_N "(cached) $ECHO_C" >&6
3328else
3329 cat >conftest.make <<\_ACEOF
3330all:
3331 @echo 'ac_maketemp="$(MAKE)"'
3332_ACEOF
3333# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3334eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3335if test -n "$ac_maketemp"; then
3336 eval ac_cv_prog_make_${ac_make}_set=yes
3337else
3338 eval ac_cv_prog_make_${ac_make}_set=no
3339fi
3340rm -f conftest.make
3341fi
3342if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3343 echo "$as_me:$LINENO: result: yes" >&5
3344echo "${ECHO_T}yes" >&6
3345 SET_MAKE=
3346else
3347 echo "$as_me:$LINENO: result: no" >&5
3348echo "${ECHO_T}no" >&6
3349 SET_MAKE="MAKE=${MAKE-make}"
3350fi
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.
3365echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3366echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3367if test -z "$INSTALL"; then
3368if test "${ac_cv_path_install+set}" = set; then
3369 echo $ECHO_N "(cached) $ECHO_C" >&6
3370else
3371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3372for as_dir in $PATH
3373do
3374 IFS=$as_save_IFS
3375 test -z "$as_dir" && as_dir=.
3376 # Account for people who put trailing slashes in PATH elements.
3377case $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 ;;
3405esac
3406done
3407
3408
3409fi
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
3419fi
3420echo "$as_me:$LINENO: result: $INSTALL" >&5
3421echo "${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.
3425test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3426
3427test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3428
3429test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3430
3431
3432# Configure libtool
3433# Check whether --enable-shared or --disable-shared was given.
3434if test "${enable_shared+set}" = set; then
3435 enableval="$enable_shared"
3436 p=${PACKAGE-default}
3437case $enableval in
3438yes) enable_shared=yes ;;
3439no) 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 ;;
3451esac
3452else
3453 enable_shared=yes
3454fi;
3455# Check whether --enable-static or --disable-static was given.
3456if test "${enable_static+set}" = set; then
3457 enableval="$enable_static"
3458 p=${PACKAGE-default}
3459case $enableval in
3460yes) enable_static=yes ;;
3461no) 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 ;;
3473esac
3474else
3475 enable_static=yes
3476fi;
3477# Check whether --enable-fast-install or --disable-fast-install was given.
3478if test "${enable_fast_install+set}" = set; then
3479 enableval="$enable_fast_install"
3480 p=${PACKAGE-default}
3481case $enableval in
3482yes) enable_fast_install=yes ;;
3483no) 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 ;;
3495esac
3496else
3497 enable_fast_install=yes
3498fi;
3499
3500# Check whether --with-gnu-ld or --without-gnu-ld was given.
3501if test "${with_gnu_ld+set}" = set; then
3502 withval="$with_gnu_ld"
3503 test "$withval" = no || with_gnu_ld=yes
3504else
3505 with_gnu_ld=no
3506fi;
3507ac_prog=ld
3508if 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
3511echo $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
3539elif test "$with_gnu_ld" = yes; then
3540 echo "$as_me:$LINENO: checking for GNU ld" >&5
3541echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3542else
3543 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3544echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3545fi
3546if test "${lt_cv_path_LD+set}" = set; then
3547 echo $ECHO_N "(cached) $ECHO_C" >&6
3548else
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"
3566else
3567 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3568fi
3569fi
3570
3571LD="$lt_cv_path_LD"
3572if test -n "$LD"; then
3573 echo "$as_me:$LINENO: result: $LD" >&5
3574echo "${ECHO_T}$LD" >&6
3575else
3576 echo "$as_me:$LINENO: result: no" >&5
3577echo "${ECHO_T}no" >&6
3578fi
3579test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3580echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3581 { (exit 1); exit 1; }; }
3582echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3583echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3584if test "${lt_cv_prog_gnu_ld+set}" = set; then
3585 echo $ECHO_N "(cached) $ECHO_C" >&6
3586else
3587 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3588if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3589 lt_cv_prog_gnu_ld=yes
3590else
3591 lt_cv_prog_gnu_ld=no
3592fi
3593fi
3594echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3595echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3596with_gnu_ld=$lt_cv_prog_gnu_ld
3597
3598
3599echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3600echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3601if test "${lt_cv_ld_reload_flag+set}" = set; then
3602 echo $ECHO_N "(cached) $ECHO_C" >&6
3603else
3604 lt_cv_ld_reload_flag='-r'
3605fi
3606echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3607echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3608reload_flag=$lt_cv_ld_reload_flag
3609test -n "$reload_flag" && reload_flag=" $reload_flag"
3610
3611echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3612echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3613if test "${lt_cv_path_NM+set}" = set; then
3614 echo $ECHO_N "(cached) $ECHO_C" >&6
3615else
3616 if test -n "$NM"; then
3617 # Let the user override the test.
3618 lt_cv_path_NM="$NM"
3619else
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
3643fi
3644fi
3645
3646NM="$lt_cv_path_NM"
3647echo "$as_me:$LINENO: result: $NM" >&5
3648echo "${ECHO_T}$NM" >&6
3649
3650echo "$as_me:$LINENO: checking whether ln -s works" >&5
3651echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3652LN_S=$as_ln_s
3653if test "$LN_S" = "ln -s"; then
3654 echo "$as_me:$LINENO: result: yes" >&5
3655echo "${ECHO_T}yes" >&6
3656else
3657 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3658echo "${ECHO_T}no, using $LN_S" >&6
3659fi
3660
3661echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3662echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3663if test "${lt_cv_deplibs_check_method+set}" = set; then
3664 echo $ECHO_N "(cached) $ECHO_C" >&6
3665else
3666 lt_cv_file_magic_cmd='$MAGIC_CMD'
3667lt_cv_file_magic_test_file=
3668lt_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
3680case $host_os in
3681aix*)
3682 lt_cv_deplibs_check_method=pass_all
3683 ;;
3684
3685beos*)
3686 lt_cv_deplibs_check_method=pass_all
3687 ;;
3688
3689bsdi4*)
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
3695cygwin* | 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
3700darwin* | 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
3715freebsd* | 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
3731gnu*)
3732 lt_cv_deplibs_check_method=pass_all
3733 ;;
3734
3735hpux10.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
3750irix5* | 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.
3772linux-gnu*)
3773 lt_cv_deplibs_check_method=pass_all
3774 ;;
3775
3776netbsd* | 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
3784newsos6)
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
3790osf3* | 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
3797sco3.2v5*)
3798 lt_cv_deplibs_check_method=pass_all
3799 ;;
3800
3801solaris*)
3802 lt_cv_deplibs_check_method=pass_all
3803 lt_cv_file_magic_test_file=/lib/libc.so
3804 ;;
3805
3806sysv5uw[78]* | sysv4*uw2*)
3807 lt_cv_deplibs_check_method=pass_all
3808 ;;
3809
3810sysv4 | 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 ;;
3821esac
3822
3823fi
3824echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3825echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3826file_magic_cmd=$lt_cv_file_magic_cmd
3827deplibs_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
3836echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3837echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3838if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3839 echo $ECHO_N "(cached) $ECHO_C" >&6
3840else
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
3885fi
3886
3887if test -n "$lt_cv_sys_max_cmd_len" ; then
3888 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3889echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3890else
3891 echo "$as_me:$LINENO: result: none" >&5
3892echo "${ECHO_T}none" >&6
3893fi
3894
3895
3896# Only perform the check for file, if the check method requires it
3897case $deplibs_check_method in
3898file_magic*)
3899 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3900 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3901echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3902if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3903 echo $ECHO_N "(cached) $ECHO_C" >&6
3904else
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
3940EOF
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 ;;
3950esac
3951fi
3952
3953MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3954if test -n "$MAGIC_CMD"; then
3955 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3956echo "${ECHO_T}$MAGIC_CMD" >&6
3957else
3958 echo "$as_me:$LINENO: result: no" >&5
3959echo "${ECHO_T}no" >&6
3960fi
3961
3962if 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
3965echo $ECHO_N "checking for file... $ECHO_C" >&6
3966if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3967 echo $ECHO_N "(cached) $ECHO_C" >&6
3968else
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
4004EOF
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 ;;
4014esac
4015fi
4016
4017MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4018if test -n "$MAGIC_CMD"; then
4019 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4020echo "${ECHO_T}$MAGIC_CMD" >&6
4021else
4022 echo "$as_me:$LINENO: result: no" >&5
4023echo "${ECHO_T}no" >&6
4024fi
4025
4026 else
4027 MAGIC_CMD=:
4028 fi
4029fi
4030
4031 fi
4032 ;;
4033esac
4034
4035if 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.
4037set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4038echo "$as_me:$LINENO: checking for $ac_word" >&5
4039echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4040if test "${ac_cv_prog_RANLIB+set}" = set; then
4041 echo $ECHO_N "(cached) $ECHO_C" >&6
4042else
4043 if test -n "$RANLIB"; then
4044 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4045else
4046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4047for as_dir in $PATH
4048do
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
4057done
4058done
4059
4060fi
4061fi
4062RANLIB=$ac_cv_prog_RANLIB
4063if test -n "$RANLIB"; then
4064 echo "$as_me:$LINENO: result: $RANLIB" >&5
4065echo "${ECHO_T}$RANLIB" >&6
4066else
4067 echo "$as_me:$LINENO: result: no" >&5
4068echo "${ECHO_T}no" >&6
4069fi
4070
4071fi
4072if 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.
4075set dummy ranlib; ac_word=$2
4076echo "$as_me:$LINENO: checking for $ac_word" >&5
4077echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4078if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4079 echo $ECHO_N "(cached) $ECHO_C" >&6
4080else
4081 if test -n "$ac_ct_RANLIB"; then
4082 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4083else
4084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4085for as_dir in $PATH
4086do
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
4095done
4096done
4097
4098 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4099fi
4100fi
4101ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4102if test -n "$ac_ct_RANLIB"; then
4103 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4104echo "${ECHO_T}$ac_ct_RANLIB" >&6
4105else
4106 echo "$as_me:$LINENO: result: no" >&5
4107echo "${ECHO_T}no" >&6
4108fi
4109
4110 RANLIB=$ac_ct_RANLIB
4111else
4112 RANLIB="$ac_cv_prog_RANLIB"
4113fi
4114
4115if 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.
4117set dummy ${ac_tool_prefix}strip; ac_word=$2
4118echo "$as_me:$LINENO: checking for $ac_word" >&5
4119echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4120if test "${ac_cv_prog_STRIP+set}" = set; then
4121 echo $ECHO_N "(cached) $ECHO_C" >&6
4122else
4123 if test -n "$STRIP"; then
4124 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4125else
4126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4127for as_dir in $PATH
4128do
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
4137done
4138done
4139
4140fi
4141fi
4142STRIP=$ac_cv_prog_STRIP
4143if test -n "$STRIP"; then
4144 echo "$as_me:$LINENO: result: $STRIP" >&5
4145echo "${ECHO_T}$STRIP" >&6
4146else
4147 echo "$as_me:$LINENO: result: no" >&5
4148echo "${ECHO_T}no" >&6
4149fi
4150
4151fi
4152if 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.
4155set dummy strip; ac_word=$2
4156echo "$as_me:$LINENO: checking for $ac_word" >&5
4157echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4158if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4159 echo $ECHO_N "(cached) $ECHO_C" >&6
4160else
4161 if test -n "$ac_ct_STRIP"; then
4162 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4163else
4164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4165for as_dir in $PATH
4166do
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
4175done
4176done
4177
4178 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4179fi
4180fi
4181ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4182if test -n "$ac_ct_STRIP"; then
4183 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4184echo "${ECHO_T}$ac_ct_STRIP" >&6
4185else
4186 echo "$as_me:$LINENO: result: no" >&5
4187echo "${ECHO_T}no" >&6
4188fi
4189
4190 STRIP=$ac_ct_STRIP
4191else
4192 STRIP="$ac_cv_prog_STRIP"
4193fi
4194
4195
4196# Check for any special flags to pass to ltconfig.
4197libtool_flags="--cache-file=$cache_file"
4198test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4199test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4200test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4201test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4202test "$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.
4206if test "${enable_libtool_lock+set}" = set; then
4207 enableval="$enable_libtool_lock"
4208
4209fi;
4210test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4211test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4212
4213
4214# Check whether --with-pic or --without-pic was given.
4215if test "${with_pic+set}" = set; then
4216 withval="$with_pic"
4217 pic_mode="$withval"
4218else
4219 pic_mode=default
4220fi;
4221test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4222test 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.
4226case $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
4264ia64-*-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
4284x86_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
4335echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4336if test "${lt_cv_cc_needs_belf+set}" = set; then
4337 echo $ECHO_N "(cached) $ECHO_C" >&6
4338else
4339
4340
4341 ac_ext=c
4342ac_cpp='$CPP $CPPFLAGS'
4343ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4344ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4345ac_compiler_gnu=$ac_cv_c_compiler_gnu
4346
4347 cat >conftest.$ac_ext <<_ACEOF
4348/* confdefs.h. */
4349_ACEOF
4350cat confdefs.h >>conftest.$ac_ext
4351cat >>conftest.$ac_ext <<_ACEOF
4352/* end confdefs.h. */
4353
4354int
4355main ()
4356{
4357
4358 ;
4359 return 0;
4360}
4361_ACEOF
4362rm -f conftest.$ac_objext conftest$ac_exeext
4363if { (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
4385else
4386 echo "$as_me: failed program was:" >&5
4387sed 's/^/| /' conftest.$ac_ext >&5
4388
4389lt_cv_cc_needs_belf=no
4390fi
4391rm -f conftest.err conftest.$ac_objext \
4392 conftest$ac_exeext conftest.$ac_ext
4393 ac_ext=c
4394ac_cpp='$CPP $CPPFLAGS'
4395ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4396ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4397ac_compiler_gnu=$ac_cv_c_compiler_gnu
4398
4399fi
4400echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4401echo "${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
4409esac
4410
4411
4412# Save cache, so that ltconfig can load it
4413cat >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
4458if 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
4465fi
4466rm -f confcache
4467
4468# Actually configure libtool. ac_aux_dir is where install-sh is found.
4469AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4470MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4471LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4472AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4473objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4474deplibs_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
4478echo "$as_me: error: libtool configure failed" >&2;}
4479 { (exit 1); exit 1; }; }
4480
4481# Reload cache, that may have been modified by ltconfig
4482if 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
4487echo "$as_me: loading cache $cache_file" >&6;}
4488 case $cache_file in
4489 [\\/]* | ?:[\\/]* ) . $cache_file;;
4490 *) . ./$cache_file;;
4491 esac
4492 fi
4493else
4494 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4495echo "$as_me: creating cache $cache_file" >&6;}
4496 >$cache_file
4497fi
4498
4499
4500# This can be used to rebuild libtool when needed
4501LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4502
4503# Always use our own libtool.
4504LIBTOOL='$(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.
4508exec 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)
4521FC="$GFORTRAN"
4522ac_ext=${FC_SRCEXT-f}
4523ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
4524ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
4525ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4526if 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.
4530set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4531echo "$as_me:$LINENO: checking for $ac_word" >&5
4532echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4533if test "${ac_cv_prog_FC+set}" = set; then
4534 echo $ECHO_N "(cached) $ECHO_C" >&6
4535else
4536 if test -n "$FC"; then
4537 ac_cv_prog_FC="$FC" # Let the user override the test.
4538else
4539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4540for as_dir in $PATH
4541do
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
4550done
4551done
4552
4553fi
4554fi
4555FC=$ac_cv_prog_FC
4556if test -n "$FC"; then
4557 echo "$as_me:$LINENO: result: $FC" >&5
4558echo "${ECHO_T}$FC" >&6
4559else
4560 echo "$as_me:$LINENO: result: no" >&5
4561echo "${ECHO_T}no" >&6
4562fi
4563
4564 test -n "$FC" && break
4565 done
4566fi
4567if test -z "$FC"; then
4568 ac_ct_FC=$FC
4569 for ac_prog in gfortran
4570do
4571 # Extract the first word of "$ac_prog", so it can be a program name with args.
4572set dummy $ac_prog; ac_word=$2
4573echo "$as_me:$LINENO: checking for $ac_word" >&5
4574echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4575if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
4576 echo $ECHO_N "(cached) $ECHO_C" >&6
4577else
4578 if test -n "$ac_ct_FC"; then
4579 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
4580else
4581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4582for as_dir in $PATH
4583do
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
4592done
4593done
4594
4595fi
4596fi
4597ac_ct_FC=$ac_cv_prog_ac_ct_FC
4598if test -n "$ac_ct_FC"; then
4599 echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
4600echo "${ECHO_T}$ac_ct_FC" >&6
4601else
4602 echo "$as_me:$LINENO: result: no" >&5
4603echo "${ECHO_T}no" >&6
4604fi
4605
4606 test -n "$ac_ct_FC" && break
4607done
4608
4609 FC=$ac_ct_FC
4610fi
4611
4612
4613# Provide some information about the compiler.
4614echo "$as_me:4614:" \
4615 "checking for Fortran compiler version" >&5
4616ac_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); }
4632rm -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.)
4636ac_save_ext=$ac_ext
4637ac_ext=F
4638echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
4639echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6
4640if test "${ac_cv_fc_compiler_gnu+set}" = set; then
4641 echo $ECHO_N "(cached) $ECHO_C" >&6
4642else
4643 cat >conftest.$ac_ext <<_ACEOF
4644 program main
4645#ifndef __GNUC__
4646 choke me
4647#endif
4648
4649 end
4650_ACEOF
4651rm -f conftest.$ac_objext
4652if { (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
4674else
4675 echo "$as_me: failed program was:" >&5
4676sed 's/^/| /' conftest.$ac_ext >&5
4677
4678ac_compiler_gnu=no
4679fi
4680rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4681ac_cv_fc_compiler_gnu=$ac_compiler_gnu
4682
4683fi
4684echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
4685echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6
4686ac_ext=$ac_save_ext
4687ac_test_FFLAGS=${FCFLAGS+set}
4688ac_save_FFLAGS=$FCFLAGS
4689FCFLAGS=
4690echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
4691echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6
4692if test "${ac_cv_prog_fc_g+set}" = set; then
4693 echo $ECHO_N "(cached) $ECHO_C" >&6
4694else
4695 FCFLAGS=-g
4696cat >conftest.$ac_ext <<_ACEOF
4697 program main
4698
4699 end
4700_ACEOF
4701rm -f conftest.$ac_objext
4702if { (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
4724else
4725 echo "$as_me: failed program was:" >&5
4726sed 's/^/| /' conftest.$ac_ext >&5
4727
4728ac_cv_prog_fc_g=no
4729fi
4730rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4731
4732fi
4733echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
4734echo "${ECHO_T}$ac_cv_prog_fc_g" >&6
4735if test "$ac_test_FFLAGS" = set; then
4736 FCFLAGS=$ac_save_FFLAGS
4737elif 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
4743else
4744 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4745 FCFLAGS="-O2"
4746 else
4747 FCFLAGS=
4748 fi
4749fi
4750
4751ac_ext=c
4752ac_cpp='$CPP $CPPFLAGS'
4753ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4754ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4755ac_compiler_gnu=$ac_cv_c_compiler_gnu
4756
4757FCFLAGS="$FCFLAGS -Wall"
4758
4759# For libtool versioning info, format is CURRENT:REVISION:AGE
4760libtool_VERSION=1:0:0
4761
4762
4763# Check header files.
4764ac_ext=c
4765ac_cpp='$CPP $CPPFLAGS'
4766ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4767ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4768ac_compiler_gnu=$ac_cv_c_compiler_gnu
4769echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4770echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4771# On Suns, sometimes $CPP names a directory.
4772if test -n "$CPP" && test -d "$CPP"; then
4773 CPP=
4774fi
4775if test -z "$CPP"; then
4776 if test "${ac_cv_prog_CPP+set}" = set; then
4777 echo $ECHO_N "(cached) $ECHO_C" >&6
4778else
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
4783for ac_c_preproc_warn_flag in '' yes
4784do
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
4794cat confdefs.h >>conftest.$ac_ext
4795cat >>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
4804if { (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
4818else
4819 ac_cpp_err=yes
4820fi
4821if test -z "$ac_cpp_err"; then
4822 :
4823else
4824 echo "$as_me: failed program was:" >&5
4825sed 's/^/| /' conftest.$ac_ext >&5
4826
4827 # Broken: fails on valid input.
4828continue
4829fi
4830rm -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
4837cat confdefs.h >>conftest.$ac_ext
4838cat >>conftest.$ac_ext <<_ACEOF
4839/* end confdefs.h. */
4840#include <ac_nonexistent.h>
4841_ACEOF
4842if { (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
4856else
4857 ac_cpp_err=yes
4858fi
4859if test -z "$ac_cpp_err"; then
4860 # Broken: success on invalid input.
4861continue
4862else
4863 echo "$as_me: failed program was:" >&5
4864sed 's/^/| /' conftest.$ac_ext >&5
4865
4866 # Passes both tests.
4867ac_preproc_ok=:
4868break
4869fi
4870rm -f conftest.err conftest.$ac_ext
4871
4872done
4873# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4874rm -f conftest.err conftest.$ac_ext
4875if $ac_preproc_ok; then
4876 break
4877fi
4878
4879 done
4880 ac_cv_prog_CPP=$CPP
4881
4882fi
4883 CPP=$ac_cv_prog_CPP
4884else
4885 ac_cv_prog_CPP=$CPP
4886fi
4887echo "$as_me:$LINENO: result: $CPP" >&5
4888echo "${ECHO_T}$CPP" >&6
4889ac_preproc_ok=false
4890for ac_c_preproc_warn_flag in '' yes
4891do
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
4901cat confdefs.h >>conftest.$ac_ext
4902cat >>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
4911if { (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
4925else
4926 ac_cpp_err=yes
4927fi
4928if test -z "$ac_cpp_err"; then
4929 :
4930else
4931 echo "$as_me: failed program was:" >&5
4932sed 's/^/| /' conftest.$ac_ext >&5
4933
4934 # Broken: fails on valid input.
4935continue
4936fi
4937rm -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
4944cat confdefs.h >>conftest.$ac_ext
4945cat >>conftest.$ac_ext <<_ACEOF
4946/* end confdefs.h. */
4947#include <ac_nonexistent.h>
4948_ACEOF
4949if { (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
4963else
4964 ac_cpp_err=yes
4965fi
4966if test -z "$ac_cpp_err"; then
4967 # Broken: success on invalid input.
4968continue
4969else
4970 echo "$as_me: failed program was:" >&5
4971sed 's/^/| /' conftest.$ac_ext >&5
4972
4973 # Passes both tests.
4974ac_preproc_ok=:
4975break
4976fi
4977rm -f conftest.err conftest.$ac_ext
4978
4979done
4980# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4981rm -f conftest.err conftest.$ac_ext
4982if $ac_preproc_ok; then
4983 :
4984else
4985 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4986See \`config.log' for more details." >&5
4987echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4988See \`config.log' for more details." >&2;}
4989 { (exit 1); exit 1; }; }
4990fi
4991
4992ac_ext=c
4993ac_cpp='$CPP $CPPFLAGS'
4994ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4995ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4996ac_compiler_gnu=$ac_cv_c_compiler_gnu
4997
4998
4999echo "$as_me:$LINENO: checking for egrep" >&5
5000echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5001if test "${ac_cv_prog_egrep+set}" = set; then
5002 echo $ECHO_N "(cached) $ECHO_C" >&6
5003else
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
5008fi
5009echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5010echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5011 EGREP=$ac_cv_prog_egrep
5012
5013
5014echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5015echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5016if test "${ac_cv_header_stdc+set}" = set; then
5017 echo $ECHO_N "(cached) $ECHO_C" >&6
5018else
5019 cat >conftest.$ac_ext <<_ACEOF
5020/* confdefs.h. */
5021_ACEOF
5022cat confdefs.h >>conftest.$ac_ext
5023cat >>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
5030int
5031main ()
5032{
5033
5034 ;
5035 return 0;
5036}
5037_ACEOF
5038rm -f conftest.$ac_objext
5039if { (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
5061else
5062 echo "$as_me: failed program was:" >&5
5063sed 's/^/| /' conftest.$ac_ext >&5
5064
5065ac_cv_header_stdc=no
5066fi
5067rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5068
5069if 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
5074cat confdefs.h >>conftest.$ac_ext
5075cat >>conftest.$ac_ext <<_ACEOF
5076/* end confdefs.h. */
5077#include <string.h>
5078
5079_ACEOF
5080if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5081 $EGREP "memchr" >/dev/null 2>&1; then
5082 :
5083else
5084 ac_cv_header_stdc=no
5085fi
5086rm -f conftest*
5087
5088fi
5089
5090if 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
5095cat confdefs.h >>conftest.$ac_ext
5096cat >>conftest.$ac_ext <<_ACEOF
5097/* end confdefs.h. */
5098#include <stdlib.h>
5099
5100_ACEOF
5101if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5102 $EGREP "free" >/dev/null 2>&1; then
5103 :
5104else
5105 ac_cv_header_stdc=no
5106fi
5107rm -f conftest*
5108
5109fi
5110
5111if 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 :
5115else
5116 cat >conftest.$ac_ext <<_ACEOF
5117/* confdefs.h. */
5118_ACEOF
5119cat confdefs.h >>conftest.$ac_ext
5120cat >>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)))
5135int
5136main ()
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
5146rm -f conftest$ac_exeext
5147if { (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 :
5158else
5159 echo "$as_me: program exited with status $ac_status" >&5
5160echo "$as_me: failed program was:" >&5
5161sed 's/^/| /' conftest.$ac_ext >&5
5162
5163( exit $ac_status )
5164ac_cv_header_stdc=no
5165fi
5166rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5167fi
5168fi
5169fi
5170echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5171echo "${ECHO_T}$ac_cv_header_stdc" >&6
5172if test $ac_cv_header_stdc = yes; then
5173
5174cat >>confdefs.h <<\_ACEOF
5175#define STDC_HEADERS 1
5176_ACEOF
5177
5178fi
5179
5180echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5181echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5182if test "${ac_cv_header_time+set}" = set; then
5183 echo $ECHO_N "(cached) $ECHO_C" >&6
5184else
5185 cat >conftest.$ac_ext <<_ACEOF
5186/* confdefs.h. */
5187_ACEOF
5188cat confdefs.h >>conftest.$ac_ext
5189cat >>conftest.$ac_ext <<_ACEOF
5190/* end confdefs.h. */
5191#include <sys/types.h>
5192#include <sys/time.h>
5193#include <time.h>
5194
5195int
5196main ()
5197{
5198if ((struct tm *) 0)
5199return 0;
5200 ;
5201 return 0;
5202}
5203_ACEOF
5204rm -f conftest.$ac_objext
5205if { (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
5227else
5228 echo "$as_me: failed program was:" >&5
5229sed 's/^/| /' conftest.$ac_ext >&5
5230
5231ac_cv_header_time=no
5232fi
5233rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5234fi
5235echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5236echo "${ECHO_T}$ac_cv_header_time" >&6
5237if test $ac_cv_header_time = yes; then
5238
5239cat >>confdefs.h <<\_ACEOF
5240#define TIME_WITH_SYS_TIME 1
5241_ACEOF
5242
5243fi
5244
5245# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5256 inttypes.h stdint.h unistd.h
5257do
5258as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5259echo "$as_me:$LINENO: checking for $ac_header" >&5
5260echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5261if eval "test \"\${$as_ac_Header+set}\" = set"; then
5262 echo $ECHO_N "(cached) $ECHO_C" >&6
5263else
5264 cat >conftest.$ac_ext <<_ACEOF
5265/* confdefs.h. */
5266_ACEOF
5267cat confdefs.h >>conftest.$ac_ext
5268cat >>conftest.$ac_ext <<_ACEOF
5269/* end confdefs.h. */
5270$ac_includes_default
5271
5272#include <$ac_header>
5273_ACEOF
5274rm -f conftest.$ac_objext
5275if { (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"
5297else
5298 echo "$as_me: failed program was:" >&5
5299sed 's/^/| /' conftest.$ac_ext >&5
5300
5301eval "$as_ac_Header=no"
5302fi
5303rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5304fi
5305echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5306echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5307if 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
5312fi
5313
5314done
5315
5316
5317
5318
5319
192a50ad
AT
5320
5321for ac_header in unistd.h semaphore.h sys/loadavg.h sys/time.h
953ff289
DN
5322do
5323as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5324if eval "test \"\${$as_ac_Header+set}\" = set"; then
5325 echo "$as_me:$LINENO: checking for $ac_header" >&5
5326echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5327if eval "test \"\${$as_ac_Header+set}\" = set"; then
5328 echo $ECHO_N "(cached) $ECHO_C" >&6
5329fi
5330echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5331echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5332else
5333 # Is the header compilable?
5334echo "$as_me:$LINENO: checking $ac_header usability" >&5
5335echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5336cat >conftest.$ac_ext <<_ACEOF
5337/* confdefs.h. */
5338_ACEOF
5339cat confdefs.h >>conftest.$ac_ext
5340cat >>conftest.$ac_ext <<_ACEOF
5341/* end confdefs.h. */
5342$ac_includes_default
5343#include <$ac_header>
5344_ACEOF
5345rm -f conftest.$ac_objext
5346if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5347 (eval $ac_compile) 2>conftest.er1
5348 ac_status=$?
5349 grep -v '^ *+' conftest.er1 >conftest.err
5350 rm -f conftest.er1
5351 cat conftest.err >&5
5352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353 (exit $ac_status); } &&
5354 { ac_try='test -z "$ac_c_werror_flag"
5355 || test ! -s conftest.err'
5356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5357 (eval $ac_try) 2>&5
5358 ac_status=$?
5359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5360 (exit $ac_status); }; } &&
5361 { ac_try='test -s conftest.$ac_objext'
5362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5363 (eval $ac_try) 2>&5
5364 ac_status=$?
5365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366 (exit $ac_status); }; }; then
5367 ac_header_compiler=yes
5368else
5369 echo "$as_me: failed program was:" >&5
5370sed 's/^/| /' conftest.$ac_ext >&5
5371
5372ac_header_compiler=no
5373fi
5374rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5375echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5376echo "${ECHO_T}$ac_header_compiler" >&6
5377
5378# Is the header present?
5379echo "$as_me:$LINENO: checking $ac_header presence" >&5
5380echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5381cat >conftest.$ac_ext <<_ACEOF
5382/* confdefs.h. */
5383_ACEOF
5384cat confdefs.h >>conftest.$ac_ext
5385cat >>conftest.$ac_ext <<_ACEOF
5386/* end confdefs.h. */
5387#include <$ac_header>
5388_ACEOF
5389if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5390 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5391 ac_status=$?
5392 grep -v '^ *+' conftest.er1 >conftest.err
5393 rm -f conftest.er1
5394 cat conftest.err >&5
5395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396 (exit $ac_status); } >/dev/null; then
5397 if test -s conftest.err; then
5398 ac_cpp_err=$ac_c_preproc_warn_flag
5399 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5400 else
5401 ac_cpp_err=
5402 fi
5403else
5404 ac_cpp_err=yes
5405fi
5406if test -z "$ac_cpp_err"; then
5407 ac_header_preproc=yes
5408else
5409 echo "$as_me: failed program was:" >&5
5410sed 's/^/| /' conftest.$ac_ext >&5
5411
5412 ac_header_preproc=no
5413fi
5414rm -f conftest.err conftest.$ac_ext
5415echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5416echo "${ECHO_T}$ac_header_preproc" >&6
5417
5418# So? What about this header?
5419case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5420 yes:no: )
5421 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5422echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5423 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5424echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5425 ac_header_preproc=yes
5426 ;;
5427 no:yes:* )
5428 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5429echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5430 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5431echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5432 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5433echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5434 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5435echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5436 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5437echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5438 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5439echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5440 (
5441 cat <<\_ASBOX
5442## ----------------------------------------------------- ##
5443## Report this to the GNU OpenMP Runtime Library lists. ##
5444## ----------------------------------------------------- ##
5445_ASBOX
5446 ) |
5447 sed "s/^/$as_me: WARNING: /" >&2
5448 ;;
5449esac
5450echo "$as_me:$LINENO: checking for $ac_header" >&5
5451echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5452if eval "test \"\${$as_ac_Header+set}\" = set"; then
5453 echo $ECHO_N "(cached) $ECHO_C" >&6
5454else
5455 eval "$as_ac_Header=\$ac_header_preproc"
5456fi
5457echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5458echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5459
5460fi
5461if test `eval echo '${'$as_ac_Header'}'` = yes; then
5462 cat >>confdefs.h <<_ACEOF
5463#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5464_ACEOF
5465
5466fi
5467
5468done
5469
5470if test "${ac_cv_header_pthread_h+set}" = set; then
5471 echo "$as_me:$LINENO: checking for pthread.h" >&5
5472echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
5473if test "${ac_cv_header_pthread_h+set}" = set; then
5474 echo $ECHO_N "(cached) $ECHO_C" >&6
5475fi
5476echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
5477echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
5478else
5479 # Is the header compilable?
5480echo "$as_me:$LINENO: checking pthread.h usability" >&5
5481echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
5482cat >conftest.$ac_ext <<_ACEOF
5483/* confdefs.h. */
5484_ACEOF
5485cat confdefs.h >>conftest.$ac_ext
5486cat >>conftest.$ac_ext <<_ACEOF
5487/* end confdefs.h. */
5488$ac_includes_default
5489#include <pthread.h>
5490_ACEOF
5491rm -f conftest.$ac_objext
5492if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5493 (eval $ac_compile) 2>conftest.er1
5494 ac_status=$?
5495 grep -v '^ *+' conftest.er1 >conftest.err
5496 rm -f conftest.er1
5497 cat conftest.err >&5
5498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5499 (exit $ac_status); } &&
5500 { ac_try='test -z "$ac_c_werror_flag"
5501 || test ! -s conftest.err'
5502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5503 (eval $ac_try) 2>&5
5504 ac_status=$?
5505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506 (exit $ac_status); }; } &&
5507 { ac_try='test -s conftest.$ac_objext'
5508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5509 (eval $ac_try) 2>&5
5510 ac_status=$?
5511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5512 (exit $ac_status); }; }; then
5513 ac_header_compiler=yes
5514else
5515 echo "$as_me: failed program was:" >&5
5516sed 's/^/| /' conftest.$ac_ext >&5
5517
5518ac_header_compiler=no
5519fi
5520rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5521echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5522echo "${ECHO_T}$ac_header_compiler" >&6
5523
5524# Is the header present?
5525echo "$as_me:$LINENO: checking pthread.h presence" >&5
5526echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
5527cat >conftest.$ac_ext <<_ACEOF
5528/* confdefs.h. */
5529_ACEOF
5530cat confdefs.h >>conftest.$ac_ext
5531cat >>conftest.$ac_ext <<_ACEOF
5532/* end confdefs.h. */
5533#include <pthread.h>
5534_ACEOF
5535if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5536 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5537 ac_status=$?
5538 grep -v '^ *+' conftest.er1 >conftest.err
5539 rm -f conftest.er1
5540 cat conftest.err >&5
5541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542 (exit $ac_status); } >/dev/null; then
5543 if test -s conftest.err; then
5544 ac_cpp_err=$ac_c_preproc_warn_flag
5545 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5546 else
5547 ac_cpp_err=
5548 fi
5549else
5550 ac_cpp_err=yes
5551fi
5552if test -z "$ac_cpp_err"; then
5553 ac_header_preproc=yes
5554else
5555 echo "$as_me: failed program was:" >&5
5556sed 's/^/| /' conftest.$ac_ext >&5
5557
5558 ac_header_preproc=no
5559fi
5560rm -f conftest.err conftest.$ac_ext
5561echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5562echo "${ECHO_T}$ac_header_preproc" >&6
5563
5564# So? What about this header?
5565case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5566 yes:no: )
5567 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
5568echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5569 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
5570echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
5571 ac_header_preproc=yes
5572 ;;
5573 no:yes:* )
5574 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
5575echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
5576 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
5577echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
5578 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
5579echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
5580 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
5581echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
5582 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
5583echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
5584 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
5585echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
5586 (
5587 cat <<\_ASBOX
5588## ----------------------------------------------------- ##
5589## Report this to the GNU OpenMP Runtime Library lists. ##
5590## ----------------------------------------------------- ##
5591_ASBOX
5592 ) |
5593 sed "s/^/$as_me: WARNING: /" >&2
5594 ;;
5595esac
5596echo "$as_me:$LINENO: checking for pthread.h" >&5
5597echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
5598if test "${ac_cv_header_pthread_h+set}" = set; then
5599 echo $ECHO_N "(cached) $ECHO_C" >&6
5600else
5601 ac_cv_header_pthread_h=$ac_header_preproc
5602fi
5603echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
5604echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
5605
5606fi
5607if test $ac_cv_header_pthread_h = yes; then
5608 :
5609else
5610 { { echo "$as_me:$LINENO: error: Pthreads are required to build libgomp" >&5
5611echo "$as_me: error: Pthreads are required to build libgomp" >&2;}
5612 { (exit 1); exit 1; }; }
5613fi
5614
5615
5616
5617# Check to see if -pthread or -lpthread is needed. Prefer the former.
5618XPCFLAGS=""
5619CFLAGS="$CFLAGS -pthread"
5620cat >conftest.$ac_ext <<_ACEOF
5621/* confdefs.h. */
5622_ACEOF
5623cat confdefs.h >>conftest.$ac_ext
5624cat >>conftest.$ac_ext <<_ACEOF
5625/* end confdefs.h. */
5626#include <pthread.h>
5627 void *g(void *d) { return NULL; }
5628int
5629main ()
5630{
5631pthread_t t; pthread_create(&t,NULL,g,NULL);
5632 ;
5633 return 0;
5634}
5635_ACEOF
5636rm -f conftest.$ac_objext conftest$ac_exeext
5637if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5638 (eval $ac_link) 2>conftest.er1
5639 ac_status=$?
5640 grep -v '^ *+' conftest.er1 >conftest.err
5641 rm -f conftest.er1
5642 cat conftest.err >&5
5643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644 (exit $ac_status); } &&
5645 { ac_try='test -z "$ac_c_werror_flag"
5646 || test ! -s conftest.err'
5647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5648 (eval $ac_try) 2>&5
5649 ac_status=$?
5650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651 (exit $ac_status); }; } &&
5652 { ac_try='test -s conftest$ac_exeext'
5653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5654 (eval $ac_try) 2>&5
5655 ac_status=$?
5656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657 (exit $ac_status); }; }; then
5658 XPCFLAGS=" -Wc,-pthread"
5659else
5660 echo "$as_me: failed program was:" >&5
5661sed 's/^/| /' conftest.$ac_ext >&5
5662
5663CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
5664 cat >conftest.$ac_ext <<_ACEOF
5665/* confdefs.h. */
5666_ACEOF
5667cat confdefs.h >>conftest.$ac_ext
5668cat >>conftest.$ac_ext <<_ACEOF
5669/* end confdefs.h. */
5670#include <pthread.h>
5671 void *g(void *d) { return NULL; }
5672int
5673main ()
5674{
5675pthread_t t; pthread_create(&t,NULL,g,NULL);
5676 ;
5677 return 0;
5678}
5679_ACEOF
5680rm -f conftest.$ac_objext conftest$ac_exeext
5681if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5682 (eval $ac_link) 2>conftest.er1
5683 ac_status=$?
5684 grep -v '^ *+' conftest.er1 >conftest.err
5685 rm -f conftest.er1
5686 cat conftest.err >&5
5687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688 (exit $ac_status); } &&
5689 { ac_try='test -z "$ac_c_werror_flag"
5690 || test ! -s conftest.err'
5691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5692 (eval $ac_try) 2>&5
5693 ac_status=$?
5694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5695 (exit $ac_status); }; } &&
5696 { ac_try='test -s conftest$ac_exeext'
5697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5698 (eval $ac_try) 2>&5
5699 ac_status=$?
5700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701 (exit $ac_status); }; }; then
5702 :
5703else
5704 echo "$as_me: failed program was:" >&5
5705sed 's/^/| /' conftest.$ac_ext >&5
5706
5707{ { echo "$as_me:$LINENO: error: Pthreads are required to build libgomp" >&5
5708echo "$as_me: error: Pthreads are required to build libgomp" >&2;}
5709 { (exit 1); exit 1; }; }
5710fi
5711rm -f conftest.err conftest.$ac_objext \
5712 conftest$ac_exeext conftest.$ac_ext
5713fi
5714rm -f conftest.err conftest.$ac_objext \
5715 conftest$ac_exeext conftest.$ac_ext
5716
5717# Check for functions needed.
5718
5719
5720for ac_func in getloadavg clock_gettime
5721do
5722as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5723echo "$as_me:$LINENO: checking for $ac_func" >&5
5724echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5725if eval "test \"\${$as_ac_var+set}\" = set"; then
5726 echo $ECHO_N "(cached) $ECHO_C" >&6
5727else
5728 cat >conftest.$ac_ext <<_ACEOF
5729/* confdefs.h. */
5730_ACEOF
5731cat confdefs.h >>conftest.$ac_ext
5732cat >>conftest.$ac_ext <<_ACEOF
5733/* end confdefs.h. */
5734/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5735 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5736#define $ac_func innocuous_$ac_func
5737
5738/* System header to define __stub macros and hopefully few prototypes,
5739 which can conflict with char $ac_func (); below.
5740 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5741 <limits.h> exists even on freestanding compilers. */
5742
5743#ifdef __STDC__
5744# include <limits.h>
5745#else
5746# include <assert.h>
5747#endif
5748
5749#undef $ac_func
5750
5751/* Override any gcc2 internal prototype to avoid an error. */
5752#ifdef __cplusplus
5753extern "C"
5754{
5755#endif
5756/* We use char because int might match the return type of a gcc2
5757 builtin and then its argument prototype would still apply. */
5758char $ac_func ();
5759/* The GNU C library defines this for functions which it implements
5760 to always fail with ENOSYS. Some functions are actually named
5761 something starting with __ and the normal name is an alias. */
5762#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5763choke me
5764#else
5765char (*f) () = $ac_func;
5766#endif
5767#ifdef __cplusplus
5768}
5769#endif
5770
5771int
5772main ()
5773{
5774return f != $ac_func;
5775 ;
5776 return 0;
5777}
5778_ACEOF
5779rm -f conftest.$ac_objext conftest$ac_exeext
5780if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5781 (eval $ac_link) 2>conftest.er1
5782 ac_status=$?
5783 grep -v '^ *+' conftest.er1 >conftest.err
5784 rm -f conftest.er1
5785 cat conftest.err >&5
5786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787 (exit $ac_status); } &&
5788 { ac_try='test -z "$ac_c_werror_flag"
5789 || test ! -s conftest.err'
5790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5791 (eval $ac_try) 2>&5
5792 ac_status=$?
5793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794 (exit $ac_status); }; } &&
5795 { ac_try='test -s conftest$ac_exeext'
5796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5797 (eval $ac_try) 2>&5
5798 ac_status=$?
5799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800 (exit $ac_status); }; }; then
5801 eval "$as_ac_var=yes"
5802else
5803 echo "$as_me: failed program was:" >&5
5804sed 's/^/| /' conftest.$ac_ext >&5
5805
5806eval "$as_ac_var=no"
5807fi
5808rm -f conftest.err conftest.$ac_objext \
5809 conftest$ac_exeext conftest.$ac_ext
5810fi
5811echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5812echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5813if test `eval echo '${'$as_ac_var'}'` = yes; then
5814 cat >>confdefs.h <<_ACEOF
5815#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5816_ACEOF
5817
5818fi
5819done
5820
5821
5822# At least for glibc, clock_gettime is in librt. But don't pull that
5823# in if it still doesn't give us the function we want.
5824if test $ac_cv_func_clock_gettime = no; then
5825 echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
5826echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
5827if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
5828 echo $ECHO_N "(cached) $ECHO_C" >&6
5829else
5830 ac_check_lib_save_LIBS=$LIBS
5831LIBS="-lrt $LIBS"
5832cat >conftest.$ac_ext <<_ACEOF
5833/* confdefs.h. */
5834_ACEOF
5835cat confdefs.h >>conftest.$ac_ext
5836cat >>conftest.$ac_ext <<_ACEOF
5837/* end confdefs.h. */
5838
5839/* Override any gcc2 internal prototype to avoid an error. */
5840#ifdef __cplusplus
5841extern "C"
5842#endif
5843/* We use char because int might match the return type of a gcc2
5844 builtin and then its argument prototype would still apply. */
5845char clock_gettime ();
5846int
5847main ()
5848{
5849clock_gettime ();
5850 ;
5851 return 0;
5852}
5853_ACEOF
5854rm -f conftest.$ac_objext conftest$ac_exeext
5855if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5856 (eval $ac_link) 2>conftest.er1
5857 ac_status=$?
5858 grep -v '^ *+' conftest.er1 >conftest.err
5859 rm -f conftest.er1
5860 cat conftest.err >&5
5861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); } &&
5863 { ac_try='test -z "$ac_c_werror_flag"
5864 || test ! -s conftest.err'
5865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5866 (eval $ac_try) 2>&5
5867 ac_status=$?
5868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869 (exit $ac_status); }; } &&
5870 { ac_try='test -s conftest$ac_exeext'
5871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5872 (eval $ac_try) 2>&5
5873 ac_status=$?
5874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875 (exit $ac_status); }; }; then
5876 ac_cv_lib_rt_clock_gettime=yes
5877else
5878 echo "$as_me: failed program was:" >&5
5879sed 's/^/| /' conftest.$ac_ext >&5
5880
5881ac_cv_lib_rt_clock_gettime=no
5882fi
5883rm -f conftest.err conftest.$ac_objext \
5884 conftest$ac_exeext conftest.$ac_ext
5885LIBS=$ac_check_lib_save_LIBS
5886fi
5887echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
5888echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
5889if test $ac_cv_lib_rt_clock_gettime = yes; then
5890 LIBS="-lrt $LIBS"
5891 cat >>confdefs.h <<\_ACEOF
5892#define HAVE_CLOCK_GETTIME Define to 1 if you have the `clock_gettime' function.
5893_ACEOF
5894
5895fi
5896
5897fi
5898
5899# See if we support thread-local storage.
5900
5901 # Check whether --enable-tls or --disable-tls was given.
5902if test "${enable_tls+set}" = set; then
5903 enableval="$enable_tls"
5904
5905 case "$enableval" in
5906 yes|no) ;;
5907 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
5908echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
5909 { (exit 1); exit 1; }; } ;;
5910 esac
5911
5912else
5913 enable_tls=yes
5914fi;
5915
5916 echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
5917echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
5918if test "${have_tls+set}" = set; then
5919 echo $ECHO_N "(cached) $ECHO_C" >&6
5920else
5921
5922 cat >conftest.$ac_ext <<_ACEOF
5923/* confdefs.h. */
5924_ACEOF
5925cat confdefs.h >>conftest.$ac_ext
5926cat >>conftest.$ac_ext <<_ACEOF
5927/* end confdefs.h. */
5928__thread int foo;
5929int
5930main ()
5931{
5932
5933 ;
5934 return 0;
5935}
5936_ACEOF
5937rm -f conftest.$ac_objext
5938if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5939 (eval $ac_compile) 2>conftest.er1
5940 ac_status=$?
5941 grep -v '^ *+' conftest.er1 >conftest.err
5942 rm -f conftest.er1
5943 cat conftest.err >&5
5944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945 (exit $ac_status); } &&
5946 { ac_try='test -z "$ac_c_werror_flag"
5947 || test ! -s conftest.err'
5948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5949 (eval $ac_try) 2>&5
5950 ac_status=$?
5951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952 (exit $ac_status); }; } &&
5953 { ac_try='test -s conftest.$ac_objext'
5954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5955 (eval $ac_try) 2>&5
5956 ac_status=$?
5957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958 (exit $ac_status); }; }; then
5959 have_tls=$enable_tls
5960else
5961 echo "$as_me: failed program was:" >&5
5962sed 's/^/| /' conftest.$ac_ext >&5
5963
5964have_tls=no
5965fi
5966rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5967fi
5968echo "$as_me:$LINENO: result: $have_tls" >&5
5969echo "${ECHO_T}$have_tls" >&6
5970 if test $have_tls = yes; then
5971
5972cat >>confdefs.h <<\_ACEOF
5973#define HAVE_TLS 1
5974_ACEOF
5975
5976 fi
5977
5978# See what sort of export controls are availible.
5979
5980 echo "$as_me:$LINENO: checking whether the target supports hidden visibility" >&5
5981echo $ECHO_N "checking whether the target supports hidden visibility... $ECHO_C" >&6
5982if test "${have_attribute_visibility+set}" = set; then
5983 echo $ECHO_N "(cached) $ECHO_C" >&6
5984else
5985
5986 save_CFLAGS="$CFLAGS"
5987 CFLAGS="$CFLAGS -Werror"
5988 cat >conftest.$ac_ext <<_ACEOF
5989/* confdefs.h. */
5990_ACEOF
5991cat confdefs.h >>conftest.$ac_ext
5992cat >>conftest.$ac_ext <<_ACEOF
5993/* end confdefs.h. */
5994void __attribute__((visibility("hidden"))) foo(void) { }
5995int
5996main ()
5997{
5998
5999 ;
6000 return 0;
6001}
6002_ACEOF
6003rm -f conftest.$ac_objext
6004if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6005 (eval $ac_compile) 2>conftest.er1
6006 ac_status=$?
6007 grep -v '^ *+' conftest.er1 >conftest.err
6008 rm -f conftest.er1
6009 cat conftest.err >&5
6010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011 (exit $ac_status); } &&
6012 { ac_try='test -z "$ac_c_werror_flag"
6013 || test ! -s conftest.err'
6014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6015 (eval $ac_try) 2>&5
6016 ac_status=$?
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); }; } &&
6019 { ac_try='test -s conftest.$ac_objext'
6020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6021 (eval $ac_try) 2>&5
6022 ac_status=$?
6023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024 (exit $ac_status); }; }; then
6025 have_attribute_visibility=yes
6026else
6027 echo "$as_me: failed program was:" >&5
6028sed 's/^/| /' conftest.$ac_ext >&5
6029
6030have_attribute_visibility=no
6031fi
6032rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6033 CFLAGS="$save_CFLAGS"
6034fi
6035echo "$as_me:$LINENO: result: $have_attribute_visibility" >&5
6036echo "${ECHO_T}$have_attribute_visibility" >&6
6037 if test $have_attribute_visibility = yes; then
6038
6039cat >>confdefs.h <<\_ACEOF
6040#define HAVE_ATTRIBUTE_VISIBILITY 1
6041_ACEOF
6042
6043 fi
6044
6045 echo "$as_me:$LINENO: checking whether the target supports dllexport" >&5
6046echo $ECHO_N "checking whether the target supports dllexport... $ECHO_C" >&6
6047if test "${have_attribute_dllexport+set}" = set; then
6048 echo $ECHO_N "(cached) $ECHO_C" >&6
6049else
6050
6051 save_CFLAGS="$CFLAGS"
6052 CFLAGS="$CFLAGS -Werror"
6053 cat >conftest.$ac_ext <<_ACEOF
6054/* confdefs.h. */
6055_ACEOF
6056cat confdefs.h >>conftest.$ac_ext
6057cat >>conftest.$ac_ext <<_ACEOF
6058/* end confdefs.h. */
6059void __attribute__((dllexport)) foo(void) { }
6060int
6061main ()
6062{
6063
6064 ;
6065 return 0;
6066}
6067_ACEOF
6068rm -f conftest.$ac_objext
6069if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6070 (eval $ac_compile) 2>conftest.er1
6071 ac_status=$?
6072 grep -v '^ *+' conftest.er1 >conftest.err
6073 rm -f conftest.er1
6074 cat conftest.err >&5
6075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6076 (exit $ac_status); } &&
6077 { ac_try='test -z "$ac_c_werror_flag"
6078 || test ! -s conftest.err'
6079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6080 (eval $ac_try) 2>&5
6081 ac_status=$?
6082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083 (exit $ac_status); }; } &&
6084 { ac_try='test -s conftest.$ac_objext'
6085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6086 (eval $ac_try) 2>&5
6087 ac_status=$?
6088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089 (exit $ac_status); }; }; then
6090 have_attribute_dllexport=yes
6091else
6092 echo "$as_me: failed program was:" >&5
6093sed 's/^/| /' conftest.$ac_ext >&5
6094
6095have_attribute_dllexport=no
6096fi
6097rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6098 CFLAGS="$save_CFLAGS"
6099fi
6100echo "$as_me:$LINENO: result: $have_attribute_dllexport" >&5
6101echo "${ECHO_T}$have_attribute_dllexport" >&6
6102 if test $have_attribute_dllexport = yes; then
6103
6104cat >>confdefs.h <<\_ACEOF
6105#define HAVE_ATTRIBUTE_DLLEXPORT 1
6106_ACEOF
6107
6108 fi
6109
6110 echo "$as_me:$LINENO: checking whether the target supports symbol aliases" >&5
6111echo $ECHO_N "checking whether the target supports symbol aliases... $ECHO_C" >&6
6112if test "${have_attribute_alias+set}" = set; then
6113 echo $ECHO_N "(cached) $ECHO_C" >&6
6114else
6115
6116 cat >conftest.$ac_ext <<_ACEOF
6117/* confdefs.h. */
6118_ACEOF
6119cat confdefs.h >>conftest.$ac_ext
6120cat >>conftest.$ac_ext <<_ACEOF
6121/* end confdefs.h. */
6122
6123#define ULP STR1(__USER_LABEL_PREFIX__)
6124#define STR1(x) STR2(x)
6125#define STR2(x) #x
6126void foo(void) { }
6127extern void bar(void) __attribute__((alias(ULP "foo")));
6128int
6129main ()
6130{
6131bar();
6132 ;
6133 return 0;
6134}
6135_ACEOF
6136rm -f conftest.$ac_objext conftest$ac_exeext
6137if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6138 (eval $ac_link) 2>conftest.er1
6139 ac_status=$?
6140 grep -v '^ *+' conftest.er1 >conftest.err
6141 rm -f conftest.er1
6142 cat conftest.err >&5
6143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144 (exit $ac_status); } &&
6145 { ac_try='test -z "$ac_c_werror_flag"
6146 || test ! -s conftest.err'
6147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6148 (eval $ac_try) 2>&5
6149 ac_status=$?
6150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151 (exit $ac_status); }; } &&
6152 { ac_try='test -s conftest$ac_exeext'
6153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6154 (eval $ac_try) 2>&5
6155 ac_status=$?
6156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6157 (exit $ac_status); }; }; then
6158 have_attribute_alias=yes
6159else
6160 echo "$as_me: failed program was:" >&5
6161sed 's/^/| /' conftest.$ac_ext >&5
6162
6163have_attribute_alias=no
6164fi
6165rm -f conftest.err conftest.$ac_objext \
6166 conftest$ac_exeext conftest.$ac_ext
6167fi
6168echo "$as_me:$LINENO: result: $have_attribute_alias" >&5
6169echo "${ECHO_T}$have_attribute_alias" >&6
6170 if test $have_attribute_alias = yes; then
6171
6172cat >>confdefs.h <<\_ACEOF
6173#define HAVE_ATTRIBUTE_ALIAS 1
6174_ACEOF
6175
6176 fi
6177
6178 # If we're not using GNU ld, then there's no point in even trying these
6179 # tests. Check for that first. We should have already tested for gld
6180 # by now (in libtool), but require it now just to be safe...
6181 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
6182 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
6183
6184
6185
6186 # The name set by libtool depends on the version of libtool. Shame on us
6187 # for depending on an impl detail, but c'est la vie. Older versions used
6188 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
6189 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
6190 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
6191 # set (hence we're using an older libtool), then set it.
6192 if test x${with_gnu_ld+set} != xset; then
6193 if test x${ac_cv_prog_gnu_ld+set} != xset; then
6194 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
6195 with_gnu_ld=no
6196 else
6197 with_gnu_ld=$ac_cv_prog_gnu_ld
6198 fi
6199 fi
6200
6201 # Start by getting the version number. I think the libtool test already
6202 # does some of this, but throws away the result.
6203
6204 ldver=`$LD --version 2>/dev/null | head -1 | \
6205 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
6206
6207 libgomp_gnu_ld_version=`echo $ldver | \
6208 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
6209
6210 # Set --gc-sections.
6211 if test "$with_gnu_ld" = "notbroken"; then
6212 # GNU ld it is! Joy and bunny rabbits!
6213
6214 # All these tests are for C++; save the language and the compiler flags.
6215 # Need to do this so that g++ won't try to link in libstdc++
6216 ac_test_CFLAGS="${CFLAGS+set}"
6217 ac_save_CFLAGS="$CFLAGS"
6218 CFLAGS='-x c++ -Wl,--gc-sections'
6219
6220 # Check for -Wl,--gc-sections
6221 # XXX This test is broken at the moment, as symbols required for linking
6222 # are now in libsupc++ (not built yet). In addition, this test has
6223 # cored on solaris in the past. In addition, --gc-sections doesn't
6224 # really work at the moment (keeps on discarding used sections, first
6225 # .eh_frame and now some of the glibc sections for iconv).
6226 # Bzzzzt. Thanks for playing, maybe next time.
6227 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
6228echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
6229 if test "$cross_compiling" = yes; then
6230 ac_sectionLDflags=yes
6231else
6232 cat >conftest.$ac_ext <<_ACEOF
6233/* confdefs.h. */
6234_ACEOF
6235cat confdefs.h >>conftest.$ac_ext
6236cat >>conftest.$ac_ext <<_ACEOF
6237/* end confdefs.h. */
6238
6239 int main(void)
6240 {
6241 try { throw 1; }
6242 catch (...) { };
6243 return 0;
6244 }
6245
6246_ACEOF
6247rm -f conftest$ac_exeext
6248if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6249 (eval $ac_link) 2>&5
6250 ac_status=$?
6251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6254 (eval $ac_try) 2>&5
6255 ac_status=$?
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); }; }; then
6258 ac_sectionLDflags=yes
6259else
6260 echo "$as_me: program exited with status $ac_status" >&5
6261echo "$as_me: failed program was:" >&5
6262sed 's/^/| /' conftest.$ac_ext >&5
6263
6264( exit $ac_status )
6265ac_sectionLDflags=no
6266fi
6267rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6268fi
6269 if test "$ac_test_CFLAGS" = set; then
6270 CFLAGS="$ac_save_CFLAGS"
6271 else
6272 # this is the suspicious part
6273 CFLAGS=''
6274 fi
6275 if test "$ac_sectionLDflags" = "yes"; then
6276 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
6277 fi
6278 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
6279echo "${ECHO_T}$ac_sectionLDflags" >&6
6280 fi
6281
6282 # Set linker optimization flags.
6283 if test x"$with_gnu_ld" = x"yes"; then
6284 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
6285 fi
6286
6287
6288
6289
6290
6291
6292 # Check whether --enable-symvers or --disable-symvers was given.
6293if test "${enable_symvers+set}" = set; then
6294 enableval="$enable_symvers"
6295
6296 case "$enableval" in
6297 yes|no|gnu) ;;
6298 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable symvers" >&5
6299echo "$as_me: error: Unknown argument to enable/disable symvers" >&2;}
6300 { (exit 1); exit 1; }; } ;;
6301 esac
6302
6303else
6304 enable_symvers=yes
6305fi;
6306
6307
6308# If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
6309# don't know enough about $LD to do tricks...
6310
6311# FIXME The following test is too strict, in theory.
6312if test $enable_shared = no ||
6313 test "x$LD" = x ||
6314 test x$libgomp_gnu_ld_version = x; then
6315 enable_symvers=no
6316fi
6317
6318# Check to see if libgcc_s exists, indicating that shared libgcc is possible.
6319if test $enable_symvers != no; then
6320 echo "$as_me:$LINENO: checking for shared libgcc" >&5
6321echo $ECHO_N "checking for shared libgcc... $ECHO_C" >&6
6322 ac_save_CFLAGS="$CFLAGS"
6323 CFLAGS=' -lgcc_s'
6324 cat >conftest.$ac_ext <<_ACEOF
6325/* confdefs.h. */
6326_ACEOF
6327cat confdefs.h >>conftest.$ac_ext
6328cat >>conftest.$ac_ext <<_ACEOF
6329/* end confdefs.h. */
6330
6331int
6332main ()
6333{
6334return 0;
6335 ;
6336 return 0;
6337}
6338_ACEOF
6339rm -f conftest.$ac_objext conftest$ac_exeext
6340if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6341 (eval $ac_link) 2>conftest.er1
6342 ac_status=$?
6343 grep -v '^ *+' conftest.er1 >conftest.err
6344 rm -f conftest.er1
6345 cat conftest.err >&5
6346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347 (exit $ac_status); } &&
6348 { ac_try='test -z "$ac_c_werror_flag"
6349 || test ! -s conftest.err'
6350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6351 (eval $ac_try) 2>&5
6352 ac_status=$?
6353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354 (exit $ac_status); }; } &&
6355 { ac_try='test -s conftest$ac_exeext'
6356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6357 (eval $ac_try) 2>&5
6358 ac_status=$?
6359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360 (exit $ac_status); }; }; then
6361 libgomp_shared_libgcc=yes
6362else
6363 echo "$as_me: failed program was:" >&5
6364sed 's/^/| /' conftest.$ac_ext >&5
6365
6366libgomp_shared_libgcc=no
6367fi
6368rm -f conftest.err conftest.$ac_objext \
6369 conftest$ac_exeext conftest.$ac_ext
6370 CFLAGS="$ac_save_CFLAGS"
6371 if test $libgomp_shared_libgcc = no; then
6372 cat > conftest.c <<EOF
6373int main (void) { return 0; }
6374EOF
6375 libgomp_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
6376 -shared -shared-libgcc -o conftest.so \
6377 conftest.c -v 2>&1 >/dev/null \
6378 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
6379 rm -f conftest.c conftest.so
6380 if test x${libgomp_libgcc_s_suffix+set} = xset; then
6381 CFLAGS=" -lgcc_s$libgomp_libgcc_s_suffix"
6382 cat >conftest.$ac_ext <<_ACEOF
6383/* confdefs.h. */
6384_ACEOF
6385cat confdefs.h >>conftest.$ac_ext
6386cat >>conftest.$ac_ext <<_ACEOF
6387/* end confdefs.h. */
6388
6389int
6390main ()
6391{
6392return 0;
6393 ;
6394 return 0;
6395}
6396_ACEOF
6397rm -f conftest.$ac_objext conftest$ac_exeext
6398if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6399 (eval $ac_link) 2>conftest.er1
6400 ac_status=$?
6401 grep -v '^ *+' conftest.er1 >conftest.err
6402 rm -f conftest.er1
6403 cat conftest.err >&5
6404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6405 (exit $ac_status); } &&
6406 { ac_try='test -z "$ac_c_werror_flag"
6407 || test ! -s conftest.err'
6408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6409 (eval $ac_try) 2>&5
6410 ac_status=$?
6411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412 (exit $ac_status); }; } &&
6413 { ac_try='test -s conftest$ac_exeext'
6414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6415 (eval $ac_try) 2>&5
6416 ac_status=$?
6417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6418 (exit $ac_status); }; }; then
6419 libgomp_shared_libgcc=yes
6420else
6421 echo "$as_me: failed program was:" >&5
6422sed 's/^/| /' conftest.$ac_ext >&5
6423
6424fi
6425rm -f conftest.err conftest.$ac_objext \
6426 conftest$ac_exeext conftest.$ac_ext
6427 CFLAGS="$ac_save_CFLAGS"
6428 fi
6429 fi
6430 echo "$as_me:$LINENO: result: $libgomp_shared_libgcc" >&5
6431echo "${ECHO_T}$libgomp_shared_libgcc" >&6
6432fi
6433
6434# For GNU ld, we need at least this version. The format is described in
6435# LIBGOMP_CHECK_LINKER_FEATURES above.
6436libgomp_min_gnu_ld_version=21400
6437# XXXXXXXXXXX libgomp_gnu_ld_version=21390
6438
6439# Check to see if unspecified "yes" value can win, given results above.
6440# Change "yes" into either "no" or a style name.
6441if test $enable_symvers = yes; then
6442 if test $with_gnu_ld = yes &&
6443 test $libgomp_shared_libgcc = yes;
6444 then
6445 if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
6446 enable_symvers=gnu
6447 else
6448 # The right tools, the right setup, but too old. Fallbacks?
6449 { echo "$as_me:$LINENO: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
6450echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
6451 { echo "$as_me:$LINENO: WARNING: === full symbol versioning support in this release of GCC." >&5
6452echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
6453 { echo "$as_me:$LINENO: WARNING: === You would need to upgrade your binutils to version" >&5
6454echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
6455 { echo "$as_me:$LINENO: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
6456echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
6457 if test $libgomp_gnu_ld_version -ge 21200 ; then
6458 # Globbing fix is present, proper block support is not.
6459 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
6460echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
6461 enable_symvers=no
6462 else
6463 # 2.11 or older.
6464 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
6465echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
6466 enable_symvers=no
6467 fi
6468 fi
6469 else
6470 # just fail for now
6471 { echo "$as_me:$LINENO: WARNING: === You have requested some kind of symbol versioning, but" >&5
6472echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
6473 { echo "$as_me:$LINENO: WARNING: === either you are not using a supported linker, or you are" >&5
6474echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
6475 { echo "$as_me:$LINENO: WARNING: === not building a shared libgcc_s (which is required)." >&5
6476echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
6477 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
6478echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
6479 enable_symvers=no
6480 fi
6481fi
6482
6483
6484
6485if test $enable_symvers != no; then
6486 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE=
6487 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='#'
6488else
6489 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#'
6490 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE=
6491fi
6492
6493{ echo "$as_me:$LINENO: versioning on shared library symbols is $enable_symvers" >&5
6494echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
6495
6496
6497# Get target configury.
6498. ${srcdir}/configure.tgt
6499CFLAGS="$save_CFLAGS $XCFLAGS"
6500
6501# Check for __sync_val_compare_and_swap, but only after the target has
6502# had a chance to set XCFLAGS.
6503
6504 echo "$as_me:$LINENO: checking whether the target supports __sync_*_compare_and_swap" >&5
6505echo $ECHO_N "checking whether the target supports __sync_*_compare_and_swap... $ECHO_C" >&6
6506if test "${have_sync_builtins+set}" = set; then
6507 echo $ECHO_N "(cached) $ECHO_C" >&6
6508else
6509
6510 cat >conftest.$ac_ext <<_ACEOF
6511/* confdefs.h. */
6512_ACEOF
6513cat confdefs.h >>conftest.$ac_ext
6514cat >>conftest.$ac_ext <<_ACEOF
6515/* end confdefs.h. */
6516
6517int
6518main ()
6519{
6520int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
6521 ;
6522 return 0;
6523}
6524_ACEOF
6525rm -f conftest.$ac_objext conftest$ac_exeext
6526if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6527 (eval $ac_link) 2>conftest.er1
6528 ac_status=$?
6529 grep -v '^ *+' conftest.er1 >conftest.err
6530 rm -f conftest.er1
6531 cat conftest.err >&5
6532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533 (exit $ac_status); } &&
6534 { ac_try='test -z "$ac_c_werror_flag"
6535 || test ! -s conftest.err'
6536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6537 (eval $ac_try) 2>&5
6538 ac_status=$?
6539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540 (exit $ac_status); }; } &&
6541 { ac_try='test -s conftest$ac_exeext'
6542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6543 (eval $ac_try) 2>&5
6544 ac_status=$?
6545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546 (exit $ac_status); }; }; then
6547 have_sync_builtins=yes
6548else
6549 echo "$as_me: failed program was:" >&5
6550sed 's/^/| /' conftest.$ac_ext >&5
6551
6552have_sync_builtins=no
6553fi
6554rm -f conftest.err conftest.$ac_objext \
6555 conftest$ac_exeext conftest.$ac_ext
6556fi
6557echo "$as_me:$LINENO: result: $have_sync_builtins" >&5
6558echo "${ECHO_T}$have_sync_builtins" >&6
6559 if test $have_sync_builtins = yes; then
6560
6561cat >>confdefs.h <<\_ACEOF
6562#define HAVE_SYNC_BUILTINS 1
6563_ACEOF
6564
6565 fi
6566
6567XCFLAGS="$XCFLAGS$XPCFLAGS"
6568
6569
6570
6571
6572
6573# Cleanup and exit.
6574CFLAGS="$save_CFLAGS"
6575cat >confcache <<\_ACEOF
6576# This file is a shell script that caches the results of configure
6577# tests run on this system so they can be shared between configure
6578# scripts and configure runs, see configure's option --config-cache.
6579# It is not useful on other systems. If it contains results you don't
6580# want to keep, you may remove or edit it.
6581#
6582# config.status only pays attention to the cache file if you give it
6583# the --recheck option to rerun configure.
6584#
6585# `ac_cv_env_foo' variables (set or unset) will be overridden when
6586# loading this file, other *unset* `ac_cv_foo' will be assigned the
6587# following values.
6588
6589_ACEOF
6590
6591# The following way of writing the cache mishandles newlines in values,
6592# but we know of no workaround that is simple, portable, and efficient.
6593# So, don't put newlines in cache variables' values.
6594# Ultrix sh set writes to stderr and can't be redirected directly,
6595# and sets the high bit in the cache file unless we assign to the vars.
6596{
6597 (set) 2>&1 |
6598 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6599 *ac_space=\ *)
6600 # `set' does not quote correctly, so add quotes (double-quote
6601 # substitution turns \\\\ into \\, and sed turns \\ into \).
6602 sed -n \
6603 "s/'/'\\\\''/g;
6604 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6605 ;;
6606 *)
6607 # `set' quotes correctly as required by POSIX, so do not add quotes.
6608 sed -n \
6609 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6610 ;;
6611 esac;
6612} |
6613 sed '
6614 t clear
6615 : clear
6616 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6617 t end
6618 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6619 : end' >>confcache
6620if diff $cache_file confcache >/dev/null 2>&1; then :; else
6621 if test -w $cache_file; then
6622 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6623 cat confcache >$cache_file
6624 else
6625 echo "not updating unwritable cache $cache_file"
6626 fi
6627fi
6628rm -f confcache
6629
6630if test ${multilib} = yes; then
6631 multilib_arg="--enable-multilib"
6632else
6633 multilib_arg=
6634fi
6635
6636# Set up the set of libraries that we need to link against for libgomp.
192a50ad 6637# Note that the GOMP_SELF_SPEC in gcc.c will force -pthread for -fopenmp,
953ff289
DN
6638# which will force linkage against -lpthread (or equivalent for the system).
6639# That's not 100% ideal, but about the best we can do easily.
6640if test $enable_shared = yes; then
6641 link_gomp="-lgomp %{static: $LIBS}"
6642else
6643 link_gomp="-lgomp $LIBS"
6644fi
6645
6646
6647
6648
6649if test "$ac_cv_fc_compiler_gnu" = yes; then
6650 USE_FORTRAN_TRUE=
6651 USE_FORTRAN_FALSE='#'
6652else
6653 USE_FORTRAN_TRUE='#'
6654 USE_FORTRAN_FALSE=
6655fi
6656
6657
6658 ac_config_files="$ac_config_files Makefile testsuite/Makefile libgomp.spec"
6659
6660cat >confcache <<\_ACEOF
6661# This file is a shell script that caches the results of configure
6662# tests run on this system so they can be shared between configure
6663# scripts and configure runs, see configure's option --config-cache.
6664# It is not useful on other systems. If it contains results you don't
6665# want to keep, you may remove or edit it.
6666#
6667# config.status only pays attention to the cache file if you give it
6668# the --recheck option to rerun configure.
6669#
6670# `ac_cv_env_foo' variables (set or unset) will be overridden when
6671# loading this file, other *unset* `ac_cv_foo' will be assigned the
6672# following values.
6673
6674_ACEOF
6675
6676# The following way of writing the cache mishandles newlines in values,
6677# but we know of no workaround that is simple, portable, and efficient.
6678# So, don't put newlines in cache variables' values.
6679# Ultrix sh set writes to stderr and can't be redirected directly,
6680# and sets the high bit in the cache file unless we assign to the vars.
6681{
6682 (set) 2>&1 |
6683 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6684 *ac_space=\ *)
6685 # `set' does not quote correctly, so add quotes (double-quote
6686 # substitution turns \\\\ into \\, and sed turns \\ into \).
6687 sed -n \
6688 "s/'/'\\\\''/g;
6689 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6690 ;;
6691 *)
6692 # `set' quotes correctly as required by POSIX, so do not add quotes.
6693 sed -n \
6694 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6695 ;;
6696 esac;
6697} |
6698 sed '
6699 t clear
6700 : clear
6701 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6702 t end
6703 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6704 : end' >>confcache
6705if diff $cache_file confcache >/dev/null 2>&1; then :; else
6706 if test -w $cache_file; then
6707 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6708 cat confcache >$cache_file
6709 else
6710 echo "not updating unwritable cache $cache_file"
6711 fi
6712fi
6713rm -f confcache
6714
6715test "x$prefix" = xNONE && prefix=$ac_default_prefix
6716# Let make expand exec_prefix.
6717test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6718
6719# VPATH may cause trouble with some makes, so we remove $(srcdir),
6720# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6721# trailing colons and then remove the whole line if VPATH becomes empty
6722# (actually we leave an empty line to preserve line numbers).
6723if test "x$srcdir" = x.; then
6724 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6725s/:*\$(srcdir):*/:/;
6726s/:*\${srcdir}:*/:/;
6727s/:*@srcdir@:*/:/;
6728s/^\([^=]*=[ ]*\):*/\1/;
6729s/:*$//;
6730s/^[^=]*=[ ]*$//;
6731}'
6732fi
6733
6734DEFS=-DHAVE_CONFIG_H
6735
6736ac_libobjs=
6737ac_ltlibobjs=
6738for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6739 # 1. Remove the extension, and $U if already installed.
6740 ac_i=`echo "$ac_i" |
6741 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6742 # 2. Add them.
6743 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6744 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6745done
6746LIBOBJS=$ac_libobjs
6747
6748LTLIBOBJS=$ac_ltlibobjs
6749
6750
6751if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6752 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
6753Usually this means the macro was only invoked conditionally." >&5
6754echo "$as_me: error: conditional \"AMDEP\" was never defined.
6755Usually this means the macro was only invoked conditionally." >&2;}
6756 { (exit 1); exit 1; }; }
6757fi
6758if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6759 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
6760Usually this means the macro was only invoked conditionally." >&5
6761echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
6762Usually this means the macro was only invoked conditionally." >&2;}
6763 { (exit 1); exit 1; }; }
6764fi
6765if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
6766 { { echo "$as_me:$LINENO: error: conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
6767Usually this means the macro was only invoked conditionally." >&5
6768echo "$as_me: error: conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
6769Usually this means the macro was only invoked conditionally." >&2;}
6770 { (exit 1); exit 1; }; }
6771fi
6772if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
6773 { { echo "$as_me:$LINENO: error: conditional \"USE_FORTRAN\" was never defined.
6774Usually this means the macro was only invoked conditionally." >&5
6775echo "$as_me: error: conditional \"USE_FORTRAN\" was never defined.
6776Usually this means the macro was only invoked conditionally." >&2;}
6777 { (exit 1); exit 1; }; }
6778fi
6779
6780: ${CONFIG_STATUS=./config.status}
6781ac_clean_files_save=$ac_clean_files
6782ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6783{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6784echo "$as_me: creating $CONFIG_STATUS" >&6;}
6785cat >$CONFIG_STATUS <<_ACEOF
6786#! $SHELL
6787# Generated by $as_me.
6788# Run this file to recreate the current configuration.
6789# Compiler output produced by configure, useful for debugging
6790# configure, is in config.log if it exists.
6791
6792debug=false
6793ac_cs_recheck=false
6794ac_cs_silent=false
6795SHELL=\${CONFIG_SHELL-$SHELL}
6796_ACEOF
6797
6798cat >>$CONFIG_STATUS <<\_ACEOF
6799## --------------------- ##
6800## M4sh Initialization. ##
6801## --------------------- ##
6802
6803# Be Bourne compatible
6804if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6805 emulate sh
6806 NULLCMD=:
6807 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6808 # is contrary to our usage. Disable this feature.
6809 alias -g '${1+"$@"}'='"$@"'
6810elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6811 set -o posix
6812fi
6813DUALCASE=1; export DUALCASE # for MKS sh
6814
6815# Support unset when possible.
6816if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6817 as_unset=unset
6818else
6819 as_unset=false
6820fi
6821
6822
6823# Work around bugs in pre-3.0 UWIN ksh.
6824$as_unset ENV MAIL MAILPATH
6825PS1='$ '
6826PS2='> '
6827PS4='+ '
6828
6829# NLS nuisances.
6830for as_var in \
6831 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6832 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6833 LC_TELEPHONE LC_TIME
6834do
6835 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6836 eval $as_var=C; export $as_var
6837 else
6838 $as_unset $as_var
6839 fi
6840done
6841
6842# Required to use basename.
6843if expr a : '\(a\)' >/dev/null 2>&1; then
6844 as_expr=expr
6845else
6846 as_expr=false
6847fi
6848
6849if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6850 as_basename=basename
6851else
6852 as_basename=false
6853fi
6854
6855
6856# Name of the executable.
6857as_me=`$as_basename "$0" ||
6858$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6859 X"$0" : 'X\(//\)$' \| \
6860 X"$0" : 'X\(/\)$' \| \
6861 . : '\(.\)' 2>/dev/null ||
6862echo X/"$0" |
6863 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6864 /^X\/\(\/\/\)$/{ s//\1/; q; }
6865 /^X\/\(\/\).*/{ s//\1/; q; }
6866 s/.*/./; q'`
6867
6868
6869# PATH needs CR, and LINENO needs CR and PATH.
6870# Avoid depending upon Character Ranges.
6871as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6872as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6873as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6874as_cr_digits='0123456789'
6875as_cr_alnum=$as_cr_Letters$as_cr_digits
6876
6877# The user is always right.
6878if test "${PATH_SEPARATOR+set}" != set; then
6879 echo "#! /bin/sh" >conf$$.sh
6880 echo "exit 0" >>conf$$.sh
6881 chmod +x conf$$.sh
6882 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6883 PATH_SEPARATOR=';'
6884 else
6885 PATH_SEPARATOR=:
6886 fi
6887 rm -f conf$$.sh
6888fi
6889
6890
6891 as_lineno_1=$LINENO
6892 as_lineno_2=$LINENO
6893 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6894 test "x$as_lineno_1" != "x$as_lineno_2" &&
6895 test "x$as_lineno_3" = "x$as_lineno_2" || {
6896 # Find who we are. Look in the path if we contain no path at all
6897 # relative or not.
6898 case $0 in
6899 *[\\/]* ) as_myself=$0 ;;
6900 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6901for as_dir in $PATH
6902do
6903 IFS=$as_save_IFS
6904 test -z "$as_dir" && as_dir=.
6905 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6906done
6907
6908 ;;
6909 esac
6910 # We did not find ourselves, most probably we were run as `sh COMMAND'
6911 # in which case we are not to be found in the path.
6912 if test "x$as_myself" = x; then
6913 as_myself=$0
6914 fi
6915 if test ! -f "$as_myself"; then
6916 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6917echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6918 { (exit 1); exit 1; }; }
6919 fi
6920 case $CONFIG_SHELL in
6921 '')
6922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6923for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6924do
6925 IFS=$as_save_IFS
6926 test -z "$as_dir" && as_dir=.
6927 for as_base in sh bash ksh sh5; do
6928 case $as_dir in
6929 /*)
6930 if ("$as_dir/$as_base" -c '
6931 as_lineno_1=$LINENO
6932 as_lineno_2=$LINENO
6933 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6934 test "x$as_lineno_1" != "x$as_lineno_2" &&
6935 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6936 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6937 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6938 CONFIG_SHELL=$as_dir/$as_base
6939 export CONFIG_SHELL
6940 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6941 fi;;
6942 esac
6943 done
6944done
6945;;
6946 esac
6947
6948 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6949 # uniformly replaced by the line number. The first 'sed' inserts a
6950 # line-number line before each line; the second 'sed' does the real
6951 # work. The second script uses 'N' to pair each line-number line
6952 # with the numbered line, and appends trailing '-' during
6953 # substitution so that $LINENO is not a special case at line end.
6954 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6955 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6956 sed '=' <$as_myself |
6957 sed '
6958 N
6959 s,$,-,
6960 : loop
6961 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6962 t loop
6963 s,-$,,
6964 s,^['$as_cr_digits']*\n,,
6965 ' >$as_me.lineno &&
6966 chmod +x $as_me.lineno ||
6967 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6968echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6969 { (exit 1); exit 1; }; }
6970
6971 # Don't try to exec as it changes $[0], causing all sort of problems
6972 # (the dirname of $[0] is not the place where we might find the
6973 # original and so on. Autoconf is especially sensible to this).
6974 . ./$as_me.lineno
6975 # Exit status is that of the last command.
6976 exit
6977}
6978
6979
6980case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6981 *c*,-n*) ECHO_N= ECHO_C='
6982' ECHO_T=' ' ;;
6983 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6984 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6985esac
6986
6987if expr a : '\(a\)' >/dev/null 2>&1; then
6988 as_expr=expr
6989else
6990 as_expr=false
6991fi
6992
6993rm -f conf$$ conf$$.exe conf$$.file
6994echo >conf$$.file
6995if ln -s conf$$.file conf$$ 2>/dev/null; then
6996 # We could just check for DJGPP; but this test a) works b) is more generic
6997 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6998 if test -f conf$$.exe; then
6999 # Don't use ln at all; we don't have any links
7000 as_ln_s='cp -p'
7001 else
7002 as_ln_s='ln -s'
7003 fi
7004elif ln conf$$.file conf$$ 2>/dev/null; then
7005 as_ln_s=ln
7006else
7007 as_ln_s='cp -p'
7008fi
7009rm -f conf$$ conf$$.exe conf$$.file
7010
7011if mkdir -p . 2>/dev/null; then
7012 as_mkdir_p=:
7013else
7014 test -d ./-p && rmdir ./-p
7015 as_mkdir_p=false
7016fi
7017
7018as_executable_p="test -f"
7019
7020# Sed expression to map a string onto a valid CPP name.
7021as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7022
7023# Sed expression to map a string onto a valid variable name.
7024as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7025
7026
7027# IFS
7028# We need space, tab and new line, in precisely that order.
7029as_nl='
7030'
7031IFS=" $as_nl"
7032
7033# CDPATH.
7034$as_unset CDPATH
7035
7036exec 6>&1
7037
7038# Open the log real soon, to keep \$[0] and so on meaningful, and to
7039# report actual input values of CONFIG_FILES etc. instead of their
7040# values after options handling. Logging --version etc. is OK.
7041exec 5>>config.log
7042{
7043 echo
7044 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7045## Running $as_me. ##
7046_ASBOX
7047} >&5
7048cat >&5 <<_CSEOF
7049
7050This file was extended by GNU OpenMP Runtime Library $as_me 1.0, which was
7051generated by GNU Autoconf 2.59. Invocation command line was
7052
7053 CONFIG_FILES = $CONFIG_FILES
7054 CONFIG_HEADERS = $CONFIG_HEADERS
7055 CONFIG_LINKS = $CONFIG_LINKS
7056 CONFIG_COMMANDS = $CONFIG_COMMANDS
7057 $ $0 $@
7058
7059_CSEOF
7060echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7061echo >&5
7062_ACEOF
7063
7064# Files that config.status was made for.
7065if test -n "$ac_config_files"; then
7066 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7067fi
7068
7069if test -n "$ac_config_headers"; then
7070 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7071fi
7072
7073if test -n "$ac_config_links"; then
7074 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7075fi
7076
7077if test -n "$ac_config_commands"; then
7078 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7079fi
7080
7081cat >>$CONFIG_STATUS <<\_ACEOF
7082
7083ac_cs_usage="\
7084\`$as_me' instantiates files from templates according to the
7085current configuration.
7086
7087Usage: $0 [OPTIONS] [FILE]...
7088
7089 -h, --help print this help, then exit
7090 -V, --version print version number, then exit
7091 -q, --quiet do not print progress messages
7092 -d, --debug don't remove temporary files
7093 --recheck update $as_me by reconfiguring in the same conditions
7094 --file=FILE[:TEMPLATE]
7095 instantiate the configuration file FILE
7096 --header=FILE[:TEMPLATE]
7097 instantiate the configuration header FILE
7098
7099Configuration files:
7100$config_files
7101
7102Configuration headers:
7103$config_headers
7104
7105Configuration commands:
7106$config_commands
7107
7108Report bugs to <bug-autoconf@gnu.org>."
7109_ACEOF
7110
7111cat >>$CONFIG_STATUS <<_ACEOF
7112ac_cs_version="\\
7113GNU OpenMP Runtime Library config.status 1.0
7114configured by $0, generated by GNU Autoconf 2.59,
7115 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7116
7117Copyright (C) 2003 Free Software Foundation, Inc.
7118This config.status script is free software; the Free Software Foundation
7119gives unlimited permission to copy, distribute and modify it."
7120srcdir=$srcdir
7121INSTALL="$INSTALL"
7122_ACEOF
7123
7124cat >>$CONFIG_STATUS <<\_ACEOF
7125# If no file are specified by the user, then we need to provide default
7126# value. By we need to know if files were specified by the user.
7127ac_need_defaults=:
7128while test $# != 0
7129do
7130 case $1 in
7131 --*=*)
7132 ac_option=`expr "x$1" : 'x\([^=]*\)='`
7133 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7134 ac_shift=:
7135 ;;
7136 -*)
7137 ac_option=$1
7138 ac_optarg=$2
7139 ac_shift=shift
7140 ;;
7141 *) # This is not an option, so the user has probably given explicit
7142 # arguments.
7143 ac_option=$1
7144 ac_need_defaults=false;;
7145 esac
7146
7147 case $ac_option in
7148 # Handling of the options.
7149_ACEOF
7150cat >>$CONFIG_STATUS <<\_ACEOF
7151 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7152 ac_cs_recheck=: ;;
7153 --version | --vers* | -V )
7154 echo "$ac_cs_version"; exit 0 ;;
7155 --he | --h)
7156 # Conflict between --help and --header
7157 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7158Try \`$0 --help' for more information." >&5
7159echo "$as_me: error: ambiguous option: $1
7160Try \`$0 --help' for more information." >&2;}
7161 { (exit 1); exit 1; }; };;
7162 --help | --hel | -h )
7163 echo "$ac_cs_usage"; exit 0 ;;
7164 --debug | --d* | -d )
7165 debug=: ;;
7166 --file | --fil | --fi | --f )
7167 $ac_shift
7168 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7169 ac_need_defaults=false;;
7170 --header | --heade | --head | --hea )
7171 $ac_shift
7172 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7173 ac_need_defaults=false;;
7174 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7175 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7176 ac_cs_silent=: ;;
7177
7178 # This is an error.
7179 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7180Try \`$0 --help' for more information." >&5
7181echo "$as_me: error: unrecognized option: $1
7182Try \`$0 --help' for more information." >&2;}
7183 { (exit 1); exit 1; }; } ;;
7184
7185 *) ac_config_targets="$ac_config_targets $1" ;;
7186
7187 esac
7188 shift
7189done
7190
7191ac_configure_extra_args=
7192
7193if $ac_cs_silent; then
7194 exec 6>/dev/null
7195 ac_configure_extra_args="$ac_configure_extra_args --silent"
7196fi
7197
7198_ACEOF
7199cat >>$CONFIG_STATUS <<_ACEOF
7200if \$ac_cs_recheck; then
7201 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7202 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7203fi
7204
7205_ACEOF
7206
7207cat >>$CONFIG_STATUS <<_ACEOF
7208#
7209# INIT-COMMANDS section.
7210#
7211
7212
7213srcdir="$srcdir"
7214host="$host"
7215target="$target"
7216with_multisubdir="$with_multisubdir"
7217with_multisrctop="$with_multisrctop"
7218with_target_subdir="$with_target_subdir"
7219ac_configure_args="${multilib_arg} ${ac_configure_args}"
7220multi_basedir="$multi_basedir"
7221CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
7222CC="$CC"
7223AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
7224
7225_ACEOF
7226
7227
7228
7229cat >>$CONFIG_STATUS <<\_ACEOF
7230for ac_config_target in $ac_config_targets
7231do
7232 case "$ac_config_target" in
7233 # Handling of arguments.
7234 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7235 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
7236 "libgomp.spec" ) CONFIG_FILES="$CONFIG_FILES libgomp.spec" ;;
7237 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
7238 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7239 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7240 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7241echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7242 { (exit 1); exit 1; }; };;
7243 esac
7244done
7245
7246# If the user did not use the arguments to specify the items to instantiate,
7247# then the envvar interface is used. Set only those that are not.
7248# We use the long form for the default assignment because of an extremely
7249# bizarre bug on SunOS 4.1.3.
7250if $ac_need_defaults; then
7251 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7252 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7253 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7254fi
7255
7256# Have a temporary directory for convenience. Make it in the build tree
7257# simply because there is no reason to put it here, and in addition,
7258# creating and moving files from /tmp can sometimes cause problems.
7259# Create a temporary directory, and hook for its removal unless debugging.
7260$debug ||
7261{
7262 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7263 trap '{ (exit 1); exit 1; }' 1 2 13 15
7264}
7265
7266# Create a (secure) tmp directory for tmp files.
7267
7268{
7269 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7270 test -n "$tmp" && test -d "$tmp"
7271} ||
7272{
7273 tmp=./confstat$$-$RANDOM
7274 (umask 077 && mkdir $tmp)
7275} ||
7276{
7277 echo "$me: cannot create a temporary directory in ." >&2
7278 { (exit 1); exit 1; }
7279}
7280
7281_ACEOF
7282
7283cat >>$CONFIG_STATUS <<_ACEOF
7284
7285#
7286# CONFIG_FILES section.
7287#
7288
7289# No need to generate the scripts if there are no CONFIG_FILES.
7290# This happens for instance when ./config.status config.h
7291if test -n "\$CONFIG_FILES"; then
7292 # Protect against being on the right side of a sed subst in config.status.
7293 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7294 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7295s,@SHELL@,$SHELL,;t t
7296s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7297s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7298s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7299s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7300s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7301s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7302s,@exec_prefix@,$exec_prefix,;t t
7303s,@prefix@,$prefix,;t t
7304s,@program_transform_name@,$program_transform_name,;t t
7305s,@bindir@,$bindir,;t t
7306s,@sbindir@,$sbindir,;t t
7307s,@libexecdir@,$libexecdir,;t t
7308s,@datadir@,$datadir,;t t
7309s,@sysconfdir@,$sysconfdir,;t t
7310s,@sharedstatedir@,$sharedstatedir,;t t
7311s,@localstatedir@,$localstatedir,;t t
7312s,@libdir@,$libdir,;t t
7313s,@includedir@,$includedir,;t t
7314s,@oldincludedir@,$oldincludedir,;t t
7315s,@infodir@,$infodir,;t t
7316s,@mandir@,$mandir,;t t
7317s,@build_alias@,$build_alias,;t t
7318s,@host_alias@,$host_alias,;t t
7319s,@target_alias@,$target_alias,;t t
7320s,@DEFS@,$DEFS,;t t
7321s,@ECHO_C@,$ECHO_C,;t t
7322s,@ECHO_N@,$ECHO_N,;t t
7323s,@ECHO_T@,$ECHO_T,;t t
7324s,@LIBS@,$LIBS,;t t
7325s,@build@,$build,;t t
7326s,@build_cpu@,$build_cpu,;t t
7327s,@build_vendor@,$build_vendor,;t t
7328s,@build_os@,$build_os,;t t
7329s,@host@,$host,;t t
7330s,@host_cpu@,$host_cpu,;t t
7331s,@host_vendor@,$host_vendor,;t t
7332s,@host_os@,$host_os,;t t
7333s,@target@,$target,;t t
7334s,@target_cpu@,$target_cpu,;t t
7335s,@target_vendor@,$target_vendor,;t t
7336s,@target_os@,$target_os,;t t
7337s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7338s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7339s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7340s,@CYGPATH_W@,$CYGPATH_W,;t t
7341s,@PACKAGE@,$PACKAGE,;t t
7342s,@VERSION@,$VERSION,;t t
7343s,@ACLOCAL@,$ACLOCAL,;t t
7344s,@AUTOCONF@,$AUTOCONF,;t t
7345s,@AUTOMAKE@,$AUTOMAKE,;t t
7346s,@AUTOHEADER@,$AUTOHEADER,;t t
7347s,@MAKEINFO@,$MAKEINFO,;t t
7348s,@install_sh@,$install_sh,;t t
7349s,@STRIP@,$STRIP,;t t
7350s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
7351s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
7352s,@mkdir_p@,$mkdir_p,;t t
7353s,@AWK@,$AWK,;t t
7354s,@SET_MAKE@,$SET_MAKE,;t t
7355s,@am__leading_dot@,$am__leading_dot,;t t
7356s,@AMTAR@,$AMTAR,;t t
7357s,@am__tar@,$am__tar,;t t
7358s,@am__untar@,$am__untar,;t t
7359s,@multi_basedir@,$multi_basedir,;t t
7360s,@toolexecdir@,$toolexecdir,;t t
7361s,@toolexeclibdir@,$toolexeclibdir,;t t
7362s,@CC@,$CC,;t t
7363s,@ac_ct_CC@,$ac_ct_CC,;t t
7364s,@EXEEXT@,$EXEEXT,;t t
7365s,@OBJEXT@,$OBJEXT,;t t
7366s,@DEPDIR@,$DEPDIR,;t t
7367s,@am__include@,$am__include,;t t
7368s,@am__quote@,$am__quote,;t t
7369s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
7370s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
7371s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
7372s,@CCDEPMODE@,$CCDEPMODE,;t t
7373s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
7374s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
7375s,@CFLAGS@,$CFLAGS,;t t
7376s,@AR@,$AR,;t t
7377s,@ac_ct_AR@,$ac_ct_AR,;t t
7378s,@RANLIB@,$RANLIB,;t t
7379s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7380s,@PERL@,$PERL,;t t
7381s,@LN_S@,$LN_S,;t t
7382s,@LIBTOOL@,$LIBTOOL,;t t
7383s,@enable_shared@,$enable_shared,;t t
7384s,@enable_static@,$enable_static,;t t
7385s,@FC@,$FC,;t t
7386s,@FCFLAGS@,$FCFLAGS,;t t
7387s,@LDFLAGS@,$LDFLAGS,;t t
7388s,@ac_ct_FC@,$ac_ct_FC,;t t
7389s,@libtool_VERSION@,$libtool_VERSION,;t t
7390s,@CPP@,$CPP,;t t
7391s,@CPPFLAGS@,$CPPFLAGS,;t t
7392s,@EGREP@,$EGREP,;t t
7393s,@SECTION_LDFLAGS@,$SECTION_LDFLAGS,;t t
7394s,@OPT_LDFLAGS@,$OPT_LDFLAGS,;t t
7395s,@LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE@,$LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE,;t t
7396s,@LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE@,$LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE,;t t
7397s,@config_path@,$config_path,;t t
7398s,@XCFLAGS@,$XCFLAGS,;t t
7399s,@XLDFLAGS@,$XLDFLAGS,;t t
7400s,@link_gomp@,$link_gomp,;t t
7401s,@USE_FORTRAN_TRUE@,$USE_FORTRAN_TRUE,;t t
7402s,@USE_FORTRAN_FALSE@,$USE_FORTRAN_FALSE,;t t
7403s,@LIBOBJS@,$LIBOBJS,;t t
7404s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7405CEOF
7406
7407_ACEOF
7408
7409 cat >>$CONFIG_STATUS <<\_ACEOF
7410 # Split the substitutions into bite-sized pieces for seds with
7411 # small command number limits, like on Digital OSF/1 and HP-UX.
7412 ac_max_sed_lines=48
7413 ac_sed_frag=1 # Number of current file.
7414 ac_beg=1 # First line for current file.
7415 ac_end=$ac_max_sed_lines # Line after last line for current file.
7416 ac_more_lines=:
7417 ac_sed_cmds=
7418 while $ac_more_lines; do
7419 if test $ac_beg -gt 1; then
7420 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7421 else
7422 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7423 fi
7424 if test ! -s $tmp/subs.frag; then
7425 ac_more_lines=false
7426 else
7427 # The purpose of the label and of the branching condition is to
7428 # speed up the sed processing (if there are no `@' at all, there
7429 # is no need to browse any of the substitutions).
7430 # These are the two extra sed commands mentioned above.
7431 (echo ':t
7432 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7433 if test -z "$ac_sed_cmds"; then
7434 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7435 else
7436 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7437 fi
7438 ac_sed_frag=`expr $ac_sed_frag + 1`
7439 ac_beg=$ac_end
7440 ac_end=`expr $ac_end + $ac_max_sed_lines`
7441 fi
7442 done
7443 if test -z "$ac_sed_cmds"; then
7444 ac_sed_cmds=cat
7445 fi
7446fi # test -n "$CONFIG_FILES"
7447
7448_ACEOF
7449cat >>$CONFIG_STATUS <<\_ACEOF
7450for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7451 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7452 case $ac_file in
7453 - | *:- | *:-:* ) # input from stdin
7454 cat >$tmp/stdin
7455 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7456 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7457 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7458 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7459 * ) ac_file_in=$ac_file.in ;;
7460 esac
7461
7462 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7463 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7464$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7465 X"$ac_file" : 'X\(//\)[^/]' \| \
7466 X"$ac_file" : 'X\(//\)$' \| \
7467 X"$ac_file" : 'X\(/\)' \| \
7468 . : '\(.\)' 2>/dev/null ||
7469echo X"$ac_file" |
7470 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7471 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7472 /^X\(\/\/\)$/{ s//\1/; q; }
7473 /^X\(\/\).*/{ s//\1/; q; }
7474 s/.*/./; q'`
7475 { if $as_mkdir_p; then
7476 mkdir -p "$ac_dir"
7477 else
7478 as_dir="$ac_dir"
7479 as_dirs=
7480 while test ! -d "$as_dir"; do
7481 as_dirs="$as_dir $as_dirs"
7482 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7483$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7484 X"$as_dir" : 'X\(//\)[^/]' \| \
7485 X"$as_dir" : 'X\(//\)$' \| \
7486 X"$as_dir" : 'X\(/\)' \| \
7487 . : '\(.\)' 2>/dev/null ||
7488echo X"$as_dir" |
7489 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7490 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7491 /^X\(\/\/\)$/{ s//\1/; q; }
7492 /^X\(\/\).*/{ s//\1/; q; }
7493 s/.*/./; q'`
7494 done
7495 test ! -n "$as_dirs" || mkdir $as_dirs
7496 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7497echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7498 { (exit 1); exit 1; }; }; }
7499
7500 ac_builddir=.
7501
7502if test "$ac_dir" != .; then
7503 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7504 # A "../" for each directory in $ac_dir_suffix.
7505 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7506else
7507 ac_dir_suffix= ac_top_builddir=
7508fi
7509
7510case $srcdir in
7511 .) # No --srcdir option. We are building in place.
7512 ac_srcdir=.
7513 if test -z "$ac_top_builddir"; then
7514 ac_top_srcdir=.
7515 else
7516 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7517 fi ;;
7518 [\\/]* | ?:[\\/]* ) # Absolute path.
7519 ac_srcdir=$srcdir$ac_dir_suffix;
7520 ac_top_srcdir=$srcdir ;;
7521 *) # Relative path.
7522 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7523 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7524esac
7525
7526# Do not use `cd foo && pwd` to compute absolute paths, because
7527# the directories may not exist.
7528case `pwd` in
7529.) ac_abs_builddir="$ac_dir";;
7530*)
7531 case "$ac_dir" in
7532 .) ac_abs_builddir=`pwd`;;
7533 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7534 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7535 esac;;
7536esac
7537case $ac_abs_builddir in
7538.) ac_abs_top_builddir=${ac_top_builddir}.;;
7539*)
7540 case ${ac_top_builddir}. in
7541 .) ac_abs_top_builddir=$ac_abs_builddir;;
7542 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7543 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7544 esac;;
7545esac
7546case $ac_abs_builddir in
7547.) ac_abs_srcdir=$ac_srcdir;;
7548*)
7549 case $ac_srcdir in
7550 .) ac_abs_srcdir=$ac_abs_builddir;;
7551 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7552 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7553 esac;;
7554esac
7555case $ac_abs_builddir in
7556.) ac_abs_top_srcdir=$ac_top_srcdir;;
7557*)
7558 case $ac_top_srcdir in
7559 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7560 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7561 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7562 esac;;
7563esac
7564
7565
7566 case $INSTALL in
7567 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7568 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7569 esac
7570
7571 if test x"$ac_file" != x-; then
7572 { echo "$as_me:$LINENO: creating $ac_file" >&5
7573echo "$as_me: creating $ac_file" >&6;}
7574 rm -f "$ac_file"
7575 fi
7576 # Let's still pretend it is `configure' which instantiates (i.e., don't
7577 # use $as_me), people would be surprised to read:
7578 # /* config.h. Generated by config.status. */
7579 if test x"$ac_file" = x-; then
7580 configure_input=
7581 else
7582 configure_input="$ac_file. "
7583 fi
7584 configure_input=$configure_input"Generated from `echo $ac_file_in |
7585 sed 's,.*/,,'` by configure."
7586
7587 # First look for the input files in the build tree, otherwise in the
7588 # src tree.
7589 ac_file_inputs=`IFS=:
7590 for f in $ac_file_in; do
7591 case $f in
7592 -) echo $tmp/stdin ;;
7593 [\\/$]*)
7594 # Absolute (can't be DOS-style, as IFS=:)
7595 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7596echo "$as_me: error: cannot find input file: $f" >&2;}
7597 { (exit 1); exit 1; }; }
7598 echo "$f";;
7599 *) # Relative
7600 if test -f "$f"; then
7601 # Build tree
7602 echo "$f"
7603 elif test -f "$srcdir/$f"; then
7604 # Source tree
7605 echo "$srcdir/$f"
7606 else
7607 # /dev/null tree
7608 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7609echo "$as_me: error: cannot find input file: $f" >&2;}
7610 { (exit 1); exit 1; }; }
7611 fi;;
7612 esac
7613 done` || { (exit 1); exit 1; }
7614_ACEOF
7615cat >>$CONFIG_STATUS <<_ACEOF
7616 sed "$ac_vpsub
7617$extrasub
7618_ACEOF
7619cat >>$CONFIG_STATUS <<\_ACEOF
7620:t
7621/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7622s,@configure_input@,$configure_input,;t t
7623s,@srcdir@,$ac_srcdir,;t t
7624s,@abs_srcdir@,$ac_abs_srcdir,;t t
7625s,@top_srcdir@,$ac_top_srcdir,;t t
7626s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7627s,@builddir@,$ac_builddir,;t t
7628s,@abs_builddir@,$ac_abs_builddir,;t t
7629s,@top_builddir@,$ac_top_builddir,;t t
7630s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7631s,@INSTALL@,$ac_INSTALL,;t t
7632" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7633 rm -f $tmp/stdin
7634 if test x"$ac_file" != x-; then
7635 mv $tmp/out $ac_file
7636 else
7637 cat $tmp/out
7638 rm -f $tmp/out
7639 fi
7640
7641done
7642_ACEOF
7643cat >>$CONFIG_STATUS <<\_ACEOF
7644
7645#
7646# CONFIG_HEADER section.
7647#
7648
7649# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7650# NAME is the cpp macro being defined and VALUE is the value it is being given.
7651#
7652# ac_d sets the value in "#define NAME VALUE" lines.
7653ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7654ac_dB='[ ].*$,\1#\2'
7655ac_dC=' '
7656ac_dD=',;t'
7657# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7658ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7659ac_uB='$,\1#\2define\3'
7660ac_uC=' '
7661ac_uD=',;t'
7662
7663for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7664 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7665 case $ac_file in
7666 - | *:- | *:-:* ) # input from stdin
7667 cat >$tmp/stdin
7668 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7669 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7670 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7671 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7672 * ) ac_file_in=$ac_file.in ;;
7673 esac
7674
7675 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7676echo "$as_me: creating $ac_file" >&6;}
7677
7678 # First look for the input files in the build tree, otherwise in the
7679 # src tree.
7680 ac_file_inputs=`IFS=:
7681 for f in $ac_file_in; do
7682 case $f in
7683 -) echo $tmp/stdin ;;
7684 [\\/$]*)
7685 # Absolute (can't be DOS-style, as IFS=:)
7686 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7687echo "$as_me: error: cannot find input file: $f" >&2;}
7688 { (exit 1); exit 1; }; }
7689 # Do quote $f, to prevent DOS paths from being IFS'd.
7690 echo "$f";;
7691 *) # Relative
7692 if test -f "$f"; then
7693 # Build tree
7694 echo "$f"
7695 elif test -f "$srcdir/$f"; then
7696 # Source tree
7697 echo "$srcdir/$f"
7698 else
7699 # /dev/null tree
7700 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7701echo "$as_me: error: cannot find input file: $f" >&2;}
7702 { (exit 1); exit 1; }; }
7703 fi;;
7704 esac
7705 done` || { (exit 1); exit 1; }
7706 # Remove the trailing spaces.
7707 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7708
7709_ACEOF
7710
7711# Transform confdefs.h into two sed scripts, `conftest.defines' and
7712# `conftest.undefs', that substitutes the proper values into
7713# config.h.in to produce config.h. The first handles `#define'
7714# templates, and the second `#undef' templates.
7715# And first: Protect against being on the right side of a sed subst in
7716# config.status. Protect against being in an unquoted here document
7717# in config.status.
7718rm -f conftest.defines conftest.undefs
7719# Using a here document instead of a string reduces the quoting nightmare.
7720# Putting comments in sed scripts is not portable.
7721#
7722# `end' is used to avoid that the second main sed command (meant for
7723# 0-ary CPP macros) applies to n-ary macro definitions.
7724# See the Autoconf documentation for `clear'.
7725cat >confdef2sed.sed <<\_ACEOF
7726s/[\\&,]/\\&/g
7727s,[\\$`],\\&,g
7728t clear
7729: clear
7730s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7731t end
7732s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7733: end
7734_ACEOF
7735# If some macros were called several times there might be several times
7736# the same #defines, which is useless. Nevertheless, we may not want to
7737# sort them, since we want the *last* AC-DEFINE to be honored.
7738uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7739sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7740rm -f confdef2sed.sed
7741
7742# This sed command replaces #undef with comments. This is necessary, for
7743# example, in the case of _POSIX_SOURCE, which is predefined and required
7744# on some systems where configure will not decide to define it.
7745cat >>conftest.undefs <<\_ACEOF
7746s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7747_ACEOF
7748
7749# Break up conftest.defines because some shells have a limit on the size
7750# of here documents, and old seds have small limits too (100 cmds).
7751echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7752echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7753echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7754echo ' :' >>$CONFIG_STATUS
7755rm -f conftest.tail
7756while grep . conftest.defines >/dev/null
7757do
7758 # Write a limited-size here document to $tmp/defines.sed.
7759 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7760 # Speed up: don't consider the non `#define' lines.
7761 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7762 # Work around the forget-to-reset-the-flag bug.
7763 echo 't clr' >>$CONFIG_STATUS
7764 echo ': clr' >>$CONFIG_STATUS
7765 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7766 echo 'CEOF
7767 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7768 rm -f $tmp/in
7769 mv $tmp/out $tmp/in
7770' >>$CONFIG_STATUS
7771 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7772 rm -f conftest.defines
7773 mv conftest.tail conftest.defines
7774done
7775rm -f conftest.defines
7776echo ' fi # grep' >>$CONFIG_STATUS
7777echo >>$CONFIG_STATUS
7778
7779# Break up conftest.undefs because some shells have a limit on the size
7780# of here documents, and old seds have small limits too (100 cmds).
7781echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7782rm -f conftest.tail
7783while grep . conftest.undefs >/dev/null
7784do
7785 # Write a limited-size here document to $tmp/undefs.sed.
7786 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7787 # Speed up: don't consider the non `#undef'
7788 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7789 # Work around the forget-to-reset-the-flag bug.
7790 echo 't clr' >>$CONFIG_STATUS
7791 echo ': clr' >>$CONFIG_STATUS
7792 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7793 echo 'CEOF
7794 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7795 rm -f $tmp/in
7796 mv $tmp/out $tmp/in
7797' >>$CONFIG_STATUS
7798 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7799 rm -f conftest.undefs
7800 mv conftest.tail conftest.undefs
7801done
7802rm -f conftest.undefs
7803
7804cat >>$CONFIG_STATUS <<\_ACEOF
7805 # Let's still pretend it is `configure' which instantiates (i.e., don't
7806 # use $as_me), people would be surprised to read:
7807 # /* config.h. Generated by config.status. */
7808 if test x"$ac_file" = x-; then
7809 echo "/* Generated by configure. */" >$tmp/config.h
7810 else
7811 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7812 fi
7813 cat $tmp/in >>$tmp/config.h
7814 rm -f $tmp/in
7815 if test x"$ac_file" != x-; then
7816 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7817 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7818echo "$as_me: $ac_file is unchanged" >&6;}
7819 else
7820 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7821$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7822 X"$ac_file" : 'X\(//\)[^/]' \| \
7823 X"$ac_file" : 'X\(//\)$' \| \
7824 X"$ac_file" : 'X\(/\)' \| \
7825 . : '\(.\)' 2>/dev/null ||
7826echo X"$ac_file" |
7827 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7828 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7829 /^X\(\/\/\)$/{ s//\1/; q; }
7830 /^X\(\/\).*/{ s//\1/; q; }
7831 s/.*/./; q'`
7832 { if $as_mkdir_p; then
7833 mkdir -p "$ac_dir"
7834 else
7835 as_dir="$ac_dir"
7836 as_dirs=
7837 while test ! -d "$as_dir"; do
7838 as_dirs="$as_dir $as_dirs"
7839 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7840$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7841 X"$as_dir" : 'X\(//\)[^/]' \| \
7842 X"$as_dir" : 'X\(//\)$' \| \
7843 X"$as_dir" : 'X\(/\)' \| \
7844 . : '\(.\)' 2>/dev/null ||
7845echo X"$as_dir" |
7846 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7847 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7848 /^X\(\/\/\)$/{ s//\1/; q; }
7849 /^X\(\/\).*/{ s//\1/; q; }
7850 s/.*/./; q'`
7851 done
7852 test ! -n "$as_dirs" || mkdir $as_dirs
7853 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7854echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7855 { (exit 1); exit 1; }; }; }
7856
7857 rm -f $ac_file
7858 mv $tmp/config.h $ac_file
7859 fi
7860 else
7861 cat $tmp/config.h
7862 rm -f $tmp/config.h
7863 fi
7864# Compute $ac_file's index in $config_headers.
7865_am_stamp_count=1
7866for _am_header in $config_headers :; do
7867 case $_am_header in
7868 $ac_file | $ac_file:* )
7869 break ;;
7870 * )
7871 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7872 esac
7873done
7874echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
7875$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7876 X$ac_file : 'X\(//\)[^/]' \| \
7877 X$ac_file : 'X\(//\)$' \| \
7878 X$ac_file : 'X\(/\)' \| \
7879 . : '\(.\)' 2>/dev/null ||
7880echo X$ac_file |
7881 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7882 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7883 /^X\(\/\/\)$/{ s//\1/; q; }
7884 /^X\(\/\).*/{ s//\1/; q; }
7885 s/.*/./; q'`/stamp-h$_am_stamp_count
7886done
7887_ACEOF
7888cat >>$CONFIG_STATUS <<\_ACEOF
7889
7890#
7891# CONFIG_COMMANDS section.
7892#
7893for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
7894 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7895 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7896 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
7897$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7898 X"$ac_dest" : 'X\(//\)[^/]' \| \
7899 X"$ac_dest" : 'X\(//\)$' \| \
7900 X"$ac_dest" : 'X\(/\)' \| \
7901 . : '\(.\)' 2>/dev/null ||
7902echo X"$ac_dest" |
7903 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7904 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7905 /^X\(\/\/\)$/{ s//\1/; q; }
7906 /^X\(\/\).*/{ s//\1/; q; }
7907 s/.*/./; q'`
7908 { if $as_mkdir_p; then
7909 mkdir -p "$ac_dir"
7910 else
7911 as_dir="$ac_dir"
7912 as_dirs=
7913 while test ! -d "$as_dir"; do
7914 as_dirs="$as_dir $as_dirs"
7915 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7916$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7917 X"$as_dir" : 'X\(//\)[^/]' \| \
7918 X"$as_dir" : 'X\(//\)$' \| \
7919 X"$as_dir" : 'X\(/\)' \| \
7920 . : '\(.\)' 2>/dev/null ||
7921echo X"$as_dir" |
7922 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7923 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7924 /^X\(\/\/\)$/{ s//\1/; q; }
7925 /^X\(\/\).*/{ s//\1/; q; }
7926 s/.*/./; q'`
7927 done
7928 test ! -n "$as_dirs" || mkdir $as_dirs
7929 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7930echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7931 { (exit 1); exit 1; }; }; }
7932
7933 ac_builddir=.
7934
7935if test "$ac_dir" != .; then
7936 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7937 # A "../" for each directory in $ac_dir_suffix.
7938 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7939else
7940 ac_dir_suffix= ac_top_builddir=
7941fi
7942
7943case $srcdir in
7944 .) # No --srcdir option. We are building in place.
7945 ac_srcdir=.
7946 if test -z "$ac_top_builddir"; then
7947 ac_top_srcdir=.
7948 else
7949 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7950 fi ;;
7951 [\\/]* | ?:[\\/]* ) # Absolute path.
7952 ac_srcdir=$srcdir$ac_dir_suffix;
7953 ac_top_srcdir=$srcdir ;;
7954 *) # Relative path.
7955 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7956 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7957esac
7958
7959# Do not use `cd foo && pwd` to compute absolute paths, because
7960# the directories may not exist.
7961case `pwd` in
7962.) ac_abs_builddir="$ac_dir";;
7963*)
7964 case "$ac_dir" in
7965 .) ac_abs_builddir=`pwd`;;
7966 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7967 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7968 esac;;
7969esac
7970case $ac_abs_builddir in
7971.) ac_abs_top_builddir=${ac_top_builddir}.;;
7972*)
7973 case ${ac_top_builddir}. in
7974 .) ac_abs_top_builddir=$ac_abs_builddir;;
7975 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7976 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7977 esac;;
7978esac
7979case $ac_abs_builddir in
7980.) ac_abs_srcdir=$ac_srcdir;;
7981*)
7982 case $ac_srcdir in
7983 .) ac_abs_srcdir=$ac_abs_builddir;;
7984 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7985 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7986 esac;;
7987esac
7988case $ac_abs_builddir in
7989.) ac_abs_top_srcdir=$ac_top_srcdir;;
7990*)
7991 case $ac_top_srcdir in
7992 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7993 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7994 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7995 esac;;
7996esac
7997
7998
7999 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
8000echo "$as_me: executing $ac_dest commands" >&6;}
8001 case $ac_dest in
8002 default-1 )
8003# Only add multilib support code if we just rebuilt the top-level
8004# Makefile.
8005case " $CONFIG_FILES " in
8006 *" Makefile "*)
8007 ac_file=Makefile . ${multi_basedir}/config-ml.in
8008 ;;
8009esac ;;
8010 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
8011 # Strip MF so we end up with the name of the file.
8012 mf=`echo "$mf" | sed -e 's/:.*$//'`
8013 # Check whether this is an Automake generated Makefile or not.
8014 # We used to match only the files named `Makefile.in', but
8015 # some people rename them; so instead we look at the file content.
8016 # Grep'ing the first line is not enough: some people post-process
8017 # each Makefile.in and add a new line on top of each file to say so.
8018 # So let's grep whole file.
8019 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
8020 dirpart=`(dirname "$mf") 2>/dev/null ||
8021$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8022 X"$mf" : 'X\(//\)[^/]' \| \
8023 X"$mf" : 'X\(//\)$' \| \
8024 X"$mf" : 'X\(/\)' \| \
8025 . : '\(.\)' 2>/dev/null ||
8026echo X"$mf" |
8027 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8028 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8029 /^X\(\/\/\)$/{ s//\1/; q; }
8030 /^X\(\/\).*/{ s//\1/; q; }
8031 s/.*/./; q'`
8032 else
8033 continue
8034 fi
8035 # Extract the definition of DEPDIR, am__include, and am__quote
8036 # from the Makefile without running `make'.
8037 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8038 test -z "$DEPDIR" && continue
8039 am__include=`sed -n 's/^am__include = //p' < "$mf"`
8040 test -z "am__include" && continue
8041 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8042 # When using ansi2knr, U may be empty or an underscore; expand it
8043 U=`sed -n 's/^U = //p' < "$mf"`
8044 # Find all dependency output files, they are included files with
8045 # $(DEPDIR) in their names. We invoke sed twice because it is the
8046 # simplest approach to changing $(DEPDIR) to its actual value in the
8047 # expansion.
8048 for file in `sed -n "
8049 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
8050 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8051 # Make sure the directory exists.
8052 test -f "$dirpart/$file" && continue
8053 fdir=`(dirname "$file") 2>/dev/null ||
8054$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8055 X"$file" : 'X\(//\)[^/]' \| \
8056 X"$file" : 'X\(//\)$' \| \
8057 X"$file" : 'X\(/\)' \| \
8058 . : '\(.\)' 2>/dev/null ||
8059echo X"$file" |
8060 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8061 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8062 /^X\(\/\/\)$/{ s//\1/; q; }
8063 /^X\(\/\).*/{ s//\1/; q; }
8064 s/.*/./; q'`
8065 { if $as_mkdir_p; then
8066 mkdir -p $dirpart/$fdir
8067 else
8068 as_dir=$dirpart/$fdir
8069 as_dirs=
8070 while test ! -d "$as_dir"; do
8071 as_dirs="$as_dir $as_dirs"
8072 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8073$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8074 X"$as_dir" : 'X\(//\)[^/]' \| \
8075 X"$as_dir" : 'X\(//\)$' \| \
8076 X"$as_dir" : 'X\(/\)' \| \
8077 . : '\(.\)' 2>/dev/null ||
8078echo X"$as_dir" |
8079 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8080 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8081 /^X\(\/\/\)$/{ s//\1/; q; }
8082 /^X\(\/\).*/{ s//\1/; q; }
8083 s/.*/./; q'`
8084 done
8085 test ! -n "$as_dirs" || mkdir $as_dirs
8086 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
8087echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
8088 { (exit 1); exit 1; }; }; }
8089
8090 # echo "creating $dirpart/$file"
8091 echo '# dummy' > "$dirpart/$file"
8092 done
8093done
8094 ;;
8095 esac
8096done
8097_ACEOF
8098
8099cat >>$CONFIG_STATUS <<\_ACEOF
8100
8101{ (exit 0); exit 0; }
8102_ACEOF
8103chmod +x $CONFIG_STATUS
8104ac_clean_files=$ac_clean_files_save
8105
8106
8107# configure is writing to config.log, and then calls config.status.
8108# config.status does its own redirection, appending to config.log.
8109# Unfortunately, on DOS this fails, as config.log is still kept open
8110# by configure, so config.status won't be able to write to it; its
8111# output is simply discarded. So we exec the FD to /dev/null,
8112# effectively closing config.log, so it can be properly (re)opened and
8113# appended to by config.status. When coming back to configure, we
8114# need to make the FD available again.
8115if test "$no_create" != yes; then
8116 ac_cs_success=:
8117 ac_config_status_args=
8118 test "$silent" = yes &&
8119 ac_config_status_args="$ac_config_status_args --quiet"
8120 exec 5>/dev/null
8121 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8122 exec 5>>config.log
8123 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8124 # would make configure fail if this is the last instruction.
8125 $ac_cs_success || { (exit 1); exit 1; }
8126fi
8127