OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [libgomp/] [configure] - Blame information for rev 853

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 38 julius
#! /bin/sh
2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.59 for GNU OpenMP Runtime Library 1.0.
4
#
5
# Copyright (C) 2003 Free Software Foundation, Inc.
6
# This configure script is free software; the Free Software Foundation
7
# gives unlimited permission to copy, distribute and modify it.
8
## --------------------- ##
9
## M4sh Initialization.  ##
10
## --------------------- ##
11
 
12
# Be Bourne compatible
13
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14
  emulate sh
15
  NULLCMD=:
16
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17
  # is contrary to our usage.  Disable this feature.
18
  alias -g '${1+"$@"}'='"$@"'
19
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20
  set -o posix
21
fi
22
DUALCASE=1; export DUALCASE # for MKS sh
23
 
24
# Support unset when possible.
25
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26
  as_unset=unset
27
else
28
  as_unset=false
29
fi
30
 
31
 
32
# Work around bugs in pre-3.0 UWIN ksh.
33
$as_unset ENV MAIL MAILPATH
34
PS1='$ '
35
PS2='> '
36
PS4='+ '
37
 
38
# NLS nuisances.
39
for as_var in \
40
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42
  LC_TELEPHONE LC_TIME
43
do
44
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45
    eval $as_var=C; export $as_var
46
  else
47
    $as_unset $as_var
48
  fi
49
done
50
 
51
# Required to use basename.
52
if expr a : '\(a\)' >/dev/null 2>&1; then
53
  as_expr=expr
54
else
55
  as_expr=false
56
fi
57
 
58
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59
  as_basename=basename
60
else
61
  as_basename=false
62
fi
63
 
64
 
65
# Name of the executable.
66
as_me=`$as_basename "$0" ||
67
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68
         X"$0" : 'X\(//\)$' \| \
69
         X"$0" : 'X\(/\)$' \| \
70
         .     : '\(.\)' 2>/dev/null ||
71
echo X/"$0" |
72
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73
          /^X\/\(\/\/\)$/{ s//\1/; q; }
74
          /^X\/\(\/\).*/{ s//\1/; q; }
75
          s/.*/./; q'`
76
 
77
 
78
# PATH needs CR, and LINENO needs CR and PATH.
79
# Avoid depending upon Character Ranges.
80
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83
as_cr_digits='0123456789'
84
as_cr_alnum=$as_cr_Letters$as_cr_digits
85
 
86
# The user is always right.
87
if test "${PATH_SEPARATOR+set}" != set; then
88
  echo "#! /bin/sh" >conf$$.sh
89
  echo  "exit 0"   >>conf$$.sh
90
  chmod +x conf$$.sh
91
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92
    PATH_SEPARATOR=';'
93
  else
94
    PATH_SEPARATOR=:
95
  fi
96
  rm -f conf$$.sh
97
fi
98
 
99
 
100
  as_lineno_1=$LINENO
101
  as_lineno_2=$LINENO
102
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103
  test "x$as_lineno_1" != "x$as_lineno_2" &&
104
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105
  # Find who we are.  Look in the path if we contain no path at all
106
  # relative or not.
107
  case $0 in
108
    *[\\/]* ) as_myself=$0 ;;
109
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110
for as_dir in $PATH
111
do
112
  IFS=$as_save_IFS
113
  test -z "$as_dir" && as_dir=.
114
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115
done
116
 
117
       ;;
118
  esac
119
  # We did not find ourselves, most probably we were run as `sh COMMAND'
120
  # in which case we are not to be found in the path.
121
  if test "x$as_myself" = x; then
122
    as_myself=$0
123
  fi
124
  if test ! -f "$as_myself"; then
125
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126
   { (exit 1); exit 1; }; }
127
  fi
128
  case $CONFIG_SHELL in
129
  '')
130
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132
do
133
  IFS=$as_save_IFS
134
  test -z "$as_dir" && as_dir=.
135
  for as_base in sh bash ksh sh5; do
136
         case $as_dir in
137
         /*)
138
           if ("$as_dir/$as_base" -c '
139
  as_lineno_1=$LINENO
140
  as_lineno_2=$LINENO
141
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142
  test "x$as_lineno_1" != "x$as_lineno_2" &&
143
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146
             CONFIG_SHELL=$as_dir/$as_base
147
             export CONFIG_SHELL
148
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149
           fi;;
150
         esac
151
       done
152
done
153
;;
154
  esac
155
 
156
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157
  # uniformly replaced by the line number.  The first 'sed' inserts a
158
  # line-number line before each line; the second 'sed' does the real
159
  # work.  The second script uses 'N' to pair each line-number line
160
  # with the numbered line, and appends trailing '-' during
161
  # substitution so that $LINENO is not a special case at line end.
162
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164
  sed '=' <$as_myself |
165
    sed '
166
      N
167
      s,$,-,
168
      : loop
169
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170
      t loop
171
      s,-$,,
172
      s,^['$as_cr_digits']*\n,,
173
    ' >$as_me.lineno &&
174
  chmod +x $as_me.lineno ||
175
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176
   { (exit 1); exit 1; }; }
177
 
178
  # Don't try to exec as it changes $[0], causing all sort of problems
179
  # (the dirname of $[0] is not the place where we might find the
180
  # original and so on.  Autoconf is especially sensible to this).
181
  . ./$as_me.lineno
182
  # Exit status is that of the last command.
183
  exit
184
}
185
 
186
 
187
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188
  *c*,-n*) ECHO_N= ECHO_C='
189
' ECHO_T='      ' ;;
190
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192
esac
193
 
194
if expr a : '\(a\)' >/dev/null 2>&1; then
195
  as_expr=expr
196
else
197
  as_expr=false
198
fi
199
 
200
rm -f conf$$ conf$$.exe conf$$.file
201
echo >conf$$.file
202
if ln -s conf$$.file conf$$ 2>/dev/null; then
203
  # We could just check for DJGPP; but this test a) works b) is more generic
204
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205
  if test -f conf$$.exe; then
206
    # Don't use ln at all; we don't have any links
207
    as_ln_s='cp -p'
208
  else
209
    as_ln_s='ln -s'
210
  fi
211
elif ln conf$$.file conf$$ 2>/dev/null; then
212
  as_ln_s=ln
213
else
214
  as_ln_s='cp -p'
215
fi
216
rm -f conf$$ conf$$.exe conf$$.file
217
 
218
if mkdir -p . 2>/dev/null; then
219
  as_mkdir_p=:
220
else
221
  test -d ./-p && rmdir ./-p
222
  as_mkdir_p=false
223
fi
224
 
225
as_executable_p="test -f"
226
 
227
# Sed expression to map a string onto a valid CPP name.
228
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
 
230
# Sed expression to map a string onto a valid variable name.
231
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
 
233
 
234
# IFS
235
# We need space, tab and new line, in precisely that order.
236
as_nl='
237
'
238
IFS="   $as_nl"
239
 
240
# CDPATH.
241
$as_unset CDPATH
242
 
243
 
244
# Name of the host.
245
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246
# so uname gets run too.
247
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
 
249
exec 6>&1
250
 
251
#
252
# Initializations.
253
#
254
ac_default_prefix=/usr/local
255
ac_config_libobj_dir=.
256
cross_compiling=no
257
subdirs=
258
MFLAGS=
259
MAKEFLAGS=
260
SHELL=${CONFIG_SHELL-/bin/sh}
261
 
262
# Maximum number of lines to put in a shell here document.
263
# This variable seems obsolete.  It should probably be removed, and
264
# only ac_max_sed_lines should be used.
265
: ${ac_max_here_lines=38}
266
 
267
# Identity of this package.
268
PACKAGE_NAME='GNU OpenMP Runtime Library'
269
PACKAGE_TARNAME='libgomp'
270
PACKAGE_VERSION='1.0'
271
PACKAGE_STRING='GNU OpenMP Runtime Library 1.0'
272
PACKAGE_BUGREPORT=''
273
 
274
# Factoring default headers for most tests.
275
ac_includes_default="\
276
#include 
277
#if HAVE_SYS_TYPES_H
278
# include 
279
#endif
280
#if HAVE_SYS_STAT_H
281
# include 
282
#endif
283
#if STDC_HEADERS
284
# include 
285
# include 
286
#else
287
# if HAVE_STDLIB_H
288
#  include 
289
# endif
290
#endif
291
#if HAVE_STRING_H
292
# if !STDC_HEADERS && HAVE_MEMORY_H
293
#  include 
294
# endif
295
# include 
296
#endif
297
#if HAVE_STRINGS_H
298
# include 
299
#endif
300
#if HAVE_INTTYPES_H
301
# include 
302
#else
303
# if HAVE_STDINT_H
304
#  include 
305
# endif
306
#endif
307
#if HAVE_UNISTD_H
308
# include 
309
#endif"
310
 
311
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS GENINSRC_TRUE GENINSRC_FALSE 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 BUILD_INFO_TRUE BUILD_INFO_FALSE LN_S LIBTOOL enable_shared enable_static MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT 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 OMP_LOCK_SIZE OMP_LOCK_ALIGN OMP_NEST_LOCK_SIZE OMP_NEST_LOCK_ALIGN OMP_LOCK_KIND OMP_NEST_LOCK_KIND LIBOBJS LTLIBOBJS'
312
ac_subst_files=''
313
 
314
# Initialize some variables set by options.
315
ac_init_help=
316
ac_init_version=false
317
# The variables have the same names as the options, with
318
# dashes changed to underlines.
319
cache_file=/dev/null
320
exec_prefix=NONE
321
no_create=
322
no_recursion=
323
prefix=NONE
324
program_prefix=NONE
325
program_suffix=NONE
326
program_transform_name=s,x,x,
327
silent=
328
site=
329
srcdir=
330
verbose=
331
x_includes=NONE
332
x_libraries=NONE
333
 
334
# Installation directory options.
335
# These are left unexpanded so users can "make install exec_prefix=/foo"
336
# and all the variables that are supposed to be based on exec_prefix
337
# by default will actually change.
338
# Use braces instead of parens because sh, perl, etc. also accept them.
339
bindir='${exec_prefix}/bin'
340
sbindir='${exec_prefix}/sbin'
341
libexecdir='${exec_prefix}/libexec'
342
datadir='${prefix}/share'
343
sysconfdir='${prefix}/etc'
344
sharedstatedir='${prefix}/com'
345
localstatedir='${prefix}/var'
346
libdir='${exec_prefix}/lib'
347
includedir='${prefix}/include'
348
oldincludedir='/usr/include'
349
infodir='${prefix}/info'
350
mandir='${prefix}/man'
351
 
352
ac_prev=
353
for ac_option
354
do
355
  # If the previous option needs an argument, assign it.
356
  if test -n "$ac_prev"; then
357
    eval "$ac_prev=\$ac_option"
358
    ac_prev=
359
    continue
360
  fi
361
 
362
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363
 
364
  # Accept the important Cygnus configure options, so we can diagnose typos.
365
 
366
  case $ac_option in
367
 
368
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
369
    ac_prev=bindir ;;
370
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371
    bindir=$ac_optarg ;;
372
 
373
  -build | --build | --buil | --bui | --bu)
374
    ac_prev=build_alias ;;
375
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376
    build_alias=$ac_optarg ;;
377
 
378
  -cache-file | --cache-file | --cache-fil | --cache-fi \
379
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380
    ac_prev=cache_file ;;
381
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383
    cache_file=$ac_optarg ;;
384
 
385
  --config-cache | -C)
386
    cache_file=config.cache ;;
387
 
388
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389
    ac_prev=datadir ;;
390
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391
  | --da=*)
392
    datadir=$ac_optarg ;;
393
 
394
  -disable-* | --disable-*)
395
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396
    # Reject names that are not valid shell variable names.
397
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399
   { (exit 1); exit 1; }; }
400
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401
    eval "enable_$ac_feature=no" ;;
402
 
403
  -enable-* | --enable-*)
404
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405
    # Reject names that are not valid shell variable names.
406
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408
   { (exit 1); exit 1; }; }
409
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410
    case $ac_option in
411
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412
      *) ac_optarg=yes ;;
413
    esac
414
    eval "enable_$ac_feature='$ac_optarg'" ;;
415
 
416
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418
  | --exec | --exe | --ex)
419
    ac_prev=exec_prefix ;;
420
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422
  | --exec=* | --exe=* | --ex=*)
423
    exec_prefix=$ac_optarg ;;
424
 
425
  -gas | --gas | --ga | --g)
426
    # Obsolete; use --with-gas.
427
    with_gas=yes ;;
428
 
429
  -help | --help | --hel | --he | -h)
430
    ac_init_help=long ;;
431
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432
    ac_init_help=recursive ;;
433
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434
    ac_init_help=short ;;
435
 
436
  -host | --host | --hos | --ho)
437
    ac_prev=host_alias ;;
438
  -host=* | --host=* | --hos=* | --ho=*)
439
    host_alias=$ac_optarg ;;
440
 
441
  -includedir | --includedir | --includedi | --included | --include \
442
  | --includ | --inclu | --incl | --inc)
443
    ac_prev=includedir ;;
444
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445
  | --includ=* | --inclu=* | --incl=* | --inc=*)
446
    includedir=$ac_optarg ;;
447
 
448
  -infodir | --infodir | --infodi | --infod | --info | --inf)
449
    ac_prev=infodir ;;
450
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451
    infodir=$ac_optarg ;;
452
 
453
  -libdir | --libdir | --libdi | --libd)
454
    ac_prev=libdir ;;
455
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
456
    libdir=$ac_optarg ;;
457
 
458
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459
  | --libexe | --libex | --libe)
460
    ac_prev=libexecdir ;;
461
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462
  | --libexe=* | --libex=* | --libe=*)
463
    libexecdir=$ac_optarg ;;
464
 
465
  -localstatedir | --localstatedir | --localstatedi | --localstated \
466
  | --localstate | --localstat | --localsta | --localst \
467
  | --locals | --local | --loca | --loc | --lo)
468
    ac_prev=localstatedir ;;
469
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472
    localstatedir=$ac_optarg ;;
473
 
474
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475
    ac_prev=mandir ;;
476
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477
    mandir=$ac_optarg ;;
478
 
479
  -nfp | --nfp | --nf)
480
    # Obsolete; use --without-fp.
481
    with_fp=no ;;
482
 
483
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484
  | --no-cr | --no-c | -n)
485
    no_create=yes ;;
486
 
487
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489
    no_recursion=yes ;;
490
 
491
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493
  | --oldin | --oldi | --old | --ol | --o)
494
    ac_prev=oldincludedir ;;
495
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498
    oldincludedir=$ac_optarg ;;
499
 
500
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501
    ac_prev=prefix ;;
502
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503
    prefix=$ac_optarg ;;
504
 
505
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
506
  | --program-pre | --program-pr | --program-p)
507
    ac_prev=program_prefix ;;
508
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
509
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510
    program_prefix=$ac_optarg ;;
511
 
512
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
513
  | --program-suf | --program-su | --program-s)
514
    ac_prev=program_suffix ;;
515
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
516
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517
    program_suffix=$ac_optarg ;;
518
 
519
  -program-transform-name | --program-transform-name \
520
  | --program-transform-nam | --program-transform-na \
521
  | --program-transform-n | --program-transform- \
522
  | --program-transform | --program-transfor \
523
  | --program-transfo | --program-transf \
524
  | --program-trans | --program-tran \
525
  | --progr-tra | --program-tr | --program-t)
526
    ac_prev=program_transform_name ;;
527
  -program-transform-name=* | --program-transform-name=* \
528
  | --program-transform-nam=* | --program-transform-na=* \
529
  | --program-transform-n=* | --program-transform-=* \
530
  | --program-transform=* | --program-transfor=* \
531
  | --program-transfo=* | --program-transf=* \
532
  | --program-trans=* | --program-tran=* \
533
  | --progr-tra=* | --program-tr=* | --program-t=*)
534
    program_transform_name=$ac_optarg ;;
535
 
536
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537
  | -silent | --silent | --silen | --sile | --sil)
538
    silent=yes ;;
539
 
540
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541
    ac_prev=sbindir ;;
542
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543
  | --sbi=* | --sb=*)
544
    sbindir=$ac_optarg ;;
545
 
546
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
547
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548
  | --sharedst | --shareds | --shared | --share | --shar \
549
  | --sha | --sh)
550
    ac_prev=sharedstatedir ;;
551
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554
  | --sha=* | --sh=*)
555
    sharedstatedir=$ac_optarg ;;
556
 
557
  -site | --site | --sit)
558
    ac_prev=site ;;
559
  -site=* | --site=* | --sit=*)
560
    site=$ac_optarg ;;
561
 
562
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563
    ac_prev=srcdir ;;
564
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565
    srcdir=$ac_optarg ;;
566
 
567
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568
  | --syscon | --sysco | --sysc | --sys | --sy)
569
    ac_prev=sysconfdir ;;
570
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572
    sysconfdir=$ac_optarg ;;
573
 
574
  -target | --target | --targe | --targ | --tar | --ta | --t)
575
    ac_prev=target_alias ;;
576
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577
    target_alias=$ac_optarg ;;
578
 
579
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
580
    verbose=yes ;;
581
 
582
  -version | --version | --versio | --versi | --vers | -V)
583
    ac_init_version=: ;;
584
 
585
  -with-* | --with-*)
586
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587
    # Reject names that are not valid shell variable names.
588
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589
      { echo "$as_me: error: invalid package name: $ac_package" >&2
590
   { (exit 1); exit 1; }; }
591
    ac_package=`echo $ac_package| sed 's/-/_/g'`
592
    case $ac_option in
593
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594
      *) ac_optarg=yes ;;
595
    esac
596
    eval "with_$ac_package='$ac_optarg'" ;;
597
 
598
  -without-* | --without-*)
599
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600
    # Reject names that are not valid shell variable names.
601
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602
      { echo "$as_me: error: invalid package name: $ac_package" >&2
603
   { (exit 1); exit 1; }; }
604
    ac_package=`echo $ac_package | sed 's/-/_/g'`
605
    eval "with_$ac_package=no" ;;
606
 
607
  --x)
608
    # Obsolete; use --with-x.
609
    with_x=yes ;;
610
 
611
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612
  | --x-incl | --x-inc | --x-in | --x-i)
613
    ac_prev=x_includes ;;
614
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616
    x_includes=$ac_optarg ;;
617
 
618
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
619
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620
    ac_prev=x_libraries ;;
621
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623
    x_libraries=$ac_optarg ;;
624
 
625
  -*) { echo "$as_me: error: unrecognized option: $ac_option
626
Try \`$0 --help' for more information." >&2
627
   { (exit 1); exit 1; }; }
628
    ;;
629
 
630
  *=*)
631
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632
    # Reject names that are not valid shell variable names.
633
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635
   { (exit 1); exit 1; }; }
636
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637
    eval "$ac_envvar='$ac_optarg'"
638
    export $ac_envvar ;;
639
 
640
  *)
641
    # FIXME: should be removed in autoconf 3.0.
642
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
646
    ;;
647
 
648
  esac
649
done
650
 
651
if test -n "$ac_prev"; then
652
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653
  { echo "$as_me: error: missing argument to $ac_option" >&2
654
   { (exit 1); exit 1; }; }
655
fi
656
 
657
# Be sure to have absolute paths.
658
for ac_var in exec_prefix prefix
659
do
660
  eval ac_val=$`echo $ac_var`
661
  case $ac_val in
662
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664
   { (exit 1); exit 1; }; };;
665
  esac
666
done
667
 
668
# Be sure to have absolute paths.
669
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670
              localstatedir libdir includedir oldincludedir infodir mandir
671
do
672
  eval ac_val=$`echo $ac_var`
673
  case $ac_val in
674
    [\\/$]* | ?:[\\/]* ) ;;
675
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676
   { (exit 1); exit 1; }; };;
677
  esac
678
done
679
 
680
# There might be people who depend on the old broken behavior: `$host'
681
# used to hold the argument of --host etc.
682
# FIXME: To remove some day.
683
build=$build_alias
684
host=$host_alias
685
target=$target_alias
686
 
687
# FIXME: To remove some day.
688
if test "x$host_alias" != x; then
689
  if test "x$build_alias" = x; then
690
    cross_compiling=maybe
691
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692
    If a cross compiler is detected then cross compile mode will be used." >&2
693
  elif test "x$build_alias" != "x$host_alias"; then
694
    cross_compiling=yes
695
  fi
696
fi
697
 
698
ac_tool_prefix=
699
test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
 
701
test "$silent" = yes && exec 6>/dev/null
702
 
703
 
704
# Find the source files, if location was not specified.
705
if test -z "$srcdir"; then
706
  ac_srcdir_defaulted=yes
707
  # Try the directory containing this script, then its parent.
708
  ac_confdir=`(dirname "$0") 2>/dev/null ||
709
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710
         X"$0" : 'X\(//\)[^/]' \| \
711
         X"$0" : 'X\(//\)$' \| \
712
         X"$0" : 'X\(/\)' \| \
713
         .     : '\(.\)' 2>/dev/null ||
714
echo X"$0" |
715
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717
          /^X\(\/\/\)$/{ s//\1/; q; }
718
          /^X\(\/\).*/{ s//\1/; q; }
719
          s/.*/./; q'`
720
  srcdir=$ac_confdir
721
  if test ! -r "$srcdir/$ac_unique_file"; then
722
    srcdir=..
723
  fi
724
else
725
  ac_srcdir_defaulted=no
726
fi
727
if test ! -r "$srcdir/$ac_unique_file"; then
728
  if test "$ac_srcdir_defaulted" = yes; then
729
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730
   { (exit 1); exit 1; }; }
731
  else
732
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733
   { (exit 1); exit 1; }; }
734
  fi
735
fi
736
(cd $srcdir && test -r "./$ac_unique_file") 2>/dev/null ||
737
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738
   { (exit 1); exit 1; }; }
739
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740
ac_env_build_alias_set=${build_alias+set}
741
ac_env_build_alias_value=$build_alias
742
ac_cv_env_build_alias_set=${build_alias+set}
743
ac_cv_env_build_alias_value=$build_alias
744
ac_env_host_alias_set=${host_alias+set}
745
ac_env_host_alias_value=$host_alias
746
ac_cv_env_host_alias_set=${host_alias+set}
747
ac_cv_env_host_alias_value=$host_alias
748
ac_env_target_alias_set=${target_alias+set}
749
ac_env_target_alias_value=$target_alias
750
ac_cv_env_target_alias_set=${target_alias+set}
751
ac_cv_env_target_alias_value=$target_alias
752
ac_env_FC_set=${FC+set}
753
ac_env_FC_value=$FC
754
ac_cv_env_FC_set=${FC+set}
755
ac_cv_env_FC_value=$FC
756
ac_env_FCFLAGS_set=${FCFLAGS+set}
757
ac_env_FCFLAGS_value=$FCFLAGS
758
ac_cv_env_FCFLAGS_set=${FCFLAGS+set}
759
ac_cv_env_FCFLAGS_value=$FCFLAGS
760
ac_env_LDFLAGS_set=${LDFLAGS+set}
761
ac_env_LDFLAGS_value=$LDFLAGS
762
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763
ac_cv_env_LDFLAGS_value=$LDFLAGS
764
ac_env_CPP_set=${CPP+set}
765
ac_env_CPP_value=$CPP
766
ac_cv_env_CPP_set=${CPP+set}
767
ac_cv_env_CPP_value=$CPP
768
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
769
ac_env_CPPFLAGS_value=$CPPFLAGS
770
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
771
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
772
 
773
#
774
# Report the --help message.
775
#
776
if test "$ac_init_help" = "long"; then
777
  # Omit some internal or obsolete options to make the list less imposing.
778
  # This message is too long to be a string in the A/UX 3.1 sh.
779
  cat <<_ACEOF
780
\`configure' configures GNU OpenMP Runtime Library 1.0 to adapt to many kinds of systems.
781
 
782
Usage: $0 [OPTION]... [VAR=VALUE]...
783
 
784
To assign environment variables (e.g., CC, CFLAGS...), specify them as
785
VAR=VALUE.  See below for descriptions of some of the useful variables.
786
 
787
Defaults for the options are specified in brackets.
788
 
789
Configuration:
790
  -h, --help              display this help and exit
791
      --help=short        display options specific to this package
792
      --help=recursive    display the short help of all the included packages
793
  -V, --version           display version information and exit
794
  -q, --quiet, --silent   do not print \`checking...' messages
795
      --cache-file=FILE   cache test results in FILE [disabled]
796
  -C, --config-cache      alias for \`--cache-file=config.cache'
797
  -n, --no-create         do not create output files
798
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
799
 
800
_ACEOF
801
 
802
  cat <<_ACEOF
803
Installation directories:
804
  --prefix=PREFIX         install architecture-independent files in PREFIX
805
                          [$ac_default_prefix]
806
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
807
                          [PREFIX]
808
 
809
By default, \`make install' will install all the files in
810
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
811
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812
for instance \`--prefix=\$HOME'.
813
 
814
For better control, use the options below.
815
 
816
Fine tuning of the installation directories:
817
  --bindir=DIR           user executables [EPREFIX/bin]
818
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
819
  --libexecdir=DIR       program executables [EPREFIX/libexec]
820
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
821
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
822
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
823
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
824
  --libdir=DIR           object code libraries [EPREFIX/lib]
825
  --includedir=DIR       C header files [PREFIX/include]
826
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
827
  --infodir=DIR          info documentation [PREFIX/info]
828
  --mandir=DIR           man documentation [PREFIX/man]
829
_ACEOF
830
 
831
  cat <<\_ACEOF
832
 
833
Program names:
834
  --program-prefix=PREFIX            prepend PREFIX to installed program names
835
  --program-suffix=SUFFIX            append SUFFIX to installed program names
836
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
837
 
838
System types:
839
  --build=BUILD     configure for building on BUILD [guessed]
840
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
841
  --target=TARGET   configure for building compilers for TARGET [HOST]
842
_ACEOF
843
fi
844
 
845
if test -n "$ac_init_help"; then
846
  case $ac_init_help in
847
     short | recursive ) echo "Configuration of GNU OpenMP Runtime Library 1.0:";;
848
   esac
849
  cat <<\_ACEOF
850
 
851
Optional Features:
852
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
853
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
854
  --enable-version-specific-runtime-libs
855
                          Specify that runtime libraries should be installed
856
                          in a compiler-specific directory [default=no]
857
  --enable-linux-futex    Use the Linux futex system call
858
                          [default=default]
859
  --enable-generated-files-in-srcdir
860
                          put copies of generated files in source dir intended
861
                          for creating source tarballs for users without
862
                          texinfo bison or flex. [default=no]
863
  --enable-multilib       build many library versions (default)
864
  --disable-dependency-tracking  speeds up one-time build
865
  --enable-dependency-tracking   do not reject slow dependency extractors
866
  --enable-shared=PKGS  build shared libraries default=yes
867
  --enable-static=PKGS  build static libraries default=yes
868
  --enable-fast-install=PKGS  optimize for fast installation default=yes
869
  --disable-libtool-lock  avoid locking (might break parallel builds)
870
  --enable-maintainer-mode  enable make rules and dependencies not useful
871
                          (and sometimes confusing) to the casual installer
872
  --enable-tls            Use thread-local storage [default=yes]
873
  --enable-symvers=STYLE  enables symbol versioning of the shared library
874
                          [default=yes]
875
 
876
Optional Packages:
877
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
878
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
879
  --with-gnu-ld           assume the C compiler uses GNU ld default=no
880
  --with-pic              try to use only PIC/non-PIC objects default=use both
881
 
882
Some influential environment variables:
883
  CC          C compiler command
884
  CFLAGS      C compiler flags
885
  LDFLAGS     linker flags, e.g. -L if you have libraries in a
886
              nonstandard directory 
887
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I if you have
888
              headers in a nonstandard directory 
889
  FC          Fortran compiler command
890
  FCFLAGS     Fortran compiler flags
891
  CPP         C preprocessor
892
 
893
Use these variables to override the choices made by `configure' or to help
894
it to find libraries and programs with nonstandard names/locations.
895
 
896
_ACEOF
897
fi
898
 
899
if test "$ac_init_help" = "recursive"; then
900
  # If there are subdirs, report their specific --help.
901
  ac_popdir=`pwd`
902
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
903
    test -d $ac_dir || continue
904
    ac_builddir=.
905
 
906
if test "$ac_dir" != .; then
907
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
908
  # A "../" for each directory in $ac_dir_suffix.
909
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
910
else
911
  ac_dir_suffix= ac_top_builddir=
912
fi
913
 
914
case $srcdir in
915
  .)  # No --srcdir option.  We are building in place.
916
    ac_srcdir=.
917
    if test -z "$ac_top_builddir"; then
918
       ac_top_srcdir=.
919
    else
920
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
921
    fi ;;
922
  [\\/]* | ?:[\\/]* )  # Absolute path.
923
    ac_srcdir=$srcdir$ac_dir_suffix;
924
    ac_top_srcdir=$srcdir ;;
925
  *) # Relative path.
926
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
927
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
928
esac
929
 
930
# Do not use `cd foo && pwd` to compute absolute paths, because
931
# the directories may not exist.
932
case `pwd` in
933
.) ac_abs_builddir="$ac_dir";;
934
*)
935
  case "$ac_dir" in
936
  .) ac_abs_builddir=`pwd`;;
937
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
938
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
939
  esac;;
940
esac
941
case $ac_abs_builddir in
942
.) ac_abs_top_builddir=${ac_top_builddir}.;;
943
*)
944
  case ${ac_top_builddir}. in
945
  .) ac_abs_top_builddir=$ac_abs_builddir;;
946
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
947
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
948
  esac;;
949
esac
950
case $ac_abs_builddir in
951
.) ac_abs_srcdir=$ac_srcdir;;
952
*)
953
  case $ac_srcdir in
954
  .) ac_abs_srcdir=$ac_abs_builddir;;
955
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
956
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
957
  esac;;
958
esac
959
case $ac_abs_builddir in
960
.) ac_abs_top_srcdir=$ac_top_srcdir;;
961
*)
962
  case $ac_top_srcdir in
963
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
964
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
965
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
966
  esac;;
967
esac
968
 
969
    cd $ac_dir
970
    # Check for guested configure; otherwise get Cygnus style configure.
971
    if test -f $ac_srcdir/configure.gnu; then
972
      echo
973
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
974
    elif test -f $ac_srcdir/configure; then
975
      echo
976
      $SHELL $ac_srcdir/configure  --help=recursive
977
    elif test -f $ac_srcdir/configure.ac ||
978
           test -f $ac_srcdir/configure.in; then
979
      echo
980
      $ac_configure --help
981
    else
982
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
983
    fi
984
    cd $ac_popdir
985
  done
986
fi
987
 
988
test -n "$ac_init_help" && exit 0
989
if $ac_init_version; then
990
  cat <<\_ACEOF
991
GNU OpenMP Runtime Library configure 1.0
992
generated by GNU Autoconf 2.59
993
 
994
Copyright (C) 2003 Free Software Foundation, Inc.
995
This configure script is free software; the Free Software Foundation
996
gives unlimited permission to copy, distribute and modify it.
997
_ACEOF
998
  exit 0
999
fi
1000
exec 5>config.log
1001
cat >&5 <<_ACEOF
1002
This file contains any messages produced by compilers while
1003
running configure, to aid debugging if configure makes a mistake.
1004
 
1005
It was created by GNU OpenMP Runtime Library $as_me 1.0, which was
1006
generated by GNU Autoconf 2.59.  Invocation command line was
1007
 
1008
  $ $0 $@
1009
 
1010
_ACEOF
1011
{
1012
cat <<_ASUNAME
1013
## --------- ##
1014
## Platform. ##
1015
## --------- ##
1016
 
1017
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1018
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1019
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1020
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1021
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1022
 
1023
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1024
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1025
 
1026
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1027
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1028
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1029
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1030
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1031
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1032
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1033
 
1034
_ASUNAME
1035
 
1036
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1037
for as_dir in $PATH
1038
do
1039
  IFS=$as_save_IFS
1040
  test -z "$as_dir" && as_dir=.
1041
  echo "PATH: $as_dir"
1042
done
1043
 
1044
} >&5
1045
 
1046
cat >&5 <<_ACEOF
1047
 
1048
 
1049
## ----------- ##
1050
## Core tests. ##
1051
## ----------- ##
1052
 
1053
_ACEOF
1054
 
1055
 
1056
# Keep a trace of the command line.
1057
# Strip out --no-create and --no-recursion so they do not pile up.
1058
# Strip out --silent because we don't want to record it for future runs.
1059
# Also quote any args containing shell meta-characters.
1060
# Make two passes to allow for proper duplicate-argument suppression.
1061
ac_configure_args=
1062
ac_configure_args0=
1063
ac_configure_args1=
1064
ac_sep=
1065
ac_must_keep_next=false
1066
for ac_pass in 1 2
1067
do
1068
  for ac_arg
1069
  do
1070
    case $ac_arg in
1071
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1072
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1073
    | -silent | --silent | --silen | --sile | --sil)
1074
      continue ;;
1075
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1076
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1077
    esac
1078
    case $ac_pass in
1079
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1080
    2)
1081
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1082
      if test $ac_must_keep_next = true; then
1083
        ac_must_keep_next=false # Got value, back to normal.
1084
      else
1085
        case $ac_arg in
1086
          *=* | --config-cache | -C | -disable-* | --disable-* \
1087
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1088
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1089
          | -with-* | --with-* | -without-* | --without-* | --x)
1090
            case "$ac_configure_args0 " in
1091
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1092
            esac
1093
            ;;
1094
          -* ) ac_must_keep_next=true ;;
1095
        esac
1096
      fi
1097
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1098
      # Get rid of the leading space.
1099
      ac_sep=" "
1100
      ;;
1101
    esac
1102
  done
1103
done
1104
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1105
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1106
 
1107
# When interrupted or exit'd, cleanup temporary files, and complete
1108
# config.log.  We remove comments because anyway the quotes in there
1109
# would cause problems or look ugly.
1110
# WARNING: Be sure not to use single quotes in there, as some shells,
1111
# such as our DU 5.0 friend, will then `close' the trap.
1112
trap 'exit_status=$?
1113
  # Save into config.log some information that might help in debugging.
1114
  {
1115
    echo
1116
 
1117
    cat <<\_ASBOX
1118
## ---------------- ##
1119
## Cache variables. ##
1120
## ---------------- ##
1121
_ASBOX
1122
    echo
1123
    # The following way of writing the cache mishandles newlines in values,
1124
{
1125
  (set) 2>&1 |
1126
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1127
    *ac_space=\ *)
1128
      sed -n \
1129
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1130
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1131
      ;;
1132
    *)
1133
      sed -n \
1134
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1135
      ;;
1136
    esac;
1137
}
1138
    echo
1139
 
1140
    cat <<\_ASBOX
1141
## ----------------- ##
1142
## Output variables. ##
1143
## ----------------- ##
1144
_ASBOX
1145
    echo
1146
    for ac_var in $ac_subst_vars
1147
    do
1148
      eval ac_val=$`echo $ac_var`
1149
      echo "$ac_var='"'"'$ac_val'"'"'"
1150
    done | sort
1151
    echo
1152
 
1153
    if test -n "$ac_subst_files"; then
1154
      cat <<\_ASBOX
1155
## ------------- ##
1156
## Output files. ##
1157
## ------------- ##
1158
_ASBOX
1159
      echo
1160
      for ac_var in $ac_subst_files
1161
      do
1162
        eval ac_val=$`echo $ac_var`
1163
        echo "$ac_var='"'"'$ac_val'"'"'"
1164
      done | sort
1165
      echo
1166
    fi
1167
 
1168
    if test -s confdefs.h; then
1169
      cat <<\_ASBOX
1170
## ----------- ##
1171
## confdefs.h. ##
1172
## ----------- ##
1173
_ASBOX
1174
      echo
1175
      sed "/^$/d" confdefs.h | sort
1176
      echo
1177
    fi
1178
    test "$ac_signal" != 0 &&
1179
      echo "$as_me: caught signal $ac_signal"
1180
    echo "$as_me: exit $exit_status"
1181
  } >&5
1182
  rm -f core *.core &&
1183
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1184
    exit $exit_status
1185
     ' 0
1186
for ac_signal in 1 2 13 15; do
1187
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1188
done
1189
ac_signal=0
1190
 
1191
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1192
rm -rf conftest* confdefs.h
1193
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1194
echo >confdefs.h
1195
 
1196
# Predefined preprocessor variables.
1197
 
1198
cat >>confdefs.h <<_ACEOF
1199
#define PACKAGE_NAME "$PACKAGE_NAME"
1200
_ACEOF
1201
 
1202
 
1203
cat >>confdefs.h <<_ACEOF
1204
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1205
_ACEOF
1206
 
1207
 
1208
cat >>confdefs.h <<_ACEOF
1209
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1210
_ACEOF
1211
 
1212
 
1213
cat >>confdefs.h <<_ACEOF
1214
#define PACKAGE_STRING "$PACKAGE_STRING"
1215
_ACEOF
1216
 
1217
 
1218
cat >>confdefs.h <<_ACEOF
1219
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1220
_ACEOF
1221
 
1222
 
1223
# Let the site file select an alternate cache file if it wants to.
1224
# Prefer explicitly selected file to automatically selected ones.
1225
if test -z "$CONFIG_SITE"; then
1226
  if test "x$prefix" != xNONE; then
1227
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1228
  else
1229
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1230
  fi
1231
fi
1232
for ac_site_file in $CONFIG_SITE; do
1233
  if test -r "$ac_site_file"; then
1234
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1235
echo "$as_me: loading site script $ac_site_file" >&6;}
1236
    sed 's/^/| /' "$ac_site_file" >&5
1237
    . "$ac_site_file"
1238
  fi
1239
done
1240
 
1241
if test -r "$cache_file"; then
1242
  # Some versions of bash will fail to source /dev/null (special
1243
  # files actually), so we avoid doing that.
1244
  if test -f "$cache_file"; then
1245
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1246
echo "$as_me: loading cache $cache_file" >&6;}
1247
    case $cache_file in
1248
      [\\/]* | ?:[\\/]* ) . $cache_file;;
1249
      *)                      . ./$cache_file;;
1250
    esac
1251
  fi
1252
else
1253
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1254
echo "$as_me: creating cache $cache_file" >&6;}
1255
  >$cache_file
1256
fi
1257
 
1258
# Check that the precious variables saved in the cache have kept the same
1259
# value.
1260
ac_cache_corrupted=false
1261
for ac_var in `(set) 2>&1 |
1262
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1263
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1264
  eval ac_new_set=\$ac_env_${ac_var}_set
1265
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1266
  eval ac_new_val="\$ac_env_${ac_var}_value"
1267
  case $ac_old_set,$ac_new_set in
1268
    set,)
1269
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1270
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1271
      ac_cache_corrupted=: ;;
1272
    ,set)
1273
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1274
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1275
      ac_cache_corrupted=: ;;
1276
    ,);;
1277
    *)
1278
      if test "x$ac_old_val" != "x$ac_new_val"; then
1279
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1280
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1281
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1282
echo "$as_me:   former value:  $ac_old_val" >&2;}
1283
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1284
echo "$as_me:   current value: $ac_new_val" >&2;}
1285
        ac_cache_corrupted=:
1286
      fi;;
1287
  esac
1288
  # Pass precious variables to config.status.
1289
  if test "$ac_new_set" = set; then
1290
    case $ac_new_val in
1291
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1292
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1293
    *) ac_arg=$ac_var=$ac_new_val ;;
1294
    esac
1295
    case " $ac_configure_args " in
1296
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1297
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1298
    esac
1299
  fi
1300
done
1301
if $ac_cache_corrupted; then
1302
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1303
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1304
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1305
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1306
   { (exit 1); exit 1; }; }
1307
fi
1308
 
1309
ac_ext=c
1310
ac_cpp='$CPP $CPPFLAGS'
1311
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1312
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1313
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1314
 
1315
 
1316
 
1317
 
1318
 
1319
 
1320
 
1321
 
1322
 
1323
 
1324
 
1325
 
1326
 
1327
 
1328
 
1329
 
1330
 
1331
 
1332
 
1333
 
1334
 
1335
 
1336
 
1337
 
1338
 
1339
 
1340
 
1341
          ac_config_headers="$ac_config_headers config.h"
1342
 
1343
 
1344
# -------
1345
# Options
1346
# -------
1347
 
1348
echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
1349
echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
1350
 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1351
if test "${enable_version_specific_runtime_libs+set}" = set; then
1352
  enableval="$enable_version_specific_runtime_libs"
1353
 
1354
      case "$enableval" in
1355
       yes|no) ;;
1356
       *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific-runtime-libs" >&5
1357
echo "$as_me: error: Unknown argument to enable/disable version-specific-runtime-libs" >&2;}
1358
   { (exit 1); exit 1; }; } ;;
1359
                          esac
1360
 
1361
else
1362
  enable_version_specific_runtime_libs=no
1363
fi;
1364
 
1365
echo "$as_me:$LINENO: result: $enable_version_specific_runtime_libs" >&5
1366
echo "${ECHO_T}$enable_version_specific_runtime_libs" >&6
1367
 
1368
echo "$as_me:$LINENO: checking for --enable-linux-futex" >&5
1369
echo $ECHO_N "checking for --enable-linux-futex... $ECHO_C" >&6
1370
 # Check whether --enable-linux-futex or --disable-linux-futex was given.
1371
if test "${enable_linux_futex+set}" = set; then
1372
  enableval="$enable_linux_futex"
1373
 
1374
      case "$enableval" in
1375
       yes|no|default) ;;
1376
       *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable linux-futex" >&5
1377
echo "$as_me: error: Unknown argument to enable/disable linux-futex" >&2;}
1378
   { (exit 1); exit 1; }; } ;;
1379
                          esac
1380
 
1381
else
1382
  enable_linux_futex=default
1383
fi;
1384
 
1385
echo "$as_me:$LINENO: result: $enable_linux_futex" >&5
1386
echo "${ECHO_T}$enable_linux_futex" >&6
1387
 
1388
# We would like our source tree to be readonly. However when releases or
1389
# pre-releases are generated, the flex/bison generated files as well as the
1390
# various formats of manuals need to be included along with the rest of the
1391
# sources.  Therefore we have --enable-generated-files-in-srcdir to do
1392
# just that.
1393
echo "$as_me:$LINENO: checking for --enable-generated-files-in-srcdir" >&5
1394
echo $ECHO_N "checking for --enable-generated-files-in-srcdir... $ECHO_C" >&6
1395
 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1396
if test "${enable_generated_files_in_srcdir+set}" = set; then
1397
  enableval="$enable_generated_files_in_srcdir"
1398
 
1399
      case "$enableval" in
1400
       yes|no) ;;
1401
       *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable generated-files-in-srcdir" >&5
1402
echo "$as_me: error: Unknown argument to enable/disable generated-files-in-srcdir" >&2;}
1403
   { (exit 1); exit 1; }; } ;;
1404
                          esac
1405
 
1406
else
1407
  enable_generated_files_in_srcdir=no
1408
fi;
1409
 
1410
echo "$as_me:$LINENO: result: $enable_generated_files_in_srcdir" >&5
1411
echo "${ECHO_T}$enable_generated_files_in_srcdir" >&6
1412
 
1413
 
1414
if test "$enable_generated_files_in_srcdir" = yes; then
1415
  GENINSRC_TRUE=
1416
  GENINSRC_FALSE='#'
1417
else
1418
  GENINSRC_TRUE='#'
1419
  GENINSRC_FALSE=
1420
fi
1421
 
1422
 
1423
 
1424
# -------
1425
# -------
1426
 
1427
# Gets build, host, target, *_vendor, *_cpu, *_os, etc.
1428
#
1429
# You will slowly go insane if you do not grok the following fact:  when
1430
# building this library, the top-level /target/ becomes the library's /host/.
1431
#
1432
# configure then causes --target to default to --host, exactly like any
1433
# other package using autoconf.  Therefore, 'target' and 'host' will
1434
# always be the same.  This makes sense both for native and cross compilers
1435
# just think about it for a little while.  :-)
1436
#
1437
# Also, if this library is being configured as part of a cross compiler, the
1438
# top-level configure script will pass the "real" host as $with_cross_host.
1439
#
1440
# Do not delete or change the following two lines.  For why, see
1441
# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
1442
ac_aux_dir=
1443
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1444
  if test -f $ac_dir/install-sh; then
1445
    ac_aux_dir=$ac_dir
1446
    ac_install_sh="$ac_aux_dir/install-sh -c"
1447
    break
1448
  elif test -f $ac_dir/install.sh; then
1449
    ac_aux_dir=$ac_dir
1450
    ac_install_sh="$ac_aux_dir/install.sh -c"
1451
    break
1452
  elif test -f $ac_dir/shtool; then
1453
    ac_aux_dir=$ac_dir
1454
    ac_install_sh="$ac_aux_dir/shtool install -c"
1455
    break
1456
  fi
1457
done
1458
if test -z "$ac_aux_dir"; then
1459
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1460
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1461
   { (exit 1); exit 1; }; }
1462
fi
1463
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1464
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1465
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1466
 
1467
# Make sure we can run config.sub.
1468
$ac_config_sub sun4 >/dev/null 2>&1 ||
1469
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1470
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1471
   { (exit 1); exit 1; }; }
1472
 
1473
echo "$as_me:$LINENO: checking build system type" >&5
1474
echo $ECHO_N "checking build system type... $ECHO_C" >&6
1475
if test "${ac_cv_build+set}" = set; then
1476
  echo $ECHO_N "(cached) $ECHO_C" >&6
1477
else
1478
  ac_cv_build_alias=$build_alias
1479
test -z "$ac_cv_build_alias" &&
1480
  ac_cv_build_alias=`$ac_config_guess`
1481
test -z "$ac_cv_build_alias" &&
1482
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1483
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1484
   { (exit 1); exit 1; }; }
1485
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1486
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1487
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1488
   { (exit 1); exit 1; }; }
1489
 
1490
fi
1491
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1492
echo "${ECHO_T}$ac_cv_build" >&6
1493
build=$ac_cv_build
1494
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1495
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1496
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1497
 
1498
 
1499
echo "$as_me:$LINENO: checking host system type" >&5
1500
echo $ECHO_N "checking host system type... $ECHO_C" >&6
1501
if test "${ac_cv_host+set}" = set; then
1502
  echo $ECHO_N "(cached) $ECHO_C" >&6
1503
else
1504
  ac_cv_host_alias=$host_alias
1505
test -z "$ac_cv_host_alias" &&
1506
  ac_cv_host_alias=$ac_cv_build_alias
1507
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1508
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1509
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1510
   { (exit 1); exit 1; }; }
1511
 
1512
fi
1513
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1514
echo "${ECHO_T}$ac_cv_host" >&6
1515
host=$ac_cv_host
1516
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1517
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1518
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1519
 
1520
 
1521
echo "$as_me:$LINENO: checking target system type" >&5
1522
echo $ECHO_N "checking target system type... $ECHO_C" >&6
1523
if test "${ac_cv_target+set}" = set; then
1524
  echo $ECHO_N "(cached) $ECHO_C" >&6
1525
else
1526
  ac_cv_target_alias=$target_alias
1527
test "x$ac_cv_target_alias" = "x" &&
1528
  ac_cv_target_alias=$ac_cv_host_alias
1529
ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1530
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1531
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1532
   { (exit 1); exit 1; }; }
1533
 
1534
fi
1535
echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1536
echo "${ECHO_T}$ac_cv_target" >&6
1537
target=$ac_cv_target
1538
target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1539
target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1540
target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1541
 
1542
 
1543
# The aliases save the names the user supplied, while $host etc.
1544
# will get canonicalized.
1545
test -n "$target_alias" &&
1546
  test "$program_prefix$program_suffix$program_transform_name" = \
1547
    NONENONEs,x,x, &&
1548
  program_prefix=${target_alias}-
1549
target_alias=${target_alias-$host_alias}
1550
 
1551
# Sets up automake.  Must come after AC_CANONICAL_SYSTEM.  Each of the
1552
# following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
1553
#  1.9.0:  minimum required version
1554
#  no-define:  PACKAGE and VERSION will not be #define'd in config.h (a bunch
1555
#              of other PACKAGE_* variables will, however, and there's nothing
1556
#              we can do about that; they come from AC_INIT).
1557
#  foreign:  we don't follow the normal rules for GNU packages (no COPYING
1558
#            file in the top srcdir, etc, etc), so stop complaining.
1559
#  no-dependencies:  turns off auto dependency generation (just for now)
1560
#  -Wall:  turns on all automake warnings...
1561
#  -Wno-portability:  ...except this one, since GNU make is required.
1562
#  -Wno-override: ... and this one, since we do want this in testsuite.
1563
am__api_version="1.9"
1564
# Find a good install program.  We prefer a C program (faster),
1565
# so one script is as good as another.  But avoid the broken or
1566
# incompatible versions:
1567
# SysV /etc/install, /usr/sbin/install
1568
# SunOS /usr/etc/install
1569
# IRIX /sbin/install
1570
# AIX /bin/install
1571
# AmigaOS /C/install, which installs bootblocks on floppy discs
1572
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1573
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1574
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1575
# OS/2's system install, which has a completely different semantic
1576
# ./install, which can be erroneously created by make from ./install.sh.
1577
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1578
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1579
if test -z "$INSTALL"; then
1580
if test "${ac_cv_path_install+set}" = set; then
1581
  echo $ECHO_N "(cached) $ECHO_C" >&6
1582
else
1583
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1584
for as_dir in $PATH
1585
do
1586
  IFS=$as_save_IFS
1587
  test -z "$as_dir" && as_dir=.
1588
  # Account for people who put trailing slashes in PATH elements.
1589
case $as_dir/ in
1590
  ./ | .// | /cC/* | \
1591
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1592
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1593
  /usr/ucb/* ) ;;
1594
  *)
1595
    # OSF1 and SCO ODT 3.0 have their own names for install.
1596
    # Don't use installbsd from OSF since it installs stuff as root
1597
    # by default.
1598
    for ac_prog in ginstall scoinst install; do
1599
      for ac_exec_ext in '' $ac_executable_extensions; do
1600
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1601
          if test $ac_prog = install &&
1602
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1603
            # AIX install.  It has an incompatible calling convention.
1604
            :
1605
          elif test $ac_prog = install &&
1606
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1607
            # program-specific install script used by HP pwplus--don't use.
1608
            :
1609
          else
1610
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1611
            break 3
1612
          fi
1613
        fi
1614
      done
1615
    done
1616
    ;;
1617
esac
1618
done
1619
 
1620
 
1621
fi
1622
  if test "${ac_cv_path_install+set}" = set; then
1623
    INSTALL=$ac_cv_path_install
1624
  else
1625
    # As a last resort, use the slow shell script.  We don't cache a
1626
    # path for INSTALL within a source directory, because that will
1627
    # break other packages using the cache if that directory is
1628
    # removed, or if the path is relative.
1629
    INSTALL=$ac_install_sh
1630
  fi
1631
fi
1632
echo "$as_me:$LINENO: result: $INSTALL" >&5
1633
echo "${ECHO_T}$INSTALL" >&6
1634
 
1635
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1636
# It thinks the first close brace ends the variable substitution.
1637
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1638
 
1639
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1640
 
1641
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1642
 
1643
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1644
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1645
# Just in case
1646
sleep 1
1647
echo timestamp > conftest.file
1648
# Do `set' in a subshell so we don't clobber the current shell's
1649
# arguments.  Must try -L first in case configure is actually a
1650
# symlink; some systems play weird games with the mod time of symlinks
1651
# (eg FreeBSD returns the mod time of the symlink's containing
1652
# directory).
1653
if (
1654
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1655
   if test "$*" = "X"; then
1656
      # -L didn't work.
1657
      set X `ls -t $srcdir/configure conftest.file`
1658
   fi
1659
   rm -f conftest.file
1660
   if test "$*" != "X $srcdir/configure conftest.file" \
1661
      && test "$*" != "X conftest.file $srcdir/configure"; then
1662
 
1663
      # If neither matched, then we have a broken ls.  This can happen
1664
      # if, for instance, CONFIG_SHELL is bash and it inherits a
1665
      # broken ls alias from the environment.  This has actually
1666
      # happened.  Such a system could not be considered "sane".
1667
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1668
alias in your environment" >&5
1669
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1670
alias in your environment" >&2;}
1671
   { (exit 1); exit 1; }; }
1672
   fi
1673
 
1674
   test "$2" = conftest.file
1675
   )
1676
then
1677
   # Ok.
1678
   :
1679
else
1680
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1681
Check your system clock" >&5
1682
echo "$as_me: error: newly created file is older than distributed files!
1683
Check your system clock" >&2;}
1684
   { (exit 1); exit 1; }; }
1685
fi
1686
echo "$as_me:$LINENO: result: yes" >&5
1687
echo "${ECHO_T}yes" >&6
1688
test "$program_prefix" != NONE &&
1689
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1690
# Use a double $ so make ignores it.
1691
test "$program_suffix" != NONE &&
1692
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1693
# Double any \ or $.  echo might interpret backslashes.
1694
# By default was `s,x,x', remove it if useless.
1695
cat <<\_ACEOF >conftest.sed
1696
s/[\\$]/&&/g;s/;s,x,x,$//
1697
_ACEOF
1698
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1699
rm conftest.sed
1700
 
1701
# expand $ac_aux_dir to an absolute path
1702
am_aux_dir=`cd $ac_aux_dir && pwd`
1703
 
1704
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1705
# Use eval to expand $SHELL
1706
if eval "$MISSING --run true"; then
1707
  am_missing_run="$MISSING --run "
1708
else
1709
  am_missing_run=
1710
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1711
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1712
fi
1713
 
1714
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1715
  # We used to keeping the `.' as first argument, in order to
1716
  # allow $(mkdir_p) to be used without argument.  As in
1717
  #   $(mkdir_p) $(somedir)
1718
  # where $(somedir) is conditionally defined.  However this is wrong
1719
  # for two reasons:
1720
  #  1. if the package is installed by a user who cannot write `.'
1721
  #     make install will fail,
1722
  #  2. the above comment should most certainly read
1723
  #     $(mkdir_p) $(DESTDIR)$(somedir)
1724
  #     so it does not work when $(somedir) is undefined and
1725
  #     $(DESTDIR) is not.
1726
  #  To support the latter case, we have to write
1727
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1728
  #  so the `.' trick is pointless.
1729
  mkdir_p='mkdir -p --'
1730
else
1731
  # On NextStep and OpenStep, the `mkdir' command does not
1732
  # recognize any option.  It will interpret all options as
1733
  # directories to create, and then abort because `.' already
1734
  # exists.
1735
  for d in ./-p ./--version;
1736
  do
1737
    test -d $d && rmdir $d
1738
  done
1739
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1740
  if test -f "$ac_aux_dir/mkinstalldirs"; then
1741
    mkdir_p='$(mkinstalldirs)'
1742
  else
1743
    mkdir_p='$(install_sh) -d'
1744
  fi
1745
fi
1746
 
1747
for ac_prog in gawk mawk nawk awk
1748
do
1749
  # Extract the first word of "$ac_prog", so it can be a program name with args.
1750
set dummy $ac_prog; ac_word=$2
1751
echo "$as_me:$LINENO: checking for $ac_word" >&5
1752
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1753
if test "${ac_cv_prog_AWK+set}" = set; then
1754
  echo $ECHO_N "(cached) $ECHO_C" >&6
1755
else
1756
  if test -n "$AWK"; then
1757
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1758
else
1759
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1760
for as_dir in $PATH
1761
do
1762
  IFS=$as_save_IFS
1763
  test -z "$as_dir" && as_dir=.
1764
  for ac_exec_ext in '' $ac_executable_extensions; do
1765
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1766
    ac_cv_prog_AWK="$ac_prog"
1767
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1768
    break 2
1769
  fi
1770
done
1771
done
1772
 
1773
fi
1774
fi
1775
AWK=$ac_cv_prog_AWK
1776
if test -n "$AWK"; then
1777
  echo "$as_me:$LINENO: result: $AWK" >&5
1778
echo "${ECHO_T}$AWK" >&6
1779
else
1780
  echo "$as_me:$LINENO: result: no" >&5
1781
echo "${ECHO_T}no" >&6
1782
fi
1783
 
1784
  test -n "$AWK" && break
1785
done
1786
 
1787
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1788
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1789
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1790
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1791
  echo $ECHO_N "(cached) $ECHO_C" >&6
1792
else
1793
  cat >conftest.make <<\_ACEOF
1794
all:
1795
        @echo 'ac_maketemp="$(MAKE)"'
1796
_ACEOF
1797
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1798
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1799
if test -n "$ac_maketemp"; then
1800
  eval ac_cv_prog_make_${ac_make}_set=yes
1801
else
1802
  eval ac_cv_prog_make_${ac_make}_set=no
1803
fi
1804
rm -f conftest.make
1805
fi
1806
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1807
  echo "$as_me:$LINENO: result: yes" >&5
1808
echo "${ECHO_T}yes" >&6
1809
  SET_MAKE=
1810
else
1811
  echo "$as_me:$LINENO: result: no" >&5
1812
echo "${ECHO_T}no" >&6
1813
  SET_MAKE="MAKE=${MAKE-make}"
1814
fi
1815
 
1816
rm -rf .tst 2>/dev/null
1817
mkdir .tst 2>/dev/null
1818
if test -d .tst; then
1819
  am__leading_dot=.
1820
else
1821
  am__leading_dot=_
1822
fi
1823
rmdir .tst 2>/dev/null
1824
 
1825
# test to see if srcdir already configured
1826
if test "`cd $srcdir && pwd`" != "`pwd`" &&
1827
   test -f $srcdir/config.status; then
1828
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1829
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1830
   { (exit 1); exit 1; }; }
1831
fi
1832
 
1833
# test whether we have cygpath
1834
if test -z "$CYGPATH_W"; then
1835
  if (cygpath --version) >/dev/null 2>/dev/null; then
1836
    CYGPATH_W='cygpath -w'
1837
  else
1838
    CYGPATH_W=echo
1839
  fi
1840
fi
1841
 
1842
 
1843
# Define the identity of the package.
1844
 PACKAGE='libgomp'
1845
 VERSION='1.0'
1846
 
1847
 
1848
cat >>confdefs.h <<_ACEOF
1849
#define PACKAGE "$PACKAGE"
1850
_ACEOF
1851
 
1852
 
1853
cat >>confdefs.h <<_ACEOF
1854
#define VERSION "$VERSION"
1855
_ACEOF
1856
 
1857
# Some tools Automake needs.
1858
 
1859
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1860
 
1861
 
1862
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1863
 
1864
 
1865
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1866
 
1867
 
1868
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1869
 
1870
 
1871
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1872
 
1873
install_sh=${install_sh-"$am_aux_dir/install-sh"}
1874
 
1875
# Installed binaries are usually stripped using `strip' when the user
1876
# run `make install-strip'.  However `strip' might not be the right
1877
# tool to use in cross-compilation environments, therefore Automake
1878
# will honor the `STRIP' environment variable to overrule this program.
1879
if test "$cross_compiling" != no; then
1880
  if test -n "$ac_tool_prefix"; then
1881
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1882
set dummy ${ac_tool_prefix}strip; ac_word=$2
1883
echo "$as_me:$LINENO: checking for $ac_word" >&5
1884
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1885
if test "${ac_cv_prog_STRIP+set}" = set; then
1886
  echo $ECHO_N "(cached) $ECHO_C" >&6
1887
else
1888
  if test -n "$STRIP"; then
1889
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1890
else
1891
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1892
for as_dir in $PATH
1893
do
1894
  IFS=$as_save_IFS
1895
  test -z "$as_dir" && as_dir=.
1896
  for ac_exec_ext in '' $ac_executable_extensions; do
1897
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1898
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1899
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1900
    break 2
1901
  fi
1902
done
1903
done
1904
 
1905
fi
1906
fi
1907
STRIP=$ac_cv_prog_STRIP
1908
if test -n "$STRIP"; then
1909
  echo "$as_me:$LINENO: result: $STRIP" >&5
1910
echo "${ECHO_T}$STRIP" >&6
1911
else
1912
  echo "$as_me:$LINENO: result: no" >&5
1913
echo "${ECHO_T}no" >&6
1914
fi
1915
 
1916
fi
1917
if test -z "$ac_cv_prog_STRIP"; then
1918
  ac_ct_STRIP=$STRIP
1919
  # Extract the first word of "strip", so it can be a program name with args.
1920
set dummy strip; ac_word=$2
1921
echo "$as_me:$LINENO: checking for $ac_word" >&5
1922
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1923
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1924
  echo $ECHO_N "(cached) $ECHO_C" >&6
1925
else
1926
  if test -n "$ac_ct_STRIP"; then
1927
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1928
else
1929
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1930
for as_dir in $PATH
1931
do
1932
  IFS=$as_save_IFS
1933
  test -z "$as_dir" && as_dir=.
1934
  for ac_exec_ext in '' $ac_executable_extensions; do
1935
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1936
    ac_cv_prog_ac_ct_STRIP="strip"
1937
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1938
    break 2
1939
  fi
1940
done
1941
done
1942
 
1943
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1944
fi
1945
fi
1946
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1947
if test -n "$ac_ct_STRIP"; then
1948
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1949
echo "${ECHO_T}$ac_ct_STRIP" >&6
1950
else
1951
  echo "$as_me:$LINENO: result: no" >&5
1952
echo "${ECHO_T}no" >&6
1953
fi
1954
 
1955
  STRIP=$ac_ct_STRIP
1956
else
1957
  STRIP="$ac_cv_prog_STRIP"
1958
fi
1959
 
1960
fi
1961
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1962
 
1963
# We need awk for the "check" target.  The system "awk" is bad on
1964
# some platforms.
1965
# Always define AMTAR for backward compatibility.
1966
 
1967
AMTAR=${AMTAR-"${am_missing_run}tar"}
1968
 
1969
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1970
 
1971
 
1972
 
1973
 
1974
 
1975
# Default to --enable-multilib
1976
# Check whether --enable-multilib or --disable-multilib was given.
1977
if test "${enable_multilib+set}" = set; then
1978
  enableval="$enable_multilib"
1979
  case "$enableval" in
1980
  yes) multilib=yes ;;
1981
  no)  multilib=no ;;
1982
  *)   { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1983
echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1984
   { (exit 1); exit 1; }; } ;;
1985
 esac
1986
else
1987
  multilib=yes
1988
fi;
1989
 
1990
# We may get other options which we leave undocumented:
1991
# --with-target-subdir, --with-multisrctop, --with-multisubdir
1992
# See config-ml.in if you want the gory details.
1993
 
1994
if test "$srcdir" = "."; then
1995
  if test "$with_target_subdir" != "."; then
1996
    multi_basedir="$srcdir/$with_multisrctop../.."
1997
  else
1998
    multi_basedir="$srcdir/$with_multisrctop.."
1999
  fi
2000
else
2001
  multi_basedir="$srcdir/.."
2002
fi
2003
 
2004
 
2005
# Even if the default multilib is not a cross compilation,
2006
# it may be that some of the other multilibs are.
2007
if test $cross_compiling = no && test $multilib = yes \
2008
   && test "x${with_multisubdir}" != x ; then
2009
   cross_compiling=maybe
2010
fi
2011
 
2012
          ac_config_commands="$ac_config_commands default-1"
2013
 
2014
 
2015
# Calculate toolexeclibdir
2016
# Also toolexecdir, though it's only used in toolexeclibdir
2017
case ${enable_version_specific_runtime_libs} in
2018
  yes)
2019
    # Need the gcc compiler version to know where to install libraries
2020
    # and header files if --enable-version-specific-runtime-libs option
2021
    # is selected.
2022
    toolexecdir='$(libdir)/gcc/$(target_alias)'
2023
    toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
2024
    ;;
2025
  no)
2026
    if test -n "$with_cross_host" &&
2027
       test x"$with_cross_host" != x"no"; then
2028
      # Install a library built with a cross compiler in tooldir, not libdir.
2029
      toolexecdir='$(exec_prefix)/$(target_alias)'
2030
      toolexeclibdir='$(toolexecdir)/lib'
2031
    else
2032
      toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
2033
      toolexeclibdir='$(libdir)'
2034
    fi
2035
    multi_os_directory=`$CC -print-multi-os-directory`
2036
    case $multi_os_directory in
2037
      .) ;; # Avoid trailing /.
2038
      *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
2039
    esac
2040
    ;;
2041
esac
2042
 
2043
 
2044
 
2045
# Check the compiler.
2046
# The same as in boehm-gc and libstdc++. Have to borrow it from there.
2047
# We must force CC to /not/ be precious variables; otherwise
2048
# the wrong, non-multilib-adjusted value will be used in multilibs.
2049
# As a side effect, we have to subst CFLAGS ourselves.
2050
 
2051
 
2052
 
2053
ac_ext=c
2054
ac_cpp='$CPP $CPPFLAGS'
2055
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2056
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2057
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2058
if test -n "$ac_tool_prefix"; then
2059
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2060
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2061
echo "$as_me:$LINENO: checking for $ac_word" >&5
2062
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2063
if test "${ac_cv_prog_CC+set}" = set; then
2064
  echo $ECHO_N "(cached) $ECHO_C" >&6
2065
else
2066
  if test -n "$CC"; then
2067
  ac_cv_prog_CC="$CC" # Let the user override the test.
2068
else
2069
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2070
for as_dir in $PATH
2071
do
2072
  IFS=$as_save_IFS
2073
  test -z "$as_dir" && as_dir=.
2074
  for ac_exec_ext in '' $ac_executable_extensions; do
2075
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2076
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2077
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2078
    break 2
2079
  fi
2080
done
2081
done
2082
 
2083
fi
2084
fi
2085
CC=$ac_cv_prog_CC
2086
if test -n "$CC"; then
2087
  echo "$as_me:$LINENO: result: $CC" >&5
2088
echo "${ECHO_T}$CC" >&6
2089
else
2090
  echo "$as_me:$LINENO: result: no" >&5
2091
echo "${ECHO_T}no" >&6
2092
fi
2093
 
2094
fi
2095
if test -z "$ac_cv_prog_CC"; then
2096
  ac_ct_CC=$CC
2097
  # Extract the first word of "gcc", so it can be a program name with args.
2098
set dummy gcc; ac_word=$2
2099
echo "$as_me:$LINENO: checking for $ac_word" >&5
2100
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2101
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2102
  echo $ECHO_N "(cached) $ECHO_C" >&6
2103
else
2104
  if test -n "$ac_ct_CC"; then
2105
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2106
else
2107
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2108
for as_dir in $PATH
2109
do
2110
  IFS=$as_save_IFS
2111
  test -z "$as_dir" && as_dir=.
2112
  for ac_exec_ext in '' $ac_executable_extensions; do
2113
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2114
    ac_cv_prog_ac_ct_CC="gcc"
2115
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2116
    break 2
2117
  fi
2118
done
2119
done
2120
 
2121
fi
2122
fi
2123
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2124
if test -n "$ac_ct_CC"; then
2125
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2126
echo "${ECHO_T}$ac_ct_CC" >&6
2127
else
2128
  echo "$as_me:$LINENO: result: no" >&5
2129
echo "${ECHO_T}no" >&6
2130
fi
2131
 
2132
  CC=$ac_ct_CC
2133
else
2134
  CC="$ac_cv_prog_CC"
2135
fi
2136
 
2137
if test -z "$CC"; then
2138
  if test -n "$ac_tool_prefix"; then
2139
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2140
set dummy ${ac_tool_prefix}cc; ac_word=$2
2141
echo "$as_me:$LINENO: checking for $ac_word" >&5
2142
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2143
if test "${ac_cv_prog_CC+set}" = set; then
2144
  echo $ECHO_N "(cached) $ECHO_C" >&6
2145
else
2146
  if test -n "$CC"; then
2147
  ac_cv_prog_CC="$CC" # Let the user override the test.
2148
else
2149
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2150
for as_dir in $PATH
2151
do
2152
  IFS=$as_save_IFS
2153
  test -z "$as_dir" && as_dir=.
2154
  for ac_exec_ext in '' $ac_executable_extensions; do
2155
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2156
    ac_cv_prog_CC="${ac_tool_prefix}cc"
2157
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2158
    break 2
2159
  fi
2160
done
2161
done
2162
 
2163
fi
2164
fi
2165
CC=$ac_cv_prog_CC
2166
if test -n "$CC"; then
2167
  echo "$as_me:$LINENO: result: $CC" >&5
2168
echo "${ECHO_T}$CC" >&6
2169
else
2170
  echo "$as_me:$LINENO: result: no" >&5
2171
echo "${ECHO_T}no" >&6
2172
fi
2173
 
2174
fi
2175
if test -z "$ac_cv_prog_CC"; then
2176
  ac_ct_CC=$CC
2177
  # Extract the first word of "cc", so it can be a program name with args.
2178
set dummy cc; ac_word=$2
2179
echo "$as_me:$LINENO: checking for $ac_word" >&5
2180
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2181
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2182
  echo $ECHO_N "(cached) $ECHO_C" >&6
2183
else
2184
  if test -n "$ac_ct_CC"; then
2185
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2186
else
2187
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2188
for as_dir in $PATH
2189
do
2190
  IFS=$as_save_IFS
2191
  test -z "$as_dir" && as_dir=.
2192
  for ac_exec_ext in '' $ac_executable_extensions; do
2193
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2194
    ac_cv_prog_ac_ct_CC="cc"
2195
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2196
    break 2
2197
  fi
2198
done
2199
done
2200
 
2201
fi
2202
fi
2203
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2204
if test -n "$ac_ct_CC"; then
2205
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2206
echo "${ECHO_T}$ac_ct_CC" >&6
2207
else
2208
  echo "$as_me:$LINENO: result: no" >&5
2209
echo "${ECHO_T}no" >&6
2210
fi
2211
 
2212
  CC=$ac_ct_CC
2213
else
2214
  CC="$ac_cv_prog_CC"
2215
fi
2216
 
2217
fi
2218
if test -z "$CC"; then
2219
  # Extract the first word of "cc", so it can be a program name with args.
2220
set dummy cc; ac_word=$2
2221
echo "$as_me:$LINENO: checking for $ac_word" >&5
2222
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2223
if test "${ac_cv_prog_CC+set}" = set; then
2224
  echo $ECHO_N "(cached) $ECHO_C" >&6
2225
else
2226
  if test -n "$CC"; then
2227
  ac_cv_prog_CC="$CC" # Let the user override the test.
2228
else
2229
  ac_prog_rejected=no
2230
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2231
for as_dir in $PATH
2232
do
2233
  IFS=$as_save_IFS
2234
  test -z "$as_dir" && as_dir=.
2235
  for ac_exec_ext in '' $ac_executable_extensions; do
2236
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2237
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2238
       ac_prog_rejected=yes
2239
       continue
2240
     fi
2241
    ac_cv_prog_CC="cc"
2242
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2243
    break 2
2244
  fi
2245
done
2246
done
2247
 
2248
if test $ac_prog_rejected = yes; then
2249
  # We found a bogon in the path, so make sure we never use it.
2250
  set dummy $ac_cv_prog_CC
2251
  shift
2252
  if test $# != 0; then
2253
    # We chose a different compiler from the bogus one.
2254
    # However, it has the same basename, so the bogon will be chosen
2255
    # first if we set CC to just the basename; use the full file name.
2256
    shift
2257
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2258
  fi
2259
fi
2260
fi
2261
fi
2262
CC=$ac_cv_prog_CC
2263
if test -n "$CC"; then
2264
  echo "$as_me:$LINENO: result: $CC" >&5
2265
echo "${ECHO_T}$CC" >&6
2266
else
2267
  echo "$as_me:$LINENO: result: no" >&5
2268
echo "${ECHO_T}no" >&6
2269
fi
2270
 
2271
fi
2272
if test -z "$CC"; then
2273
  if test -n "$ac_tool_prefix"; then
2274
  for ac_prog in cl
2275
  do
2276
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2277
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2278
echo "$as_me:$LINENO: checking for $ac_word" >&5
2279
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2280
if test "${ac_cv_prog_CC+set}" = set; then
2281
  echo $ECHO_N "(cached) $ECHO_C" >&6
2282
else
2283
  if test -n "$CC"; then
2284
  ac_cv_prog_CC="$CC" # Let the user override the test.
2285
else
2286
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2287
for as_dir in $PATH
2288
do
2289
  IFS=$as_save_IFS
2290
  test -z "$as_dir" && as_dir=.
2291
  for ac_exec_ext in '' $ac_executable_extensions; do
2292
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2293
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2294
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2295
    break 2
2296
  fi
2297
done
2298
done
2299
 
2300
fi
2301
fi
2302
CC=$ac_cv_prog_CC
2303
if test -n "$CC"; then
2304
  echo "$as_me:$LINENO: result: $CC" >&5
2305
echo "${ECHO_T}$CC" >&6
2306
else
2307
  echo "$as_me:$LINENO: result: no" >&5
2308
echo "${ECHO_T}no" >&6
2309
fi
2310
 
2311
    test -n "$CC" && break
2312
  done
2313
fi
2314
if test -z "$CC"; then
2315
  ac_ct_CC=$CC
2316
  for ac_prog in cl
2317
do
2318
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2319
set dummy $ac_prog; ac_word=$2
2320
echo "$as_me:$LINENO: checking for $ac_word" >&5
2321
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2322
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2323
  echo $ECHO_N "(cached) $ECHO_C" >&6
2324
else
2325
  if test -n "$ac_ct_CC"; then
2326
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2327
else
2328
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2329
for as_dir in $PATH
2330
do
2331
  IFS=$as_save_IFS
2332
  test -z "$as_dir" && as_dir=.
2333
  for ac_exec_ext in '' $ac_executable_extensions; do
2334
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2335
    ac_cv_prog_ac_ct_CC="$ac_prog"
2336
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2337
    break 2
2338
  fi
2339
done
2340
done
2341
 
2342
fi
2343
fi
2344
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2345
if test -n "$ac_ct_CC"; then
2346
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2347
echo "${ECHO_T}$ac_ct_CC" >&6
2348
else
2349
  echo "$as_me:$LINENO: result: no" >&5
2350
echo "${ECHO_T}no" >&6
2351
fi
2352
 
2353
  test -n "$ac_ct_CC" && break
2354
done
2355
 
2356
  CC=$ac_ct_CC
2357
fi
2358
 
2359
fi
2360
 
2361
 
2362
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2363
See \`config.log' for more details." >&5
2364
echo "$as_me: error: no acceptable C compiler found in \$PATH
2365
See \`config.log' for more details." >&2;}
2366
   { (exit 1); exit 1; }; }
2367
 
2368
# Provide some information about the compiler.
2369
echo "$as_me:$LINENO:" \
2370
     "checking for C compiler version" >&5
2371
ac_compiler=`set X $ac_compile; echo $2`
2372
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5
2373
  (eval $ac_compiler --version &5) 2>&5
2374
  ac_status=$?
2375
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376
  (exit $ac_status); }
2377
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5
2378
  (eval $ac_compiler -v &5) 2>&5
2379
  ac_status=$?
2380
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381
  (exit $ac_status); }
2382
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&5
2383
  (eval $ac_compiler -V &5) 2>&5
2384
  ac_status=$?
2385
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386
  (exit $ac_status); }
2387
 
2388
cat >conftest.$ac_ext <<_ACEOF
2389
/* confdefs.h.  */
2390
_ACEOF
2391
cat confdefs.h >>conftest.$ac_ext
2392
cat >>conftest.$ac_ext <<_ACEOF
2393
/* end confdefs.h.  */
2394
 
2395
int
2396
main ()
2397
{
2398
 
2399
  ;
2400
  return 0;
2401
}
2402
_ACEOF
2403
ac_clean_files_save=$ac_clean_files
2404
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2405
# Try to create an executable without -o first, disregard a.out.
2406
# It will help us diagnose broken compilers, and finding out an intuition
2407
# of exeext.
2408
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2409
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2410
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2411
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2412
  (eval $ac_link_default) 2>&5
2413
  ac_status=$?
2414
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415
  (exit $ac_status); }; then
2416
  # Find the output, starting from the most likely.  This scheme is
2417
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2418
# resort.
2419
 
2420
# Be careful to initialize this variable, since it used to be cached.
2421
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2422
ac_cv_exeext=
2423
# b.out is created by i960 compilers.
2424
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2425
do
2426
  test -f "$ac_file" || continue
2427
  case $ac_file in
2428
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2429
        ;;
2430
    conftest.$ac_ext )
2431
        # This is the source file.
2432
        ;;
2433
    [ab].out )
2434
        # We found the default executable, but exeext='' is most
2435
        # certainly right.
2436
        break;;
2437
    *.* )
2438
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2439
        # FIXME: I believe we export ac_cv_exeext for Libtool,
2440
        # but it would be cool to find out if it's true.  Does anybody
2441
        # maintain Libtool? --akim.
2442
        export ac_cv_exeext
2443
        break;;
2444
    * )
2445
        break;;
2446
  esac
2447
done
2448
else
2449
  echo "$as_me: failed program was:" >&5
2450
sed 's/^/| /' conftest.$ac_ext >&5
2451
 
2452
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2453
See \`config.log' for more details." >&5
2454
echo "$as_me: error: C compiler cannot create executables
2455
See \`config.log' for more details." >&2;}
2456
   { (exit 77); exit 77; }; }
2457
fi
2458
 
2459
ac_exeext=$ac_cv_exeext
2460
echo "$as_me:$LINENO: result: $ac_file" >&5
2461
echo "${ECHO_T}$ac_file" >&6
2462
 
2463
# Check the compiler produces executables we can run.  If not, either
2464
# the compiler is broken, or we cross compile.
2465
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2466
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2467
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2468
# If not cross compiling, check that we can run a simple program.
2469
if test "$cross_compiling" != yes; then
2470
  if { ac_try='./$ac_file'
2471
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2472
  (eval $ac_try) 2>&5
2473
  ac_status=$?
2474
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475
  (exit $ac_status); }; }; then
2476
    cross_compiling=no
2477
  else
2478
    if test "$cross_compiling" = maybe; then
2479
        cross_compiling=yes
2480
    else
2481
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2482
If you meant to cross compile, use \`--host'.
2483
See \`config.log' for more details." >&5
2484
echo "$as_me: error: cannot run C compiled programs.
2485
If you meant to cross compile, use \`--host'.
2486
See \`config.log' for more details." >&2;}
2487
   { (exit 1); exit 1; }; }
2488
    fi
2489
  fi
2490
fi
2491
echo "$as_me:$LINENO: result: yes" >&5
2492
echo "${ECHO_T}yes" >&6
2493
 
2494
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2495
ac_clean_files=$ac_clean_files_save
2496
# Check the compiler produces executables we can run.  If not, either
2497
# the compiler is broken, or we cross compile.
2498
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2499
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2500
echo "$as_me:$LINENO: result: $cross_compiling" >&5
2501
echo "${ECHO_T}$cross_compiling" >&6
2502
 
2503
echo "$as_me:$LINENO: checking for suffix of executables" >&5
2504
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2505
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2506
  (eval $ac_link) 2>&5
2507
  ac_status=$?
2508
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509
  (exit $ac_status); }; then
2510
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2511
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2512
# work properly (i.e., refer to `conftest.exe'), while it won't with
2513
# `rm'.
2514
for ac_file in conftest.exe conftest conftest.*; do
2515
  test -f "$ac_file" || continue
2516
  case $ac_file in
2517
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2518
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2519
          export ac_cv_exeext
2520
          break;;
2521
    * ) break;;
2522
  esac
2523
done
2524
else
2525
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2526
See \`config.log' for more details." >&5
2527
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2528
See \`config.log' for more details." >&2;}
2529
   { (exit 1); exit 1; }; }
2530
fi
2531
 
2532
rm -f conftest$ac_cv_exeext
2533
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2534
echo "${ECHO_T}$ac_cv_exeext" >&6
2535
 
2536
rm -f conftest.$ac_ext
2537
EXEEXT=$ac_cv_exeext
2538
ac_exeext=$EXEEXT
2539
echo "$as_me:$LINENO: checking for suffix of object files" >&5
2540
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2541
if test "${ac_cv_objext+set}" = set; then
2542
  echo $ECHO_N "(cached) $ECHO_C" >&6
2543
else
2544
  cat >conftest.$ac_ext <<_ACEOF
2545
/* confdefs.h.  */
2546
_ACEOF
2547
cat confdefs.h >>conftest.$ac_ext
2548
cat >>conftest.$ac_ext <<_ACEOF
2549
/* end confdefs.h.  */
2550
 
2551
int
2552
main ()
2553
{
2554
 
2555
  ;
2556
  return 0;
2557
}
2558
_ACEOF
2559
rm -f conftest.o conftest.obj
2560
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2561
  (eval $ac_compile) 2>&5
2562
  ac_status=$?
2563
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564
  (exit $ac_status); }; then
2565
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2566
  case $ac_file in
2567
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2568
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2569
       break;;
2570
  esac
2571
done
2572
else
2573
  echo "$as_me: failed program was:" >&5
2574
sed 's/^/| /' conftest.$ac_ext >&5
2575
 
2576
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2577
See \`config.log' for more details." >&5
2578
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2579
See \`config.log' for more details." >&2;}
2580
   { (exit 1); exit 1; }; }
2581
fi
2582
 
2583
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2584
fi
2585
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2586
echo "${ECHO_T}$ac_cv_objext" >&6
2587
OBJEXT=$ac_cv_objext
2588
ac_objext=$OBJEXT
2589
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2590
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2591
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2592
  echo $ECHO_N "(cached) $ECHO_C" >&6
2593
else
2594
  cat >conftest.$ac_ext <<_ACEOF
2595
/* confdefs.h.  */
2596
_ACEOF
2597
cat confdefs.h >>conftest.$ac_ext
2598
cat >>conftest.$ac_ext <<_ACEOF
2599
/* end confdefs.h.  */
2600
 
2601
int
2602
main ()
2603
{
2604
#ifndef __GNUC__
2605
       choke me
2606
#endif
2607
 
2608
  ;
2609
  return 0;
2610
}
2611
_ACEOF
2612
rm -f conftest.$ac_objext
2613
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2614
  (eval $ac_compile) 2>conftest.er1
2615
  ac_status=$?
2616
  grep -v '^ *+' conftest.er1 >conftest.err
2617
  rm -f conftest.er1
2618
  cat conftest.err >&5
2619
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620
  (exit $ac_status); } &&
2621
         { ac_try='test -z "$ac_c_werror_flag"
2622
                         || test ! -s conftest.err'
2623
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2624
  (eval $ac_try) 2>&5
2625
  ac_status=$?
2626
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627
  (exit $ac_status); }; } &&
2628
         { ac_try='test -s conftest.$ac_objext'
2629
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2630
  (eval $ac_try) 2>&5
2631
  ac_status=$?
2632
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633
  (exit $ac_status); }; }; then
2634
  ac_compiler_gnu=yes
2635
else
2636
  echo "$as_me: failed program was:" >&5
2637
sed 's/^/| /' conftest.$ac_ext >&5
2638
 
2639
ac_compiler_gnu=no
2640
fi
2641
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2642
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2643
 
2644
fi
2645
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2646
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2647
GCC=`test $ac_compiler_gnu = yes && echo yes`
2648
ac_test_CFLAGS=${CFLAGS+set}
2649
ac_save_CFLAGS=$CFLAGS
2650
CFLAGS="-g"
2651
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2652
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2653
if test "${ac_cv_prog_cc_g+set}" = set; then
2654
  echo $ECHO_N "(cached) $ECHO_C" >&6
2655
else
2656
  cat >conftest.$ac_ext <<_ACEOF
2657
/* confdefs.h.  */
2658
_ACEOF
2659
cat confdefs.h >>conftest.$ac_ext
2660
cat >>conftest.$ac_ext <<_ACEOF
2661
/* end confdefs.h.  */
2662
 
2663
int
2664
main ()
2665
{
2666
 
2667
  ;
2668
  return 0;
2669
}
2670
_ACEOF
2671
rm -f conftest.$ac_objext
2672
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2673
  (eval $ac_compile) 2>conftest.er1
2674
  ac_status=$?
2675
  grep -v '^ *+' conftest.er1 >conftest.err
2676
  rm -f conftest.er1
2677
  cat conftest.err >&5
2678
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2679
  (exit $ac_status); } &&
2680
         { ac_try='test -z "$ac_c_werror_flag"
2681
                         || test ! -s conftest.err'
2682
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2683
  (eval $ac_try) 2>&5
2684
  ac_status=$?
2685
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686
  (exit $ac_status); }; } &&
2687
         { ac_try='test -s conftest.$ac_objext'
2688
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2689
  (eval $ac_try) 2>&5
2690
  ac_status=$?
2691
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692
  (exit $ac_status); }; }; then
2693
  ac_cv_prog_cc_g=yes
2694
else
2695
  echo "$as_me: failed program was:" >&5
2696
sed 's/^/| /' conftest.$ac_ext >&5
2697
 
2698
ac_cv_prog_cc_g=no
2699
fi
2700
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2701
fi
2702
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2703
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2704
if test "$ac_test_CFLAGS" = set; then
2705
  CFLAGS=$ac_save_CFLAGS
2706
elif test $ac_cv_prog_cc_g = yes; then
2707
  if test "$GCC" = yes; then
2708
    CFLAGS="-g -O2"
2709
  else
2710
    CFLAGS="-g"
2711
  fi
2712
else
2713
  if test "$GCC" = yes; then
2714
    CFLAGS="-O2"
2715
  else
2716
    CFLAGS=
2717
  fi
2718
fi
2719
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2720
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2721
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2722
  echo $ECHO_N "(cached) $ECHO_C" >&6
2723
else
2724
  ac_cv_prog_cc_stdc=no
2725
ac_save_CC=$CC
2726
cat >conftest.$ac_ext <<_ACEOF
2727
/* confdefs.h.  */
2728
_ACEOF
2729
cat confdefs.h >>conftest.$ac_ext
2730
cat >>conftest.$ac_ext <<_ACEOF
2731
/* end confdefs.h.  */
2732
#include 
2733
#include 
2734
#include 
2735
#include 
2736
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2737
struct buf { int x; };
2738
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2739
static char *e (p, i)
2740
     char **p;
2741
     int i;
2742
{
2743
  return p[i];
2744
}
2745
static char *f (char * (*g) (char **, int), char **p, ...)
2746
{
2747
  char *s;
2748
  va_list v;
2749
  va_start (v,p);
2750
  s = g (p, va_arg (v,int));
2751
  va_end (v);
2752
  return s;
2753
}
2754
 
2755
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2756
   function prototypes and stuff, but not '\xHH' hex character constants.
2757
   These don't provoke an error unfortunately, instead are silently treated
2758
   as 'x'.  The following induces an error, until -std1 is added to get
2759
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2760
   array size at least.  It's necessary to write '\x00'==0 to get something
2761
   that's true only with -std1.  */
2762
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2763
 
2764
int test (int i, double x);
2765
struct s1 {int (*f) (int a);};
2766
struct s2 {int (*f) (double a);};
2767
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2768
int argc;
2769
char **argv;
2770
int
2771
main ()
2772
{
2773
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2774
  ;
2775
  return 0;
2776
}
2777
_ACEOF
2778
# Don't try gcc -ansi; that turns off useful extensions and
2779
# breaks some systems' header files.
2780
# AIX                   -qlanglvl=ansi
2781
# Ultrix and OSF/1      -std1
2782
# HP-UX 10.20 and later -Ae
2783
# HP-UX older versions  -Aa -D_HPUX_SOURCE
2784
# SVR4                  -Xc -D__EXTENSIONS__
2785
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2786
do
2787
  CC="$ac_save_CC $ac_arg"
2788
  rm -f conftest.$ac_objext
2789
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2790
  (eval $ac_compile) 2>conftest.er1
2791
  ac_status=$?
2792
  grep -v '^ *+' conftest.er1 >conftest.err
2793
  rm -f conftest.er1
2794
  cat conftest.err >&5
2795
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796
  (exit $ac_status); } &&
2797
         { ac_try='test -z "$ac_c_werror_flag"
2798
                         || test ! -s conftest.err'
2799
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2800
  (eval $ac_try) 2>&5
2801
  ac_status=$?
2802
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803
  (exit $ac_status); }; } &&
2804
         { ac_try='test -s conftest.$ac_objext'
2805
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2806
  (eval $ac_try) 2>&5
2807
  ac_status=$?
2808
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809
  (exit $ac_status); }; }; then
2810
  ac_cv_prog_cc_stdc=$ac_arg
2811
break
2812
else
2813
  echo "$as_me: failed program was:" >&5
2814
sed 's/^/| /' conftest.$ac_ext >&5
2815
 
2816
fi
2817
rm -f conftest.err conftest.$ac_objext
2818
done
2819
rm -f conftest.$ac_ext conftest.$ac_objext
2820
CC=$ac_save_CC
2821
 
2822
fi
2823
 
2824
case "x$ac_cv_prog_cc_stdc" in
2825
  x|xno)
2826
    echo "$as_me:$LINENO: result: none needed" >&5
2827
echo "${ECHO_T}none needed" >&6 ;;
2828
  *)
2829
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2830
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2831
    CC="$CC $ac_cv_prog_cc_stdc" ;;
2832
esac
2833
 
2834
# Some people use a C++ compiler to compile C.  Since we use `exit',
2835
# in C++ we need to declare it.  In case someone uses the same compiler
2836
# for both compiling C and C++ we need to have the C++ compiler decide
2837
# the declaration of exit, since it's the most demanding environment.
2838
cat >conftest.$ac_ext <<_ACEOF
2839
#ifndef __cplusplus
2840
  choke me
2841
#endif
2842
_ACEOF
2843
rm -f conftest.$ac_objext
2844
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2845
  (eval $ac_compile) 2>conftest.er1
2846
  ac_status=$?
2847
  grep -v '^ *+' conftest.er1 >conftest.err
2848
  rm -f conftest.er1
2849
  cat conftest.err >&5
2850
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851
  (exit $ac_status); } &&
2852
         { ac_try='test -z "$ac_c_werror_flag"
2853
                         || test ! -s conftest.err'
2854
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2855
  (eval $ac_try) 2>&5
2856
  ac_status=$?
2857
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858
  (exit $ac_status); }; } &&
2859
         { ac_try='test -s conftest.$ac_objext'
2860
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2861
  (eval $ac_try) 2>&5
2862
  ac_status=$?
2863
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864
  (exit $ac_status); }; }; then
2865
  for ac_declaration in \
2866
   '' \
2867
   'extern "C" void std::exit (int) throw (); using std::exit;' \
2868
   'extern "C" void std::exit (int); using std::exit;' \
2869
   'extern "C" void exit (int) throw ();' \
2870
   'extern "C" void exit (int);' \
2871
   'void exit (int);'
2872
do
2873
  cat >conftest.$ac_ext <<_ACEOF
2874
/* confdefs.h.  */
2875
_ACEOF
2876
cat confdefs.h >>conftest.$ac_ext
2877
cat >>conftest.$ac_ext <<_ACEOF
2878
/* end confdefs.h.  */
2879
$ac_declaration
2880
#include 
2881
int
2882
main ()
2883
{
2884
exit (42);
2885
  ;
2886
  return 0;
2887
}
2888
_ACEOF
2889
rm -f conftest.$ac_objext
2890
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2891
  (eval $ac_compile) 2>conftest.er1
2892
  ac_status=$?
2893
  grep -v '^ *+' conftest.er1 >conftest.err
2894
  rm -f conftest.er1
2895
  cat conftest.err >&5
2896
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897
  (exit $ac_status); } &&
2898
         { ac_try='test -z "$ac_c_werror_flag"
2899
                         || test ! -s conftest.err'
2900
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2901
  (eval $ac_try) 2>&5
2902
  ac_status=$?
2903
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904
  (exit $ac_status); }; } &&
2905
         { ac_try='test -s conftest.$ac_objext'
2906
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2907
  (eval $ac_try) 2>&5
2908
  ac_status=$?
2909
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910
  (exit $ac_status); }; }; then
2911
  :
2912
else
2913
  echo "$as_me: failed program was:" >&5
2914
sed 's/^/| /' conftest.$ac_ext >&5
2915
 
2916
continue
2917
fi
2918
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2919
  cat >conftest.$ac_ext <<_ACEOF
2920
/* confdefs.h.  */
2921
_ACEOF
2922
cat confdefs.h >>conftest.$ac_ext
2923
cat >>conftest.$ac_ext <<_ACEOF
2924
/* end confdefs.h.  */
2925
$ac_declaration
2926
int
2927
main ()
2928
{
2929
exit (42);
2930
  ;
2931
  return 0;
2932
}
2933
_ACEOF
2934
rm -f conftest.$ac_objext
2935
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2936
  (eval $ac_compile) 2>conftest.er1
2937
  ac_status=$?
2938
  grep -v '^ *+' conftest.er1 >conftest.err
2939
  rm -f conftest.er1
2940
  cat conftest.err >&5
2941
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942
  (exit $ac_status); } &&
2943
         { ac_try='test -z "$ac_c_werror_flag"
2944
                         || test ! -s conftest.err'
2945
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2946
  (eval $ac_try) 2>&5
2947
  ac_status=$?
2948
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949
  (exit $ac_status); }; } &&
2950
         { ac_try='test -s conftest.$ac_objext'
2951
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2952
  (eval $ac_try) 2>&5
2953
  ac_status=$?
2954
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955
  (exit $ac_status); }; }; then
2956
  break
2957
else
2958
  echo "$as_me: failed program was:" >&5
2959
sed 's/^/| /' conftest.$ac_ext >&5
2960
 
2961
fi
2962
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2963
done
2964
rm -f conftest*
2965
if test -n "$ac_declaration"; then
2966
  echo '#ifdef __cplusplus' >>confdefs.h
2967
  echo $ac_declaration      >>confdefs.h
2968
  echo '#endif'             >>confdefs.h
2969
fi
2970
 
2971
else
2972
  echo "$as_me: failed program was:" >&5
2973
sed 's/^/| /' conftest.$ac_ext >&5
2974
 
2975
fi
2976
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2977
ac_ext=c
2978
ac_cpp='$CPP $CPPFLAGS'
2979
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2980
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2981
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2982
DEPDIR="${am__leading_dot}deps"
2983
 
2984
          ac_config_commands="$ac_config_commands depfiles"
2985
 
2986
 
2987
am_make=${MAKE-make}
2988
cat > confinc << 'END'
2989
am__doit:
2990
        @echo done
2991
.PHONY: am__doit
2992
END
2993
# If we don't find an include directive, just comment out the code.
2994
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2995
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2996
am__include="#"
2997
am__quote=
2998
_am_result=none
2999
# First try GNU make style include.
3000
echo "include confinc" > confmf
3001
# We grep out `Entering directory' and `Leaving directory'
3002
# messages which can occur if `w' ends up in MAKEFLAGS.
3003
# In particular we don't look at `^make:' because GNU make might
3004
# be invoked under some other name (usually "gmake"), in which
3005
# case it prints its new name instead of `make'.
3006
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3007
   am__include=include
3008
   am__quote=
3009
   _am_result=GNU
3010
fi
3011
# Now try BSD make style include.
3012
if test "$am__include" = "#"; then
3013
   echo '.include "confinc"' > confmf
3014
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3015
      am__include=.include
3016
      am__quote="\""
3017
      _am_result=BSD
3018
   fi
3019
fi
3020
 
3021
 
3022
echo "$as_me:$LINENO: result: $_am_result" >&5
3023
echo "${ECHO_T}$_am_result" >&6
3024
rm -f confinc confmf
3025
 
3026
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3027
if test "${enable_dependency_tracking+set}" = set; then
3028
  enableval="$enable_dependency_tracking"
3029
 
3030
fi;
3031
if test "x$enable_dependency_tracking" != xno; then
3032
  am_depcomp="$ac_aux_dir/depcomp"
3033
  AMDEPBACKSLASH='\'
3034
fi
3035
 
3036
 
3037
if test "x$enable_dependency_tracking" != xno; then
3038
  AMDEP_TRUE=
3039
  AMDEP_FALSE='#'
3040
else
3041
  AMDEP_TRUE='#'
3042
  AMDEP_FALSE=
3043
fi
3044
 
3045
 
3046
 
3047
 
3048
depcc="$CC"   am_compiler_list=
3049
 
3050
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3051
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3052
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3053
  echo $ECHO_N "(cached) $ECHO_C" >&6
3054
else
3055
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3056
  # We make a subdir and do the tests there.  Otherwise we can end up
3057
  # making bogus files that we don't know about and never remove.  For
3058
  # instance it was reported that on HP-UX the gcc test will end up
3059
  # making a dummy file named `D' -- because `-MD' means `put the output
3060
  # in D'.
3061
  mkdir conftest.dir
3062
  # Copy depcomp to subdir because otherwise we won't find it if we're
3063
  # using a relative directory.
3064
  cp "$am_depcomp" conftest.dir
3065
  cd conftest.dir
3066
  # We will build objects and dependencies in a subdirectory because
3067
  # it helps to detect inapplicable dependency modes.  For instance
3068
  # both Tru64's cc and ICC support -MD to output dependencies as a
3069
  # side effect of compilation, but ICC will put the dependencies in
3070
  # the current directory while Tru64 will put them in the object
3071
  # directory.
3072
  mkdir sub
3073
 
3074
  am_cv_CC_dependencies_compiler_type=none
3075
  if test "$am_compiler_list" = ""; then
3076
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3077
  fi
3078
  for depmode in $am_compiler_list; do
3079
    # Setup a source with many dependencies, because some compilers
3080
    # like to wrap large dependency lists on column 80 (with \), and
3081
    # we should not choose a depcomp mode which is confused by this.
3082
    #
3083
    # We need to recreate these files for each test, as the compiler may
3084
    # overwrite some of them when testing with obscure command lines.
3085
    # This happens at least with the AIX C compiler.
3086
    : > sub/conftest.c
3087
    for i in 1 2 3 4 5 6; do
3088
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3089
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3090
      # Solaris 8's {/usr,}/bin/sh.
3091
      touch sub/conftst$i.h
3092
    done
3093
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3094
 
3095
    case $depmode in
3096
    nosideeffect)
3097
      # after this tag, mechanisms are not by side-effect, so they'll
3098
      # only be used when explicitly requested
3099
      if test "x$enable_dependency_tracking" = xyes; then
3100
        continue
3101
      else
3102
        break
3103
      fi
3104
      ;;
3105
    none) break ;;
3106
    esac
3107
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3108
    # mode.  It turns out that the SunPro C++ compiler does not properly
3109
    # handle `-M -o', and we need to detect this.
3110
    if depmode=$depmode \
3111
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3112
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3113
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3114
         >/dev/null 2>conftest.err &&
3115
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3116
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3117
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3118
      # icc doesn't choke on unknown options, it will just issue warnings
3119
      # or remarks (even with -Werror).  So we grep stderr for any message
3120
      # that says an option was ignored or not supported.
3121
      # When given -MP, icc 7.0 and 7.1 complain thusly:
3122
      #   icc: Command line warning: ignoring option '-M'; no argument required
3123
      # The diagnosis changed in icc 8.0:
3124
      #   icc: Command line remark: option '-MP' not supported
3125
      if (grep 'ignoring option' conftest.err ||
3126
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3127
        am_cv_CC_dependencies_compiler_type=$depmode
3128
        break
3129
      fi
3130
    fi
3131
  done
3132
 
3133
  cd ..
3134
  rm -rf conftest.dir
3135
else
3136
  am_cv_CC_dependencies_compiler_type=none
3137
fi
3138
 
3139
fi
3140
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3141
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3142
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3143
 
3144
 
3145
 
3146
if
3147
  test "x$enable_dependency_tracking" != xno \
3148
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3149
  am__fastdepCC_TRUE=
3150
  am__fastdepCC_FALSE='#'
3151
else
3152
  am__fastdepCC_TRUE='#'
3153
  am__fastdepCC_FALSE=
3154
fi
3155
 
3156
 
3157
 
3158
 
3159
 
3160
 
3161
# In order to override CFLAGS_FOR_TARGET, all of our special flags go
3162
# in XCFLAGS.  But we need them in CFLAGS during configury.  So put them
3163
# in both places for now and restore CFLAGS at the end of config.
3164
save_CFLAGS="$CFLAGS"
3165
 
3166
# Add -Wall -Werror if we are using GCC.
3167
if test "x$GCC" = "xyes"; then
3168
  XCFLAGS="$XCFLAGS -Wall -Werror"
3169
fi
3170
 
3171
# Find other programs we need.
3172
if test -n "$ac_tool_prefix"; then
3173
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3174
set dummy ${ac_tool_prefix}ar; ac_word=$2
3175
echo "$as_me:$LINENO: checking for $ac_word" >&5
3176
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3177
if test "${ac_cv_prog_AR+set}" = set; then
3178
  echo $ECHO_N "(cached) $ECHO_C" >&6
3179
else
3180
  if test -n "$AR"; then
3181
  ac_cv_prog_AR="$AR" # Let the user override the test.
3182
else
3183
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3184
for as_dir in $PATH
3185
do
3186
  IFS=$as_save_IFS
3187
  test -z "$as_dir" && as_dir=.
3188
  for ac_exec_ext in '' $ac_executable_extensions; do
3189
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3190
    ac_cv_prog_AR="${ac_tool_prefix}ar"
3191
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3192
    break 2
3193
  fi
3194
done
3195
done
3196
 
3197
fi
3198
fi
3199
AR=$ac_cv_prog_AR
3200
if test -n "$AR"; then
3201
  echo "$as_me:$LINENO: result: $AR" >&5
3202
echo "${ECHO_T}$AR" >&6
3203
else
3204
  echo "$as_me:$LINENO: result: no" >&5
3205
echo "${ECHO_T}no" >&6
3206
fi
3207
 
3208
fi
3209
if test -z "$ac_cv_prog_AR"; then
3210
  ac_ct_AR=$AR
3211
  # Extract the first word of "ar", so it can be a program name with args.
3212
set dummy ar; ac_word=$2
3213
echo "$as_me:$LINENO: checking for $ac_word" >&5
3214
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3215
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3216
  echo $ECHO_N "(cached) $ECHO_C" >&6
3217
else
3218
  if test -n "$ac_ct_AR"; then
3219
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3220
else
3221
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3222
for as_dir in $PATH
3223
do
3224
  IFS=$as_save_IFS
3225
  test -z "$as_dir" && as_dir=.
3226
  for ac_exec_ext in '' $ac_executable_extensions; do
3227
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3228
    ac_cv_prog_ac_ct_AR="ar"
3229
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3230
    break 2
3231
  fi
3232
done
3233
done
3234
 
3235
fi
3236
fi
3237
ac_ct_AR=$ac_cv_prog_ac_ct_AR
3238
if test -n "$ac_ct_AR"; then
3239
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3240
echo "${ECHO_T}$ac_ct_AR" >&6
3241
else
3242
  echo "$as_me:$LINENO: result: no" >&5
3243
echo "${ECHO_T}no" >&6
3244
fi
3245
 
3246
  AR=$ac_ct_AR
3247
else
3248
  AR="$ac_cv_prog_AR"
3249
fi
3250
 
3251
if test -n "$ac_tool_prefix"; then
3252
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3253
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3254
echo "$as_me:$LINENO: checking for $ac_word" >&5
3255
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3256
if test "${ac_cv_prog_RANLIB+set}" = set; then
3257
  echo $ECHO_N "(cached) $ECHO_C" >&6
3258
else
3259
  if test -n "$RANLIB"; then
3260
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3261
else
3262
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3263
for as_dir in $PATH
3264
do
3265
  IFS=$as_save_IFS
3266
  test -z "$as_dir" && as_dir=.
3267
  for ac_exec_ext in '' $ac_executable_extensions; do
3268
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3269
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3270
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3271
    break 2
3272
  fi
3273
done
3274
done
3275
 
3276
fi
3277
fi
3278
RANLIB=$ac_cv_prog_RANLIB
3279
if test -n "$RANLIB"; then
3280
  echo "$as_me:$LINENO: result: $RANLIB" >&5
3281
echo "${ECHO_T}$RANLIB" >&6
3282
else
3283
  echo "$as_me:$LINENO: result: no" >&5
3284
echo "${ECHO_T}no" >&6
3285
fi
3286
 
3287
fi
3288
if test -z "$ac_cv_prog_RANLIB"; then
3289
  ac_ct_RANLIB=$RANLIB
3290
  # Extract the first word of "ranlib", so it can be a program name with args.
3291
set dummy ranlib; ac_word=$2
3292
echo "$as_me:$LINENO: checking for $ac_word" >&5
3293
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3294
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3295
  echo $ECHO_N "(cached) $ECHO_C" >&6
3296
else
3297
  if test -n "$ac_ct_RANLIB"; then
3298
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3299
else
3300
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3301
for as_dir in $PATH
3302
do
3303
  IFS=$as_save_IFS
3304
  test -z "$as_dir" && as_dir=.
3305
  for ac_exec_ext in '' $ac_executable_extensions; do
3306
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3307
    ac_cv_prog_ac_ct_RANLIB="ranlib"
3308
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3309
    break 2
3310
  fi
3311
done
3312
done
3313
 
3314
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error"
3315
fi
3316
fi
3317
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3318
if test -n "$ac_ct_RANLIB"; then
3319
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3320
echo "${ECHO_T}$ac_ct_RANLIB" >&6
3321
else
3322
  echo "$as_me:$LINENO: result: no" >&5
3323
echo "${ECHO_T}no" >&6
3324
fi
3325
 
3326
  RANLIB=$ac_ct_RANLIB
3327
else
3328
  RANLIB="$ac_cv_prog_RANLIB"
3329
fi
3330
 
3331
# Extract the first word of "perl", so it can be a program name with args.
3332
set dummy perl; ac_word=$2
3333
echo "$as_me:$LINENO: checking for $ac_word" >&5
3334
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3335
if test "${ac_cv_path_PERL+set}" = set; then
3336
  echo $ECHO_N "(cached) $ECHO_C" >&6
3337
else
3338
  case $PERL in
3339
  [\\/]* | ?:[\\/]*)
3340
  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3341
  ;;
3342
  *)
3343
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3344
for as_dir in $PATH
3345
do
3346
  IFS=$as_save_IFS
3347
  test -z "$as_dir" && as_dir=.
3348
  for ac_exec_ext in '' $ac_executable_extensions; do
3349
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3350
    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
3351
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3352
    break 2
3353
  fi
3354
done
3355
done
3356
 
3357
  test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
3358
  ;;
3359
esac
3360
fi
3361
PERL=$ac_cv_path_PERL
3362
 
3363
if test -n "$PERL"; then
3364
  echo "$as_me:$LINENO: result: $PERL" >&5
3365
echo "${ECHO_T}$PERL" >&6
3366
else
3367
  echo "$as_me:$LINENO: result: no" >&5
3368
echo "${ECHO_T}no" >&6
3369
fi
3370
 
3371
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3372
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3373
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3374
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3375
  echo $ECHO_N "(cached) $ECHO_C" >&6
3376
else
3377
  cat >conftest.make <<\_ACEOF
3378
all:
3379
        @echo 'ac_maketemp="$(MAKE)"'
3380
_ACEOF
3381
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3382
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3383
if test -n "$ac_maketemp"; then
3384
  eval ac_cv_prog_make_${ac_make}_set=yes
3385
else
3386
  eval ac_cv_prog_make_${ac_make}_set=no
3387
fi
3388
rm -f conftest.make
3389
fi
3390
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3391
  echo "$as_me:$LINENO: result: yes" >&5
3392
echo "${ECHO_T}yes" >&6
3393
  SET_MAKE=
3394
else
3395
  echo "$as_me:$LINENO: result: no" >&5
3396
echo "${ECHO_T}no" >&6
3397
  SET_MAKE="MAKE=${MAKE-make}"
3398
fi
3399
 
3400
# Find a good install program.  We prefer a C program (faster),
3401
# so one script is as good as another.  But avoid the broken or
3402
# incompatible versions:
3403
# SysV /etc/install, /usr/sbin/install
3404
# SunOS /usr/etc/install
3405
# IRIX /sbin/install
3406
# AIX /bin/install
3407
# AmigaOS /C/install, which installs bootblocks on floppy discs
3408
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3409
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3410
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3411
# OS/2's system install, which has a completely different semantic
3412
# ./install, which can be erroneously created by make from ./install.sh.
3413
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3414
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3415
if test -z "$INSTALL"; then
3416
if test "${ac_cv_path_install+set}" = set; then
3417
  echo $ECHO_N "(cached) $ECHO_C" >&6
3418
else
3419
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3420
for as_dir in $PATH
3421
do
3422
  IFS=$as_save_IFS
3423
  test -z "$as_dir" && as_dir=.
3424
  # Account for people who put trailing slashes in PATH elements.
3425
case $as_dir/ in
3426
  ./ | .// | /cC/* | \
3427
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3428
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3429
  /usr/ucb/* ) ;;
3430
  *)
3431
    # OSF1 and SCO ODT 3.0 have their own names for install.
3432
    # Don't use installbsd from OSF since it installs stuff as root
3433
    # by default.
3434
    for ac_prog in ginstall scoinst install; do
3435
      for ac_exec_ext in '' $ac_executable_extensions; do
3436
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3437
          if test $ac_prog = install &&
3438
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3439
            # AIX install.  It has an incompatible calling convention.
3440
            :
3441
          elif test $ac_prog = install &&
3442
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3443
            # program-specific install script used by HP pwplus--don't use.
3444
            :
3445
          else
3446
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3447
            break 3
3448
          fi
3449
        fi
3450
      done
3451
    done
3452
    ;;
3453
esac
3454
done
3455
 
3456
 
3457
fi
3458
  if test "${ac_cv_path_install+set}" = set; then
3459
    INSTALL=$ac_cv_path_install
3460
  else
3461
    # As a last resort, use the slow shell script.  We don't cache a
3462
    # path for INSTALL within a source directory, because that will
3463
    # break other packages using the cache if that directory is
3464
    # removed, or if the path is relative.
3465
    INSTALL=$ac_install_sh
3466
  fi
3467
fi
3468
echo "$as_me:$LINENO: result: $INSTALL" >&5
3469
echo "${ECHO_T}$INSTALL" >&6
3470
 
3471
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3472
# It thinks the first close brace ends the variable substitution.
3473
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3474
 
3475
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3476
 
3477
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3478
 
3479
 
3480
# See if makeinfo has been installed and is modern enough
3481
# that we can use it.
3482
 
3483
  # Extract the first word of "makeinfo", so it can be a program name with args.
3484
set dummy makeinfo; ac_word=$2
3485
echo "$as_me:$LINENO: checking for $ac_word" >&5
3486
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3487
if test "${ac_cv_prog_MAKEINFO+set}" = set; then
3488
  echo $ECHO_N "(cached) $ECHO_C" >&6
3489
else
3490
  if test -n "$MAKEINFO"; then
3491
  ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3492
else
3493
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3494
for as_dir in $PATH
3495
do
3496
  IFS=$as_save_IFS
3497
  test -z "$as_dir" && as_dir=.
3498
  for ac_exec_ext in '' $ac_executable_extensions; do
3499
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3500
    ac_cv_prog_MAKEINFO="makeinfo"
3501
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3502
    break 2
3503
  fi
3504
done
3505
done
3506
 
3507
fi
3508
fi
3509
MAKEINFO=$ac_cv_prog_MAKEINFO
3510
if test -n "$MAKEINFO"; then
3511
  echo "$as_me:$LINENO: result: $MAKEINFO" >&5
3512
echo "${ECHO_T}$MAKEINFO" >&6
3513
else
3514
  echo "$as_me:$LINENO: result: no" >&5
3515
echo "${ECHO_T}no" >&6
3516
fi
3517
 
3518
  if test -n "$MAKEINFO"; then
3519
    # Found it, now check the version.
3520
    echo "$as_me:$LINENO: checking for modern makeinfo" >&5
3521
echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
3522
if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
3523
  echo $ECHO_N "(cached) $ECHO_C" >&6
3524
else
3525
  ac_prog_version=`eval $MAKEINFO --version 2>&1 |
3526
                                     sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
3527
 
3528
                    case $ac_prog_version in
3529
                       '')  gcc_cv_prog_makeinfo_modern=no;;
3530
                       4.[4-9]*)  gcc_cv_prog_makeinfo_modern=yes;;
3531
                       *)   gcc_cv_prog_makeinfo_modern=no;;
3532
                     esac
3533
                                                                                                                                                                               if test $gcc_cv_prog_makeinfo_modern = no; then
3534
                      MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
3535
                    fi
3536
 
3537
fi
3538
echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
3539
echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
3540
  else
3541
    gcc_cv_prog_makeinfo_modern=no
3542
  fi
3543
 
3544
 
3545
 
3546
if test $gcc_cv_prog_makeinfo_modern = "yes"; then
3547
  BUILD_INFO_TRUE=
3548
  BUILD_INFO_FALSE='#'
3549
else
3550
  BUILD_INFO_TRUE='#'
3551
  BUILD_INFO_FALSE=
3552
fi
3553
 
3554
 
3555
 
3556
# Configure libtool
3557
# Check whether --enable-shared or --disable-shared was given.
3558
if test "${enable_shared+set}" = set; then
3559
  enableval="$enable_shared"
3560
  p=${PACKAGE-default}
3561
case $enableval in
3562
yes) enable_shared=yes ;;
3563
no) enable_shared=no ;;
3564
*)
3565
  enable_shared=no
3566
  # Look at the argument we got.  We use all the common list separators.
3567
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3568
  for pkg in $enableval; do
3569
    if test "X$pkg" = "X$p"; then
3570
      enable_shared=yes
3571
    fi
3572
  done
3573
  IFS="$ac_save_ifs"
3574
  ;;
3575
esac
3576
else
3577
  enable_shared=yes
3578
fi;
3579
# Check whether --enable-static or --disable-static was given.
3580
if test "${enable_static+set}" = set; then
3581
  enableval="$enable_static"
3582
  p=${PACKAGE-default}
3583
case $enableval in
3584
yes) enable_static=yes ;;
3585
no) enable_static=no ;;
3586
*)
3587
  enable_static=no
3588
  # Look at the argument we got.  We use all the common list separators.
3589
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3590
  for pkg in $enableval; do
3591
    if test "X$pkg" = "X$p"; then
3592
      enable_static=yes
3593
    fi
3594
  done
3595
  IFS="$ac_save_ifs"
3596
  ;;
3597
esac
3598
else
3599
  enable_static=yes
3600
fi;
3601
# Check whether --enable-fast-install or --disable-fast-install was given.
3602
if test "${enable_fast_install+set}" = set; then
3603
  enableval="$enable_fast_install"
3604
  p=${PACKAGE-default}
3605
case $enableval in
3606
yes) enable_fast_install=yes ;;
3607
no) enable_fast_install=no ;;
3608
*)
3609
  enable_fast_install=no
3610
  # Look at the argument we got.  We use all the common list separators.
3611
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3612
  for pkg in $enableval; do
3613
    if test "X$pkg" = "X$p"; then
3614
      enable_fast_install=yes
3615
    fi
3616
  done
3617
  IFS="$ac_save_ifs"
3618
  ;;
3619
esac
3620
else
3621
  enable_fast_install=yes
3622
fi;
3623
 
3624
# Check whether --with-gnu-ld or --without-gnu-ld was given.
3625
if test "${with_gnu_ld+set}" = set; then
3626
  withval="$with_gnu_ld"
3627
  test "$withval" = no || with_gnu_ld=yes
3628
else
3629
  with_gnu_ld=no
3630
fi;
3631
ac_prog=ld
3632
if test "$GCC" = yes; then
3633
  # Check if gcc -print-prog-name=ld gives a path.
3634
  echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3635
echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3636
  case $host in
3637
  *-*-mingw*)
3638
    # gcc leaves a trailing carriage return which upsets mingw
3639
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3640
  *)
3641
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3642
  esac
3643
  case $ac_prog in
3644
    # Accept absolute paths.
3645
    [\\/]* | [A-Za-z]:[\\/]*)
3646
      re_direlt='/[^/][^/]*/\.\./'
3647
      # Canonicalize the path of ld
3648
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3649
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3650
        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3651
      done
3652
      test -z "$LD" && LD="$ac_prog"
3653
      ;;
3654
  "")
3655
    # If it fails, then pretend we aren't using GCC.
3656
    ac_prog=ld
3657
    ;;
3658
  *)
3659
    # If it is relative, then search for the first ld in PATH.
3660
    with_gnu_ld=unknown
3661
    ;;
3662
  esac
3663
elif test "$with_gnu_ld" = yes; then
3664
  echo "$as_me:$LINENO: checking for GNU ld" >&5
3665
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3666
else
3667
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3668
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3669
fi
3670
if test "${lt_cv_path_LD+set}" = set; then
3671
  echo $ECHO_N "(cached) $ECHO_C" >&6
3672
else
3673
  if test -z "$LD"; then
3674
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3675
  for ac_dir in $PATH; do
3676
    test -z "$ac_dir" && ac_dir=.
3677
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3678
      lt_cv_path_LD="$ac_dir/$ac_prog"
3679
      # Check to see if the program is GNU ld.  I'd rather use --version,
3680
      # but apparently some GNU ld's only accept -v.
3681
      # Break only if it was the GNU/non-GNU ld that we prefer.
3682
      if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3683
        test "$with_gnu_ld" != no && break
3684
      else
3685
        test "$with_gnu_ld" != yes && break
3686
      fi
3687
    fi
3688
  done
3689
  IFS="$ac_save_ifs"
3690
else
3691
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3692
fi
3693
fi
3694
 
3695
LD="$lt_cv_path_LD"
3696
if test -n "$LD"; then
3697
  echo "$as_me:$LINENO: result: $LD" >&5
3698
echo "${ECHO_T}$LD" >&6
3699
else
3700
  echo "$as_me:$LINENO: result: no" >&5
3701
echo "${ECHO_T}no" >&6
3702
fi
3703
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3704
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3705
   { (exit 1); exit 1; }; }
3706
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3707
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3708
if test "${lt_cv_prog_gnu_ld+set}" = set; then
3709
  echo $ECHO_N "(cached) $ECHO_C" >&6
3710
else
3711
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3712
if $LD -v 2>&1 &5; then
3713
  lt_cv_prog_gnu_ld=yes
3714
else
3715
  lt_cv_prog_gnu_ld=no
3716
fi
3717
fi
3718
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3719
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3720
with_gnu_ld=$lt_cv_prog_gnu_ld
3721
 
3722
 
3723
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3724
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3725
if test "${lt_cv_ld_reload_flag+set}" = set; then
3726
  echo $ECHO_N "(cached) $ECHO_C" >&6
3727
else
3728
  lt_cv_ld_reload_flag='-r'
3729
fi
3730
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3731
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3732
reload_flag=$lt_cv_ld_reload_flag
3733
test -n "$reload_flag" && reload_flag=" $reload_flag"
3734
 
3735
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3736
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3737
if test "${lt_cv_path_NM+set}" = set; then
3738
  echo $ECHO_N "(cached) $ECHO_C" >&6
3739
else
3740
  if test -n "$NM"; then
3741
  # Let the user override the test.
3742
  lt_cv_path_NM="$NM"
3743
else
3744
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3745
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3746
    test -z "$ac_dir" && ac_dir=.
3747
    tmp_nm=$ac_dir/${ac_tool_prefix}nm
3748
    if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3749
      # Check to see if the nm accepts a BSD-compat flag.
3750
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3751
      #   nm: unknown option "B" ignored
3752
      # Tru64's nm complains that /dev/null is an invalid object file
3753
      if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3754
        lt_cv_path_NM="$tmp_nm -B"
3755
        break
3756
      elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3757
        lt_cv_path_NM="$tmp_nm -p"
3758
        break
3759
      else
3760
        lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3761
        continue # so that we can try to find one that supports BSD flags
3762
      fi
3763
    fi
3764
  done
3765
  IFS="$ac_save_ifs"
3766
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3767
fi
3768
fi
3769
 
3770
NM="$lt_cv_path_NM"
3771
echo "$as_me:$LINENO: result: $NM" >&5
3772
echo "${ECHO_T}$NM" >&6
3773
 
3774
echo "$as_me:$LINENO: checking whether ln -s works" >&5
3775
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3776
LN_S=$as_ln_s
3777
if test "$LN_S" = "ln -s"; then
3778
  echo "$as_me:$LINENO: result: yes" >&5
3779
echo "${ECHO_T}yes" >&6
3780
else
3781
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3782
echo "${ECHO_T}no, using $LN_S" >&6
3783
fi
3784
 
3785
echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3786
echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3787
if test "${lt_cv_deplibs_check_method+set}" = set; then
3788
  echo $ECHO_N "(cached) $ECHO_C" >&6
3789
else
3790
  lt_cv_file_magic_cmd='$MAGIC_CMD'
3791
lt_cv_file_magic_test_file=
3792
lt_cv_deplibs_check_method='unknown'
3793
# Need to set the preceding variable on all platforms that support
3794
# interlibrary dependencies.
3795
# 'none' -- dependencies not supported.
3796
# `unknown' -- same as none, but documents that we really don't know.
3797
# 'pass_all' -- all dependencies passed with no checks.
3798
# 'test_compile' -- check by making test program.
3799
# 'file_magic [regex]' -- check by looking for files in library path
3800
# which responds to the $file_magic_cmd with a given egrep regex.
3801
# If you have `file' or equivalent on your system and you're not sure
3802
# whether `pass_all' will *always* work, you probably want this one.
3803
 
3804
case $host_os in
3805
aix*)
3806
  lt_cv_deplibs_check_method=pass_all
3807
  ;;
3808
 
3809
beos*)
3810
  lt_cv_deplibs_check_method=pass_all
3811
  ;;
3812
 
3813
bsdi4*)
3814
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3815
  lt_cv_file_magic_cmd='/usr/bin/file -L'
3816
  lt_cv_file_magic_test_file=/shlib/libc.so
3817
  ;;
3818
 
3819
cygwin* | mingw* |pw32*)
3820
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3821
  lt_cv_file_magic_cmd='$OBJDUMP -f'
3822
  ;;
3823
 
3824
darwin* | rhapsody*)
3825
  # this will be overwritten by pass_all, but leave it in just in case
3826
  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3827
  lt_cv_file_magic_cmd='/usr/bin/file -L'
3828
  case "$host_os" in
3829
  rhapsody* | darwin1.012)
3830
    lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3831
    ;;
3832
  *) # Darwin 1.3 on
3833
    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3834
    ;;
3835
  esac
3836
  lt_cv_deplibs_check_method=pass_all
3837
  ;;
3838
 
3839
freebsd* | kfreebsd*-gnu)
3840
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3841
    case $host_cpu in
3842
    i*86 )
3843
      # Not sure whether the presence of OpenBSD here was a mistake.
3844
      # Let's accept both of them until this is cleared up.
3845
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3846
      lt_cv_file_magic_cmd=/usr/bin/file
3847
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3848
      ;;
3849
    esac
3850
  else
3851
    lt_cv_deplibs_check_method=pass_all
3852
  fi
3853
  ;;
3854
 
3855
gnu*)
3856
  lt_cv_deplibs_check_method=pass_all
3857
  ;;
3858
 
3859
hpux10.20*|hpux11*)
3860
  case $host_cpu in
3861
  hppa*)
3862
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3863
    lt_cv_file_magic_cmd=/usr/bin/file
3864
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
3865
    ;;
3866
  ia64*)
3867
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3868
    lt_cv_file_magic_cmd=/usr/bin/file
3869
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3870
    ;;
3871
  esac
3872
  ;;
3873
 
3874
irix5* | irix6*)
3875
  case $host_os in
3876
  irix5*)
3877
    # this will be overridden with pass_all, but let us keep it just in case
3878
    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3879
    ;;
3880
  *)
3881
    case $LD in
3882
    *-32|*"-32 ") libmagic=32-bit;;
3883
    *-n32|*"-n32 ") libmagic=N32;;
3884
    *-64|*"-64 ") libmagic=64-bit;;
3885
    *) libmagic=never-match;;
3886
    esac
3887
    # this will be overridden with pass_all, but let us keep it just in case
3888
    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3889
    ;;
3890
  esac
3891
  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3892
  lt_cv_deplibs_check_method=pass_all
3893
  ;;
3894
 
3895
# This must be Linux ELF.
3896
linux-gnu*)
3897
  lt_cv_deplibs_check_method=pass_all
3898
  ;;
3899
 
3900
netbsd* | knetbsd*-gnu)
3901
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3902
    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3903
  else
3904
    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3905
  fi
3906
  ;;
3907
 
3908
newsos6)
3909
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3910
  lt_cv_file_magic_cmd=/usr/bin/file
3911
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
3912
  ;;
3913
 
3914
osf3* | osf4* | osf5*)
3915
  # this will be overridden with pass_all, but let us keep it just in case
3916
  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3917
  lt_cv_file_magic_test_file=/shlib/libc.so
3918
  lt_cv_deplibs_check_method=pass_all
3919
  ;;
3920
 
3921
sco3.2v5*)
3922
  lt_cv_deplibs_check_method=pass_all
3923
  ;;
3924
 
3925
solaris*)
3926
  lt_cv_deplibs_check_method=pass_all
3927
  lt_cv_file_magic_test_file=/lib/libc.so
3928
  ;;
3929
 
3930
sysv5uw[78]* | sysv4*uw2*)
3931
  lt_cv_deplibs_check_method=pass_all
3932
  ;;
3933
 
3934
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3935
  case $host_vendor in
3936
  ncr)
3937
    lt_cv_deplibs_check_method=pass_all
3938
    ;;
3939
  motorola)
3940
    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]'
3941
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3942
    ;;
3943
  esac
3944
  ;;
3945
esac
3946
 
3947
fi
3948
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3949
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3950
file_magic_cmd=$lt_cv_file_magic_cmd
3951
deplibs_check_method=$lt_cv_deplibs_check_method
3952
 
3953
 
3954
 
3955
 
3956
 
3957
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3958
 
3959
# find the maximum length of command line arguments
3960
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3961
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3962
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3963
  echo $ECHO_N "(cached) $ECHO_C" >&6
3964
else
3965
    i=0
3966
  teststring="ABCD"
3967
 
3968
  case $build_os in
3969
  msdosdjgpp*)
3970
    # On DJGPP, this test can blow up pretty badly due to problems in libc
3971
    # (any single argument exceeding 2000 bytes causes a buffer overrun
3972
    # during glob expansion).  Even if it were fixed, the result of this
3973
    # check would be larger than it should be.
3974
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
3975
    ;;
3976
 
3977
  cygwin* | mingw*)
3978
    # On Win9x/ME, this test blows up -- it succeeds, but takes
3979
    # about 5 minutes as the teststring grows exponentially.
3980
    # Worse, since 9x/ME are not pre-emptively multitasking,
3981
    # you end up with a "frozen" computer, even though with patience
3982
    # the test eventually succeeds (with a max line length of 256k).
3983
    # Instead, let's just punt: use the minimum linelength reported by
3984
    # all of the supported platforms: 8192 (on NT/2K/XP).
3985
    lt_cv_sys_max_cmd_len=8192;
3986
    ;;
3987
 
3988
  amigaos*)
3989
    # On AmigaOS with pdksh, this test takes hours, literally.
3990
    # So we just punt and use a minimum line length of 8192.
3991
    lt_cv_sys_max_cmd_len=8192;
3992
    ;;
3993
 
3994
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3995
    # This has been around since 386BSD, at least.  Likely further.
3996
    if test -x /sbin/sysctl; then
3997
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3998
    elif test -x /usr/sbin/sysctl; then
3999
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4000
    else
4001
      lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
4002
    fi
4003
    # And add a safety zone
4004
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4005
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4006
    ;;
4007
  esac
4008
 
4009
fi
4010
 
4011
if test -n "$lt_cv_sys_max_cmd_len" ; then
4012
  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4013
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4014
else
4015
  echo "$as_me:$LINENO: result: none" >&5
4016
echo "${ECHO_T}none" >&6
4017
fi
4018
 
4019
 
4020
# Only perform the check for file, if the check method requires it
4021
case $deplibs_check_method in
4022
file_magic*)
4023
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4024
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4025
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4026
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4027
  echo $ECHO_N "(cached) $ECHO_C" >&6
4028
else
4029
  case $MAGIC_CMD in
4030
  /*)
4031
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4032
  ;;
4033
  ?:/*)
4034
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4035
  ;;
4036
  *)
4037
  ac_save_MAGIC_CMD="$MAGIC_CMD"
4038
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4039
  ac_dummy="/usr/bin:$PATH"
4040
  for ac_dir in $ac_dummy; do
4041
    test -z "$ac_dir" && ac_dir=.
4042
    if test -f $ac_dir/${ac_tool_prefix}file; then
4043
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4044
      if test -n "$file_magic_test_file"; then
4045
        case $deplibs_check_method in
4046
        "file_magic "*)
4047
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4048
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4049
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4050
            egrep "$file_magic_regex" > /dev/null; then
4051
            :
4052
          else
4053
            cat <&2
4054
 
4055
*** Warning: the command libtool uses to detect shared libraries,
4056
*** $file_magic_cmd, produces output that libtool cannot recognize.
4057
*** The result is that libtool may fail to recognize shared libraries
4058
*** as such.  This will affect the creation of libtool libraries that
4059
*** depend on shared libraries, but programs linked with such libtool
4060
*** libraries will work regardless of this problem.  Nevertheless, you
4061
*** may want to report the problem to your system manager and/or to
4062
*** bug-libtool@gnu.org
4063
 
4064
EOF
4065
          fi ;;
4066
        esac
4067
      fi
4068
      break
4069
    fi
4070
  done
4071
  IFS="$ac_save_ifs"
4072
  MAGIC_CMD="$ac_save_MAGIC_CMD"
4073
  ;;
4074
esac
4075
fi
4076
 
4077
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4078
if test -n "$MAGIC_CMD"; then
4079
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4080
echo "${ECHO_T}$MAGIC_CMD" >&6
4081
else
4082
  echo "$as_me:$LINENO: result: no" >&5
4083
echo "${ECHO_T}no" >&6
4084
fi
4085
 
4086
if test -z "$lt_cv_path_MAGIC_CMD"; then
4087
  if test -n "$ac_tool_prefix"; then
4088
    echo "$as_me:$LINENO: checking for file" >&5
4089
echo $ECHO_N "checking for file... $ECHO_C" >&6
4090
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4091
  echo $ECHO_N "(cached) $ECHO_C" >&6
4092
else
4093
  case $MAGIC_CMD in
4094
  /*)
4095
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4096
  ;;
4097
  ?:/*)
4098
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4099
  ;;
4100
  *)
4101
  ac_save_MAGIC_CMD="$MAGIC_CMD"
4102
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4103
  ac_dummy="/usr/bin:$PATH"
4104
  for ac_dir in $ac_dummy; do
4105
    test -z "$ac_dir" && ac_dir=.
4106
    if test -f $ac_dir/file; then
4107
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
4108
      if test -n "$file_magic_test_file"; then
4109
        case $deplibs_check_method in
4110
        "file_magic "*)
4111
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4112
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4113
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4114
            egrep "$file_magic_regex" > /dev/null; then
4115
            :
4116
          else
4117
            cat <&2
4118
 
4119
*** Warning: the command libtool uses to detect shared libraries,
4120
*** $file_magic_cmd, produces output that libtool cannot recognize.
4121
*** The result is that libtool may fail to recognize shared libraries
4122
*** as such.  This will affect the creation of libtool libraries that
4123
*** depend on shared libraries, but programs linked with such libtool
4124
*** libraries will work regardless of this problem.  Nevertheless, you
4125
*** may want to report the problem to your system manager and/or to
4126
*** bug-libtool@gnu.org
4127
 
4128
EOF
4129
          fi ;;
4130
        esac
4131
      fi
4132
      break
4133
    fi
4134
  done
4135
  IFS="$ac_save_ifs"
4136
  MAGIC_CMD="$ac_save_MAGIC_CMD"
4137
  ;;
4138
esac
4139
fi
4140
 
4141
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4142
if test -n "$MAGIC_CMD"; then
4143
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4144
echo "${ECHO_T}$MAGIC_CMD" >&6
4145
else
4146
  echo "$as_me:$LINENO: result: no" >&5
4147
echo "${ECHO_T}no" >&6
4148
fi
4149
 
4150
  else
4151
    MAGIC_CMD=:
4152
  fi
4153
fi
4154
 
4155
  fi
4156
  ;;
4157
esac
4158
 
4159
if test -n "$ac_tool_prefix"; then
4160
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4161
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4162
echo "$as_me:$LINENO: checking for $ac_word" >&5
4163
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4164
if test "${ac_cv_prog_RANLIB+set}" = set; then
4165
  echo $ECHO_N "(cached) $ECHO_C" >&6
4166
else
4167
  if test -n "$RANLIB"; then
4168
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4169
else
4170
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4171
for as_dir in $PATH
4172
do
4173
  IFS=$as_save_IFS
4174
  test -z "$as_dir" && as_dir=.
4175
  for ac_exec_ext in '' $ac_executable_extensions; do
4176
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4177
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4178
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4179
    break 2
4180
  fi
4181
done
4182
done
4183
 
4184
fi
4185
fi
4186
RANLIB=$ac_cv_prog_RANLIB
4187
if test -n "$RANLIB"; then
4188
  echo "$as_me:$LINENO: result: $RANLIB" >&5
4189
echo "${ECHO_T}$RANLIB" >&6
4190
else
4191
  echo "$as_me:$LINENO: result: no" >&5
4192
echo "${ECHO_T}no" >&6
4193
fi
4194
 
4195
fi
4196
if test -z "$ac_cv_prog_RANLIB"; then
4197
  ac_ct_RANLIB=$RANLIB
4198
  # Extract the first word of "ranlib", so it can be a program name with args.
4199
set dummy ranlib; ac_word=$2
4200
echo "$as_me:$LINENO: checking for $ac_word" >&5
4201
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4202
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4203
  echo $ECHO_N "(cached) $ECHO_C" >&6
4204
else
4205
  if test -n "$ac_ct_RANLIB"; then
4206
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4207
else
4208
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4209
for as_dir in $PATH
4210
do
4211
  IFS=$as_save_IFS
4212
  test -z "$as_dir" && as_dir=.
4213
  for ac_exec_ext in '' $ac_executable_extensions; do
4214
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4215
    ac_cv_prog_ac_ct_RANLIB="ranlib"
4216
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4217
    break 2
4218
  fi
4219
done
4220
done
4221
 
4222
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4223
fi
4224
fi
4225
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4226
if test -n "$ac_ct_RANLIB"; then
4227
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4228
echo "${ECHO_T}$ac_ct_RANLIB" >&6
4229
else
4230
  echo "$as_me:$LINENO: result: no" >&5
4231
echo "${ECHO_T}no" >&6
4232
fi
4233
 
4234
  RANLIB=$ac_ct_RANLIB
4235
else
4236
  RANLIB="$ac_cv_prog_RANLIB"
4237
fi
4238
 
4239
if test -n "$ac_tool_prefix"; then
4240
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4241
set dummy ${ac_tool_prefix}strip; ac_word=$2
4242
echo "$as_me:$LINENO: checking for $ac_word" >&5
4243
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4244
if test "${ac_cv_prog_STRIP+set}" = set; then
4245
  echo $ECHO_N "(cached) $ECHO_C" >&6
4246
else
4247
  if test -n "$STRIP"; then
4248
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4249
else
4250
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4251
for as_dir in $PATH
4252
do
4253
  IFS=$as_save_IFS
4254
  test -z "$as_dir" && as_dir=.
4255
  for ac_exec_ext in '' $ac_executable_extensions; do
4256
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4257
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4258
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4259
    break 2
4260
  fi
4261
done
4262
done
4263
 
4264
fi
4265
fi
4266
STRIP=$ac_cv_prog_STRIP
4267
if test -n "$STRIP"; then
4268
  echo "$as_me:$LINENO: result: $STRIP" >&5
4269
echo "${ECHO_T}$STRIP" >&6
4270
else
4271
  echo "$as_me:$LINENO: result: no" >&5
4272
echo "${ECHO_T}no" >&6
4273
fi
4274
 
4275
fi
4276
if test -z "$ac_cv_prog_STRIP"; then
4277
  ac_ct_STRIP=$STRIP
4278
  # Extract the first word of "strip", so it can be a program name with args.
4279
set dummy strip; ac_word=$2
4280
echo "$as_me:$LINENO: checking for $ac_word" >&5
4281
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4282
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4283
  echo $ECHO_N "(cached) $ECHO_C" >&6
4284
else
4285
  if test -n "$ac_ct_STRIP"; then
4286
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4287
else
4288
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4289
for as_dir in $PATH
4290
do
4291
  IFS=$as_save_IFS
4292
  test -z "$as_dir" && as_dir=.
4293
  for ac_exec_ext in '' $ac_executable_extensions; do
4294
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4295
    ac_cv_prog_ac_ct_STRIP="strip"
4296
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4297
    break 2
4298
  fi
4299
done
4300
done
4301
 
4302
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4303
fi
4304
fi
4305
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4306
if test -n "$ac_ct_STRIP"; then
4307
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4308
echo "${ECHO_T}$ac_ct_STRIP" >&6
4309
else
4310
  echo "$as_me:$LINENO: result: no" >&5
4311
echo "${ECHO_T}no" >&6
4312
fi
4313
 
4314
  STRIP=$ac_ct_STRIP
4315
else
4316
  STRIP="$ac_cv_prog_STRIP"
4317
fi
4318
 
4319
 
4320
# Check for any special flags to pass to ltconfig.
4321
libtool_flags="--cache-file=$cache_file"
4322
test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4323
test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4324
test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4325
test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4326
test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4327
 
4328
 
4329
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4330
if test "${enable_libtool_lock+set}" = set; then
4331
  enableval="$enable_libtool_lock"
4332
 
4333
fi;
4334
test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4335
test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4336
 
4337
 
4338
# Check whether --with-pic or --without-pic was given.
4339
if test "${with_pic+set}" = set; then
4340
  withval="$with_pic"
4341
  pic_mode="$withval"
4342
else
4343
  pic_mode=default
4344
fi;
4345
test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4346
test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4347
 
4348
# Some flags need to be propagated to the compiler or linker for good
4349
# libtool support.
4350
case $host in
4351
*-*-irix6*)
4352
  # Find out which ABI we are using.
4353
  echo '#line 4353 "configure"' > conftest.$ac_ext
4354
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4355
  (eval $ac_compile) 2>&5
4356
  ac_status=$?
4357
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358
  (exit $ac_status); }; then
4359
   if test "$lt_cv_prog_gnu_ld" = yes; then
4360
    case `/usr/bin/file conftest.$ac_objext` in
4361
    *32-bit*)
4362
      LD="${LD-ld} -melf32bsmip"
4363
      ;;
4364
    *N32*)
4365
      LD="${LD-ld} -melf32bmipn32"
4366
      ;;
4367
    *64-bit*)
4368
      LD="${LD-ld} -melf64bmip"
4369
      ;;
4370
    esac
4371
   else
4372
    case `/usr/bin/file conftest.$ac_objext` in
4373
    *32-bit*)
4374
      LD="${LD-ld} -32"
4375
      ;;
4376
    *N32*)
4377
      LD="${LD-ld} -n32"
4378
      ;;
4379
    *64-bit*)
4380
      LD="${LD-ld} -64"
4381
      ;;
4382
    esac
4383
   fi
4384
  fi
4385
  rm -rf conftest*
4386
  ;;
4387
 
4388
ia64-*-hpux*)
4389
  # Find out which ABI we are using.
4390
  echo 'int i;' > conftest.$ac_ext
4391
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4392
  (eval $ac_compile) 2>&5
4393
  ac_status=$?
4394
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395
  (exit $ac_status); }; then
4396
    case "`/usr/bin/file conftest.o`" in
4397
    *ELF-32*)
4398
      HPUX_IA64_MODE="32"
4399
      ;;
4400
    *ELF-64*)
4401
      HPUX_IA64_MODE="64"
4402
      ;;
4403
    esac
4404
  fi
4405
  rm -rf conftest*
4406
  ;;
4407
 
4408
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4409
  # Find out which ABI we are using.
4410
  echo 'int i;' > conftest.$ac_ext
4411
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4412
  (eval $ac_compile) 2>&5
4413
  ac_status=$?
4414
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415
  (exit $ac_status); }; then
4416
    case "`/usr/bin/file conftest.o`" in
4417
    *32-bit*)
4418
      case $host in
4419
        x86_64-*linux*)
4420
          LD="${LD-ld} -m elf_i386"
4421
          ;;
4422
        ppc64-*linux*|powerpc64-*linux*)
4423
          LD="${LD-ld} -m elf32ppclinux"
4424
          ;;
4425
        s390x-*linux*)
4426
          LD="${LD-ld} -m elf_s390"
4427
          ;;
4428
        sparc64-*linux*)
4429
          LD="${LD-ld} -m elf32_sparc"
4430
          ;;
4431
      esac
4432
      ;;
4433
    *64-bit*)
4434
      case $host in
4435
        x86_64-*linux*)
4436
          LD="${LD-ld} -m elf_x86_64"
4437
          ;;
4438
        ppc*-*linux*|powerpc*-*linux*)
4439
          LD="${LD-ld} -m elf64ppc"
4440
          ;;
4441
        s390*-*linux*)
4442
          LD="${LD-ld} -m elf64_s390"
4443
          ;;
4444
        sparc*-*linux*)
4445
          LD="${LD-ld} -m elf64_sparc"
4446
          ;;
4447
      esac
4448
      ;;
4449
    esac
4450
  fi
4451
  rm -rf conftest*
4452
  ;;
4453
 
4454
*-*-sco3.2v5*)
4455
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4456
  SAVE_CFLAGS="$CFLAGS"
4457
  CFLAGS="$CFLAGS -belf"
4458
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4459
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4460
if test "${lt_cv_cc_needs_belf+set}" = set; then
4461
  echo $ECHO_N "(cached) $ECHO_C" >&6
4462
else
4463
 
4464
 
4465
     ac_ext=c
4466
ac_cpp='$CPP $CPPFLAGS'
4467
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4468
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4469
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4470
 
4471
     cat >conftest.$ac_ext <<_ACEOF
4472
/* confdefs.h.  */
4473
_ACEOF
4474
cat confdefs.h >>conftest.$ac_ext
4475
cat >>conftest.$ac_ext <<_ACEOF
4476
/* end confdefs.h.  */
4477
 
4478
int
4479
main ()
4480
{
4481
 
4482
  ;
4483
  return 0;
4484
}
4485
_ACEOF
4486
rm -f conftest.$ac_objext conftest$ac_exeext
4487
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4488
  (eval $ac_link) 2>conftest.er1
4489
  ac_status=$?
4490
  grep -v '^ *+' conftest.er1 >conftest.err
4491
  rm -f conftest.er1
4492
  cat conftest.err >&5
4493
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494
  (exit $ac_status); } &&
4495
         { ac_try='test -z "$ac_c_werror_flag"
4496
                         || test ! -s conftest.err'
4497
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4498
  (eval $ac_try) 2>&5
4499
  ac_status=$?
4500
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501
  (exit $ac_status); }; } &&
4502
         { ac_try='test -s conftest$ac_exeext'
4503
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4504
  (eval $ac_try) 2>&5
4505
  ac_status=$?
4506
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507
  (exit $ac_status); }; }; then
4508
  lt_cv_cc_needs_belf=yes
4509
else
4510
  echo "$as_me: failed program was:" >&5
4511
sed 's/^/| /' conftest.$ac_ext >&5
4512
 
4513
lt_cv_cc_needs_belf=no
4514
fi
4515
rm -f conftest.err conftest.$ac_objext \
4516
      conftest$ac_exeext conftest.$ac_ext
4517
     ac_ext=c
4518
ac_cpp='$CPP $CPPFLAGS'
4519
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4520
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4521
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4522
 
4523
fi
4524
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4525
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4526
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4527
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4528
    CFLAGS="$SAVE_CFLAGS"
4529
  fi
4530
  ;;
4531
 
4532
 
4533
esac
4534
 
4535
 
4536
# Save cache, so that ltconfig can load it
4537
cat >confcache <<\_ACEOF
4538
# This file is a shell script that caches the results of configure
4539
# tests run on this system so they can be shared between configure
4540
# scripts and configure runs, see configure's option --config-cache.
4541
# It is not useful on other systems.  If it contains results you don't
4542
# want to keep, you may remove or edit it.
4543
#
4544
# config.status only pays attention to the cache file if you give it
4545
# the --recheck option to rerun configure.
4546
#
4547
# `ac_cv_env_foo' variables (set or unset) will be overridden when
4548
# loading this file, other *unset* `ac_cv_foo' will be assigned the
4549
# following values.
4550
 
4551
_ACEOF
4552
 
4553
# The following way of writing the cache mishandles newlines in values,
4554
# but we know of no workaround that is simple, portable, and efficient.
4555
# So, don't put newlines in cache variables' values.
4556
# Ultrix sh set writes to stderr and can't be redirected directly,
4557
# and sets the high bit in the cache file unless we assign to the vars.
4558
{
4559
  (set) 2>&1 |
4560
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
4561
    *ac_space=\ *)
4562
      # `set' does not quote correctly, so add quotes (double-quote
4563
      # substitution turns \\\\ into \\, and sed turns \\ into \).
4564
      sed -n \
4565
        "s/'/'\\\\''/g;
4566
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4567
      ;;
4568
    *)
4569
      # `set' quotes correctly as required by POSIX, so do not add quotes.
4570
      sed -n \
4571
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4572
      ;;
4573
    esac;
4574
} |
4575
  sed '
4576
     t clear
4577
     : clear
4578
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4579
     t end
4580
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4581
     : end' >>confcache
4582
if diff $cache_file confcache >/dev/null 2>&1; then :; else
4583
  if test -w $cache_file; then
4584
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4585
    cat confcache >$cache_file
4586
  else
4587
    echo "not updating unwritable cache $cache_file"
4588
  fi
4589
fi
4590
rm -f confcache
4591
 
4592
# Actually configure libtool.  ac_aux_dir is where install-sh is found.
4593
AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4594
MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4595
LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4596
AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4597
objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4598
deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4599
${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4600
$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4601
|| { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4602
echo "$as_me: error: libtool configure failed" >&2;}
4603
   { (exit 1); exit 1; }; }
4604
 
4605
# Reload cache, that may have been modified by ltconfig
4606
if test -r "$cache_file"; then
4607
  # Some versions of bash will fail to source /dev/null (special
4608
  # files actually), so we avoid doing that.
4609
  if test -f "$cache_file"; then
4610
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4611
echo "$as_me: loading cache $cache_file" >&6;}
4612
    case $cache_file in
4613
      [\\/]* | ?:[\\/]* ) . $cache_file;;
4614
      *)                      . ./$cache_file;;
4615
    esac
4616
  fi
4617
else
4618
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4619
echo "$as_me: creating cache $cache_file" >&6;}
4620
  >$cache_file
4621
fi
4622
 
4623
 
4624
# This can be used to rebuild libtool when needed
4625
LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4626
 
4627
# Always use our own libtool.
4628
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4629
 
4630
# Redirect the config.log output again, so that the ltconfig log is not
4631
# clobbered by the next message.
4632
exec 5>>./config.log
4633
 
4634
 
4635
 
4636
 
4637
 
4638
 
4639
 
4640
 
4641
 
4642
echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4643
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4644
    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4645
if test "${enable_maintainer_mode+set}" = set; then
4646
  enableval="$enable_maintainer_mode"
4647
  USE_MAINTAINER_MODE=$enableval
4648
else
4649
  USE_MAINTAINER_MODE=no
4650
fi;
4651
  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4652
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4653
 
4654
 
4655
if test $USE_MAINTAINER_MODE = yes; then
4656
  MAINTAINER_MODE_TRUE=
4657
  MAINTAINER_MODE_FALSE='#'
4658
else
4659
  MAINTAINER_MODE_TRUE='#'
4660
  MAINTAINER_MODE_FALSE=
4661
fi
4662
 
4663
  MAINT=$MAINTAINER_MODE_TRUE
4664
 
4665
 
4666
 
4667
# We need gfortran to compile parts of the library
4668
# We can't use AC_PROG_FC because it expects a fully working gfortran.
4669
#AC_PROG_FC(gfortran)
4670
FC="$GFORTRAN"
4671
ac_ext=${FC_SRCEXT-f}
4672
ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
4673
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
4674
ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4675
if test -n "$ac_tool_prefix"; then
4676
  for ac_prog in gfortran
4677
  do
4678
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4679
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4680
echo "$as_me:$LINENO: checking for $ac_word" >&5
4681
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4682
if test "${ac_cv_prog_FC+set}" = set; then
4683
  echo $ECHO_N "(cached) $ECHO_C" >&6
4684
else
4685
  if test -n "$FC"; then
4686
  ac_cv_prog_FC="$FC" # Let the user override the test.
4687
else
4688
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4689
for as_dir in $PATH
4690
do
4691
  IFS=$as_save_IFS
4692
  test -z "$as_dir" && as_dir=.
4693
  for ac_exec_ext in '' $ac_executable_extensions; do
4694
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4695
    ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
4696
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4697
    break 2
4698
  fi
4699
done
4700
done
4701
 
4702
fi
4703
fi
4704
FC=$ac_cv_prog_FC
4705
if test -n "$FC"; then
4706
  echo "$as_me:$LINENO: result: $FC" >&5
4707
echo "${ECHO_T}$FC" >&6
4708
else
4709
  echo "$as_me:$LINENO: result: no" >&5
4710
echo "${ECHO_T}no" >&6
4711
fi
4712
 
4713
    test -n "$FC" && break
4714
  done
4715
fi
4716
if test -z "$FC"; then
4717
  ac_ct_FC=$FC
4718
  for ac_prog in gfortran
4719
do
4720
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4721
set dummy $ac_prog; ac_word=$2
4722
echo "$as_me:$LINENO: checking for $ac_word" >&5
4723
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4724
if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
4725
  echo $ECHO_N "(cached) $ECHO_C" >&6
4726
else
4727
  if test -n "$ac_ct_FC"; then
4728
  ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
4729
else
4730
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4731
for as_dir in $PATH
4732
do
4733
  IFS=$as_save_IFS
4734
  test -z "$as_dir" && as_dir=.
4735
  for ac_exec_ext in '' $ac_executable_extensions; do
4736
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4737
    ac_cv_prog_ac_ct_FC="$ac_prog"
4738
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4739
    break 2
4740
  fi
4741
done
4742
done
4743
 
4744
fi
4745
fi
4746
ac_ct_FC=$ac_cv_prog_ac_ct_FC
4747
if test -n "$ac_ct_FC"; then
4748
  echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
4749
echo "${ECHO_T}$ac_ct_FC" >&6
4750
else
4751
  echo "$as_me:$LINENO: result: no" >&5
4752
echo "${ECHO_T}no" >&6
4753
fi
4754
 
4755
  test -n "$ac_ct_FC" && break
4756
done
4757
 
4758
  FC=$ac_ct_FC
4759
fi
4760
 
4761
 
4762
# Provide some information about the compiler.
4763
echo "$as_me:4763:" \
4764
     "checking for Fortran compiler version" >&5
4765
ac_compiler=`set X $ac_compile; echo $2`
4766
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5
4767
  (eval $ac_compiler --version &5) 2>&5
4768
  ac_status=$?
4769
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770
  (exit $ac_status); }
4771
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5
4772
  (eval $ac_compiler -v &5) 2>&5
4773
  ac_status=$?
4774
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775
  (exit $ac_status); }
4776
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&5
4777
  (eval $ac_compiler -V &5) 2>&5
4778
  ac_status=$?
4779
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780
  (exit $ac_status); }
4781
rm -f a.out
4782
 
4783
# If we don't use `.F' as extension, the preprocessor is not run on the
4784
# input file.  (Note that this only needs to work for GNU compilers.)
4785
ac_save_ext=$ac_ext
4786
ac_ext=F
4787
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
4788
echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6
4789
if test "${ac_cv_fc_compiler_gnu+set}" = set; then
4790
  echo $ECHO_N "(cached) $ECHO_C" >&6
4791
else
4792
  cat >conftest.$ac_ext <<_ACEOF
4793
      program main
4794
#ifndef __GNUC__
4795
       choke me
4796
#endif
4797
 
4798
      end
4799
_ACEOF
4800
rm -f conftest.$ac_objext
4801
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4802
  (eval $ac_compile) 2>conftest.er1
4803
  ac_status=$?
4804
  grep -v '^ *+' conftest.er1 >conftest.err
4805
  rm -f conftest.er1
4806
  cat conftest.err >&5
4807
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808
  (exit $ac_status); } &&
4809
         { ac_try='test -z "$ac_fc_werror_flag"
4810
                         || test ! -s conftest.err'
4811
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4812
  (eval $ac_try) 2>&5
4813
  ac_status=$?
4814
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815
  (exit $ac_status); }; } &&
4816
         { ac_try='test -s conftest.$ac_objext'
4817
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4818
  (eval $ac_try) 2>&5
4819
  ac_status=$?
4820
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821
  (exit $ac_status); }; }; then
4822
  ac_compiler_gnu=yes
4823
else
4824
  echo "$as_me: failed program was:" >&5
4825
sed 's/^/| /' conftest.$ac_ext >&5
4826
 
4827
ac_compiler_gnu=no
4828
fi
4829
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4830
ac_cv_fc_compiler_gnu=$ac_compiler_gnu
4831
 
4832
fi
4833
echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
4834
echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6
4835
ac_ext=$ac_save_ext
4836
ac_test_FFLAGS=${FCFLAGS+set}
4837
ac_save_FFLAGS=$FCFLAGS
4838
FCFLAGS=
4839
echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
4840
echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6
4841
if test "${ac_cv_prog_fc_g+set}" = set; then
4842
  echo $ECHO_N "(cached) $ECHO_C" >&6
4843
else
4844
  FCFLAGS=-g
4845
cat >conftest.$ac_ext <<_ACEOF
4846
      program main
4847
 
4848
      end
4849
_ACEOF
4850
rm -f conftest.$ac_objext
4851
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4852
  (eval $ac_compile) 2>conftest.er1
4853
  ac_status=$?
4854
  grep -v '^ *+' conftest.er1 >conftest.err
4855
  rm -f conftest.er1
4856
  cat conftest.err >&5
4857
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4858
  (exit $ac_status); } &&
4859
         { ac_try='test -z "$ac_fc_werror_flag"
4860
                         || test ! -s conftest.err'
4861
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4862
  (eval $ac_try) 2>&5
4863
  ac_status=$?
4864
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865
  (exit $ac_status); }; } &&
4866
         { ac_try='test -s conftest.$ac_objext'
4867
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4868
  (eval $ac_try) 2>&5
4869
  ac_status=$?
4870
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871
  (exit $ac_status); }; }; then
4872
  ac_cv_prog_fc_g=yes
4873
else
4874
  echo "$as_me: failed program was:" >&5
4875
sed 's/^/| /' conftest.$ac_ext >&5
4876
 
4877
ac_cv_prog_fc_g=no
4878
fi
4879
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4880
 
4881
fi
4882
echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
4883
echo "${ECHO_T}$ac_cv_prog_fc_g" >&6
4884
if test "$ac_test_FFLAGS" = set; then
4885
  FCFLAGS=$ac_save_FFLAGS
4886
elif test $ac_cv_prog_fc_g = yes; then
4887
  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4888
    FCFLAGS="-g -O2"
4889
  else
4890
    FCFLAGS="-g"
4891
  fi
4892
else
4893
  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4894
    FCFLAGS="-O2"
4895
  else
4896
    FCFLAGS=
4897
  fi
4898
fi
4899
 
4900
ac_ext=c
4901
ac_cpp='$CPP $CPPFLAGS'
4902
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4903
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4904
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4905
 
4906
FCFLAGS="$FCFLAGS -Wall"
4907
 
4908
# For libtool versioning info, format is CURRENT:REVISION:AGE
4909
libtool_VERSION=1:0:0
4910
 
4911
 
4912
# Check header files.
4913
ac_ext=c
4914
ac_cpp='$CPP $CPPFLAGS'
4915
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4916
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4917
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4918
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4919
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4920
# On Suns, sometimes $CPP names a directory.
4921
if test -n "$CPP" && test -d "$CPP"; then
4922
  CPP=
4923
fi
4924
if test -z "$CPP"; then
4925
  if test "${ac_cv_prog_CPP+set}" = set; then
4926
  echo $ECHO_N "(cached) $ECHO_C" >&6
4927
else
4928
      # Double quotes because CPP needs to be expanded
4929
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4930
    do
4931
      ac_preproc_ok=false
4932
for ac_c_preproc_warn_flag in '' yes
4933
do
4934
  # Use a header file that comes with gcc, so configuring glibc
4935
  # with a fresh cross-compiler works.
4936
  # Prefer  to  if __STDC__ is defined, since
4937
  #  exists even on freestanding compilers.
4938
  # On the NeXT, cc -E runs the code through the compiler's parser,
4939
  # not just through cpp. "Syntax error" is here to catch this case.
4940
  cat >conftest.$ac_ext <<_ACEOF
4941
/* confdefs.h.  */
4942
_ACEOF
4943
cat confdefs.h >>conftest.$ac_ext
4944
cat >>conftest.$ac_ext <<_ACEOF
4945
/* end confdefs.h.  */
4946
#ifdef __STDC__
4947
# include 
4948
#else
4949
# include 
4950
#endif
4951
                     Syntax error
4952
_ACEOF
4953
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4954
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4955
  ac_status=$?
4956
  grep -v '^ *+' conftest.er1 >conftest.err
4957
  rm -f conftest.er1
4958
  cat conftest.err >&5
4959
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960
  (exit $ac_status); } >/dev/null; then
4961
  if test -s conftest.err; then
4962
    ac_cpp_err=$ac_c_preproc_warn_flag
4963
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4964
  else
4965
    ac_cpp_err=
4966
  fi
4967
else
4968
  ac_cpp_err=yes
4969
fi
4970
if test -z "$ac_cpp_err"; then
4971
  :
4972
else
4973
  echo "$as_me: failed program was:" >&5
4974
sed 's/^/| /' conftest.$ac_ext >&5
4975
 
4976
  # Broken: fails on valid input.
4977
continue
4978
fi
4979
rm -f conftest.err conftest.$ac_ext
4980
 
4981
  # OK, works on sane cases.  Now check whether non-existent headers
4982
  # can be detected and how.
4983
  cat >conftest.$ac_ext <<_ACEOF
4984
/* confdefs.h.  */
4985
_ACEOF
4986
cat confdefs.h >>conftest.$ac_ext
4987
cat >>conftest.$ac_ext <<_ACEOF
4988
/* end confdefs.h.  */
4989
#include 
4990
_ACEOF
4991
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4992
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4993
  ac_status=$?
4994
  grep -v '^ *+' conftest.er1 >conftest.err
4995
  rm -f conftest.er1
4996
  cat conftest.err >&5
4997
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4998
  (exit $ac_status); } >/dev/null; then
4999
  if test -s conftest.err; then
5000
    ac_cpp_err=$ac_c_preproc_warn_flag
5001
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5002
  else
5003
    ac_cpp_err=
5004
  fi
5005
else
5006
  ac_cpp_err=yes
5007
fi
5008
if test -z "$ac_cpp_err"; then
5009
  # Broken: success on invalid input.
5010
continue
5011
else
5012
  echo "$as_me: failed program was:" >&5
5013
sed 's/^/| /' conftest.$ac_ext >&5
5014
 
5015
  # Passes both tests.
5016
ac_preproc_ok=:
5017
break
5018
fi
5019
rm -f conftest.err conftest.$ac_ext
5020
 
5021
done
5022
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5023
rm -f conftest.err conftest.$ac_ext
5024
if $ac_preproc_ok; then
5025
  break
5026
fi
5027
 
5028
    done
5029
    ac_cv_prog_CPP=$CPP
5030
 
5031
fi
5032
  CPP=$ac_cv_prog_CPP
5033
else
5034
  ac_cv_prog_CPP=$CPP
5035
fi
5036
echo "$as_me:$LINENO: result: $CPP" >&5
5037
echo "${ECHO_T}$CPP" >&6
5038
ac_preproc_ok=false
5039
for ac_c_preproc_warn_flag in '' yes
5040
do
5041
  # Use a header file that comes with gcc, so configuring glibc
5042
  # with a fresh cross-compiler works.
5043
  # Prefer  to  if __STDC__ is defined, since
5044
  #  exists even on freestanding compilers.
5045
  # On the NeXT, cc -E runs the code through the compiler's parser,
5046
  # not just through cpp. "Syntax error" is here to catch this case.
5047
  cat >conftest.$ac_ext <<_ACEOF
5048
/* confdefs.h.  */
5049
_ACEOF
5050
cat confdefs.h >>conftest.$ac_ext
5051
cat >>conftest.$ac_ext <<_ACEOF
5052
/* end confdefs.h.  */
5053
#ifdef __STDC__
5054
# include 
5055
#else
5056
# include 
5057
#endif
5058
                     Syntax error
5059
_ACEOF
5060
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5061
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5062
  ac_status=$?
5063
  grep -v '^ *+' conftest.er1 >conftest.err
5064
  rm -f conftest.er1
5065
  cat conftest.err >&5
5066
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067
  (exit $ac_status); } >/dev/null; then
5068
  if test -s conftest.err; then
5069
    ac_cpp_err=$ac_c_preproc_warn_flag
5070
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5071
  else
5072
    ac_cpp_err=
5073
  fi
5074
else
5075
  ac_cpp_err=yes
5076
fi
5077
if test -z "$ac_cpp_err"; then
5078
  :
5079
else
5080
  echo "$as_me: failed program was:" >&5
5081
sed 's/^/| /' conftest.$ac_ext >&5
5082
 
5083
  # Broken: fails on valid input.
5084
continue
5085
fi
5086
rm -f conftest.err conftest.$ac_ext
5087
 
5088
  # OK, works on sane cases.  Now check whether non-existent headers
5089
  # can be detected and how.
5090
  cat >conftest.$ac_ext <<_ACEOF
5091
/* confdefs.h.  */
5092
_ACEOF
5093
cat confdefs.h >>conftest.$ac_ext
5094
cat >>conftest.$ac_ext <<_ACEOF
5095
/* end confdefs.h.  */
5096
#include 
5097
_ACEOF
5098
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5099
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5100
  ac_status=$?
5101
  grep -v '^ *+' conftest.er1 >conftest.err
5102
  rm -f conftest.er1
5103
  cat conftest.err >&5
5104
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105
  (exit $ac_status); } >/dev/null; then
5106
  if test -s conftest.err; then
5107
    ac_cpp_err=$ac_c_preproc_warn_flag
5108
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5109
  else
5110
    ac_cpp_err=
5111
  fi
5112
else
5113
  ac_cpp_err=yes
5114
fi
5115
if test -z "$ac_cpp_err"; then
5116
  # Broken: success on invalid input.
5117
continue
5118
else
5119
  echo "$as_me: failed program was:" >&5
5120
sed 's/^/| /' conftest.$ac_ext >&5
5121
 
5122
  # Passes both tests.
5123
ac_preproc_ok=:
5124
break
5125
fi
5126
rm -f conftest.err conftest.$ac_ext
5127
 
5128
done
5129
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5130
rm -f conftest.err conftest.$ac_ext
5131
if $ac_preproc_ok; then
5132
  :
5133
else
5134
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5135
See \`config.log' for more details." >&5
5136
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5137
See \`config.log' for more details." >&2;}
5138
   { (exit 1); exit 1; }; }
5139
fi
5140
 
5141
ac_ext=c
5142
ac_cpp='$CPP $CPPFLAGS'
5143
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5144
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5145
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5146
 
5147
 
5148
echo "$as_me:$LINENO: checking for egrep" >&5
5149
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5150
if test "${ac_cv_prog_egrep+set}" = set; then
5151
  echo $ECHO_N "(cached) $ECHO_C" >&6
5152
else
5153
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5154
    then ac_cv_prog_egrep='grep -E'
5155
    else ac_cv_prog_egrep='egrep'
5156
    fi
5157
fi
5158
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5159
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5160
 EGREP=$ac_cv_prog_egrep
5161
 
5162
 
5163
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5164
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5165
if test "${ac_cv_header_stdc+set}" = set; then
5166
  echo $ECHO_N "(cached) $ECHO_C" >&6
5167
else
5168
  cat >conftest.$ac_ext <<_ACEOF
5169
/* confdefs.h.  */
5170
_ACEOF
5171
cat confdefs.h >>conftest.$ac_ext
5172
cat >>conftest.$ac_ext <<_ACEOF
5173
/* end confdefs.h.  */
5174
#include 
5175
#include 
5176
#include 
5177
#include 
5178
 
5179
int
5180
main ()
5181
{
5182
 
5183
  ;
5184
  return 0;
5185
}
5186
_ACEOF
5187
rm -f conftest.$ac_objext
5188
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5189
  (eval $ac_compile) 2>conftest.er1
5190
  ac_status=$?
5191
  grep -v '^ *+' conftest.er1 >conftest.err
5192
  rm -f conftest.er1
5193
  cat conftest.err >&5
5194
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195
  (exit $ac_status); } &&
5196
         { ac_try='test -z "$ac_c_werror_flag"
5197
                         || test ! -s conftest.err'
5198
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5199
  (eval $ac_try) 2>&5
5200
  ac_status=$?
5201
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5202
  (exit $ac_status); }; } &&
5203
         { ac_try='test -s conftest.$ac_objext'
5204
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5205
  (eval $ac_try) 2>&5
5206
  ac_status=$?
5207
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208
  (exit $ac_status); }; }; then
5209
  ac_cv_header_stdc=yes
5210
else
5211
  echo "$as_me: failed program was:" >&5
5212
sed 's/^/| /' conftest.$ac_ext >&5
5213
 
5214
ac_cv_header_stdc=no
5215
fi
5216
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5217
 
5218
if test $ac_cv_header_stdc = yes; then
5219
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5220
  cat >conftest.$ac_ext <<_ACEOF
5221
/* confdefs.h.  */
5222
_ACEOF
5223
cat confdefs.h >>conftest.$ac_ext
5224
cat >>conftest.$ac_ext <<_ACEOF
5225
/* end confdefs.h.  */
5226
#include 
5227
 
5228
_ACEOF
5229
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5230
  $EGREP "memchr" >/dev/null 2>&1; then
5231
  :
5232
else
5233
  ac_cv_header_stdc=no
5234
fi
5235
rm -f conftest*
5236
 
5237
fi
5238
 
5239
if test $ac_cv_header_stdc = yes; then
5240
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5241
  cat >conftest.$ac_ext <<_ACEOF
5242
/* confdefs.h.  */
5243
_ACEOF
5244
cat confdefs.h >>conftest.$ac_ext
5245
cat >>conftest.$ac_ext <<_ACEOF
5246
/* end confdefs.h.  */
5247
#include 
5248
 
5249
_ACEOF
5250
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5251
  $EGREP "free" >/dev/null 2>&1; then
5252
  :
5253
else
5254
  ac_cv_header_stdc=no
5255
fi
5256
rm -f conftest*
5257
 
5258
fi
5259
 
5260
if test $ac_cv_header_stdc = yes; then
5261
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5262
  if test "$cross_compiling" = yes; then
5263
  :
5264
else
5265
  cat >conftest.$ac_ext <<_ACEOF
5266
/* confdefs.h.  */
5267
_ACEOF
5268
cat confdefs.h >>conftest.$ac_ext
5269
cat >>conftest.$ac_ext <<_ACEOF
5270
/* end confdefs.h.  */
5271
#include 
5272
#if ((' ' & 0x0FF) == 0x020)
5273
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5274
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5275
#else
5276
# define ISLOWER(c) \
5277
                   (('a' <= (c) && (c) <= 'i') \
5278
                     || ('j' <= (c) && (c) <= 'r') \
5279
                     || ('s' <= (c) && (c) <= 'z'))
5280
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5281
#endif
5282
 
5283
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5284
int
5285
main ()
5286
{
5287
  int i;
5288
  for (i = 0; i < 256; i++)
5289
    if (XOR (islower (i), ISLOWER (i))
5290
        || toupper (i) != TOUPPER (i))
5291
      exit(2);
5292
  exit (0);
5293
}
5294
_ACEOF
5295
rm -f conftest$ac_exeext
5296
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5297
  (eval $ac_link) 2>&5
5298
  ac_status=$?
5299
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5301
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5302
  (eval $ac_try) 2>&5
5303
  ac_status=$?
5304
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305
  (exit $ac_status); }; }; then
5306
  :
5307
else
5308
  echo "$as_me: program exited with status $ac_status" >&5
5309
echo "$as_me: failed program was:" >&5
5310
sed 's/^/| /' conftest.$ac_ext >&5
5311
 
5312
( exit $ac_status )
5313
ac_cv_header_stdc=no
5314
fi
5315
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5316
fi
5317
fi
5318
fi
5319
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5320
echo "${ECHO_T}$ac_cv_header_stdc" >&6
5321
if test $ac_cv_header_stdc = yes; then
5322
 
5323
cat >>confdefs.h <<\_ACEOF
5324
#define STDC_HEADERS 1
5325
_ACEOF
5326
 
5327
fi
5328
 
5329
echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5330
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5331
if test "${ac_cv_header_time+set}" = set; then
5332
  echo $ECHO_N "(cached) $ECHO_C" >&6
5333
else
5334
  cat >conftest.$ac_ext <<_ACEOF
5335
/* confdefs.h.  */
5336
_ACEOF
5337
cat confdefs.h >>conftest.$ac_ext
5338
cat >>conftest.$ac_ext <<_ACEOF
5339
/* end confdefs.h.  */
5340
#include 
5341
#include 
5342
#include 
5343
 
5344
int
5345
main ()
5346
{
5347
if ((struct tm *) 0)
5348
return 0;
5349
  ;
5350
  return 0;
5351
}
5352
_ACEOF
5353
rm -f conftest.$ac_objext
5354
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5355
  (eval $ac_compile) 2>conftest.er1
5356
  ac_status=$?
5357
  grep -v '^ *+' conftest.er1 >conftest.err
5358
  rm -f conftest.er1
5359
  cat conftest.err >&5
5360
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5361
  (exit $ac_status); } &&
5362
         { ac_try='test -z "$ac_c_werror_flag"
5363
                         || test ! -s conftest.err'
5364
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5365
  (eval $ac_try) 2>&5
5366
  ac_status=$?
5367
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368
  (exit $ac_status); }; } &&
5369
         { ac_try='test -s conftest.$ac_objext'
5370
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5371
  (eval $ac_try) 2>&5
5372
  ac_status=$?
5373
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5374
  (exit $ac_status); }; }; then
5375
  ac_cv_header_time=yes
5376
else
5377
  echo "$as_me: failed program was:" >&5
5378
sed 's/^/| /' conftest.$ac_ext >&5
5379
 
5380
ac_cv_header_time=no
5381
fi
5382
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5383
fi
5384
echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5385
echo "${ECHO_T}$ac_cv_header_time" >&6
5386
if test $ac_cv_header_time = yes; then
5387
 
5388
cat >>confdefs.h <<\_ACEOF
5389
#define TIME_WITH_SYS_TIME 1
5390
_ACEOF
5391
 
5392
fi
5393
 
5394
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5395
 
5396
 
5397
 
5398
 
5399
 
5400
 
5401
 
5402
 
5403
 
5404
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5405
                  inttypes.h stdint.h unistd.h
5406
do
5407
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5408
echo "$as_me:$LINENO: checking for $ac_header" >&5
5409
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5410
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5411
  echo $ECHO_N "(cached) $ECHO_C" >&6
5412
else
5413
  cat >conftest.$ac_ext <<_ACEOF
5414
/* confdefs.h.  */
5415
_ACEOF
5416
cat confdefs.h >>conftest.$ac_ext
5417
cat >>conftest.$ac_ext <<_ACEOF
5418
/* end confdefs.h.  */
5419
$ac_includes_default
5420
 
5421
#include <$ac_header>
5422
_ACEOF
5423
rm -f conftest.$ac_objext
5424
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5425
  (eval $ac_compile) 2>conftest.er1
5426
  ac_status=$?
5427
  grep -v '^ *+' conftest.er1 >conftest.err
5428
  rm -f conftest.er1
5429
  cat conftest.err >&5
5430
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5431
  (exit $ac_status); } &&
5432
         { ac_try='test -z "$ac_c_werror_flag"
5433
                         || test ! -s conftest.err'
5434
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5435
  (eval $ac_try) 2>&5
5436
  ac_status=$?
5437
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438
  (exit $ac_status); }; } &&
5439
         { ac_try='test -s conftest.$ac_objext'
5440
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5441
  (eval $ac_try) 2>&5
5442
  ac_status=$?
5443
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444
  (exit $ac_status); }; }; then
5445
  eval "$as_ac_Header=yes"
5446
else
5447
  echo "$as_me: failed program was:" >&5
5448
sed 's/^/| /' conftest.$ac_ext >&5
5449
 
5450
eval "$as_ac_Header=no"
5451
fi
5452
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5453
fi
5454
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5455
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5456
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5457
  cat >>confdefs.h <<_ACEOF
5458
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5459
_ACEOF
5460
 
5461
fi
5462
 
5463
done
5464
 
5465
 
5466
 
5467
 
5468
 
5469
 
5470
for ac_header in unistd.h semaphore.h sys/loadavg.h sys/time.h
5471
do
5472
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5473
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5474
  echo "$as_me:$LINENO: checking for $ac_header" >&5
5475
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5476
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5477
  echo $ECHO_N "(cached) $ECHO_C" >&6
5478
fi
5479
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5480
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5481
else
5482
  # Is the header compilable?
5483
echo "$as_me:$LINENO: checking $ac_header usability" >&5
5484
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5485
cat >conftest.$ac_ext <<_ACEOF
5486
/* confdefs.h.  */
5487
_ACEOF
5488
cat confdefs.h >>conftest.$ac_ext
5489
cat >>conftest.$ac_ext <<_ACEOF
5490
/* end confdefs.h.  */
5491
$ac_includes_default
5492
#include <$ac_header>
5493
_ACEOF
5494
rm -f conftest.$ac_objext
5495
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5496
  (eval $ac_compile) 2>conftest.er1
5497
  ac_status=$?
5498
  grep -v '^ *+' conftest.er1 >conftest.err
5499
  rm -f conftest.er1
5500
  cat conftest.err >&5
5501
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502
  (exit $ac_status); } &&
5503
         { ac_try='test -z "$ac_c_werror_flag"
5504
                         || test ! -s conftest.err'
5505
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5506
  (eval $ac_try) 2>&5
5507
  ac_status=$?
5508
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509
  (exit $ac_status); }; } &&
5510
         { ac_try='test -s conftest.$ac_objext'
5511
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5512
  (eval $ac_try) 2>&5
5513
  ac_status=$?
5514
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515
  (exit $ac_status); }; }; then
5516
  ac_header_compiler=yes
5517
else
5518
  echo "$as_me: failed program was:" >&5
5519
sed 's/^/| /' conftest.$ac_ext >&5
5520
 
5521
ac_header_compiler=no
5522
fi
5523
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5524
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5525
echo "${ECHO_T}$ac_header_compiler" >&6
5526
 
5527
# Is the header present?
5528
echo "$as_me:$LINENO: checking $ac_header presence" >&5
5529
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5530
cat >conftest.$ac_ext <<_ACEOF
5531
/* confdefs.h.  */
5532
_ACEOF
5533
cat confdefs.h >>conftest.$ac_ext
5534
cat >>conftest.$ac_ext <<_ACEOF
5535
/* end confdefs.h.  */
5536
#include <$ac_header>
5537
_ACEOF
5538
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5539
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5540
  ac_status=$?
5541
  grep -v '^ *+' conftest.er1 >conftest.err
5542
  rm -f conftest.er1
5543
  cat conftest.err >&5
5544
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545
  (exit $ac_status); } >/dev/null; then
5546
  if test -s conftest.err; then
5547
    ac_cpp_err=$ac_c_preproc_warn_flag
5548
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5549
  else
5550
    ac_cpp_err=
5551
  fi
5552
else
5553
  ac_cpp_err=yes
5554
fi
5555
if test -z "$ac_cpp_err"; then
5556
  ac_header_preproc=yes
5557
else
5558
  echo "$as_me: failed program was:" >&5
5559
sed 's/^/| /' conftest.$ac_ext >&5
5560
 
5561
  ac_header_preproc=no
5562
fi
5563
rm -f conftest.err conftest.$ac_ext
5564
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5565
echo "${ECHO_T}$ac_header_preproc" >&6
5566
 
5567
# So?  What about this header?
5568
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5569
  yes:no: )
5570
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5571
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5572
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5573
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5574
    ac_header_preproc=yes
5575
    ;;
5576
  no:yes:* )
5577
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5578
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5579
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5580
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5581
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5582
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5583
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5584
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5585
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5586
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5587
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5588
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5589
    (
5590
      cat <<\_ASBOX
5591
## ----------------------------------------------------- ##
5592
## Report this to the GNU OpenMP Runtime Library lists.  ##
5593
## ----------------------------------------------------- ##
5594
_ASBOX
5595
    ) |
5596
      sed "s/^/$as_me: WARNING:     /" >&2
5597
    ;;
5598
esac
5599
echo "$as_me:$LINENO: checking for $ac_header" >&5
5600
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5601
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5602
  echo $ECHO_N "(cached) $ECHO_C" >&6
5603
else
5604
  eval "$as_ac_Header=\$ac_header_preproc"
5605
fi
5606
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5607
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5608
 
5609
fi
5610
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5611
  cat >>confdefs.h <<_ACEOF
5612
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5613
_ACEOF
5614
 
5615
fi
5616
 
5617
done
5618
 
5619
 
5620
 
5621
 
5622
inttype_headers=`echo inttypes.h sys/inttypes.h  | sed -e 's/,/ /g'`
5623
 
5624
acx_cv_header_stdint=stddef.h
5625
acx_cv_header_stdint_kind="(already complete)"
5626
for i in stdint.h $inttype_headers; do
5627
  unset ac_cv_type_uintptr_t
5628
  unset ac_cv_type_uintmax_t
5629
  unset ac_cv_type_int_least32_t
5630
  unset ac_cv_type_int_fast32_t
5631
  unset ac_cv_type_uint64_t
5632
  echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
5633
  echo "$as_me:$LINENO: checking for uintmax_t" >&5
5634
echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
5635
if test "${ac_cv_type_uintmax_t+set}" = set; then
5636
  echo $ECHO_N "(cached) $ECHO_C" >&6
5637
else
5638
  cat >conftest.$ac_ext <<_ACEOF
5639
/* confdefs.h.  */
5640
_ACEOF
5641
cat confdefs.h >>conftest.$ac_ext
5642
cat >>conftest.$ac_ext <<_ACEOF
5643
/* end confdefs.h.  */
5644
#include 
5645
#include <$i>
5646
 
5647
int
5648
main ()
5649
{
5650
if ((uintmax_t *) 0)
5651
  return 0;
5652
if (sizeof (uintmax_t))
5653
  return 0;
5654
  ;
5655
  return 0;
5656
}
5657
_ACEOF
5658
rm -f conftest.$ac_objext
5659
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5660
  (eval $ac_compile) 2>conftest.er1
5661
  ac_status=$?
5662
  grep -v '^ *+' conftest.er1 >conftest.err
5663
  rm -f conftest.er1
5664
  cat conftest.err >&5
5665
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666
  (exit $ac_status); } &&
5667
         { ac_try='test -z "$ac_c_werror_flag"
5668
                         || test ! -s conftest.err'
5669
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5670
  (eval $ac_try) 2>&5
5671
  ac_status=$?
5672
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673
  (exit $ac_status); }; } &&
5674
         { ac_try='test -s conftest.$ac_objext'
5675
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5676
  (eval $ac_try) 2>&5
5677
  ac_status=$?
5678
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679
  (exit $ac_status); }; }; then
5680
  ac_cv_type_uintmax_t=yes
5681
else
5682
  echo "$as_me: failed program was:" >&5
5683
sed 's/^/| /' conftest.$ac_ext >&5
5684
 
5685
ac_cv_type_uintmax_t=no
5686
fi
5687
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5688
fi
5689
echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
5690
echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
5691
if test $ac_cv_type_uintmax_t = yes; then
5692
  acx_cv_header_stdint=$i
5693
else
5694
  continue
5695
fi
5696
 
5697
  echo "$as_me:$LINENO: checking for uintptr_t" >&5
5698
echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
5699
if test "${ac_cv_type_uintptr_t+set}" = set; then
5700
  echo $ECHO_N "(cached) $ECHO_C" >&6
5701
else
5702
  cat >conftest.$ac_ext <<_ACEOF
5703
/* confdefs.h.  */
5704
_ACEOF
5705
cat confdefs.h >>conftest.$ac_ext
5706
cat >>conftest.$ac_ext <<_ACEOF
5707
/* end confdefs.h.  */
5708
#include 
5709
#include <$i>
5710
 
5711
int
5712
main ()
5713
{
5714
if ((uintptr_t *) 0)
5715
  return 0;
5716
if (sizeof (uintptr_t))
5717
  return 0;
5718
  ;
5719
  return 0;
5720
}
5721
_ACEOF
5722
rm -f conftest.$ac_objext
5723
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5724
  (eval $ac_compile) 2>conftest.er1
5725
  ac_status=$?
5726
  grep -v '^ *+' conftest.er1 >conftest.err
5727
  rm -f conftest.er1
5728
  cat conftest.err >&5
5729
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730
  (exit $ac_status); } &&
5731
         { ac_try='test -z "$ac_c_werror_flag"
5732
                         || test ! -s conftest.err'
5733
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5734
  (eval $ac_try) 2>&5
5735
  ac_status=$?
5736
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737
  (exit $ac_status); }; } &&
5738
         { ac_try='test -s conftest.$ac_objext'
5739
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5740
  (eval $ac_try) 2>&5
5741
  ac_status=$?
5742
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743
  (exit $ac_status); }; }; then
5744
  ac_cv_type_uintptr_t=yes
5745
else
5746
  echo "$as_me: failed program was:" >&5
5747
sed 's/^/| /' conftest.$ac_ext >&5
5748
 
5749
ac_cv_type_uintptr_t=no
5750
fi
5751
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5752
fi
5753
echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
5754
echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
5755
if test $ac_cv_type_uintptr_t = yes; then
5756
  :
5757
else
5758
  acx_cv_header_stdint_kind="(mostly complete)"
5759
fi
5760
 
5761
  echo "$as_me:$LINENO: checking for int_least32_t" >&5
5762
echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
5763
if test "${ac_cv_type_int_least32_t+set}" = set; then
5764
  echo $ECHO_N "(cached) $ECHO_C" >&6
5765
else
5766
  cat >conftest.$ac_ext <<_ACEOF
5767
/* confdefs.h.  */
5768
_ACEOF
5769
cat confdefs.h >>conftest.$ac_ext
5770
cat >>conftest.$ac_ext <<_ACEOF
5771
/* end confdefs.h.  */
5772
#include 
5773
#include <$i>
5774
 
5775
int
5776
main ()
5777
{
5778
if ((int_least32_t *) 0)
5779
  return 0;
5780
if (sizeof (int_least32_t))
5781
  return 0;
5782
  ;
5783
  return 0;
5784
}
5785
_ACEOF
5786
rm -f conftest.$ac_objext
5787
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5788
  (eval $ac_compile) 2>conftest.er1
5789
  ac_status=$?
5790
  grep -v '^ *+' conftest.er1 >conftest.err
5791
  rm -f conftest.er1
5792
  cat conftest.err >&5
5793
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794
  (exit $ac_status); } &&
5795
         { ac_try='test -z "$ac_c_werror_flag"
5796
                         || test ! -s conftest.err'
5797
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5798
  (eval $ac_try) 2>&5
5799
  ac_status=$?
5800
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801
  (exit $ac_status); }; } &&
5802
         { ac_try='test -s conftest.$ac_objext'
5803
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5804
  (eval $ac_try) 2>&5
5805
  ac_status=$?
5806
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807
  (exit $ac_status); }; }; then
5808
  ac_cv_type_int_least32_t=yes
5809
else
5810
  echo "$as_me: failed program was:" >&5
5811
sed 's/^/| /' conftest.$ac_ext >&5
5812
 
5813
ac_cv_type_int_least32_t=no
5814
fi
5815
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5816
fi
5817
echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
5818
echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
5819
if test $ac_cv_type_int_least32_t = yes; then
5820
  :
5821
else
5822
  acx_cv_header_stdint_kind="(mostly complete)"
5823
fi
5824
 
5825
  echo "$as_me:$LINENO: checking for int_fast32_t" >&5
5826
echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
5827
if test "${ac_cv_type_int_fast32_t+set}" = set; then
5828
  echo $ECHO_N "(cached) $ECHO_C" >&6
5829
else
5830
  cat >conftest.$ac_ext <<_ACEOF
5831
/* confdefs.h.  */
5832
_ACEOF
5833
cat confdefs.h >>conftest.$ac_ext
5834
cat >>conftest.$ac_ext <<_ACEOF
5835
/* end confdefs.h.  */
5836
#include 
5837
#include <$i>
5838
 
5839
int
5840
main ()
5841
{
5842
if ((int_fast32_t *) 0)
5843
  return 0;
5844
if (sizeof (int_fast32_t))
5845
  return 0;
5846
  ;
5847
  return 0;
5848
}
5849
_ACEOF
5850
rm -f conftest.$ac_objext
5851
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5852
  (eval $ac_compile) 2>conftest.er1
5853
  ac_status=$?
5854
  grep -v '^ *+' conftest.er1 >conftest.err
5855
  rm -f conftest.er1
5856
  cat conftest.err >&5
5857
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858
  (exit $ac_status); } &&
5859
         { ac_try='test -z "$ac_c_werror_flag"
5860
                         || test ! -s conftest.err'
5861
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5862
  (eval $ac_try) 2>&5
5863
  ac_status=$?
5864
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5865
  (exit $ac_status); }; } &&
5866
         { ac_try='test -s conftest.$ac_objext'
5867
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5868
  (eval $ac_try) 2>&5
5869
  ac_status=$?
5870
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871
  (exit $ac_status); }; }; then
5872
  ac_cv_type_int_fast32_t=yes
5873
else
5874
  echo "$as_me: failed program was:" >&5
5875
sed 's/^/| /' conftest.$ac_ext >&5
5876
 
5877
ac_cv_type_int_fast32_t=no
5878
fi
5879
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5880
fi
5881
echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
5882
echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
5883
if test $ac_cv_type_int_fast32_t = yes; then
5884
  :
5885
else
5886
  acx_cv_header_stdint_kind="(mostly complete)"
5887
fi
5888
 
5889
  echo "$as_me:$LINENO: checking for uint64_t" >&5
5890
echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
5891
if test "${ac_cv_type_uint64_t+set}" = set; then
5892
  echo $ECHO_N "(cached) $ECHO_C" >&6
5893
else
5894
  cat >conftest.$ac_ext <<_ACEOF
5895
/* confdefs.h.  */
5896
_ACEOF
5897
cat confdefs.h >>conftest.$ac_ext
5898
cat >>conftest.$ac_ext <<_ACEOF
5899
/* end confdefs.h.  */
5900
#include 
5901
#include <$i>
5902
 
5903
int
5904
main ()
5905
{
5906
if ((uint64_t *) 0)
5907
  return 0;
5908
if (sizeof (uint64_t))
5909
  return 0;
5910
  ;
5911
  return 0;
5912
}
5913
_ACEOF
5914
rm -f conftest.$ac_objext
5915
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5916
  (eval $ac_compile) 2>conftest.er1
5917
  ac_status=$?
5918
  grep -v '^ *+' conftest.er1 >conftest.err
5919
  rm -f conftest.er1
5920
  cat conftest.err >&5
5921
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922
  (exit $ac_status); } &&
5923
         { ac_try='test -z "$ac_c_werror_flag"
5924
                         || test ! -s conftest.err'
5925
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5926
  (eval $ac_try) 2>&5
5927
  ac_status=$?
5928
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929
  (exit $ac_status); }; } &&
5930
         { ac_try='test -s conftest.$ac_objext'
5931
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5932
  (eval $ac_try) 2>&5
5933
  ac_status=$?
5934
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5935
  (exit $ac_status); }; }; then
5936
  ac_cv_type_uint64_t=yes
5937
else
5938
  echo "$as_me: failed program was:" >&5
5939
sed 's/^/| /' conftest.$ac_ext >&5
5940
 
5941
ac_cv_type_uint64_t=no
5942
fi
5943
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5944
fi
5945
echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
5946
echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
5947
if test $ac_cv_type_uint64_t = yes; then
5948
  :
5949
else
5950
  acx_cv_header_stdint_kind="(lacks uint64_t)"
5951
fi
5952
 
5953
  break
5954
done
5955
if test "$acx_cv_header_stdint" = stddef.h; then
5956
  acx_cv_header_stdint_kind="(lacks uintmax_t)"
5957
  for i in stdint.h $inttype_headers; do
5958
    unset ac_cv_type_uintptr_t
5959
    unset ac_cv_type_uint32_t
5960
    unset ac_cv_type_uint64_t
5961
    echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
5962
    echo "$as_me:$LINENO: checking for uint32_t" >&5
5963
echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
5964
if test "${ac_cv_type_uint32_t+set}" = set; then
5965
  echo $ECHO_N "(cached) $ECHO_C" >&6
5966
else
5967
  cat >conftest.$ac_ext <<_ACEOF
5968
/* confdefs.h.  */
5969
_ACEOF
5970
cat confdefs.h >>conftest.$ac_ext
5971
cat >>conftest.$ac_ext <<_ACEOF
5972
/* end confdefs.h.  */
5973
#include 
5974
#include <$i>
5975
 
5976
int
5977
main ()
5978
{
5979
if ((uint32_t *) 0)
5980
  return 0;
5981
if (sizeof (uint32_t))
5982
  return 0;
5983
  ;
5984
  return 0;
5985
}
5986
_ACEOF
5987
rm -f conftest.$ac_objext
5988
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5989
  (eval $ac_compile) 2>conftest.er1
5990
  ac_status=$?
5991
  grep -v '^ *+' conftest.er1 >conftest.err
5992
  rm -f conftest.er1
5993
  cat conftest.err >&5
5994
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995
  (exit $ac_status); } &&
5996
         { ac_try='test -z "$ac_c_werror_flag"
5997
                         || test ! -s conftest.err'
5998
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5999
  (eval $ac_try) 2>&5
6000
  ac_status=$?
6001
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002
  (exit $ac_status); }; } &&
6003
         { ac_try='test -s conftest.$ac_objext'
6004
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6005
  (eval $ac_try) 2>&5
6006
  ac_status=$?
6007
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008
  (exit $ac_status); }; }; then
6009
  ac_cv_type_uint32_t=yes
6010
else
6011
  echo "$as_me: failed program was:" >&5
6012
sed 's/^/| /' conftest.$ac_ext >&5
6013
 
6014
ac_cv_type_uint32_t=no
6015
fi
6016
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6017
fi
6018
echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
6019
echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
6020
if test $ac_cv_type_uint32_t = yes; then
6021
  acx_cv_header_stdint=$i
6022
else
6023
  continue
6024
fi
6025
 
6026
    echo "$as_me:$LINENO: checking for uint64_t" >&5
6027
echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
6028
if test "${ac_cv_type_uint64_t+set}" = set; then
6029
  echo $ECHO_N "(cached) $ECHO_C" >&6
6030
else
6031
  cat >conftest.$ac_ext <<_ACEOF
6032
/* confdefs.h.  */
6033
_ACEOF
6034
cat confdefs.h >>conftest.$ac_ext
6035
cat >>conftest.$ac_ext <<_ACEOF
6036
/* end confdefs.h.  */
6037
#include 
6038
#include <$i>
6039
 
6040
int
6041
main ()
6042
{
6043
if ((uint64_t *) 0)
6044
  return 0;
6045
if (sizeof (uint64_t))
6046
  return 0;
6047
  ;
6048
  return 0;
6049
}
6050
_ACEOF
6051
rm -f conftest.$ac_objext
6052
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6053
  (eval $ac_compile) 2>conftest.er1
6054
  ac_status=$?
6055
  grep -v '^ *+' conftest.er1 >conftest.err
6056
  rm -f conftest.er1
6057
  cat conftest.err >&5
6058
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059
  (exit $ac_status); } &&
6060
         { ac_try='test -z "$ac_c_werror_flag"
6061
                         || test ! -s conftest.err'
6062
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6063
  (eval $ac_try) 2>&5
6064
  ac_status=$?
6065
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066
  (exit $ac_status); }; } &&
6067
         { ac_try='test -s conftest.$ac_objext'
6068
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6069
  (eval $ac_try) 2>&5
6070
  ac_status=$?
6071
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072
  (exit $ac_status); }; }; then
6073
  ac_cv_type_uint64_t=yes
6074
else
6075
  echo "$as_me: failed program was:" >&5
6076
sed 's/^/| /' conftest.$ac_ext >&5
6077
 
6078
ac_cv_type_uint64_t=no
6079
fi
6080
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6081
fi
6082
echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
6083
echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
6084
 
6085
    echo "$as_me:$LINENO: checking for uintptr_t" >&5
6086
echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
6087
if test "${ac_cv_type_uintptr_t+set}" = set; then
6088
  echo $ECHO_N "(cached) $ECHO_C" >&6
6089
else
6090
  cat >conftest.$ac_ext <<_ACEOF
6091
/* confdefs.h.  */
6092
_ACEOF
6093
cat confdefs.h >>conftest.$ac_ext
6094
cat >>conftest.$ac_ext <<_ACEOF
6095
/* end confdefs.h.  */
6096
#include 
6097
#include <$i>
6098
 
6099
int
6100
main ()
6101
{
6102
if ((uintptr_t *) 0)
6103
  return 0;
6104
if (sizeof (uintptr_t))
6105
  return 0;
6106
  ;
6107
  return 0;
6108
}
6109
_ACEOF
6110
rm -f conftest.$ac_objext
6111
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6112
  (eval $ac_compile) 2>conftest.er1
6113
  ac_status=$?
6114
  grep -v '^ *+' conftest.er1 >conftest.err
6115
  rm -f conftest.er1
6116
  cat conftest.err >&5
6117
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118
  (exit $ac_status); } &&
6119
         { ac_try='test -z "$ac_c_werror_flag"
6120
                         || test ! -s conftest.err'
6121
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6122
  (eval $ac_try) 2>&5
6123
  ac_status=$?
6124
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6125
  (exit $ac_status); }; } &&
6126
         { ac_try='test -s conftest.$ac_objext'
6127
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6128
  (eval $ac_try) 2>&5
6129
  ac_status=$?
6130
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131
  (exit $ac_status); }; }; then
6132
  ac_cv_type_uintptr_t=yes
6133
else
6134
  echo "$as_me: failed program was:" >&5
6135
sed 's/^/| /' conftest.$ac_ext >&5
6136
 
6137
ac_cv_type_uintptr_t=no
6138
fi
6139
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6140
fi
6141
echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
6142
echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
6143
 
6144
    break
6145
  done
6146
fi
6147
if test "$acx_cv_header_stdint" = stddef.h; then
6148
  acx_cv_header_stdint_kind="(u_intXX_t style)"
6149
  for i in sys/types.h $inttype_headers; do
6150
    unset ac_cv_type_u_int32_t
6151
    unset ac_cv_type_u_int64_t
6152
    echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
6153
    echo "$as_me:$LINENO: checking for u_int32_t" >&5
6154
echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
6155
if test "${ac_cv_type_u_int32_t+set}" = set; then
6156
  echo $ECHO_N "(cached) $ECHO_C" >&6
6157
else
6158
  cat >conftest.$ac_ext <<_ACEOF
6159
/* confdefs.h.  */
6160
_ACEOF
6161
cat confdefs.h >>conftest.$ac_ext
6162
cat >>conftest.$ac_ext <<_ACEOF
6163
/* end confdefs.h.  */
6164
#include 
6165
#include <$i>
6166
 
6167
int
6168
main ()
6169
{
6170
if ((u_int32_t *) 0)
6171
  return 0;
6172
if (sizeof (u_int32_t))
6173
  return 0;
6174
  ;
6175
  return 0;
6176
}
6177
_ACEOF
6178
rm -f conftest.$ac_objext
6179
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6180
  (eval $ac_compile) 2>conftest.er1
6181
  ac_status=$?
6182
  grep -v '^ *+' conftest.er1 >conftest.err
6183
  rm -f conftest.er1
6184
  cat conftest.err >&5
6185
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186
  (exit $ac_status); } &&
6187
         { ac_try='test -z "$ac_c_werror_flag"
6188
                         || test ! -s conftest.err'
6189
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6190
  (eval $ac_try) 2>&5
6191
  ac_status=$?
6192
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6193
  (exit $ac_status); }; } &&
6194
         { ac_try='test -s conftest.$ac_objext'
6195
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6196
  (eval $ac_try) 2>&5
6197
  ac_status=$?
6198
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199
  (exit $ac_status); }; }; then
6200
  ac_cv_type_u_int32_t=yes
6201
else
6202
  echo "$as_me: failed program was:" >&5
6203
sed 's/^/| /' conftest.$ac_ext >&5
6204
 
6205
ac_cv_type_u_int32_t=no
6206
fi
6207
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6208
fi
6209
echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
6210
echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
6211
if test $ac_cv_type_u_int32_t = yes; then
6212
  acx_cv_header_stdint=$i
6213
else
6214
  continue
6215
fi
6216
 
6217
    echo "$as_me:$LINENO: checking for u_int64_t" >&5
6218
echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
6219
if test "${ac_cv_type_u_int64_t+set}" = set; then
6220
  echo $ECHO_N "(cached) $ECHO_C" >&6
6221
else
6222
  cat >conftest.$ac_ext <<_ACEOF
6223
/* confdefs.h.  */
6224
_ACEOF
6225
cat confdefs.h >>conftest.$ac_ext
6226
cat >>conftest.$ac_ext <<_ACEOF
6227
/* end confdefs.h.  */
6228
#include 
6229
#include <$i>
6230
 
6231
int
6232
main ()
6233
{
6234
if ((u_int64_t *) 0)
6235
  return 0;
6236
if (sizeof (u_int64_t))
6237
  return 0;
6238
  ;
6239
  return 0;
6240
}
6241
_ACEOF
6242
rm -f conftest.$ac_objext
6243
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6244
  (eval $ac_compile) 2>conftest.er1
6245
  ac_status=$?
6246
  grep -v '^ *+' conftest.er1 >conftest.err
6247
  rm -f conftest.er1
6248
  cat conftest.err >&5
6249
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250
  (exit $ac_status); } &&
6251
         { ac_try='test -z "$ac_c_werror_flag"
6252
                         || test ! -s conftest.err'
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); }; } &&
6258
         { ac_try='test -s conftest.$ac_objext'
6259
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6260
  (eval $ac_try) 2>&5
6261
  ac_status=$?
6262
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263
  (exit $ac_status); }; }; then
6264
  ac_cv_type_u_int64_t=yes
6265
else
6266
  echo "$as_me: failed program was:" >&5
6267
sed 's/^/| /' conftest.$ac_ext >&5
6268
 
6269
ac_cv_type_u_int64_t=no
6270
fi
6271
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6272
fi
6273
echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
6274
echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
6275
 
6276
    break
6277
  done
6278
fi
6279
if test "$acx_cv_header_stdint" = stddef.h; then
6280
  acx_cv_header_stdint_kind="(using manual detection)"
6281
fi
6282
 
6283
test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
6284
test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
6285
test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
6286
test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
6287
test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
6288
 
6289
# ----------------- Summarize what we found so far
6290
 
6291
echo "$as_me:$LINENO: checking what to include in gstdint.h" >&5
6292
echo $ECHO_N "checking what to include in gstdint.h... $ECHO_C" >&6
6293
 
6294
case `$as_basename gstdint.h ||
6295
$as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
6296
         Xgstdint.h : 'X\(//\)$' \| \
6297
         Xgstdint.h : 'X\(/\)$' \| \
6298
         .     : '\(.\)' 2>/dev/null ||
6299
echo X/gstdint.h |
6300
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6301
          /^X\/\(\/\/\)$/{ s//\1/; q; }
6302
          /^X\/\(\/\).*/{ s//\1/; q; }
6303
          s/.*/./; q'` in
6304
  stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
6305
echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
6306
  inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
6307
echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
6308
  *) ;;
6309
esac
6310
 
6311
echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
6312
echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
6313
 
6314
# ----------------- done included file, check C basic types --------
6315
 
6316
# Lacking an uintptr_t?  Test size of void *
6317
case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
6318
  stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
6319
echo $ECHO_N "checking for void *... $ECHO_C" >&6
6320
if test "${ac_cv_type_void_p+set}" = set; then
6321
  echo $ECHO_N "(cached) $ECHO_C" >&6
6322
else
6323
  cat >conftest.$ac_ext <<_ACEOF
6324
/* confdefs.h.  */
6325
_ACEOF
6326
cat confdefs.h >>conftest.$ac_ext
6327
cat >>conftest.$ac_ext <<_ACEOF
6328
/* end confdefs.h.  */
6329
$ac_includes_default
6330
int
6331
main ()
6332
{
6333
if ((void * *) 0)
6334
  return 0;
6335
if (sizeof (void *))
6336
  return 0;
6337
  ;
6338
  return 0;
6339
}
6340
_ACEOF
6341
rm -f conftest.$ac_objext
6342
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6343
  (eval $ac_compile) 2>conftest.er1
6344
  ac_status=$?
6345
  grep -v '^ *+' conftest.er1 >conftest.err
6346
  rm -f conftest.er1
6347
  cat conftest.err >&5
6348
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349
  (exit $ac_status); } &&
6350
         { ac_try='test -z "$ac_c_werror_flag"
6351
                         || test ! -s conftest.err'
6352
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6353
  (eval $ac_try) 2>&5
6354
  ac_status=$?
6355
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356
  (exit $ac_status); }; } &&
6357
         { ac_try='test -s conftest.$ac_objext'
6358
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6359
  (eval $ac_try) 2>&5
6360
  ac_status=$?
6361
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362
  (exit $ac_status); }; }; then
6363
  ac_cv_type_void_p=yes
6364
else
6365
  echo "$as_me: failed program was:" >&5
6366
sed 's/^/| /' conftest.$ac_ext >&5
6367
 
6368
ac_cv_type_void_p=no
6369
fi
6370
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6371
fi
6372
echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
6373
echo "${ECHO_T}$ac_cv_type_void_p" >&6
6374
 
6375
echo "$as_me:$LINENO: checking size of void *" >&5
6376
echo $ECHO_N "checking size of void *... $ECHO_C" >&6
6377
if test "${ac_cv_sizeof_void_p+set}" = set; then
6378
  echo $ECHO_N "(cached) $ECHO_C" >&6
6379
else
6380
  if test "$ac_cv_type_void_p" = yes; then
6381
  # The cast to unsigned long works around a bug in the HP C Compiler
6382
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6383
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6384
  # This bug is HP SR number 8606223364.
6385
  if test "$cross_compiling" = yes; then
6386
  # Depending upon the size, compute the lo and hi bounds.
6387
cat >conftest.$ac_ext <<_ACEOF
6388
/* confdefs.h.  */
6389
_ACEOF
6390
cat confdefs.h >>conftest.$ac_ext
6391
cat >>conftest.$ac_ext <<_ACEOF
6392
/* end confdefs.h.  */
6393
$ac_includes_default
6394
int
6395
main ()
6396
{
6397
static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
6398
test_array [0] = 0
6399
 
6400
  ;
6401
  return 0;
6402
}
6403
_ACEOF
6404
rm -f conftest.$ac_objext
6405
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6406
  (eval $ac_compile) 2>conftest.er1
6407
  ac_status=$?
6408
  grep -v '^ *+' conftest.er1 >conftest.err
6409
  rm -f conftest.er1
6410
  cat conftest.err >&5
6411
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412
  (exit $ac_status); } &&
6413
         { ac_try='test -z "$ac_c_werror_flag"
6414
                         || test ! -s conftest.err'
6415
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6416
  (eval $ac_try) 2>&5
6417
  ac_status=$?
6418
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419
  (exit $ac_status); }; } &&
6420
         { ac_try='test -s conftest.$ac_objext'
6421
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6422
  (eval $ac_try) 2>&5
6423
  ac_status=$?
6424
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425
  (exit $ac_status); }; }; then
6426
  ac_lo=0 ac_mid=0
6427
  while :; do
6428
    cat >conftest.$ac_ext <<_ACEOF
6429
/* confdefs.h.  */
6430
_ACEOF
6431
cat confdefs.h >>conftest.$ac_ext
6432
cat >>conftest.$ac_ext <<_ACEOF
6433
/* end confdefs.h.  */
6434
$ac_includes_default
6435
int
6436
main ()
6437
{
6438
static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
6439
test_array [0] = 0
6440
 
6441
  ;
6442
  return 0;
6443
}
6444
_ACEOF
6445
rm -f conftest.$ac_objext
6446
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6447
  (eval $ac_compile) 2>conftest.er1
6448
  ac_status=$?
6449
  grep -v '^ *+' conftest.er1 >conftest.err
6450
  rm -f conftest.er1
6451
  cat conftest.err >&5
6452
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453
  (exit $ac_status); } &&
6454
         { ac_try='test -z "$ac_c_werror_flag"
6455
                         || test ! -s conftest.err'
6456
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6457
  (eval $ac_try) 2>&5
6458
  ac_status=$?
6459
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6460
  (exit $ac_status); }; } &&
6461
         { ac_try='test -s conftest.$ac_objext'
6462
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6463
  (eval $ac_try) 2>&5
6464
  ac_status=$?
6465
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6466
  (exit $ac_status); }; }; then
6467
  ac_hi=$ac_mid; break
6468
else
6469
  echo "$as_me: failed program was:" >&5
6470
sed 's/^/| /' conftest.$ac_ext >&5
6471
 
6472
ac_lo=`expr $ac_mid + 1`
6473
                    if test $ac_lo -le $ac_mid; then
6474
                      ac_lo= ac_hi=
6475
                      break
6476
                    fi
6477
                    ac_mid=`expr 2 '*' $ac_mid + 1`
6478
fi
6479
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6480
  done
6481
else
6482
  echo "$as_me: failed program was:" >&5
6483
sed 's/^/| /' conftest.$ac_ext >&5
6484
 
6485
cat >conftest.$ac_ext <<_ACEOF
6486
/* confdefs.h.  */
6487
_ACEOF
6488
cat confdefs.h >>conftest.$ac_ext
6489
cat >>conftest.$ac_ext <<_ACEOF
6490
/* end confdefs.h.  */
6491
$ac_includes_default
6492
int
6493
main ()
6494
{
6495
static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
6496
test_array [0] = 0
6497
 
6498
  ;
6499
  return 0;
6500
}
6501
_ACEOF
6502
rm -f conftest.$ac_objext
6503
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6504
  (eval $ac_compile) 2>conftest.er1
6505
  ac_status=$?
6506
  grep -v '^ *+' conftest.er1 >conftest.err
6507
  rm -f conftest.er1
6508
  cat conftest.err >&5
6509
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6510
  (exit $ac_status); } &&
6511
         { ac_try='test -z "$ac_c_werror_flag"
6512
                         || test ! -s conftest.err'
6513
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6514
  (eval $ac_try) 2>&5
6515
  ac_status=$?
6516
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517
  (exit $ac_status); }; } &&
6518
         { ac_try='test -s conftest.$ac_objext'
6519
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6520
  (eval $ac_try) 2>&5
6521
  ac_status=$?
6522
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523
  (exit $ac_status); }; }; then
6524
  ac_hi=-1 ac_mid=-1
6525
  while :; do
6526
    cat >conftest.$ac_ext <<_ACEOF
6527
/* confdefs.h.  */
6528
_ACEOF
6529
cat confdefs.h >>conftest.$ac_ext
6530
cat >>conftest.$ac_ext <<_ACEOF
6531
/* end confdefs.h.  */
6532
$ac_includes_default
6533
int
6534
main ()
6535
{
6536
static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
6537
test_array [0] = 0
6538
 
6539
  ;
6540
  return 0;
6541
}
6542
_ACEOF
6543
rm -f conftest.$ac_objext
6544
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6545
  (eval $ac_compile) 2>conftest.er1
6546
  ac_status=$?
6547
  grep -v '^ *+' conftest.er1 >conftest.err
6548
  rm -f conftest.er1
6549
  cat conftest.err >&5
6550
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6551
  (exit $ac_status); } &&
6552
         { ac_try='test -z "$ac_c_werror_flag"
6553
                         || test ! -s conftest.err'
6554
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6555
  (eval $ac_try) 2>&5
6556
  ac_status=$?
6557
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558
  (exit $ac_status); }; } &&
6559
         { ac_try='test -s conftest.$ac_objext'
6560
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6561
  (eval $ac_try) 2>&5
6562
  ac_status=$?
6563
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6564
  (exit $ac_status); }; }; then
6565
  ac_lo=$ac_mid; break
6566
else
6567
  echo "$as_me: failed program was:" >&5
6568
sed 's/^/| /' conftest.$ac_ext >&5
6569
 
6570
ac_hi=`expr '(' $ac_mid ')' - 1`
6571
                       if test $ac_mid -le $ac_hi; then
6572
                         ac_lo= ac_hi=
6573
                         break
6574
                       fi
6575
                       ac_mid=`expr 2 '*' $ac_mid`
6576
fi
6577
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6578
  done
6579
else
6580
  echo "$as_me: failed program was:" >&5
6581
sed 's/^/| /' conftest.$ac_ext >&5
6582
 
6583
ac_lo= ac_hi=
6584
fi
6585
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6586
fi
6587
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6588
# Binary search between lo and hi bounds.
6589
while test "x$ac_lo" != "x$ac_hi"; do
6590
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6591
  cat >conftest.$ac_ext <<_ACEOF
6592
/* confdefs.h.  */
6593
_ACEOF
6594
cat confdefs.h >>conftest.$ac_ext
6595
cat >>conftest.$ac_ext <<_ACEOF
6596
/* end confdefs.h.  */
6597
$ac_includes_default
6598
int
6599
main ()
6600
{
6601
static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
6602
test_array [0] = 0
6603
 
6604
  ;
6605
  return 0;
6606
}
6607
_ACEOF
6608
rm -f conftest.$ac_objext
6609
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6610
  (eval $ac_compile) 2>conftest.er1
6611
  ac_status=$?
6612
  grep -v '^ *+' conftest.er1 >conftest.err
6613
  rm -f conftest.er1
6614
  cat conftest.err >&5
6615
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616
  (exit $ac_status); } &&
6617
         { ac_try='test -z "$ac_c_werror_flag"
6618
                         || test ! -s conftest.err'
6619
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6620
  (eval $ac_try) 2>&5
6621
  ac_status=$?
6622
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6623
  (exit $ac_status); }; } &&
6624
         { ac_try='test -s conftest.$ac_objext'
6625
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6626
  (eval $ac_try) 2>&5
6627
  ac_status=$?
6628
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6629
  (exit $ac_status); }; }; then
6630
  ac_hi=$ac_mid
6631
else
6632
  echo "$as_me: failed program was:" >&5
6633
sed 's/^/| /' conftest.$ac_ext >&5
6634
 
6635
ac_lo=`expr '(' $ac_mid ')' + 1`
6636
fi
6637
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6638
done
6639
case $ac_lo in
6640
?*) ac_cv_sizeof_void_p=$ac_lo;;
6641
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
6642
See \`config.log' for more details." >&5
6643
echo "$as_me: error: cannot compute sizeof (void *), 77
6644
See \`config.log' for more details." >&2;}
6645
   { (exit 1); exit 1; }; } ;;
6646
esac
6647
else
6648
  if test "$cross_compiling" = yes; then
6649
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6650
See \`config.log' for more details." >&5
6651
echo "$as_me: error: cannot run test program while cross compiling
6652
See \`config.log' for more details." >&2;}
6653
   { (exit 1); exit 1; }; }
6654
else
6655
  cat >conftest.$ac_ext <<_ACEOF
6656
/* confdefs.h.  */
6657
_ACEOF
6658
cat confdefs.h >>conftest.$ac_ext
6659
cat >>conftest.$ac_ext <<_ACEOF
6660
/* end confdefs.h.  */
6661
$ac_includes_default
6662
long longval () { return (long) (sizeof (void *)); }
6663
unsigned long ulongval () { return (long) (sizeof (void *)); }
6664
#include 
6665
#include 
6666
int
6667
main ()
6668
{
6669
 
6670
  FILE *f = fopen ("conftest.val", "w");
6671
  if (! f)
6672
    exit (1);
6673
  if (((long) (sizeof (void *))) < 0)
6674
    {
6675
      long i = longval ();
6676
      if (i != ((long) (sizeof (void *))))
6677
        exit (1);
6678
      fprintf (f, "%ld\n", i);
6679
    }
6680
  else
6681
    {
6682
      unsigned long i = ulongval ();
6683
      if (i != ((long) (sizeof (void *))))
6684
        exit (1);
6685
      fprintf (f, "%lu\n", i);
6686
    }
6687
  exit (ferror (f) || fclose (f) != 0);
6688
 
6689
  ;
6690
  return 0;
6691
}
6692
_ACEOF
6693
rm -f conftest$ac_exeext
6694
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6695
  (eval $ac_link) 2>&5
6696
  ac_status=$?
6697
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6698
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6699
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6700
  (eval $ac_try) 2>&5
6701
  ac_status=$?
6702
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6703
  (exit $ac_status); }; }; then
6704
  ac_cv_sizeof_void_p=`cat conftest.val`
6705
else
6706
  echo "$as_me: program exited with status $ac_status" >&5
6707
echo "$as_me: failed program was:" >&5
6708
sed 's/^/| /' conftest.$ac_ext >&5
6709
 
6710
( exit $ac_status )
6711
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
6712
See \`config.log' for more details." >&5
6713
echo "$as_me: error: cannot compute sizeof (void *), 77
6714
See \`config.log' for more details." >&2;}
6715
   { (exit 1); exit 1; }; }
6716
fi
6717
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6718
fi
6719
fi
6720
rm -f conftest.val
6721
else
6722
  ac_cv_sizeof_void_p=0
6723
fi
6724
fi
6725
echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
6726
echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
6727
cat >>confdefs.h <<_ACEOF
6728
#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6729
_ACEOF
6730
 
6731
 ;;
6732
esac
6733
 
6734
# Lacking an uint64_t?  Test size of long
6735
case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
6736
  stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
6737
echo $ECHO_N "checking for long... $ECHO_C" >&6
6738
if test "${ac_cv_type_long+set}" = set; then
6739
  echo $ECHO_N "(cached) $ECHO_C" >&6
6740
else
6741
  cat >conftest.$ac_ext <<_ACEOF
6742
/* confdefs.h.  */
6743
_ACEOF
6744
cat confdefs.h >>conftest.$ac_ext
6745
cat >>conftest.$ac_ext <<_ACEOF
6746
/* end confdefs.h.  */
6747
$ac_includes_default
6748
int
6749
main ()
6750
{
6751
if ((long *) 0)
6752
  return 0;
6753
if (sizeof (long))
6754
  return 0;
6755
  ;
6756
  return 0;
6757
}
6758
_ACEOF
6759
rm -f conftest.$ac_objext
6760
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6761
  (eval $ac_compile) 2>conftest.er1
6762
  ac_status=$?
6763
  grep -v '^ *+' conftest.er1 >conftest.err
6764
  rm -f conftest.er1
6765
  cat conftest.err >&5
6766
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6767
  (exit $ac_status); } &&
6768
         { ac_try='test -z "$ac_c_werror_flag"
6769
                         || test ! -s conftest.err'
6770
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6771
  (eval $ac_try) 2>&5
6772
  ac_status=$?
6773
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6774
  (exit $ac_status); }; } &&
6775
         { ac_try='test -s conftest.$ac_objext'
6776
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6777
  (eval $ac_try) 2>&5
6778
  ac_status=$?
6779
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780
  (exit $ac_status); }; }; then
6781
  ac_cv_type_long=yes
6782
else
6783
  echo "$as_me: failed program was:" >&5
6784
sed 's/^/| /' conftest.$ac_ext >&5
6785
 
6786
ac_cv_type_long=no
6787
fi
6788
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6789
fi
6790
echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6791
echo "${ECHO_T}$ac_cv_type_long" >&6
6792
 
6793
echo "$as_me:$LINENO: checking size of long" >&5
6794
echo $ECHO_N "checking size of long... $ECHO_C" >&6
6795
if test "${ac_cv_sizeof_long+set}" = set; then
6796
  echo $ECHO_N "(cached) $ECHO_C" >&6
6797
else
6798
  if test "$ac_cv_type_long" = yes; then
6799
  # The cast to unsigned long works around a bug in the HP C Compiler
6800
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6801
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6802
  # This bug is HP SR number 8606223364.
6803
  if test "$cross_compiling" = yes; then
6804
  # Depending upon the size, compute the lo and hi bounds.
6805
cat >conftest.$ac_ext <<_ACEOF
6806
/* confdefs.h.  */
6807
_ACEOF
6808
cat confdefs.h >>conftest.$ac_ext
6809
cat >>conftest.$ac_ext <<_ACEOF
6810
/* end confdefs.h.  */
6811
$ac_includes_default
6812
int
6813
main ()
6814
{
6815
static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6816
test_array [0] = 0
6817
 
6818
  ;
6819
  return 0;
6820
}
6821
_ACEOF
6822
rm -f conftest.$ac_objext
6823
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6824
  (eval $ac_compile) 2>conftest.er1
6825
  ac_status=$?
6826
  grep -v '^ *+' conftest.er1 >conftest.err
6827
  rm -f conftest.er1
6828
  cat conftest.err >&5
6829
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830
  (exit $ac_status); } &&
6831
         { ac_try='test -z "$ac_c_werror_flag"
6832
                         || test ! -s conftest.err'
6833
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6834
  (eval $ac_try) 2>&5
6835
  ac_status=$?
6836
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6837
  (exit $ac_status); }; } &&
6838
         { ac_try='test -s conftest.$ac_objext'
6839
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6840
  (eval $ac_try) 2>&5
6841
  ac_status=$?
6842
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6843
  (exit $ac_status); }; }; then
6844
  ac_lo=0 ac_mid=0
6845
  while :; do
6846
    cat >conftest.$ac_ext <<_ACEOF
6847
/* confdefs.h.  */
6848
_ACEOF
6849
cat confdefs.h >>conftest.$ac_ext
6850
cat >>conftest.$ac_ext <<_ACEOF
6851
/* end confdefs.h.  */
6852
$ac_includes_default
6853
int
6854
main ()
6855
{
6856
static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6857
test_array [0] = 0
6858
 
6859
  ;
6860
  return 0;
6861
}
6862
_ACEOF
6863
rm -f conftest.$ac_objext
6864
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6865
  (eval $ac_compile) 2>conftest.er1
6866
  ac_status=$?
6867
  grep -v '^ *+' conftest.er1 >conftest.err
6868
  rm -f conftest.er1
6869
  cat conftest.err >&5
6870
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6871
  (exit $ac_status); } &&
6872
         { ac_try='test -z "$ac_c_werror_flag"
6873
                         || test ! -s conftest.err'
6874
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6875
  (eval $ac_try) 2>&5
6876
  ac_status=$?
6877
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6878
  (exit $ac_status); }; } &&
6879
         { ac_try='test -s conftest.$ac_objext'
6880
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6881
  (eval $ac_try) 2>&5
6882
  ac_status=$?
6883
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6884
  (exit $ac_status); }; }; then
6885
  ac_hi=$ac_mid; break
6886
else
6887
  echo "$as_me: failed program was:" >&5
6888
sed 's/^/| /' conftest.$ac_ext >&5
6889
 
6890
ac_lo=`expr $ac_mid + 1`
6891
                    if test $ac_lo -le $ac_mid; then
6892
                      ac_lo= ac_hi=
6893
                      break
6894
                    fi
6895
                    ac_mid=`expr 2 '*' $ac_mid + 1`
6896
fi
6897
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6898
  done
6899
else
6900
  echo "$as_me: failed program was:" >&5
6901
sed 's/^/| /' conftest.$ac_ext >&5
6902
 
6903
cat >conftest.$ac_ext <<_ACEOF
6904
/* confdefs.h.  */
6905
_ACEOF
6906
cat confdefs.h >>conftest.$ac_ext
6907
cat >>conftest.$ac_ext <<_ACEOF
6908
/* end confdefs.h.  */
6909
$ac_includes_default
6910
int
6911
main ()
6912
{
6913
static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6914
test_array [0] = 0
6915
 
6916
  ;
6917
  return 0;
6918
}
6919
_ACEOF
6920
rm -f conftest.$ac_objext
6921
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6922
  (eval $ac_compile) 2>conftest.er1
6923
  ac_status=$?
6924
  grep -v '^ *+' conftest.er1 >conftest.err
6925
  rm -f conftest.er1
6926
  cat conftest.err >&5
6927
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6928
  (exit $ac_status); } &&
6929
         { ac_try='test -z "$ac_c_werror_flag"
6930
                         || test ! -s conftest.err'
6931
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6932
  (eval $ac_try) 2>&5
6933
  ac_status=$?
6934
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6935
  (exit $ac_status); }; } &&
6936
         { ac_try='test -s conftest.$ac_objext'
6937
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6938
  (eval $ac_try) 2>&5
6939
  ac_status=$?
6940
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6941
  (exit $ac_status); }; }; then
6942
  ac_hi=-1 ac_mid=-1
6943
  while :; do
6944
    cat >conftest.$ac_ext <<_ACEOF
6945
/* confdefs.h.  */
6946
_ACEOF
6947
cat confdefs.h >>conftest.$ac_ext
6948
cat >>conftest.$ac_ext <<_ACEOF
6949
/* end confdefs.h.  */
6950
$ac_includes_default
6951
int
6952
main ()
6953
{
6954
static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6955
test_array [0] = 0
6956
 
6957
  ;
6958
  return 0;
6959
}
6960
_ACEOF
6961
rm -f conftest.$ac_objext
6962
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6963
  (eval $ac_compile) 2>conftest.er1
6964
  ac_status=$?
6965
  grep -v '^ *+' conftest.er1 >conftest.err
6966
  rm -f conftest.er1
6967
  cat conftest.err >&5
6968
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6969
  (exit $ac_status); } &&
6970
         { ac_try='test -z "$ac_c_werror_flag"
6971
                         || test ! -s conftest.err'
6972
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6973
  (eval $ac_try) 2>&5
6974
  ac_status=$?
6975
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6976
  (exit $ac_status); }; } &&
6977
         { ac_try='test -s conftest.$ac_objext'
6978
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6979
  (eval $ac_try) 2>&5
6980
  ac_status=$?
6981
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6982
  (exit $ac_status); }; }; then
6983
  ac_lo=$ac_mid; break
6984
else
6985
  echo "$as_me: failed program was:" >&5
6986
sed 's/^/| /' conftest.$ac_ext >&5
6987
 
6988
ac_hi=`expr '(' $ac_mid ')' - 1`
6989
                       if test $ac_mid -le $ac_hi; then
6990
                         ac_lo= ac_hi=
6991
                         break
6992
                       fi
6993
                       ac_mid=`expr 2 '*' $ac_mid`
6994
fi
6995
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6996
  done
6997
else
6998
  echo "$as_me: failed program was:" >&5
6999
sed 's/^/| /' conftest.$ac_ext >&5
7000
 
7001
ac_lo= ac_hi=
7002
fi
7003
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7004
fi
7005
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7006
# Binary search between lo and hi bounds.
7007
while test "x$ac_lo" != "x$ac_hi"; do
7008
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7009
  cat >conftest.$ac_ext <<_ACEOF
7010
/* confdefs.h.  */
7011
_ACEOF
7012
cat confdefs.h >>conftest.$ac_ext
7013
cat >>conftest.$ac_ext <<_ACEOF
7014
/* end confdefs.h.  */
7015
$ac_includes_default
7016
int
7017
main ()
7018
{
7019
static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7020
test_array [0] = 0
7021
 
7022
  ;
7023
  return 0;
7024
}
7025
_ACEOF
7026
rm -f conftest.$ac_objext
7027
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7028
  (eval $ac_compile) 2>conftest.er1
7029
  ac_status=$?
7030
  grep -v '^ *+' conftest.er1 >conftest.err
7031
  rm -f conftest.er1
7032
  cat conftest.err >&5
7033
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7034
  (exit $ac_status); } &&
7035
         { ac_try='test -z "$ac_c_werror_flag"
7036
                         || test ! -s conftest.err'
7037
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7038
  (eval $ac_try) 2>&5
7039
  ac_status=$?
7040
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7041
  (exit $ac_status); }; } &&
7042
         { ac_try='test -s conftest.$ac_objext'
7043
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7044
  (eval $ac_try) 2>&5
7045
  ac_status=$?
7046
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7047
  (exit $ac_status); }; }; then
7048
  ac_hi=$ac_mid
7049
else
7050
  echo "$as_me: failed program was:" >&5
7051
sed 's/^/| /' conftest.$ac_ext >&5
7052
 
7053
ac_lo=`expr '(' $ac_mid ')' + 1`
7054
fi
7055
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7056
done
7057
case $ac_lo in
7058
?*) ac_cv_sizeof_long=$ac_lo;;
7059
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7060
See \`config.log' for more details." >&5
7061
echo "$as_me: error: cannot compute sizeof (long), 77
7062
See \`config.log' for more details." >&2;}
7063
   { (exit 1); exit 1; }; } ;;
7064
esac
7065
else
7066
  if test "$cross_compiling" = yes; then
7067
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7068
See \`config.log' for more details." >&5
7069
echo "$as_me: error: cannot run test program while cross compiling
7070
See \`config.log' for more details." >&2;}
7071
   { (exit 1); exit 1; }; }
7072
else
7073
  cat >conftest.$ac_ext <<_ACEOF
7074
/* confdefs.h.  */
7075
_ACEOF
7076
cat confdefs.h >>conftest.$ac_ext
7077
cat >>conftest.$ac_ext <<_ACEOF
7078
/* end confdefs.h.  */
7079
$ac_includes_default
7080
long longval () { return (long) (sizeof (long)); }
7081
unsigned long ulongval () { return (long) (sizeof (long)); }
7082
#include 
7083
#include 
7084
int
7085
main ()
7086
{
7087
 
7088
  FILE *f = fopen ("conftest.val", "w");
7089
  if (! f)
7090
    exit (1);
7091
  if (((long) (sizeof (long))) < 0)
7092
    {
7093
      long i = longval ();
7094
      if (i != ((long) (sizeof (long))))
7095
        exit (1);
7096
      fprintf (f, "%ld\n", i);
7097
    }
7098
  else
7099
    {
7100
      unsigned long i = ulongval ();
7101
      if (i != ((long) (sizeof (long))))
7102
        exit (1);
7103
      fprintf (f, "%lu\n", i);
7104
    }
7105
  exit (ferror (f) || fclose (f) != 0);
7106
 
7107
  ;
7108
  return 0;
7109
}
7110
_ACEOF
7111
rm -f conftest$ac_exeext
7112
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7113
  (eval $ac_link) 2>&5
7114
  ac_status=$?
7115
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7116
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7117
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7118
  (eval $ac_try) 2>&5
7119
  ac_status=$?
7120
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7121
  (exit $ac_status); }; }; then
7122
  ac_cv_sizeof_long=`cat conftest.val`
7123
else
7124
  echo "$as_me: program exited with status $ac_status" >&5
7125
echo "$as_me: failed program was:" >&5
7126
sed 's/^/| /' conftest.$ac_ext >&5
7127
 
7128
( exit $ac_status )
7129
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7130
See \`config.log' for more details." >&5
7131
echo "$as_me: error: cannot compute sizeof (long), 77
7132
See \`config.log' for more details." >&2;}
7133
   { (exit 1); exit 1; }; }
7134
fi
7135
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7136
fi
7137
fi
7138
rm -f conftest.val
7139
else
7140
  ac_cv_sizeof_long=0
7141
fi
7142
fi
7143
echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7144
echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7145
cat >>confdefs.h <<_ACEOF
7146
#define SIZEOF_LONG $ac_cv_sizeof_long
7147
_ACEOF
7148
 
7149
 ;;
7150
esac
7151
 
7152
if test $acx_cv_header_stdint = stddef.h; then
7153
  # Lacking a good header?  Test size of everything and deduce all types.
7154
  echo "$as_me:$LINENO: checking for int" >&5
7155
echo $ECHO_N "checking for int... $ECHO_C" >&6
7156
if test "${ac_cv_type_int+set}" = set; then
7157
  echo $ECHO_N "(cached) $ECHO_C" >&6
7158
else
7159
  cat >conftest.$ac_ext <<_ACEOF
7160
/* confdefs.h.  */
7161
_ACEOF
7162
cat confdefs.h >>conftest.$ac_ext
7163
cat >>conftest.$ac_ext <<_ACEOF
7164
/* end confdefs.h.  */
7165
$ac_includes_default
7166
int
7167
main ()
7168
{
7169
if ((int *) 0)
7170
  return 0;
7171
if (sizeof (int))
7172
  return 0;
7173
  ;
7174
  return 0;
7175
}
7176
_ACEOF
7177
rm -f conftest.$ac_objext
7178
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7179
  (eval $ac_compile) 2>conftest.er1
7180
  ac_status=$?
7181
  grep -v '^ *+' conftest.er1 >conftest.err
7182
  rm -f conftest.er1
7183
  cat conftest.err >&5
7184
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185
  (exit $ac_status); } &&
7186
         { ac_try='test -z "$ac_c_werror_flag"
7187
                         || test ! -s conftest.err'
7188
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7189
  (eval $ac_try) 2>&5
7190
  ac_status=$?
7191
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7192
  (exit $ac_status); }; } &&
7193
         { ac_try='test -s conftest.$ac_objext'
7194
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7195
  (eval $ac_try) 2>&5
7196
  ac_status=$?
7197
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7198
  (exit $ac_status); }; }; then
7199
  ac_cv_type_int=yes
7200
else
7201
  echo "$as_me: failed program was:" >&5
7202
sed 's/^/| /' conftest.$ac_ext >&5
7203
 
7204
ac_cv_type_int=no
7205
fi
7206
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7207
fi
7208
echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7209
echo "${ECHO_T}$ac_cv_type_int" >&6
7210
 
7211
echo "$as_me:$LINENO: checking size of int" >&5
7212
echo $ECHO_N "checking size of int... $ECHO_C" >&6
7213
if test "${ac_cv_sizeof_int+set}" = set; then
7214
  echo $ECHO_N "(cached) $ECHO_C" >&6
7215
else
7216
  if test "$ac_cv_type_int" = yes; then
7217
  # The cast to unsigned long works around a bug in the HP C Compiler
7218
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7219
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7220
  # This bug is HP SR number 8606223364.
7221
  if test "$cross_compiling" = yes; then
7222
  # Depending upon the size, compute the lo and hi bounds.
7223
cat >conftest.$ac_ext <<_ACEOF
7224
/* confdefs.h.  */
7225
_ACEOF
7226
cat confdefs.h >>conftest.$ac_ext
7227
cat >>conftest.$ac_ext <<_ACEOF
7228
/* end confdefs.h.  */
7229
$ac_includes_default
7230
int
7231
main ()
7232
{
7233
static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
7234
test_array [0] = 0
7235
 
7236
  ;
7237
  return 0;
7238
}
7239
_ACEOF
7240
rm -f conftest.$ac_objext
7241
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7242
  (eval $ac_compile) 2>conftest.er1
7243
  ac_status=$?
7244
  grep -v '^ *+' conftest.er1 >conftest.err
7245
  rm -f conftest.er1
7246
  cat conftest.err >&5
7247
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7248
  (exit $ac_status); } &&
7249
         { ac_try='test -z "$ac_c_werror_flag"
7250
                         || test ! -s conftest.err'
7251
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7252
  (eval $ac_try) 2>&5
7253
  ac_status=$?
7254
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7255
  (exit $ac_status); }; } &&
7256
         { ac_try='test -s conftest.$ac_objext'
7257
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7258
  (eval $ac_try) 2>&5
7259
  ac_status=$?
7260
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7261
  (exit $ac_status); }; }; then
7262
  ac_lo=0 ac_mid=0
7263
  while :; do
7264
    cat >conftest.$ac_ext <<_ACEOF
7265
/* confdefs.h.  */
7266
_ACEOF
7267
cat confdefs.h >>conftest.$ac_ext
7268
cat >>conftest.$ac_ext <<_ACEOF
7269
/* end confdefs.h.  */
7270
$ac_includes_default
7271
int
7272
main ()
7273
{
7274
static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
7275
test_array [0] = 0
7276
 
7277
  ;
7278
  return 0;
7279
}
7280
_ACEOF
7281
rm -f conftest.$ac_objext
7282
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7283
  (eval $ac_compile) 2>conftest.er1
7284
  ac_status=$?
7285
  grep -v '^ *+' conftest.er1 >conftest.err
7286
  rm -f conftest.er1
7287
  cat conftest.err >&5
7288
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7289
  (exit $ac_status); } &&
7290
         { ac_try='test -z "$ac_c_werror_flag"
7291
                         || test ! -s conftest.err'
7292
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7293
  (eval $ac_try) 2>&5
7294
  ac_status=$?
7295
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7296
  (exit $ac_status); }; } &&
7297
         { ac_try='test -s conftest.$ac_objext'
7298
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7299
  (eval $ac_try) 2>&5
7300
  ac_status=$?
7301
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7302
  (exit $ac_status); }; }; then
7303
  ac_hi=$ac_mid; break
7304
else
7305
  echo "$as_me: failed program was:" >&5
7306
sed 's/^/| /' conftest.$ac_ext >&5
7307
 
7308
ac_lo=`expr $ac_mid + 1`
7309
                    if test $ac_lo -le $ac_mid; then
7310
                      ac_lo= ac_hi=
7311
                      break
7312
                    fi
7313
                    ac_mid=`expr 2 '*' $ac_mid + 1`
7314
fi
7315
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7316
  done
7317
else
7318
  echo "$as_me: failed program was:" >&5
7319
sed 's/^/| /' conftest.$ac_ext >&5
7320
 
7321
cat >conftest.$ac_ext <<_ACEOF
7322
/* confdefs.h.  */
7323
_ACEOF
7324
cat confdefs.h >>conftest.$ac_ext
7325
cat >>conftest.$ac_ext <<_ACEOF
7326
/* end confdefs.h.  */
7327
$ac_includes_default
7328
int
7329
main ()
7330
{
7331
static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
7332
test_array [0] = 0
7333
 
7334
  ;
7335
  return 0;
7336
}
7337
_ACEOF
7338
rm -f conftest.$ac_objext
7339
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7340
  (eval $ac_compile) 2>conftest.er1
7341
  ac_status=$?
7342
  grep -v '^ *+' conftest.er1 >conftest.err
7343
  rm -f conftest.er1
7344
  cat conftest.err >&5
7345
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7346
  (exit $ac_status); } &&
7347
         { ac_try='test -z "$ac_c_werror_flag"
7348
                         || test ! -s conftest.err'
7349
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7350
  (eval $ac_try) 2>&5
7351
  ac_status=$?
7352
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353
  (exit $ac_status); }; } &&
7354
         { ac_try='test -s conftest.$ac_objext'
7355
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7356
  (eval $ac_try) 2>&5
7357
  ac_status=$?
7358
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7359
  (exit $ac_status); }; }; then
7360
  ac_hi=-1 ac_mid=-1
7361
  while :; do
7362
    cat >conftest.$ac_ext <<_ACEOF
7363
/* confdefs.h.  */
7364
_ACEOF
7365
cat confdefs.h >>conftest.$ac_ext
7366
cat >>conftest.$ac_ext <<_ACEOF
7367
/* end confdefs.h.  */
7368
$ac_includes_default
7369
int
7370
main ()
7371
{
7372
static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
7373
test_array [0] = 0
7374
 
7375
  ;
7376
  return 0;
7377
}
7378
_ACEOF
7379
rm -f conftest.$ac_objext
7380
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7381
  (eval $ac_compile) 2>conftest.er1
7382
  ac_status=$?
7383
  grep -v '^ *+' conftest.er1 >conftest.err
7384
  rm -f conftest.er1
7385
  cat conftest.err >&5
7386
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7387
  (exit $ac_status); } &&
7388
         { ac_try='test -z "$ac_c_werror_flag"
7389
                         || test ! -s conftest.err'
7390
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7391
  (eval $ac_try) 2>&5
7392
  ac_status=$?
7393
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7394
  (exit $ac_status); }; } &&
7395
         { ac_try='test -s conftest.$ac_objext'
7396
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7397
  (eval $ac_try) 2>&5
7398
  ac_status=$?
7399
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7400
  (exit $ac_status); }; }; then
7401
  ac_lo=$ac_mid; break
7402
else
7403
  echo "$as_me: failed program was:" >&5
7404
sed 's/^/| /' conftest.$ac_ext >&5
7405
 
7406
ac_hi=`expr '(' $ac_mid ')' - 1`
7407
                       if test $ac_mid -le $ac_hi; then
7408
                         ac_lo= ac_hi=
7409
                         break
7410
                       fi
7411
                       ac_mid=`expr 2 '*' $ac_mid`
7412
fi
7413
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7414
  done
7415
else
7416
  echo "$as_me: failed program was:" >&5
7417
sed 's/^/| /' conftest.$ac_ext >&5
7418
 
7419
ac_lo= ac_hi=
7420
fi
7421
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7422
fi
7423
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7424
# Binary search between lo and hi bounds.
7425
while test "x$ac_lo" != "x$ac_hi"; do
7426
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7427
  cat >conftest.$ac_ext <<_ACEOF
7428
/* confdefs.h.  */
7429
_ACEOF
7430
cat confdefs.h >>conftest.$ac_ext
7431
cat >>conftest.$ac_ext <<_ACEOF
7432
/* end confdefs.h.  */
7433
$ac_includes_default
7434
int
7435
main ()
7436
{
7437
static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
7438
test_array [0] = 0
7439
 
7440
  ;
7441
  return 0;
7442
}
7443
_ACEOF
7444
rm -f conftest.$ac_objext
7445
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7446
  (eval $ac_compile) 2>conftest.er1
7447
  ac_status=$?
7448
  grep -v '^ *+' conftest.er1 >conftest.err
7449
  rm -f conftest.er1
7450
  cat conftest.err >&5
7451
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7452
  (exit $ac_status); } &&
7453
         { ac_try='test -z "$ac_c_werror_flag"
7454
                         || test ! -s conftest.err'
7455
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7456
  (eval $ac_try) 2>&5
7457
  ac_status=$?
7458
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7459
  (exit $ac_status); }; } &&
7460
         { ac_try='test -s conftest.$ac_objext'
7461
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7462
  (eval $ac_try) 2>&5
7463
  ac_status=$?
7464
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7465
  (exit $ac_status); }; }; then
7466
  ac_hi=$ac_mid
7467
else
7468
  echo "$as_me: failed program was:" >&5
7469
sed 's/^/| /' conftest.$ac_ext >&5
7470
 
7471
ac_lo=`expr '(' $ac_mid ')' + 1`
7472
fi
7473
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7474
done
7475
case $ac_lo in
7476
?*) ac_cv_sizeof_int=$ac_lo;;
7477
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
7478
See \`config.log' for more details." >&5
7479
echo "$as_me: error: cannot compute sizeof (int), 77
7480
See \`config.log' for more details." >&2;}
7481
   { (exit 1); exit 1; }; } ;;
7482
esac
7483
else
7484
  if test "$cross_compiling" = yes; then
7485
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7486
See \`config.log' for more details." >&5
7487
echo "$as_me: error: cannot run test program while cross compiling
7488
See \`config.log' for more details." >&2;}
7489
   { (exit 1); exit 1; }; }
7490
else
7491
  cat >conftest.$ac_ext <<_ACEOF
7492
/* confdefs.h.  */
7493
_ACEOF
7494
cat confdefs.h >>conftest.$ac_ext
7495
cat >>conftest.$ac_ext <<_ACEOF
7496
/* end confdefs.h.  */
7497
$ac_includes_default
7498
long longval () { return (long) (sizeof (int)); }
7499
unsigned long ulongval () { return (long) (sizeof (int)); }
7500
#include 
7501
#include 
7502
int
7503
main ()
7504
{
7505
 
7506
  FILE *f = fopen ("conftest.val", "w");
7507
  if (! f)
7508
    exit (1);
7509
  if (((long) (sizeof (int))) < 0)
7510
    {
7511
      long i = longval ();
7512
      if (i != ((long) (sizeof (int))))
7513
        exit (1);
7514
      fprintf (f, "%ld\n", i);
7515
    }
7516
  else
7517
    {
7518
      unsigned long i = ulongval ();
7519
      if (i != ((long) (sizeof (int))))
7520
        exit (1);
7521
      fprintf (f, "%lu\n", i);
7522
    }
7523
  exit (ferror (f) || fclose (f) != 0);
7524
 
7525
  ;
7526
  return 0;
7527
}
7528
_ACEOF
7529
rm -f conftest$ac_exeext
7530
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7531
  (eval $ac_link) 2>&5
7532
  ac_status=$?
7533
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7534
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7535
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7536
  (eval $ac_try) 2>&5
7537
  ac_status=$?
7538
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7539
  (exit $ac_status); }; }; then
7540
  ac_cv_sizeof_int=`cat conftest.val`
7541
else
7542
  echo "$as_me: program exited with status $ac_status" >&5
7543
echo "$as_me: failed program was:" >&5
7544
sed 's/^/| /' conftest.$ac_ext >&5
7545
 
7546
( exit $ac_status )
7547
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
7548
See \`config.log' for more details." >&5
7549
echo "$as_me: error: cannot compute sizeof (int), 77
7550
See \`config.log' for more details." >&2;}
7551
   { (exit 1); exit 1; }; }
7552
fi
7553
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7554
fi
7555
fi
7556
rm -f conftest.val
7557
else
7558
  ac_cv_sizeof_int=0
7559
fi
7560
fi
7561
echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
7562
echo "${ECHO_T}$ac_cv_sizeof_int" >&6
7563
cat >>confdefs.h <<_ACEOF
7564
#define SIZEOF_INT $ac_cv_sizeof_int
7565
_ACEOF
7566
 
7567
 
7568
  echo "$as_me:$LINENO: checking for short" >&5
7569
echo $ECHO_N "checking for short... $ECHO_C" >&6
7570
if test "${ac_cv_type_short+set}" = set; then
7571
  echo $ECHO_N "(cached) $ECHO_C" >&6
7572
else
7573
  cat >conftest.$ac_ext <<_ACEOF
7574
/* confdefs.h.  */
7575
_ACEOF
7576
cat confdefs.h >>conftest.$ac_ext
7577
cat >>conftest.$ac_ext <<_ACEOF
7578
/* end confdefs.h.  */
7579
$ac_includes_default
7580
int
7581
main ()
7582
{
7583
if ((short *) 0)
7584
  return 0;
7585
if (sizeof (short))
7586
  return 0;
7587
  ;
7588
  return 0;
7589
}
7590
_ACEOF
7591
rm -f conftest.$ac_objext
7592
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7593
  (eval $ac_compile) 2>conftest.er1
7594
  ac_status=$?
7595
  grep -v '^ *+' conftest.er1 >conftest.err
7596
  rm -f conftest.er1
7597
  cat conftest.err >&5
7598
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7599
  (exit $ac_status); } &&
7600
         { ac_try='test -z "$ac_c_werror_flag"
7601
                         || test ! -s conftest.err'
7602
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7603
  (eval $ac_try) 2>&5
7604
  ac_status=$?
7605
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7606
  (exit $ac_status); }; } &&
7607
         { ac_try='test -s conftest.$ac_objext'
7608
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7609
  (eval $ac_try) 2>&5
7610
  ac_status=$?
7611
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7612
  (exit $ac_status); }; }; then
7613
  ac_cv_type_short=yes
7614
else
7615
  echo "$as_me: failed program was:" >&5
7616
sed 's/^/| /' conftest.$ac_ext >&5
7617
 
7618
ac_cv_type_short=no
7619
fi
7620
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7621
fi
7622
echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
7623
echo "${ECHO_T}$ac_cv_type_short" >&6
7624
 
7625
echo "$as_me:$LINENO: checking size of short" >&5
7626
echo $ECHO_N "checking size of short... $ECHO_C" >&6
7627
if test "${ac_cv_sizeof_short+set}" = set; then
7628
  echo $ECHO_N "(cached) $ECHO_C" >&6
7629
else
7630
  if test "$ac_cv_type_short" = yes; then
7631
  # The cast to unsigned long works around a bug in the HP C Compiler
7632
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7633
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7634
  # This bug is HP SR number 8606223364.
7635
  if test "$cross_compiling" = yes; then
7636
  # Depending upon the size, compute the lo and hi bounds.
7637
cat >conftest.$ac_ext <<_ACEOF
7638
/* confdefs.h.  */
7639
_ACEOF
7640
cat confdefs.h >>conftest.$ac_ext
7641
cat >>conftest.$ac_ext <<_ACEOF
7642
/* end confdefs.h.  */
7643
$ac_includes_default
7644
int
7645
main ()
7646
{
7647
static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
7648
test_array [0] = 0
7649
 
7650
  ;
7651
  return 0;
7652
}
7653
_ACEOF
7654
rm -f conftest.$ac_objext
7655
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7656
  (eval $ac_compile) 2>conftest.er1
7657
  ac_status=$?
7658
  grep -v '^ *+' conftest.er1 >conftest.err
7659
  rm -f conftest.er1
7660
  cat conftest.err >&5
7661
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662
  (exit $ac_status); } &&
7663
         { ac_try='test -z "$ac_c_werror_flag"
7664
                         || test ! -s conftest.err'
7665
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7666
  (eval $ac_try) 2>&5
7667
  ac_status=$?
7668
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669
  (exit $ac_status); }; } &&
7670
         { ac_try='test -s conftest.$ac_objext'
7671
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7672
  (eval $ac_try) 2>&5
7673
  ac_status=$?
7674
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7675
  (exit $ac_status); }; }; then
7676
  ac_lo=0 ac_mid=0
7677
  while :; do
7678
    cat >conftest.$ac_ext <<_ACEOF
7679
/* confdefs.h.  */
7680
_ACEOF
7681
cat confdefs.h >>conftest.$ac_ext
7682
cat >>conftest.$ac_ext <<_ACEOF
7683
/* end confdefs.h.  */
7684
$ac_includes_default
7685
int
7686
main ()
7687
{
7688
static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7689
test_array [0] = 0
7690
 
7691
  ;
7692
  return 0;
7693
}
7694
_ACEOF
7695
rm -f conftest.$ac_objext
7696
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7697
  (eval $ac_compile) 2>conftest.er1
7698
  ac_status=$?
7699
  grep -v '^ *+' conftest.er1 >conftest.err
7700
  rm -f conftest.er1
7701
  cat conftest.err >&5
7702
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7703
  (exit $ac_status); } &&
7704
         { ac_try='test -z "$ac_c_werror_flag"
7705
                         || test ! -s conftest.err'
7706
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7707
  (eval $ac_try) 2>&5
7708
  ac_status=$?
7709
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7710
  (exit $ac_status); }; } &&
7711
         { ac_try='test -s conftest.$ac_objext'
7712
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7713
  (eval $ac_try) 2>&5
7714
  ac_status=$?
7715
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7716
  (exit $ac_status); }; }; then
7717
  ac_hi=$ac_mid; break
7718
else
7719
  echo "$as_me: failed program was:" >&5
7720
sed 's/^/| /' conftest.$ac_ext >&5
7721
 
7722
ac_lo=`expr $ac_mid + 1`
7723
                    if test $ac_lo -le $ac_mid; then
7724
                      ac_lo= ac_hi=
7725
                      break
7726
                    fi
7727
                    ac_mid=`expr 2 '*' $ac_mid + 1`
7728
fi
7729
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7730
  done
7731
else
7732
  echo "$as_me: failed program was:" >&5
7733
sed 's/^/| /' conftest.$ac_ext >&5
7734
 
7735
cat >conftest.$ac_ext <<_ACEOF
7736
/* confdefs.h.  */
7737
_ACEOF
7738
cat confdefs.h >>conftest.$ac_ext
7739
cat >>conftest.$ac_ext <<_ACEOF
7740
/* end confdefs.h.  */
7741
$ac_includes_default
7742
int
7743
main ()
7744
{
7745
static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
7746
test_array [0] = 0
7747
 
7748
  ;
7749
  return 0;
7750
}
7751
_ACEOF
7752
rm -f conftest.$ac_objext
7753
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7754
  (eval $ac_compile) 2>conftest.er1
7755
  ac_status=$?
7756
  grep -v '^ *+' conftest.er1 >conftest.err
7757
  rm -f conftest.er1
7758
  cat conftest.err >&5
7759
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7760
  (exit $ac_status); } &&
7761
         { ac_try='test -z "$ac_c_werror_flag"
7762
                         || test ! -s conftest.err'
7763
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7764
  (eval $ac_try) 2>&5
7765
  ac_status=$?
7766
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767
  (exit $ac_status); }; } &&
7768
         { ac_try='test -s conftest.$ac_objext'
7769
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7770
  (eval $ac_try) 2>&5
7771
  ac_status=$?
7772
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7773
  (exit $ac_status); }; }; then
7774
  ac_hi=-1 ac_mid=-1
7775
  while :; do
7776
    cat >conftest.$ac_ext <<_ACEOF
7777
/* confdefs.h.  */
7778
_ACEOF
7779
cat confdefs.h >>conftest.$ac_ext
7780
cat >>conftest.$ac_ext <<_ACEOF
7781
/* end confdefs.h.  */
7782
$ac_includes_default
7783
int
7784
main ()
7785
{
7786
static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
7787
test_array [0] = 0
7788
 
7789
  ;
7790
  return 0;
7791
}
7792
_ACEOF
7793
rm -f conftest.$ac_objext
7794
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7795
  (eval $ac_compile) 2>conftest.er1
7796
  ac_status=$?
7797
  grep -v '^ *+' conftest.er1 >conftest.err
7798
  rm -f conftest.er1
7799
  cat conftest.err >&5
7800
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7801
  (exit $ac_status); } &&
7802
         { ac_try='test -z "$ac_c_werror_flag"
7803
                         || test ! -s conftest.err'
7804
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7805
  (eval $ac_try) 2>&5
7806
  ac_status=$?
7807
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7808
  (exit $ac_status); }; } &&
7809
         { ac_try='test -s conftest.$ac_objext'
7810
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7811
  (eval $ac_try) 2>&5
7812
  ac_status=$?
7813
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7814
  (exit $ac_status); }; }; then
7815
  ac_lo=$ac_mid; break
7816
else
7817
  echo "$as_me: failed program was:" >&5
7818
sed 's/^/| /' conftest.$ac_ext >&5
7819
 
7820
ac_hi=`expr '(' $ac_mid ')' - 1`
7821
                       if test $ac_mid -le $ac_hi; then
7822
                         ac_lo= ac_hi=
7823
                         break
7824
                       fi
7825
                       ac_mid=`expr 2 '*' $ac_mid`
7826
fi
7827
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7828
  done
7829
else
7830
  echo "$as_me: failed program was:" >&5
7831
sed 's/^/| /' conftest.$ac_ext >&5
7832
 
7833
ac_lo= ac_hi=
7834
fi
7835
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7836
fi
7837
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7838
# Binary search between lo and hi bounds.
7839
while test "x$ac_lo" != "x$ac_hi"; do
7840
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7841
  cat >conftest.$ac_ext <<_ACEOF
7842
/* confdefs.h.  */
7843
_ACEOF
7844
cat confdefs.h >>conftest.$ac_ext
7845
cat >>conftest.$ac_ext <<_ACEOF
7846
/* end confdefs.h.  */
7847
$ac_includes_default
7848
int
7849
main ()
7850
{
7851
static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7852
test_array [0] = 0
7853
 
7854
  ;
7855
  return 0;
7856
}
7857
_ACEOF
7858
rm -f conftest.$ac_objext
7859
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7860
  (eval $ac_compile) 2>conftest.er1
7861
  ac_status=$?
7862
  grep -v '^ *+' conftest.er1 >conftest.err
7863
  rm -f conftest.er1
7864
  cat conftest.err >&5
7865
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7866
  (exit $ac_status); } &&
7867
         { ac_try='test -z "$ac_c_werror_flag"
7868
                         || test ! -s conftest.err'
7869
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7870
  (eval $ac_try) 2>&5
7871
  ac_status=$?
7872
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873
  (exit $ac_status); }; } &&
7874
         { ac_try='test -s conftest.$ac_objext'
7875
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7876
  (eval $ac_try) 2>&5
7877
  ac_status=$?
7878
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879
  (exit $ac_status); }; }; then
7880
  ac_hi=$ac_mid
7881
else
7882
  echo "$as_me: failed program was:" >&5
7883
sed 's/^/| /' conftest.$ac_ext >&5
7884
 
7885
ac_lo=`expr '(' $ac_mid ')' + 1`
7886
fi
7887
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7888
done
7889
case $ac_lo in
7890
?*) ac_cv_sizeof_short=$ac_lo;;
7891
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7892
See \`config.log' for more details." >&5
7893
echo "$as_me: error: cannot compute sizeof (short), 77
7894
See \`config.log' for more details." >&2;}
7895
   { (exit 1); exit 1; }; } ;;
7896
esac
7897
else
7898
  if test "$cross_compiling" = yes; then
7899
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7900
See \`config.log' for more details." >&5
7901
echo "$as_me: error: cannot run test program while cross compiling
7902
See \`config.log' for more details." >&2;}
7903
   { (exit 1); exit 1; }; }
7904
else
7905
  cat >conftest.$ac_ext <<_ACEOF
7906
/* confdefs.h.  */
7907
_ACEOF
7908
cat confdefs.h >>conftest.$ac_ext
7909
cat >>conftest.$ac_ext <<_ACEOF
7910
/* end confdefs.h.  */
7911
$ac_includes_default
7912
long longval () { return (long) (sizeof (short)); }
7913
unsigned long ulongval () { return (long) (sizeof (short)); }
7914
#include 
7915
#include 
7916
int
7917
main ()
7918
{
7919
 
7920
  FILE *f = fopen ("conftest.val", "w");
7921
  if (! f)
7922
    exit (1);
7923
  if (((long) (sizeof (short))) < 0)
7924
    {
7925
      long i = longval ();
7926
      if (i != ((long) (sizeof (short))))
7927
        exit (1);
7928
      fprintf (f, "%ld\n", i);
7929
    }
7930
  else
7931
    {
7932
      unsigned long i = ulongval ();
7933
      if (i != ((long) (sizeof (short))))
7934
        exit (1);
7935
      fprintf (f, "%lu\n", i);
7936
    }
7937
  exit (ferror (f) || fclose (f) != 0);
7938
 
7939
  ;
7940
  return 0;
7941
}
7942
_ACEOF
7943
rm -f conftest$ac_exeext
7944
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7945
  (eval $ac_link) 2>&5
7946
  ac_status=$?
7947
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7948
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7949
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7950
  (eval $ac_try) 2>&5
7951
  ac_status=$?
7952
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7953
  (exit $ac_status); }; }; then
7954
  ac_cv_sizeof_short=`cat conftest.val`
7955
else
7956
  echo "$as_me: program exited with status $ac_status" >&5
7957
echo "$as_me: failed program was:" >&5
7958
sed 's/^/| /' conftest.$ac_ext >&5
7959
 
7960
( exit $ac_status )
7961
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7962
See \`config.log' for more details." >&5
7963
echo "$as_me: error: cannot compute sizeof (short), 77
7964
See \`config.log' for more details." >&2;}
7965
   { (exit 1); exit 1; }; }
7966
fi
7967
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7968
fi
7969
fi
7970
rm -f conftest.val
7971
else
7972
  ac_cv_sizeof_short=0
7973
fi
7974
fi
7975
echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
7976
echo "${ECHO_T}$ac_cv_sizeof_short" >&6
7977
cat >>confdefs.h <<_ACEOF
7978
#define SIZEOF_SHORT $ac_cv_sizeof_short
7979
_ACEOF
7980
 
7981
 
7982
  echo "$as_me:$LINENO: checking for char" >&5
7983
echo $ECHO_N "checking for char... $ECHO_C" >&6
7984
if test "${ac_cv_type_char+set}" = set; then
7985
  echo $ECHO_N "(cached) $ECHO_C" >&6
7986
else
7987
  cat >conftest.$ac_ext <<_ACEOF
7988
/* confdefs.h.  */
7989
_ACEOF
7990
cat confdefs.h >>conftest.$ac_ext
7991
cat >>conftest.$ac_ext <<_ACEOF
7992
/* end confdefs.h.  */
7993
$ac_includes_default
7994
int
7995
main ()
7996
{
7997
if ((char *) 0)
7998
  return 0;
7999
if (sizeof (char))
8000
  return 0;
8001
  ;
8002
  return 0;
8003
}
8004
_ACEOF
8005
rm -f conftest.$ac_objext
8006
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8007
  (eval $ac_compile) 2>conftest.er1
8008
  ac_status=$?
8009
  grep -v '^ *+' conftest.er1 >conftest.err
8010
  rm -f conftest.er1
8011
  cat conftest.err >&5
8012
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013
  (exit $ac_status); } &&
8014
         { ac_try='test -z "$ac_c_werror_flag"
8015
                         || test ! -s conftest.err'
8016
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8017
  (eval $ac_try) 2>&5
8018
  ac_status=$?
8019
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8020
  (exit $ac_status); }; } &&
8021
         { ac_try='test -s conftest.$ac_objext'
8022
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8023
  (eval $ac_try) 2>&5
8024
  ac_status=$?
8025
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8026
  (exit $ac_status); }; }; then
8027
  ac_cv_type_char=yes
8028
else
8029
  echo "$as_me: failed program was:" >&5
8030
sed 's/^/| /' conftest.$ac_ext >&5
8031
 
8032
ac_cv_type_char=no
8033
fi
8034
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8035
fi
8036
echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
8037
echo "${ECHO_T}$ac_cv_type_char" >&6
8038
 
8039
echo "$as_me:$LINENO: checking size of char" >&5
8040
echo $ECHO_N "checking size of char... $ECHO_C" >&6
8041
if test "${ac_cv_sizeof_char+set}" = set; then
8042
  echo $ECHO_N "(cached) $ECHO_C" >&6
8043
else
8044
  if test "$ac_cv_type_char" = yes; then
8045
  # The cast to unsigned long works around a bug in the HP C Compiler
8046
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8047
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8048
  # This bug is HP SR number 8606223364.
8049
  if test "$cross_compiling" = yes; then
8050
  # Depending upon the size, compute the lo and hi bounds.
8051
cat >conftest.$ac_ext <<_ACEOF
8052
/* confdefs.h.  */
8053
_ACEOF
8054
cat confdefs.h >>conftest.$ac_ext
8055
cat >>conftest.$ac_ext <<_ACEOF
8056
/* end confdefs.h.  */
8057
$ac_includes_default
8058
int
8059
main ()
8060
{
8061
static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
8062
test_array [0] = 0
8063
 
8064
  ;
8065
  return 0;
8066
}
8067
_ACEOF
8068
rm -f conftest.$ac_objext
8069
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8070
  (eval $ac_compile) 2>conftest.er1
8071
  ac_status=$?
8072
  grep -v '^ *+' conftest.er1 >conftest.err
8073
  rm -f conftest.er1
8074
  cat conftest.err >&5
8075
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076
  (exit $ac_status); } &&
8077
         { ac_try='test -z "$ac_c_werror_flag"
8078
                         || test ! -s conftest.err'
8079
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8080
  (eval $ac_try) 2>&5
8081
  ac_status=$?
8082
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8083
  (exit $ac_status); }; } &&
8084
         { ac_try='test -s conftest.$ac_objext'
8085
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8086
  (eval $ac_try) 2>&5
8087
  ac_status=$?
8088
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8089
  (exit $ac_status); }; }; then
8090
  ac_lo=0 ac_mid=0
8091
  while :; do
8092
    cat >conftest.$ac_ext <<_ACEOF
8093
/* confdefs.h.  */
8094
_ACEOF
8095
cat confdefs.h >>conftest.$ac_ext
8096
cat >>conftest.$ac_ext <<_ACEOF
8097
/* end confdefs.h.  */
8098
$ac_includes_default
8099
int
8100
main ()
8101
{
8102
static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
8103
test_array [0] = 0
8104
 
8105
  ;
8106
  return 0;
8107
}
8108
_ACEOF
8109
rm -f conftest.$ac_objext
8110
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8111
  (eval $ac_compile) 2>conftest.er1
8112
  ac_status=$?
8113
  grep -v '^ *+' conftest.er1 >conftest.err
8114
  rm -f conftest.er1
8115
  cat conftest.err >&5
8116
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117
  (exit $ac_status); } &&
8118
         { ac_try='test -z "$ac_c_werror_flag"
8119
                         || test ! -s conftest.err'
8120
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8121
  (eval $ac_try) 2>&5
8122
  ac_status=$?
8123
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8124
  (exit $ac_status); }; } &&
8125
         { ac_try='test -s conftest.$ac_objext'
8126
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8127
  (eval $ac_try) 2>&5
8128
  ac_status=$?
8129
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130
  (exit $ac_status); }; }; then
8131
  ac_hi=$ac_mid; break
8132
else
8133
  echo "$as_me: failed program was:" >&5
8134
sed 's/^/| /' conftest.$ac_ext >&5
8135
 
8136
ac_lo=`expr $ac_mid + 1`
8137
                    if test $ac_lo -le $ac_mid; then
8138
                      ac_lo= ac_hi=
8139
                      break
8140
                    fi
8141
                    ac_mid=`expr 2 '*' $ac_mid + 1`
8142
fi
8143
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8144
  done
8145
else
8146
  echo "$as_me: failed program was:" >&5
8147
sed 's/^/| /' conftest.$ac_ext >&5
8148
 
8149
cat >conftest.$ac_ext <<_ACEOF
8150
/* confdefs.h.  */
8151
_ACEOF
8152
cat confdefs.h >>conftest.$ac_ext
8153
cat >>conftest.$ac_ext <<_ACEOF
8154
/* end confdefs.h.  */
8155
$ac_includes_default
8156
int
8157
main ()
8158
{
8159
static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
8160
test_array [0] = 0
8161
 
8162
  ;
8163
  return 0;
8164
}
8165
_ACEOF
8166
rm -f conftest.$ac_objext
8167
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8168
  (eval $ac_compile) 2>conftest.er1
8169
  ac_status=$?
8170
  grep -v '^ *+' conftest.er1 >conftest.err
8171
  rm -f conftest.er1
8172
  cat conftest.err >&5
8173
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8174
  (exit $ac_status); } &&
8175
         { ac_try='test -z "$ac_c_werror_flag"
8176
                         || test ! -s conftest.err'
8177
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8178
  (eval $ac_try) 2>&5
8179
  ac_status=$?
8180
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181
  (exit $ac_status); }; } &&
8182
         { ac_try='test -s conftest.$ac_objext'
8183
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8184
  (eval $ac_try) 2>&5
8185
  ac_status=$?
8186
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187
  (exit $ac_status); }; }; then
8188
  ac_hi=-1 ac_mid=-1
8189
  while :; do
8190
    cat >conftest.$ac_ext <<_ACEOF
8191
/* confdefs.h.  */
8192
_ACEOF
8193
cat confdefs.h >>conftest.$ac_ext
8194
cat >>conftest.$ac_ext <<_ACEOF
8195
/* end confdefs.h.  */
8196
$ac_includes_default
8197
int
8198
main ()
8199
{
8200
static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
8201
test_array [0] = 0
8202
 
8203
  ;
8204
  return 0;
8205
}
8206
_ACEOF
8207
rm -f conftest.$ac_objext
8208
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8209
  (eval $ac_compile) 2>conftest.er1
8210
  ac_status=$?
8211
  grep -v '^ *+' conftest.er1 >conftest.err
8212
  rm -f conftest.er1
8213
  cat conftest.err >&5
8214
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8215
  (exit $ac_status); } &&
8216
         { ac_try='test -z "$ac_c_werror_flag"
8217
                         || test ! -s conftest.err'
8218
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8219
  (eval $ac_try) 2>&5
8220
  ac_status=$?
8221
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222
  (exit $ac_status); }; } &&
8223
         { ac_try='test -s conftest.$ac_objext'
8224
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8225
  (eval $ac_try) 2>&5
8226
  ac_status=$?
8227
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8228
  (exit $ac_status); }; }; then
8229
  ac_lo=$ac_mid; break
8230
else
8231
  echo "$as_me: failed program was:" >&5
8232
sed 's/^/| /' conftest.$ac_ext >&5
8233
 
8234
ac_hi=`expr '(' $ac_mid ')' - 1`
8235
                       if test $ac_mid -le $ac_hi; then
8236
                         ac_lo= ac_hi=
8237
                         break
8238
                       fi
8239
                       ac_mid=`expr 2 '*' $ac_mid`
8240
fi
8241
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8242
  done
8243
else
8244
  echo "$as_me: failed program was:" >&5
8245
sed 's/^/| /' conftest.$ac_ext >&5
8246
 
8247
ac_lo= ac_hi=
8248
fi
8249
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8250
fi
8251
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8252
# Binary search between lo and hi bounds.
8253
while test "x$ac_lo" != "x$ac_hi"; do
8254
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8255
  cat >conftest.$ac_ext <<_ACEOF
8256
/* confdefs.h.  */
8257
_ACEOF
8258
cat confdefs.h >>conftest.$ac_ext
8259
cat >>conftest.$ac_ext <<_ACEOF
8260
/* end confdefs.h.  */
8261
$ac_includes_default
8262
int
8263
main ()
8264
{
8265
static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
8266
test_array [0] = 0
8267
 
8268
  ;
8269
  return 0;
8270
}
8271
_ACEOF
8272
rm -f conftest.$ac_objext
8273
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8274
  (eval $ac_compile) 2>conftest.er1
8275
  ac_status=$?
8276
  grep -v '^ *+' conftest.er1 >conftest.err
8277
  rm -f conftest.er1
8278
  cat conftest.err >&5
8279
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8280
  (exit $ac_status); } &&
8281
         { ac_try='test -z "$ac_c_werror_flag"
8282
                         || test ! -s conftest.err'
8283
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8284
  (eval $ac_try) 2>&5
8285
  ac_status=$?
8286
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287
  (exit $ac_status); }; } &&
8288
         { ac_try='test -s conftest.$ac_objext'
8289
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8290
  (eval $ac_try) 2>&5
8291
  ac_status=$?
8292
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293
  (exit $ac_status); }; }; then
8294
  ac_hi=$ac_mid
8295
else
8296
  echo "$as_me: failed program was:" >&5
8297
sed 's/^/| /' conftest.$ac_ext >&5
8298
 
8299
ac_lo=`expr '(' $ac_mid ')' + 1`
8300
fi
8301
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8302
done
8303
case $ac_lo in
8304
?*) ac_cv_sizeof_char=$ac_lo;;
8305
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
8306
See \`config.log' for more details." >&5
8307
echo "$as_me: error: cannot compute sizeof (char), 77
8308
See \`config.log' for more details." >&2;}
8309
   { (exit 1); exit 1; }; } ;;
8310
esac
8311
else
8312
  if test "$cross_compiling" = yes; then
8313
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8314
See \`config.log' for more details." >&5
8315
echo "$as_me: error: cannot run test program while cross compiling
8316
See \`config.log' for more details." >&2;}
8317
   { (exit 1); exit 1; }; }
8318
else
8319
  cat >conftest.$ac_ext <<_ACEOF
8320
/* confdefs.h.  */
8321
_ACEOF
8322
cat confdefs.h >>conftest.$ac_ext
8323
cat >>conftest.$ac_ext <<_ACEOF
8324
/* end confdefs.h.  */
8325
$ac_includes_default
8326
long longval () { return (long) (sizeof (char)); }
8327
unsigned long ulongval () { return (long) (sizeof (char)); }
8328
#include 
8329
#include 
8330
int
8331
main ()
8332
{
8333
 
8334
  FILE *f = fopen ("conftest.val", "w");
8335
  if (! f)
8336
    exit (1);
8337
  if (((long) (sizeof (char))) < 0)
8338
    {
8339
      long i = longval ();
8340
      if (i != ((long) (sizeof (char))))
8341
        exit (1);
8342
      fprintf (f, "%ld\n", i);
8343
    }
8344
  else
8345
    {
8346
      unsigned long i = ulongval ();
8347
      if (i != ((long) (sizeof (char))))
8348
        exit (1);
8349
      fprintf (f, "%lu\n", i);
8350
    }
8351
  exit (ferror (f) || fclose (f) != 0);
8352
 
8353
  ;
8354
  return 0;
8355
}
8356
_ACEOF
8357
rm -f conftest$ac_exeext
8358
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8359
  (eval $ac_link) 2>&5
8360
  ac_status=$?
8361
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8363
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8364
  (eval $ac_try) 2>&5
8365
  ac_status=$?
8366
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8367
  (exit $ac_status); }; }; then
8368
  ac_cv_sizeof_char=`cat conftest.val`
8369
else
8370
  echo "$as_me: program exited with status $ac_status" >&5
8371
echo "$as_me: failed program was:" >&5
8372
sed 's/^/| /' conftest.$ac_ext >&5
8373
 
8374
( exit $ac_status )
8375
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
8376
See \`config.log' for more details." >&5
8377
echo "$as_me: error: cannot compute sizeof (char), 77
8378
See \`config.log' for more details." >&2;}
8379
   { (exit 1); exit 1; }; }
8380
fi
8381
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8382
fi
8383
fi
8384
rm -f conftest.val
8385
else
8386
  ac_cv_sizeof_char=0
8387
fi
8388
fi
8389
echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
8390
echo "${ECHO_T}$ac_cv_sizeof_char" >&6
8391
cat >>confdefs.h <<_ACEOF
8392
#define SIZEOF_CHAR $ac_cv_sizeof_char
8393
_ACEOF
8394
 
8395
 
8396
 
8397
  echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
8398
echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
8399
  case "$ac_cv_sizeof_char" in
8400
    1) acx_cv_type_int8_t=char ;;
8401
    *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
8402
echo "$as_me: error: no 8-bit type" >&2;}
8403
   { (exit please report a bug); exit please report a bug; }; }
8404
  esac
8405
  echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
8406
echo "${ECHO_T}$acx_cv_type_int8_t" >&6
8407
 
8408
  echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
8409
echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
8410
  case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
8411
    2:*) acx_cv_type_int16_t=int ;;
8412
    *:2) acx_cv_type_int16_t=short ;;
8413
    *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
8414
echo "$as_me: error: no 16-bit type" >&2;}
8415
   { (exit please report a bug); exit please report a bug; }; }
8416
  esac
8417
  echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
8418
echo "${ECHO_T}$acx_cv_type_int16_t" >&6
8419
 
8420
  echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
8421
echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
8422
  case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
8423
    4:*) acx_cv_type_int32_t=int ;;
8424
    *:4) acx_cv_type_int32_t=long ;;
8425
    *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
8426
echo "$as_me: error: no 32-bit type" >&2;}
8427
   { (exit please report a bug); exit please report a bug; }; }
8428
  esac
8429
  echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
8430
echo "${ECHO_T}$acx_cv_type_int32_t" >&6
8431
fi
8432
 
8433
# These tests are here to make the output prettier
8434
 
8435
if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
8436
  case "$ac_cv_sizeof_long" in
8437
    8) acx_cv_type_int64_t=long ;;
8438
  esac
8439
  echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
8440
echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
8441
  echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
8442
echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
8443
fi
8444
 
8445
# Now we can use the above types
8446
 
8447
if test "$ac_cv_type_uintptr_t" != yes; then
8448
  echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
8449
echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
8450
  case $ac_cv_sizeof_void_p in
8451
    2) acx_cv_type_intptr_t=int16_t ;;
8452
    4) acx_cv_type_intptr_t=int32_t ;;
8453
    8) acx_cv_type_intptr_t=int64_t ;;
8454
    *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
8455
echo "$as_me: error: no equivalent for intptr_t" >&2;}
8456
   { (exit please report a bug); exit please report a bug; }; }
8457
  esac
8458
  echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
8459
echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
8460
fi
8461
 
8462
# ----------------- done all checks, emit header -------------
8463
          ac_config_commands="$ac_config_commands gstdint.h"
8464
 
8465
 
8466
 
8467
 
8468
# Check to see if -pthread or -lpthread is needed.  Prefer the former.
8469
# In case the pthread.h system header is not found, this test will fail.
8470
XPCFLAGS=""
8471
CFLAGS="$CFLAGS -pthread"
8472
cat >conftest.$ac_ext <<_ACEOF
8473
/* confdefs.h.  */
8474
_ACEOF
8475
cat confdefs.h >>conftest.$ac_ext
8476
cat >>conftest.$ac_ext <<_ACEOF
8477
/* end confdefs.h.  */
8478
#include 
8479
   void *g(void *d) { return NULL; }
8480
int
8481
main ()
8482
{
8483
pthread_t t; pthread_create(&t,NULL,g,NULL);
8484
  ;
8485
  return 0;
8486
}
8487
_ACEOF
8488
rm -f conftest.$ac_objext conftest$ac_exeext
8489
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8490
  (eval $ac_link) 2>conftest.er1
8491
  ac_status=$?
8492
  grep -v '^ *+' conftest.er1 >conftest.err
8493
  rm -f conftest.er1
8494
  cat conftest.err >&5
8495
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496
  (exit $ac_status); } &&
8497
         { ac_try='test -z "$ac_c_werror_flag"
8498
                         || test ! -s conftest.err'
8499
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8500
  (eval $ac_try) 2>&5
8501
  ac_status=$?
8502
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503
  (exit $ac_status); }; } &&
8504
         { ac_try='test -s conftest$ac_exeext'
8505
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8506
  (eval $ac_try) 2>&5
8507
  ac_status=$?
8508
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509
  (exit $ac_status); }; }; then
8510
  XPCFLAGS=" -Wc,-pthread"
8511
else
8512
  echo "$as_me: failed program was:" >&5
8513
sed 's/^/| /' conftest.$ac_ext >&5
8514
 
8515
CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
8516
  cat >conftest.$ac_ext <<_ACEOF
8517
/* confdefs.h.  */
8518
_ACEOF
8519
cat confdefs.h >>conftest.$ac_ext
8520
cat >>conftest.$ac_ext <<_ACEOF
8521
/* end confdefs.h.  */
8522
#include 
8523
     void *g(void *d) { return NULL; }
8524
int
8525
main ()
8526
{
8527
pthread_t t; pthread_create(&t,NULL,g,NULL);
8528
  ;
8529
  return 0;
8530
}
8531
_ACEOF
8532
rm -f conftest.$ac_objext conftest$ac_exeext
8533
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8534
  (eval $ac_link) 2>conftest.er1
8535
  ac_status=$?
8536
  grep -v '^ *+' conftest.er1 >conftest.err
8537
  rm -f conftest.er1
8538
  cat conftest.err >&5
8539
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8540
  (exit $ac_status); } &&
8541
         { ac_try='test -z "$ac_c_werror_flag"
8542
                         || test ! -s conftest.err'
8543
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8544
  (eval $ac_try) 2>&5
8545
  ac_status=$?
8546
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547
  (exit $ac_status); }; } &&
8548
         { ac_try='test -s conftest$ac_exeext'
8549
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8550
  (eval $ac_try) 2>&5
8551
  ac_status=$?
8552
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553
  (exit $ac_status); }; }; then
8554
  :
8555
else
8556
  echo "$as_me: failed program was:" >&5
8557
sed 's/^/| /' conftest.$ac_ext >&5
8558
 
8559
{ { echo "$as_me:$LINENO: error: Pthreads are required to build libgomp" >&5
8560
echo "$as_me: error: Pthreads are required to build libgomp" >&2;}
8561
   { (exit 1); exit 1; }; }
8562
fi
8563
rm -f conftest.err conftest.$ac_objext \
8564
      conftest$ac_exeext conftest.$ac_ext
8565
fi
8566
rm -f conftest.err conftest.$ac_objext \
8567
      conftest$ac_exeext conftest.$ac_ext
8568
 
8569
# Check for functions needed.
8570
 
8571
 
8572
for ac_func in getloadavg clock_gettime
8573
do
8574
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8575
echo "$as_me:$LINENO: checking for $ac_func" >&5
8576
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8577
if eval "test \"\${$as_ac_var+set}\" = set"; then
8578
  echo $ECHO_N "(cached) $ECHO_C" >&6
8579
else
8580
  cat >conftest.$ac_ext <<_ACEOF
8581
/* confdefs.h.  */
8582
_ACEOF
8583
cat confdefs.h >>conftest.$ac_ext
8584
cat >>conftest.$ac_ext <<_ACEOF
8585
/* end confdefs.h.  */
8586
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
8587
   For example, HP-UX 11i  declares gettimeofday.  */
8588
#define $ac_func innocuous_$ac_func
8589
 
8590
/* System header to define __stub macros and hopefully few prototypes,
8591
    which can conflict with char $ac_func (); below.
8592
    Prefer  to  if __STDC__ is defined, since
8593
     exists even on freestanding compilers.  */
8594
 
8595
#ifdef __STDC__
8596
# include 
8597
#else
8598
# include 
8599
#endif
8600
 
8601
#undef $ac_func
8602
 
8603
/* Override any gcc2 internal prototype to avoid an error.  */
8604
#ifdef __cplusplus
8605
extern "C"
8606
{
8607
#endif
8608
/* We use char because int might match the return type of a gcc2
8609
   builtin and then its argument prototype would still apply.  */
8610
char $ac_func ();
8611
/* The GNU C library defines this for functions which it implements
8612
    to always fail with ENOSYS.  Some functions are actually named
8613
    something starting with __ and the normal name is an alias.  */
8614
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8615
choke me
8616
#else
8617
char (*f) () = $ac_func;
8618
#endif
8619
#ifdef __cplusplus
8620
}
8621
#endif
8622
 
8623
int
8624
main ()
8625
{
8626
return f != $ac_func;
8627
  ;
8628
  return 0;
8629
}
8630
_ACEOF
8631
rm -f conftest.$ac_objext conftest$ac_exeext
8632
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8633
  (eval $ac_link) 2>conftest.er1
8634
  ac_status=$?
8635
  grep -v '^ *+' conftest.er1 >conftest.err
8636
  rm -f conftest.er1
8637
  cat conftest.err >&5
8638
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639
  (exit $ac_status); } &&
8640
         { ac_try='test -z "$ac_c_werror_flag"
8641
                         || test ! -s conftest.err'
8642
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8643
  (eval $ac_try) 2>&5
8644
  ac_status=$?
8645
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8646
  (exit $ac_status); }; } &&
8647
         { ac_try='test -s conftest$ac_exeext'
8648
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8649
  (eval $ac_try) 2>&5
8650
  ac_status=$?
8651
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652
  (exit $ac_status); }; }; then
8653
  eval "$as_ac_var=yes"
8654
else
8655
  echo "$as_me: failed program was:" >&5
8656
sed 's/^/| /' conftest.$ac_ext >&5
8657
 
8658
eval "$as_ac_var=no"
8659
fi
8660
rm -f conftest.err conftest.$ac_objext \
8661
      conftest$ac_exeext conftest.$ac_ext
8662
fi
8663
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8664
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8665
if test `eval echo '${'$as_ac_var'}'` = yes; then
8666
  cat >>confdefs.h <<_ACEOF
8667
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8668
_ACEOF
8669
 
8670
fi
8671
done
8672
 
8673
 
8674
# Check for broken semaphore implementation on darwin.
8675
# sem_init returns: sem_init error: Function not implemented.
8676
case "$host" in
8677
  *-darwin*)
8678
 
8679
cat >>confdefs.h <<\_ACEOF
8680
#define HAVE_BROKEN_POSIX_SEMAPHORES 1
8681
_ACEOF
8682
 
8683
    ;;
8684
  *-linux*)
8685
    case "$enable_linux_futex" in
8686
      default)
8687
        # If headers don't have gettid/futex syscalls definition, then
8688
        # default to no, otherwise there will be compile time failures.
8689
        # Otherwise, default to yes.  If we don't detect we are
8690
        # compiled/linked against NPTL and not cross-compiling, check
8691
        # if programs are run by default against NPTL and if not, issue
8692
        # a warning.
8693
        enable_linux_futex=no
8694
        cat >conftest.$ac_ext <<_ACEOF
8695
/* confdefs.h.  */
8696
_ACEOF
8697
cat confdefs.h >>conftest.$ac_ext
8698
cat >>conftest.$ac_ext <<_ACEOF
8699
/* end confdefs.h.  */
8700
#include 
8701
           int lk;
8702
int
8703
main ()
8704
{
8705
syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
8706
  ;
8707
  return 0;
8708
}
8709
_ACEOF
8710
rm -f conftest.$ac_objext conftest$ac_exeext
8711
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8712
  (eval $ac_link) 2>conftest.er1
8713
  ac_status=$?
8714
  grep -v '^ *+' conftest.er1 >conftest.err
8715
  rm -f conftest.er1
8716
  cat conftest.err >&5
8717
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8718
  (exit $ac_status); } &&
8719
         { ac_try='test -z "$ac_c_werror_flag"
8720
                         || test ! -s conftest.err'
8721
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8722
  (eval $ac_try) 2>&5
8723
  ac_status=$?
8724
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725
  (exit $ac_status); }; } &&
8726
         { ac_try='test -s conftest$ac_exeext'
8727
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8728
  (eval $ac_try) 2>&5
8729
  ac_status=$?
8730
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8731
  (exit $ac_status); }; }; then
8732
  cat >conftest.$ac_ext <<_ACEOF
8733
/* confdefs.h.  */
8734
_ACEOF
8735
cat confdefs.h >>conftest.$ac_ext
8736
cat >>conftest.$ac_ext <<_ACEOF
8737
/* end confdefs.h.  */
8738
#ifndef _GNU_SOURCE
8739
             #define _GNU_SOURCE 1
8740
             #endif
8741
             #include 
8742
             pthread_t th; void *status;
8743
int
8744
main ()
8745
{
8746
pthread_tryjoin_np (th, &status);
8747
  ;
8748
  return 0;
8749
}
8750
_ACEOF
8751
rm -f conftest.$ac_objext conftest$ac_exeext
8752
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8753
  (eval $ac_link) 2>conftest.er1
8754
  ac_status=$?
8755
  grep -v '^ *+' conftest.er1 >conftest.err
8756
  rm -f conftest.er1
8757
  cat conftest.err >&5
8758
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759
  (exit $ac_status); } &&
8760
         { ac_try='test -z "$ac_c_werror_flag"
8761
                         || test ! -s conftest.err'
8762
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8763
  (eval $ac_try) 2>&5
8764
  ac_status=$?
8765
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8766
  (exit $ac_status); }; } &&
8767
         { ac_try='test -s conftest$ac_exeext'
8768
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8769
  (eval $ac_try) 2>&5
8770
  ac_status=$?
8771
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772
  (exit $ac_status); }; }; then
8773
  enable_linux_futex=yes
8774
else
8775
  echo "$as_me: failed program was:" >&5
8776
sed 's/^/| /' conftest.$ac_ext >&5
8777
 
8778
if test x$cross_compiling = xno; then
8779
               if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
8780
                  | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then
8781
                 { echo "$as_me:$LINENO: WARNING: The kernel might not support futex or gettid syscalls.
8782
If so, please configure with --disable-linux-futex" >&5
8783
echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
8784
If so, please configure with --disable-linux-futex" >&2;}
8785
               fi
8786
             fi
8787
             enable_linux_futex=yes
8788
fi
8789
rm -f conftest.err conftest.$ac_objext \
8790
      conftest$ac_exeext conftest.$ac_ext
8791
else
8792
  echo "$as_me: failed program was:" >&5
8793
sed 's/^/| /' conftest.$ac_ext >&5
8794
 
8795
fi
8796
rm -f conftest.err conftest.$ac_objext \
8797
      conftest$ac_exeext conftest.$ac_ext
8798
        ;;
8799
      yes)
8800
        cat >conftest.$ac_ext <<_ACEOF
8801
/* confdefs.h.  */
8802
_ACEOF
8803
cat confdefs.h >>conftest.$ac_ext
8804
cat >>conftest.$ac_ext <<_ACEOF
8805
/* end confdefs.h.  */
8806
#include 
8807
           int lk;
8808
int
8809
main ()
8810
{
8811
syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
8812
  ;
8813
  return 0;
8814
}
8815
_ACEOF
8816
rm -f conftest.$ac_objext conftest$ac_exeext
8817
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8818
  (eval $ac_link) 2>conftest.er1
8819
  ac_status=$?
8820
  grep -v '^ *+' conftest.er1 >conftest.err
8821
  rm -f conftest.er1
8822
  cat conftest.err >&5
8823
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8824
  (exit $ac_status); } &&
8825
         { ac_try='test -z "$ac_c_werror_flag"
8826
                         || test ! -s conftest.err'
8827
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8828
  (eval $ac_try) 2>&5
8829
  ac_status=$?
8830
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831
  (exit $ac_status); }; } &&
8832
         { ac_try='test -s conftest$ac_exeext'
8833
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8834
  (eval $ac_try) 2>&5
8835
  ac_status=$?
8836
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837
  (exit $ac_status); }; }; then
8838
  :
8839
else
8840
  echo "$as_me: failed program was:" >&5
8841
sed 's/^/| /' conftest.$ac_ext >&5
8842
 
8843
{ { echo "$as_me:$LINENO: error: SYS_gettid and SYS_futex required for --enable-linux-futex" >&5
8844
echo "$as_me: error: SYS_gettid and SYS_futex required for --enable-linux-futex" >&2;}
8845
   { (exit 1); exit 1; }; }
8846
fi
8847
rm -f conftest.err conftest.$ac_objext \
8848
      conftest$ac_exeext conftest.$ac_ext
8849
        ;;
8850
    esac
8851
    ;;
8852
esac
8853
 
8854
# At least for glibc, clock_gettime is in librt.  But don't pull that
8855
# in if it still doesn't give us the function we want.
8856
if test $ac_cv_func_clock_gettime = no; then
8857
  echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
8858
echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
8859
if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
8860
  echo $ECHO_N "(cached) $ECHO_C" >&6
8861
else
8862
  ac_check_lib_save_LIBS=$LIBS
8863
LIBS="-lrt  $LIBS"
8864
cat >conftest.$ac_ext <<_ACEOF
8865
/* confdefs.h.  */
8866
_ACEOF
8867
cat confdefs.h >>conftest.$ac_ext
8868
cat >>conftest.$ac_ext <<_ACEOF
8869
/* end confdefs.h.  */
8870
 
8871
/* Override any gcc2 internal prototype to avoid an error.  */
8872
#ifdef __cplusplus
8873
extern "C"
8874
#endif
8875
/* We use char because int might match the return type of a gcc2
8876
   builtin and then its argument prototype would still apply.  */
8877
char clock_gettime ();
8878
int
8879
main ()
8880
{
8881
clock_gettime ();
8882
  ;
8883
  return 0;
8884
}
8885
_ACEOF
8886
rm -f conftest.$ac_objext conftest$ac_exeext
8887
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8888
  (eval $ac_link) 2>conftest.er1
8889
  ac_status=$?
8890
  grep -v '^ *+' conftest.er1 >conftest.err
8891
  rm -f conftest.er1
8892
  cat conftest.err >&5
8893
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8894
  (exit $ac_status); } &&
8895
         { ac_try='test -z "$ac_c_werror_flag"
8896
                         || test ! -s conftest.err'
8897
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8898
  (eval $ac_try) 2>&5
8899
  ac_status=$?
8900
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901
  (exit $ac_status); }; } &&
8902
         { ac_try='test -s conftest$ac_exeext'
8903
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8904
  (eval $ac_try) 2>&5
8905
  ac_status=$?
8906
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907
  (exit $ac_status); }; }; then
8908
  ac_cv_lib_rt_clock_gettime=yes
8909
else
8910
  echo "$as_me: failed program was:" >&5
8911
sed 's/^/| /' conftest.$ac_ext >&5
8912
 
8913
ac_cv_lib_rt_clock_gettime=no
8914
fi
8915
rm -f conftest.err conftest.$ac_objext \
8916
      conftest$ac_exeext conftest.$ac_ext
8917
LIBS=$ac_check_lib_save_LIBS
8918
fi
8919
echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
8920
echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
8921
if test $ac_cv_lib_rt_clock_gettime = yes; then
8922
  LIBS="-lrt $LIBS"
8923
 
8924
cat >>confdefs.h <<\_ACEOF
8925
#define HAVE_CLOCK_GETTIME 1
8926
_ACEOF
8927
 
8928
fi
8929
 
8930
fi
8931
 
8932
# See if we support thread-local storage.
8933
 
8934
   # Check whether --enable-tls or --disable-tls was given.
8935
if test "${enable_tls+set}" = set; then
8936
  enableval="$enable_tls"
8937
 
8938
      case "$enableval" in
8939
       yes|no) ;;
8940
       *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
8941
echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
8942
   { (exit 1); exit 1; }; } ;;
8943
      esac
8944
 
8945
else
8946
  enable_tls=yes
8947
fi;
8948
 
8949
  echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
8950
echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
8951
if test "${have_tls+set}" = set; then
8952
  echo $ECHO_N "(cached) $ECHO_C" >&6
8953
else
8954
 
8955
    if test "$cross_compiling" = yes; then
8956
  cat >conftest.$ac_ext <<_ACEOF
8957
__thread int foo;
8958
_ACEOF
8959
rm -f conftest.$ac_objext
8960
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8961
  (eval $ac_compile) 2>conftest.er1
8962
  ac_status=$?
8963
  grep -v '^ *+' conftest.er1 >conftest.err
8964
  rm -f conftest.er1
8965
  cat conftest.err >&5
8966
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967
  (exit $ac_status); } &&
8968
         { ac_try='test -z "$ac_c_werror_flag"
8969
                         || test ! -s conftest.err'
8970
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8971
  (eval $ac_try) 2>&5
8972
  ac_status=$?
8973
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8974
  (exit $ac_status); }; } &&
8975
         { ac_try='test -s conftest.$ac_objext'
8976
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8977
  (eval $ac_try) 2>&5
8978
  ac_status=$?
8979
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980
  (exit $ac_status); }; }; then
8981
  have_tls=yes
8982
else
8983
  echo "$as_me: failed program was:" >&5
8984
sed 's/^/| /' conftest.$ac_ext >&5
8985
 
8986
have_tls=no
8987
fi
8988
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8989
 
8990
else
8991
  cat >conftest.$ac_ext <<_ACEOF
8992
__thread int a; int b; int main() { return a = b; }
8993
_ACEOF
8994
rm -f conftest$ac_exeext
8995
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8996
  (eval $ac_link) 2>&5
8997
  ac_status=$?
8998
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8999
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9000
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9001
  (eval $ac_try) 2>&5
9002
  ac_status=$?
9003
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9004
  (exit $ac_status); }; }; then
9005
                      save_LDFLAGS="$LDFLAGS"
9006
      LDFLAGS="-static $LDFLAGS"
9007
      cat >conftest.$ac_ext <<_ACEOF
9008
int main() { return 0; }
9009
_ACEOF
9010
rm -f conftest.$ac_objext conftest$ac_exeext
9011
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9012
  (eval $ac_link) 2>conftest.er1
9013
  ac_status=$?
9014
  grep -v '^ *+' conftest.er1 >conftest.err
9015
  rm -f conftest.er1
9016
  cat conftest.err >&5
9017
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9018
  (exit $ac_status); } &&
9019
         { ac_try='test -z "$ac_c_werror_flag"
9020
                         || test ! -s conftest.err'
9021
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9022
  (eval $ac_try) 2>&5
9023
  ac_status=$?
9024
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9025
  (exit $ac_status); }; } &&
9026
         { ac_try='test -s conftest$ac_exeext'
9027
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9028
  (eval $ac_try) 2>&5
9029
  ac_status=$?
9030
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9031
  (exit $ac_status); }; }; then
9032
  if test "$cross_compiling" = yes; then
9033
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9034
See \`config.log' for more details." >&5
9035
echo "$as_me: error: cannot run test program while cross compiling
9036
See \`config.log' for more details." >&2;}
9037
   { (exit 1); exit 1; }; }
9038
else
9039
  cat >conftest.$ac_ext <<_ACEOF
9040
__thread int a; int b; int main() { return a = b; }
9041
_ACEOF
9042
rm -f conftest$ac_exeext
9043
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9044
  (eval $ac_link) 2>&5
9045
  ac_status=$?
9046
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9047
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9048
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9049
  (eval $ac_try) 2>&5
9050
  ac_status=$?
9051
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052
  (exit $ac_status); }; }; then
9053
  have_tls=yes
9054
else
9055
  echo "$as_me: program exited with status $ac_status" >&5
9056
echo "$as_me: failed program was:" >&5
9057
sed 's/^/| /' conftest.$ac_ext >&5
9058
 
9059
( exit $ac_status )
9060
have_tls=no
9061
fi
9062
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9063
fi
9064
else
9065
  echo "$as_me: failed program was:" >&5
9066
sed 's/^/| /' conftest.$ac_ext >&5
9067
 
9068
have_tls=yes
9069
fi
9070
rm -f conftest.err conftest.$ac_objext \
9071
      conftest$ac_exeext conftest.$ac_ext
9072
      LDFLAGS="$save_LDFLAGS"
9073
else
9074
  echo "$as_me: program exited with status $ac_status" >&5
9075
echo "$as_me: failed program was:" >&5
9076
sed 's/^/| /' conftest.$ac_ext >&5
9077
 
9078
( exit $ac_status )
9079
have_tls=no
9080
fi
9081
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9082
fi
9083
fi
9084
echo "$as_me:$LINENO: result: $have_tls" >&5
9085
echo "${ECHO_T}$have_tls" >&6
9086
  if test "$enable_tls $have_tls" = "yes yes"; then
9087
 
9088
cat >>confdefs.h <<\_ACEOF
9089
#define HAVE_TLS 1
9090
_ACEOF
9091
 
9092
  fi
9093
 
9094
# See what sort of export controls are availible.
9095
 
9096
  echo "$as_me:$LINENO: checking whether the target supports hidden visibility" >&5
9097
echo $ECHO_N "checking whether the target supports hidden visibility... $ECHO_C" >&6
9098
if test "${have_attribute_visibility+set}" = set; then
9099
  echo $ECHO_N "(cached) $ECHO_C" >&6
9100
else
9101
 
9102
  save_CFLAGS="$CFLAGS"
9103
  CFLAGS="$CFLAGS -Werror"
9104
  cat >conftest.$ac_ext <<_ACEOF
9105
/* confdefs.h.  */
9106
_ACEOF
9107
cat confdefs.h >>conftest.$ac_ext
9108
cat >>conftest.$ac_ext <<_ACEOF
9109
/* end confdefs.h.  */
9110
void __attribute__((visibility("hidden"))) foo(void) { }
9111
int
9112
main ()
9113
{
9114
 
9115
  ;
9116
  return 0;
9117
}
9118
_ACEOF
9119
rm -f conftest.$ac_objext
9120
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9121
  (eval $ac_compile) 2>conftest.er1
9122
  ac_status=$?
9123
  grep -v '^ *+' conftest.er1 >conftest.err
9124
  rm -f conftest.er1
9125
  cat conftest.err >&5
9126
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9127
  (exit $ac_status); } &&
9128
         { ac_try='test -z "$ac_c_werror_flag"
9129
                         || test ! -s conftest.err'
9130
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9131
  (eval $ac_try) 2>&5
9132
  ac_status=$?
9133
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134
  (exit $ac_status); }; } &&
9135
         { ac_try='test -s conftest.$ac_objext'
9136
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9137
  (eval $ac_try) 2>&5
9138
  ac_status=$?
9139
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140
  (exit $ac_status); }; }; then
9141
  have_attribute_visibility=yes
9142
else
9143
  echo "$as_me: failed program was:" >&5
9144
sed 's/^/| /' conftest.$ac_ext >&5
9145
 
9146
have_attribute_visibility=no
9147
fi
9148
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9149
  CFLAGS="$save_CFLAGS"
9150
fi
9151
echo "$as_me:$LINENO: result: $have_attribute_visibility" >&5
9152
echo "${ECHO_T}$have_attribute_visibility" >&6
9153
  if test $have_attribute_visibility = yes; then
9154
 
9155
cat >>confdefs.h <<\_ACEOF
9156
#define HAVE_ATTRIBUTE_VISIBILITY 1
9157
_ACEOF
9158
 
9159
  fi
9160
 
9161
  echo "$as_me:$LINENO: checking whether the target supports dllexport" >&5
9162
echo $ECHO_N "checking whether the target supports dllexport... $ECHO_C" >&6
9163
if test "${have_attribute_dllexport+set}" = set; then
9164
  echo $ECHO_N "(cached) $ECHO_C" >&6
9165
else
9166
 
9167
  save_CFLAGS="$CFLAGS"
9168
  CFLAGS="$CFLAGS -Werror"
9169
  cat >conftest.$ac_ext <<_ACEOF
9170
/* confdefs.h.  */
9171
_ACEOF
9172
cat confdefs.h >>conftest.$ac_ext
9173
cat >>conftest.$ac_ext <<_ACEOF
9174
/* end confdefs.h.  */
9175
void __attribute__((dllexport)) foo(void) { }
9176
int
9177
main ()
9178
{
9179
 
9180
  ;
9181
  return 0;
9182
}
9183
_ACEOF
9184
rm -f conftest.$ac_objext
9185
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9186
  (eval $ac_compile) 2>conftest.er1
9187
  ac_status=$?
9188
  grep -v '^ *+' conftest.er1 >conftest.err
9189
  rm -f conftest.er1
9190
  cat conftest.err >&5
9191
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192
  (exit $ac_status); } &&
9193
         { ac_try='test -z "$ac_c_werror_flag"
9194
                         || test ! -s conftest.err'
9195
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9196
  (eval $ac_try) 2>&5
9197
  ac_status=$?
9198
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9199
  (exit $ac_status); }; } &&
9200
         { ac_try='test -s conftest.$ac_objext'
9201
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9202
  (eval $ac_try) 2>&5
9203
  ac_status=$?
9204
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9205
  (exit $ac_status); }; }; then
9206
  have_attribute_dllexport=yes
9207
else
9208
  echo "$as_me: failed program was:" >&5
9209
sed 's/^/| /' conftest.$ac_ext >&5
9210
 
9211
have_attribute_dllexport=no
9212
fi
9213
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9214
  CFLAGS="$save_CFLAGS"
9215
fi
9216
echo "$as_me:$LINENO: result: $have_attribute_dllexport" >&5
9217
echo "${ECHO_T}$have_attribute_dllexport" >&6
9218
  if test $have_attribute_dllexport = yes; then
9219
 
9220
cat >>confdefs.h <<\_ACEOF
9221
#define HAVE_ATTRIBUTE_DLLEXPORT 1
9222
_ACEOF
9223
 
9224
  fi
9225
 
9226
  echo "$as_me:$LINENO: checking whether the target supports symbol aliases" >&5
9227
echo $ECHO_N "checking whether the target supports symbol aliases... $ECHO_C" >&6
9228
if test "${have_attribute_alias+set}" = set; then
9229
  echo $ECHO_N "(cached) $ECHO_C" >&6
9230
else
9231
 
9232
  cat >conftest.$ac_ext <<_ACEOF
9233
/* confdefs.h.  */
9234
_ACEOF
9235
cat confdefs.h >>conftest.$ac_ext
9236
cat >>conftest.$ac_ext <<_ACEOF
9237
/* end confdefs.h.  */
9238
 
9239
void foo(void) { }
9240
extern void bar(void) __attribute__((alias("foo")));
9241
int
9242
main ()
9243
{
9244
bar();
9245
  ;
9246
  return 0;
9247
}
9248
_ACEOF
9249
rm -f conftest.$ac_objext conftest$ac_exeext
9250
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9251
  (eval $ac_link) 2>conftest.er1
9252
  ac_status=$?
9253
  grep -v '^ *+' conftest.er1 >conftest.err
9254
  rm -f conftest.er1
9255
  cat conftest.err >&5
9256
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257
  (exit $ac_status); } &&
9258
         { ac_try='test -z "$ac_c_werror_flag"
9259
                         || test ! -s conftest.err'
9260
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9261
  (eval $ac_try) 2>&5
9262
  ac_status=$?
9263
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9264
  (exit $ac_status); }; } &&
9265
         { ac_try='test -s conftest$ac_exeext'
9266
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9267
  (eval $ac_try) 2>&5
9268
  ac_status=$?
9269
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9270
  (exit $ac_status); }; }; then
9271
  have_attribute_alias=yes
9272
else
9273
  echo "$as_me: failed program was:" >&5
9274
sed 's/^/| /' conftest.$ac_ext >&5
9275
 
9276
have_attribute_alias=no
9277
fi
9278
rm -f conftest.err conftest.$ac_objext \
9279
      conftest$ac_exeext conftest.$ac_ext
9280
fi
9281
echo "$as_me:$LINENO: result: $have_attribute_alias" >&5
9282
echo "${ECHO_T}$have_attribute_alias" >&6
9283
  if test $have_attribute_alias = yes; then
9284
 
9285
cat >>confdefs.h <<\_ACEOF
9286
#define HAVE_ATTRIBUTE_ALIAS 1
9287
_ACEOF
9288
 
9289
  fi
9290
 
9291
  # If we're not using GNU ld, then there's no point in even trying these
9292
  # tests.  Check for that first.  We should have already tested for gld
9293
  # by now (in libtool), but require it now just to be safe...
9294
  test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
9295
  test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
9296
 
9297
 
9298
 
9299
  # The name set by libtool depends on the version of libtool.  Shame on us
9300
  # for depending on an impl detail, but c'est la vie.  Older versions used
9301
  # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
9302
  # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
9303
  # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
9304
  # set (hence we're using an older libtool), then set it.
9305
  if test x${with_gnu_ld+set} != xset; then
9306
    if test x${ac_cv_prog_gnu_ld+set} != xset; then
9307
      # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
9308
      with_gnu_ld=no
9309
    else
9310
      with_gnu_ld=$ac_cv_prog_gnu_ld
9311
    fi
9312
  fi
9313
 
9314
  # Start by getting the version number.  I think the libtool test already
9315
  # does some of this, but throws away the result.
9316
 
9317
  ldver=`$LD --version 2>/dev/null | head -1 | \
9318
         sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
9319
 
9320
  libgomp_gnu_ld_version=`echo $ldver | \
9321
         $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
9322
 
9323
  # Set --gc-sections.
9324
  if test "$with_gnu_ld" = "notbroken"; then
9325
    # GNU ld it is!  Joy and bunny rabbits!
9326
 
9327
    # All these tests are for C++; save the language and the compiler flags.
9328
    # Need to do this so that g++ won't try to link in libstdc++
9329
    ac_test_CFLAGS="${CFLAGS+set}"
9330
    ac_save_CFLAGS="$CFLAGS"
9331
    CFLAGS='-x c++  -Wl,--gc-sections'
9332
 
9333
    # Check for -Wl,--gc-sections
9334
    # XXX This test is broken at the moment, as symbols required for linking
9335
    # are now in libsupc++ (not built yet).  In addition, this test has
9336
    # cored on solaris in the past.  In addition, --gc-sections doesn't
9337
    # really work at the moment (keeps on discarding used sections, first
9338
    # .eh_frame and now some of the glibc sections for iconv).
9339
    # Bzzzzt.  Thanks for playing, maybe next time.
9340
    echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
9341
echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
9342
    if test "$cross_compiling" = yes; then
9343
  ac_sectionLDflags=yes
9344
else
9345
  cat >conftest.$ac_ext <<_ACEOF
9346
/* confdefs.h.  */
9347
_ACEOF
9348
cat confdefs.h >>conftest.$ac_ext
9349
cat >>conftest.$ac_ext <<_ACEOF
9350
/* end confdefs.h.  */
9351
 
9352
     int main(void)
9353
     {
9354
       try { throw 1; }
9355
       catch (...) { };
9356
       return 0;
9357
     }
9358
 
9359
_ACEOF
9360
rm -f conftest$ac_exeext
9361
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9362
  (eval $ac_link) 2>&5
9363
  ac_status=$?
9364
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9365
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9366
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9367
  (eval $ac_try) 2>&5
9368
  ac_status=$?
9369
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370
  (exit $ac_status); }; }; then
9371
  ac_sectionLDflags=yes
9372
else
9373
  echo "$as_me: program exited with status $ac_status" >&5
9374
echo "$as_me: failed program was:" >&5
9375
sed 's/^/| /' conftest.$ac_ext >&5
9376
 
9377
( exit $ac_status )
9378
ac_sectionLDflags=no
9379
fi
9380
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9381
fi
9382
    if test "$ac_test_CFLAGS" = set; then
9383
      CFLAGS="$ac_save_CFLAGS"
9384
    else
9385
      # this is the suspicious part
9386
      CFLAGS=''
9387
    fi
9388
    if test "$ac_sectionLDflags" = "yes"; then
9389
      SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
9390
    fi
9391
    echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
9392
echo "${ECHO_T}$ac_sectionLDflags" >&6
9393
  fi
9394
 
9395
  # Set linker optimization flags.
9396
  if test x"$with_gnu_ld" = x"yes"; then
9397
    OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
9398
  fi
9399
 
9400
 
9401
 
9402
 
9403
 
9404
 
9405
 # Check whether --enable-symvers or --disable-symvers was given.
9406
if test "${enable_symvers+set}" = set; then
9407
  enableval="$enable_symvers"
9408
 
9409
      case "$enableval" in
9410
       yes|no|gnu) ;;
9411
       *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable symvers" >&5
9412
echo "$as_me: error: Unknown argument to enable/disable symvers" >&2;}
9413
   { (exit 1); exit 1; }; } ;;
9414
                          esac
9415
 
9416
else
9417
  enable_symvers=yes
9418
fi;
9419
 
9420
 
9421
# If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
9422
# don't know enough about $LD to do tricks...
9423
 
9424
# FIXME  The following test is too strict, in theory.
9425
if test $enable_shared = no ||
9426
        test "x$LD" = x ||
9427
        test x$libgomp_gnu_ld_version = x; then
9428
  enable_symvers=no
9429
fi
9430
 
9431
# Check to see if libgcc_s exists, indicating that shared libgcc is possible.
9432
if test $enable_symvers != no; then
9433
  echo "$as_me:$LINENO: checking for shared libgcc" >&5
9434
echo $ECHO_N "checking for shared libgcc... $ECHO_C" >&6
9435
  ac_save_CFLAGS="$CFLAGS"
9436
  CFLAGS=' -lgcc_s'
9437
  cat >conftest.$ac_ext <<_ACEOF
9438
/* confdefs.h.  */
9439
_ACEOF
9440
cat confdefs.h >>conftest.$ac_ext
9441
cat >>conftest.$ac_ext <<_ACEOF
9442
/* end confdefs.h.  */
9443
 
9444
int
9445
main ()
9446
{
9447
return 0;
9448
  ;
9449
  return 0;
9450
}
9451
_ACEOF
9452
rm -f conftest.$ac_objext conftest$ac_exeext
9453
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9454
  (eval $ac_link) 2>conftest.er1
9455
  ac_status=$?
9456
  grep -v '^ *+' conftest.er1 >conftest.err
9457
  rm -f conftest.er1
9458
  cat conftest.err >&5
9459
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9460
  (exit $ac_status); } &&
9461
         { ac_try='test -z "$ac_c_werror_flag"
9462
                         || test ! -s conftest.err'
9463
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9464
  (eval $ac_try) 2>&5
9465
  ac_status=$?
9466
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9467
  (exit $ac_status); }; } &&
9468
         { ac_try='test -s conftest$ac_exeext'
9469
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9470
  (eval $ac_try) 2>&5
9471
  ac_status=$?
9472
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9473
  (exit $ac_status); }; }; then
9474
  libgomp_shared_libgcc=yes
9475
else
9476
  echo "$as_me: failed program was:" >&5
9477
sed 's/^/| /' conftest.$ac_ext >&5
9478
 
9479
libgomp_shared_libgcc=no
9480
fi
9481
rm -f conftest.err conftest.$ac_objext \
9482
      conftest$ac_exeext conftest.$ac_ext
9483
  CFLAGS="$ac_save_CFLAGS"
9484
  if test $libgomp_shared_libgcc = no; then
9485
    cat > conftest.c <
9486
int main (void) { return 0; }
9487
EOF
9488
    libgomp_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
9489
                             -shared -shared-libgcc -o conftest.so \
9490
                             conftest.c -v 2>&1 >/dev/null \
9491
                             | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
9492
    rm -f conftest.c conftest.so
9493
    if test x${libgomp_libgcc_s_suffix+set} = xset; then
9494
      CFLAGS=" -lgcc_s$libgomp_libgcc_s_suffix"
9495
      cat >conftest.$ac_ext <<_ACEOF
9496
/* confdefs.h.  */
9497
_ACEOF
9498
cat confdefs.h >>conftest.$ac_ext
9499
cat >>conftest.$ac_ext <<_ACEOF
9500
/* end confdefs.h.  */
9501
 
9502
int
9503
main ()
9504
{
9505
return 0;
9506
  ;
9507
  return 0;
9508
}
9509
_ACEOF
9510
rm -f conftest.$ac_objext conftest$ac_exeext
9511
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9512
  (eval $ac_link) 2>conftest.er1
9513
  ac_status=$?
9514
  grep -v '^ *+' conftest.er1 >conftest.err
9515
  rm -f conftest.er1
9516
  cat conftest.err >&5
9517
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9518
  (exit $ac_status); } &&
9519
         { ac_try='test -z "$ac_c_werror_flag"
9520
                         || test ! -s conftest.err'
9521
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9522
  (eval $ac_try) 2>&5
9523
  ac_status=$?
9524
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9525
  (exit $ac_status); }; } &&
9526
         { ac_try='test -s conftest$ac_exeext'
9527
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9528
  (eval $ac_try) 2>&5
9529
  ac_status=$?
9530
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9531
  (exit $ac_status); }; }; then
9532
  libgomp_shared_libgcc=yes
9533
else
9534
  echo "$as_me: failed program was:" >&5
9535
sed 's/^/| /' conftest.$ac_ext >&5
9536
 
9537
fi
9538
rm -f conftest.err conftest.$ac_objext \
9539
      conftest$ac_exeext conftest.$ac_ext
9540
      CFLAGS="$ac_save_CFLAGS"
9541
    fi
9542
  fi
9543
  echo "$as_me:$LINENO: result: $libgomp_shared_libgcc" >&5
9544
echo "${ECHO_T}$libgomp_shared_libgcc" >&6
9545
fi
9546
 
9547
# For GNU ld, we need at least this version.  The format is described in
9548
# LIBGOMP_CHECK_LINKER_FEATURES above.
9549
libgomp_min_gnu_ld_version=21400
9550
# XXXXXXXXXXX libgomp_gnu_ld_version=21390
9551
 
9552
# Check to see if unspecified "yes" value can win, given results above.
9553
# Change "yes" into either "no" or a style name.
9554
if test $enable_symvers = yes; then
9555
  if test $with_gnu_ld = yes &&
9556
     test $libgomp_shared_libgcc = yes;
9557
  then
9558
    if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
9559
      enable_symvers=gnu
9560
    else
9561
      # The right tools, the right setup, but too old.  Fallbacks?
9562
      { echo "$as_me:$LINENO: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
9563
echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
9564
      { echo "$as_me:$LINENO: WARNING: === full symbol versioning support in this release of GCC." >&5
9565
echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
9566
      { echo "$as_me:$LINENO: WARNING: === You would need to upgrade your binutils to version" >&5
9567
echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
9568
      { echo "$as_me:$LINENO: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
9569
echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
9570
      if test $libgomp_gnu_ld_version -ge 21200 ; then
9571
        # Globbing fix is present, proper block support is not.
9572
                        { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
9573
echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
9574
        enable_symvers=no
9575
      else
9576
        # 2.11 or older.
9577
        { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
9578
echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
9579
        enable_symvers=no
9580
      fi
9581
    fi
9582
  else
9583
    # just fail for now
9584
    { echo "$as_me:$LINENO: WARNING: === You have requested some kind of symbol versioning, but" >&5
9585
echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
9586
    { echo "$as_me:$LINENO: WARNING: === either you are not using a supported linker, or you are" >&5
9587
echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
9588
    { echo "$as_me:$LINENO: WARNING: === not building a shared libgcc_s (which is required)." >&5
9589
echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
9590
    { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
9591
echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
9592
    enable_symvers=no
9593
  fi
9594
fi
9595
 
9596
 
9597
 
9598
if test $enable_symvers != no; then
9599
  LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE=
9600
  LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='#'
9601
else
9602
  LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#'
9603
  LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE=
9604
fi
9605
 
9606
{ echo "$as_me:$LINENO: versioning on shared library symbols is $enable_symvers" >&5
9607
echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
9608
 
9609
 
9610
# Get target configury.
9611
. ${srcdir}/configure.tgt
9612
CFLAGS="$save_CFLAGS $XCFLAGS"
9613
 
9614
# Check for __sync_val_compare_and_swap, but only after the target has
9615
# had a chance to set XCFLAGS.
9616
 
9617
  echo "$as_me:$LINENO: checking whether the target supports __sync_*_compare_and_swap" >&5
9618
echo $ECHO_N "checking whether the target supports __sync_*_compare_and_swap... $ECHO_C" >&6
9619
if test "${have_sync_builtins+set}" = set; then
9620
  echo $ECHO_N "(cached) $ECHO_C" >&6
9621
else
9622
 
9623
  cat >conftest.$ac_ext <<_ACEOF
9624
/* confdefs.h.  */
9625
_ACEOF
9626
cat confdefs.h >>conftest.$ac_ext
9627
cat >>conftest.$ac_ext <<_ACEOF
9628
/* end confdefs.h.  */
9629
 
9630
int
9631
main ()
9632
{
9633
int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
9634
  ;
9635
  return 0;
9636
}
9637
_ACEOF
9638
rm -f conftest.$ac_objext conftest$ac_exeext
9639
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9640
  (eval $ac_link) 2>conftest.er1
9641
  ac_status=$?
9642
  grep -v '^ *+' conftest.er1 >conftest.err
9643
  rm -f conftest.er1
9644
  cat conftest.err >&5
9645
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9646
  (exit $ac_status); } &&
9647
         { ac_try='test -z "$ac_c_werror_flag"
9648
                         || test ! -s conftest.err'
9649
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9650
  (eval $ac_try) 2>&5
9651
  ac_status=$?
9652
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9653
  (exit $ac_status); }; } &&
9654
         { ac_try='test -s conftest$ac_exeext'
9655
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9656
  (eval $ac_try) 2>&5
9657
  ac_status=$?
9658
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9659
  (exit $ac_status); }; }; then
9660
  have_sync_builtins=yes
9661
else
9662
  echo "$as_me: failed program was:" >&5
9663
sed 's/^/| /' conftest.$ac_ext >&5
9664
 
9665
have_sync_builtins=no
9666
fi
9667
rm -f conftest.err conftest.$ac_objext \
9668
      conftest$ac_exeext conftest.$ac_ext
9669
fi
9670
echo "$as_me:$LINENO: result: $have_sync_builtins" >&5
9671
echo "${ECHO_T}$have_sync_builtins" >&6
9672
  if test $have_sync_builtins = yes; then
9673
 
9674
cat >>confdefs.h <<\_ACEOF
9675
#define HAVE_SYNC_BUILTINS 1
9676
_ACEOF
9677
 
9678
  fi
9679
 
9680
XCFLAGS="$XCFLAGS$XPCFLAGS"
9681
 
9682
 
9683
 
9684
 
9685
 
9686
# Cleanup and exit.
9687
CFLAGS="$save_CFLAGS"
9688
cat >confcache <<\_ACEOF
9689
# This file is a shell script that caches the results of configure
9690
# tests run on this system so they can be shared between configure
9691
# scripts and configure runs, see configure's option --config-cache.
9692
# It is not useful on other systems.  If it contains results you don't
9693
# want to keep, you may remove or edit it.
9694
#
9695
# config.status only pays attention to the cache file if you give it
9696
# the --recheck option to rerun configure.
9697
#
9698
# `ac_cv_env_foo' variables (set or unset) will be overridden when
9699
# loading this file, other *unset* `ac_cv_foo' will be assigned the
9700
# following values.
9701
 
9702
_ACEOF
9703
 
9704
# The following way of writing the cache mishandles newlines in values,
9705
# but we know of no workaround that is simple, portable, and efficient.
9706
# So, don't put newlines in cache variables' values.
9707
# Ultrix sh set writes to stderr and can't be redirected directly,
9708
# and sets the high bit in the cache file unless we assign to the vars.
9709
{
9710
  (set) 2>&1 |
9711
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
9712
    *ac_space=\ *)
9713
      # `set' does not quote correctly, so add quotes (double-quote
9714
      # substitution turns \\\\ into \\, and sed turns \\ into \).
9715
      sed -n \
9716
        "s/'/'\\\\''/g;
9717
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9718
      ;;
9719
    *)
9720
      # `set' quotes correctly as required by POSIX, so do not add quotes.
9721
      sed -n \
9722
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9723
      ;;
9724
    esac;
9725
} |
9726
  sed '
9727
     t clear
9728
     : clear
9729
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9730
     t end
9731
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9732
     : end' >>confcache
9733
if diff $cache_file confcache >/dev/null 2>&1; then :; else
9734
  if test -w $cache_file; then
9735
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9736
    cat confcache >$cache_file
9737
  else
9738
    echo "not updating unwritable cache $cache_file"
9739
  fi
9740
fi
9741
rm -f confcache
9742
 
9743
if test ${multilib} = yes; then
9744
  multilib_arg="--enable-multilib"
9745
else
9746
  multilib_arg=
9747
fi
9748
 
9749
# Set up the set of libraries that we need to link against for libgomp.
9750
# Note that the GOMP_SELF_SPEC in gcc.c will force -pthread for -fopenmp,
9751
# which will force linkage against -lpthread (or equivalent for the system).
9752
# That's not 100% ideal, but about the best we can do easily.
9753
if test $enable_shared = yes; then
9754
  link_gomp="-lgomp %{static: $LIBS}"
9755
else
9756
  link_gomp="-lgomp $LIBS"
9757
fi
9758
 
9759
 
9760
 
9761
 
9762
if test "$ac_cv_fc_compiler_gnu" = yes; then
9763
  USE_FORTRAN_TRUE=
9764
  USE_FORTRAN_FALSE='#'
9765
else
9766
  USE_FORTRAN_TRUE='#'
9767
  USE_FORTRAN_FALSE=
9768
fi
9769
 
9770
 
9771
# ??? 2006-01-24: Paulo committed to asking autoconf folk to document
9772
# and export AC_COMPUTE_INT.  If that happens, then we'll need to remove
9773
# the underscore here and update the PREREQ.  If it doesn't, then we'll
9774
# need to copy this macro to our acinclude.m4.
9775
save_CFLAGS="$CFLAGS"
9776
for i in $config_path; do
9777
  if test -f $srcdir/config/$i/omp-lock.h; then
9778
    CFLAGS="$CFLAGS -include $srcdir/config/$i/omp-lock.h"
9779
    break
9780
  fi
9781
done
9782
 
9783
if test "$cross_compiling" = yes; then
9784
  # Depending upon the size, compute the lo and hi bounds.
9785
cat >conftest.$ac_ext <<_ACEOF
9786
/* confdefs.h.  */
9787
_ACEOF
9788
cat confdefs.h >>conftest.$ac_ext
9789
cat >>conftest.$ac_ext <<_ACEOF
9790
/* end confdefs.h.  */
9791
 
9792
int
9793
main ()
9794
{
9795
static int test_array [1 - 2 * !((sizeof (omp_lock_t)) >= 0)];
9796
test_array [0] = 0
9797
 
9798
  ;
9799
  return 0;
9800
}
9801
_ACEOF
9802
rm -f conftest.$ac_objext
9803
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9804
  (eval $ac_compile) 2>conftest.er1
9805
  ac_status=$?
9806
  grep -v '^ *+' conftest.er1 >conftest.err
9807
  rm -f conftest.er1
9808
  cat conftest.err >&5
9809
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9810
  (exit $ac_status); } &&
9811
         { ac_try='test -z "$ac_c_werror_flag"
9812
                         || test ! -s conftest.err'
9813
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9814
  (eval $ac_try) 2>&5
9815
  ac_status=$?
9816
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9817
  (exit $ac_status); }; } &&
9818
         { ac_try='test -s conftest.$ac_objext'
9819
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9820
  (eval $ac_try) 2>&5
9821
  ac_status=$?
9822
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9823
  (exit $ac_status); }; }; then
9824
  ac_lo=0 ac_mid=0
9825
  while :; do
9826
    cat >conftest.$ac_ext <<_ACEOF
9827
/* confdefs.h.  */
9828
_ACEOF
9829
cat confdefs.h >>conftest.$ac_ext
9830
cat >>conftest.$ac_ext <<_ACEOF
9831
/* end confdefs.h.  */
9832
 
9833
int
9834
main ()
9835
{
9836
static int test_array [1 - 2 * !((sizeof (omp_lock_t)) <= $ac_mid)];
9837
test_array [0] = 0
9838
 
9839
  ;
9840
  return 0;
9841
}
9842
_ACEOF
9843
rm -f conftest.$ac_objext
9844
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9845
  (eval $ac_compile) 2>conftest.er1
9846
  ac_status=$?
9847
  grep -v '^ *+' conftest.er1 >conftest.err
9848
  rm -f conftest.er1
9849
  cat conftest.err >&5
9850
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851
  (exit $ac_status); } &&
9852
         { ac_try='test -z "$ac_c_werror_flag"
9853
                         || test ! -s conftest.err'
9854
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9855
  (eval $ac_try) 2>&5
9856
  ac_status=$?
9857
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858
  (exit $ac_status); }; } &&
9859
         { ac_try='test -s conftest.$ac_objext'
9860
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9861
  (eval $ac_try) 2>&5
9862
  ac_status=$?
9863
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9864
  (exit $ac_status); }; }; then
9865
  ac_hi=$ac_mid; break
9866
else
9867
  echo "$as_me: failed program was:" >&5
9868
sed 's/^/| /' conftest.$ac_ext >&5
9869
 
9870
ac_lo=`expr $ac_mid + 1`
9871
                    if test $ac_lo -le $ac_mid; then
9872
                      ac_lo= ac_hi=
9873
                      break
9874
                    fi
9875
                    ac_mid=`expr 2 '*' $ac_mid + 1`
9876
fi
9877
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9878
  done
9879
else
9880
  echo "$as_me: failed program was:" >&5
9881
sed 's/^/| /' conftest.$ac_ext >&5
9882
 
9883
cat >conftest.$ac_ext <<_ACEOF
9884
/* confdefs.h.  */
9885
_ACEOF
9886
cat confdefs.h >>conftest.$ac_ext
9887
cat >>conftest.$ac_ext <<_ACEOF
9888
/* end confdefs.h.  */
9889
 
9890
int
9891
main ()
9892
{
9893
static int test_array [1 - 2 * !((sizeof (omp_lock_t)) < 0)];
9894
test_array [0] = 0
9895
 
9896
  ;
9897
  return 0;
9898
}
9899
_ACEOF
9900
rm -f conftest.$ac_objext
9901
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9902
  (eval $ac_compile) 2>conftest.er1
9903
  ac_status=$?
9904
  grep -v '^ *+' conftest.er1 >conftest.err
9905
  rm -f conftest.er1
9906
  cat conftest.err >&5
9907
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9908
  (exit $ac_status); } &&
9909
         { ac_try='test -z "$ac_c_werror_flag"
9910
                         || test ! -s conftest.err'
9911
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9912
  (eval $ac_try) 2>&5
9913
  ac_status=$?
9914
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915
  (exit $ac_status); }; } &&
9916
         { ac_try='test -s conftest.$ac_objext'
9917
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9918
  (eval $ac_try) 2>&5
9919
  ac_status=$?
9920
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9921
  (exit $ac_status); }; }; then
9922
  ac_hi=-1 ac_mid=-1
9923
  while :; do
9924
    cat >conftest.$ac_ext <<_ACEOF
9925
/* confdefs.h.  */
9926
_ACEOF
9927
cat confdefs.h >>conftest.$ac_ext
9928
cat >>conftest.$ac_ext <<_ACEOF
9929
/* end confdefs.h.  */
9930
 
9931
int
9932
main ()
9933
{
9934
static int test_array [1 - 2 * !((sizeof (omp_lock_t)) >= $ac_mid)];
9935
test_array [0] = 0
9936
 
9937
  ;
9938
  return 0;
9939
}
9940
_ACEOF
9941
rm -f conftest.$ac_objext
9942
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9943
  (eval $ac_compile) 2>conftest.er1
9944
  ac_status=$?
9945
  grep -v '^ *+' conftest.er1 >conftest.err
9946
  rm -f conftest.er1
9947
  cat conftest.err >&5
9948
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9949
  (exit $ac_status); } &&
9950
         { ac_try='test -z "$ac_c_werror_flag"
9951
                         || test ! -s conftest.err'
9952
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9953
  (eval $ac_try) 2>&5
9954
  ac_status=$?
9955
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9956
  (exit $ac_status); }; } &&
9957
         { ac_try='test -s conftest.$ac_objext'
9958
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9959
  (eval $ac_try) 2>&5
9960
  ac_status=$?
9961
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962
  (exit $ac_status); }; }; then
9963
  ac_lo=$ac_mid; break
9964
else
9965
  echo "$as_me: failed program was:" >&5
9966
sed 's/^/| /' conftest.$ac_ext >&5
9967
 
9968
ac_hi=`expr '(' $ac_mid ')' - 1`
9969
                       if test $ac_mid -le $ac_hi; then
9970
                         ac_lo= ac_hi=
9971
                         break
9972
                       fi
9973
                       ac_mid=`expr 2 '*' $ac_mid`
9974
fi
9975
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9976
  done
9977
else
9978
  echo "$as_me: failed program was:" >&5
9979
sed 's/^/| /' conftest.$ac_ext >&5
9980
 
9981
ac_lo= ac_hi=
9982
fi
9983
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9984
fi
9985
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9986
# Binary search between lo and hi bounds.
9987
while test "x$ac_lo" != "x$ac_hi"; do
9988
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9989
  cat >conftest.$ac_ext <<_ACEOF
9990
/* confdefs.h.  */
9991
_ACEOF
9992
cat confdefs.h >>conftest.$ac_ext
9993
cat >>conftest.$ac_ext <<_ACEOF
9994
/* end confdefs.h.  */
9995
 
9996
int
9997
main ()
9998
{
9999
static int test_array [1 - 2 * !((sizeof (omp_lock_t)) <= $ac_mid)];
10000
test_array [0] = 0
10001
 
10002
  ;
10003
  return 0;
10004
}
10005
_ACEOF
10006
rm -f conftest.$ac_objext
10007
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10008
  (eval $ac_compile) 2>conftest.er1
10009
  ac_status=$?
10010
  grep -v '^ *+' conftest.er1 >conftest.err
10011
  rm -f conftest.er1
10012
  cat conftest.err >&5
10013
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10014
  (exit $ac_status); } &&
10015
         { ac_try='test -z "$ac_c_werror_flag"
10016
                         || test ! -s conftest.err'
10017
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10018
  (eval $ac_try) 2>&5
10019
  ac_status=$?
10020
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021
  (exit $ac_status); }; } &&
10022
         { ac_try='test -s conftest.$ac_objext'
10023
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10024
  (eval $ac_try) 2>&5
10025
  ac_status=$?
10026
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10027
  (exit $ac_status); }; }; then
10028
  ac_hi=$ac_mid
10029
else
10030
  echo "$as_me: failed program was:" >&5
10031
sed 's/^/| /' conftest.$ac_ext >&5
10032
 
10033
ac_lo=`expr '(' $ac_mid ')' + 1`
10034
fi
10035
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10036
done
10037
case $ac_lo in
10038
?*) OMP_LOCK_SIZE=$ac_lo;;
10039
'') { { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_t)" >&5
10040
echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_t)" >&2;}
10041
   { (exit 1); exit 1; }; } ;;
10042
esac
10043
else
10044
  if test "$cross_compiling" = yes; then
10045
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10046
See \`config.log' for more details." >&5
10047
echo "$as_me: error: cannot run test program while cross compiling
10048
See \`config.log' for more details." >&2;}
10049
   { (exit 1); exit 1; }; }
10050
else
10051
  cat >conftest.$ac_ext <<_ACEOF
10052
/* confdefs.h.  */
10053
_ACEOF
10054
cat confdefs.h >>conftest.$ac_ext
10055
cat >>conftest.$ac_ext <<_ACEOF
10056
/* end confdefs.h.  */
10057
 
10058
long longval () { return sizeof (omp_lock_t); }
10059
unsigned long ulongval () { return sizeof (omp_lock_t); }
10060
#include 
10061
#include 
10062
int
10063
main ()
10064
{
10065
 
10066
  FILE *f = fopen ("conftest.val", "w");
10067
  if (! f)
10068
    exit (1);
10069
  if ((sizeof (omp_lock_t)) < 0)
10070
    {
10071
      long i = longval ();
10072
      if (i != (sizeof (omp_lock_t)))
10073
        exit (1);
10074
      fprintf (f, "%ld\n", i);
10075
    }
10076
  else
10077
    {
10078
      unsigned long i = ulongval ();
10079
      if (i != (sizeof (omp_lock_t)))
10080
        exit (1);
10081
      fprintf (f, "%lu\n", i);
10082
    }
10083
  exit (ferror (f) || fclose (f) != 0);
10084
 
10085
  ;
10086
  return 0;
10087
}
10088
_ACEOF
10089
rm -f conftest$ac_exeext
10090
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10091
  (eval $ac_link) 2>&5
10092
  ac_status=$?
10093
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10095
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10096
  (eval $ac_try) 2>&5
10097
  ac_status=$?
10098
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10099
  (exit $ac_status); }; }; then
10100
  OMP_LOCK_SIZE=`cat conftest.val`
10101
else
10102
  echo "$as_me: program exited with status $ac_status" >&5
10103
echo "$as_me: failed program was:" >&5
10104
sed 's/^/| /' conftest.$ac_ext >&5
10105
 
10106
( exit $ac_status )
10107
{ { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_t)" >&5
10108
echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_t)" >&2;}
10109
   { (exit 1); exit 1; }; }
10110
fi
10111
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10112
fi
10113
fi
10114
rm -f conftest.val
10115
if test "$cross_compiling" = yes; then
10116
  # Depending upon the size, compute the lo and hi bounds.
10117
cat >conftest.$ac_ext <<_ACEOF
10118
/* confdefs.h.  */
10119
_ACEOF
10120
cat confdefs.h >>conftest.$ac_ext
10121
cat >>conftest.$ac_ext <<_ACEOF
10122
/* end confdefs.h.  */
10123
 
10124
int
10125
main ()
10126
{
10127
static int test_array [1 - 2 * !((__alignof (omp_lock_t)) >= 0)];
10128
test_array [0] = 0
10129
 
10130
  ;
10131
  return 0;
10132
}
10133
_ACEOF
10134
rm -f conftest.$ac_objext
10135
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10136
  (eval $ac_compile) 2>conftest.er1
10137
  ac_status=$?
10138
  grep -v '^ *+' conftest.er1 >conftest.err
10139
  rm -f conftest.er1
10140
  cat conftest.err >&5
10141
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142
  (exit $ac_status); } &&
10143
         { ac_try='test -z "$ac_c_werror_flag"
10144
                         || test ! -s conftest.err'
10145
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10146
  (eval $ac_try) 2>&5
10147
  ac_status=$?
10148
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10149
  (exit $ac_status); }; } &&
10150
         { ac_try='test -s conftest.$ac_objext'
10151
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10152
  (eval $ac_try) 2>&5
10153
  ac_status=$?
10154
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10155
  (exit $ac_status); }; }; then
10156
  ac_lo=0 ac_mid=0
10157
  while :; do
10158
    cat >conftest.$ac_ext <<_ACEOF
10159
/* confdefs.h.  */
10160
_ACEOF
10161
cat confdefs.h >>conftest.$ac_ext
10162
cat >>conftest.$ac_ext <<_ACEOF
10163
/* end confdefs.h.  */
10164
 
10165
int
10166
main ()
10167
{
10168
static int test_array [1 - 2 * !((__alignof (omp_lock_t)) <= $ac_mid)];
10169
test_array [0] = 0
10170
 
10171
  ;
10172
  return 0;
10173
}
10174
_ACEOF
10175
rm -f conftest.$ac_objext
10176
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10177
  (eval $ac_compile) 2>conftest.er1
10178
  ac_status=$?
10179
  grep -v '^ *+' conftest.er1 >conftest.err
10180
  rm -f conftest.er1
10181
  cat conftest.err >&5
10182
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183
  (exit $ac_status); } &&
10184
         { ac_try='test -z "$ac_c_werror_flag"
10185
                         || test ! -s conftest.err'
10186
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10187
  (eval $ac_try) 2>&5
10188
  ac_status=$?
10189
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10190
  (exit $ac_status); }; } &&
10191
         { ac_try='test -s conftest.$ac_objext'
10192
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10193
  (eval $ac_try) 2>&5
10194
  ac_status=$?
10195
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10196
  (exit $ac_status); }; }; then
10197
  ac_hi=$ac_mid; break
10198
else
10199
  echo "$as_me: failed program was:" >&5
10200
sed 's/^/| /' conftest.$ac_ext >&5
10201
 
10202
ac_lo=`expr $ac_mid + 1`
10203
                    if test $ac_lo -le $ac_mid; then
10204
                      ac_lo= ac_hi=
10205
                      break
10206
                    fi
10207
                    ac_mid=`expr 2 '*' $ac_mid + 1`
10208
fi
10209
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10210
  done
10211
else
10212
  echo "$as_me: failed program was:" >&5
10213
sed 's/^/| /' conftest.$ac_ext >&5
10214
 
10215
cat >conftest.$ac_ext <<_ACEOF
10216
/* confdefs.h.  */
10217
_ACEOF
10218
cat confdefs.h >>conftest.$ac_ext
10219
cat >>conftest.$ac_ext <<_ACEOF
10220
/* end confdefs.h.  */
10221
 
10222
int
10223
main ()
10224
{
10225
static int test_array [1 - 2 * !((__alignof (omp_lock_t)) < 0)];
10226
test_array [0] = 0
10227
 
10228
  ;
10229
  return 0;
10230
}
10231
_ACEOF
10232
rm -f conftest.$ac_objext
10233
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10234
  (eval $ac_compile) 2>conftest.er1
10235
  ac_status=$?
10236
  grep -v '^ *+' conftest.er1 >conftest.err
10237
  rm -f conftest.er1
10238
  cat conftest.err >&5
10239
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240
  (exit $ac_status); } &&
10241
         { ac_try='test -z "$ac_c_werror_flag"
10242
                         || test ! -s conftest.err'
10243
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10244
  (eval $ac_try) 2>&5
10245
  ac_status=$?
10246
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10247
  (exit $ac_status); }; } &&
10248
         { ac_try='test -s conftest.$ac_objext'
10249
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10250
  (eval $ac_try) 2>&5
10251
  ac_status=$?
10252
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253
  (exit $ac_status); }; }; then
10254
  ac_hi=-1 ac_mid=-1
10255
  while :; do
10256
    cat >conftest.$ac_ext <<_ACEOF
10257
/* confdefs.h.  */
10258
_ACEOF
10259
cat confdefs.h >>conftest.$ac_ext
10260
cat >>conftest.$ac_ext <<_ACEOF
10261
/* end confdefs.h.  */
10262
 
10263
int
10264
main ()
10265
{
10266
static int test_array [1 - 2 * !((__alignof (omp_lock_t)) >= $ac_mid)];
10267
test_array [0] = 0
10268
 
10269
  ;
10270
  return 0;
10271
}
10272
_ACEOF
10273
rm -f conftest.$ac_objext
10274
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10275
  (eval $ac_compile) 2>conftest.er1
10276
  ac_status=$?
10277
  grep -v '^ *+' conftest.er1 >conftest.err
10278
  rm -f conftest.er1
10279
  cat conftest.err >&5
10280
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281
  (exit $ac_status); } &&
10282
         { ac_try='test -z "$ac_c_werror_flag"
10283
                         || test ! -s conftest.err'
10284
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10285
  (eval $ac_try) 2>&5
10286
  ac_status=$?
10287
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10288
  (exit $ac_status); }; } &&
10289
         { ac_try='test -s conftest.$ac_objext'
10290
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10291
  (eval $ac_try) 2>&5
10292
  ac_status=$?
10293
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10294
  (exit $ac_status); }; }; then
10295
  ac_lo=$ac_mid; break
10296
else
10297
  echo "$as_me: failed program was:" >&5
10298
sed 's/^/| /' conftest.$ac_ext >&5
10299
 
10300
ac_hi=`expr '(' $ac_mid ')' - 1`
10301
                       if test $ac_mid -le $ac_hi; then
10302
                         ac_lo= ac_hi=
10303
                         break
10304
                       fi
10305
                       ac_mid=`expr 2 '*' $ac_mid`
10306
fi
10307
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10308
  done
10309
else
10310
  echo "$as_me: failed program was:" >&5
10311
sed 's/^/| /' conftest.$ac_ext >&5
10312
 
10313
ac_lo= ac_hi=
10314
fi
10315
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10316
fi
10317
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10318
# Binary search between lo and hi bounds.
10319
while test "x$ac_lo" != "x$ac_hi"; do
10320
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10321
  cat >conftest.$ac_ext <<_ACEOF
10322
/* confdefs.h.  */
10323
_ACEOF
10324
cat confdefs.h >>conftest.$ac_ext
10325
cat >>conftest.$ac_ext <<_ACEOF
10326
/* end confdefs.h.  */
10327
 
10328
int
10329
main ()
10330
{
10331
static int test_array [1 - 2 * !((__alignof (omp_lock_t)) <= $ac_mid)];
10332
test_array [0] = 0
10333
 
10334
  ;
10335
  return 0;
10336
}
10337
_ACEOF
10338
rm -f conftest.$ac_objext
10339
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10340
  (eval $ac_compile) 2>conftest.er1
10341
  ac_status=$?
10342
  grep -v '^ *+' conftest.er1 >conftest.err
10343
  rm -f conftest.er1
10344
  cat conftest.err >&5
10345
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10346
  (exit $ac_status); } &&
10347
         { ac_try='test -z "$ac_c_werror_flag"
10348
                         || test ! -s conftest.err'
10349
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10350
  (eval $ac_try) 2>&5
10351
  ac_status=$?
10352
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10353
  (exit $ac_status); }; } &&
10354
         { ac_try='test -s conftest.$ac_objext'
10355
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10356
  (eval $ac_try) 2>&5
10357
  ac_status=$?
10358
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10359
  (exit $ac_status); }; }; then
10360
  ac_hi=$ac_mid
10361
else
10362
  echo "$as_me: failed program was:" >&5
10363
sed 's/^/| /' conftest.$ac_ext >&5
10364
 
10365
ac_lo=`expr '(' $ac_mid ')' + 1`
10366
fi
10367
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10368
done
10369
case $ac_lo in
10370
?*) OMP_LOCK_ALIGN=$ac_lo;;
10371
'')  ;;
10372
esac
10373
else
10374
  if test "$cross_compiling" = yes; then
10375
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10376
See \`config.log' for more details." >&5
10377
echo "$as_me: error: cannot run test program while cross compiling
10378
See \`config.log' for more details." >&2;}
10379
   { (exit 1); exit 1; }; }
10380
else
10381
  cat >conftest.$ac_ext <<_ACEOF
10382
/* confdefs.h.  */
10383
_ACEOF
10384
cat confdefs.h >>conftest.$ac_ext
10385
cat >>conftest.$ac_ext <<_ACEOF
10386
/* end confdefs.h.  */
10387
 
10388
long longval () { return __alignof (omp_lock_t); }
10389
unsigned long ulongval () { return __alignof (omp_lock_t); }
10390
#include 
10391
#include 
10392
int
10393
main ()
10394
{
10395
 
10396
  FILE *f = fopen ("conftest.val", "w");
10397
  if (! f)
10398
    exit (1);
10399
  if ((__alignof (omp_lock_t)) < 0)
10400
    {
10401
      long i = longval ();
10402
      if (i != (__alignof (omp_lock_t)))
10403
        exit (1);
10404
      fprintf (f, "%ld\n", i);
10405
    }
10406
  else
10407
    {
10408
      unsigned long i = ulongval ();
10409
      if (i != (__alignof (omp_lock_t)))
10410
        exit (1);
10411
      fprintf (f, "%lu\n", i);
10412
    }
10413
  exit (ferror (f) || fclose (f) != 0);
10414
 
10415
  ;
10416
  return 0;
10417
}
10418
_ACEOF
10419
rm -f conftest$ac_exeext
10420
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10421
  (eval $ac_link) 2>&5
10422
  ac_status=$?
10423
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10425
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10426
  (eval $ac_try) 2>&5
10427
  ac_status=$?
10428
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10429
  (exit $ac_status); }; }; then
10430
  OMP_LOCK_ALIGN=`cat conftest.val`
10431
else
10432
  echo "$as_me: program exited with status $ac_status" >&5
10433
echo "$as_me: failed program was:" >&5
10434
sed 's/^/| /' conftest.$ac_ext >&5
10435
 
10436
fi
10437
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10438
fi
10439
fi
10440
rm -f conftest.val
10441
if test "$cross_compiling" = yes; then
10442
  # Depending upon the size, compute the lo and hi bounds.
10443
cat >conftest.$ac_ext <<_ACEOF
10444
/* confdefs.h.  */
10445
_ACEOF
10446
cat confdefs.h >>conftest.$ac_ext
10447
cat >>conftest.$ac_ext <<_ACEOF
10448
/* end confdefs.h.  */
10449
 
10450
int
10451
main ()
10452
{
10453
static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) >= 0)];
10454
test_array [0] = 0
10455
 
10456
  ;
10457
  return 0;
10458
}
10459
_ACEOF
10460
rm -f conftest.$ac_objext
10461
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10462
  (eval $ac_compile) 2>conftest.er1
10463
  ac_status=$?
10464
  grep -v '^ *+' conftest.er1 >conftest.err
10465
  rm -f conftest.er1
10466
  cat conftest.err >&5
10467
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10468
  (exit $ac_status); } &&
10469
         { ac_try='test -z "$ac_c_werror_flag"
10470
                         || test ! -s conftest.err'
10471
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10472
  (eval $ac_try) 2>&5
10473
  ac_status=$?
10474
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475
  (exit $ac_status); }; } &&
10476
         { ac_try='test -s conftest.$ac_objext'
10477
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10478
  (eval $ac_try) 2>&5
10479
  ac_status=$?
10480
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481
  (exit $ac_status); }; }; then
10482
  ac_lo=0 ac_mid=0
10483
  while :; do
10484
    cat >conftest.$ac_ext <<_ACEOF
10485
/* confdefs.h.  */
10486
_ACEOF
10487
cat confdefs.h >>conftest.$ac_ext
10488
cat >>conftest.$ac_ext <<_ACEOF
10489
/* end confdefs.h.  */
10490
 
10491
int
10492
main ()
10493
{
10494
static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) <= $ac_mid)];
10495
test_array [0] = 0
10496
 
10497
  ;
10498
  return 0;
10499
}
10500
_ACEOF
10501
rm -f conftest.$ac_objext
10502
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10503
  (eval $ac_compile) 2>conftest.er1
10504
  ac_status=$?
10505
  grep -v '^ *+' conftest.er1 >conftest.err
10506
  rm -f conftest.er1
10507
  cat conftest.err >&5
10508
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10509
  (exit $ac_status); } &&
10510
         { ac_try='test -z "$ac_c_werror_flag"
10511
                         || test ! -s conftest.err'
10512
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10513
  (eval $ac_try) 2>&5
10514
  ac_status=$?
10515
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10516
  (exit $ac_status); }; } &&
10517
         { ac_try='test -s conftest.$ac_objext'
10518
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10519
  (eval $ac_try) 2>&5
10520
  ac_status=$?
10521
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10522
  (exit $ac_status); }; }; then
10523
  ac_hi=$ac_mid; break
10524
else
10525
  echo "$as_me: failed program was:" >&5
10526
sed 's/^/| /' conftest.$ac_ext >&5
10527
 
10528
ac_lo=`expr $ac_mid + 1`
10529
                    if test $ac_lo -le $ac_mid; then
10530
                      ac_lo= ac_hi=
10531
                      break
10532
                    fi
10533
                    ac_mid=`expr 2 '*' $ac_mid + 1`
10534
fi
10535
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10536
  done
10537
else
10538
  echo "$as_me: failed program was:" >&5
10539
sed 's/^/| /' conftest.$ac_ext >&5
10540
 
10541
cat >conftest.$ac_ext <<_ACEOF
10542
/* confdefs.h.  */
10543
_ACEOF
10544
cat confdefs.h >>conftest.$ac_ext
10545
cat >>conftest.$ac_ext <<_ACEOF
10546
/* end confdefs.h.  */
10547
 
10548
int
10549
main ()
10550
{
10551
static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) < 0)];
10552
test_array [0] = 0
10553
 
10554
  ;
10555
  return 0;
10556
}
10557
_ACEOF
10558
rm -f conftest.$ac_objext
10559
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10560
  (eval $ac_compile) 2>conftest.er1
10561
  ac_status=$?
10562
  grep -v '^ *+' conftest.er1 >conftest.err
10563
  rm -f conftest.er1
10564
  cat conftest.err >&5
10565
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10566
  (exit $ac_status); } &&
10567
         { ac_try='test -z "$ac_c_werror_flag"
10568
                         || test ! -s conftest.err'
10569
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10570
  (eval $ac_try) 2>&5
10571
  ac_status=$?
10572
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10573
  (exit $ac_status); }; } &&
10574
         { ac_try='test -s conftest.$ac_objext'
10575
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10576
  (eval $ac_try) 2>&5
10577
  ac_status=$?
10578
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10579
  (exit $ac_status); }; }; then
10580
  ac_hi=-1 ac_mid=-1
10581
  while :; do
10582
    cat >conftest.$ac_ext <<_ACEOF
10583
/* confdefs.h.  */
10584
_ACEOF
10585
cat confdefs.h >>conftest.$ac_ext
10586
cat >>conftest.$ac_ext <<_ACEOF
10587
/* end confdefs.h.  */
10588
 
10589
int
10590
main ()
10591
{
10592
static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) >= $ac_mid)];
10593
test_array [0] = 0
10594
 
10595
  ;
10596
  return 0;
10597
}
10598
_ACEOF
10599
rm -f conftest.$ac_objext
10600
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10601
  (eval $ac_compile) 2>conftest.er1
10602
  ac_status=$?
10603
  grep -v '^ *+' conftest.er1 >conftest.err
10604
  rm -f conftest.er1
10605
  cat conftest.err >&5
10606
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607
  (exit $ac_status); } &&
10608
         { ac_try='test -z "$ac_c_werror_flag"
10609
                         || test ! -s conftest.err'
10610
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10611
  (eval $ac_try) 2>&5
10612
  ac_status=$?
10613
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614
  (exit $ac_status); }; } &&
10615
         { ac_try='test -s conftest.$ac_objext'
10616
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10617
  (eval $ac_try) 2>&5
10618
  ac_status=$?
10619
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620
  (exit $ac_status); }; }; then
10621
  ac_lo=$ac_mid; break
10622
else
10623
  echo "$as_me: failed program was:" >&5
10624
sed 's/^/| /' conftest.$ac_ext >&5
10625
 
10626
ac_hi=`expr '(' $ac_mid ')' - 1`
10627
                       if test $ac_mid -le $ac_hi; then
10628
                         ac_lo= ac_hi=
10629
                         break
10630
                       fi
10631
                       ac_mid=`expr 2 '*' $ac_mid`
10632
fi
10633
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10634
  done
10635
else
10636
  echo "$as_me: failed program was:" >&5
10637
sed 's/^/| /' conftest.$ac_ext >&5
10638
 
10639
ac_lo= ac_hi=
10640
fi
10641
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10642
fi
10643
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10644
# Binary search between lo and hi bounds.
10645
while test "x$ac_lo" != "x$ac_hi"; do
10646
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10647
  cat >conftest.$ac_ext <<_ACEOF
10648
/* confdefs.h.  */
10649
_ACEOF
10650
cat confdefs.h >>conftest.$ac_ext
10651
cat >>conftest.$ac_ext <<_ACEOF
10652
/* end confdefs.h.  */
10653
 
10654
int
10655
main ()
10656
{
10657
static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) <= $ac_mid)];
10658
test_array [0] = 0
10659
 
10660
  ;
10661
  return 0;
10662
}
10663
_ACEOF
10664
rm -f conftest.$ac_objext
10665
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10666
  (eval $ac_compile) 2>conftest.er1
10667
  ac_status=$?
10668
  grep -v '^ *+' conftest.er1 >conftest.err
10669
  rm -f conftest.er1
10670
  cat conftest.err >&5
10671
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672
  (exit $ac_status); } &&
10673
         { ac_try='test -z "$ac_c_werror_flag"
10674
                         || test ! -s conftest.err'
10675
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10676
  (eval $ac_try) 2>&5
10677
  ac_status=$?
10678
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10679
  (exit $ac_status); }; } &&
10680
         { ac_try='test -s conftest.$ac_objext'
10681
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10682
  (eval $ac_try) 2>&5
10683
  ac_status=$?
10684
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10685
  (exit $ac_status); }; }; then
10686
  ac_hi=$ac_mid
10687
else
10688
  echo "$as_me: failed program was:" >&5
10689
sed 's/^/| /' conftest.$ac_ext >&5
10690
 
10691
ac_lo=`expr '(' $ac_mid ')' + 1`
10692
fi
10693
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10694
done
10695
case $ac_lo in
10696
?*) OMP_NEST_LOCK_SIZE=$ac_lo;;
10697
'')  ;;
10698
esac
10699
else
10700
  if test "$cross_compiling" = yes; then
10701
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10702
See \`config.log' for more details." >&5
10703
echo "$as_me: error: cannot run test program while cross compiling
10704
See \`config.log' for more details." >&2;}
10705
   { (exit 1); exit 1; }; }
10706
else
10707
  cat >conftest.$ac_ext <<_ACEOF
10708
/* confdefs.h.  */
10709
_ACEOF
10710
cat confdefs.h >>conftest.$ac_ext
10711
cat >>conftest.$ac_ext <<_ACEOF
10712
/* end confdefs.h.  */
10713
 
10714
long longval () { return sizeof (omp_nest_lock_t); }
10715
unsigned long ulongval () { return sizeof (omp_nest_lock_t); }
10716
#include 
10717
#include 
10718
int
10719
main ()
10720
{
10721
 
10722
  FILE *f = fopen ("conftest.val", "w");
10723
  if (! f)
10724
    exit (1);
10725
  if ((sizeof (omp_nest_lock_t)) < 0)
10726
    {
10727
      long i = longval ();
10728
      if (i != (sizeof (omp_nest_lock_t)))
10729
        exit (1);
10730
      fprintf (f, "%ld\n", i);
10731
    }
10732
  else
10733
    {
10734
      unsigned long i = ulongval ();
10735
      if (i != (sizeof (omp_nest_lock_t)))
10736
        exit (1);
10737
      fprintf (f, "%lu\n", i);
10738
    }
10739
  exit (ferror (f) || fclose (f) != 0);
10740
 
10741
  ;
10742
  return 0;
10743
}
10744
_ACEOF
10745
rm -f conftest$ac_exeext
10746
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10747
  (eval $ac_link) 2>&5
10748
  ac_status=$?
10749
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10750
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10751
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10752
  (eval $ac_try) 2>&5
10753
  ac_status=$?
10754
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10755
  (exit $ac_status); }; }; then
10756
  OMP_NEST_LOCK_SIZE=`cat conftest.val`
10757
else
10758
  echo "$as_me: program exited with status $ac_status" >&5
10759
echo "$as_me: failed program was:" >&5
10760
sed 's/^/| /' conftest.$ac_ext >&5
10761
 
10762
fi
10763
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10764
fi
10765
fi
10766
rm -f conftest.val
10767
if test "$cross_compiling" = yes; then
10768
  # Depending upon the size, compute the lo and hi bounds.
10769
cat >conftest.$ac_ext <<_ACEOF
10770
/* confdefs.h.  */
10771
_ACEOF
10772
cat confdefs.h >>conftest.$ac_ext
10773
cat >>conftest.$ac_ext <<_ACEOF
10774
/* end confdefs.h.  */
10775
 
10776
int
10777
main ()
10778
{
10779
static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) >= 0)];
10780
test_array [0] = 0
10781
 
10782
  ;
10783
  return 0;
10784
}
10785
_ACEOF
10786
rm -f conftest.$ac_objext
10787
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10788
  (eval $ac_compile) 2>conftest.er1
10789
  ac_status=$?
10790
  grep -v '^ *+' conftest.er1 >conftest.err
10791
  rm -f conftest.er1
10792
  cat conftest.err >&5
10793
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10794
  (exit $ac_status); } &&
10795
         { ac_try='test -z "$ac_c_werror_flag"
10796
                         || test ! -s conftest.err'
10797
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10798
  (eval $ac_try) 2>&5
10799
  ac_status=$?
10800
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10801
  (exit $ac_status); }; } &&
10802
         { ac_try='test -s conftest.$ac_objext'
10803
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10804
  (eval $ac_try) 2>&5
10805
  ac_status=$?
10806
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10807
  (exit $ac_status); }; }; then
10808
  ac_lo=0 ac_mid=0
10809
  while :; do
10810
    cat >conftest.$ac_ext <<_ACEOF
10811
/* confdefs.h.  */
10812
_ACEOF
10813
cat confdefs.h >>conftest.$ac_ext
10814
cat >>conftest.$ac_ext <<_ACEOF
10815
/* end confdefs.h.  */
10816
 
10817
int
10818
main ()
10819
{
10820
static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) <= $ac_mid)];
10821
test_array [0] = 0
10822
 
10823
  ;
10824
  return 0;
10825
}
10826
_ACEOF
10827
rm -f conftest.$ac_objext
10828
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10829
  (eval $ac_compile) 2>conftest.er1
10830
  ac_status=$?
10831
  grep -v '^ *+' conftest.er1 >conftest.err
10832
  rm -f conftest.er1
10833
  cat conftest.err >&5
10834
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10835
  (exit $ac_status); } &&
10836
         { ac_try='test -z "$ac_c_werror_flag"
10837
                         || test ! -s conftest.err'
10838
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10839
  (eval $ac_try) 2>&5
10840
  ac_status=$?
10841
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10842
  (exit $ac_status); }; } &&
10843
         { ac_try='test -s conftest.$ac_objext'
10844
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10845
  (eval $ac_try) 2>&5
10846
  ac_status=$?
10847
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10848
  (exit $ac_status); }; }; then
10849
  ac_hi=$ac_mid; break
10850
else
10851
  echo "$as_me: failed program was:" >&5
10852
sed 's/^/| /' conftest.$ac_ext >&5
10853
 
10854
ac_lo=`expr $ac_mid + 1`
10855
                    if test $ac_lo -le $ac_mid; then
10856
                      ac_lo= ac_hi=
10857
                      break
10858
                    fi
10859
                    ac_mid=`expr 2 '*' $ac_mid + 1`
10860
fi
10861
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10862
  done
10863
else
10864
  echo "$as_me: failed program was:" >&5
10865
sed 's/^/| /' conftest.$ac_ext >&5
10866
 
10867
cat >conftest.$ac_ext <<_ACEOF
10868
/* confdefs.h.  */
10869
_ACEOF
10870
cat confdefs.h >>conftest.$ac_ext
10871
cat >>conftest.$ac_ext <<_ACEOF
10872
/* end confdefs.h.  */
10873
 
10874
int
10875
main ()
10876
{
10877
static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) < 0)];
10878
test_array [0] = 0
10879
 
10880
  ;
10881
  return 0;
10882
}
10883
_ACEOF
10884
rm -f conftest.$ac_objext
10885
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10886
  (eval $ac_compile) 2>conftest.er1
10887
  ac_status=$?
10888
  grep -v '^ *+' conftest.er1 >conftest.err
10889
  rm -f conftest.er1
10890
  cat conftest.err >&5
10891
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10892
  (exit $ac_status); } &&
10893
         { ac_try='test -z "$ac_c_werror_flag"
10894
                         || test ! -s conftest.err'
10895
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10896
  (eval $ac_try) 2>&5
10897
  ac_status=$?
10898
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10899
  (exit $ac_status); }; } &&
10900
         { ac_try='test -s conftest.$ac_objext'
10901
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10902
  (eval $ac_try) 2>&5
10903
  ac_status=$?
10904
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905
  (exit $ac_status); }; }; then
10906
  ac_hi=-1 ac_mid=-1
10907
  while :; do
10908
    cat >conftest.$ac_ext <<_ACEOF
10909
/* confdefs.h.  */
10910
_ACEOF
10911
cat confdefs.h >>conftest.$ac_ext
10912
cat >>conftest.$ac_ext <<_ACEOF
10913
/* end confdefs.h.  */
10914
 
10915
int
10916
main ()
10917
{
10918
static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) >= $ac_mid)];
10919
test_array [0] = 0
10920
 
10921
  ;
10922
  return 0;
10923
}
10924
_ACEOF
10925
rm -f conftest.$ac_objext
10926
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10927
  (eval $ac_compile) 2>conftest.er1
10928
  ac_status=$?
10929
  grep -v '^ *+' conftest.er1 >conftest.err
10930
  rm -f conftest.er1
10931
  cat conftest.err >&5
10932
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933
  (exit $ac_status); } &&
10934
         { ac_try='test -z "$ac_c_werror_flag"
10935
                         || test ! -s conftest.err'
10936
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10937
  (eval $ac_try) 2>&5
10938
  ac_status=$?
10939
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10940
  (exit $ac_status); }; } &&
10941
         { ac_try='test -s conftest.$ac_objext'
10942
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10943
  (eval $ac_try) 2>&5
10944
  ac_status=$?
10945
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10946
  (exit $ac_status); }; }; then
10947
  ac_lo=$ac_mid; break
10948
else
10949
  echo "$as_me: failed program was:" >&5
10950
sed 's/^/| /' conftest.$ac_ext >&5
10951
 
10952
ac_hi=`expr '(' $ac_mid ')' - 1`
10953
                       if test $ac_mid -le $ac_hi; then
10954
                         ac_lo= ac_hi=
10955
                         break
10956
                       fi
10957
                       ac_mid=`expr 2 '*' $ac_mid`
10958
fi
10959
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10960
  done
10961
else
10962
  echo "$as_me: failed program was:" >&5
10963
sed 's/^/| /' conftest.$ac_ext >&5
10964
 
10965
ac_lo= ac_hi=
10966
fi
10967
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10968
fi
10969
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10970
# Binary search between lo and hi bounds.
10971
while test "x$ac_lo" != "x$ac_hi"; do
10972
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10973
  cat >conftest.$ac_ext <<_ACEOF
10974
/* confdefs.h.  */
10975
_ACEOF
10976
cat confdefs.h >>conftest.$ac_ext
10977
cat >>conftest.$ac_ext <<_ACEOF
10978
/* end confdefs.h.  */
10979
 
10980
int
10981
main ()
10982
{
10983
static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) <= $ac_mid)];
10984
test_array [0] = 0
10985
 
10986
  ;
10987
  return 0;
10988
}
10989
_ACEOF
10990
rm -f conftest.$ac_objext
10991
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10992
  (eval $ac_compile) 2>conftest.er1
10993
  ac_status=$?
10994
  grep -v '^ *+' conftest.er1 >conftest.err
10995
  rm -f conftest.er1
10996
  cat conftest.err >&5
10997
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998
  (exit $ac_status); } &&
10999
         { ac_try='test -z "$ac_c_werror_flag"
11000
                         || test ! -s conftest.err'
11001
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11002
  (eval $ac_try) 2>&5
11003
  ac_status=$?
11004
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11005
  (exit $ac_status); }; } &&
11006
         { ac_try='test -s conftest.$ac_objext'
11007
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11008
  (eval $ac_try) 2>&5
11009
  ac_status=$?
11010
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11011
  (exit $ac_status); }; }; then
11012
  ac_hi=$ac_mid
11013
else
11014
  echo "$as_me: failed program was:" >&5
11015
sed 's/^/| /' conftest.$ac_ext >&5
11016
 
11017
ac_lo=`expr '(' $ac_mid ')' + 1`
11018
fi
11019
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11020
done
11021
case $ac_lo in
11022
?*) OMP_NEST_LOCK_ALIGN=$ac_lo;;
11023
'')  ;;
11024
esac
11025
else
11026
  if test "$cross_compiling" = yes; then
11027
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11028
See \`config.log' for more details." >&5
11029
echo "$as_me: error: cannot run test program while cross compiling
11030
See \`config.log' for more details." >&2;}
11031
   { (exit 1); exit 1; }; }
11032
else
11033
  cat >conftest.$ac_ext <<_ACEOF
11034
/* confdefs.h.  */
11035
_ACEOF
11036
cat confdefs.h >>conftest.$ac_ext
11037
cat >>conftest.$ac_ext <<_ACEOF
11038
/* end confdefs.h.  */
11039
 
11040
long longval () { return __alignof (omp_nest_lock_t); }
11041
unsigned long ulongval () { return __alignof (omp_nest_lock_t); }
11042
#include 
11043
#include 
11044
int
11045
main ()
11046
{
11047
 
11048
  FILE *f = fopen ("conftest.val", "w");
11049
  if (! f)
11050
    exit (1);
11051
  if ((__alignof (omp_nest_lock_t)) < 0)
11052
    {
11053
      long i = longval ();
11054
      if (i != (__alignof (omp_nest_lock_t)))
11055
        exit (1);
11056
      fprintf (f, "%ld\n", i);
11057
    }
11058
  else
11059
    {
11060
      unsigned long i = ulongval ();
11061
      if (i != (__alignof (omp_nest_lock_t)))
11062
        exit (1);
11063
      fprintf (f, "%lu\n", i);
11064
    }
11065
  exit (ferror (f) || fclose (f) != 0);
11066
 
11067
  ;
11068
  return 0;
11069
}
11070
_ACEOF
11071
rm -f conftest$ac_exeext
11072
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11073
  (eval $ac_link) 2>&5
11074
  ac_status=$?
11075
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11076
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11077
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11078
  (eval $ac_try) 2>&5
11079
  ac_status=$?
11080
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081
  (exit $ac_status); }; }; then
11082
  OMP_NEST_LOCK_ALIGN=`cat conftest.val`
11083
else
11084
  echo "$as_me: program exited with status $ac_status" >&5
11085
echo "$as_me: failed program was:" >&5
11086
sed 's/^/| /' conftest.$ac_ext >&5
11087
 
11088
fi
11089
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11090
fi
11091
fi
11092
rm -f conftest.val
11093
 
11094
# If the lock fits in an integer, then arrange for Fortran to use that
11095
# integer.  If it doesn't, then arrange for Fortran to use a pointer.
11096
# Except that we don't have a way at present to multi-lib the installed
11097
# Fortran modules, so we assume 8 bytes for pointers, regardless of the
11098
# actual target.
11099
OMP_LOCK_KIND=$OMP_LOCK_SIZE
11100
OMP_NEST_LOCK_KIND=$OMP_NEST_LOCK_SIZE
11101
if test $OMP_LOCK_SIZE -gt 8 || test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
11102
  OMP_LOCK_KIND=8
11103
fi
11104
if test $OMP_NEST_LOCK_SIZE -gt 8 || test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
11105
  OMP_NEST_LOCK_KIND=8
11106
fi
11107
 
11108
 
11109
 
11110
 
11111
 
11112
 
11113
 
11114
CFLAGS="$save_CFLAGS"
11115
 
11116
                                        ac_config_files="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
11117
 
11118
                              ac_config_files="$ac_config_files Makefile testsuite/Makefile libgomp.spec"
11119
 
11120
cat >confcache <<\_ACEOF
11121
# This file is a shell script that caches the results of configure
11122
# tests run on this system so they can be shared between configure
11123
# scripts and configure runs, see configure's option --config-cache.
11124
# It is not useful on other systems.  If it contains results you don't
11125
# want to keep, you may remove or edit it.
11126
#
11127
# config.status only pays attention to the cache file if you give it
11128
# the --recheck option to rerun configure.
11129
#
11130
# `ac_cv_env_foo' variables (set or unset) will be overridden when
11131
# loading this file, other *unset* `ac_cv_foo' will be assigned the
11132
# following values.
11133
 
11134
_ACEOF
11135
 
11136
# The following way of writing the cache mishandles newlines in values,
11137
# but we know of no workaround that is simple, portable, and efficient.
11138
# So, don't put newlines in cache variables' values.
11139
# Ultrix sh set writes to stderr and can't be redirected directly,
11140
# and sets the high bit in the cache file unless we assign to the vars.
11141
{
11142
  (set) 2>&1 |
11143
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
11144
    *ac_space=\ *)
11145
      # `set' does not quote correctly, so add quotes (double-quote
11146
      # substitution turns \\\\ into \\, and sed turns \\ into \).
11147
      sed -n \
11148
        "s/'/'\\\\''/g;
11149
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11150
      ;;
11151
    *)
11152
      # `set' quotes correctly as required by POSIX, so do not add quotes.
11153
      sed -n \
11154
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11155
      ;;
11156
    esac;
11157
} |
11158
  sed '
11159
     t clear
11160
     : clear
11161
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11162
     t end
11163
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11164
     : end' >>confcache
11165
if diff $cache_file confcache >/dev/null 2>&1; then :; else
11166
  if test -w $cache_file; then
11167
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11168
    cat confcache >$cache_file
11169
  else
11170
    echo "not updating unwritable cache $cache_file"
11171
  fi
11172
fi
11173
rm -f confcache
11174
 
11175
test "x$prefix" = xNONE && prefix=$ac_default_prefix
11176
# Let make expand exec_prefix.
11177
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11178
 
11179
# VPATH may cause trouble with some makes, so we remove $(srcdir),
11180
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11181
# trailing colons and then remove the whole line if VPATH becomes empty
11182
# (actually we leave an empty line to preserve line numbers).
11183
if test "x$srcdir" = x.; then
11184
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
11185
s/:*\$(srcdir):*/:/;
11186
s/:*\${srcdir}:*/:/;
11187
s/:*@srcdir@:*/:/;
11188
s/^\([^=]*=[     ]*\):*/\1/;
11189
s/:*$//;
11190
s/^[^=]*=[       ]*$//;
11191
}'
11192
fi
11193
 
11194
DEFS=-DHAVE_CONFIG_H
11195
 
11196
ac_libobjs=
11197
ac_ltlibobjs=
11198
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11199
  # 1. Remove the extension, and $U if already installed.
11200
  ac_i=`echo "$ac_i" |
11201
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11202
  # 2. Add them.
11203
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11204
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11205
done
11206
LIBOBJS=$ac_libobjs
11207
 
11208
LTLIBOBJS=$ac_ltlibobjs
11209
 
11210
 
11211
if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
11212
  { { echo "$as_me:$LINENO: error: conditional \"GENINSRC\" was never defined.
11213
Usually this means the macro was only invoked conditionally." >&5
11214
echo "$as_me: error: conditional \"GENINSRC\" was never defined.
11215
Usually this means the macro was only invoked conditionally." >&2;}
11216
   { (exit 1); exit 1; }; }
11217
fi
11218
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11219
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11220
Usually this means the macro was only invoked conditionally." >&5
11221
echo "$as_me: error: conditional \"AMDEP\" was never defined.
11222
Usually this means the macro was only invoked conditionally." >&2;}
11223
   { (exit 1); exit 1; }; }
11224
fi
11225
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11226
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11227
Usually this means the macro was only invoked conditionally." >&5
11228
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11229
Usually this means the macro was only invoked conditionally." >&2;}
11230
   { (exit 1); exit 1; }; }
11231
fi
11232
if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
11233
  { { echo "$as_me:$LINENO: error: conditional \"BUILD_INFO\" was never defined.
11234
Usually this means the macro was only invoked conditionally." >&5
11235
echo "$as_me: error: conditional \"BUILD_INFO\" was never defined.
11236
Usually this means the macro was only invoked conditionally." >&2;}
11237
   { (exit 1); exit 1; }; }
11238
fi
11239
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11240
  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
11241
Usually this means the macro was only invoked conditionally." >&5
11242
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
11243
Usually this means the macro was only invoked conditionally." >&2;}
11244
   { (exit 1); exit 1; }; }
11245
fi
11246
if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
11247
  { { echo "$as_me:$LINENO: error: conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
11248
Usually this means the macro was only invoked conditionally." >&5
11249
echo "$as_me: error: conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
11250
Usually this means the macro was only invoked conditionally." >&2;}
11251
   { (exit 1); exit 1; }; }
11252
fi
11253
if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
11254
  { { echo "$as_me:$LINENO: error: conditional \"USE_FORTRAN\" was never defined.
11255
Usually this means the macro was only invoked conditionally." >&5
11256
echo "$as_me: error: conditional \"USE_FORTRAN\" was never defined.
11257
Usually this means the macro was only invoked conditionally." >&2;}
11258
   { (exit 1); exit 1; }; }
11259
fi
11260
 
11261
: ${CONFIG_STATUS=./config.status}
11262
ac_clean_files_save=$ac_clean_files
11263
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11264
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11265
echo "$as_me: creating $CONFIG_STATUS" >&6;}
11266
cat >$CONFIG_STATUS <<_ACEOF
11267
#! $SHELL
11268
# Generated by $as_me.
11269
# Run this file to recreate the current configuration.
11270
# Compiler output produced by configure, useful for debugging
11271
# configure, is in config.log if it exists.
11272
 
11273
debug=false
11274
ac_cs_recheck=false
11275
ac_cs_silent=false
11276
SHELL=\${CONFIG_SHELL-$SHELL}
11277
_ACEOF
11278
 
11279
cat >>$CONFIG_STATUS <<\_ACEOF
11280
## --------------------- ##
11281
## M4sh Initialization.  ##
11282
## --------------------- ##
11283
 
11284
# Be Bourne compatible
11285
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11286
  emulate sh
11287
  NULLCMD=:
11288
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11289
  # is contrary to our usage.  Disable this feature.
11290
  alias -g '${1+"$@"}'='"$@"'
11291
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11292
  set -o posix
11293
fi
11294
DUALCASE=1; export DUALCASE # for MKS sh
11295
 
11296
# Support unset when possible.
11297
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11298
  as_unset=unset
11299
else
11300
  as_unset=false
11301
fi
11302
 
11303
 
11304
# Work around bugs in pre-3.0 UWIN ksh.
11305
$as_unset ENV MAIL MAILPATH
11306
PS1='$ '
11307
PS2='> '
11308
PS4='+ '
11309
 
11310
# NLS nuisances.
11311
for as_var in \
11312
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11313
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11314
  LC_TELEPHONE LC_TIME
11315
do
11316
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11317
    eval $as_var=C; export $as_var
11318
  else
11319
    $as_unset $as_var
11320
  fi
11321
done
11322
 
11323
# Required to use basename.
11324
if expr a : '\(a\)' >/dev/null 2>&1; then
11325
  as_expr=expr
11326
else
11327
  as_expr=false
11328
fi
11329
 
11330
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11331
  as_basename=basename
11332
else
11333
  as_basename=false
11334
fi
11335
 
11336
 
11337
# Name of the executable.
11338
as_me=`$as_basename "$0" ||
11339
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11340
         X"$0" : 'X\(//\)$' \| \
11341
         X"$0" : 'X\(/\)$' \| \
11342
         .     : '\(.\)' 2>/dev/null ||
11343
echo X/"$0" |
11344
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11345
          /^X\/\(\/\/\)$/{ s//\1/; q; }
11346
          /^X\/\(\/\).*/{ s//\1/; q; }
11347
          s/.*/./; q'`
11348
 
11349
 
11350
# PATH needs CR, and LINENO needs CR and PATH.
11351
# Avoid depending upon Character Ranges.
11352
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11353
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11354
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11355
as_cr_digits='0123456789'
11356
as_cr_alnum=$as_cr_Letters$as_cr_digits
11357
 
11358
# The user is always right.
11359
if test "${PATH_SEPARATOR+set}" != set; then
11360
  echo "#! /bin/sh" >conf$$.sh
11361
  echo  "exit 0"   >>conf$$.sh
11362
  chmod +x conf$$.sh
11363
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11364
    PATH_SEPARATOR=';'
11365
  else
11366
    PATH_SEPARATOR=:
11367
  fi
11368
  rm -f conf$$.sh
11369
fi
11370
 
11371
 
11372
  as_lineno_1=$LINENO
11373
  as_lineno_2=$LINENO
11374
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11375
  test "x$as_lineno_1" != "x$as_lineno_2" &&
11376
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
11377
  # Find who we are.  Look in the path if we contain no path at all
11378
  # relative or not.
11379
  case $0 in
11380
    *[\\/]* ) as_myself=$0 ;;
11381
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11382
for as_dir in $PATH
11383
do
11384
  IFS=$as_save_IFS
11385
  test -z "$as_dir" && as_dir=.
11386
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11387
done
11388
 
11389
       ;;
11390
  esac
11391
  # We did not find ourselves, most probably we were run as `sh COMMAND'
11392
  # in which case we are not to be found in the path.
11393
  if test "x$as_myself" = x; then
11394
    as_myself=$0
11395
  fi
11396
  if test ! -f "$as_myself"; then
11397
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11398
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11399
   { (exit 1); exit 1; }; }
11400
  fi
11401
  case $CONFIG_SHELL in
11402
  '')
11403
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11404
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11405
do
11406
  IFS=$as_save_IFS
11407
  test -z "$as_dir" && as_dir=.
11408
  for as_base in sh bash ksh sh5; do
11409
         case $as_dir in
11410
         /*)
11411
           if ("$as_dir/$as_base" -c '
11412
  as_lineno_1=$LINENO
11413
  as_lineno_2=$LINENO
11414
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11415
  test "x$as_lineno_1" != "x$as_lineno_2" &&
11416
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
11417
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11418
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11419
             CONFIG_SHELL=$as_dir/$as_base
11420
             export CONFIG_SHELL
11421
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11422
           fi;;
11423
         esac
11424
       done
11425
done
11426
;;
11427
  esac
11428
 
11429
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11430
  # uniformly replaced by the line number.  The first 'sed' inserts a
11431
  # line-number line before each line; the second 'sed' does the real
11432
  # work.  The second script uses 'N' to pair each line-number line
11433
  # with the numbered line, and appends trailing '-' during
11434
  # substitution so that $LINENO is not a special case at line end.
11435
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11436
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
11437
  sed '=' <$as_myself |
11438
    sed '
11439
      N
11440
      s,$,-,
11441
      : loop
11442
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11443
      t loop
11444
      s,-$,,
11445
      s,^['$as_cr_digits']*\n,,
11446
    ' >$as_me.lineno &&
11447
  chmod +x $as_me.lineno ||
11448
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11449
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11450
   { (exit 1); exit 1; }; }
11451
 
11452
  # Don't try to exec as it changes $[0], causing all sort of problems
11453
  # (the dirname of $[0] is not the place where we might find the
11454
  # original and so on.  Autoconf is especially sensible to this).
11455
  . ./$as_me.lineno
11456
  # Exit status is that of the last command.
11457
  exit
11458
}
11459
 
11460
 
11461
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11462
  *c*,-n*) ECHO_N= ECHO_C='
11463
' ECHO_T='      ' ;;
11464
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11465
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
11466
esac
11467
 
11468
if expr a : '\(a\)' >/dev/null 2>&1; then
11469
  as_expr=expr
11470
else
11471
  as_expr=false
11472
fi
11473
 
11474
rm -f conf$$ conf$$.exe conf$$.file
11475
echo >conf$$.file
11476
if ln -s conf$$.file conf$$ 2>/dev/null; then
11477
  # We could just check for DJGPP; but this test a) works b) is more generic
11478
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11479
  if test -f conf$$.exe; then
11480
    # Don't use ln at all; we don't have any links
11481
    as_ln_s='cp -p'
11482
  else
11483
    as_ln_s='ln -s'
11484
  fi
11485
elif ln conf$$.file conf$$ 2>/dev/null; then
11486
  as_ln_s=ln
11487
else
11488
  as_ln_s='cp -p'
11489
fi
11490
rm -f conf$$ conf$$.exe conf$$.file
11491
 
11492
if mkdir -p . 2>/dev/null; then
11493
  as_mkdir_p=:
11494
else
11495
  test -d ./-p && rmdir ./-p
11496
  as_mkdir_p=false
11497
fi
11498
 
11499
as_executable_p="test -f"
11500
 
11501
# Sed expression to map a string onto a valid CPP name.
11502
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11503
 
11504
# Sed expression to map a string onto a valid variable name.
11505
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11506
 
11507
 
11508
# IFS
11509
# We need space, tab and new line, in precisely that order.
11510
as_nl='
11511
'
11512
IFS="   $as_nl"
11513
 
11514
# CDPATH.
11515
$as_unset CDPATH
11516
 
11517
exec 6>&1
11518
 
11519
# Open the log real soon, to keep \$[0] and so on meaningful, and to
11520
# report actual input values of CONFIG_FILES etc. instead of their
11521
# values after options handling.  Logging --version etc. is OK.
11522
exec 5>>config.log
11523
{
11524
  echo
11525
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11526
## Running $as_me. ##
11527
_ASBOX
11528
} >&5
11529
cat >&5 <<_CSEOF
11530
 
11531
This file was extended by GNU OpenMP Runtime Library $as_me 1.0, which was
11532
generated by GNU Autoconf 2.59.  Invocation command line was
11533
 
11534
  CONFIG_FILES    = $CONFIG_FILES
11535
  CONFIG_HEADERS  = $CONFIG_HEADERS
11536
  CONFIG_LINKS    = $CONFIG_LINKS
11537
  CONFIG_COMMANDS = $CONFIG_COMMANDS
11538
  $ $0 $@
11539
 
11540
_CSEOF
11541
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11542
echo >&5
11543
_ACEOF
11544
 
11545
# Files that config.status was made for.
11546
if test -n "$ac_config_files"; then
11547
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11548
fi
11549
 
11550
if test -n "$ac_config_headers"; then
11551
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11552
fi
11553
 
11554
if test -n "$ac_config_links"; then
11555
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11556
fi
11557
 
11558
if test -n "$ac_config_commands"; then
11559
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11560
fi
11561
 
11562
cat >>$CONFIG_STATUS <<\_ACEOF
11563
 
11564
ac_cs_usage="\
11565
\`$as_me' instantiates files from templates according to the
11566
current configuration.
11567
 
11568
Usage: $0 [OPTIONS] [FILE]...
11569
 
11570
  -h, --help       print this help, then exit
11571
  -V, --version    print version number, then exit
11572
  -q, --quiet      do not print progress messages
11573
  -d, --debug      don't remove temporary files
11574
      --recheck    update $as_me by reconfiguring in the same conditions
11575
  --file=FILE[:TEMPLATE]
11576
                   instantiate the configuration file FILE
11577
  --header=FILE[:TEMPLATE]
11578
                   instantiate the configuration header FILE
11579
 
11580
Configuration files:
11581
$config_files
11582
 
11583
Configuration headers:
11584
$config_headers
11585
 
11586
Configuration commands:
11587
$config_commands
11588
 
11589
Report bugs to ."
11590
_ACEOF
11591
 
11592
cat >>$CONFIG_STATUS <<_ACEOF
11593
ac_cs_version="\\
11594
GNU OpenMP Runtime Library config.status 1.0
11595
configured by $0, generated by GNU Autoconf 2.59,
11596
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11597
 
11598
Copyright (C) 2003 Free Software Foundation, Inc.
11599
This config.status script is free software; the Free Software Foundation
11600
gives unlimited permission to copy, distribute and modify it."
11601
srcdir=$srcdir
11602
INSTALL="$INSTALL"
11603
_ACEOF
11604
 
11605
cat >>$CONFIG_STATUS <<\_ACEOF
11606
# If no file are specified by the user, then we need to provide default
11607
# value.  By we need to know if files were specified by the user.
11608
ac_need_defaults=:
11609
while test $# != 0
11610
do
11611
  case $1 in
11612
  --*=*)
11613
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
11614
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11615
    ac_shift=:
11616
    ;;
11617
  -*)
11618
    ac_option=$1
11619
    ac_optarg=$2
11620
    ac_shift=shift
11621
    ;;
11622
  *) # This is not an option, so the user has probably given explicit
11623
     # arguments.
11624
     ac_option=$1
11625
     ac_need_defaults=false;;
11626
  esac
11627
 
11628
  case $ac_option in
11629
  # Handling of the options.
11630
_ACEOF
11631
cat >>$CONFIG_STATUS <<\_ACEOF
11632
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11633
    ac_cs_recheck=: ;;
11634
  --version | --vers* | -V )
11635
    echo "$ac_cs_version"; exit 0 ;;
11636
  --he | --h)
11637
    # Conflict between --help and --header
11638
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
11639
Try \`$0 --help' for more information." >&5
11640
echo "$as_me: error: ambiguous option: $1
11641
Try \`$0 --help' for more information." >&2;}
11642
   { (exit 1); exit 1; }; };;
11643
  --help | --hel | -h )
11644
    echo "$ac_cs_usage"; exit 0 ;;
11645
  --debug | --d* | -d )
11646
    debug=: ;;
11647
  --file | --fil | --fi | --f )
11648
    $ac_shift
11649
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11650
    ac_need_defaults=false;;
11651
  --header | --heade | --head | --hea )
11652
    $ac_shift
11653
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11654
    ac_need_defaults=false;;
11655
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11656
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11657
    ac_cs_silent=: ;;
11658
 
11659
  # This is an error.
11660
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11661
Try \`$0 --help' for more information." >&5
11662
echo "$as_me: error: unrecognized option: $1
11663
Try \`$0 --help' for more information." >&2;}
11664
   { (exit 1); exit 1; }; } ;;
11665
 
11666
  *) ac_config_targets="$ac_config_targets $1" ;;
11667
 
11668
  esac
11669
  shift
11670
done
11671
 
11672
ac_configure_extra_args=
11673
 
11674
if $ac_cs_silent; then
11675
  exec 6>/dev/null
11676
  ac_configure_extra_args="$ac_configure_extra_args --silent"
11677
fi
11678
 
11679
_ACEOF
11680
cat >>$CONFIG_STATUS <<_ACEOF
11681
if \$ac_cs_recheck; then
11682
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11683
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11684
fi
11685
 
11686
_ACEOF
11687
 
11688
cat >>$CONFIG_STATUS <<_ACEOF
11689
#
11690
# INIT-COMMANDS section.
11691
#
11692
 
11693
 
11694
srcdir="$srcdir"
11695
host="$host"
11696
target="$target"
11697
with_multisubdir="$with_multisubdir"
11698
with_multisrctop="$with_multisrctop"
11699
with_target_subdir="$with_target_subdir"
11700
ac_configure_args="${multilib_arg} ${ac_configure_args}"
11701
multi_basedir="$multi_basedir"
11702
CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
11703
CC="$CC"
11704
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11705
 
11706
GCC="$GCC"
11707
CC="$CC"
11708
acx_cv_header_stdint="$acx_cv_header_stdint"
11709
acx_cv_type_int8_t="$acx_cv_type_int8_t"
11710
acx_cv_type_int16_t="$acx_cv_type_int16_t"
11711
acx_cv_type_int32_t="$acx_cv_type_int32_t"
11712
acx_cv_type_int64_t="$acx_cv_type_int64_t"
11713
acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
11714
ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
11715
ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
11716
ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
11717
ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
11718
ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
11719
ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
11720
ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
11721
ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
11722
 
11723
 
11724
_ACEOF
11725
 
11726
 
11727
 
11728
cat >>$CONFIG_STATUS <<\_ACEOF
11729
for ac_config_target in $ac_config_targets
11730
do
11731
  case "$ac_config_target" in
11732
  # Handling of arguments.
11733
  "omp.h" ) CONFIG_FILES="$CONFIG_FILES omp.h" ;;
11734
  "omp_lib.h" ) CONFIG_FILES="$CONFIG_FILES omp_lib.h" ;;
11735
  "omp_lib.f90" ) CONFIG_FILES="$CONFIG_FILES omp_lib.f90" ;;
11736
  "libgomp_f.h" ) CONFIG_FILES="$CONFIG_FILES libgomp_f.h" ;;
11737
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11738
  "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
11739
  "libgomp.spec" ) CONFIG_FILES="$CONFIG_FILES libgomp.spec" ;;
11740
  "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
11741
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11742
  "gstdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
11743
  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11744
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11745
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11746
   { (exit 1); exit 1; }; };;
11747
  esac
11748
done
11749
 
11750
# If the user did not use the arguments to specify the items to instantiate,
11751
# then the envvar interface is used.  Set only those that are not.
11752
# We use the long form for the default assignment because of an extremely
11753
# bizarre bug on SunOS 4.1.3.
11754
if $ac_need_defaults; then
11755
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11756
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11757
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11758
fi
11759
 
11760
# Have a temporary directory for convenience.  Make it in the build tree
11761
# simply because there is no reason to put it here, and in addition,
11762
# creating and moving files from /tmp can sometimes cause problems.
11763
# Create a temporary directory, and hook for its removal unless debugging.
11764
$debug ||
11765
{
11766
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11767
  trap '{ (exit 1); exit 1; }' 1 2 13 15
11768
}
11769
 
11770
# Create a (secure) tmp directory for tmp files.
11771
 
11772
{
11773
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11774
  test -n "$tmp" && test -d "$tmp"
11775
}  ||
11776
{
11777
  tmp=./confstat$$-$RANDOM
11778
  (umask 077 && mkdir $tmp)
11779
} ||
11780
{
11781
   echo "$me: cannot create a temporary directory in ." >&2
11782
   { (exit 1); exit 1; }
11783
}
11784
 
11785
_ACEOF
11786
 
11787
cat >>$CONFIG_STATUS <<_ACEOF
11788
 
11789
#
11790
# CONFIG_FILES section.
11791
#
11792
 
11793
# No need to generate the scripts if there are no CONFIG_FILES.
11794
# This happens for instance when ./config.status config.h
11795
if test -n "\$CONFIG_FILES"; then
11796
  # Protect against being on the right side of a sed subst in config.status.
11797
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11798
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11799
s,@SHELL@,$SHELL,;t t
11800
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11801
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11802
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11803
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11804
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11805
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11806
s,@exec_prefix@,$exec_prefix,;t t
11807
s,@prefix@,$prefix,;t t
11808
s,@program_transform_name@,$program_transform_name,;t t
11809
s,@bindir@,$bindir,;t t
11810
s,@sbindir@,$sbindir,;t t
11811
s,@libexecdir@,$libexecdir,;t t
11812
s,@datadir@,$datadir,;t t
11813
s,@sysconfdir@,$sysconfdir,;t t
11814
s,@sharedstatedir@,$sharedstatedir,;t t
11815
s,@localstatedir@,$localstatedir,;t t
11816
s,@libdir@,$libdir,;t t
11817
s,@includedir@,$includedir,;t t
11818
s,@oldincludedir@,$oldincludedir,;t t
11819
s,@infodir@,$infodir,;t t
11820
s,@mandir@,$mandir,;t t
11821
s,@build_alias@,$build_alias,;t t
11822
s,@host_alias@,$host_alias,;t t
11823
s,@target_alias@,$target_alias,;t t
11824
s,@DEFS@,$DEFS,;t t
11825
s,@ECHO_C@,$ECHO_C,;t t
11826
s,@ECHO_N@,$ECHO_N,;t t
11827
s,@ECHO_T@,$ECHO_T,;t t
11828
s,@LIBS@,$LIBS,;t t
11829
s,@GENINSRC_TRUE@,$GENINSRC_TRUE,;t t
11830
s,@GENINSRC_FALSE@,$GENINSRC_FALSE,;t t
11831
s,@build@,$build,;t t
11832
s,@build_cpu@,$build_cpu,;t t
11833
s,@build_vendor@,$build_vendor,;t t
11834
s,@build_os@,$build_os,;t t
11835
s,@host@,$host,;t t
11836
s,@host_cpu@,$host_cpu,;t t
11837
s,@host_vendor@,$host_vendor,;t t
11838
s,@host_os@,$host_os,;t t
11839
s,@target@,$target,;t t
11840
s,@target_cpu@,$target_cpu,;t t
11841
s,@target_vendor@,$target_vendor,;t t
11842
s,@target_os@,$target_os,;t t
11843
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11844
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11845
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11846
s,@CYGPATH_W@,$CYGPATH_W,;t t
11847
s,@PACKAGE@,$PACKAGE,;t t
11848
s,@VERSION@,$VERSION,;t t
11849
s,@ACLOCAL@,$ACLOCAL,;t t
11850
s,@AUTOCONF@,$AUTOCONF,;t t
11851
s,@AUTOMAKE@,$AUTOMAKE,;t t
11852
s,@AUTOHEADER@,$AUTOHEADER,;t t
11853
s,@MAKEINFO@,$MAKEINFO,;t t
11854
s,@install_sh@,$install_sh,;t t
11855
s,@STRIP@,$STRIP,;t t
11856
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11857
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
11858
s,@mkdir_p@,$mkdir_p,;t t
11859
s,@AWK@,$AWK,;t t
11860
s,@SET_MAKE@,$SET_MAKE,;t t
11861
s,@am__leading_dot@,$am__leading_dot,;t t
11862
s,@AMTAR@,$AMTAR,;t t
11863
s,@am__tar@,$am__tar,;t t
11864
s,@am__untar@,$am__untar,;t t
11865
s,@multi_basedir@,$multi_basedir,;t t
11866
s,@toolexecdir@,$toolexecdir,;t t
11867
s,@toolexeclibdir@,$toolexeclibdir,;t t
11868
s,@CC@,$CC,;t t
11869
s,@ac_ct_CC@,$ac_ct_CC,;t t
11870
s,@EXEEXT@,$EXEEXT,;t t
11871
s,@OBJEXT@,$OBJEXT,;t t
11872
s,@DEPDIR@,$DEPDIR,;t t
11873
s,@am__include@,$am__include,;t t
11874
s,@am__quote@,$am__quote,;t t
11875
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
11876
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
11877
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
11878
s,@CCDEPMODE@,$CCDEPMODE,;t t
11879
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
11880
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
11881
s,@CFLAGS@,$CFLAGS,;t t
11882
s,@AR@,$AR,;t t
11883
s,@ac_ct_AR@,$ac_ct_AR,;t t
11884
s,@RANLIB@,$RANLIB,;t t
11885
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11886
s,@PERL@,$PERL,;t t
11887
s,@BUILD_INFO_TRUE@,$BUILD_INFO_TRUE,;t t
11888
s,@BUILD_INFO_FALSE@,$BUILD_INFO_FALSE,;t t
11889
s,@LN_S@,$LN_S,;t t
11890
s,@LIBTOOL@,$LIBTOOL,;t t
11891
s,@enable_shared@,$enable_shared,;t t
11892
s,@enable_static@,$enable_static,;t t
11893
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
11894
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
11895
s,@MAINT@,$MAINT,;t t
11896
s,@FC@,$FC,;t t
11897
s,@FCFLAGS@,$FCFLAGS,;t t
11898
s,@LDFLAGS@,$LDFLAGS,;t t
11899
s,@ac_ct_FC@,$ac_ct_FC,;t t
11900
s,@libtool_VERSION@,$libtool_VERSION,;t t
11901
s,@CPP@,$CPP,;t t
11902
s,@CPPFLAGS@,$CPPFLAGS,;t t
11903
s,@EGREP@,$EGREP,;t t
11904
s,@SECTION_LDFLAGS@,$SECTION_LDFLAGS,;t t
11905
s,@OPT_LDFLAGS@,$OPT_LDFLAGS,;t t
11906
s,@LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE@,$LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE,;t t
11907
s,@LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE@,$LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE,;t t
11908
s,@config_path@,$config_path,;t t
11909
s,@XCFLAGS@,$XCFLAGS,;t t
11910
s,@XLDFLAGS@,$XLDFLAGS,;t t
11911
s,@link_gomp@,$link_gomp,;t t
11912
s,@USE_FORTRAN_TRUE@,$USE_FORTRAN_TRUE,;t t
11913
s,@USE_FORTRAN_FALSE@,$USE_FORTRAN_FALSE,;t t
11914
s,@OMP_LOCK_SIZE@,$OMP_LOCK_SIZE,;t t
11915
s,@OMP_LOCK_ALIGN@,$OMP_LOCK_ALIGN,;t t
11916
s,@OMP_NEST_LOCK_SIZE@,$OMP_NEST_LOCK_SIZE,;t t
11917
s,@OMP_NEST_LOCK_ALIGN@,$OMP_NEST_LOCK_ALIGN,;t t
11918
s,@OMP_LOCK_KIND@,$OMP_LOCK_KIND,;t t
11919
s,@OMP_NEST_LOCK_KIND@,$OMP_NEST_LOCK_KIND,;t t
11920
s,@LIBOBJS@,$LIBOBJS,;t t
11921
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11922
CEOF
11923
 
11924
_ACEOF
11925
 
11926
  cat >>$CONFIG_STATUS <<\_ACEOF
11927
  # Split the substitutions into bite-sized pieces for seds with
11928
  # small command number limits, like on Digital OSF/1 and HP-UX.
11929
  ac_max_sed_lines=48
11930
  ac_sed_frag=1 # Number of current file.
11931
  ac_beg=1 # First line for current file.
11932
  ac_end=$ac_max_sed_lines # Line after last line for current file.
11933
  ac_more_lines=:
11934
  ac_sed_cmds=
11935
  while $ac_more_lines; do
11936
    if test $ac_beg -gt 1; then
11937
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11938
    else
11939
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11940
    fi
11941
    if test ! -s $tmp/subs.frag; then
11942
      ac_more_lines=false
11943
    else
11944
      # The purpose of the label and of the branching condition is to
11945
      # speed up the sed processing (if there are no `@' at all, there
11946
      # is no need to browse any of the substitutions).
11947
      # These are the two extra sed commands mentioned above.
11948
      (echo ':t
11949
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11950
      if test -z "$ac_sed_cmds"; then
11951
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11952
      else
11953
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11954
      fi
11955
      ac_sed_frag=`expr $ac_sed_frag + 1`
11956
      ac_beg=$ac_end
11957
      ac_end=`expr $ac_end + $ac_max_sed_lines`
11958
    fi
11959
  done
11960
  if test -z "$ac_sed_cmds"; then
11961
    ac_sed_cmds=cat
11962
  fi
11963
fi # test -n "$CONFIG_FILES"
11964
 
11965
_ACEOF
11966
cat >>$CONFIG_STATUS <<\_ACEOF
11967
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11968
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11969
  case $ac_file in
11970
  - | *:- | *:-:* ) # input from stdin
11971
        cat >$tmp/stdin
11972
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11973
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11974
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11975
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11976
  * )   ac_file_in=$ac_file.in ;;
11977
  esac
11978
 
11979
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11980
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11981
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11982
         X"$ac_file" : 'X\(//\)[^/]' \| \
11983
         X"$ac_file" : 'X\(//\)$' \| \
11984
         X"$ac_file" : 'X\(/\)' \| \
11985
         .     : '\(.\)' 2>/dev/null ||
11986
echo X"$ac_file" |
11987
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11988
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11989
          /^X\(\/\/\)$/{ s//\1/; q; }
11990
          /^X\(\/\).*/{ s//\1/; q; }
11991
          s/.*/./; q'`
11992
  { if $as_mkdir_p; then
11993
    mkdir -p "$ac_dir"
11994
  else
11995
    as_dir="$ac_dir"
11996
    as_dirs=
11997
    while test ! -d "$as_dir"; do
11998
      as_dirs="$as_dir $as_dirs"
11999
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
12000
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12001
         X"$as_dir" : 'X\(//\)[^/]' \| \
12002
         X"$as_dir" : 'X\(//\)$' \| \
12003
         X"$as_dir" : 'X\(/\)' \| \
12004
         .     : '\(.\)' 2>/dev/null ||
12005
echo X"$as_dir" |
12006
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12007
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12008
          /^X\(\/\/\)$/{ s//\1/; q; }
12009
          /^X\(\/\).*/{ s//\1/; q; }
12010
          s/.*/./; q'`
12011
    done
12012
    test ! -n "$as_dirs" || mkdir $as_dirs
12013
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12014
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12015
   { (exit 1); exit 1; }; }; }
12016
 
12017
  ac_builddir=.
12018
 
12019
if test "$ac_dir" != .; then
12020
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12021
  # A "../" for each directory in $ac_dir_suffix.
12022
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12023
else
12024
  ac_dir_suffix= ac_top_builddir=
12025
fi
12026
 
12027
case $srcdir in
12028
  .)  # No --srcdir option.  We are building in place.
12029
    ac_srcdir=.
12030
    if test -z "$ac_top_builddir"; then
12031
       ac_top_srcdir=.
12032
    else
12033
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12034
    fi ;;
12035
  [\\/]* | ?:[\\/]* )  # Absolute path.
12036
    ac_srcdir=$srcdir$ac_dir_suffix;
12037
    ac_top_srcdir=$srcdir ;;
12038
  *) # Relative path.
12039
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12040
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
12041
esac
12042
 
12043
# Do not use `cd foo && pwd` to compute absolute paths, because
12044
# the directories may not exist.
12045
case `pwd` in
12046
.) ac_abs_builddir="$ac_dir";;
12047
*)
12048
  case "$ac_dir" in
12049
  .) ac_abs_builddir=`pwd`;;
12050
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12051
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
12052
  esac;;
12053
esac
12054
case $ac_abs_builddir in
12055
.) ac_abs_top_builddir=${ac_top_builddir}.;;
12056
*)
12057
  case ${ac_top_builddir}. in
12058
  .) ac_abs_top_builddir=$ac_abs_builddir;;
12059
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12060
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12061
  esac;;
12062
esac
12063
case $ac_abs_builddir in
12064
.) ac_abs_srcdir=$ac_srcdir;;
12065
*)
12066
  case $ac_srcdir in
12067
  .) ac_abs_srcdir=$ac_abs_builddir;;
12068
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12069
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12070
  esac;;
12071
esac
12072
case $ac_abs_builddir in
12073
.) ac_abs_top_srcdir=$ac_top_srcdir;;
12074
*)
12075
  case $ac_top_srcdir in
12076
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
12077
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12078
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12079
  esac;;
12080
esac
12081
 
12082
 
12083
  case $INSTALL in
12084
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12085
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12086
  esac
12087
 
12088
  if test x"$ac_file" != x-; then
12089
    { echo "$as_me:$LINENO: creating $ac_file" >&5
12090
echo "$as_me: creating $ac_file" >&6;}
12091
    rm -f "$ac_file"
12092
  fi
12093
  # Let's still pretend it is `configure' which instantiates (i.e., don't
12094
  # use $as_me), people would be surprised to read:
12095
  #    /* config.h.  Generated by config.status.  */
12096
  if test x"$ac_file" = x-; then
12097
    configure_input=
12098
  else
12099
    configure_input="$ac_file.  "
12100
  fi
12101
  configure_input=$configure_input"Generated from `echo $ac_file_in |
12102
                                     sed 's,.*/,,'` by configure."
12103
 
12104
  # First look for the input files in the build tree, otherwise in the
12105
  # src tree.
12106
  ac_file_inputs=`IFS=:
12107
    for f in $ac_file_in; do
12108
      case $f in
12109
      -) echo $tmp/stdin ;;
12110
      [\\/$]*)
12111
         # Absolute (can't be DOS-style, as IFS=:)
12112
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12113
echo "$as_me: error: cannot find input file: $f" >&2;}
12114
   { (exit 1); exit 1; }; }
12115
         echo "$f";;
12116
      *) # Relative
12117
         if test -f "$f"; then
12118
           # Build tree
12119
           echo "$f"
12120
         elif test -f "$srcdir/$f"; then
12121
           # Source tree
12122
           echo "$srcdir/$f"
12123
         else
12124
           # /dev/null tree
12125
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12126
echo "$as_me: error: cannot find input file: $f" >&2;}
12127
   { (exit 1); exit 1; }; }
12128
         fi;;
12129
      esac
12130
    done` || { (exit 1); exit 1; }
12131
_ACEOF
12132
cat >>$CONFIG_STATUS <<_ACEOF
12133
  sed "$ac_vpsub
12134
$extrasub
12135
_ACEOF
12136
cat >>$CONFIG_STATUS <<\_ACEOF
12137
:t
12138
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12139
s,@configure_input@,$configure_input,;t t
12140
s,@srcdir@,$ac_srcdir,;t t
12141
s,@abs_srcdir@,$ac_abs_srcdir,;t t
12142
s,@top_srcdir@,$ac_top_srcdir,;t t
12143
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12144
s,@builddir@,$ac_builddir,;t t
12145
s,@abs_builddir@,$ac_abs_builddir,;t t
12146
s,@top_builddir@,$ac_top_builddir,;t t
12147
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12148
s,@INSTALL@,$ac_INSTALL,;t t
12149
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12150
  rm -f $tmp/stdin
12151
  if test x"$ac_file" != x-; then
12152
    mv $tmp/out $ac_file
12153
  else
12154
    cat $tmp/out
12155
    rm -f $tmp/out
12156
  fi
12157
 
12158
done
12159
_ACEOF
12160
cat >>$CONFIG_STATUS <<\_ACEOF
12161
 
12162
#
12163
# CONFIG_HEADER section.
12164
#
12165
 
12166
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12167
# NAME is the cpp macro being defined and VALUE is the value it is being given.
12168
#
12169
# ac_d sets the value in "#define NAME VALUE" lines.
12170
ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
12171
ac_dB='[         ].*$,\1#\2'
12172
ac_dC=' '
12173
ac_dD=',;t'
12174
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12175
ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
12176
ac_uB='$,\1#\2define\3'
12177
ac_uC=' '
12178
ac_uD=',;t'
12179
 
12180
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12181
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12182
  case $ac_file in
12183
  - | *:- | *:-:* ) # input from stdin
12184
        cat >$tmp/stdin
12185
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12186
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12187
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12188
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12189
  * )   ac_file_in=$ac_file.in ;;
12190
  esac
12191
 
12192
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12193
echo "$as_me: creating $ac_file" >&6;}
12194
 
12195
  # First look for the input files in the build tree, otherwise in the
12196
  # src tree.
12197
  ac_file_inputs=`IFS=:
12198
    for f in $ac_file_in; do
12199
      case $f in
12200
      -) echo $tmp/stdin ;;
12201
      [\\/$]*)
12202
         # Absolute (can't be DOS-style, as IFS=:)
12203
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12204
echo "$as_me: error: cannot find input file: $f" >&2;}
12205
   { (exit 1); exit 1; }; }
12206
         # Do quote $f, to prevent DOS paths from being IFS'd.
12207
         echo "$f";;
12208
      *) # Relative
12209
         if test -f "$f"; then
12210
           # Build tree
12211
           echo "$f"
12212
         elif test -f "$srcdir/$f"; then
12213
           # Source tree
12214
           echo "$srcdir/$f"
12215
         else
12216
           # /dev/null tree
12217
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12218
echo "$as_me: error: cannot find input file: $f" >&2;}
12219
   { (exit 1); exit 1; }; }
12220
         fi;;
12221
      esac
12222
    done` || { (exit 1); exit 1; }
12223
  # Remove the trailing spaces.
12224
  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
12225
 
12226
_ACEOF
12227
 
12228
# Transform confdefs.h into two sed scripts, `conftest.defines' and
12229
# `conftest.undefs', that substitutes the proper values into
12230
# config.h.in to produce config.h.  The first handles `#define'
12231
# templates, and the second `#undef' templates.
12232
# And first: Protect against being on the right side of a sed subst in
12233
# config.status.  Protect against being in an unquoted here document
12234
# in config.status.
12235
rm -f conftest.defines conftest.undefs
12236
# Using a here document instead of a string reduces the quoting nightmare.
12237
# Putting comments in sed scripts is not portable.
12238
#
12239
# `end' is used to avoid that the second main sed command (meant for
12240
# 0-ary CPP macros) applies to n-ary macro definitions.
12241
# See the Autoconf documentation for `clear'.
12242
cat >confdef2sed.sed <<\_ACEOF
12243
s/[\\&,]/\\&/g
12244
s,[\\$`],\\&,g
12245
t clear
12246
: clear
12247
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12248
t end
12249
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12250
: end
12251
_ACEOF
12252
# If some macros were called several times there might be several times
12253
# the same #defines, which is useless.  Nevertheless, we may not want to
12254
# sort them, since we want the *last* AC-DEFINE to be honored.
12255
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12256
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12257
rm -f confdef2sed.sed
12258
 
12259
# This sed command replaces #undef with comments.  This is necessary, for
12260
# example, in the case of _POSIX_SOURCE, which is predefined and required
12261
# on some systems where configure will not decide to define it.
12262
cat >>conftest.undefs <<\_ACEOF
12263
s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12264
_ACEOF
12265
 
12266
# Break up conftest.defines because some shells have a limit on the size
12267
# of here documents, and old seds have small limits too (100 cmds).
12268
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12269
echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12270
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12271
echo '  :' >>$CONFIG_STATUS
12272
rm -f conftest.tail
12273
while grep . conftest.defines >/dev/null
12274
do
12275
  # Write a limited-size here document to $tmp/defines.sed.
12276
  echo '  cat >$tmp/defines.sed <>$CONFIG_STATUS
12277
  # Speed up: don't consider the non `#define' lines.
12278
  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
12279
  # Work around the forget-to-reset-the-flag bug.
12280
  echo 't clr' >>$CONFIG_STATUS
12281
  echo ': clr' >>$CONFIG_STATUS
12282
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12283
  echo 'CEOF
12284
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
12285
  rm -f $tmp/in
12286
  mv $tmp/out $tmp/in
12287
' >>$CONFIG_STATUS
12288
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12289
  rm -f conftest.defines
12290
  mv conftest.tail conftest.defines
12291
done
12292
rm -f conftest.defines
12293
echo '  fi # grep' >>$CONFIG_STATUS
12294
echo >>$CONFIG_STATUS
12295
 
12296
# Break up conftest.undefs because some shells have a limit on the size
12297
# of here documents, and old seds have small limits too (100 cmds).
12298
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
12299
rm -f conftest.tail
12300
while grep . conftest.undefs >/dev/null
12301
do
12302
  # Write a limited-size here document to $tmp/undefs.sed.
12303
  echo '  cat >$tmp/undefs.sed <>$CONFIG_STATUS
12304
  # Speed up: don't consider the non `#undef'
12305
  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
12306
  # Work around the forget-to-reset-the-flag bug.
12307
  echo 't clr' >>$CONFIG_STATUS
12308
  echo ': clr' >>$CONFIG_STATUS
12309
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12310
  echo 'CEOF
12311
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12312
  rm -f $tmp/in
12313
  mv $tmp/out $tmp/in
12314
' >>$CONFIG_STATUS
12315
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12316
  rm -f conftest.undefs
12317
  mv conftest.tail conftest.undefs
12318
done
12319
rm -f conftest.undefs
12320
 
12321
cat >>$CONFIG_STATUS <<\_ACEOF
12322
  # Let's still pretend it is `configure' which instantiates (i.e., don't
12323
  # use $as_me), people would be surprised to read:
12324
  #    /* config.h.  Generated by config.status.  */
12325
  if test x"$ac_file" = x-; then
12326
    echo "/* Generated by configure.  */" >$tmp/config.h
12327
  else
12328
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
12329
  fi
12330
  cat $tmp/in >>$tmp/config.h
12331
  rm -f $tmp/in
12332
  if test x"$ac_file" != x-; then
12333
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12334
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12335
echo "$as_me: $ac_file is unchanged" >&6;}
12336
    else
12337
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12338
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12339
         X"$ac_file" : 'X\(//\)[^/]' \| \
12340
         X"$ac_file" : 'X\(//\)$' \| \
12341
         X"$ac_file" : 'X\(/\)' \| \
12342
         .     : '\(.\)' 2>/dev/null ||
12343
echo X"$ac_file" |
12344
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12345
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12346
          /^X\(\/\/\)$/{ s//\1/; q; }
12347
          /^X\(\/\).*/{ s//\1/; q; }
12348
          s/.*/./; q'`
12349
      { if $as_mkdir_p; then
12350
    mkdir -p "$ac_dir"
12351
  else
12352
    as_dir="$ac_dir"
12353
    as_dirs=
12354
    while test ! -d "$as_dir"; do
12355
      as_dirs="$as_dir $as_dirs"
12356
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
12357
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12358
         X"$as_dir" : 'X\(//\)[^/]' \| \
12359
         X"$as_dir" : 'X\(//\)$' \| \
12360
         X"$as_dir" : 'X\(/\)' \| \
12361
         .     : '\(.\)' 2>/dev/null ||
12362
echo X"$as_dir" |
12363
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12364
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12365
          /^X\(\/\/\)$/{ s//\1/; q; }
12366
          /^X\(\/\).*/{ s//\1/; q; }
12367
          s/.*/./; q'`
12368
    done
12369
    test ! -n "$as_dirs" || mkdir $as_dirs
12370
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12371
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12372
   { (exit 1); exit 1; }; }; }
12373
 
12374
      rm -f $ac_file
12375
      mv $tmp/config.h $ac_file
12376
    fi
12377
  else
12378
    cat $tmp/config.h
12379
    rm -f $tmp/config.h
12380
  fi
12381
# Compute $ac_file's index in $config_headers.
12382
_am_stamp_count=1
12383
for _am_header in $config_headers :; do
12384
  case $_am_header in
12385
    $ac_file | $ac_file:* )
12386
      break ;;
12387
    * )
12388
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12389
  esac
12390
done
12391
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
12392
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12393
         X$ac_file : 'X\(//\)[^/]' \| \
12394
         X$ac_file : 'X\(//\)$' \| \
12395
         X$ac_file : 'X\(/\)' \| \
12396
         .     : '\(.\)' 2>/dev/null ||
12397
echo X$ac_file |
12398
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12399
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12400
          /^X\(\/\/\)$/{ s//\1/; q; }
12401
          /^X\(\/\).*/{ s//\1/; q; }
12402
          s/.*/./; q'`/stamp-h$_am_stamp_count
12403
done
12404
_ACEOF
12405
cat >>$CONFIG_STATUS <<\_ACEOF
12406
 
12407
#
12408
# CONFIG_COMMANDS section.
12409
#
12410
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12411
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12412
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12413
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12414
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12415
         X"$ac_dest" : 'X\(//\)[^/]' \| \
12416
         X"$ac_dest" : 'X\(//\)$' \| \
12417
         X"$ac_dest" : 'X\(/\)' \| \
12418
         .     : '\(.\)' 2>/dev/null ||
12419
echo X"$ac_dest" |
12420
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12421
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12422
          /^X\(\/\/\)$/{ s//\1/; q; }
12423
          /^X\(\/\).*/{ s//\1/; q; }
12424
          s/.*/./; q'`
12425
  { if $as_mkdir_p; then
12426
    mkdir -p "$ac_dir"
12427
  else
12428
    as_dir="$ac_dir"
12429
    as_dirs=
12430
    while test ! -d "$as_dir"; do
12431
      as_dirs="$as_dir $as_dirs"
12432
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
12433
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12434
         X"$as_dir" : 'X\(//\)[^/]' \| \
12435
         X"$as_dir" : 'X\(//\)$' \| \
12436
         X"$as_dir" : 'X\(/\)' \| \
12437
         .     : '\(.\)' 2>/dev/null ||
12438
echo X"$as_dir" |
12439
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12440
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12441
          /^X\(\/\/\)$/{ s//\1/; q; }
12442
          /^X\(\/\).*/{ s//\1/; q; }
12443
          s/.*/./; q'`
12444
    done
12445
    test ! -n "$as_dirs" || mkdir $as_dirs
12446
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12447
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12448
   { (exit 1); exit 1; }; }; }
12449
 
12450
  ac_builddir=.
12451
 
12452
if test "$ac_dir" != .; then
12453
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12454
  # A "../" for each directory in $ac_dir_suffix.
12455
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12456
else
12457
  ac_dir_suffix= ac_top_builddir=
12458
fi
12459
 
12460
case $srcdir in
12461
  .)  # No --srcdir option.  We are building in place.
12462
    ac_srcdir=.
12463
    if test -z "$ac_top_builddir"; then
12464
       ac_top_srcdir=.
12465
    else
12466
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12467
    fi ;;
12468
  [\\/]* | ?:[\\/]* )  # Absolute path.
12469
    ac_srcdir=$srcdir$ac_dir_suffix;
12470
    ac_top_srcdir=$srcdir ;;
12471
  *) # Relative path.
12472
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12473
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
12474
esac
12475
 
12476
# Do not use `cd foo && pwd` to compute absolute paths, because
12477
# the directories may not exist.
12478
case `pwd` in
12479
.) ac_abs_builddir="$ac_dir";;
12480
*)
12481
  case "$ac_dir" in
12482
  .) ac_abs_builddir=`pwd`;;
12483
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12484
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
12485
  esac;;
12486
esac
12487
case $ac_abs_builddir in
12488
.) ac_abs_top_builddir=${ac_top_builddir}.;;
12489
*)
12490
  case ${ac_top_builddir}. in
12491
  .) ac_abs_top_builddir=$ac_abs_builddir;;
12492
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12493
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12494
  esac;;
12495
esac
12496
case $ac_abs_builddir in
12497
.) ac_abs_srcdir=$ac_srcdir;;
12498
*)
12499
  case $ac_srcdir in
12500
  .) ac_abs_srcdir=$ac_abs_builddir;;
12501
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12502
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12503
  esac;;
12504
esac
12505
case $ac_abs_builddir in
12506
.) ac_abs_top_srcdir=$ac_top_srcdir;;
12507
*)
12508
  case $ac_top_srcdir in
12509
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
12510
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12511
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12512
  esac;;
12513
esac
12514
 
12515
 
12516
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12517
echo "$as_me: executing $ac_dest commands" >&6;}
12518
  case $ac_dest in
12519
    default-1 )
12520
# Only add multilib support code if we just rebuilt the top-level
12521
# Makefile.
12522
case " $CONFIG_FILES " in
12523
 *" Makefile "*)
12524
   ac_file=Makefile . ${multi_basedir}/config-ml.in
12525
   ;;
12526
esac ;;
12527
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12528
  # Strip MF so we end up with the name of the file.
12529
  mf=`echo "$mf" | sed -e 's/:.*$//'`
12530
  # Check whether this is an Automake generated Makefile or not.
12531
  # We used to match only the files named `Makefile.in', but
12532
  # some people rename them; so instead we look at the file content.
12533
  # Grep'ing the first line is not enough: some people post-process
12534
  # each Makefile.in and add a new line on top of each file to say so.
12535
  # So let's grep whole file.
12536
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12537
    dirpart=`(dirname "$mf") 2>/dev/null ||
12538
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12539
         X"$mf" : 'X\(//\)[^/]' \| \
12540
         X"$mf" : 'X\(//\)$' \| \
12541
         X"$mf" : 'X\(/\)' \| \
12542
         .     : '\(.\)' 2>/dev/null ||
12543
echo X"$mf" |
12544
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12545
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12546
          /^X\(\/\/\)$/{ s//\1/; q; }
12547
          /^X\(\/\).*/{ s//\1/; q; }
12548
          s/.*/./; q'`
12549
  else
12550
    continue
12551
  fi
12552
  # Extract the definition of DEPDIR, am__include, and am__quote
12553
  # from the Makefile without running `make'.
12554
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12555
  test -z "$DEPDIR" && continue
12556
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
12557
  test -z "am__include" && continue
12558
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12559
  # When using ansi2knr, U may be empty or an underscore; expand it
12560
  U=`sed -n 's/^U = //p' < "$mf"`
12561
  # Find all dependency output files, they are included files with
12562
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
12563
  # simplest approach to changing $(DEPDIR) to its actual value in the
12564
  # expansion.
12565
  for file in `sed -n "
12566
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12567
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12568
    # Make sure the directory exists.
12569
    test -f "$dirpart/$file" && continue
12570
    fdir=`(dirname "$file") 2>/dev/null ||
12571
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12572
         X"$file" : 'X\(//\)[^/]' \| \
12573
         X"$file" : 'X\(//\)$' \| \
12574
         X"$file" : 'X\(/\)' \| \
12575
         .     : '\(.\)' 2>/dev/null ||
12576
echo X"$file" |
12577
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12578
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12579
          /^X\(\/\/\)$/{ s//\1/; q; }
12580
          /^X\(\/\).*/{ s//\1/; q; }
12581
          s/.*/./; q'`
12582
    { if $as_mkdir_p; then
12583
    mkdir -p $dirpart/$fdir
12584
  else
12585
    as_dir=$dirpart/$fdir
12586
    as_dirs=
12587
    while test ! -d "$as_dir"; do
12588
      as_dirs="$as_dir $as_dirs"
12589
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
12590
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12591
         X"$as_dir" : 'X\(//\)[^/]' \| \
12592
         X"$as_dir" : 'X\(//\)$' \| \
12593
         X"$as_dir" : 'X\(/\)' \| \
12594
         .     : '\(.\)' 2>/dev/null ||
12595
echo X"$as_dir" |
12596
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12597
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12598
          /^X\(\/\/\)$/{ s//\1/; q; }
12599
          /^X\(\/\).*/{ s//\1/; q; }
12600
          s/.*/./; q'`
12601
    done
12602
    test ! -n "$as_dirs" || mkdir $as_dirs
12603
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
12604
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
12605
   { (exit 1); exit 1; }; }; }
12606
 
12607
    # echo "creating $dirpart/$file"
12608
    echo '# dummy' > "$dirpart/$file"
12609
  done
12610
done
12611
 ;;
12612
    gstdint.h )
12613
if test "$GCC" = yes; then
12614
  echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
12615
else
12616
  echo "/* generated for $CC */" > tmp-stdint.h
12617
fi
12618
 
12619
sed 's/^ *//' >> tmp-stdint.h <
12620
 
12621
  #ifndef GCC_GENERATED_STDINT_H
12622
  #define GCC_GENERATED_STDINT_H 1
12623
 
12624
  #include 
12625
EOF
12626
 
12627
if test "$acx_cv_header_stdint" != stdint.h; then
12628
  echo "#include " >> tmp-stdint.h
12629
fi
12630
if test "$acx_cv_header_stdint" != stddef.h; then
12631
  echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
12632
fi
12633
 
12634
sed 's/^ *//' >> tmp-stdint.h <
12635
  /* glibc uses these symbols as guards to prevent redefinitions.  */
12636
  #ifdef __int8_t_defined
12637
  #define _INT8_T
12638
  #define _INT16_T
12639
  #define _INT32_T
12640
  #endif
12641
  #ifdef __uint32_t_defined
12642
  #define _UINT32_T
12643
  #endif
12644
 
12645
EOF
12646
 
12647
# ----------------- done header, emit basic int types -------------
12648
if test "$acx_cv_header_stdint" = stddef.h; then
12649
  sed 's/^ *//' >> tmp-stdint.h <
12650
 
12651
    #ifndef _UINT8_T
12652
    #define _UINT8_T
12653
    typedef unsigned $acx_cv_type_int8_t uint8_t;
12654
    #endif
12655
 
12656
    #ifndef _UINT16_T
12657
    #define _UINT16_T
12658
    typedef unsigned $acx_cv_type_int16_t uint16_t;
12659
    #endif
12660
 
12661
    #ifndef _UINT32_T
12662
    #define _UINT32_T
12663
    typedef unsigned $acx_cv_type_int32_t uint32_t;
12664
    #endif
12665
 
12666
    #ifndef _INT8_T
12667
    #define _INT8_T
12668
    typedef $acx_cv_type_int8_t int8_t;
12669
    #endif
12670
 
12671
    #ifndef _INT16_T
12672
    #define _INT16_T
12673
    typedef $acx_cv_type_int16_t int16_t;
12674
    #endif
12675
 
12676
    #ifndef _INT32_T
12677
    #define _INT32_T
12678
    typedef $acx_cv_type_int32_t int32_t;
12679
    #endif
12680
EOF
12681
elif test "$ac_cv_type_u_int32_t" = yes; then
12682
  sed 's/^ *//' >> tmp-stdint.h <
12683
 
12684
    /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
12685
    #ifndef _INT8_T
12686
    #define _INT8_T
12687
    #endif
12688
    #ifndef _INT16_T
12689
    #define _INT16_T
12690
    #endif
12691
    #ifndef _INT32_T
12692
    #define _INT32_T
12693
    #endif
12694
 
12695
    #ifndef _UINT8_T
12696
    #define _UINT8_T
12697
    typedef u_int8_t uint8_t;
12698
    #endif
12699
 
12700
    #ifndef _UINT16_T
12701
    #define _UINT16_T
12702
    typedef u_int16_t uint16_t;
12703
    #endif
12704
 
12705
    #ifndef _UINT32_T
12706
    #define _UINT32_T
12707
    typedef u_int32_t uint32_t;
12708
    #endif
12709
EOF
12710
else
12711
  sed 's/^ *//' >> tmp-stdint.h <
12712
 
12713
    /* Some systems have guard macros to prevent redefinitions, define them.  */
12714
    #ifndef _INT8_T
12715
    #define _INT8_T
12716
    #endif
12717
    #ifndef _INT16_T
12718
    #define _INT16_T
12719
    #endif
12720
    #ifndef _INT32_T
12721
    #define _INT32_T
12722
    #endif
12723
    #ifndef _UINT8_T
12724
    #define _UINT8_T
12725
    #endif
12726
    #ifndef _UINT16_T
12727
    #define _UINT16_T
12728
    #endif
12729
    #ifndef _UINT32_T
12730
    #define _UINT32_T
12731
    #endif
12732
EOF
12733
fi
12734
 
12735
# ------------- done basic int types, emit int64_t types ------------
12736
if test "$ac_cv_type_uint64_t" = yes; then
12737
  sed 's/^ *//' >> tmp-stdint.h <
12738
 
12739
    /* system headers have good uint64_t and int64_t */
12740
    #ifndef _INT64_T
12741
    #define _INT64_T
12742
    #endif
12743
    #ifndef _UINT64_T
12744
    #define _UINT64_T
12745
    #endif
12746
EOF
12747
elif test "$ac_cv_type_u_int64_t" = yes; then
12748
  sed 's/^ *//' >> tmp-stdint.h <
12749
 
12750
    /* system headers have an u_int64_t (and int64_t) */
12751
    #ifndef _INT64_T
12752
    #define _INT64_T
12753
    #endif
12754
    #ifndef _UINT64_T
12755
    #define _UINT64_T
12756
    typedef u_int64_t uint64_t;
12757
    #endif
12758
EOF
12759
elif test -n "$acx_cv_type_int64_t"; then
12760
  sed 's/^ *//' >> tmp-stdint.h <
12761
 
12762
    /* architecture has a 64-bit type, $acx_cv_type_int64_t */
12763
    #ifndef _INT64_T
12764
    #define _INT64_T
12765
    typedef $acx_cv_type_int64_t int64_t;
12766
    #endif
12767
    #ifndef _UINT64_T
12768
    #define _UINT64_T
12769
    typedef unsigned $acx_cv_type_int64_t uint64_t;
12770
    #endif
12771
EOF
12772
else
12773
  sed 's/^ *//' >> tmp-stdint.h <
12774
 
12775
    /* some common heuristics for int64_t, using compiler-specific tests */
12776
    #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
12777
    #ifndef _INT64_T
12778
    #define _INT64_T
12779
    typedef long long int64_t;
12780
    #endif
12781
    #ifndef _UINT64_T
12782
    #define _UINT64_T
12783
    typedef unsigned long long uint64_t;
12784
    #endif
12785
 
12786
    #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
12787
    /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
12788
       does not implement __extension__.  But that compiler doesn't define
12789
       __GNUC_MINOR__.  */
12790
    # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
12791
    # define __extension__
12792
    # endif
12793
 
12794
    # ifndef _INT64_T
12795
    # define _INT64_T
12796
    __extension__ typedef long long int64_t;
12797
    # endif
12798
    # ifndef _UINT64_T
12799
    # define _UINT64_T
12800
    __extension__ typedef unsigned long long uint64_t;
12801
    # endif
12802
 
12803
    #elif !defined __STRICT_ANSI__
12804
    # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
12805
 
12806
    #  ifndef _INT64_T
12807
    #  define _INT64_T
12808
    typedef __int64 int64_t;
12809
    #  endif
12810
    #  ifndef _UINT64_T
12811
    #  define _UINT64_T
12812
    typedef unsigned __int64 uint64_t;
12813
    #  endif
12814
    # endif /* compiler */
12815
 
12816
    #endif /* ANSI version */
12817
EOF
12818
fi
12819
 
12820
# ------------- done int64_t types, emit intptr types ------------
12821
if test "$ac_cv_type_uintptr_t" != yes; then
12822
  sed 's/^ *//' >> tmp-stdint.h <
12823
 
12824
    /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
12825
    typedef u$acx_cv_type_intptr_t uintptr_t;
12826
    typedef $acx_cv_type_intptr_t  intptr_t;
12827
EOF
12828
fi
12829
 
12830
# ------------- done intptr types, emit int_least types ------------
12831
if test "$ac_cv_type_int_least32_t" != yes; then
12832
  sed 's/^ *//' >> tmp-stdint.h <
12833
 
12834
    /* Define int_least types */
12835
    typedef int8_t     int_least8_t;
12836
    typedef int16_t    int_least16_t;
12837
    typedef int32_t    int_least32_t;
12838
    #ifdef _INT64_T
12839
    typedef int64_t    int_least64_t;
12840
    #endif
12841
 
12842
    typedef uint8_t    uint_least8_t;
12843
    typedef uint16_t   uint_least16_t;
12844
    typedef uint32_t   uint_least32_t;
12845
    #ifdef _UINT64_T
12846
    typedef uint64_t   uint_least64_t;
12847
    #endif
12848
EOF
12849
fi
12850
 
12851
# ------------- done intptr types, emit int_fast types ------------
12852
if test "$ac_cv_type_int_fast32_t" != yes; then
12853
      sed 's/^ *//' >> tmp-stdint.h <
12854
 
12855
    /* Define int_fast types.  short is often slow */
12856
    typedef int8_t       int_fast8_t;
12857
    typedef int          int_fast16_t;
12858
    typedef int32_t      int_fast32_t;
12859
    #ifdef _INT64_T
12860
    typedef int64_t      int_fast64_t;
12861
    #endif
12862
 
12863
    typedef uint8_t      uint_fast8_t;
12864
    typedef unsigned int uint_fast16_t;
12865
    typedef uint32_t     uint_fast32_t;
12866
    #ifdef _UINT64_T
12867
    typedef uint64_t     uint_fast64_t;
12868
    #endif
12869
EOF
12870
fi
12871
 
12872
if test "$ac_cv_type_uintmax_t" != yes; then
12873
  sed 's/^ *//' >> tmp-stdint.h <
12874
 
12875
    /* Define intmax based on what we found */
12876
    #ifdef _INT64_T
12877
    typedef int64_t       intmax_t;
12878
    #else
12879
    typedef long          intmax_t;
12880
    #endif
12881
    #ifdef _UINT64_T
12882
    typedef uint64_t      uintmax_t;
12883
    #else
12884
    typedef unsigned long uintmax_t;
12885
    #endif
12886
EOF
12887
fi
12888
 
12889
sed 's/^ *//' >> tmp-stdint.h <
12890
 
12891
  #endif /* GCC_GENERATED_STDINT_H */
12892
EOF
12893
 
12894
if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
12895
  rm -f tmp-stdint.h
12896
else
12897
  mv -f tmp-stdint.h gstdint.h
12898
fi
12899
 
12900
 ;;
12901
  esac
12902
done
12903
_ACEOF
12904
 
12905
cat >>$CONFIG_STATUS <<\_ACEOF
12906
 
12907
{ (exit 0); exit 0; }
12908
_ACEOF
12909
chmod +x $CONFIG_STATUS
12910
ac_clean_files=$ac_clean_files_save
12911
 
12912
 
12913
# configure is writing to config.log, and then calls config.status.
12914
# config.status does its own redirection, appending to config.log.
12915
# Unfortunately, on DOS this fails, as config.log is still kept open
12916
# by configure, so config.status won't be able to write to it; its
12917
# output is simply discarded.  So we exec the FD to /dev/null,
12918
# effectively closing config.log, so it can be properly (re)opened and
12919
# appended to by config.status.  When coming back to configure, we
12920
# need to make the FD available again.
12921
if test "$no_create" != yes; then
12922
  ac_cs_success=:
12923
  ac_config_status_args=
12924
  test "$silent" = yes &&
12925
    ac_config_status_args="$ac_config_status_args --quiet"
12926
  exec 5>/dev/null
12927
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12928
  exec 5>>config.log
12929
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12930
  # would make configure fail if this is the last instruction.
12931
  $ac_cs_success || { (exit 1); exit 1; }
12932
fi
12933
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.