]> gcc.gnu.org Git - gcc.git/blob - libgomp/configure
* splay-tree.h: Fix whitespace.
[gcc.git] / libgomp / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for GNU OpenMP Runtime Library 1.0.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43 do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97 fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
153 ;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
247
248 case X$lt_ECHO in
249 X*--fallback-echo)
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
252 ;;
253 esac
254
255 ECHO=${lt_ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
258 shift
259 elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
261 :
262 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $ECHO works!
264 :
265 else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
268 fi
269
270 if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
272 shift
273 cat <<_LT_EOF
274 $*
275 _LT_EOF
276 exit 0
277 fi
278
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
280 # if CDPATH is set.
281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
282
283 if test -z "$lt_ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
289 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
290 then
291 break
292 fi
293 done
294 fi
295
296 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
297 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
298 test "X$echo_testing_string" = "X$echo_test_string"; then
299 :
300 else
301 # The Solaris, AIX, and Digital Unix default echo programs unquote
302 # backslashes. This makes it impossible to quote backslashes using
303 # echo "$something" | sed 's/\\/\\\\/g'
304 #
305 # So, first we look for a working echo in the user's PATH.
306
307 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
308 for dir in $PATH /usr/ucb; do
309 IFS="$lt_save_ifs"
310 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
311 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313 test "X$echo_testing_string" = "X$echo_test_string"; then
314 ECHO="$dir/echo"
315 break
316 fi
317 done
318 IFS="$lt_save_ifs"
319
320 if test "X$ECHO" = Xecho; then
321 # We didn't find a better echo, so look for alternatives.
322 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
323 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
324 test "X$echo_testing_string" = "X$echo_test_string"; then
325 # This shell has a builtin print -r that does the trick.
326 ECHO='print -r'
327 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
328 test "X$CONFIG_SHELL" != X/bin/ksh; then
329 # If we have ksh, try running configure again with it.
330 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
331 export ORIGINAL_CONFIG_SHELL
332 CONFIG_SHELL=/bin/ksh
333 export CONFIG_SHELL
334 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
335 else
336 # Try using printf.
337 ECHO='printf %s\n'
338 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
339 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
340 test "X$echo_testing_string" = "X$echo_test_string"; then
341 # Cool, printf works
342 :
343 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344 test "X$echo_testing_string" = 'X\t' &&
345 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
346 test "X$echo_testing_string" = "X$echo_test_string"; then
347 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
348 export CONFIG_SHELL
349 SHELL="$CONFIG_SHELL"
350 export SHELL
351 ECHO="$CONFIG_SHELL $0 --fallback-echo"
352 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353 test "X$echo_testing_string" = 'X\t' &&
354 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355 test "X$echo_testing_string" = "X$echo_test_string"; then
356 ECHO="$CONFIG_SHELL $0 --fallback-echo"
357 else
358 # maybe with a smaller string...
359 prev=:
360
361 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
363 then
364 break
365 fi
366 prev="$cmd"
367 done
368
369 if test "$prev" != 'sed 50q "$0"'; then
370 echo_test_string=`eval $prev`
371 export echo_test_string
372 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
373 else
374 # Oops. We lost completely, so just stick with echo.
375 ECHO=echo
376 fi
377 fi
378 fi
379 fi
380 fi
381 fi
382
383 # Copy echo and quote the copy suitably for passing to libtool from
384 # the Makefile, instead of quoting the original, which is used later.
385 lt_ECHO=$ECHO
386 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
388 fi
389
390
391
392
393 # Name of the host.
394 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395 # so uname gets run too.
396 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
397
398 exec 6>&1
399
400 #
401 # Initializations.
402 #
403 ac_default_prefix=/usr/local
404 ac_config_libobj_dir=.
405 cross_compiling=no
406 subdirs=
407 MFLAGS=
408 MAKEFLAGS=
409 SHELL=${CONFIG_SHELL-/bin/sh}
410
411 # Maximum number of lines to put in a shell here document.
412 # This variable seems obsolete. It should probably be removed, and
413 # only ac_max_sed_lines should be used.
414 : ${ac_max_here_lines=38}
415
416 # Identity of this package.
417 PACKAGE_NAME='GNU OpenMP Runtime Library'
418 PACKAGE_TARNAME='libgomp'
419 PACKAGE_VERSION='1.0'
420 PACKAGE_STRING='GNU OpenMP Runtime Library 1.0'
421 PACKAGE_BUGREPORT=''
422
423 # Factoring default headers for most tests.
424 ac_includes_default="\
425 #include <stdio.h>
426 #if HAVE_SYS_TYPES_H
427 # include <sys/types.h>
428 #endif
429 #if HAVE_SYS_STAT_H
430 # include <sys/stat.h>
431 #endif
432 #if STDC_HEADERS
433 # include <stdlib.h>
434 # include <stddef.h>
435 #else
436 # if HAVE_STDLIB_H
437 # include <stdlib.h>
438 # endif
439 #endif
440 #if HAVE_STRING_H
441 # if !STDC_HEADERS && HAVE_MEMORY_H
442 # include <memory.h>
443 # endif
444 # include <string.h>
445 #endif
446 #if HAVE_STRINGS_H
447 # include <strings.h>
448 #endif
449 #if HAVE_INTTYPES_H
450 # include <inttypes.h>
451 #else
452 # if HAVE_STDINT_H
453 # include <stdint.h>
454 # endif
455 #endif
456 #if HAVE_UNISTD_H
457 # include <unistd.h>
458 #endif"
459
460 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 LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S lt_ECHO CPP CPPFLAGS enable_shared enable_static MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT FC FCFLAGS LDFLAGS ac_ct_FC libtool_VERSION 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'
461 ac_subst_files=''
462
463 # Initialize some variables set by options.
464 ac_init_help=
465 ac_init_version=false
466 # The variables have the same names as the options, with
467 # dashes changed to underlines.
468 cache_file=/dev/null
469 exec_prefix=NONE
470 no_create=
471 no_recursion=
472 prefix=NONE
473 program_prefix=NONE
474 program_suffix=NONE
475 program_transform_name=s,x,x,
476 silent=
477 site=
478 srcdir=
479 verbose=
480 x_includes=NONE
481 x_libraries=NONE
482
483 # Installation directory options.
484 # These are left unexpanded so users can "make install exec_prefix=/foo"
485 # and all the variables that are supposed to be based on exec_prefix
486 # by default will actually change.
487 # Use braces instead of parens because sh, perl, etc. also accept them.
488 bindir='${exec_prefix}/bin'
489 sbindir='${exec_prefix}/sbin'
490 libexecdir='${exec_prefix}/libexec'
491 datadir='${prefix}/share'
492 sysconfdir='${prefix}/etc'
493 sharedstatedir='${prefix}/com'
494 localstatedir='${prefix}/var'
495 libdir='${exec_prefix}/lib'
496 includedir='${prefix}/include'
497 oldincludedir='/usr/include'
498 infodir='${prefix}/info'
499 mandir='${prefix}/man'
500
501 ac_prev=
502 for ac_option
503 do
504 # If the previous option needs an argument, assign it.
505 if test -n "$ac_prev"; then
506 eval "$ac_prev=\$ac_option"
507 ac_prev=
508 continue
509 fi
510
511 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
512
513 # Accept the important Cygnus configure options, so we can diagnose typos.
514
515 case $ac_option in
516
517 -bindir | --bindir | --bindi | --bind | --bin | --bi)
518 ac_prev=bindir ;;
519 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
520 bindir=$ac_optarg ;;
521
522 -build | --build | --buil | --bui | --bu)
523 ac_prev=build_alias ;;
524 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
525 build_alias=$ac_optarg ;;
526
527 -cache-file | --cache-file | --cache-fil | --cache-fi \
528 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
529 ac_prev=cache_file ;;
530 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
531 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
532 cache_file=$ac_optarg ;;
533
534 --config-cache | -C)
535 cache_file=config.cache ;;
536
537 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
538 ac_prev=datadir ;;
539 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
540 | --da=*)
541 datadir=$ac_optarg ;;
542
543 -disable-* | --disable-*)
544 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
545 # Reject names that are not valid shell variable names.
546 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
547 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
548 { (exit 1); exit 1; }; }
549 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
550 eval "enable_$ac_feature=no" ;;
551
552 -enable-* | --enable-*)
553 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
554 # Reject names that are not valid shell variable names.
555 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
556 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
557 { (exit 1); exit 1; }; }
558 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
559 case $ac_option in
560 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
561 *) ac_optarg=yes ;;
562 esac
563 eval "enable_$ac_feature='$ac_optarg'" ;;
564
565 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
566 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
567 | --exec | --exe | --ex)
568 ac_prev=exec_prefix ;;
569 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
570 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
571 | --exec=* | --exe=* | --ex=*)
572 exec_prefix=$ac_optarg ;;
573
574 -gas | --gas | --ga | --g)
575 # Obsolete; use --with-gas.
576 with_gas=yes ;;
577
578 -help | --help | --hel | --he | -h)
579 ac_init_help=long ;;
580 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
581 ac_init_help=recursive ;;
582 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
583 ac_init_help=short ;;
584
585 -host | --host | --hos | --ho)
586 ac_prev=host_alias ;;
587 -host=* | --host=* | --hos=* | --ho=*)
588 host_alias=$ac_optarg ;;
589
590 -includedir | --includedir | --includedi | --included | --include \
591 | --includ | --inclu | --incl | --inc)
592 ac_prev=includedir ;;
593 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
594 | --includ=* | --inclu=* | --incl=* | --inc=*)
595 includedir=$ac_optarg ;;
596
597 -infodir | --infodir | --infodi | --infod | --info | --inf)
598 ac_prev=infodir ;;
599 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
600 infodir=$ac_optarg ;;
601
602 -libdir | --libdir | --libdi | --libd)
603 ac_prev=libdir ;;
604 -libdir=* | --libdir=* | --libdi=* | --libd=*)
605 libdir=$ac_optarg ;;
606
607 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
608 | --libexe | --libex | --libe)
609 ac_prev=libexecdir ;;
610 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
611 | --libexe=* | --libex=* | --libe=*)
612 libexecdir=$ac_optarg ;;
613
614 -localstatedir | --localstatedir | --localstatedi | --localstated \
615 | --localstate | --localstat | --localsta | --localst \
616 | --locals | --local | --loca | --loc | --lo)
617 ac_prev=localstatedir ;;
618 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
619 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
620 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
621 localstatedir=$ac_optarg ;;
622
623 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
624 ac_prev=mandir ;;
625 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
626 mandir=$ac_optarg ;;
627
628 -nfp | --nfp | --nf)
629 # Obsolete; use --without-fp.
630 with_fp=no ;;
631
632 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
633 | --no-cr | --no-c | -n)
634 no_create=yes ;;
635
636 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
637 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
638 no_recursion=yes ;;
639
640 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
641 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
642 | --oldin | --oldi | --old | --ol | --o)
643 ac_prev=oldincludedir ;;
644 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
645 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
646 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
647 oldincludedir=$ac_optarg ;;
648
649 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
650 ac_prev=prefix ;;
651 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
652 prefix=$ac_optarg ;;
653
654 -program-prefix | --program-prefix | --program-prefi | --program-pref \
655 | --program-pre | --program-pr | --program-p)
656 ac_prev=program_prefix ;;
657 -program-prefix=* | --program-prefix=* | --program-prefi=* \
658 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
659 program_prefix=$ac_optarg ;;
660
661 -program-suffix | --program-suffix | --program-suffi | --program-suff \
662 | --program-suf | --program-su | --program-s)
663 ac_prev=program_suffix ;;
664 -program-suffix=* | --program-suffix=* | --program-suffi=* \
665 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
666 program_suffix=$ac_optarg ;;
667
668 -program-transform-name | --program-transform-name \
669 | --program-transform-nam | --program-transform-na \
670 | --program-transform-n | --program-transform- \
671 | --program-transform | --program-transfor \
672 | --program-transfo | --program-transf \
673 | --program-trans | --program-tran \
674 | --progr-tra | --program-tr | --program-t)
675 ac_prev=program_transform_name ;;
676 -program-transform-name=* | --program-transform-name=* \
677 | --program-transform-nam=* | --program-transform-na=* \
678 | --program-transform-n=* | --program-transform-=* \
679 | --program-transform=* | --program-transfor=* \
680 | --program-transfo=* | --program-transf=* \
681 | --program-trans=* | --program-tran=* \
682 | --progr-tra=* | --program-tr=* | --program-t=*)
683 program_transform_name=$ac_optarg ;;
684
685 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
686 | -silent | --silent | --silen | --sile | --sil)
687 silent=yes ;;
688
689 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
690 ac_prev=sbindir ;;
691 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
692 | --sbi=* | --sb=*)
693 sbindir=$ac_optarg ;;
694
695 -sharedstatedir | --sharedstatedir | --sharedstatedi \
696 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
697 | --sharedst | --shareds | --shared | --share | --shar \
698 | --sha | --sh)
699 ac_prev=sharedstatedir ;;
700 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
701 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
702 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
703 | --sha=* | --sh=*)
704 sharedstatedir=$ac_optarg ;;
705
706 -site | --site | --sit)
707 ac_prev=site ;;
708 -site=* | --site=* | --sit=*)
709 site=$ac_optarg ;;
710
711 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
712 ac_prev=srcdir ;;
713 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
714 srcdir=$ac_optarg ;;
715
716 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
717 | --syscon | --sysco | --sysc | --sys | --sy)
718 ac_prev=sysconfdir ;;
719 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
720 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
721 sysconfdir=$ac_optarg ;;
722
723 -target | --target | --targe | --targ | --tar | --ta | --t)
724 ac_prev=target_alias ;;
725 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
726 target_alias=$ac_optarg ;;
727
728 -v | -verbose | --verbose | --verbos | --verbo | --verb)
729 verbose=yes ;;
730
731 -version | --version | --versio | --versi | --vers | -V)
732 ac_init_version=: ;;
733
734 -with-* | --with-*)
735 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
736 # Reject names that are not valid shell variable names.
737 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
738 { echo "$as_me: error: invalid package name: $ac_package" >&2
739 { (exit 1); exit 1; }; }
740 ac_package=`echo $ac_package| sed 's/-/_/g'`
741 case $ac_option in
742 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
743 *) ac_optarg=yes ;;
744 esac
745 eval "with_$ac_package='$ac_optarg'" ;;
746
747 -without-* | --without-*)
748 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
749 # Reject names that are not valid shell variable names.
750 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
751 { echo "$as_me: error: invalid package name: $ac_package" >&2
752 { (exit 1); exit 1; }; }
753 ac_package=`echo $ac_package | sed 's/-/_/g'`
754 eval "with_$ac_package=no" ;;
755
756 --x)
757 # Obsolete; use --with-x.
758 with_x=yes ;;
759
760 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
761 | --x-incl | --x-inc | --x-in | --x-i)
762 ac_prev=x_includes ;;
763 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
764 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
765 x_includes=$ac_optarg ;;
766
767 -x-libraries | --x-libraries | --x-librarie | --x-librari \
768 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
769 ac_prev=x_libraries ;;
770 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
771 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
772 x_libraries=$ac_optarg ;;
773
774 -*) { echo "$as_me: error: unrecognized option: $ac_option
775 Try \`$0 --help' for more information." >&2
776 { (exit 1); exit 1; }; }
777 ;;
778
779 *=*)
780 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
781 # Reject names that are not valid shell variable names.
782 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
783 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
784 { (exit 1); exit 1; }; }
785 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
786 eval "$ac_envvar='$ac_optarg'"
787 export $ac_envvar ;;
788
789 *)
790 # FIXME: should be removed in autoconf 3.0.
791 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
792 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
793 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
794 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
795 ;;
796
797 esac
798 done
799
800 if test -n "$ac_prev"; then
801 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
802 { echo "$as_me: error: missing argument to $ac_option" >&2
803 { (exit 1); exit 1; }; }
804 fi
805
806 # Be sure to have absolute paths.
807 for ac_var in exec_prefix prefix
808 do
809 eval ac_val=$`echo $ac_var`
810 case $ac_val in
811 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
812 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
813 { (exit 1); exit 1; }; };;
814 esac
815 done
816
817 # Be sure to have absolute paths.
818 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
819 localstatedir libdir includedir oldincludedir infodir mandir
820 do
821 eval ac_val=$`echo $ac_var`
822 case $ac_val in
823 [\\/$]* | ?:[\\/]* ) ;;
824 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
825 { (exit 1); exit 1; }; };;
826 esac
827 done
828
829 # There might be people who depend on the old broken behavior: `$host'
830 # used to hold the argument of --host etc.
831 # FIXME: To remove some day.
832 build=$build_alias
833 host=$host_alias
834 target=$target_alias
835
836 # FIXME: To remove some day.
837 if test "x$host_alias" != x; then
838 if test "x$build_alias" = x; then
839 cross_compiling=maybe
840 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
841 If a cross compiler is detected then cross compile mode will be used." >&2
842 elif test "x$build_alias" != "x$host_alias"; then
843 cross_compiling=yes
844 fi
845 fi
846
847 ac_tool_prefix=
848 test -n "$host_alias" && ac_tool_prefix=$host_alias-
849
850 test "$silent" = yes && exec 6>/dev/null
851
852
853 # Find the source files, if location was not specified.
854 if test -z "$srcdir"; then
855 ac_srcdir_defaulted=yes
856 # Try the directory containing this script, then its parent.
857 ac_confdir=`(dirname "$0") 2>/dev/null ||
858 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
859 X"$0" : 'X\(//\)[^/]' \| \
860 X"$0" : 'X\(//\)$' \| \
861 X"$0" : 'X\(/\)' \| \
862 . : '\(.\)' 2>/dev/null ||
863 echo X"$0" |
864 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
865 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
866 /^X\(\/\/\)$/{ s//\1/; q; }
867 /^X\(\/\).*/{ s//\1/; q; }
868 s/.*/./; q'`
869 srcdir=$ac_confdir
870 if test ! -r $srcdir/$ac_unique_file; then
871 srcdir=..
872 fi
873 else
874 ac_srcdir_defaulted=no
875 fi
876 if test ! -r $srcdir/$ac_unique_file; then
877 if test "$ac_srcdir_defaulted" = yes; then
878 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
879 { (exit 1); exit 1; }; }
880 else
881 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
882 { (exit 1); exit 1; }; }
883 fi
884 fi
885 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
886 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
887 { (exit 1); exit 1; }; }
888 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
889 ac_env_build_alias_set=${build_alias+set}
890 ac_env_build_alias_value=$build_alias
891 ac_cv_env_build_alias_set=${build_alias+set}
892 ac_cv_env_build_alias_value=$build_alias
893 ac_env_host_alias_set=${host_alias+set}
894 ac_env_host_alias_value=$host_alias
895 ac_cv_env_host_alias_set=${host_alias+set}
896 ac_cv_env_host_alias_value=$host_alias
897 ac_env_target_alias_set=${target_alias+set}
898 ac_env_target_alias_value=$target_alias
899 ac_cv_env_target_alias_set=${target_alias+set}
900 ac_cv_env_target_alias_value=$target_alias
901 ac_env_CPP_set=${CPP+set}
902 ac_env_CPP_value=$CPP
903 ac_cv_env_CPP_set=${CPP+set}
904 ac_cv_env_CPP_value=$CPP
905 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
906 ac_env_CPPFLAGS_value=$CPPFLAGS
907 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
908 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
909 ac_env_FC_set=${FC+set}
910 ac_env_FC_value=$FC
911 ac_cv_env_FC_set=${FC+set}
912 ac_cv_env_FC_value=$FC
913 ac_env_FCFLAGS_set=${FCFLAGS+set}
914 ac_env_FCFLAGS_value=$FCFLAGS
915 ac_cv_env_FCFLAGS_set=${FCFLAGS+set}
916 ac_cv_env_FCFLAGS_value=$FCFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921
922 #
923 # Report the --help message.
924 #
925 if test "$ac_init_help" = "long"; then
926 # Omit some internal or obsolete options to make the list less imposing.
927 # This message is too long to be a string in the A/UX 3.1 sh.
928 cat <<_ACEOF
929 \`configure' configures GNU OpenMP Runtime Library 1.0 to adapt to many kinds of systems.
930
931 Usage: $0 [OPTION]... [VAR=VALUE]...
932
933 To assign environment variables (e.g., CC, CFLAGS...), specify them as
934 VAR=VALUE. See below for descriptions of some of the useful variables.
935
936 Defaults for the options are specified in brackets.
937
938 Configuration:
939 -h, --help display this help and exit
940 --help=short display options specific to this package
941 --help=recursive display the short help of all the included packages
942 -V, --version display version information and exit
943 -q, --quiet, --silent do not print \`checking...' messages
944 --cache-file=FILE cache test results in FILE [disabled]
945 -C, --config-cache alias for \`--cache-file=config.cache'
946 -n, --no-create do not create output files
947 --srcdir=DIR find the sources in DIR [configure dir or \`..']
948
949 _ACEOF
950
951 cat <<_ACEOF
952 Installation directories:
953 --prefix=PREFIX install architecture-independent files in PREFIX
954 [$ac_default_prefix]
955 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
956 [PREFIX]
957
958 By default, \`make install' will install all the files in
959 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
960 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
961 for instance \`--prefix=\$HOME'.
962
963 For better control, use the options below.
964
965 Fine tuning of the installation directories:
966 --bindir=DIR user executables [EPREFIX/bin]
967 --sbindir=DIR system admin executables [EPREFIX/sbin]
968 --libexecdir=DIR program executables [EPREFIX/libexec]
969 --datadir=DIR read-only architecture-independent data [PREFIX/share]
970 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
971 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
972 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
973 --libdir=DIR object code libraries [EPREFIX/lib]
974 --includedir=DIR C header files [PREFIX/include]
975 --oldincludedir=DIR C header files for non-gcc [/usr/include]
976 --infodir=DIR info documentation [PREFIX/info]
977 --mandir=DIR man documentation [PREFIX/man]
978 _ACEOF
979
980 cat <<\_ACEOF
981
982 Program names:
983 --program-prefix=PREFIX prepend PREFIX to installed program names
984 --program-suffix=SUFFIX append SUFFIX to installed program names
985 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
986
987 System types:
988 --build=BUILD configure for building on BUILD [guessed]
989 --host=HOST cross-compile to build programs to run on HOST [BUILD]
990 --target=TARGET configure for building compilers for TARGET [HOST]
991 _ACEOF
992 fi
993
994 if test -n "$ac_init_help"; then
995 case $ac_init_help in
996 short | recursive ) echo "Configuration of GNU OpenMP Runtime Library 1.0:";;
997 esac
998 cat <<\_ACEOF
999
1000 Optional Features:
1001 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1002 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1003 --enable-version-specific-runtime-libs
1004 Specify that runtime libraries should be installed
1005 in a compiler-specific directory [default=no]
1006 --enable-linux-futex Use the Linux futex system call
1007 [default=default]
1008 --enable-generated-files-in-srcdir
1009 put copies of generated files in source dir intended
1010 for creating source tarballs for users without
1011 texinfo bison or flex. [default=no]
1012 --enable-multilib build many library versions (default)
1013 --disable-dependency-tracking speeds up one-time build
1014 --enable-dependency-tracking do not reject slow dependency extractors
1015 --enable-shared[=PKGS]
1016 build shared libraries [default=yes]
1017 --enable-static[=PKGS]
1018 build static libraries [default=yes]
1019 --enable-fast-install[=PKGS]
1020 optimize for fast installation [default=yes]
1021 --disable-libtool-lock avoid locking (might break parallel builds)
1022 --enable-maintainer-mode enable make rules and dependencies not useful
1023 (and sometimes confusing) to the casual installer
1024 --enable-tls Use thread-local storage [default=yes]
1025 --enable-symvers=STYLE enables symbol versioning of the shared library
1026 [default=yes]
1027
1028 Optional Packages:
1029 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1030 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1031 --with-pic try to use only PIC/non-PIC objects [default=use
1032 both]
1033 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1034
1035 Some influential environment variables:
1036 CC C compiler command
1037 CFLAGS C compiler flags
1038 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1039 nonstandard directory <lib dir>
1040 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1041 headers in a nonstandard directory <include dir>
1042 CPP C preprocessor
1043 FC Fortran compiler command
1044 FCFLAGS Fortran compiler flags
1045
1046 Use these variables to override the choices made by `configure' or to help
1047 it to find libraries and programs with nonstandard names/locations.
1048
1049 _ACEOF
1050 fi
1051
1052 if test "$ac_init_help" = "recursive"; then
1053 # If there are subdirs, report their specific --help.
1054 ac_popdir=`pwd`
1055 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1056 test -d $ac_dir || continue
1057 ac_builddir=.
1058
1059 if test "$ac_dir" != .; then
1060 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1061 # A "../" for each directory in $ac_dir_suffix.
1062 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1063 else
1064 ac_dir_suffix= ac_top_builddir=
1065 fi
1066
1067 case $srcdir in
1068 .) # No --srcdir option. We are building in place.
1069 ac_srcdir=.
1070 if test -z "$ac_top_builddir"; then
1071 ac_top_srcdir=.
1072 else
1073 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1074 fi ;;
1075 [\\/]* | ?:[\\/]* ) # Absolute path.
1076 ac_srcdir=$srcdir$ac_dir_suffix;
1077 ac_top_srcdir=$srcdir ;;
1078 *) # Relative path.
1079 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1080 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1081 esac
1082
1083 # Do not use `cd foo && pwd` to compute absolute paths, because
1084 # the directories may not exist.
1085 case `pwd` in
1086 .) ac_abs_builddir="$ac_dir";;
1087 *)
1088 case "$ac_dir" in
1089 .) ac_abs_builddir=`pwd`;;
1090 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1091 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1092 esac;;
1093 esac
1094 case $ac_abs_builddir in
1095 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1096 *)
1097 case ${ac_top_builddir}. in
1098 .) ac_abs_top_builddir=$ac_abs_builddir;;
1099 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1100 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1101 esac;;
1102 esac
1103 case $ac_abs_builddir in
1104 .) ac_abs_srcdir=$ac_srcdir;;
1105 *)
1106 case $ac_srcdir in
1107 .) ac_abs_srcdir=$ac_abs_builddir;;
1108 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1109 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1110 esac;;
1111 esac
1112 case $ac_abs_builddir in
1113 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1114 *)
1115 case $ac_top_srcdir in
1116 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1117 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1118 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1119 esac;;
1120 esac
1121
1122 cd $ac_dir
1123 # Check for guested configure; otherwise get Cygnus style configure.
1124 if test -f $ac_srcdir/configure.gnu; then
1125 echo
1126 $SHELL $ac_srcdir/configure.gnu --help=recursive
1127 elif test -f $ac_srcdir/configure; then
1128 echo
1129 $SHELL $ac_srcdir/configure --help=recursive
1130 elif test -f $ac_srcdir/configure.ac ||
1131 test -f $ac_srcdir/configure.in; then
1132 echo
1133 $ac_configure --help
1134 else
1135 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1136 fi
1137 cd $ac_popdir
1138 done
1139 fi
1140
1141 test -n "$ac_init_help" && exit 0
1142 if $ac_init_version; then
1143 cat <<\_ACEOF
1144 GNU OpenMP Runtime Library configure 1.0
1145 generated by GNU Autoconf 2.59
1146
1147 Copyright (C) 2003 Free Software Foundation, Inc.
1148 This configure script is free software; the Free Software Foundation
1149 gives unlimited permission to copy, distribute and modify it.
1150 _ACEOF
1151 exit 0
1152 fi
1153 exec 5>config.log
1154 cat >&5 <<_ACEOF
1155 This file contains any messages produced by compilers while
1156 running configure, to aid debugging if configure makes a mistake.
1157
1158 It was created by GNU OpenMP Runtime Library $as_me 1.0, which was
1159 generated by GNU Autoconf 2.59. Invocation command line was
1160
1161 $ $0 $@
1162
1163 _ACEOF
1164 {
1165 cat <<_ASUNAME
1166 ## --------- ##
1167 ## Platform. ##
1168 ## --------- ##
1169
1170 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1171 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1172 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1173 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1174 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1175
1176 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1177 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1178
1179 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1180 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1181 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1182 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1183 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1184 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1185 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1186
1187 _ASUNAME
1188
1189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1190 for as_dir in $PATH
1191 do
1192 IFS=$as_save_IFS
1193 test -z "$as_dir" && as_dir=.
1194 echo "PATH: $as_dir"
1195 done
1196
1197 } >&5
1198
1199 cat >&5 <<_ACEOF
1200
1201
1202 ## ----------- ##
1203 ## Core tests. ##
1204 ## ----------- ##
1205
1206 _ACEOF
1207
1208
1209 # Keep a trace of the command line.
1210 # Strip out --no-create and --no-recursion so they do not pile up.
1211 # Strip out --silent because we don't want to record it for future runs.
1212 # Also quote any args containing shell meta-characters.
1213 # Make two passes to allow for proper duplicate-argument suppression.
1214 ac_configure_args=
1215 ac_configure_args0=
1216 ac_configure_args1=
1217 ac_sep=
1218 ac_must_keep_next=false
1219 for ac_pass in 1 2
1220 do
1221 for ac_arg
1222 do
1223 case $ac_arg in
1224 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1225 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1226 | -silent | --silent | --silen | --sile | --sil)
1227 continue ;;
1228 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1229 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1230 esac
1231 case $ac_pass in
1232 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1233 2)
1234 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1235 if test $ac_must_keep_next = true; then
1236 ac_must_keep_next=false # Got value, back to normal.
1237 else
1238 case $ac_arg in
1239 *=* | --config-cache | -C | -disable-* | --disable-* \
1240 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1241 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1242 | -with-* | --with-* | -without-* | --without-* | --x)
1243 case "$ac_configure_args0 " in
1244 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1245 esac
1246 ;;
1247 -* ) ac_must_keep_next=true ;;
1248 esac
1249 fi
1250 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1251 # Get rid of the leading space.
1252 ac_sep=" "
1253 ;;
1254 esac
1255 done
1256 done
1257 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1258 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1259
1260 # When interrupted or exit'd, cleanup temporary files, and complete
1261 # config.log. We remove comments because anyway the quotes in there
1262 # would cause problems or look ugly.
1263 # WARNING: Be sure not to use single quotes in there, as some shells,
1264 # such as our DU 5.0 friend, will then `close' the trap.
1265 trap 'exit_status=$?
1266 # Save into config.log some information that might help in debugging.
1267 {
1268 echo
1269
1270 cat <<\_ASBOX
1271 ## ---------------- ##
1272 ## Cache variables. ##
1273 ## ---------------- ##
1274 _ASBOX
1275 echo
1276 # The following way of writing the cache mishandles newlines in values,
1277 {
1278 (set) 2>&1 |
1279 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1280 *ac_space=\ *)
1281 sed -n \
1282 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1283 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1284 ;;
1285 *)
1286 sed -n \
1287 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1288 ;;
1289 esac;
1290 }
1291 echo
1292
1293 cat <<\_ASBOX
1294 ## ----------------- ##
1295 ## Output variables. ##
1296 ## ----------------- ##
1297 _ASBOX
1298 echo
1299 for ac_var in $ac_subst_vars
1300 do
1301 eval ac_val=$`echo $ac_var`
1302 echo "$ac_var='"'"'$ac_val'"'"'"
1303 done | sort
1304 echo
1305
1306 if test -n "$ac_subst_files"; then
1307 cat <<\_ASBOX
1308 ## ------------- ##
1309 ## Output files. ##
1310 ## ------------- ##
1311 _ASBOX
1312 echo
1313 for ac_var in $ac_subst_files
1314 do
1315 eval ac_val=$`echo $ac_var`
1316 echo "$ac_var='"'"'$ac_val'"'"'"
1317 done | sort
1318 echo
1319 fi
1320
1321 if test -s confdefs.h; then
1322 cat <<\_ASBOX
1323 ## ----------- ##
1324 ## confdefs.h. ##
1325 ## ----------- ##
1326 _ASBOX
1327 echo
1328 sed "/^$/d" confdefs.h | sort
1329 echo
1330 fi
1331 test "$ac_signal" != 0 &&
1332 echo "$as_me: caught signal $ac_signal"
1333 echo "$as_me: exit $exit_status"
1334 } >&5
1335 rm -f core *.core &&
1336 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1337 exit $exit_status
1338 ' 0
1339 for ac_signal in 1 2 13 15; do
1340 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1341 done
1342 ac_signal=0
1343
1344 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1345 rm -rf conftest* confdefs.h
1346 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1347 echo >confdefs.h
1348
1349 # Predefined preprocessor variables.
1350
1351 cat >>confdefs.h <<_ACEOF
1352 #define PACKAGE_NAME "$PACKAGE_NAME"
1353 _ACEOF
1354
1355
1356 cat >>confdefs.h <<_ACEOF
1357 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1358 _ACEOF
1359
1360
1361 cat >>confdefs.h <<_ACEOF
1362 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1363 _ACEOF
1364
1365
1366 cat >>confdefs.h <<_ACEOF
1367 #define PACKAGE_STRING "$PACKAGE_STRING"
1368 _ACEOF
1369
1370
1371 cat >>confdefs.h <<_ACEOF
1372 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1373 _ACEOF
1374
1375
1376 # Let the site file select an alternate cache file if it wants to.
1377 # Prefer explicitly selected file to automatically selected ones.
1378 if test -z "$CONFIG_SITE"; then
1379 if test "x$prefix" != xNONE; then
1380 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1381 else
1382 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1383 fi
1384 fi
1385 for ac_site_file in $CONFIG_SITE; do
1386 if test -r "$ac_site_file"; then
1387 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1388 echo "$as_me: loading site script $ac_site_file" >&6;}
1389 sed 's/^/| /' "$ac_site_file" >&5
1390 . "$ac_site_file"
1391 fi
1392 done
1393
1394 if test -r "$cache_file"; then
1395 # Some versions of bash will fail to source /dev/null (special
1396 # files actually), so we avoid doing that.
1397 if test -f "$cache_file"; then
1398 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1399 echo "$as_me: loading cache $cache_file" >&6;}
1400 case $cache_file in
1401 [\\/]* | ?:[\\/]* ) . $cache_file;;
1402 *) . ./$cache_file;;
1403 esac
1404 fi
1405 else
1406 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1407 echo "$as_me: creating cache $cache_file" >&6;}
1408 >$cache_file
1409 fi
1410
1411 # Check that the precious variables saved in the cache have kept the same
1412 # value.
1413 ac_cache_corrupted=false
1414 for ac_var in `(set) 2>&1 |
1415 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1416 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1417 eval ac_new_set=\$ac_env_${ac_var}_set
1418 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1419 eval ac_new_val="\$ac_env_${ac_var}_value"
1420 case $ac_old_set,$ac_new_set in
1421 set,)
1422 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1423 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1424 ac_cache_corrupted=: ;;
1425 ,set)
1426 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1427 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1428 ac_cache_corrupted=: ;;
1429 ,);;
1430 *)
1431 if test "x$ac_old_val" != "x$ac_new_val"; then
1432 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1433 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1434 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1435 echo "$as_me: former value: $ac_old_val" >&2;}
1436 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1437 echo "$as_me: current value: $ac_new_val" >&2;}
1438 ac_cache_corrupted=:
1439 fi;;
1440 esac
1441 # Pass precious variables to config.status.
1442 if test "$ac_new_set" = set; then
1443 case $ac_new_val in
1444 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1445 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1446 *) ac_arg=$ac_var=$ac_new_val ;;
1447 esac
1448 case " $ac_configure_args " in
1449 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1450 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1451 esac
1452 fi
1453 done
1454 if $ac_cache_corrupted; then
1455 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1456 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1457 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1458 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1459 { (exit 1); exit 1; }; }
1460 fi
1461
1462 ac_ext=c
1463 ac_cpp='$CPP $CPPFLAGS'
1464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494 ac_config_headers="$ac_config_headers config.h"
1495
1496
1497 # -------
1498 # Options
1499 # -------
1500
1501 echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
1502 echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
1503 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1504 if test "${enable_version_specific_runtime_libs+set}" = set; then
1505 enableval="$enable_version_specific_runtime_libs"
1506
1507 case "$enableval" in
1508 yes|no) ;;
1509 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific-runtime-libs" >&5
1510 echo "$as_me: error: Unknown argument to enable/disable version-specific-runtime-libs" >&2;}
1511 { (exit 1); exit 1; }; } ;;
1512 esac
1513
1514 else
1515 enable_version_specific_runtime_libs=no
1516 fi;
1517
1518 echo "$as_me:$LINENO: result: $enable_version_specific_runtime_libs" >&5
1519 echo "${ECHO_T}$enable_version_specific_runtime_libs" >&6
1520
1521 echo "$as_me:$LINENO: checking for --enable-linux-futex" >&5
1522 echo $ECHO_N "checking for --enable-linux-futex... $ECHO_C" >&6
1523 # Check whether --enable-linux-futex or --disable-linux-futex was given.
1524 if test "${enable_linux_futex+set}" = set; then
1525 enableval="$enable_linux_futex"
1526
1527 case "$enableval" in
1528 yes|no|default) ;;
1529 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable linux-futex" >&5
1530 echo "$as_me: error: Unknown argument to enable/disable linux-futex" >&2;}
1531 { (exit 1); exit 1; }; } ;;
1532 esac
1533
1534 else
1535 enable_linux_futex=default
1536 fi;
1537
1538 echo "$as_me:$LINENO: result: $enable_linux_futex" >&5
1539 echo "${ECHO_T}$enable_linux_futex" >&6
1540
1541 # We would like our source tree to be readonly. However when releases or
1542 # pre-releases are generated, the flex/bison generated files as well as the
1543 # various formats of manuals need to be included along with the rest of the
1544 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1545 # just that.
1546 echo "$as_me:$LINENO: checking for --enable-generated-files-in-srcdir" >&5
1547 echo $ECHO_N "checking for --enable-generated-files-in-srcdir... $ECHO_C" >&6
1548 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1549 if test "${enable_generated_files_in_srcdir+set}" = set; then
1550 enableval="$enable_generated_files_in_srcdir"
1551
1552 case "$enableval" in
1553 yes|no) ;;
1554 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable generated-files-in-srcdir" >&5
1555 echo "$as_me: error: Unknown argument to enable/disable generated-files-in-srcdir" >&2;}
1556 { (exit 1); exit 1; }; } ;;
1557 esac
1558
1559 else
1560 enable_generated_files_in_srcdir=no
1561 fi;
1562
1563 echo "$as_me:$LINENO: result: $enable_generated_files_in_srcdir" >&5
1564 echo "${ECHO_T}$enable_generated_files_in_srcdir" >&6
1565
1566
1567 if test "$enable_generated_files_in_srcdir" = yes; then
1568 GENINSRC_TRUE=
1569 GENINSRC_FALSE='#'
1570 else
1571 GENINSRC_TRUE='#'
1572 GENINSRC_FALSE=
1573 fi
1574
1575
1576
1577 # -------
1578 # -------
1579
1580 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
1581 #
1582 # You will slowly go insane if you do not grok the following fact: when
1583 # building this library, the top-level /target/ becomes the library's /host/.
1584 #
1585 # configure then causes --target to default to --host, exactly like any
1586 # other package using autoconf. Therefore, 'target' and 'host' will
1587 # always be the same. This makes sense both for native and cross compilers
1588 # just think about it for a little while. :-)
1589 #
1590 # Also, if this library is being configured as part of a cross compiler, the
1591 # top-level configure script will pass the "real" host as $with_cross_host.
1592 #
1593 # Do not delete or change the following two lines. For why, see
1594 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
1595 ac_aux_dir=
1596 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1597 if test -f $ac_dir/install-sh; then
1598 ac_aux_dir=$ac_dir
1599 ac_install_sh="$ac_aux_dir/install-sh -c"
1600 break
1601 elif test -f $ac_dir/install.sh; then
1602 ac_aux_dir=$ac_dir
1603 ac_install_sh="$ac_aux_dir/install.sh -c"
1604 break
1605 elif test -f $ac_dir/shtool; then
1606 ac_aux_dir=$ac_dir
1607 ac_install_sh="$ac_aux_dir/shtool install -c"
1608 break
1609 fi
1610 done
1611 if test -z "$ac_aux_dir"; then
1612 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1613 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1614 { (exit 1); exit 1; }; }
1615 fi
1616 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1617 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1618 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1619
1620 # Make sure we can run config.sub.
1621 $ac_config_sub sun4 >/dev/null 2>&1 ||
1622 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1623 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1624 { (exit 1); exit 1; }; }
1625
1626 echo "$as_me:$LINENO: checking build system type" >&5
1627 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1628 if test "${ac_cv_build+set}" = set; then
1629 echo $ECHO_N "(cached) $ECHO_C" >&6
1630 else
1631 ac_cv_build_alias=$build_alias
1632 test -z "$ac_cv_build_alias" &&
1633 ac_cv_build_alias=`$ac_config_guess`
1634 test -z "$ac_cv_build_alias" &&
1635 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1636 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1637 { (exit 1); exit 1; }; }
1638 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1639 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1640 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1641 { (exit 1); exit 1; }; }
1642
1643 fi
1644 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1645 echo "${ECHO_T}$ac_cv_build" >&6
1646 build=$ac_cv_build
1647 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1648 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1649 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1650
1651
1652 echo "$as_me:$LINENO: checking host system type" >&5
1653 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1654 if test "${ac_cv_host+set}" = set; then
1655 echo $ECHO_N "(cached) $ECHO_C" >&6
1656 else
1657 ac_cv_host_alias=$host_alias
1658 test -z "$ac_cv_host_alias" &&
1659 ac_cv_host_alias=$ac_cv_build_alias
1660 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1661 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1662 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1663 { (exit 1); exit 1; }; }
1664
1665 fi
1666 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1667 echo "${ECHO_T}$ac_cv_host" >&6
1668 host=$ac_cv_host
1669 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1670 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1671 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1672
1673
1674 echo "$as_me:$LINENO: checking target system type" >&5
1675 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1676 if test "${ac_cv_target+set}" = set; then
1677 echo $ECHO_N "(cached) $ECHO_C" >&6
1678 else
1679 ac_cv_target_alias=$target_alias
1680 test "x$ac_cv_target_alias" = "x" &&
1681 ac_cv_target_alias=$ac_cv_host_alias
1682 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1683 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1684 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1685 { (exit 1); exit 1; }; }
1686
1687 fi
1688 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1689 echo "${ECHO_T}$ac_cv_target" >&6
1690 target=$ac_cv_target
1691 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1692 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1693 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1694
1695
1696 # The aliases save the names the user supplied, while $host etc.
1697 # will get canonicalized.
1698 test -n "$target_alias" &&
1699 test "$program_prefix$program_suffix$program_transform_name" = \
1700 NONENONEs,x,x, &&
1701 program_prefix=${target_alias}-
1702 target_alias=${target_alias-$host_alias}
1703
1704 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
1705 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
1706 # 1.9.0: minimum required version
1707 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
1708 # of other PACKAGE_* variables will, however, and there's nothing
1709 # we can do about that; they come from AC_INIT).
1710 # foreign: we don't follow the normal rules for GNU packages (no COPYING
1711 # file in the top srcdir, etc, etc), so stop complaining.
1712 # -Wall: turns on all automake warnings...
1713 # -Wno-portability: ...except this one, since GNU make is required.
1714 # -Wno-override: ... and this one, since we do want this in testsuite.
1715 am__api_version="1.9"
1716 # Find a good install program. We prefer a C program (faster),
1717 # so one script is as good as another. But avoid the broken or
1718 # incompatible versions:
1719 # SysV /etc/install, /usr/sbin/install
1720 # SunOS /usr/etc/install
1721 # IRIX /sbin/install
1722 # AIX /bin/install
1723 # AmigaOS /C/install, which installs bootblocks on floppy discs
1724 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1725 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1726 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1727 # OS/2's system install, which has a completely different semantic
1728 # ./install, which can be erroneously created by make from ./install.sh.
1729 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1730 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1731 if test -z "$INSTALL"; then
1732 if test "${ac_cv_path_install+set}" = set; then
1733 echo $ECHO_N "(cached) $ECHO_C" >&6
1734 else
1735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1736 for as_dir in $PATH
1737 do
1738 IFS=$as_save_IFS
1739 test -z "$as_dir" && as_dir=.
1740 # Account for people who put trailing slashes in PATH elements.
1741 case $as_dir/ in
1742 ./ | .// | /cC/* | \
1743 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1744 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1745 /usr/ucb/* ) ;;
1746 *)
1747 # OSF1 and SCO ODT 3.0 have their own names for install.
1748 # Don't use installbsd from OSF since it installs stuff as root
1749 # by default.
1750 for ac_prog in ginstall scoinst install; do
1751 for ac_exec_ext in '' $ac_executable_extensions; do
1752 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1753 if test $ac_prog = install &&
1754 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1755 # AIX install. It has an incompatible calling convention.
1756 :
1757 elif test $ac_prog = install &&
1758 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1759 # program-specific install script used by HP pwplus--don't use.
1760 :
1761 else
1762 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1763 break 3
1764 fi
1765 fi
1766 done
1767 done
1768 ;;
1769 esac
1770 done
1771
1772
1773 fi
1774 if test "${ac_cv_path_install+set}" = set; then
1775 INSTALL=$ac_cv_path_install
1776 else
1777 # As a last resort, use the slow shell script. We don't cache a
1778 # path for INSTALL within a source directory, because that will
1779 # break other packages using the cache if that directory is
1780 # removed, or if the path is relative.
1781 INSTALL=$ac_install_sh
1782 fi
1783 fi
1784 echo "$as_me:$LINENO: result: $INSTALL" >&5
1785 echo "${ECHO_T}$INSTALL" >&6
1786
1787 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1788 # It thinks the first close brace ends the variable substitution.
1789 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1790
1791 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1792
1793 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1794
1795 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1796 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1797 # Just in case
1798 sleep 1
1799 echo timestamp > conftest.file
1800 # Do `set' in a subshell so we don't clobber the current shell's
1801 # arguments. Must try -L first in case configure is actually a
1802 # symlink; some systems play weird games with the mod time of symlinks
1803 # (eg FreeBSD returns the mod time of the symlink's containing
1804 # directory).
1805 if (
1806 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1807 if test "$*" = "X"; then
1808 # -L didn't work.
1809 set X `ls -t $srcdir/configure conftest.file`
1810 fi
1811 rm -f conftest.file
1812 if test "$*" != "X $srcdir/configure conftest.file" \
1813 && test "$*" != "X conftest.file $srcdir/configure"; then
1814
1815 # If neither matched, then we have a broken ls. This can happen
1816 # if, for instance, CONFIG_SHELL is bash and it inherits a
1817 # broken ls alias from the environment. This has actually
1818 # happened. Such a system could not be considered "sane".
1819 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1820 alias in your environment" >&5
1821 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1822 alias in your environment" >&2;}
1823 { (exit 1); exit 1; }; }
1824 fi
1825
1826 test "$2" = conftest.file
1827 )
1828 then
1829 # Ok.
1830 :
1831 else
1832 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1833 Check your system clock" >&5
1834 echo "$as_me: error: newly created file is older than distributed files!
1835 Check your system clock" >&2;}
1836 { (exit 1); exit 1; }; }
1837 fi
1838 echo "$as_me:$LINENO: result: yes" >&5
1839 echo "${ECHO_T}yes" >&6
1840 test "$program_prefix" != NONE &&
1841 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1842 # Use a double $ so make ignores it.
1843 test "$program_suffix" != NONE &&
1844 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1845 # Double any \ or $. echo might interpret backslashes.
1846 # By default was `s,x,x', remove it if useless.
1847 cat <<\_ACEOF >conftest.sed
1848 s/[\\$]/&&/g;s/;s,x,x,$//
1849 _ACEOF
1850 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1851 rm conftest.sed
1852
1853 # expand $ac_aux_dir to an absolute path
1854 am_aux_dir=`cd $ac_aux_dir && pwd`
1855
1856 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1857 # Use eval to expand $SHELL
1858 if eval "$MISSING --run true"; then
1859 am_missing_run="$MISSING --run "
1860 else
1861 am_missing_run=
1862 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1863 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1864 fi
1865
1866 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1867 # We used to keeping the `.' as first argument, in order to
1868 # allow $(mkdir_p) to be used without argument. As in
1869 # $(mkdir_p) $(somedir)
1870 # where $(somedir) is conditionally defined. However this is wrong
1871 # for two reasons:
1872 # 1. if the package is installed by a user who cannot write `.'
1873 # make install will fail,
1874 # 2. the above comment should most certainly read
1875 # $(mkdir_p) $(DESTDIR)$(somedir)
1876 # so it does not work when $(somedir) is undefined and
1877 # $(DESTDIR) is not.
1878 # To support the latter case, we have to write
1879 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1880 # so the `.' trick is pointless.
1881 mkdir_p='mkdir -p --'
1882 else
1883 # On NextStep and OpenStep, the `mkdir' command does not
1884 # recognize any option. It will interpret all options as
1885 # directories to create, and then abort because `.' already
1886 # exists.
1887 for d in ./-p ./--version;
1888 do
1889 test -d $d && rmdir $d
1890 done
1891 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1892 if test -f "$ac_aux_dir/mkinstalldirs"; then
1893 mkdir_p='$(mkinstalldirs)'
1894 else
1895 mkdir_p='$(install_sh) -d'
1896 fi
1897 fi
1898
1899 for ac_prog in gawk mawk nawk awk
1900 do
1901 # Extract the first word of "$ac_prog", so it can be a program name with args.
1902 set dummy $ac_prog; ac_word=$2
1903 echo "$as_me:$LINENO: checking for $ac_word" >&5
1904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1905 if test "${ac_cv_prog_AWK+set}" = set; then
1906 echo $ECHO_N "(cached) $ECHO_C" >&6
1907 else
1908 if test -n "$AWK"; then
1909 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1910 else
1911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1912 for as_dir in $PATH
1913 do
1914 IFS=$as_save_IFS
1915 test -z "$as_dir" && as_dir=.
1916 for ac_exec_ext in '' $ac_executable_extensions; do
1917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1918 ac_cv_prog_AWK="$ac_prog"
1919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1920 break 2
1921 fi
1922 done
1923 done
1924
1925 fi
1926 fi
1927 AWK=$ac_cv_prog_AWK
1928 if test -n "$AWK"; then
1929 echo "$as_me:$LINENO: result: $AWK" >&5
1930 echo "${ECHO_T}$AWK" >&6
1931 else
1932 echo "$as_me:$LINENO: result: no" >&5
1933 echo "${ECHO_T}no" >&6
1934 fi
1935
1936 test -n "$AWK" && break
1937 done
1938
1939 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1940 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1941 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1942 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1943 echo $ECHO_N "(cached) $ECHO_C" >&6
1944 else
1945 cat >conftest.make <<\_ACEOF
1946 all:
1947 @echo 'ac_maketemp="$(MAKE)"'
1948 _ACEOF
1949 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1950 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1951 if test -n "$ac_maketemp"; then
1952 eval ac_cv_prog_make_${ac_make}_set=yes
1953 else
1954 eval ac_cv_prog_make_${ac_make}_set=no
1955 fi
1956 rm -f conftest.make
1957 fi
1958 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1959 echo "$as_me:$LINENO: result: yes" >&5
1960 echo "${ECHO_T}yes" >&6
1961 SET_MAKE=
1962 else
1963 echo "$as_me:$LINENO: result: no" >&5
1964 echo "${ECHO_T}no" >&6
1965 SET_MAKE="MAKE=${MAKE-make}"
1966 fi
1967
1968 rm -rf .tst 2>/dev/null
1969 mkdir .tst 2>/dev/null
1970 if test -d .tst; then
1971 am__leading_dot=.
1972 else
1973 am__leading_dot=_
1974 fi
1975 rmdir .tst 2>/dev/null
1976
1977 # test to see if srcdir already configured
1978 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1979 test -f $srcdir/config.status; then
1980 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1981 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1982 { (exit 1); exit 1; }; }
1983 fi
1984
1985 # test whether we have cygpath
1986 if test -z "$CYGPATH_W"; then
1987 if (cygpath --version) >/dev/null 2>/dev/null; then
1988 CYGPATH_W='cygpath -w'
1989 else
1990 CYGPATH_W=echo
1991 fi
1992 fi
1993
1994
1995 # Define the identity of the package.
1996 PACKAGE='libgomp'
1997 VERSION='1.0'
1998
1999
2000 cat >>confdefs.h <<_ACEOF
2001 #define PACKAGE "$PACKAGE"
2002 _ACEOF
2003
2004
2005 cat >>confdefs.h <<_ACEOF
2006 #define VERSION "$VERSION"
2007 _ACEOF
2008
2009 # Some tools Automake needs.
2010
2011 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2012
2013
2014 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2015
2016
2017 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2018
2019
2020 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2021
2022
2023 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2024
2025 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2026
2027 # Installed binaries are usually stripped using `strip' when the user
2028 # run `make install-strip'. However `strip' might not be the right
2029 # tool to use in cross-compilation environments, therefore Automake
2030 # will honor the `STRIP' environment variable to overrule this program.
2031 if test "$cross_compiling" != no; then
2032 if test -n "$ac_tool_prefix"; then
2033 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2034 set dummy ${ac_tool_prefix}strip; ac_word=$2
2035 echo "$as_me:$LINENO: checking for $ac_word" >&5
2036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2037 if test "${ac_cv_prog_STRIP+set}" = set; then
2038 echo $ECHO_N "(cached) $ECHO_C" >&6
2039 else
2040 if test -n "$STRIP"; then
2041 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2042 else
2043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2044 for as_dir in $PATH
2045 do
2046 IFS=$as_save_IFS
2047 test -z "$as_dir" && as_dir=.
2048 for ac_exec_ext in '' $ac_executable_extensions; do
2049 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2050 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2052 break 2
2053 fi
2054 done
2055 done
2056
2057 fi
2058 fi
2059 STRIP=$ac_cv_prog_STRIP
2060 if test -n "$STRIP"; then
2061 echo "$as_me:$LINENO: result: $STRIP" >&5
2062 echo "${ECHO_T}$STRIP" >&6
2063 else
2064 echo "$as_me:$LINENO: result: no" >&5
2065 echo "${ECHO_T}no" >&6
2066 fi
2067
2068 fi
2069 if test -z "$ac_cv_prog_STRIP"; then
2070 ac_ct_STRIP=$STRIP
2071 # Extract the first word of "strip", so it can be a program name with args.
2072 set dummy strip; ac_word=$2
2073 echo "$as_me:$LINENO: checking for $ac_word" >&5
2074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2075 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2076 echo $ECHO_N "(cached) $ECHO_C" >&6
2077 else
2078 if test -n "$ac_ct_STRIP"; then
2079 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2080 else
2081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2082 for as_dir in $PATH
2083 do
2084 IFS=$as_save_IFS
2085 test -z "$as_dir" && as_dir=.
2086 for ac_exec_ext in '' $ac_executable_extensions; do
2087 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2088 ac_cv_prog_ac_ct_STRIP="strip"
2089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2090 break 2
2091 fi
2092 done
2093 done
2094
2095 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2096 fi
2097 fi
2098 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2099 if test -n "$ac_ct_STRIP"; then
2100 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2101 echo "${ECHO_T}$ac_ct_STRIP" >&6
2102 else
2103 echo "$as_me:$LINENO: result: no" >&5
2104 echo "${ECHO_T}no" >&6
2105 fi
2106
2107 STRIP=$ac_ct_STRIP
2108 else
2109 STRIP="$ac_cv_prog_STRIP"
2110 fi
2111
2112 fi
2113 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2114
2115 # We need awk for the "check" target. The system "awk" is bad on
2116 # some platforms.
2117 # Always define AMTAR for backward compatibility.
2118
2119 AMTAR=${AMTAR-"${am_missing_run}tar"}
2120
2121 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2122
2123
2124
2125
2126
2127 # Default to --enable-multilib
2128 # Check whether --enable-multilib or --disable-multilib was given.
2129 if test "${enable_multilib+set}" = set; then
2130 enableval="$enable_multilib"
2131 case "$enableval" in
2132 yes) multilib=yes ;;
2133 no) multilib=no ;;
2134 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
2135 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
2136 { (exit 1); exit 1; }; } ;;
2137 esac
2138 else
2139 multilib=yes
2140 fi;
2141
2142 # We may get other options which we leave undocumented:
2143 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2144 # See config-ml.in if you want the gory details.
2145
2146 if test "$srcdir" = "."; then
2147 if test "$with_target_subdir" != "."; then
2148 multi_basedir="$srcdir/$with_multisrctop../.."
2149 else
2150 multi_basedir="$srcdir/$with_multisrctop.."
2151 fi
2152 else
2153 multi_basedir="$srcdir/.."
2154 fi
2155
2156
2157 # Even if the default multilib is not a cross compilation,
2158 # it may be that some of the other multilibs are.
2159 if test $cross_compiling = no && test $multilib = yes \
2160 && test "x${with_multisubdir}" != x ; then
2161 cross_compiling=maybe
2162 fi
2163
2164 ac_config_commands="$ac_config_commands default-1"
2165
2166
2167 # Calculate toolexeclibdir
2168 # Also toolexecdir, though it's only used in toolexeclibdir
2169 case ${enable_version_specific_runtime_libs} in
2170 yes)
2171 # Need the gcc compiler version to know where to install libraries
2172 # and header files if --enable-version-specific-runtime-libs option
2173 # is selected.
2174 toolexecdir='$(libdir)/gcc/$(target_alias)'
2175 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
2176 ;;
2177 no)
2178 if test -n "$with_cross_host" &&
2179 test x"$with_cross_host" != x"no"; then
2180 # Install a library built with a cross compiler in tooldir, not libdir.
2181 toolexecdir='$(exec_prefix)/$(target_alias)'
2182 toolexeclibdir='$(toolexecdir)/lib'
2183 else
2184 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
2185 toolexeclibdir='$(libdir)'
2186 fi
2187 multi_os_directory=`$CC -print-multi-os-directory`
2188 case $multi_os_directory in
2189 .) ;; # Avoid trailing /.
2190 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
2191 esac
2192 ;;
2193 esac
2194
2195
2196
2197 # Check the compiler.
2198 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
2199 # We must force CC to /not/ be precious variables; otherwise
2200 # the wrong, non-multilib-adjusted value will be used in multilibs.
2201 # As a side effect, we have to subst CFLAGS ourselves.
2202
2203
2204
2205 ac_ext=c
2206 ac_cpp='$CPP $CPPFLAGS'
2207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2210 if test -n "$ac_tool_prefix"; then
2211 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2212 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2213 echo "$as_me:$LINENO: checking for $ac_word" >&5
2214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2215 if test "${ac_cv_prog_CC+set}" = set; then
2216 echo $ECHO_N "(cached) $ECHO_C" >&6
2217 else
2218 if test -n "$CC"; then
2219 ac_cv_prog_CC="$CC" # Let the user override the test.
2220 else
2221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2222 for as_dir in $PATH
2223 do
2224 IFS=$as_save_IFS
2225 test -z "$as_dir" && as_dir=.
2226 for ac_exec_ext in '' $ac_executable_extensions; do
2227 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2228 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2230 break 2
2231 fi
2232 done
2233 done
2234
2235 fi
2236 fi
2237 CC=$ac_cv_prog_CC
2238 if test -n "$CC"; then
2239 echo "$as_me:$LINENO: result: $CC" >&5
2240 echo "${ECHO_T}$CC" >&6
2241 else
2242 echo "$as_me:$LINENO: result: no" >&5
2243 echo "${ECHO_T}no" >&6
2244 fi
2245
2246 fi
2247 if test -z "$ac_cv_prog_CC"; then
2248 ac_ct_CC=$CC
2249 # Extract the first word of "gcc", so it can be a program name with args.
2250 set dummy gcc; ac_word=$2
2251 echo "$as_me:$LINENO: checking for $ac_word" >&5
2252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2253 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2254 echo $ECHO_N "(cached) $ECHO_C" >&6
2255 else
2256 if test -n "$ac_ct_CC"; then
2257 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2258 else
2259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2260 for as_dir in $PATH
2261 do
2262 IFS=$as_save_IFS
2263 test -z "$as_dir" && as_dir=.
2264 for ac_exec_ext in '' $ac_executable_extensions; do
2265 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2266 ac_cv_prog_ac_ct_CC="gcc"
2267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2268 break 2
2269 fi
2270 done
2271 done
2272
2273 fi
2274 fi
2275 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2276 if test -n "$ac_ct_CC"; then
2277 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2278 echo "${ECHO_T}$ac_ct_CC" >&6
2279 else
2280 echo "$as_me:$LINENO: result: no" >&5
2281 echo "${ECHO_T}no" >&6
2282 fi
2283
2284 CC=$ac_ct_CC
2285 else
2286 CC="$ac_cv_prog_CC"
2287 fi
2288
2289 if test -z "$CC"; then
2290 if test -n "$ac_tool_prefix"; then
2291 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2292 set dummy ${ac_tool_prefix}cc; ac_word=$2
2293 echo "$as_me:$LINENO: checking for $ac_word" >&5
2294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2295 if test "${ac_cv_prog_CC+set}" = set; then
2296 echo $ECHO_N "(cached) $ECHO_C" >&6
2297 else
2298 if test -n "$CC"; then
2299 ac_cv_prog_CC="$CC" # Let the user override the test.
2300 else
2301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2302 for as_dir in $PATH
2303 do
2304 IFS=$as_save_IFS
2305 test -z "$as_dir" && as_dir=.
2306 for ac_exec_ext in '' $ac_executable_extensions; do
2307 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2308 ac_cv_prog_CC="${ac_tool_prefix}cc"
2309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2310 break 2
2311 fi
2312 done
2313 done
2314
2315 fi
2316 fi
2317 CC=$ac_cv_prog_CC
2318 if test -n "$CC"; then
2319 echo "$as_me:$LINENO: result: $CC" >&5
2320 echo "${ECHO_T}$CC" >&6
2321 else
2322 echo "$as_me:$LINENO: result: no" >&5
2323 echo "${ECHO_T}no" >&6
2324 fi
2325
2326 fi
2327 if test -z "$ac_cv_prog_CC"; then
2328 ac_ct_CC=$CC
2329 # Extract the first word of "cc", so it can be a program name with args.
2330 set dummy cc; ac_word=$2
2331 echo "$as_me:$LINENO: checking for $ac_word" >&5
2332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2333 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2334 echo $ECHO_N "(cached) $ECHO_C" >&6
2335 else
2336 if test -n "$ac_ct_CC"; then
2337 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2338 else
2339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2340 for as_dir in $PATH
2341 do
2342 IFS=$as_save_IFS
2343 test -z "$as_dir" && as_dir=.
2344 for ac_exec_ext in '' $ac_executable_extensions; do
2345 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2346 ac_cv_prog_ac_ct_CC="cc"
2347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2348 break 2
2349 fi
2350 done
2351 done
2352
2353 fi
2354 fi
2355 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2356 if test -n "$ac_ct_CC"; then
2357 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2358 echo "${ECHO_T}$ac_ct_CC" >&6
2359 else
2360 echo "$as_me:$LINENO: result: no" >&5
2361 echo "${ECHO_T}no" >&6
2362 fi
2363
2364 CC=$ac_ct_CC
2365 else
2366 CC="$ac_cv_prog_CC"
2367 fi
2368
2369 fi
2370 if test -z "$CC"; then
2371 # Extract the first word of "cc", so it can be a program name with args.
2372 set dummy cc; ac_word=$2
2373 echo "$as_me:$LINENO: checking for $ac_word" >&5
2374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2375 if test "${ac_cv_prog_CC+set}" = set; then
2376 echo $ECHO_N "(cached) $ECHO_C" >&6
2377 else
2378 if test -n "$CC"; then
2379 ac_cv_prog_CC="$CC" # Let the user override the test.
2380 else
2381 ac_prog_rejected=no
2382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2383 for as_dir in $PATH
2384 do
2385 IFS=$as_save_IFS
2386 test -z "$as_dir" && as_dir=.
2387 for ac_exec_ext in '' $ac_executable_extensions; do
2388 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2389 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2390 ac_prog_rejected=yes
2391 continue
2392 fi
2393 ac_cv_prog_CC="cc"
2394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2395 break 2
2396 fi
2397 done
2398 done
2399
2400 if test $ac_prog_rejected = yes; then
2401 # We found a bogon in the path, so make sure we never use it.
2402 set dummy $ac_cv_prog_CC
2403 shift
2404 if test $# != 0; then
2405 # We chose a different compiler from the bogus one.
2406 # However, it has the same basename, so the bogon will be chosen
2407 # first if we set CC to just the basename; use the full file name.
2408 shift
2409 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2410 fi
2411 fi
2412 fi
2413 fi
2414 CC=$ac_cv_prog_CC
2415 if test -n "$CC"; then
2416 echo "$as_me:$LINENO: result: $CC" >&5
2417 echo "${ECHO_T}$CC" >&6
2418 else
2419 echo "$as_me:$LINENO: result: no" >&5
2420 echo "${ECHO_T}no" >&6
2421 fi
2422
2423 fi
2424 if test -z "$CC"; then
2425 if test -n "$ac_tool_prefix"; then
2426 for ac_prog in cl
2427 do
2428 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2429 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2430 echo "$as_me:$LINENO: checking for $ac_word" >&5
2431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2432 if test "${ac_cv_prog_CC+set}" = set; then
2433 echo $ECHO_N "(cached) $ECHO_C" >&6
2434 else
2435 if test -n "$CC"; then
2436 ac_cv_prog_CC="$CC" # Let the user override the test.
2437 else
2438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2439 for as_dir in $PATH
2440 do
2441 IFS=$as_save_IFS
2442 test -z "$as_dir" && as_dir=.
2443 for ac_exec_ext in '' $ac_executable_extensions; do
2444 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2445 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2447 break 2
2448 fi
2449 done
2450 done
2451
2452 fi
2453 fi
2454 CC=$ac_cv_prog_CC
2455 if test -n "$CC"; then
2456 echo "$as_me:$LINENO: result: $CC" >&5
2457 echo "${ECHO_T}$CC" >&6
2458 else
2459 echo "$as_me:$LINENO: result: no" >&5
2460 echo "${ECHO_T}no" >&6
2461 fi
2462
2463 test -n "$CC" && break
2464 done
2465 fi
2466 if test -z "$CC"; then
2467 ac_ct_CC=$CC
2468 for ac_prog in cl
2469 do
2470 # Extract the first word of "$ac_prog", so it can be a program name with args.
2471 set dummy $ac_prog; ac_word=$2
2472 echo "$as_me:$LINENO: checking for $ac_word" >&5
2473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2474 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2475 echo $ECHO_N "(cached) $ECHO_C" >&6
2476 else
2477 if test -n "$ac_ct_CC"; then
2478 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2479 else
2480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2481 for as_dir in $PATH
2482 do
2483 IFS=$as_save_IFS
2484 test -z "$as_dir" && as_dir=.
2485 for ac_exec_ext in '' $ac_executable_extensions; do
2486 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2487 ac_cv_prog_ac_ct_CC="$ac_prog"
2488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2489 break 2
2490 fi
2491 done
2492 done
2493
2494 fi
2495 fi
2496 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2497 if test -n "$ac_ct_CC"; then
2498 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2499 echo "${ECHO_T}$ac_ct_CC" >&6
2500 else
2501 echo "$as_me:$LINENO: result: no" >&5
2502 echo "${ECHO_T}no" >&6
2503 fi
2504
2505 test -n "$ac_ct_CC" && break
2506 done
2507
2508 CC=$ac_ct_CC
2509 fi
2510
2511 fi
2512
2513
2514 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2515 See \`config.log' for more details." >&5
2516 echo "$as_me: error: no acceptable C compiler found in \$PATH
2517 See \`config.log' for more details." >&2;}
2518 { (exit 1); exit 1; }; }
2519
2520 # Provide some information about the compiler.
2521 echo "$as_me:$LINENO:" \
2522 "checking for C compiler version" >&5
2523 ac_compiler=`set X $ac_compile; echo $2`
2524 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2525 (eval $ac_compiler --version </dev/null >&5) 2>&5
2526 ac_status=$?
2527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528 (exit $ac_status); }
2529 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2530 (eval $ac_compiler -v </dev/null >&5) 2>&5
2531 ac_status=$?
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); }
2534 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2535 (eval $ac_compiler -V </dev/null >&5) 2>&5
2536 ac_status=$?
2537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538 (exit $ac_status); }
2539
2540 cat >conftest.$ac_ext <<_ACEOF
2541 /* confdefs.h. */
2542 _ACEOF
2543 cat confdefs.h >>conftest.$ac_ext
2544 cat >>conftest.$ac_ext <<_ACEOF
2545 /* end confdefs.h. */
2546
2547 int
2548 main ()
2549 {
2550
2551 ;
2552 return 0;
2553 }
2554 _ACEOF
2555 ac_clean_files_save=$ac_clean_files
2556 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2557 # Try to create an executable without -o first, disregard a.out.
2558 # It will help us diagnose broken compilers, and finding out an intuition
2559 # of exeext.
2560 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2561 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2562 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2563 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2564 (eval $ac_link_default) 2>&5
2565 ac_status=$?
2566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567 (exit $ac_status); }; then
2568 # Find the output, starting from the most likely. This scheme is
2569 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2570 # resort.
2571
2572 # Be careful to initialize this variable, since it used to be cached.
2573 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2574 ac_cv_exeext=
2575 # b.out is created by i960 compilers.
2576 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2577 do
2578 test -f "$ac_file" || continue
2579 case $ac_file in
2580 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2581 ;;
2582 conftest.$ac_ext )
2583 # This is the source file.
2584 ;;
2585 [ab].out )
2586 # We found the default executable, but exeext='' is most
2587 # certainly right.
2588 break;;
2589 *.* )
2590 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2591 # FIXME: I believe we export ac_cv_exeext for Libtool,
2592 # but it would be cool to find out if it's true. Does anybody
2593 # maintain Libtool? --akim.
2594 export ac_cv_exeext
2595 break;;
2596 * )
2597 break;;
2598 esac
2599 done
2600 else
2601 echo "$as_me: failed program was:" >&5
2602 sed 's/^/| /' conftest.$ac_ext >&5
2603
2604 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2605 See \`config.log' for more details." >&5
2606 echo "$as_me: error: C compiler cannot create executables
2607 See \`config.log' for more details." >&2;}
2608 { (exit 77); exit 77; }; }
2609 fi
2610
2611 ac_exeext=$ac_cv_exeext
2612 echo "$as_me:$LINENO: result: $ac_file" >&5
2613 echo "${ECHO_T}$ac_file" >&6
2614
2615 # Check the compiler produces executables we can run. If not, either
2616 # the compiler is broken, or we cross compile.
2617 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2618 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2619 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2620 # If not cross compiling, check that we can run a simple program.
2621 if test "$cross_compiling" != yes; then
2622 if { ac_try='./$ac_file'
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); }; }; then
2628 cross_compiling=no
2629 else
2630 if test "$cross_compiling" = maybe; then
2631 cross_compiling=yes
2632 else
2633 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2634 If you meant to cross compile, use \`--host'.
2635 See \`config.log' for more details." >&5
2636 echo "$as_me: error: cannot run C compiled programs.
2637 If you meant to cross compile, use \`--host'.
2638 See \`config.log' for more details." >&2;}
2639 { (exit 1); exit 1; }; }
2640 fi
2641 fi
2642 fi
2643 echo "$as_me:$LINENO: result: yes" >&5
2644 echo "${ECHO_T}yes" >&6
2645
2646 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2647 ac_clean_files=$ac_clean_files_save
2648 # Check the compiler produces executables we can run. If not, either
2649 # the compiler is broken, or we cross compile.
2650 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2651 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2652 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2653 echo "${ECHO_T}$cross_compiling" >&6
2654
2655 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2656 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2658 (eval $ac_link) 2>&5
2659 ac_status=$?
2660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661 (exit $ac_status); }; then
2662 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2663 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2664 # work properly (i.e., refer to `conftest.exe'), while it won't with
2665 # `rm'.
2666 for ac_file in conftest.exe conftest conftest.*; do
2667 test -f "$ac_file" || continue
2668 case $ac_file in
2669 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2670 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2671 export ac_cv_exeext
2672 break;;
2673 * ) break;;
2674 esac
2675 done
2676 else
2677 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2678 See \`config.log' for more details." >&5
2679 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2680 See \`config.log' for more details." >&2;}
2681 { (exit 1); exit 1; }; }
2682 fi
2683
2684 rm -f conftest$ac_cv_exeext
2685 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2686 echo "${ECHO_T}$ac_cv_exeext" >&6
2687
2688 rm -f conftest.$ac_ext
2689 EXEEXT=$ac_cv_exeext
2690 ac_exeext=$EXEEXT
2691 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2692 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2693 if test "${ac_cv_objext+set}" = set; then
2694 echo $ECHO_N "(cached) $ECHO_C" >&6
2695 else
2696 cat >conftest.$ac_ext <<_ACEOF
2697 /* confdefs.h. */
2698 _ACEOF
2699 cat confdefs.h >>conftest.$ac_ext
2700 cat >>conftest.$ac_ext <<_ACEOF
2701 /* end confdefs.h. */
2702
2703 int
2704 main ()
2705 {
2706
2707 ;
2708 return 0;
2709 }
2710 _ACEOF
2711 rm -f conftest.o conftest.obj
2712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2713 (eval $ac_compile) 2>&5
2714 ac_status=$?
2715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716 (exit $ac_status); }; then
2717 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2718 case $ac_file in
2719 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2720 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2721 break;;
2722 esac
2723 done
2724 else
2725 echo "$as_me: failed program was:" >&5
2726 sed 's/^/| /' conftest.$ac_ext >&5
2727
2728 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2729 See \`config.log' for more details." >&5
2730 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2731 See \`config.log' for more details." >&2;}
2732 { (exit 1); exit 1; }; }
2733 fi
2734
2735 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2736 fi
2737 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2738 echo "${ECHO_T}$ac_cv_objext" >&6
2739 OBJEXT=$ac_cv_objext
2740 ac_objext=$OBJEXT
2741 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2742 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2743 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2744 echo $ECHO_N "(cached) $ECHO_C" >&6
2745 else
2746 cat >conftest.$ac_ext <<_ACEOF
2747 /* confdefs.h. */
2748 _ACEOF
2749 cat confdefs.h >>conftest.$ac_ext
2750 cat >>conftest.$ac_ext <<_ACEOF
2751 /* end confdefs.h. */
2752
2753 int
2754 main ()
2755 {
2756 #ifndef __GNUC__
2757 choke me
2758 #endif
2759
2760 ;
2761 return 0;
2762 }
2763 _ACEOF
2764 rm -f conftest.$ac_objext
2765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2766 (eval $ac_compile) 2>conftest.er1
2767 ac_status=$?
2768 grep -v '^ *+' conftest.er1 >conftest.err
2769 rm -f conftest.er1
2770 cat conftest.err >&5
2771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772 (exit $ac_status); } &&
2773 { ac_try='test -z "$ac_c_werror_flag"
2774 || test ! -s conftest.err'
2775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2776 (eval $ac_try) 2>&5
2777 ac_status=$?
2778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779 (exit $ac_status); }; } &&
2780 { ac_try='test -s conftest.$ac_objext'
2781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2782 (eval $ac_try) 2>&5
2783 ac_status=$?
2784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785 (exit $ac_status); }; }; then
2786 ac_compiler_gnu=yes
2787 else
2788 echo "$as_me: failed program was:" >&5
2789 sed 's/^/| /' conftest.$ac_ext >&5
2790
2791 ac_compiler_gnu=no
2792 fi
2793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2794 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2795
2796 fi
2797 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2798 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2799 GCC=`test $ac_compiler_gnu = yes && echo yes`
2800 ac_test_CFLAGS=${CFLAGS+set}
2801 ac_save_CFLAGS=$CFLAGS
2802 CFLAGS="-g"
2803 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2804 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2805 if test "${ac_cv_prog_cc_g+set}" = set; then
2806 echo $ECHO_N "(cached) $ECHO_C" >&6
2807 else
2808 cat >conftest.$ac_ext <<_ACEOF
2809 /* confdefs.h. */
2810 _ACEOF
2811 cat confdefs.h >>conftest.$ac_ext
2812 cat >>conftest.$ac_ext <<_ACEOF
2813 /* end confdefs.h. */
2814
2815 int
2816 main ()
2817 {
2818
2819 ;
2820 return 0;
2821 }
2822 _ACEOF
2823 rm -f conftest.$ac_objext
2824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2825 (eval $ac_compile) 2>conftest.er1
2826 ac_status=$?
2827 grep -v '^ *+' conftest.er1 >conftest.err
2828 rm -f conftest.er1
2829 cat conftest.err >&5
2830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831 (exit $ac_status); } &&
2832 { ac_try='test -z "$ac_c_werror_flag"
2833 || test ! -s conftest.err'
2834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2835 (eval $ac_try) 2>&5
2836 ac_status=$?
2837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838 (exit $ac_status); }; } &&
2839 { ac_try='test -s conftest.$ac_objext'
2840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2841 (eval $ac_try) 2>&5
2842 ac_status=$?
2843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844 (exit $ac_status); }; }; then
2845 ac_cv_prog_cc_g=yes
2846 else
2847 echo "$as_me: failed program was:" >&5
2848 sed 's/^/| /' conftest.$ac_ext >&5
2849
2850 ac_cv_prog_cc_g=no
2851 fi
2852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2853 fi
2854 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2855 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2856 if test "$ac_test_CFLAGS" = set; then
2857 CFLAGS=$ac_save_CFLAGS
2858 elif test $ac_cv_prog_cc_g = yes; then
2859 if test "$GCC" = yes; then
2860 CFLAGS="-g -O2"
2861 else
2862 CFLAGS="-g"
2863 fi
2864 else
2865 if test "$GCC" = yes; then
2866 CFLAGS="-O2"
2867 else
2868 CFLAGS=
2869 fi
2870 fi
2871 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2872 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2873 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2874 echo $ECHO_N "(cached) $ECHO_C" >&6
2875 else
2876 ac_cv_prog_cc_stdc=no
2877 ac_save_CC=$CC
2878 cat >conftest.$ac_ext <<_ACEOF
2879 /* confdefs.h. */
2880 _ACEOF
2881 cat confdefs.h >>conftest.$ac_ext
2882 cat >>conftest.$ac_ext <<_ACEOF
2883 /* end confdefs.h. */
2884 #include <stdarg.h>
2885 #include <stdio.h>
2886 #include <sys/types.h>
2887 #include <sys/stat.h>
2888 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2889 struct buf { int x; };
2890 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2891 static char *e (p, i)
2892 char **p;
2893 int i;
2894 {
2895 return p[i];
2896 }
2897 static char *f (char * (*g) (char **, int), char **p, ...)
2898 {
2899 char *s;
2900 va_list v;
2901 va_start (v,p);
2902 s = g (p, va_arg (v,int));
2903 va_end (v);
2904 return s;
2905 }
2906
2907 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2908 function prototypes and stuff, but not '\xHH' hex character constants.
2909 These don't provoke an error unfortunately, instead are silently treated
2910 as 'x'. The following induces an error, until -std1 is added to get
2911 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2912 array size at least. It's necessary to write '\x00'==0 to get something
2913 that's true only with -std1. */
2914 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2915
2916 int test (int i, double x);
2917 struct s1 {int (*f) (int a);};
2918 struct s2 {int (*f) (double a);};
2919 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2920 int argc;
2921 char **argv;
2922 int
2923 main ()
2924 {
2925 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2926 ;
2927 return 0;
2928 }
2929 _ACEOF
2930 # Don't try gcc -ansi; that turns off useful extensions and
2931 # breaks some systems' header files.
2932 # AIX -qlanglvl=ansi
2933 # Ultrix and OSF/1 -std1
2934 # HP-UX 10.20 and later -Ae
2935 # HP-UX older versions -Aa -D_HPUX_SOURCE
2936 # SVR4 -Xc -D__EXTENSIONS__
2937 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2938 do
2939 CC="$ac_save_CC $ac_arg"
2940 rm -f conftest.$ac_objext
2941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2942 (eval $ac_compile) 2>conftest.er1
2943 ac_status=$?
2944 grep -v '^ *+' conftest.er1 >conftest.err
2945 rm -f conftest.er1
2946 cat conftest.err >&5
2947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948 (exit $ac_status); } &&
2949 { ac_try='test -z "$ac_c_werror_flag"
2950 || test ! -s conftest.err'
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); }; } &&
2956 { ac_try='test -s conftest.$ac_objext'
2957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2958 (eval $ac_try) 2>&5
2959 ac_status=$?
2960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961 (exit $ac_status); }; }; then
2962 ac_cv_prog_cc_stdc=$ac_arg
2963 break
2964 else
2965 echo "$as_me: failed program was:" >&5
2966 sed 's/^/| /' conftest.$ac_ext >&5
2967
2968 fi
2969 rm -f conftest.err conftest.$ac_objext
2970 done
2971 rm -f conftest.$ac_ext conftest.$ac_objext
2972 CC=$ac_save_CC
2973
2974 fi
2975
2976 case "x$ac_cv_prog_cc_stdc" in
2977 x|xno)
2978 echo "$as_me:$LINENO: result: none needed" >&5
2979 echo "${ECHO_T}none needed" >&6 ;;
2980 *)
2981 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2982 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2983 CC="$CC $ac_cv_prog_cc_stdc" ;;
2984 esac
2985
2986 # Some people use a C++ compiler to compile C. Since we use `exit',
2987 # in C++ we need to declare it. In case someone uses the same compiler
2988 # for both compiling C and C++ we need to have the C++ compiler decide
2989 # the declaration of exit, since it's the most demanding environment.
2990 cat >conftest.$ac_ext <<_ACEOF
2991 #ifndef __cplusplus
2992 choke me
2993 #endif
2994 _ACEOF
2995 rm -f conftest.$ac_objext
2996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2997 (eval $ac_compile) 2>conftest.er1
2998 ac_status=$?
2999 grep -v '^ *+' conftest.er1 >conftest.err
3000 rm -f conftest.er1
3001 cat conftest.err >&5
3002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003 (exit $ac_status); } &&
3004 { ac_try='test -z "$ac_c_werror_flag"
3005 || test ! -s conftest.err'
3006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3007 (eval $ac_try) 2>&5
3008 ac_status=$?
3009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010 (exit $ac_status); }; } &&
3011 { ac_try='test -s conftest.$ac_objext'
3012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3013 (eval $ac_try) 2>&5
3014 ac_status=$?
3015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016 (exit $ac_status); }; }; then
3017 for ac_declaration in \
3018 '' \
3019 'extern "C" void std::exit (int) throw (); using std::exit;' \
3020 'extern "C" void std::exit (int); using std::exit;' \
3021 'extern "C" void exit (int) throw ();' \
3022 'extern "C" void exit (int);' \
3023 'void exit (int);'
3024 do
3025 cat >conftest.$ac_ext <<_ACEOF
3026 /* confdefs.h. */
3027 _ACEOF
3028 cat confdefs.h >>conftest.$ac_ext
3029 cat >>conftest.$ac_ext <<_ACEOF
3030 /* end confdefs.h. */
3031 $ac_declaration
3032 #include <stdlib.h>
3033 int
3034 main ()
3035 {
3036 exit (42);
3037 ;
3038 return 0;
3039 }
3040 _ACEOF
3041 rm -f conftest.$ac_objext
3042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3043 (eval $ac_compile) 2>conftest.er1
3044 ac_status=$?
3045 grep -v '^ *+' conftest.er1 >conftest.err
3046 rm -f conftest.er1
3047 cat conftest.err >&5
3048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049 (exit $ac_status); } &&
3050 { ac_try='test -z "$ac_c_werror_flag"
3051 || test ! -s conftest.err'
3052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3053 (eval $ac_try) 2>&5
3054 ac_status=$?
3055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056 (exit $ac_status); }; } &&
3057 { ac_try='test -s conftest.$ac_objext'
3058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3059 (eval $ac_try) 2>&5
3060 ac_status=$?
3061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062 (exit $ac_status); }; }; then
3063 :
3064 else
3065 echo "$as_me: failed program was:" >&5
3066 sed 's/^/| /' conftest.$ac_ext >&5
3067
3068 continue
3069 fi
3070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3071 cat >conftest.$ac_ext <<_ACEOF
3072 /* confdefs.h. */
3073 _ACEOF
3074 cat confdefs.h >>conftest.$ac_ext
3075 cat >>conftest.$ac_ext <<_ACEOF
3076 /* end confdefs.h. */
3077 $ac_declaration
3078 int
3079 main ()
3080 {
3081 exit (42);
3082 ;
3083 return 0;
3084 }
3085 _ACEOF
3086 rm -f conftest.$ac_objext
3087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3088 (eval $ac_compile) 2>conftest.er1
3089 ac_status=$?
3090 grep -v '^ *+' conftest.er1 >conftest.err
3091 rm -f conftest.er1
3092 cat conftest.err >&5
3093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094 (exit $ac_status); } &&
3095 { ac_try='test -z "$ac_c_werror_flag"
3096 || test ! -s conftest.err'
3097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3098 (eval $ac_try) 2>&5
3099 ac_status=$?
3100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101 (exit $ac_status); }; } &&
3102 { ac_try='test -s conftest.$ac_objext'
3103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3104 (eval $ac_try) 2>&5
3105 ac_status=$?
3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 (exit $ac_status); }; }; then
3108 break
3109 else
3110 echo "$as_me: failed program was:" >&5
3111 sed 's/^/| /' conftest.$ac_ext >&5
3112
3113 fi
3114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3115 done
3116 rm -f conftest*
3117 if test -n "$ac_declaration"; then
3118 echo '#ifdef __cplusplus' >>confdefs.h
3119 echo $ac_declaration >>confdefs.h
3120 echo '#endif' >>confdefs.h
3121 fi
3122
3123 else
3124 echo "$as_me: failed program was:" >&5
3125 sed 's/^/| /' conftest.$ac_ext >&5
3126
3127 fi
3128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3129 ac_ext=c
3130 ac_cpp='$CPP $CPPFLAGS'
3131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3134 DEPDIR="${am__leading_dot}deps"
3135
3136 ac_config_commands="$ac_config_commands depfiles"
3137
3138
3139 am_make=${MAKE-make}
3140 cat > confinc << 'END'
3141 am__doit:
3142 @echo done
3143 .PHONY: am__doit
3144 END
3145 # If we don't find an include directive, just comment out the code.
3146 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3147 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3148 am__include="#"
3149 am__quote=
3150 _am_result=none
3151 # First try GNU make style include.
3152 echo "include confinc" > confmf
3153 # We grep out `Entering directory' and `Leaving directory'
3154 # messages which can occur if `w' ends up in MAKEFLAGS.
3155 # In particular we don't look at `^make:' because GNU make might
3156 # be invoked under some other name (usually "gmake"), in which
3157 # case it prints its new name instead of `make'.
3158 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3159 am__include=include
3160 am__quote=
3161 _am_result=GNU
3162 fi
3163 # Now try BSD make style include.
3164 if test "$am__include" = "#"; then
3165 echo '.include "confinc"' > confmf
3166 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3167 am__include=.include
3168 am__quote="\""
3169 _am_result=BSD
3170 fi
3171 fi
3172
3173
3174 echo "$as_me:$LINENO: result: $_am_result" >&5
3175 echo "${ECHO_T}$_am_result" >&6
3176 rm -f confinc confmf
3177
3178 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3179 if test "${enable_dependency_tracking+set}" = set; then
3180 enableval="$enable_dependency_tracking"
3181
3182 fi;
3183 if test "x$enable_dependency_tracking" != xno; then
3184 am_depcomp="$ac_aux_dir/depcomp"
3185 AMDEPBACKSLASH='\'
3186 fi
3187
3188
3189 if test "x$enable_dependency_tracking" != xno; then
3190 AMDEP_TRUE=
3191 AMDEP_FALSE='#'
3192 else
3193 AMDEP_TRUE='#'
3194 AMDEP_FALSE=
3195 fi
3196
3197
3198
3199
3200 depcc="$CC" am_compiler_list=
3201
3202 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3203 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3204 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3205 echo $ECHO_N "(cached) $ECHO_C" >&6
3206 else
3207 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3208 # We make a subdir and do the tests there. Otherwise we can end up
3209 # making bogus files that we don't know about and never remove. For
3210 # instance it was reported that on HP-UX the gcc test will end up
3211 # making a dummy file named `D' -- because `-MD' means `put the output
3212 # in D'.
3213 mkdir conftest.dir
3214 # Copy depcomp to subdir because otherwise we won't find it if we're
3215 # using a relative directory.
3216 cp "$am_depcomp" conftest.dir
3217 cd conftest.dir
3218 # We will build objects and dependencies in a subdirectory because
3219 # it helps to detect inapplicable dependency modes. For instance
3220 # both Tru64's cc and ICC support -MD to output dependencies as a
3221 # side effect of compilation, but ICC will put the dependencies in
3222 # the current directory while Tru64 will put them in the object
3223 # directory.
3224 mkdir sub
3225
3226 am_cv_CC_dependencies_compiler_type=none
3227 if test "$am_compiler_list" = ""; then
3228 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3229 fi
3230 for depmode in $am_compiler_list; do
3231 # Setup a source with many dependencies, because some compilers
3232 # like to wrap large dependency lists on column 80 (with \), and
3233 # we should not choose a depcomp mode which is confused by this.
3234 #
3235 # We need to recreate these files for each test, as the compiler may
3236 # overwrite some of them when testing with obscure command lines.
3237 # This happens at least with the AIX C compiler.
3238 : > sub/conftest.c
3239 for i in 1 2 3 4 5 6; do
3240 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3241 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3242 # Solaris 8's {/usr,}/bin/sh.
3243 touch sub/conftst$i.h
3244 done
3245 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3246
3247 case $depmode in
3248 nosideeffect)
3249 # after this tag, mechanisms are not by side-effect, so they'll
3250 # only be used when explicitly requested
3251 if test "x$enable_dependency_tracking" = xyes; then
3252 continue
3253 else
3254 break
3255 fi
3256 ;;
3257 none) break ;;
3258 esac
3259 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3260 # mode. It turns out that the SunPro C++ compiler does not properly
3261 # handle `-M -o', and we need to detect this.
3262 if depmode=$depmode \
3263 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3264 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3265 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3266 >/dev/null 2>conftest.err &&
3267 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3268 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3269 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3270 # icc doesn't choke on unknown options, it will just issue warnings
3271 # or remarks (even with -Werror). So we grep stderr for any message
3272 # that says an option was ignored or not supported.
3273 # When given -MP, icc 7.0 and 7.1 complain thusly:
3274 # icc: Command line warning: ignoring option '-M'; no argument required
3275 # The diagnosis changed in icc 8.0:
3276 # icc: Command line remark: option '-MP' not supported
3277 if (grep 'ignoring option' conftest.err ||
3278 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3279 am_cv_CC_dependencies_compiler_type=$depmode
3280 break
3281 fi
3282 fi
3283 done
3284
3285 cd ..
3286 rm -rf conftest.dir
3287 else
3288 am_cv_CC_dependencies_compiler_type=none
3289 fi
3290
3291 fi
3292 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3293 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3294 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3295
3296
3297
3298 if
3299 test "x$enable_dependency_tracking" != xno \
3300 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3301 am__fastdepCC_TRUE=
3302 am__fastdepCC_FALSE='#'
3303 else
3304 am__fastdepCC_TRUE='#'
3305 am__fastdepCC_FALSE=
3306 fi
3307
3308
3309
3310
3311
3312
3313 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
3314 # in XCFLAGS. But we need them in CFLAGS during configury. So put them
3315 # in both places for now and restore CFLAGS at the end of config.
3316 save_CFLAGS="$CFLAGS"
3317
3318 # Add -Wall -Werror if we are using GCC.
3319 if test "x$GCC" = "xyes"; then
3320 XCFLAGS="$XCFLAGS -Wall -Werror"
3321 fi
3322
3323 # Find other programs we need.
3324 if test -n "$ac_tool_prefix"; then
3325 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3326 set dummy ${ac_tool_prefix}ar; ac_word=$2
3327 echo "$as_me:$LINENO: checking for $ac_word" >&5
3328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3329 if test "${ac_cv_prog_AR+set}" = set; then
3330 echo $ECHO_N "(cached) $ECHO_C" >&6
3331 else
3332 if test -n "$AR"; then
3333 ac_cv_prog_AR="$AR" # Let the user override the test.
3334 else
3335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3336 for as_dir in $PATH
3337 do
3338 IFS=$as_save_IFS
3339 test -z "$as_dir" && as_dir=.
3340 for ac_exec_ext in '' $ac_executable_extensions; do
3341 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3342 ac_cv_prog_AR="${ac_tool_prefix}ar"
3343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3344 break 2
3345 fi
3346 done
3347 done
3348
3349 fi
3350 fi
3351 AR=$ac_cv_prog_AR
3352 if test -n "$AR"; then
3353 echo "$as_me:$LINENO: result: $AR" >&5
3354 echo "${ECHO_T}$AR" >&6
3355 else
3356 echo "$as_me:$LINENO: result: no" >&5
3357 echo "${ECHO_T}no" >&6
3358 fi
3359
3360 fi
3361 if test -z "$ac_cv_prog_AR"; then
3362 ac_ct_AR=$AR
3363 # Extract the first word of "ar", so it can be a program name with args.
3364 set dummy ar; ac_word=$2
3365 echo "$as_me:$LINENO: checking for $ac_word" >&5
3366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3367 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3368 echo $ECHO_N "(cached) $ECHO_C" >&6
3369 else
3370 if test -n "$ac_ct_AR"; then
3371 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3372 else
3373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3374 for as_dir in $PATH
3375 do
3376 IFS=$as_save_IFS
3377 test -z "$as_dir" && as_dir=.
3378 for ac_exec_ext in '' $ac_executable_extensions; do
3379 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3380 ac_cv_prog_ac_ct_AR="ar"
3381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3382 break 2
3383 fi
3384 done
3385 done
3386
3387 fi
3388 fi
3389 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3390 if test -n "$ac_ct_AR"; then
3391 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3392 echo "${ECHO_T}$ac_ct_AR" >&6
3393 else
3394 echo "$as_me:$LINENO: result: no" >&5
3395 echo "${ECHO_T}no" >&6
3396 fi
3397
3398 AR=$ac_ct_AR
3399 else
3400 AR="$ac_cv_prog_AR"
3401 fi
3402
3403 if test -n "$ac_tool_prefix"; then
3404 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3405 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3406 echo "$as_me:$LINENO: checking for $ac_word" >&5
3407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3408 if test "${ac_cv_prog_RANLIB+set}" = set; then
3409 echo $ECHO_N "(cached) $ECHO_C" >&6
3410 else
3411 if test -n "$RANLIB"; then
3412 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3413 else
3414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3415 for as_dir in $PATH
3416 do
3417 IFS=$as_save_IFS
3418 test -z "$as_dir" && as_dir=.
3419 for ac_exec_ext in '' $ac_executable_extensions; do
3420 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3421 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3423 break 2
3424 fi
3425 done
3426 done
3427
3428 fi
3429 fi
3430 RANLIB=$ac_cv_prog_RANLIB
3431 if test -n "$RANLIB"; then
3432 echo "$as_me:$LINENO: result: $RANLIB" >&5
3433 echo "${ECHO_T}$RANLIB" >&6
3434 else
3435 echo "$as_me:$LINENO: result: no" >&5
3436 echo "${ECHO_T}no" >&6
3437 fi
3438
3439 fi
3440 if test -z "$ac_cv_prog_RANLIB"; then
3441 ac_ct_RANLIB=$RANLIB
3442 # Extract the first word of "ranlib", so it can be a program name with args.
3443 set dummy ranlib; ac_word=$2
3444 echo "$as_me:$LINENO: checking for $ac_word" >&5
3445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3446 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3447 echo $ECHO_N "(cached) $ECHO_C" >&6
3448 else
3449 if test -n "$ac_ct_RANLIB"; then
3450 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3451 else
3452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3453 for as_dir in $PATH
3454 do
3455 IFS=$as_save_IFS
3456 test -z "$as_dir" && as_dir=.
3457 for ac_exec_ext in '' $ac_executable_extensions; do
3458 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3459 ac_cv_prog_ac_ct_RANLIB="ranlib"
3460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3461 break 2
3462 fi
3463 done
3464 done
3465
3466 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error"
3467 fi
3468 fi
3469 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3470 if test -n "$ac_ct_RANLIB"; then
3471 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3472 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3473 else
3474 echo "$as_me:$LINENO: result: no" >&5
3475 echo "${ECHO_T}no" >&6
3476 fi
3477
3478 RANLIB=$ac_ct_RANLIB
3479 else
3480 RANLIB="$ac_cv_prog_RANLIB"
3481 fi
3482
3483 # Extract the first word of "perl", so it can be a program name with args.
3484 set dummy perl; 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_path_PERL+set}" = set; then
3488 echo $ECHO_N "(cached) $ECHO_C" >&6
3489 else
3490 case $PERL in
3491 [\\/]* | ?:[\\/]*)
3492 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3493 ;;
3494 *)
3495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3496 for as_dir in $PATH
3497 do
3498 IFS=$as_save_IFS
3499 test -z "$as_dir" && as_dir=.
3500 for ac_exec_ext in '' $ac_executable_extensions; do
3501 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3502 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
3503 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3504 break 2
3505 fi
3506 done
3507 done
3508
3509 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
3510 ;;
3511 esac
3512 fi
3513 PERL=$ac_cv_path_PERL
3514
3515 if test -n "$PERL"; then
3516 echo "$as_me:$LINENO: result: $PERL" >&5
3517 echo "${ECHO_T}$PERL" >&6
3518 else
3519 echo "$as_me:$LINENO: result: no" >&5
3520 echo "${ECHO_T}no" >&6
3521 fi
3522
3523 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3524 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3525 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3526 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3527 echo $ECHO_N "(cached) $ECHO_C" >&6
3528 else
3529 cat >conftest.make <<\_ACEOF
3530 all:
3531 @echo 'ac_maketemp="$(MAKE)"'
3532 _ACEOF
3533 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3534 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3535 if test -n "$ac_maketemp"; then
3536 eval ac_cv_prog_make_${ac_make}_set=yes
3537 else
3538 eval ac_cv_prog_make_${ac_make}_set=no
3539 fi
3540 rm -f conftest.make
3541 fi
3542 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3543 echo "$as_me:$LINENO: result: yes" >&5
3544 echo "${ECHO_T}yes" >&6
3545 SET_MAKE=
3546 else
3547 echo "$as_me:$LINENO: result: no" >&5
3548 echo "${ECHO_T}no" >&6
3549 SET_MAKE="MAKE=${MAKE-make}"
3550 fi
3551
3552 # Find a good install program. We prefer a C program (faster),
3553 # so one script is as good as another. But avoid the broken or
3554 # incompatible versions:
3555 # SysV /etc/install, /usr/sbin/install
3556 # SunOS /usr/etc/install
3557 # IRIX /sbin/install
3558 # AIX /bin/install
3559 # AmigaOS /C/install, which installs bootblocks on floppy discs
3560 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3561 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3562 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3563 # OS/2's system install, which has a completely different semantic
3564 # ./install, which can be erroneously created by make from ./install.sh.
3565 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3566 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3567 if test -z "$INSTALL"; then
3568 if test "${ac_cv_path_install+set}" = set; then
3569 echo $ECHO_N "(cached) $ECHO_C" >&6
3570 else
3571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3572 for as_dir in $PATH
3573 do
3574 IFS=$as_save_IFS
3575 test -z "$as_dir" && as_dir=.
3576 # Account for people who put trailing slashes in PATH elements.
3577 case $as_dir/ in
3578 ./ | .// | /cC/* | \
3579 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3580 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3581 /usr/ucb/* ) ;;
3582 *)
3583 # OSF1 and SCO ODT 3.0 have their own names for install.
3584 # Don't use installbsd from OSF since it installs stuff as root
3585 # by default.
3586 for ac_prog in ginstall scoinst install; do
3587 for ac_exec_ext in '' $ac_executable_extensions; do
3588 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3589 if test $ac_prog = install &&
3590 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3591 # AIX install. It has an incompatible calling convention.
3592 :
3593 elif test $ac_prog = install &&
3594 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3595 # program-specific install script used by HP pwplus--don't use.
3596 :
3597 else
3598 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3599 break 3
3600 fi
3601 fi
3602 done
3603 done
3604 ;;
3605 esac
3606 done
3607
3608
3609 fi
3610 if test "${ac_cv_path_install+set}" = set; then
3611 INSTALL=$ac_cv_path_install
3612 else
3613 # As a last resort, use the slow shell script. We don't cache a
3614 # path for INSTALL within a source directory, because that will
3615 # break other packages using the cache if that directory is
3616 # removed, or if the path is relative.
3617 INSTALL=$ac_install_sh
3618 fi
3619 fi
3620 echo "$as_me:$LINENO: result: $INSTALL" >&5
3621 echo "${ECHO_T}$INSTALL" >&6
3622
3623 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3624 # It thinks the first close brace ends the variable substitution.
3625 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3626
3627 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3628
3629 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3630
3631
3632 # See if makeinfo has been installed and is modern enough
3633 # that we can use it.
3634
3635 # Extract the first word of "makeinfo", so it can be a program name with args.
3636 set dummy makeinfo; ac_word=$2
3637 echo "$as_me:$LINENO: checking for $ac_word" >&5
3638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3639 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
3640 echo $ECHO_N "(cached) $ECHO_C" >&6
3641 else
3642 if test -n "$MAKEINFO"; then
3643 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3644 else
3645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3646 for as_dir in $PATH
3647 do
3648 IFS=$as_save_IFS
3649 test -z "$as_dir" && as_dir=.
3650 for ac_exec_ext in '' $ac_executable_extensions; do
3651 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3652 ac_cv_prog_MAKEINFO="makeinfo"
3653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3654 break 2
3655 fi
3656 done
3657 done
3658
3659 fi
3660 fi
3661 MAKEINFO=$ac_cv_prog_MAKEINFO
3662 if test -n "$MAKEINFO"; then
3663 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
3664 echo "${ECHO_T}$MAKEINFO" >&6
3665 else
3666 echo "$as_me:$LINENO: result: no" >&5
3667 echo "${ECHO_T}no" >&6
3668 fi
3669
3670 if test -n "$MAKEINFO"; then
3671 # Found it, now check the version.
3672 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
3673 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
3674 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
3675 echo $ECHO_N "(cached) $ECHO_C" >&6
3676 else
3677 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
3678 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
3679
3680 case $ac_prog_version in
3681 '') gcc_cv_prog_makeinfo_modern=no;;
3682 4.[4-9]*) gcc_cv_prog_makeinfo_modern=yes;;
3683 *) gcc_cv_prog_makeinfo_modern=no;;
3684 esac
3685
3686 fi
3687 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
3688 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
3689 else
3690 gcc_cv_prog_makeinfo_modern=no
3691 fi
3692 if test $gcc_cv_prog_makeinfo_modern = no; then
3693 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
3694 fi
3695
3696
3697
3698 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
3699 BUILD_INFO_TRUE=
3700 BUILD_INFO_FALSE='#'
3701 else
3702 BUILD_INFO_TRUE='#'
3703 BUILD_INFO_FALSE=
3704 fi
3705
3706
3707
3708 # Configure libtool
3709
3710
3711 macro_version='2.1a'
3712 macro_revision='1.2435'
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725 ltmain="$ac_aux_dir/ltmain.sh"
3726
3727 # Set options
3728
3729 enable_dlopen=no
3730
3731
3732 enable_win32_dll=no
3733
3734
3735 # Check whether --enable-shared or --disable-shared was given.
3736 if test "${enable_shared+set}" = set; then
3737 enableval="$enable_shared"
3738 p=${PACKAGE-default}
3739 case $enableval in
3740 yes) enable_shared=yes ;;
3741 no) enable_shared=no ;;
3742 *)
3743 enable_shared=no
3744 # Look at the argument we got. We use all the common list separators.
3745 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3746 for pkg in $enableval; do
3747 IFS="$lt_save_ifs"
3748 if test "X$pkg" = "X$p"; then
3749 enable_shared=yes
3750 fi
3751 done
3752 IFS="$lt_save_ifs"
3753 ;;
3754 esac
3755 else
3756 enable_shared=yes
3757 fi;
3758
3759
3760
3761
3762
3763
3764
3765
3766 # Check whether --enable-static or --disable-static was given.
3767 if test "${enable_static+set}" = set; then
3768 enableval="$enable_static"
3769 p=${PACKAGE-default}
3770 case $enableval in
3771 yes) enable_static=yes ;;
3772 no) enable_static=no ;;
3773 *)
3774 enable_static=no
3775 # Look at the argument we got. We use all the common list separators.
3776 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3777 for pkg in $enableval; do
3778 IFS="$lt_save_ifs"
3779 if test "X$pkg" = "X$p"; then
3780 enable_static=yes
3781 fi
3782 done
3783 IFS="$lt_save_ifs"
3784 ;;
3785 esac
3786 else
3787 enable_static=yes
3788 fi;
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798 # Check whether --with-pic or --without-pic was given.
3799 if test "${with_pic+set}" = set; then
3800 withval="$with_pic"
3801 pic_mode="$withval"
3802 else
3803 pic_mode=default
3804 fi;
3805
3806 test -z "$pic_mode" && pic_mode=default
3807
3808
3809
3810
3811
3812
3813
3814 # Check whether --enable-fast-install or --disable-fast-install was given.
3815 if test "${enable_fast_install+set}" = set; then
3816 enableval="$enable_fast_install"
3817 p=${PACKAGE-default}
3818 case $enableval in
3819 yes) enable_fast_install=yes ;;
3820 no) enable_fast_install=no ;;
3821 *)
3822 enable_fast_install=no
3823 # Look at the argument we got. We use all the common list separators.
3824 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3825 for pkg in $enableval; do
3826 IFS="$lt_save_ifs"
3827 if test "X$pkg" = "X$p"; then
3828 enable_fast_install=yes
3829 fi
3830 done
3831 IFS="$lt_save_ifs"
3832 ;;
3833 esac
3834 else
3835 enable_fast_install=yes
3836 fi;
3837
3838
3839
3840
3841
3842
3843
3844
3845 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3846 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3847 if test "${lt_cv_path_SED+set}" = set; then
3848 echo $ECHO_N "(cached) $ECHO_C" >&6
3849 else
3850 # Loop through the user's path and test for sed and gsed.
3851 # Then use that list of sed's as ones to test for truncation.
3852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3853 for as_dir in $PATH
3854 do
3855 IFS=$as_save_IFS
3856 test -z "$as_dir" && as_dir=.
3857 for lt_ac_prog in sed gsed; do
3858 for ac_exec_ext in '' $ac_executable_extensions; do
3859 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3860 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3861 fi
3862 done
3863 done
3864 done
3865 IFS=$as_save_IFS
3866 lt_ac_max=0
3867 lt_ac_count=0
3868 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3869 # along with /bin/sed that truncates output.
3870 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3871 test ! -f $lt_ac_sed && continue
3872 cat /dev/null > conftest.in
3873 lt_ac_count=0
3874 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3875 # Check for GNU sed and select it if it is found.
3876 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3877 lt_cv_path_SED=$lt_ac_sed
3878 break
3879 fi
3880 while true; do
3881 cat conftest.in conftest.in >conftest.tmp
3882 mv conftest.tmp conftest.in
3883 cp conftest.in conftest.nl
3884 echo >>conftest.nl
3885 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3886 cmp -s conftest.out conftest.nl || break
3887 # 10000 chars as input seems more than enough
3888 test $lt_ac_count -gt 10 && break
3889 lt_ac_count=`expr $lt_ac_count + 1`
3890 if test $lt_ac_count -gt $lt_ac_max; then
3891 lt_ac_max=$lt_ac_count
3892 lt_cv_path_SED=$lt_ac_sed
3893 fi
3894 done
3895 done
3896
3897 fi
3898
3899 SED=$lt_cv_path_SED
3900
3901 echo "$as_me:$LINENO: result: $SED" >&5
3902 echo "${ECHO_T}$SED" >&6
3903
3904 test -z "$SED" && SED=sed
3905 Xsed="$SED -e 1s/^X//"
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917 echo "$as_me:$LINENO: checking for egrep" >&5
3918 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3919 if test "${ac_cv_prog_egrep+set}" = set; then
3920 echo $ECHO_N "(cached) $ECHO_C" >&6
3921 else
3922 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3923 then ac_cv_prog_egrep='grep -E'
3924 else ac_cv_prog_egrep='egrep'
3925 fi
3926 fi
3927 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3928 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3929 EGREP=$ac_cv_prog_egrep
3930
3931
3932 echo "$as_me:$LINENO: checking for fgrep" >&5
3933 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
3934 if test "${ac_cv_prog_fgrep+set}" = set; then
3935 echo $ECHO_N "(cached) $ECHO_C" >&6
3936 else
3937 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
3938 then ac_cv_prog_fgrep='grep -F'
3939 else ac_cv_prog_fgrep='fgrep'
3940 fi
3941 fi
3942 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
3943 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
3944 FGREP=$ac_cv_prog_fgrep
3945
3946
3947 test -z "$GREP" && GREP=grep
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3968 if test "${with_gnu_ld+set}" = set; then
3969 withval="$with_gnu_ld"
3970 test "$withval" = no || with_gnu_ld=yes
3971 else
3972 with_gnu_ld=no
3973 fi;
3974 ac_prog=ld
3975 if test "$GCC" = yes; then
3976 # Check if gcc -print-prog-name=ld gives a path.
3977 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3978 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3979 case $host in
3980 *-*-mingw*)
3981 # gcc leaves a trailing carriage return which upsets mingw
3982 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3983 *)
3984 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3985 esac
3986 case $ac_prog in
3987 # Accept absolute paths.
3988 [\\/]* | ?:[\\/]*)
3989 re_direlt='/[^/][^/]*/\.\./'
3990 # Canonicalize the pathname of ld
3991 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3992 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3993 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3994 done
3995 test -z "$LD" && LD="$ac_prog"
3996 ;;
3997 "")
3998 # If it fails, then pretend we aren't using GCC.
3999 ac_prog=ld
4000 ;;
4001 *)
4002 # If it is relative, then search for the first ld in PATH.
4003 with_gnu_ld=unknown
4004 ;;
4005 esac
4006 elif test "$with_gnu_ld" = yes; then
4007 echo "$as_me:$LINENO: checking for GNU ld" >&5
4008 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4009 else
4010 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4011 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4012 fi
4013 if test "${lt_cv_path_LD+set}" = set; then
4014 echo $ECHO_N "(cached) $ECHO_C" >&6
4015 else
4016 if test -z "$LD"; then
4017 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4018 for ac_dir in $PATH; do
4019 IFS="$lt_save_ifs"
4020 test -z "$ac_dir" && ac_dir=.
4021 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4022 lt_cv_path_LD="$ac_dir/$ac_prog"
4023 # Check to see if the program is GNU ld. I'd rather use --version,
4024 # but apparently some variants of GNU ld only accept -v.
4025 # Break only if it was the GNU/non-GNU ld that we prefer.
4026 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4027 *GNU* | *'with BFD'*)
4028 test "$with_gnu_ld" != no && break
4029 ;;
4030 *)
4031 test "$with_gnu_ld" != yes && break
4032 ;;
4033 esac
4034 fi
4035 done
4036 IFS="$lt_save_ifs"
4037 else
4038 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4039 fi
4040 fi
4041
4042 LD="$lt_cv_path_LD"
4043 if test -n "$LD"; then
4044 echo "$as_me:$LINENO: result: $LD" >&5
4045 echo "${ECHO_T}$LD" >&6
4046 else
4047 echo "$as_me:$LINENO: result: no" >&5
4048 echo "${ECHO_T}no" >&6
4049 fi
4050 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4051 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4052 { (exit 1); exit 1; }; }
4053 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4054 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4055 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4056 echo $ECHO_N "(cached) $ECHO_C" >&6
4057 else
4058 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4059 case `$LD -v 2>&1 </dev/null` in
4060 *GNU* | *'with BFD'*)
4061 lt_cv_prog_gnu_ld=yes
4062 ;;
4063 *)
4064 lt_cv_prog_gnu_ld=no
4065 ;;
4066 esac
4067 fi
4068 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4069 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4070 with_gnu_ld=$lt_cv_prog_gnu_ld
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4082 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
4083 if test "${lt_cv_path_NM+set}" = set; then
4084 echo $ECHO_N "(cached) $ECHO_C" >&6
4085 else
4086 if test -n "$NM"; then
4087 # Let the user override the test.
4088 lt_cv_path_NM="$NM"
4089 else
4090 lt_nm_to_check="${ac_tool_prefix}nm"
4091 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4092 lt_nm_to_check="$lt_nm_to_check nm"
4093 fi
4094 for lt_tmp_nm in $lt_nm_to_check; do
4095 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4096 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4097 IFS="$lt_save_ifs"
4098 test -z "$ac_dir" && ac_dir=.
4099 tmp_nm="$ac_dir/$lt_tmp_nm"
4100 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4101 # Check to see if the nm accepts a BSD-compat flag.
4102 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4103 # nm: unknown option "B" ignored
4104 # Tru64's nm complains that /dev/null is an invalid object file
4105 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4106 */dev/null* | *'Invalid file or object type'*)
4107 lt_cv_path_NM="$tmp_nm -B"
4108 break
4109 ;;
4110 *)
4111 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4112 */dev/null*)
4113 lt_cv_path_NM="$tmp_nm -p"
4114 break
4115 ;;
4116 *)
4117 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4118 continue # so that we can try to find one that supports BSD flags
4119 ;;
4120 esac
4121 ;;
4122 esac
4123 fi
4124 done
4125 IFS="$lt_save_ifs"
4126 done
4127 : ${lt_cv_path_NM=no}
4128 fi
4129 fi
4130 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4131 echo "${ECHO_T}$lt_cv_path_NM" >&6
4132 if test "$lt_cv_path_NM" != "no"; then
4133 NM="$lt_cv_path_NM"
4134 else
4135 # Didn't find any BSD compatible name lister, look for dumpbin.
4136 if test -n "$ac_tool_prefix"; then
4137 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4138 do
4139 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4140 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4141 echo "$as_me:$LINENO: checking for $ac_word" >&5
4142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4143 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4144 echo $ECHO_N "(cached) $ECHO_C" >&6
4145 else
4146 if test -n "$DUMPBIN"; then
4147 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4148 else
4149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4150 for as_dir in $PATH
4151 do
4152 IFS=$as_save_IFS
4153 test -z "$as_dir" && as_dir=.
4154 for ac_exec_ext in '' $ac_executable_extensions; do
4155 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4156 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4158 break 2
4159 fi
4160 done
4161 done
4162
4163 fi
4164 fi
4165 DUMPBIN=$ac_cv_prog_DUMPBIN
4166 if test -n "$DUMPBIN"; then
4167 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4168 echo "${ECHO_T}$DUMPBIN" >&6
4169 else
4170 echo "$as_me:$LINENO: result: no" >&5
4171 echo "${ECHO_T}no" >&6
4172 fi
4173
4174 test -n "$DUMPBIN" && break
4175 done
4176 fi
4177 if test -z "$DUMPBIN"; then
4178 ac_ct_DUMPBIN=$DUMPBIN
4179 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4180 do
4181 # Extract the first word of "$ac_prog", so it can be a program name with args.
4182 set dummy $ac_prog; ac_word=$2
4183 echo "$as_me:$LINENO: checking for $ac_word" >&5
4184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4185 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4186 echo $ECHO_N "(cached) $ECHO_C" >&6
4187 else
4188 if test -n "$ac_ct_DUMPBIN"; then
4189 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4190 else
4191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4192 for as_dir in $PATH
4193 do
4194 IFS=$as_save_IFS
4195 test -z "$as_dir" && as_dir=.
4196 for ac_exec_ext in '' $ac_executable_extensions; do
4197 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4198 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4200 break 2
4201 fi
4202 done
4203 done
4204
4205 fi
4206 fi
4207 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4208 if test -n "$ac_ct_DUMPBIN"; then
4209 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4210 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4211 else
4212 echo "$as_me:$LINENO: result: no" >&5
4213 echo "${ECHO_T}no" >&6
4214 fi
4215
4216 test -n "$ac_ct_DUMPBIN" && break
4217 done
4218 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
4219
4220 DUMPBIN=$ac_ct_DUMPBIN
4221 fi
4222
4223
4224 if test "$DUMPBIN" != ":"; then
4225 NM="$DUMPBIN"
4226 fi
4227 fi
4228 test -z "$NM" && NM=nm
4229
4230
4231
4232
4233
4234
4235 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4236 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4237 if test "${lt_cv_nm_interface+set}" = set; then
4238 echo $ECHO_N "(cached) $ECHO_C" >&6
4239 else
4240 lt_cv_nm_interface="BSD nm"
4241 echo "int some_variable = 0;" > conftest.$ac_ext
4242 (eval echo "\"\$as_me:4242: $ac_compile\"" >&5)
4243 (eval "$ac_compile" 2>conftest.err)
4244 cat conftest.err >&5
4245 (eval echo "\"\$as_me:4245: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4246 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4247 cat conftest.err >&5
4248 (eval echo "\"\$as_me:4248: output\"" >&5)
4249 cat conftest.out >&5
4250 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4251 lt_cv_nm_interface="MS dumpbin"
4252 fi
4253 rm -f conftest*
4254 fi
4255 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4256 echo "${ECHO_T}$lt_cv_nm_interface" >&6
4257
4258 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4259 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4260 LN_S=$as_ln_s
4261 if test "$LN_S" = "ln -s"; then
4262 echo "$as_me:$LINENO: result: yes" >&5
4263 echo "${ECHO_T}yes" >&6
4264 else
4265 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4266 echo "${ECHO_T}no, using $LN_S" >&6
4267 fi
4268
4269 # find the maximum length of command line arguments
4270 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4271 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4272 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4273 echo $ECHO_N "(cached) $ECHO_C" >&6
4274 else
4275 i=0
4276 teststring="ABCD"
4277
4278 case $build_os in
4279 msdosdjgpp*)
4280 # On DJGPP, this test can blow up pretty badly due to problems in libc
4281 # (any single argument exceeding 2000 bytes causes a buffer overrun
4282 # during glob expansion). Even if it were fixed, the result of this
4283 # check would be larger than it should be.
4284 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4285 ;;
4286
4287 gnu*)
4288 # Under GNU Hurd, this test is not required because there is
4289 # no limit to the length of command line arguments.
4290 # Libtool will interpret -1 as no limit whatsoever
4291 lt_cv_sys_max_cmd_len=-1;
4292 ;;
4293
4294 cygwin* | mingw*)
4295 # On Win9x/ME, this test blows up -- it succeeds, but takes
4296 # about 5 minutes as the teststring grows exponentially.
4297 # Worse, since 9x/ME are not pre-emptively multitasking,
4298 # you end up with a "frozen" computer, even though with patience
4299 # the test eventually succeeds (with a max line length of 256k).
4300 # Instead, let's just punt: use the minimum linelength reported by
4301 # all of the supported platforms: 8192 (on NT/2K/XP).
4302 lt_cv_sys_max_cmd_len=8192;
4303 ;;
4304
4305 amigaos*)
4306 # On AmigaOS with pdksh, this test takes hours, literally.
4307 # So we just punt and use a minimum line length of 8192.
4308 lt_cv_sys_max_cmd_len=8192;
4309 ;;
4310
4311 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4312 # This has been around since 386BSD, at least. Likely further.
4313 if test -x /sbin/sysctl; then
4314 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4315 elif test -x /usr/sbin/sysctl; then
4316 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4317 else
4318 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4319 fi
4320 # And add a safety zone
4321 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4322 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4323 ;;
4324
4325 interix*)
4326 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4327 lt_cv_sys_max_cmd_len=196608
4328 ;;
4329
4330 osf*)
4331 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4332 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4333 # nice to cause kernel panics so lets avoid the loop below.
4334 # First set a reasonable default.
4335 lt_cv_sys_max_cmd_len=16384
4336 #
4337 if test -x /sbin/sysconfig; then
4338 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4339 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4340 esac
4341 fi
4342 ;;
4343 sco3.2v5*)
4344 lt_cv_sys_max_cmd_len=102400
4345 ;;
4346 sysv5* | sco5v6* | sysv4.2uw2*)
4347 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4348 if test -n "$kargmax"; then
4349 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4350 else
4351 lt_cv_sys_max_cmd_len=32768
4352 fi
4353 ;;
4354 *)
4355 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
4356 if test -n $lt_cv_sys_max_cmd_len; then
4357 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4358 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4359 else
4360 # Make teststring a little bigger before we do anything with it.
4361 # a 1K string should be a reasonable start.
4362 for i in 1 2 3 4 5 6 7 8 ; do
4363 teststring=$teststring$teststring
4364 done
4365 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4366 # If test is not a shell built-in, we'll probably end up computing a
4367 # maximum length that is only half of the actual maximum length, but
4368 # we can't tell.
4369 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4370 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4371 test $i != 17 # 1/2 MB should be enough
4372 do
4373 i=`expr $i + 1`
4374 teststring=$teststring$teststring
4375 done
4376 # Only check the string length outside the loop.
4377 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4378 teststring=
4379 # Add a significant safety factor because C++ compilers can tack on
4380 # massive amounts of additional arguments before passing them to the
4381 # linker. It appears as though 1/2 is a usable value.
4382 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4383 fi
4384 ;;
4385 esac
4386
4387 fi
4388
4389 if test -n $lt_cv_sys_max_cmd_len ; then
4390 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4391 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4392 else
4393 echo "$as_me:$LINENO: result: none" >&5
4394 echo "${ECHO_T}none" >&6
4395 fi
4396 max_cmd_len=$lt_cv_sys_max_cmd_len
4397
4398
4399
4400
4401
4402
4403
4404 : ${CP="cp -f"}
4405 : ${MV="mv -f"}
4406 : ${RM="rm -f"}
4407
4408 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4409 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4410 # Try some XSI features
4411 xsi_shell=no
4412 ( _lt_dummy="a/b/c"
4413 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4414 = c,a/b,, ) >/dev/null 2>&1 \
4415 && xsi_shell=yes
4416 echo "$as_me:$LINENO: result: $xsi_shell" >&5
4417 echo "${ECHO_T}$xsi_shell" >&6
4418
4419
4420 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4421 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4422 lt_shell_append=no
4423 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4424 >/dev/null 2>&1 \
4425 && lt_shell_append=yes
4426 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4427 echo "${ECHO_T}$lt_shell_append" >&6
4428
4429
4430 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4431 lt_unset=unset
4432 else
4433 lt_unset=false
4434 fi
4435
4436
4437
4438
4439
4440 # test EBCDIC or ASCII
4441 case `echo X|tr X '\101'` in
4442 A) # ASCII based system
4443 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4444 lt_SP2NL='tr \040 \012'
4445 lt_NL2SP='tr \015\012 \040\040'
4446 ;;
4447 *) # EBCDIC based system
4448 lt_SP2NL='tr \100 \n'
4449 lt_NL2SP='tr \r\n \100\100'
4450 ;;
4451 esac
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4462 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4463 if test "${lt_cv_ld_reload_flag+set}" = set; then
4464 echo $ECHO_N "(cached) $ECHO_C" >&6
4465 else
4466 lt_cv_ld_reload_flag='-r'
4467 fi
4468 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4469 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4470 reload_flag=$lt_cv_ld_reload_flag
4471 case $reload_flag in
4472 "" | " "*) ;;
4473 *) reload_flag=" $reload_flag" ;;
4474 esac
4475 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4476 case $host_os in
4477 darwin*)
4478 if test "$GCC" = yes; then
4479 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4480 else
4481 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4482 fi
4483 ;;
4484 esac
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4496 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4497 if test "${lt_cv_deplibs_check_method+set}" = set; then
4498 echo $ECHO_N "(cached) $ECHO_C" >&6
4499 else
4500 lt_cv_file_magic_cmd='$MAGIC_CMD'
4501 lt_cv_file_magic_test_file=
4502 lt_cv_deplibs_check_method='unknown'
4503 # Need to set the preceding variable on all platforms that support
4504 # interlibrary dependencies.
4505 # 'none' -- dependencies not supported.
4506 # `unknown' -- same as none, but documents that we really don't know.
4507 # 'pass_all' -- all dependencies passed with no checks.
4508 # 'test_compile' -- check by making test program.
4509 # 'file_magic [[regex]]' -- check by looking for files in library path
4510 # which responds to the $file_magic_cmd with a given extended regex.
4511 # If you have `file' or equivalent on your system and you're not sure
4512 # whether `pass_all' will *always* work, you probably want this one.
4513
4514 case $host_os in
4515 aix4* | aix5*)
4516 lt_cv_deplibs_check_method=pass_all
4517 ;;
4518
4519 beos*)
4520 lt_cv_deplibs_check_method=pass_all
4521 ;;
4522
4523 bsdi[45]*)
4524 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4525 lt_cv_file_magic_cmd='/usr/bin/file -L'
4526 lt_cv_file_magic_test_file=/shlib/libc.so
4527 ;;
4528
4529 cygwin*)
4530 # func_win32_libid is a shell function defined in ltmain.sh
4531 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4532 lt_cv_file_magic_cmd='func_win32_libid'
4533 ;;
4534
4535 mingw* | pw32*)
4536 # Base MSYS/MinGW do not provide the 'file' command needed by
4537 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4538 # unless we find 'file', for example because we are cross-compiling.
4539 if ( file / ) >/dev/null 2>&1; then
4540 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4541 lt_cv_file_magic_cmd='func_win32_libid'
4542 else
4543 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4544 lt_cv_file_magic_cmd='$OBJDUMP -f'
4545 fi
4546 ;;
4547
4548 darwin* | rhapsody*)
4549 lt_cv_deplibs_check_method=pass_all
4550 ;;
4551
4552 freebsd* | dragonfly*)
4553 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4554 case $host_cpu in
4555 i*86 )
4556 # Not sure whether the presence of OpenBSD here was a mistake.
4557 # Let's accept both of them until this is cleared up.
4558 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4559 lt_cv_file_magic_cmd=/usr/bin/file
4560 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4561 ;;
4562 esac
4563 else
4564 lt_cv_deplibs_check_method=pass_all
4565 fi
4566 ;;
4567
4568 gnu*)
4569 lt_cv_deplibs_check_method=pass_all
4570 ;;
4571
4572 hpux10.20* | hpux11*)
4573 lt_cv_file_magic_cmd=/usr/bin/file
4574 case $host_cpu in
4575 ia64*)
4576 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4577 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4578 ;;
4579 hppa*64*)
4580 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4581 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4582 ;;
4583 *)
4584 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4585 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4586 ;;
4587 esac
4588 ;;
4589
4590 interix[3-9]*)
4591 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4592 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4593 ;;
4594
4595 irix5* | irix6* | nonstopux*)
4596 case $LD in
4597 *-32|*"-32 ") libmagic=32-bit;;
4598 *-n32|*"-n32 ") libmagic=N32;;
4599 *-64|*"-64 ") libmagic=64-bit;;
4600 *) libmagic=never-match;;
4601 esac
4602 lt_cv_deplibs_check_method=pass_all
4603 ;;
4604
4605 # This must be Linux ELF.
4606 linux* | k*bsd*-gnu)
4607 lt_cv_deplibs_check_method=pass_all
4608 ;;
4609
4610 netbsd*)
4611 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4612 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4613 else
4614 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4615 fi
4616 ;;
4617
4618 newos6*)
4619 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4620 lt_cv_file_magic_cmd=/usr/bin/file
4621 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4622 ;;
4623
4624 *nto* | *qnx*)
4625 lt_cv_deplibs_check_method=pass_all
4626 ;;
4627
4628 openbsd*)
4629 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4630 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4631 else
4632 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4633 fi
4634 ;;
4635
4636 osf3* | osf4* | osf5*)
4637 lt_cv_deplibs_check_method=pass_all
4638 ;;
4639
4640 rdos*)
4641 lt_cv_deplibs_check_method=pass_all
4642 ;;
4643
4644 solaris*)
4645 lt_cv_deplibs_check_method=pass_all
4646 ;;
4647
4648 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4649 lt_cv_deplibs_check_method=pass_all
4650 ;;
4651
4652 sysv4 | sysv4.3*)
4653 case $host_vendor in
4654 motorola)
4655 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]'
4656 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4657 ;;
4658 ncr)
4659 lt_cv_deplibs_check_method=pass_all
4660 ;;
4661 sequent)
4662 lt_cv_file_magic_cmd='/bin/file'
4663 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4664 ;;
4665 sni)
4666 lt_cv_file_magic_cmd='/bin/file'
4667 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4668 lt_cv_file_magic_test_file=/lib/libc.so
4669 ;;
4670 siemens)
4671 lt_cv_deplibs_check_method=pass_all
4672 ;;
4673 pc)
4674 lt_cv_deplibs_check_method=pass_all
4675 ;;
4676 esac
4677 ;;
4678
4679 tpf*)
4680 lt_cv_deplibs_check_method=pass_all
4681 ;;
4682 esac
4683
4684 fi
4685 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4686 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4687 file_magic_cmd=$lt_cv_file_magic_cmd
4688 deplibs_check_method=$lt_cv_deplibs_check_method
4689 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702 if test -n "$ac_tool_prefix"; then
4703 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4704 set dummy ${ac_tool_prefix}ar; ac_word=$2
4705 echo "$as_me:$LINENO: checking for $ac_word" >&5
4706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4707 if test "${ac_cv_prog_AR+set}" = set; then
4708 echo $ECHO_N "(cached) $ECHO_C" >&6
4709 else
4710 if test -n "$AR"; then
4711 ac_cv_prog_AR="$AR" # Let the user override the test.
4712 else
4713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4714 for as_dir in $PATH
4715 do
4716 IFS=$as_save_IFS
4717 test -z "$as_dir" && as_dir=.
4718 for ac_exec_ext in '' $ac_executable_extensions; do
4719 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4720 ac_cv_prog_AR="${ac_tool_prefix}ar"
4721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4722 break 2
4723 fi
4724 done
4725 done
4726
4727 fi
4728 fi
4729 AR=$ac_cv_prog_AR
4730 if test -n "$AR"; then
4731 echo "$as_me:$LINENO: result: $AR" >&5
4732 echo "${ECHO_T}$AR" >&6
4733 else
4734 echo "$as_me:$LINENO: result: no" >&5
4735 echo "${ECHO_T}no" >&6
4736 fi
4737
4738 fi
4739 if test -z "$ac_cv_prog_AR"; then
4740 ac_ct_AR=$AR
4741 # Extract the first word of "ar", so it can be a program name with args.
4742 set dummy ar; ac_word=$2
4743 echo "$as_me:$LINENO: checking for $ac_word" >&5
4744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4745 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4746 echo $ECHO_N "(cached) $ECHO_C" >&6
4747 else
4748 if test -n "$ac_ct_AR"; then
4749 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4750 else
4751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4752 for as_dir in $PATH
4753 do
4754 IFS=$as_save_IFS
4755 test -z "$as_dir" && as_dir=.
4756 for ac_exec_ext in '' $ac_executable_extensions; do
4757 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4758 ac_cv_prog_ac_ct_AR="ar"
4759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4760 break 2
4761 fi
4762 done
4763 done
4764
4765 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
4766 fi
4767 fi
4768 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4769 if test -n "$ac_ct_AR"; then
4770 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4771 echo "${ECHO_T}$ac_ct_AR" >&6
4772 else
4773 echo "$as_me:$LINENO: result: no" >&5
4774 echo "${ECHO_T}no" >&6
4775 fi
4776
4777 AR=$ac_ct_AR
4778 else
4779 AR="$ac_cv_prog_AR"
4780 fi
4781
4782 test -z "$AR" && AR=ar
4783 test -z "$AR_FLAGS" && AR_FLAGS=cru
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795 if test -n "$ac_tool_prefix"; then
4796 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4797 set dummy ${ac_tool_prefix}strip; ac_word=$2
4798 echo "$as_me:$LINENO: checking for $ac_word" >&5
4799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4800 if test "${ac_cv_prog_STRIP+set}" = set; then
4801 echo $ECHO_N "(cached) $ECHO_C" >&6
4802 else
4803 if test -n "$STRIP"; then
4804 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4805 else
4806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4807 for as_dir in $PATH
4808 do
4809 IFS=$as_save_IFS
4810 test -z "$as_dir" && as_dir=.
4811 for ac_exec_ext in '' $ac_executable_extensions; do
4812 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4813 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4815 break 2
4816 fi
4817 done
4818 done
4819
4820 fi
4821 fi
4822 STRIP=$ac_cv_prog_STRIP
4823 if test -n "$STRIP"; then
4824 echo "$as_me:$LINENO: result: $STRIP" >&5
4825 echo "${ECHO_T}$STRIP" >&6
4826 else
4827 echo "$as_me:$LINENO: result: no" >&5
4828 echo "${ECHO_T}no" >&6
4829 fi
4830
4831 fi
4832 if test -z "$ac_cv_prog_STRIP"; then
4833 ac_ct_STRIP=$STRIP
4834 # Extract the first word of "strip", so it can be a program name with args.
4835 set dummy strip; ac_word=$2
4836 echo "$as_me:$LINENO: checking for $ac_word" >&5
4837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4838 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4839 echo $ECHO_N "(cached) $ECHO_C" >&6
4840 else
4841 if test -n "$ac_ct_STRIP"; then
4842 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4843 else
4844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4845 for as_dir in $PATH
4846 do
4847 IFS=$as_save_IFS
4848 test -z "$as_dir" && as_dir=.
4849 for ac_exec_ext in '' $ac_executable_extensions; do
4850 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4851 ac_cv_prog_ac_ct_STRIP="strip"
4852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4853 break 2
4854 fi
4855 done
4856 done
4857
4858 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4859 fi
4860 fi
4861 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4862 if test -n "$ac_ct_STRIP"; then
4863 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4864 echo "${ECHO_T}$ac_ct_STRIP" >&6
4865 else
4866 echo "$as_me:$LINENO: result: no" >&5
4867 echo "${ECHO_T}no" >&6
4868 fi
4869
4870 STRIP=$ac_ct_STRIP
4871 else
4872 STRIP="$ac_cv_prog_STRIP"
4873 fi
4874
4875 test -z "$STRIP" && STRIP=:
4876
4877
4878
4879
4880
4881
4882 if test -n "$ac_tool_prefix"; then
4883 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4884 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4885 echo "$as_me:$LINENO: checking for $ac_word" >&5
4886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4887 if test "${ac_cv_prog_RANLIB+set}" = set; then
4888 echo $ECHO_N "(cached) $ECHO_C" >&6
4889 else
4890 if test -n "$RANLIB"; then
4891 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4892 else
4893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4894 for as_dir in $PATH
4895 do
4896 IFS=$as_save_IFS
4897 test -z "$as_dir" && as_dir=.
4898 for ac_exec_ext in '' $ac_executable_extensions; do
4899 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4900 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4902 break 2
4903 fi
4904 done
4905 done
4906
4907 fi
4908 fi
4909 RANLIB=$ac_cv_prog_RANLIB
4910 if test -n "$RANLIB"; then
4911 echo "$as_me:$LINENO: result: $RANLIB" >&5
4912 echo "${ECHO_T}$RANLIB" >&6
4913 else
4914 echo "$as_me:$LINENO: result: no" >&5
4915 echo "${ECHO_T}no" >&6
4916 fi
4917
4918 fi
4919 if test -z "$ac_cv_prog_RANLIB"; then
4920 ac_ct_RANLIB=$RANLIB
4921 # Extract the first word of "ranlib", so it can be a program name with args.
4922 set dummy ranlib; ac_word=$2
4923 echo "$as_me:$LINENO: checking for $ac_word" >&5
4924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4925 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4926 echo $ECHO_N "(cached) $ECHO_C" >&6
4927 else
4928 if test -n "$ac_ct_RANLIB"; then
4929 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4930 else
4931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4932 for as_dir in $PATH
4933 do
4934 IFS=$as_save_IFS
4935 test -z "$as_dir" && as_dir=.
4936 for ac_exec_ext in '' $ac_executable_extensions; do
4937 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4938 ac_cv_prog_ac_ct_RANLIB="ranlib"
4939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4940 break 2
4941 fi
4942 done
4943 done
4944
4945 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4946 fi
4947 fi
4948 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4949 if test -n "$ac_ct_RANLIB"; then
4950 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4951 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4952 else
4953 echo "$as_me:$LINENO: result: no" >&5
4954 echo "${ECHO_T}no" >&6
4955 fi
4956
4957 RANLIB=$ac_ct_RANLIB
4958 else
4959 RANLIB="$ac_cv_prog_RANLIB"
4960 fi
4961
4962 test -z "$RANLIB" && RANLIB=:
4963
4964
4965
4966
4967
4968
4969 # Determine commands to create old-style static archives.
4970 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4971 old_postinstall_cmds='chmod 644 $oldlib'
4972 old_postuninstall_cmds=
4973
4974 if test -n "$RANLIB"; then
4975 case $host_os in
4976 openbsd*)
4977 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4978 ;;
4979 *)
4980 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4981 ;;
4982 esac
4983 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4984 fi
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019 # If no C compiler was specified, use CC.
5020 LTCC=${LTCC-"$CC"}
5021
5022 # If no C compiler flags were specified, use CFLAGS.
5023 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5024
5025 # Allow CC to be a program name with arguments.
5026 compiler=$CC
5027
5028
5029 # Check for command to grab the raw symbol name followed by C symbol from nm.
5030 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5031 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5032 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5033 echo $ECHO_N "(cached) $ECHO_C" >&6
5034 else
5035
5036 # These are sane defaults that work on at least a few old systems.
5037 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5038
5039 # Character class describing NM global symbol codes.
5040 symcode='[BCDEGRST]'
5041
5042 # Regexp to match symbols that can be accessed directly from C.
5043 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5044
5045 # Define system-specific variables.
5046 case $host_os in
5047 aix*)
5048 symcode='[BCDT]'
5049 ;;
5050 cygwin* | mingw* | pw32*)
5051 symcode='[ABCDGISTW]'
5052 ;;
5053 hpux*)
5054 if test "$host_cpu" = ia64; then
5055 symcode='[ABCDEGRST]'
5056 fi
5057 ;;
5058 irix* | nonstopux*)
5059 symcode='[BCDEGRST]'
5060 ;;
5061 osf*)
5062 symcode='[BCDEGQRST]'
5063 ;;
5064 solaris*)
5065 symcode='[BDRT]'
5066 ;;
5067 sco3.2v5*)
5068 symcode='[DT]'
5069 ;;
5070 sysv4.2uw2*)
5071 symcode='[DT]'
5072 ;;
5073 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5074 symcode='[ABDT]'
5075 ;;
5076 sysv4)
5077 symcode='[DFNSTU]'
5078 ;;
5079 esac
5080
5081 # If we're using GNU nm, then use its standard symbol codes.
5082 case `$NM -V 2>&1` in
5083 *GNU* | *'with BFD'*)
5084 symcode='[ABCDGIRSTW]' ;;
5085 esac
5086
5087 # Transform an extracted symbol line into a proper C declaration.
5088 # Some systems (esp. on ia64) link data and code symbols differently,
5089 # so use this general approach.
5090 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5091
5092 # Transform an extracted symbol line into symbol name and symbol address
5093 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5094
5095 # Handle CRLF in mingw tool chain
5096 opt_cr=
5097 case $build_os in
5098 mingw*)
5099 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5100 ;;
5101 esac
5102
5103 # Try without a prefix underscore, then with it.
5104 for ac_symprfx in "" "_"; do
5105
5106 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5107 symxfrm="\\1 $ac_symprfx\\2 \\2"
5108
5109 # Write the raw and C identifiers.
5110 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5111 # Fake it for dumpbin and say T for any non-static function
5112 # and D for any global variable.
5113 # Also find C++ and __fastcall symbols from MSVC++,
5114 # which start with @ or ?.
5115 lt_cv_sys_global_symbol_pipe="$AWK '"\
5116 " {last_section=section; section=\$ 3};"\
5117 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5118 " \$ 0!~/External *\|/{next};"\
5119 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5120 " {if(hide[section]) next};"\
5121 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5122 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5123 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5124 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5125 " ' prfx=^$ac_symprfx"
5126 else
5127 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5128 fi
5129
5130 # Check to see that the pipe works correctly.
5131 pipe_works=no
5132
5133 rm -f conftest*
5134 cat > conftest.$ac_ext <<_LT_EOF
5135 #ifdef __cplusplus
5136 extern "C" {
5137 #endif
5138 char nm_test_var;
5139 void nm_test_func(void);
5140 void nm_test_func(void){}
5141 #ifdef __cplusplus
5142 }
5143 #endif
5144 int main(){nm_test_var='a';nm_test_func();return(0);}
5145 _LT_EOF
5146
5147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5148 (eval $ac_compile) 2>&5
5149 ac_status=$?
5150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5151 (exit $ac_status); }; then
5152 # Now try to grab the symbols.
5153 nlist=conftest.nm
5154 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5155 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5156 ac_status=$?
5157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5158 (exit $ac_status); } && test -s "$nlist"; then
5159 # Try sorting and uniquifying the output.
5160 if sort "$nlist" | uniq > "$nlist"T; then
5161 mv -f "$nlist"T "$nlist"
5162 else
5163 rm -f "$nlist"T
5164 fi
5165
5166 # Make sure that we snagged all the symbols we need.
5167 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5168 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5169 cat <<_LT_EOF > conftest.$ac_ext
5170 #ifdef __cplusplus
5171 extern "C" {
5172 #endif
5173
5174 _LT_EOF
5175 # Now generate the symbol file.
5176 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5177
5178 cat <<_LT_EOF >> conftest.$ac_ext
5179
5180 /* The mapping between symbol names and symbols. */
5181 const struct {
5182 const char *name;
5183 void *address;
5184 }
5185 lt__PROGRAM__LTX_preloaded_symbols[] =
5186 {
5187 { "@PROGRAM@", (void *) 0 },
5188 _LT_EOF
5189 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5190 cat <<\_LT_EOF >> conftest.$ac_ext
5191 {0, (void *) 0}
5192 };
5193
5194 /* This works around a problem in FreeBSD linker */
5195 #ifdef FREEBSD_WORKAROUND
5196 static const void *lt_preloaded_setup() {
5197 return lt__PROGRAM__LTX_preloaded_symbols;
5198 }
5199 #endif
5200
5201 #ifdef __cplusplus
5202 }
5203 #endif
5204 _LT_EOF
5205 # Now try linking the two files.
5206 mv conftest.$ac_objext conftstm.$ac_objext
5207 lt_save_LIBS="$LIBS"
5208 lt_save_CFLAGS="$CFLAGS"
5209 LIBS="conftstm.$ac_objext"
5210 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5212 (eval $ac_link) 2>&5
5213 ac_status=$?
5214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5215 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5216 pipe_works=yes
5217 fi
5218 LIBS="$lt_save_LIBS"
5219 CFLAGS="$lt_save_CFLAGS"
5220 else
5221 echo "cannot find nm_test_func in $nlist" >&5
5222 fi
5223 else
5224 echo "cannot find nm_test_var in $nlist" >&5
5225 fi
5226 else
5227 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5228 fi
5229 else
5230 echo "$progname: failed program was:" >&5
5231 cat conftest.$ac_ext >&5
5232 fi
5233 rm -f conftest* conftst*
5234
5235 # Do not use the global_symbol_pipe unless it works.
5236 if test "$pipe_works" = yes; then
5237 break
5238 else
5239 lt_cv_sys_global_symbol_pipe=
5240 fi
5241 done
5242
5243 fi
5244
5245 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5246 lt_cv_sys_global_symbol_to_cdecl=
5247 fi
5248 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5249 echo "$as_me:$LINENO: result: failed" >&5
5250 echo "${ECHO_T}failed" >&6
5251 else
5252 echo "$as_me:$LINENO: result: ok" >&5
5253 echo "${ECHO_T}ok" >&6
5254 fi
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5274 if test "${enable_libtool_lock+set}" = set; then
5275 enableval="$enable_libtool_lock"
5276
5277 fi;
5278 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5279
5280 # Some flags need to be propagated to the compiler or linker for good
5281 # libtool support.
5282 case $host in
5283 ia64-*-hpux*)
5284 # Find out which ABI we are using.
5285 echo 'int i;' > conftest.$ac_ext
5286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5287 (eval $ac_compile) 2>&5
5288 ac_status=$?
5289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5290 (exit $ac_status); }; then
5291 case `/usr/bin/file conftest.$ac_objext` in
5292 *ELF-32*)
5293 HPUX_IA64_MODE="32"
5294 ;;
5295 *ELF-64*)
5296 HPUX_IA64_MODE="64"
5297 ;;
5298 esac
5299 fi
5300 rm -rf conftest*
5301 ;;
5302 *-*-irix6*)
5303 # Find out which ABI we are using.
5304 echo '#line 5304 "configure"' > conftest.$ac_ext
5305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5306 (eval $ac_compile) 2>&5
5307 ac_status=$?
5308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309 (exit $ac_status); }; then
5310 if test "$lt_cv_prog_gnu_ld" = yes; then
5311 case `/usr/bin/file conftest.$ac_objext` in
5312 *32-bit*)
5313 LD="${LD-ld} -melf32bsmip"
5314 ;;
5315 *N32*)
5316 LD="${LD-ld} -melf32bmipn32"
5317 ;;
5318 *64-bit*)
5319 LD="${LD-ld} -melf64bmip"
5320 ;;
5321 esac
5322 else
5323 case `/usr/bin/file conftest.$ac_objext` in
5324 *32-bit*)
5325 LD="${LD-ld} -32"
5326 ;;
5327 *N32*)
5328 LD="${LD-ld} -n32"
5329 ;;
5330 *64-bit*)
5331 LD="${LD-ld} -64"
5332 ;;
5333 esac
5334 fi
5335 fi
5336 rm -rf conftest*
5337 ;;
5338
5339 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5340 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5341 # Find out which ABI we are using.
5342 echo 'int i;' > conftest.$ac_ext
5343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5344 (eval $ac_compile) 2>&5
5345 ac_status=$?
5346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347 (exit $ac_status); }; then
5348 case `/usr/bin/file conftest.o` in
5349 *32-bit*)
5350 case $host in
5351 x86_64-*kfreebsd*-gnu)
5352 LD="${LD-ld} -m elf_i386_fbsd"
5353 ;;
5354 x86_64-*linux*)
5355 LD="${LD-ld} -m elf_i386"
5356 ;;
5357 ppc64-*linux*|powerpc64-*linux*)
5358 LD="${LD-ld} -m elf32ppclinux"
5359 ;;
5360 s390x-*linux*)
5361 LD="${LD-ld} -m elf_s390"
5362 ;;
5363 sparc64-*linux*)
5364 LD="${LD-ld} -m elf32_sparc"
5365 ;;
5366 esac
5367 ;;
5368 *64-bit*)
5369 case $host in
5370 x86_64-*kfreebsd*-gnu)
5371 LD="${LD-ld} -m elf_x86_64_fbsd"
5372 ;;
5373 x86_64-*linux*)
5374 LD="${LD-ld} -m elf_x86_64"
5375 ;;
5376 ppc*-*linux*|powerpc*-*linux*)
5377 LD="${LD-ld} -m elf64ppc"
5378 ;;
5379 s390*-*linux*|s390*-*tpf*)
5380 LD="${LD-ld} -m elf64_s390"
5381 ;;
5382 sparc*-*linux*)
5383 LD="${LD-ld} -m elf64_sparc"
5384 ;;
5385 esac
5386 ;;
5387 esac
5388 fi
5389 rm -rf conftest*
5390 ;;
5391
5392 *-*-sco3.2v5*)
5393 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5394 SAVE_CFLAGS="$CFLAGS"
5395 CFLAGS="$CFLAGS -belf"
5396 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5397 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5398 if test "${lt_cv_cc_needs_belf+set}" = set; then
5399 echo $ECHO_N "(cached) $ECHO_C" >&6
5400 else
5401 ac_ext=c
5402 ac_cpp='$CPP $CPPFLAGS'
5403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5406
5407 cat >conftest.$ac_ext <<_ACEOF
5408 /* confdefs.h. */
5409 _ACEOF
5410 cat confdefs.h >>conftest.$ac_ext
5411 cat >>conftest.$ac_ext <<_ACEOF
5412 /* end confdefs.h. */
5413
5414 int
5415 main ()
5416 {
5417
5418 ;
5419 return 0;
5420 }
5421 _ACEOF
5422 rm -f conftest.$ac_objext conftest$ac_exeext
5423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5424 (eval $ac_link) 2>conftest.er1
5425 ac_status=$?
5426 grep -v '^ *+' conftest.er1 >conftest.err
5427 rm -f conftest.er1
5428 cat conftest.err >&5
5429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430 (exit $ac_status); } &&
5431 { ac_try='test -z "$ac_c_werror_flag"
5432 || test ! -s conftest.err'
5433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5434 (eval $ac_try) 2>&5
5435 ac_status=$?
5436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437 (exit $ac_status); }; } &&
5438 { ac_try='test -s conftest$ac_exeext'
5439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5440 (eval $ac_try) 2>&5
5441 ac_status=$?
5442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443 (exit $ac_status); }; }; then
5444 lt_cv_cc_needs_belf=yes
5445 else
5446 echo "$as_me: failed program was:" >&5
5447 sed 's/^/| /' conftest.$ac_ext >&5
5448
5449 lt_cv_cc_needs_belf=no
5450 fi
5451 rm -f conftest.err conftest.$ac_objext \
5452 conftest$ac_exeext conftest.$ac_ext
5453 ac_ext=c
5454 ac_cpp='$CPP $CPPFLAGS'
5455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5458
5459 fi
5460 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5461 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5462 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5463 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5464 CFLAGS="$SAVE_CFLAGS"
5465 fi
5466 ;;
5467 sparc*-*solaris*)
5468 # Find out which ABI we are using.
5469 echo 'int i;' > conftest.$ac_ext
5470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5471 (eval $ac_compile) 2>&5
5472 ac_status=$?
5473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5474 (exit $ac_status); }; then
5475 case `/usr/bin/file conftest.o` in
5476 *64-bit*)
5477 case $lt_cv_prog_gnu_ld in
5478 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5479 *) LD="${LD-ld} -64" ;;
5480 esac
5481 ;;
5482 esac
5483 fi
5484 rm -rf conftest*
5485 ;;
5486 esac
5487
5488 need_locks="$enable_libtool_lock"
5489
5490 ac_ext=c
5491 ac_cpp='$CPP $CPPFLAGS'
5492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5495 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5496 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5497 # On Suns, sometimes $CPP names a directory.
5498 if test -n "$CPP" && test -d "$CPP"; then
5499 CPP=
5500 fi
5501 if test -z "$CPP"; then
5502 if test "${ac_cv_prog_CPP+set}" = set; then
5503 echo $ECHO_N "(cached) $ECHO_C" >&6
5504 else
5505 # Double quotes because CPP needs to be expanded
5506 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5507 do
5508 ac_preproc_ok=false
5509 for ac_c_preproc_warn_flag in '' yes
5510 do
5511 # Use a header file that comes with gcc, so configuring glibc
5512 # with a fresh cross-compiler works.
5513 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5514 # <limits.h> exists even on freestanding compilers.
5515 # On the NeXT, cc -E runs the code through the compiler's parser,
5516 # not just through cpp. "Syntax error" is here to catch this case.
5517 cat >conftest.$ac_ext <<_ACEOF
5518 /* confdefs.h. */
5519 _ACEOF
5520 cat confdefs.h >>conftest.$ac_ext
5521 cat >>conftest.$ac_ext <<_ACEOF
5522 /* end confdefs.h. */
5523 #ifdef __STDC__
5524 # include <limits.h>
5525 #else
5526 # include <assert.h>
5527 #endif
5528 Syntax error
5529 _ACEOF
5530 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5531 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5532 ac_status=$?
5533 grep -v '^ *+' conftest.er1 >conftest.err
5534 rm -f conftest.er1
5535 cat conftest.err >&5
5536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537 (exit $ac_status); } >/dev/null; then
5538 if test -s conftest.err; then
5539 ac_cpp_err=$ac_c_preproc_warn_flag
5540 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5541 else
5542 ac_cpp_err=
5543 fi
5544 else
5545 ac_cpp_err=yes
5546 fi
5547 if test -z "$ac_cpp_err"; then
5548 :
5549 else
5550 echo "$as_me: failed program was:" >&5
5551 sed 's/^/| /' conftest.$ac_ext >&5
5552
5553 # Broken: fails on valid input.
5554 continue
5555 fi
5556 rm -f conftest.err conftest.$ac_ext
5557
5558 # OK, works on sane cases. Now check whether non-existent headers
5559 # can be detected and how.
5560 cat >conftest.$ac_ext <<_ACEOF
5561 /* confdefs.h. */
5562 _ACEOF
5563 cat confdefs.h >>conftest.$ac_ext
5564 cat >>conftest.$ac_ext <<_ACEOF
5565 /* end confdefs.h. */
5566 #include <ac_nonexistent.h>
5567 _ACEOF
5568 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5569 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5570 ac_status=$?
5571 grep -v '^ *+' conftest.er1 >conftest.err
5572 rm -f conftest.er1
5573 cat conftest.err >&5
5574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575 (exit $ac_status); } >/dev/null; then
5576 if test -s conftest.err; then
5577 ac_cpp_err=$ac_c_preproc_warn_flag
5578 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5579 else
5580 ac_cpp_err=
5581 fi
5582 else
5583 ac_cpp_err=yes
5584 fi
5585 if test -z "$ac_cpp_err"; then
5586 # Broken: success on invalid input.
5587 continue
5588 else
5589 echo "$as_me: failed program was:" >&5
5590 sed 's/^/| /' conftest.$ac_ext >&5
5591
5592 # Passes both tests.
5593 ac_preproc_ok=:
5594 break
5595 fi
5596 rm -f conftest.err conftest.$ac_ext
5597
5598 done
5599 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5600 rm -f conftest.err conftest.$ac_ext
5601 if $ac_preproc_ok; then
5602 break
5603 fi
5604
5605 done
5606 ac_cv_prog_CPP=$CPP
5607
5608 fi
5609 CPP=$ac_cv_prog_CPP
5610 else
5611 ac_cv_prog_CPP=$CPP
5612 fi
5613 echo "$as_me:$LINENO: result: $CPP" >&5
5614 echo "${ECHO_T}$CPP" >&6
5615 ac_preproc_ok=false
5616 for ac_c_preproc_warn_flag in '' yes
5617 do
5618 # Use a header file that comes with gcc, so configuring glibc
5619 # with a fresh cross-compiler works.
5620 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5621 # <limits.h> exists even on freestanding compilers.
5622 # On the NeXT, cc -E runs the code through the compiler's parser,
5623 # not just through cpp. "Syntax error" is here to catch this case.
5624 cat >conftest.$ac_ext <<_ACEOF
5625 /* confdefs.h. */
5626 _ACEOF
5627 cat confdefs.h >>conftest.$ac_ext
5628 cat >>conftest.$ac_ext <<_ACEOF
5629 /* end confdefs.h. */
5630 #ifdef __STDC__
5631 # include <limits.h>
5632 #else
5633 # include <assert.h>
5634 #endif
5635 Syntax error
5636 _ACEOF
5637 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5638 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5639 ac_status=$?
5640 grep -v '^ *+' conftest.er1 >conftest.err
5641 rm -f conftest.er1
5642 cat conftest.err >&5
5643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644 (exit $ac_status); } >/dev/null; then
5645 if test -s conftest.err; then
5646 ac_cpp_err=$ac_c_preproc_warn_flag
5647 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5648 else
5649 ac_cpp_err=
5650 fi
5651 else
5652 ac_cpp_err=yes
5653 fi
5654 if test -z "$ac_cpp_err"; then
5655 :
5656 else
5657 echo "$as_me: failed program was:" >&5
5658 sed 's/^/| /' conftest.$ac_ext >&5
5659
5660 # Broken: fails on valid input.
5661 continue
5662 fi
5663 rm -f conftest.err conftest.$ac_ext
5664
5665 # OK, works on sane cases. Now check whether non-existent headers
5666 # can be detected and how.
5667 cat >conftest.$ac_ext <<_ACEOF
5668 /* confdefs.h. */
5669 _ACEOF
5670 cat confdefs.h >>conftest.$ac_ext
5671 cat >>conftest.$ac_ext <<_ACEOF
5672 /* end confdefs.h. */
5673 #include <ac_nonexistent.h>
5674 _ACEOF
5675 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5676 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5677 ac_status=$?
5678 grep -v '^ *+' conftest.er1 >conftest.err
5679 rm -f conftest.er1
5680 cat conftest.err >&5
5681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682 (exit $ac_status); } >/dev/null; then
5683 if test -s conftest.err; then
5684 ac_cpp_err=$ac_c_preproc_warn_flag
5685 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5686 else
5687 ac_cpp_err=
5688 fi
5689 else
5690 ac_cpp_err=yes
5691 fi
5692 if test -z "$ac_cpp_err"; then
5693 # Broken: success on invalid input.
5694 continue
5695 else
5696 echo "$as_me: failed program was:" >&5
5697 sed 's/^/| /' conftest.$ac_ext >&5
5698
5699 # Passes both tests.
5700 ac_preproc_ok=:
5701 break
5702 fi
5703 rm -f conftest.err conftest.$ac_ext
5704
5705 done
5706 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5707 rm -f conftest.err conftest.$ac_ext
5708 if $ac_preproc_ok; then
5709 :
5710 else
5711 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5712 See \`config.log' for more details." >&5
5713 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5714 See \`config.log' for more details." >&2;}
5715 { (exit 1); exit 1; }; }
5716 fi
5717
5718 ac_ext=c
5719 ac_cpp='$CPP $CPPFLAGS'
5720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5723
5724
5725 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5726 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5727 if test "${ac_cv_header_stdc+set}" = set; then
5728 echo $ECHO_N "(cached) $ECHO_C" >&6
5729 else
5730 cat >conftest.$ac_ext <<_ACEOF
5731 /* confdefs.h. */
5732 _ACEOF
5733 cat confdefs.h >>conftest.$ac_ext
5734 cat >>conftest.$ac_ext <<_ACEOF
5735 /* end confdefs.h. */
5736 #include <stdlib.h>
5737 #include <stdarg.h>
5738 #include <string.h>
5739 #include <float.h>
5740
5741 int
5742 main ()
5743 {
5744
5745 ;
5746 return 0;
5747 }
5748 _ACEOF
5749 rm -f conftest.$ac_objext
5750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5751 (eval $ac_compile) 2>conftest.er1
5752 ac_status=$?
5753 grep -v '^ *+' conftest.er1 >conftest.err
5754 rm -f conftest.er1
5755 cat conftest.err >&5
5756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757 (exit $ac_status); } &&
5758 { ac_try='test -z "$ac_c_werror_flag"
5759 || test ! -s conftest.err'
5760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5761 (eval $ac_try) 2>&5
5762 ac_status=$?
5763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764 (exit $ac_status); }; } &&
5765 { ac_try='test -s conftest.$ac_objext'
5766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5767 (eval $ac_try) 2>&5
5768 ac_status=$?
5769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770 (exit $ac_status); }; }; then
5771 ac_cv_header_stdc=yes
5772 else
5773 echo "$as_me: failed program was:" >&5
5774 sed 's/^/| /' conftest.$ac_ext >&5
5775
5776 ac_cv_header_stdc=no
5777 fi
5778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5779
5780 if test $ac_cv_header_stdc = yes; then
5781 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5782 cat >conftest.$ac_ext <<_ACEOF
5783 /* confdefs.h. */
5784 _ACEOF
5785 cat confdefs.h >>conftest.$ac_ext
5786 cat >>conftest.$ac_ext <<_ACEOF
5787 /* end confdefs.h. */
5788 #include <string.h>
5789
5790 _ACEOF
5791 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5792 $EGREP "memchr" >/dev/null 2>&1; then
5793 :
5794 else
5795 ac_cv_header_stdc=no
5796 fi
5797 rm -f conftest*
5798
5799 fi
5800
5801 if test $ac_cv_header_stdc = yes; then
5802 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5803 cat >conftest.$ac_ext <<_ACEOF
5804 /* confdefs.h. */
5805 _ACEOF
5806 cat confdefs.h >>conftest.$ac_ext
5807 cat >>conftest.$ac_ext <<_ACEOF
5808 /* end confdefs.h. */
5809 #include <stdlib.h>
5810
5811 _ACEOF
5812 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5813 $EGREP "free" >/dev/null 2>&1; then
5814 :
5815 else
5816 ac_cv_header_stdc=no
5817 fi
5818 rm -f conftest*
5819
5820 fi
5821
5822 if test $ac_cv_header_stdc = yes; then
5823 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5824 if test "$cross_compiling" = yes; then
5825 :
5826 else
5827 cat >conftest.$ac_ext <<_ACEOF
5828 /* confdefs.h. */
5829 _ACEOF
5830 cat confdefs.h >>conftest.$ac_ext
5831 cat >>conftest.$ac_ext <<_ACEOF
5832 /* end confdefs.h. */
5833 #include <ctype.h>
5834 #if ((' ' & 0x0FF) == 0x020)
5835 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5836 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5837 #else
5838 # define ISLOWER(c) \
5839 (('a' <= (c) && (c) <= 'i') \
5840 || ('j' <= (c) && (c) <= 'r') \
5841 || ('s' <= (c) && (c) <= 'z'))
5842 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5843 #endif
5844
5845 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5846 int
5847 main ()
5848 {
5849 int i;
5850 for (i = 0; i < 256; i++)
5851 if (XOR (islower (i), ISLOWER (i))
5852 || toupper (i) != TOUPPER (i))
5853 exit(2);
5854 exit (0);
5855 }
5856 _ACEOF
5857 rm -f conftest$ac_exeext
5858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5859 (eval $ac_link) 2>&5
5860 ac_status=$?
5861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5864 (eval $ac_try) 2>&5
5865 ac_status=$?
5866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867 (exit $ac_status); }; }; then
5868 :
5869 else
5870 echo "$as_me: program exited with status $ac_status" >&5
5871 echo "$as_me: failed program was:" >&5
5872 sed 's/^/| /' conftest.$ac_ext >&5
5873
5874 ( exit $ac_status )
5875 ac_cv_header_stdc=no
5876 fi
5877 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5878 fi
5879 fi
5880 fi
5881 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5882 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5883 if test $ac_cv_header_stdc = yes; then
5884
5885 cat >>confdefs.h <<\_ACEOF
5886 #define STDC_HEADERS 1
5887 _ACEOF
5888
5889 fi
5890
5891 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5902 inttypes.h stdint.h unistd.h
5903 do
5904 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5905 echo "$as_me:$LINENO: checking for $ac_header" >&5
5906 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5907 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5908 echo $ECHO_N "(cached) $ECHO_C" >&6
5909 else
5910 cat >conftest.$ac_ext <<_ACEOF
5911 /* confdefs.h. */
5912 _ACEOF
5913 cat confdefs.h >>conftest.$ac_ext
5914 cat >>conftest.$ac_ext <<_ACEOF
5915 /* end confdefs.h. */
5916 $ac_includes_default
5917
5918 #include <$ac_header>
5919 _ACEOF
5920 rm -f conftest.$ac_objext
5921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5922 (eval $ac_compile) 2>conftest.er1
5923 ac_status=$?
5924 grep -v '^ *+' conftest.er1 >conftest.err
5925 rm -f conftest.er1
5926 cat conftest.err >&5
5927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928 (exit $ac_status); } &&
5929 { ac_try='test -z "$ac_c_werror_flag"
5930 || test ! -s conftest.err'
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); }; } &&
5936 { ac_try='test -s conftest.$ac_objext'
5937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5938 (eval $ac_try) 2>&5
5939 ac_status=$?
5940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941 (exit $ac_status); }; }; then
5942 eval "$as_ac_Header=yes"
5943 else
5944 echo "$as_me: failed program was:" >&5
5945 sed 's/^/| /' conftest.$ac_ext >&5
5946
5947 eval "$as_ac_Header=no"
5948 fi
5949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5950 fi
5951 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5952 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5953 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5954 cat >>confdefs.h <<_ACEOF
5955 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5956 _ACEOF
5957
5958 fi
5959
5960 done
5961
5962
5963
5964 for ac_header in dlfcn.h
5965 do
5966 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5967 echo "$as_me:$LINENO: checking for $ac_header" >&5
5968 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5969 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5970 echo $ECHO_N "(cached) $ECHO_C" >&6
5971 else
5972 cat >conftest.$ac_ext <<_ACEOF
5973 /* confdefs.h. */
5974 _ACEOF
5975 cat confdefs.h >>conftest.$ac_ext
5976 cat >>conftest.$ac_ext <<_ACEOF
5977 /* end confdefs.h. */
5978 $ac_includes_default
5979
5980 #include <$ac_header>
5981 _ACEOF
5982 rm -f conftest.$ac_objext
5983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5984 (eval $ac_compile) 2>conftest.er1
5985 ac_status=$?
5986 grep -v '^ *+' conftest.er1 >conftest.err
5987 rm -f conftest.er1
5988 cat conftest.err >&5
5989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990 (exit $ac_status); } &&
5991 { ac_try='test -z "$ac_c_werror_flag"
5992 || test ! -s conftest.err'
5993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5994 (eval $ac_try) 2>&5
5995 ac_status=$?
5996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997 (exit $ac_status); }; } &&
5998 { ac_try='test -s conftest.$ac_objext'
5999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6000 (eval $ac_try) 2>&5
6001 ac_status=$?
6002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003 (exit $ac_status); }; }; then
6004 eval "$as_ac_Header=yes"
6005 else
6006 echo "$as_me: failed program was:" >&5
6007 sed 's/^/| /' conftest.$ac_ext >&5
6008
6009 eval "$as_ac_Header=no"
6010 fi
6011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6012 fi
6013 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6014 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6015 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6016 cat >>confdefs.h <<_ACEOF
6017 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6018 _ACEOF
6019
6020 fi
6021
6022 done
6023
6024
6025
6026 # This can be used to rebuild libtool when needed
6027 LIBTOOL_DEPS="$ltmain"
6028
6029 # Always use our own libtool.
6030 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056 test -z "$LN_S" && LN_S="ln -s"
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071 if test -n "${ZSH_VERSION+set}" ; then
6072 setopt NO_GLOB_SUBST
6073 fi
6074
6075 echo "$as_me:$LINENO: checking for objdir" >&5
6076 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6077 if test "${lt_cv_objdir+set}" = set; then
6078 echo $ECHO_N "(cached) $ECHO_C" >&6
6079 else
6080 rm -f .libs 2>/dev/null
6081 mkdir .libs 2>/dev/null
6082 if test -d .libs; then
6083 lt_cv_objdir=.libs
6084 else
6085 # MS-DOS does not allow filenames that begin with a dot.
6086 lt_cv_objdir=_libs
6087 fi
6088 rmdir .libs 2>/dev/null
6089 fi
6090 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6091 echo "${ECHO_T}$lt_cv_objdir" >&6
6092 objdir=$lt_cv_objdir
6093
6094
6095
6096
6097
6098 cat >>confdefs.h <<_ACEOF
6099 #define LT_OBJDIR "$lt_cv_objdir/"
6100 _ACEOF
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118 case $host_os in
6119 aix3*)
6120 # AIX sometimes has problems with the GCC collect2 program. For some
6121 # reason, if we set the COLLECT_NAMES environment variable, the problems
6122 # vanish in a puff of smoke.
6123 if test "X${COLLECT_NAMES+set}" != Xset; then
6124 COLLECT_NAMES=
6125 export COLLECT_NAMES
6126 fi
6127 ;;
6128 esac
6129
6130 # Sed substitution that helps us do robust quoting. It backslashifies
6131 # metacharacters that are still active within double-quoted strings.
6132 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6133
6134 # Same as above, but do not quote variable references.
6135 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6136
6137 # Sed substitution to delay expansion of an escaped shell variable in a
6138 # double_quote_subst'ed string.
6139 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6140
6141 # Sed substitution to delay expansion of an escaped single quote.
6142 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6143
6144 # Sed substitution to avoid accidental globbing in evaled expressions
6145 no_glob_subst='s/\*/\\\*/g'
6146
6147 # Global variables:
6148 ofile=libtool
6149 can_build_shared=yes
6150
6151 # All known linkers require a `.a' archive for static linking (except MSVC,
6152 # which needs '.lib').
6153 libext=a
6154
6155 with_gnu_ld="$lt_cv_prog_gnu_ld"
6156
6157 old_CC="$CC"
6158 old_CFLAGS="$CFLAGS"
6159
6160 # Set sane defaults for various variables
6161 test -z "$CC" && CC=cc
6162 test -z "$LTCC" && LTCC=$CC
6163 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6164 test -z "$LD" && LD=ld
6165 test -z "$ac_objext" && ac_objext=o
6166
6167 for cc_temp in $compiler""; do
6168 case $cc_temp in
6169 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6170 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6171 \-*) ;;
6172 *) break;;
6173 esac
6174 done
6175 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6176
6177
6178 # Only perform the check for file, if the check method requires it
6179 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6180 case $deplibs_check_method in
6181 file_magic*)
6182 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6183 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6184 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6185 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6186 echo $ECHO_N "(cached) $ECHO_C" >&6
6187 else
6188 case $MAGIC_CMD in
6189 [\\/*] | ?:[\\/]*)
6190 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6191 ;;
6192 *)
6193 lt_save_MAGIC_CMD="$MAGIC_CMD"
6194 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6195 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6196 for ac_dir in $ac_dummy; do
6197 IFS="$lt_save_ifs"
6198 test -z "$ac_dir" && ac_dir=.
6199 if test -f $ac_dir/${ac_tool_prefix}file; then
6200 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6201 if test -n "$file_magic_test_file"; then
6202 case $deplibs_check_method in
6203 "file_magic "*)
6204 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6205 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6206 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6207 $EGREP "$file_magic_regex" > /dev/null; then
6208 :
6209 else
6210 cat <<_LT_EOF 1>&2
6211
6212 *** Warning: the command libtool uses to detect shared libraries,
6213 *** $file_magic_cmd, produces output that libtool cannot recognize.
6214 *** The result is that libtool may fail to recognize shared libraries
6215 *** as such. This will affect the creation of libtool libraries that
6216 *** depend on shared libraries, but programs linked with such libtool
6217 *** libraries will work regardless of this problem. Nevertheless, you
6218 *** may want to report the problem to your system manager and/or to
6219 *** bug-libtool@gnu.org
6220
6221 _LT_EOF
6222 fi ;;
6223 esac
6224 fi
6225 break
6226 fi
6227 done
6228 IFS="$lt_save_ifs"
6229 MAGIC_CMD="$lt_save_MAGIC_CMD"
6230 ;;
6231 esac
6232 fi
6233
6234 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6235 if test -n "$MAGIC_CMD"; then
6236 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6237 echo "${ECHO_T}$MAGIC_CMD" >&6
6238 else
6239 echo "$as_me:$LINENO: result: no" >&5
6240 echo "${ECHO_T}no" >&6
6241 fi
6242
6243
6244
6245
6246
6247 if test -z "$lt_cv_path_MAGIC_CMD"; then
6248 if test -n "$ac_tool_prefix"; then
6249 echo "$as_me:$LINENO: checking for file" >&5
6250 echo $ECHO_N "checking for file... $ECHO_C" >&6
6251 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6252 echo $ECHO_N "(cached) $ECHO_C" >&6
6253 else
6254 case $MAGIC_CMD in
6255 [\\/*] | ?:[\\/]*)
6256 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6257 ;;
6258 *)
6259 lt_save_MAGIC_CMD="$MAGIC_CMD"
6260 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6261 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6262 for ac_dir in $ac_dummy; do
6263 IFS="$lt_save_ifs"
6264 test -z "$ac_dir" && ac_dir=.
6265 if test -f $ac_dir/file; then
6266 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6267 if test -n "$file_magic_test_file"; then
6268 case $deplibs_check_method in
6269 "file_magic "*)
6270 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6271 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6272 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6273 $EGREP "$file_magic_regex" > /dev/null; then
6274 :
6275 else
6276 cat <<_LT_EOF 1>&2
6277
6278 *** Warning: the command libtool uses to detect shared libraries,
6279 *** $file_magic_cmd, produces output that libtool cannot recognize.
6280 *** The result is that libtool may fail to recognize shared libraries
6281 *** as such. This will affect the creation of libtool libraries that
6282 *** depend on shared libraries, but programs linked with such libtool
6283 *** libraries will work regardless of this problem. Nevertheless, you
6284 *** may want to report the problem to your system manager and/or to
6285 *** bug-libtool@gnu.org
6286
6287 _LT_EOF
6288 fi ;;
6289 esac
6290 fi
6291 break
6292 fi
6293 done
6294 IFS="$lt_save_ifs"
6295 MAGIC_CMD="$lt_save_MAGIC_CMD"
6296 ;;
6297 esac
6298 fi
6299
6300 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6301 if test -n "$MAGIC_CMD"; then
6302 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6303 echo "${ECHO_T}$MAGIC_CMD" >&6
6304 else
6305 echo "$as_me:$LINENO: result: no" >&5
6306 echo "${ECHO_T}no" >&6
6307 fi
6308
6309
6310 else
6311 MAGIC_CMD=:
6312 fi
6313 fi
6314
6315 fi
6316 ;;
6317 esac
6318
6319 # Use C for the default configuration in the libtool script
6320
6321 lt_save_CC="$CC"
6322 ac_ext=c
6323 ac_cpp='$CPP $CPPFLAGS'
6324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6327
6328
6329 # Source file extension for C test sources.
6330 ac_ext=c
6331
6332 # Object file extension for compiled C test sources.
6333 objext=o
6334 objext=$objext
6335
6336 # Code to be used in simple compile tests
6337 lt_simple_compile_test_code="int some_variable = 0;"
6338
6339 # Code to be used in simple link tests
6340 lt_simple_link_test_code='int main(){return(0);}'
6341
6342
6343
6344
6345
6346
6347
6348 # If no C compiler was specified, use CC.
6349 LTCC=${LTCC-"$CC"}
6350
6351 # If no C compiler flags were specified, use CFLAGS.
6352 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6353
6354 # Allow CC to be a program name with arguments.
6355 compiler=$CC
6356
6357 # Save the default compiler, since it gets overwritten when the other
6358 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6359 compiler_DEFAULT=$CC
6360
6361 # save warnings/boilerplate of simple test code
6362 ac_outfile=conftest.$ac_objext
6363 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6364 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6365 _lt_compiler_boilerplate=`cat conftest.err`
6366 $RM conftest*
6367
6368 ac_outfile=conftest.$ac_objext
6369 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6370 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6371 _lt_linker_boilerplate=`cat conftest.err`
6372 $RM conftest*
6373
6374
6375 ## CAVEAT EMPTOR:
6376 ## There is no encapsulation within the following macros, do not change
6377 ## the running order or otherwise move them around unless you know exactly
6378 ## what you are doing...
6379 if test -n "$compiler"; then
6380
6381 lt_prog_compiler_no_builtin_flag=
6382
6383 if test "$GCC" = yes; then
6384 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6385
6386 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6387 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6388 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6389 echo $ECHO_N "(cached) $ECHO_C" >&6
6390 else
6391 lt_cv_prog_compiler_rtti_exceptions=no
6392 ac_outfile=conftest.$ac_objext
6393 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6394 lt_compiler_flag="-fno-rtti -fno-exceptions"
6395 # Insert the option either (1) after the last *FLAGS variable, or
6396 # (2) before a word containing "conftest.", or (3) at the end.
6397 # Note that $ac_compile itself does not contain backslashes and begins
6398 # with a dollar sign (not a hyphen), so the echo should work correctly.
6399 # The option is referenced via a variable to avoid confusing sed.
6400 lt_compile=`echo "$ac_compile" | $SED \
6401 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6402 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6403 -e 's:$: $lt_compiler_flag:'`
6404 (eval echo "\"\$as_me:6404: $lt_compile\"" >&5)
6405 (eval "$lt_compile" 2>conftest.err)
6406 ac_status=$?
6407 cat conftest.err >&5
6408 echo "$as_me:6408: \$? = $ac_status" >&5
6409 if (exit $ac_status) && test -s "$ac_outfile"; then
6410 # The compiler can only warn and ignore the option if not recognized
6411 # So say no if there are warnings other than the usual output.
6412 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6413 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6414 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6415 lt_cv_prog_compiler_rtti_exceptions=yes
6416 fi
6417 fi
6418 $RM conftest*
6419
6420 fi
6421 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6422 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6423
6424 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6425 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6426 else
6427 :
6428 fi
6429
6430 fi
6431
6432
6433
6434
6435
6436
6437 lt_prog_compiler_wl=
6438 lt_prog_compiler_pic=
6439 lt_prog_compiler_static=
6440
6441 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6442 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6443
6444 if test "$GCC" = yes; then
6445 lt_prog_compiler_wl='-Wl,'
6446 lt_prog_compiler_static='-static'
6447
6448 case $host_os in
6449 aix*)
6450 # All AIX code is PIC.
6451 if test "$host_cpu" = ia64; then
6452 # AIX 5 now supports IA64 processor
6453 lt_prog_compiler_static='-Bstatic'
6454 fi
6455 ;;
6456
6457 amigaos*)
6458 if test "$host_cpu" = m68k; then
6459 # FIXME: we need at least 68020 code to build shared libraries, but
6460 # adding the `-m68020' flag to GCC prevents building anything better,
6461 # like `-m68040'.
6462 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6463 fi
6464 ;;
6465
6466 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6467 # PIC is the default for these OSes.
6468 ;;
6469
6470 mingw* | cygwin* | pw32* | os2*)
6471 # This hack is so that the source file can tell whether it is being
6472 # built for inclusion in a dll (and should export symbols for example).
6473 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6474 # (--disable-auto-import) libraries
6475 lt_prog_compiler_pic='-DDLL_EXPORT'
6476 ;;
6477
6478 darwin* | rhapsody*)
6479 # PIC is the default on this platform
6480 # Common symbols not allowed in MH_DYLIB files
6481 lt_prog_compiler_pic='-fno-common'
6482 ;;
6483
6484 hpux*)
6485 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6486 # not for PA HP-UX.
6487 case $host_cpu in
6488 hppa*64*|ia64*)
6489 # +Z the default
6490 ;;
6491 *)
6492 lt_prog_compiler_pic='-fPIC'
6493 ;;
6494 esac
6495 ;;
6496
6497 interix[3-9]*)
6498 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6499 # Instead, we relocate shared libraries at runtime.
6500 ;;
6501
6502 msdosdjgpp*)
6503 # Just because we use GCC doesn't mean we suddenly get shared libraries
6504 # on systems that don't support them.
6505 lt_prog_compiler_can_build_shared=no
6506 enable_shared=no
6507 ;;
6508
6509 *nto* | *qnx*)
6510 # QNX uses GNU C++, but need to define -shared option too, otherwise
6511 # it will coredump.
6512 lt_prog_compiler_pic='-fPIC -shared'
6513 ;;
6514
6515 sysv4*MP*)
6516 if test -d /usr/nec; then
6517 lt_prog_compiler_pic=-Kconform_pic
6518 fi
6519 ;;
6520
6521 *)
6522 lt_prog_compiler_pic='-fPIC'
6523 ;;
6524 esac
6525 else
6526 # PORTME Check for flag to pass linker flags through the system compiler.
6527 case $host_os in
6528 aix*)
6529 lt_prog_compiler_wl='-Wl,'
6530 if test "$host_cpu" = ia64; then
6531 # AIX 5 now supports IA64 processor
6532 lt_prog_compiler_static='-Bstatic'
6533 else
6534 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6535 fi
6536 ;;
6537 darwin*)
6538 # PIC is the default on this platform
6539 # Common symbols not allowed in MH_DYLIB files
6540 case $cc_basename in
6541 xlc*)
6542 lt_prog_compiler_pic='-qnocommon'
6543 lt_prog_compiler_wl='-Wl,'
6544 ;;
6545 esac
6546 ;;
6547
6548 mingw* | cygwin* | pw32* | os2*)
6549 # This hack is so that the source file can tell whether it is being
6550 # built for inclusion in a dll (and should export symbols for example).
6551 lt_prog_compiler_pic='-DDLL_EXPORT'
6552 ;;
6553
6554 hpux9* | hpux10* | hpux11*)
6555 lt_prog_compiler_wl='-Wl,'
6556 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6557 # not for PA HP-UX.
6558 case $host_cpu in
6559 hppa*64*|ia64*)
6560 # +Z the default
6561 ;;
6562 *)
6563 lt_prog_compiler_pic='+Z'
6564 ;;
6565 esac
6566 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6567 lt_prog_compiler_static='${wl}-a ${wl}archive'
6568 ;;
6569
6570 irix5* | irix6* | nonstopux*)
6571 lt_prog_compiler_wl='-Wl,'
6572 # PIC (with -KPIC) is the default.
6573 lt_prog_compiler_static='-non_shared'
6574 ;;
6575
6576 linux* | k*bsd*-gnu)
6577 case $cc_basename in
6578 icc* | ecc*)
6579 lt_prog_compiler_wl='-Wl,'
6580 lt_prog_compiler_pic='-KPIC'
6581 lt_prog_compiler_static='-static'
6582 ;;
6583 pgcc* | pgf77* | pgf90* | pgf95*)
6584 # Portland Group compilers (*not* the Pentium gcc compiler,
6585 # which looks to be a dead project)
6586 lt_prog_compiler_wl='-Wl,'
6587 lt_prog_compiler_pic='-fpic'
6588 lt_prog_compiler_static='-Bstatic'
6589 ;;
6590 ccc*)
6591 lt_prog_compiler_wl='-Wl,'
6592 # All Alpha code is PIC.
6593 lt_prog_compiler_static='-non_shared'
6594 ;;
6595 *)
6596 case `$CC -V 2>&1 | sed 5q` in
6597 *Sun\ C*)
6598 # Sun C 5.9
6599 lt_prog_compiler_pic='-KPIC'
6600 lt_prog_compiler_static='-Bstatic'
6601 lt_prog_compiler_wl='-Wl,'
6602 ;;
6603 *Sun\ F*)
6604 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6605 lt_prog_compiler_pic='-KPIC'
6606 lt_prog_compiler_static='-Bstatic'
6607 lt_prog_compiler_wl=''
6608 ;;
6609 esac
6610 ;;
6611 esac
6612 ;;
6613
6614 newsos6)
6615 lt_prog_compiler_pic='-KPIC'
6616 lt_prog_compiler_static='-Bstatic'
6617 ;;
6618
6619 *nto* | *qnx*)
6620 # QNX uses GNU C++, but need to define -shared option too, otherwise
6621 # it will coredump.
6622 lt_prog_compiler_pic='-fPIC -shared'
6623 ;;
6624
6625 osf3* | osf4* | osf5*)
6626 lt_prog_compiler_wl='-Wl,'
6627 # All OSF/1 code is PIC.
6628 lt_prog_compiler_static='-non_shared'
6629 ;;
6630
6631 rdos*)
6632 lt_prog_compiler_static='-non_shared'
6633 ;;
6634
6635 solaris*)
6636 lt_prog_compiler_pic='-KPIC'
6637 lt_prog_compiler_static='-Bstatic'
6638 case $cc_basename in
6639 f77* | f90* | f95*)
6640 lt_prog_compiler_wl='-Qoption ld ';;
6641 *)
6642 lt_prog_compiler_wl='-Wl,';;
6643 esac
6644 ;;
6645
6646 sunos4*)
6647 lt_prog_compiler_wl='-Qoption ld '
6648 lt_prog_compiler_pic='-PIC'
6649 lt_prog_compiler_static='-Bstatic'
6650 ;;
6651
6652 sysv4 | sysv4.2uw2* | sysv4.3*)
6653 lt_prog_compiler_wl='-Wl,'
6654 lt_prog_compiler_pic='-KPIC'
6655 lt_prog_compiler_static='-Bstatic'
6656 ;;
6657
6658 sysv4*MP*)
6659 if test -d /usr/nec ;then
6660 lt_prog_compiler_pic='-Kconform_pic'
6661 lt_prog_compiler_static='-Bstatic'
6662 fi
6663 ;;
6664
6665 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6666 lt_prog_compiler_wl='-Wl,'
6667 lt_prog_compiler_pic='-KPIC'
6668 lt_prog_compiler_static='-Bstatic'
6669 ;;
6670
6671 unicos*)
6672 lt_prog_compiler_wl='-Wl,'
6673 lt_prog_compiler_can_build_shared=no
6674 ;;
6675
6676 uts4*)
6677 lt_prog_compiler_pic='-pic'
6678 lt_prog_compiler_static='-Bstatic'
6679 ;;
6680
6681 *)
6682 lt_prog_compiler_can_build_shared=no
6683 ;;
6684 esac
6685 fi
6686
6687 case $host_os in
6688 # For platforms which do not support PIC, -DPIC is meaningless:
6689 *djgpp*)
6690 lt_prog_compiler_pic=
6691 ;;
6692 *)
6693 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6694 ;;
6695 esac
6696 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6697 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6698
6699
6700
6701
6702
6703
6704 #
6705 # Check to make sure the PIC flag actually works.
6706 #
6707 if test -n "$lt_prog_compiler_pic"; then
6708 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6709 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6710 if test "${lt_prog_compiler_pic_works+set}" = set; then
6711 echo $ECHO_N "(cached) $ECHO_C" >&6
6712 else
6713 lt_prog_compiler_pic_works=no
6714 ac_outfile=conftest.$ac_objext
6715 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6716 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6717 # Insert the option either (1) after the last *FLAGS variable, or
6718 # (2) before a word containing "conftest.", or (3) at the end.
6719 # Note that $ac_compile itself does not contain backslashes and begins
6720 # with a dollar sign (not a hyphen), so the echo should work correctly.
6721 # The option is referenced via a variable to avoid confusing sed.
6722 lt_compile=`echo "$ac_compile" | $SED \
6723 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6724 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6725 -e 's:$: $lt_compiler_flag:'`
6726 (eval echo "\"\$as_me:6726: $lt_compile\"" >&5)
6727 (eval "$lt_compile" 2>conftest.err)
6728 ac_status=$?
6729 cat conftest.err >&5
6730 echo "$as_me:6730: \$? = $ac_status" >&5
6731 if (exit $ac_status) && test -s "$ac_outfile"; then
6732 # The compiler can only warn and ignore the option if not recognized
6733 # So say no if there are warnings other than the usual output.
6734 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6735 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6736 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6737 lt_prog_compiler_pic_works=yes
6738 fi
6739 fi
6740 $RM conftest*
6741
6742 fi
6743 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6744 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6745
6746 if test x"$lt_prog_compiler_pic_works" = xyes; then
6747 case $lt_prog_compiler_pic in
6748 "" | " "*) ;;
6749 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6750 esac
6751 else
6752 lt_prog_compiler_pic=
6753 lt_prog_compiler_can_build_shared=no
6754 fi
6755
6756 fi
6757
6758
6759
6760
6761
6762
6763 #
6764 # Check to make sure the static flag actually works.
6765 #
6766 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6767 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6768 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6769 if test "${lt_prog_compiler_static_works+set}" = set; then
6770 echo $ECHO_N "(cached) $ECHO_C" >&6
6771 else
6772 lt_prog_compiler_static_works=no
6773 save_LDFLAGS="$LDFLAGS"
6774 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6775 echo "$lt_simple_link_test_code" > conftest.$ac_ext
6776 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6777 # The linker can only warn and ignore the option if not recognized
6778 # So say no if there are warnings
6779 if test -s conftest.err; then
6780 # Append any errors to the config.log.
6781 cat conftest.err 1>&5
6782 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6783 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6784 if diff conftest.exp conftest.er2 >/dev/null; then
6785 lt_prog_compiler_static_works=yes
6786 fi
6787 else
6788 lt_prog_compiler_static_works=yes
6789 fi
6790 fi
6791 $RM conftest*
6792 LDFLAGS="$save_LDFLAGS"
6793
6794 fi
6795 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6796 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6797
6798 if test x"$lt_prog_compiler_static_works" = xyes; then
6799 :
6800 else
6801 lt_prog_compiler_static=
6802 fi
6803
6804
6805
6806
6807
6808
6809
6810 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6811 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6812 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6813 echo $ECHO_N "(cached) $ECHO_C" >&6
6814 else
6815 lt_cv_prog_compiler_c_o=no
6816 $RM -r conftest 2>/dev/null
6817 mkdir conftest
6818 cd conftest
6819 mkdir out
6820 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6821
6822 lt_compiler_flag="-o out/conftest2.$ac_objext"
6823 # Insert the option either (1) after the last *FLAGS variable, or
6824 # (2) before a word containing "conftest.", or (3) at the end.
6825 # Note that $ac_compile itself does not contain backslashes and begins
6826 # with a dollar sign (not a hyphen), so the echo should work correctly.
6827 lt_compile=`echo "$ac_compile" | $SED \
6828 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6829 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6830 -e 's:$: $lt_compiler_flag:'`
6831 (eval echo "\"\$as_me:6831: $lt_compile\"" >&5)
6832 (eval "$lt_compile" 2>out/conftest.err)
6833 ac_status=$?
6834 cat out/conftest.err >&5
6835 echo "$as_me:6835: \$? = $ac_status" >&5
6836 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6837 then
6838 # The compiler can only warn and ignore the option if not recognized
6839 # So say no if there are warnings
6840 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6841 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6842 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6843 lt_cv_prog_compiler_c_o=yes
6844 fi
6845 fi
6846 chmod u+w . 2>&5
6847 $RM conftest*
6848 # SGI C++ compiler will create directory out/ii_files/ for
6849 # template instantiation
6850 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6851 $RM out/* && rmdir out
6852 cd ..
6853 $RM -r conftest
6854 $RM conftest*
6855
6856 fi
6857 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6858 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6859
6860
6861
6862
6863
6864
6865 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6866 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6867 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6868 echo $ECHO_N "(cached) $ECHO_C" >&6
6869 else
6870 lt_cv_prog_compiler_c_o=no
6871 $RM -r conftest 2>/dev/null
6872 mkdir conftest
6873 cd conftest
6874 mkdir out
6875 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6876
6877 lt_compiler_flag="-o out/conftest2.$ac_objext"
6878 # Insert the option either (1) after the last *FLAGS variable, or
6879 # (2) before a word containing "conftest.", or (3) at the end.
6880 # Note that $ac_compile itself does not contain backslashes and begins
6881 # with a dollar sign (not a hyphen), so the echo should work correctly.
6882 lt_compile=`echo "$ac_compile" | $SED \
6883 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6884 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6885 -e 's:$: $lt_compiler_flag:'`
6886 (eval echo "\"\$as_me:6886: $lt_compile\"" >&5)
6887 (eval "$lt_compile" 2>out/conftest.err)
6888 ac_status=$?
6889 cat out/conftest.err >&5
6890 echo "$as_me:6890: \$? = $ac_status" >&5
6891 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6892 then
6893 # The compiler can only warn and ignore the option if not recognized
6894 # So say no if there are warnings
6895 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6896 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6897 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6898 lt_cv_prog_compiler_c_o=yes
6899 fi
6900 fi
6901 chmod u+w . 2>&5
6902 $RM conftest*
6903 # SGI C++ compiler will create directory out/ii_files/ for
6904 # template instantiation
6905 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6906 $RM out/* && rmdir out
6907 cd ..
6908 $RM -r conftest
6909 $RM conftest*
6910
6911 fi
6912 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6913 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6914
6915
6916
6917
6918 hard_links="nottested"
6919 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6920 # do not overwrite the value of need_locks provided by the user
6921 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6922 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6923 hard_links=yes
6924 $RM conftest*
6925 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6926 touch conftest.a
6927 ln conftest.a conftest.b 2>&5 || hard_links=no
6928 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6929 echo "$as_me:$LINENO: result: $hard_links" >&5
6930 echo "${ECHO_T}$hard_links" >&6
6931 if test "$hard_links" = no; then
6932 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6933 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6934 need_locks=warn
6935 fi
6936 else
6937 need_locks=no
6938 fi
6939
6940
6941
6942
6943
6944
6945 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6946 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6947
6948 runpath_var=
6949 allow_undefined_flag=
6950 always_export_symbols=no
6951 archive_cmds=
6952 archive_expsym_cmds=
6953 compiler_needs_object=no
6954 enable_shared_with_static_runtimes=no
6955 export_dynamic_flag_spec=
6956 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6957 hardcode_automatic=no
6958 hardcode_direct=no
6959 hardcode_direct_absolute=no
6960 hardcode_libdir_flag_spec=
6961 hardcode_libdir_flag_spec_ld=
6962 hardcode_libdir_separator=
6963 hardcode_minus_L=no
6964 hardcode_shlibpath_var=unsupported
6965 inherit_rpath=no
6966 link_all_deplibs=unknown
6967 module_cmds=
6968 module_expsym_cmds=
6969 old_archive_from_new_cmds=
6970 old_archive_from_expsyms_cmds=
6971 thread_safe_flag_spec=
6972 whole_archive_flag_spec=
6973 # include_expsyms should be a list of space-separated symbols to be *always*
6974 # included in the symbol list
6975 include_expsyms=
6976 # exclude_expsyms can be an extended regexp of symbols to exclude
6977 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6978 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6979 # as well as any symbol that contains `d'.
6980 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6981 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6982 # platforms (ab)use it in PIC code, but their linkers get confused if
6983 # the symbol is explicitly referenced. Since portable code cannot
6984 # rely on this symbol name, it's probably fine to never include it in
6985 # preloaded symbol tables.
6986 extract_expsyms_cmds=
6987
6988 case $host_os in
6989 cygwin* | mingw* | pw32*)
6990 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6991 # When not using gcc, we currently assume that we are using
6992 # Microsoft Visual C++.
6993 if test "$GCC" != yes; then
6994 with_gnu_ld=no
6995 fi
6996 ;;
6997 interix*)
6998 # we just hope/assume this is gcc and not c89 (= MSVC++)
6999 with_gnu_ld=yes
7000 ;;
7001 openbsd*)
7002 with_gnu_ld=no
7003 ;;
7004 esac
7005
7006 ld_shlibs=yes
7007 if test "$with_gnu_ld" = yes; then
7008 # If archive_cmds runs LD, not CC, wlarc should be empty
7009 wlarc='${wl}'
7010
7011 # Set some defaults for GNU ld with shared library support. These
7012 # are reset later if shared libraries are not supported. Putting them
7013 # here allows them to be overridden if necessary.
7014 runpath_var=LD_RUN_PATH
7015 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7016 export_dynamic_flag_spec='${wl}--export-dynamic'
7017 # ancient GNU ld didn't support --whole-archive et. al.
7018 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7019 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7020 else
7021 whole_archive_flag_spec=
7022 fi
7023 supports_anon_versioning=no
7024 case `$LD -v 2>&1` in
7025 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7026 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7027 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7028 *\ 2.11.*) ;; # other 2.11 versions
7029 *) supports_anon_versioning=yes ;;
7030 esac
7031
7032 # See if GNU ld supports shared libraries.
7033 case $host_os in
7034 aix3* | aix4* | aix5*)
7035 # On AIX/PPC, the GNU linker is very broken
7036 if test "$host_cpu" != ia64; then
7037 ld_shlibs=no
7038 cat <<_LT_EOF 1>&2
7039
7040 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7041 *** to be unable to reliably create shared libraries on AIX.
7042 *** Therefore, libtool is disabling shared libraries support. If you
7043 *** really care for shared libraries, you may want to modify your PATH
7044 *** so that a non-GNU linker is found, and then restart.
7045
7046 _LT_EOF
7047 fi
7048 ;;
7049
7050 amigaos*)
7051 if test "$host_cpu" = m68k; then
7052 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
7053 hardcode_libdir_flag_spec='-L$libdir'
7054 hardcode_minus_L=yes
7055 fi
7056
7057 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7058 # that the semantics of dynamic libraries on AmigaOS, at least up
7059 # to version 4, is to share data among multiple programs linked
7060 # with the same dynamic library. Since this doesn't match the
7061 # behavior of shared libraries on other platforms, we can't use
7062 # them.
7063 ld_shlibs=no
7064 ;;
7065
7066 beos*)
7067 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7068 allow_undefined_flag=unsupported
7069 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7070 # support --undefined. This deserves some investigation. FIXME
7071 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7072 else
7073 ld_shlibs=no
7074 fi
7075 ;;
7076
7077 cygwin* | mingw* | pw32*)
7078 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7079 # as there is no search path for DLLs.
7080 hardcode_libdir_flag_spec='-L$libdir'
7081 allow_undefined_flag=unsupported
7082 always_export_symbols=no
7083 enable_shared_with_static_runtimes=yes
7084 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7085
7086 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7087 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7088 # If the export-symbols file already is a .def file (1st line
7089 # is EXPORTS), use it as is; otherwise, prepend...
7090 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7091 cp $export_symbols $output_objdir/$soname.def;
7092 else
7093 echo EXPORTS > $output_objdir/$soname.def;
7094 cat $export_symbols >> $output_objdir/$soname.def;
7095 fi~
7096 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7097 else
7098 ld_shlibs=no
7099 fi
7100 ;;
7101
7102 interix[3-9]*)
7103 hardcode_direct=no
7104 hardcode_shlibpath_var=no
7105 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7106 export_dynamic_flag_spec='${wl}-E'
7107 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7108 # Instead, shared libraries are loaded at an image base (0x10000000 by
7109 # default) and relocated if they conflict, which is a slow very memory
7110 # consuming and fragmenting process. To avoid this, we pick a random,
7111 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7112 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7113 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7114 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7115 ;;
7116
7117 gnu* | linux* | tpf* | k*bsd*-gnu)
7118 tmp_diet=no
7119 if test "$host_os" = linux-dietlibc; then
7120 case $cc_basename in
7121 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7122 esac
7123 fi
7124 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7125 && test "$tmp_diet" = no
7126 then
7127 tmp_addflag=
7128 case $cc_basename,$host_cpu in
7129 pgcc*) # Portland Group C compiler
7130 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7131 tmp_addflag=' $pic_flag'
7132 ;;
7133 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7134 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7135 tmp_addflag=' $pic_flag -Mnomain' ;;
7136 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7137 tmp_addflag=' -i_dynamic' ;;
7138 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7139 tmp_addflag=' -i_dynamic -nofor_main' ;;
7140 ifc* | ifort*) # Intel Fortran compiler
7141 tmp_addflag=' -nofor_main' ;;
7142 esac
7143 case `$CC -V 2>&1 | sed 5q` in
7144 *Sun\ C*) # Sun C 5.9
7145 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7146 compiler_needs_object=yes
7147 tmp_sharedflag='-G' ;;
7148 *Sun\ F*) # Sun Fortran 8.3
7149 tmp_sharedflag='-G' ;;
7150 *)
7151 tmp_sharedflag='-shared' ;;
7152 esac
7153 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7154
7155 if test "x$supports_anon_versioning" = xyes; then
7156 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7157 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7158 echo "local: *; };" >> $output_objdir/$libname.ver~
7159 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7160 fi
7161 else
7162 ld_shlibs=no
7163 fi
7164 ;;
7165
7166 netbsd*)
7167 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7168 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7169 wlarc=
7170 else
7171 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7172 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7173 fi
7174 ;;
7175
7176 solaris*)
7177 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7178 ld_shlibs=no
7179 cat <<_LT_EOF 1>&2
7180
7181 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7182 *** create shared libraries on Solaris systems. Therefore, libtool
7183 *** is disabling shared libraries support. We urge you to upgrade GNU
7184 *** binutils to release 2.9.1 or newer. Another option is to modify
7185 *** your PATH or compiler configuration so that the native linker is
7186 *** used, and then restart.
7187
7188 _LT_EOF
7189 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7190 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7191 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7192 else
7193 ld_shlibs=no
7194 fi
7195 ;;
7196
7197 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7198 case `$LD -v 2>&1` in
7199 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7200 ld_shlibs=no
7201 cat <<_LT_EOF 1>&2
7202
7203 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7204 *** reliably create shared libraries on SCO systems. Therefore, libtool
7205 *** is disabling shared libraries support. We urge you to upgrade GNU
7206 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7207 *** your PATH or compiler configuration so that the native linker is
7208 *** used, and then restart.
7209
7210 _LT_EOF
7211 ;;
7212 *)
7213 # For security reasons, it is highly recommended that you always
7214 # use absolute paths for naming shared libraries, and exclude the
7215 # DT_RUNPATH tag from executables and libraries. But doing so
7216 # requires that you compile everything twice, which is a pain.
7217 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7218 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7219 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7220 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7221 else
7222 ld_shlibs=no
7223 fi
7224 ;;
7225 esac
7226 ;;
7227
7228 sunos4*)
7229 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7230 wlarc=
7231 hardcode_direct=yes
7232 hardcode_shlibpath_var=no
7233 ;;
7234
7235 *)
7236 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7237 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7238 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7239 else
7240 ld_shlibs=no
7241 fi
7242 ;;
7243 esac
7244
7245 if test "$ld_shlibs" = no; then
7246 runpath_var=
7247 hardcode_libdir_flag_spec=
7248 export_dynamic_flag_spec=
7249 whole_archive_flag_spec=
7250 fi
7251 else
7252 # PORTME fill in a description of your system's linker (not GNU ld)
7253 case $host_os in
7254 aix3*)
7255 allow_undefined_flag=unsupported
7256 always_export_symbols=yes
7257 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
7258 # Note: this linker hardcodes the directories in LIBPATH if there
7259 # are no directories specified by -L.
7260 hardcode_minus_L=yes
7261 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7262 # Neither direct hardcoding nor static linking is supported with a
7263 # broken collect2.
7264 hardcode_direct=unsupported
7265 fi
7266 ;;
7267
7268 aix4* | aix5*)
7269 if test "$host_cpu" = ia64; then
7270 # On IA64, the linker does run time linking by default, so we don't
7271 # have to do anything special.
7272 aix_use_runtimelinking=no
7273 exp_sym_flag='-Bexport'
7274 no_entry_flag=""
7275 else
7276 # If we're using GNU nm, then we don't want the "-C" option.
7277 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7278 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7279 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
7280 else
7281 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
7282 fi
7283 aix_use_runtimelinking=no
7284
7285 # Test if we are trying to use run time linking or normal
7286 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7287 # need to do runtime linking.
7288 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7289 for ld_flag in $LDFLAGS; do
7290 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7291 aix_use_runtimelinking=yes
7292 break
7293 fi
7294 done
7295 ;;
7296 esac
7297
7298 exp_sym_flag='-bexport'
7299 no_entry_flag='-bnoentry'
7300 fi
7301
7302 # When large executables or shared objects are built, AIX ld can
7303 # have problems creating the table of contents. If linking a library
7304 # or program results in "error TOC overflow" add -mminimal-toc to
7305 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7306 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7307
7308 archive_cmds=''
7309 hardcode_direct=yes
7310 hardcode_direct_absolute=yes
7311 hardcode_libdir_separator=':'
7312 link_all_deplibs=yes
7313 file_list_spec='${wl}-f,'
7314
7315 if test "$GCC" = yes; then
7316 case $host_os in aix4.[012]|aix4.[012].*)
7317 # We only want to do this on AIX 4.2 and lower, the check
7318 # below for broken collect2 doesn't work under 4.3+
7319 collect2name=`${CC} -print-prog-name=collect2`
7320 if test -f "$collect2name" &&
7321 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7322 then
7323 # We have reworked collect2
7324 :
7325 else
7326 # We have old collect2
7327 hardcode_direct=unsupported
7328 # It fails to find uninstalled libraries when the uninstalled
7329 # path is not listed in the libpath. Setting hardcode_minus_L
7330 # to unsupported forces relinking
7331 hardcode_minus_L=yes
7332 hardcode_libdir_flag_spec='-L$libdir'
7333 hardcode_libdir_separator=
7334 fi
7335 ;;
7336 esac
7337 shared_flag='-shared'
7338 if test "$aix_use_runtimelinking" = yes; then
7339 shared_flag="$shared_flag "'${wl}-G'
7340 fi
7341 else
7342 # not using gcc
7343 if test "$host_cpu" = ia64; then
7344 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7345 # chokes on -Wl,-G. The following line is correct:
7346 shared_flag='-G'
7347 else
7348 if test "$aix_use_runtimelinking" = yes; then
7349 shared_flag='${wl}-G'
7350 else
7351 shared_flag='${wl}-bM:SRE'
7352 fi
7353 fi
7354 fi
7355
7356 # It seems that -bexpall does not export symbols beginning with
7357 # underscore (_), so it is better to generate a list of symbols to export.
7358 always_export_symbols=yes
7359 if test "$aix_use_runtimelinking" = yes; then
7360 # Warning - without using the other runtime loading flags (-brtl),
7361 # -berok will link without error, but may produce a broken library.
7362 allow_undefined_flag='-berok'
7363 # Determine the default libpath from the value encoded in an
7364 # empty executable.
7365 cat >conftest.$ac_ext <<_ACEOF
7366 /* confdefs.h. */
7367 _ACEOF
7368 cat confdefs.h >>conftest.$ac_ext
7369 cat >>conftest.$ac_ext <<_ACEOF
7370 /* end confdefs.h. */
7371
7372 int
7373 main ()
7374 {
7375
7376 ;
7377 return 0;
7378 }
7379 _ACEOF
7380 rm -f conftest.$ac_objext conftest$ac_exeext
7381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7382 (eval $ac_link) 2>conftest.er1
7383 ac_status=$?
7384 grep -v '^ *+' conftest.er1 >conftest.err
7385 rm -f conftest.er1
7386 cat conftest.err >&5
7387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7388 (exit $ac_status); } &&
7389 { ac_try='test -z "$ac_c_werror_flag"
7390 || test ! -s conftest.err'
7391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7392 (eval $ac_try) 2>&5
7393 ac_status=$?
7394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7395 (exit $ac_status); }; } &&
7396 { ac_try='test -s conftest$ac_exeext'
7397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7398 (eval $ac_try) 2>&5
7399 ac_status=$?
7400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7401 (exit $ac_status); }; }; then
7402
7403 lt_aix_libpath_sed='
7404 /Import File Strings/,/^$/ {
7405 /^0/ {
7406 s/^0 *\(.*\)$/\1/
7407 p
7408 }
7409 }'
7410 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7411 # Check for a 64-bit object if we didn't find anything.
7412 if test -z "$aix_libpath"; then
7413 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7414 fi
7415 else
7416 echo "$as_me: failed program was:" >&5
7417 sed 's/^/| /' conftest.$ac_ext >&5
7418
7419 fi
7420 rm -f conftest.err conftest.$ac_objext \
7421 conftest$ac_exeext conftest.$ac_ext
7422 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7423
7424 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7425 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7426 else
7427 if test "$host_cpu" = ia64; then
7428 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7429 allow_undefined_flag="-z nodefs"
7430 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7431 else
7432 # Determine the default libpath from the value encoded in an
7433 # empty executable.
7434 cat >conftest.$ac_ext <<_ACEOF
7435 /* confdefs.h. */
7436 _ACEOF
7437 cat confdefs.h >>conftest.$ac_ext
7438 cat >>conftest.$ac_ext <<_ACEOF
7439 /* end confdefs.h. */
7440
7441 int
7442 main ()
7443 {
7444
7445 ;
7446 return 0;
7447 }
7448 _ACEOF
7449 rm -f conftest.$ac_objext conftest$ac_exeext
7450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7451 (eval $ac_link) 2>conftest.er1
7452 ac_status=$?
7453 grep -v '^ *+' conftest.er1 >conftest.err
7454 rm -f conftest.er1
7455 cat conftest.err >&5
7456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7457 (exit $ac_status); } &&
7458 { ac_try='test -z "$ac_c_werror_flag"
7459 || test ! -s conftest.err'
7460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7461 (eval $ac_try) 2>&5
7462 ac_status=$?
7463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7464 (exit $ac_status); }; } &&
7465 { ac_try='test -s conftest$ac_exeext'
7466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7467 (eval $ac_try) 2>&5
7468 ac_status=$?
7469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7470 (exit $ac_status); }; }; then
7471
7472 lt_aix_libpath_sed='
7473 /Import File Strings/,/^$/ {
7474 /^0/ {
7475 s/^0 *\(.*\)$/\1/
7476 p
7477 }
7478 }'
7479 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7480 # Check for a 64-bit object if we didn't find anything.
7481 if test -z "$aix_libpath"; then
7482 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7483 fi
7484 else
7485 echo "$as_me: failed program was:" >&5
7486 sed 's/^/| /' conftest.$ac_ext >&5
7487
7488 fi
7489 rm -f conftest.err conftest.$ac_objext \
7490 conftest$ac_exeext conftest.$ac_ext
7491 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7492
7493 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7494 # Warning - without using the other run time loading flags,
7495 # -berok will link without error, but may produce a broken library.
7496 no_undefined_flag=' ${wl}-bernotok'
7497 allow_undefined_flag=' ${wl}-berok'
7498 # Exported symbols can be pulled into shared objects from archives
7499 whole_archive_flag_spec='$convenience'
7500 archive_cmds_need_lc=yes
7501 # This is similar to how AIX traditionally builds its shared libraries.
7502 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7503 fi
7504 fi
7505 ;;
7506
7507 amigaos*)
7508 if test "$host_cpu" = m68k; then
7509 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
7510 hardcode_libdir_flag_spec='-L$libdir'
7511 hardcode_minus_L=yes
7512 fi
7513 # see comment about different semantics on the GNU ld section
7514 ld_shlibs=no
7515 ;;
7516
7517 bsdi[45]*)
7518 export_dynamic_flag_spec=-rdynamic
7519 ;;
7520
7521 cygwin* | mingw* | pw32*)
7522 # When not using gcc, we currently assume that we are using
7523 # Microsoft Visual C++.
7524 # hardcode_libdir_flag_spec is actually meaningless, as there is
7525 # no search path for DLLs.
7526 hardcode_libdir_flag_spec=' '
7527 allow_undefined_flag=unsupported
7528 # Tell ltmain to make .lib files, not .a files.
7529 libext=lib
7530 # Tell ltmain to make .dll files, not .so files.
7531 shrext_cmds=".dll"
7532 # FIXME: Setting linknames here is a bad hack.
7533 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7534 # The linker will automatically build a .lib file if we build a DLL.
7535 old_archive_from_new_cmds='true'
7536 # FIXME: Should let the user specify the lib program.
7537 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7538 fix_srcfile_path='`cygpath -w "$srcfile"`'
7539 enable_shared_with_static_runtimes=yes
7540 ;;
7541
7542 darwin* | rhapsody*)
7543 case $host_os in
7544 rhapsody* | darwin1.[012])
7545 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7546 ;;
7547 *) # Darwin 1.3 on
7548 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7549 10.[012])
7550 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7551 ;;
7552 10.*)
7553 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7554 ;;
7555 esac
7556 ;;
7557 esac
7558 archive_cmds_need_lc=no
7559 hardcode_direct=no
7560 hardcode_automatic=yes
7561 hardcode_shlibpath_var=unsupported
7562 whole_archive_flag_spec=''
7563 link_all_deplibs=yes
7564 if test "$GCC" = yes ; then
7565 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7566 echo $ECHO_N "(cached) $ECHO_C" >&6
7567 else
7568 lt_cv_apple_cc_single_mod=no
7569 if test -z "${LT_MULTI_MODULE}"; then
7570 # By default we will add the -single_module flag. You can override
7571 # by either setting the environment variable LT_MULTI_MODULE
7572 # non-empty at configure time, or by adding -multi-module to the
7573 # link flags.
7574 echo "int foo(void){return 1;}" > conftest.c
7575 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7576 -dynamiclib ${wl}-single_module conftest.c
7577 if test -f libconftest.dylib; then
7578 lt_cv_apple_cc_single_mod=yes
7579 rm libconftest.dylib
7580 fi
7581 rm conftest.$ac_ext
7582 fi
7583 fi
7584
7585 output_verbose_link_cmd=echo
7586 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
7587 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7588 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7589 else
7590 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7591 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7592 fi
7593 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7594 module_expsym_cmds='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7595 else
7596 case $cc_basename in
7597 xlc*)
7598 output_verbose_link_cmd=echo
7599 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
7600 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7601 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7602 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7603 module_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7604 ;;
7605 *)
7606 ld_shlibs=no
7607 ;;
7608 esac
7609 fi
7610 ;;
7611
7612 dgux*)
7613 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7614 hardcode_libdir_flag_spec='-L$libdir'
7615 hardcode_shlibpath_var=no
7616 ;;
7617
7618 freebsd1*)
7619 ld_shlibs=no
7620 ;;
7621
7622 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7623 # support. Future versions do this automatically, but an explicit c++rt0.o
7624 # does not break anything, and helps significantly (at the cost of a little
7625 # extra space).
7626 freebsd2.2*)
7627 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7628 hardcode_libdir_flag_spec='-R$libdir'
7629 hardcode_direct=yes
7630 hardcode_shlibpath_var=no
7631 ;;
7632
7633 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7634 freebsd2*)
7635 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7636 hardcode_direct=yes
7637 hardcode_minus_L=yes
7638 hardcode_shlibpath_var=no
7639 ;;
7640
7641 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7642 freebsd* | dragonfly*)
7643 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7644 hardcode_libdir_flag_spec='-R$libdir'
7645 hardcode_direct=yes
7646 hardcode_shlibpath_var=no
7647 ;;
7648
7649 hpux9*)
7650 if test "$GCC" = yes; then
7651 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7652 else
7653 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7654 fi
7655 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7656 hardcode_libdir_separator=:
7657 hardcode_direct=yes
7658
7659 # hardcode_minus_L: Not really in the search PATH,
7660 # but as the default location of the library.
7661 hardcode_minus_L=yes
7662 export_dynamic_flag_spec='${wl}-E'
7663 ;;
7664
7665 hpux10*)
7666 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7667 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7668 else
7669 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7670 fi
7671 if test "$with_gnu_ld" = no; then
7672 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7673 hardcode_libdir_flag_spec_ld='+b $libdir'
7674 hardcode_libdir_separator=:
7675 hardcode_direct=yes
7676 hardcode_direct_absolute=yes
7677 export_dynamic_flag_spec='${wl}-E'
7678 # hardcode_minus_L: Not really in the search PATH,
7679 # but as the default location of the library.
7680 hardcode_minus_L=yes
7681 fi
7682 ;;
7683
7684 hpux11*)
7685 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7686 case $host_cpu in
7687 hppa*64*)
7688 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7689 ;;
7690 ia64*)
7691 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7692 ;;
7693 *)
7694 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7695 ;;
7696 esac
7697 else
7698 case $host_cpu in
7699 hppa*64*)
7700 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7701 ;;
7702 ia64*)
7703 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7704 ;;
7705 *)
7706 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7707 ;;
7708 esac
7709 fi
7710 if test "$with_gnu_ld" = no; then
7711 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7712 hardcode_libdir_separator=:
7713
7714 case $host_cpu in
7715 hppa*64*|ia64*)
7716 hardcode_direct=no
7717 hardcode_shlibpath_var=no
7718 ;;
7719 *)
7720 hardcode_direct=yes
7721 hardcode_direct_absolute=yes
7722 export_dynamic_flag_spec='${wl}-E'
7723
7724 # hardcode_minus_L: Not really in the search PATH,
7725 # but as the default location of the library.
7726 hardcode_minus_L=yes
7727 ;;
7728 esac
7729 fi
7730 ;;
7731
7732 irix5* | irix6* | nonstopux*)
7733 if test "$GCC" = yes; then
7734 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7735 # Try to use the -exported_symbol ld option, if it does not
7736 # work, assume that -exports_file does not work either and
7737 # implicitly export all symbols.
7738 save_LDFLAGS="$LDFLAGS"
7739 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
7740 cat >conftest.$ac_ext <<_ACEOF
7741 int foo(void) {}
7742 _ACEOF
7743 rm -f conftest.$ac_objext conftest$ac_exeext
7744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7745 (eval $ac_link) 2>conftest.er1
7746 ac_status=$?
7747 grep -v '^ *+' conftest.er1 >conftest.err
7748 rm -f conftest.er1
7749 cat conftest.err >&5
7750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7751 (exit $ac_status); } &&
7752 { ac_try='test -z "$ac_c_werror_flag"
7753 || test ! -s conftest.err'
7754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7755 (eval $ac_try) 2>&5
7756 ac_status=$?
7757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7758 (exit $ac_status); }; } &&
7759 { ac_try='test -s conftest$ac_exeext'
7760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7761 (eval $ac_try) 2>&5
7762 ac_status=$?
7763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7764 (exit $ac_status); }; }; then
7765 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
7766
7767 else
7768 echo "$as_me: failed program was:" >&5
7769 sed 's/^/| /' conftest.$ac_ext >&5
7770
7771 fi
7772 rm -f conftest.err conftest.$ac_objext \
7773 conftest$ac_exeext conftest.$ac_ext
7774 LDFLAGS="$save_LDFLAGS"
7775 else
7776 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7777 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
7778 fi
7779 archive_cmds_need_lc='no'
7780 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7781 hardcode_libdir_separator=:
7782 inherit_rpath=yes
7783 link_all_deplibs=yes
7784 ;;
7785
7786 netbsd*)
7787 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7788 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7789 else
7790 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7791 fi
7792 hardcode_libdir_flag_spec='-R$libdir'
7793 hardcode_direct=yes
7794 hardcode_shlibpath_var=no
7795 ;;
7796
7797 newsos6)
7798 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7799 hardcode_direct=yes
7800 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7801 hardcode_libdir_separator=:
7802 hardcode_shlibpath_var=no
7803 ;;
7804
7805 *nto* | *qnx*)
7806 ;;
7807
7808 openbsd*)
7809 hardcode_direct=yes
7810 hardcode_shlibpath_var=no
7811 hardcode_direct_absolute=yes
7812 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7813 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7814 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7815 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7816 export_dynamic_flag_spec='${wl}-E'
7817 else
7818 case $host_os in
7819 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7820 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7821 hardcode_libdir_flag_spec='-R$libdir'
7822 ;;
7823 *)
7824 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7825 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7826 ;;
7827 esac
7828 fi
7829 ;;
7830
7831 os2*)
7832 hardcode_libdir_flag_spec='-L$libdir'
7833 hardcode_minus_L=yes
7834 allow_undefined_flag=unsupported
7835 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
7836 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7837 ;;
7838
7839 osf3*)
7840 if test "$GCC" = yes; then
7841 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7842 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7843 else
7844 allow_undefined_flag=' -expect_unresolved \*'
7845 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7846 fi
7847 archive_cmds_need_lc='no'
7848 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7849 hardcode_libdir_separator=:
7850 ;;
7851
7852 osf4* | osf5*) # as osf3* with the addition of -msym flag
7853 if test "$GCC" = yes; then
7854 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7855 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7856 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7857 else
7858 allow_undefined_flag=' -expect_unresolved \*'
7859 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7860 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
7861 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
7862
7863 # Both c and cxx compiler support -rpath directly
7864 hardcode_libdir_flag_spec='-rpath $libdir'
7865 fi
7866 archive_cmds_need_lc='no'
7867 hardcode_libdir_separator=:
7868 ;;
7869
7870 solaris*)
7871 no_undefined_flag=' -z defs'
7872 if test "$GCC" = yes; then
7873 wlarc='${wl}'
7874 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7875 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7876 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7877 else
7878 case `$CC -V 2>&1` in
7879 *"Compilers 5.0"*)
7880 wlarc=''
7881 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7882 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7883 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
7884 ;;
7885 *)
7886 wlarc='${wl}'
7887 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
7888 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7889 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7890 ;;
7891 esac
7892 fi
7893 hardcode_libdir_flag_spec='-R$libdir'
7894 hardcode_shlibpath_var=no
7895 case $host_os in
7896 solaris2.[0-5] | solaris2.[0-5].*) ;;
7897 *)
7898 # The compiler driver will combine and reorder linker options,
7899 # but understands `-z linker_flag'. GCC discards it without `$wl',
7900 # but is careful enough not to reorder.
7901 # Supported since Solaris 2.6 (maybe 2.5.1?)
7902 if test "$GCC" = yes; then
7903 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7904 else
7905 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
7906 fi
7907 ;;
7908 esac
7909 link_all_deplibs=yes
7910 ;;
7911
7912 sunos4*)
7913 if test "x$host_vendor" = xsequent; then
7914 # Use $CC to link under sequent, because it throws in some extra .o
7915 # files that make .init and .fini sections work.
7916 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7917 else
7918 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7919 fi
7920 hardcode_libdir_flag_spec='-L$libdir'
7921 hardcode_direct=yes
7922 hardcode_minus_L=yes
7923 hardcode_shlibpath_var=no
7924 ;;
7925
7926 sysv4)
7927 case $host_vendor in
7928 sni)
7929 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7930 hardcode_direct=yes # is this really true???
7931 ;;
7932 siemens)
7933 ## LD is ld it makes a PLAMLIB
7934 ## CC just makes a GrossModule.
7935 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7936 reload_cmds='$CC -r -o $output$reload_objs'
7937 hardcode_direct=no
7938 ;;
7939 motorola)
7940 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7941 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7942 ;;
7943 esac
7944 runpath_var='LD_RUN_PATH'
7945 hardcode_shlibpath_var=no
7946 ;;
7947
7948 sysv4.3*)
7949 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7950 hardcode_shlibpath_var=no
7951 export_dynamic_flag_spec='-Bexport'
7952 ;;
7953
7954 sysv4*MP*)
7955 if test -d /usr/nec; then
7956 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7957 hardcode_shlibpath_var=no
7958 runpath_var=LD_RUN_PATH
7959 hardcode_runpath_var=yes
7960 ld_shlibs=yes
7961 fi
7962 ;;
7963
7964 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
7965 no_undefined_flag='${wl}-z,text'
7966 archive_cmds_need_lc=no
7967 hardcode_shlibpath_var=no
7968 runpath_var='LD_RUN_PATH'
7969
7970 if test "$GCC" = yes; then
7971 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7972 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7973 else
7974 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7975 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7976 fi
7977 ;;
7978
7979 sysv5* | sco3.2v5* | sco5v6*)
7980 # Note: We can NOT use -z defs as we might desire, because we do not
7981 # link with -lc, and that would cause any symbols used from libc to
7982 # always be unresolved, which means just about no library would
7983 # ever link correctly. If we're not using GNU ld we use -z text
7984 # though, which does catch some bad symbols but isn't as heavy-handed
7985 # as -z defs.
7986 no_undefined_flag='${wl}-z,text'
7987 allow_undefined_flag='${wl}-z,nodefs'
7988 archive_cmds_need_lc=no
7989 hardcode_shlibpath_var=no
7990 hardcode_libdir_flag_spec='${wl}-R,$libdir'
7991 hardcode_libdir_separator=':'
7992 link_all_deplibs=yes
7993 export_dynamic_flag_spec='${wl}-Bexport'
7994 runpath_var='LD_RUN_PATH'
7995
7996 if test "$GCC" = yes; then
7997 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7998 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7999 else
8000 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8001 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8002 fi
8003 ;;
8004
8005 uts4*)
8006 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8007 hardcode_libdir_flag_spec='-L$libdir'
8008 hardcode_shlibpath_var=no
8009 ;;
8010
8011 *)
8012 ld_shlibs=no
8013 ;;
8014 esac
8015
8016 if test x$host_vendor = xsni; then
8017 case $host in
8018 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8019 export_dynamic_flag_spec='${wl}-Blargedynsym'
8020 ;;
8021 esac
8022 fi
8023 fi
8024
8025 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8026 echo "${ECHO_T}$ld_shlibs" >&6
8027 test "$ld_shlibs" = no && can_build_shared=no
8028
8029 with_gnu_ld=$with_gnu_ld
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045 #
8046 # Do we need to explicitly link libc?
8047 #
8048 case "x$archive_cmds_need_lc" in
8049 x|xyes)
8050 # Assume -lc should be added
8051 archive_cmds_need_lc=yes
8052
8053 if test "$enable_shared" = yes && test "$GCC" = yes; then
8054 case $archive_cmds in
8055 *'~'*)
8056 # FIXME: we may have to deal with multi-command sequences.
8057 ;;
8058 '$CC '*)
8059 # Test whether the compiler implicitly links with -lc since on some
8060 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8061 # to ld, don't add -lc before -lgcc.
8062 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8063 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8064 $RM conftest*
8065 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8066
8067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8068 (eval $ac_compile) 2>&5
8069 ac_status=$?
8070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071 (exit $ac_status); } 2>conftest.err; then
8072 soname=conftest
8073 lib=conftest
8074 libobjs=conftest.$ac_objext
8075 deplibs=
8076 wl=$lt_prog_compiler_wl
8077 pic_flag=$lt_prog_compiler_pic
8078 compiler_flags=-v
8079 linker_flags=-v
8080 verstring=
8081 output_objdir=.
8082 libname=conftest
8083 lt_save_allow_undefined_flag=$allow_undefined_flag
8084 allow_undefined_flag=
8085 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8086 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8087 ac_status=$?
8088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8089 (exit $ac_status); }
8090 then
8091 archive_cmds_need_lc=no
8092 else
8093 archive_cmds_need_lc=yes
8094 fi
8095 allow_undefined_flag=$lt_save_allow_undefined_flag
8096 else
8097 cat conftest.err 1>&5
8098 fi
8099 $RM conftest*
8100 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8101 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8102 ;;
8103 esac
8104 fi
8105 ;;
8106 esac
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8265 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8266 withGCC=$GCC
8267 if test "$withGCC" = yes; then
8268 case $host_os in
8269 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8270 *) lt_awk_arg="/^libraries:/" ;;
8271 esac
8272 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8273 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8274 # if the path contains ";" then we assume it to be the separator
8275 # otherwise default to the standard path separator (i.e. ":") - it is
8276 # assumed that no part of a normal pathname contains ";" but that should
8277 # okay in the real world where ";" in dirpaths is itself problematic.
8278 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8279 else
8280 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8281 fi
8282 # Ok, now we have the path, separated by spaces, we can step through it
8283 # and add multilib dir if necessary.
8284 lt_tmp_lt_search_path_spec=
8285 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8286 for lt_sys_path in $lt_search_path_spec; do
8287 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8288 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8289 else
8290 test -d "$lt_sys_path" && \
8291 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8292 fi
8293 done
8294 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8295 BEGIN {RS=" "; FS="/|\n";} {
8296 lt_foo="";
8297 lt_count=0;
8298 for (lt_i = NF; lt_i > 0; lt_i--) {
8299 if ($lt_i != "" && $lt_i != ".") {
8300 if ($lt_i == "..") {
8301 lt_count++;
8302 } else {
8303 if (lt_count == 0) {
8304 lt_foo="/" $lt_i lt_foo;
8305 } else {
8306 lt_count--;
8307 }
8308 }
8309 }
8310 }
8311 if (lt_foo != "") { lt_freq[lt_foo]++; }
8312 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8313 }'`
8314 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8315 else
8316 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8317 fi
8318 library_names_spec=
8319 libname_spec='lib$name'
8320 soname_spec=
8321 shrext_cmds=".so"
8322 postinstall_cmds=
8323 postuninstall_cmds=
8324 finish_cmds=
8325 finish_eval=
8326 shlibpath_var=
8327 shlibpath_overrides_runpath=unknown
8328 version_type=none
8329 dynamic_linker="$host_os ld.so"
8330 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8331 need_lib_prefix=unknown
8332 hardcode_into_libs=no
8333
8334 # when you set need_version to no, make sure it does not cause -set_version
8335 # flags to be left without arguments
8336 need_version=unknown
8337
8338 case $host_os in
8339 aix3*)
8340 version_type=linux
8341 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8342 shlibpath_var=LIBPATH
8343
8344 # AIX 3 has no versioning support, so we append a major version to the name.
8345 soname_spec='${libname}${release}${shared_ext}$major'
8346 ;;
8347
8348 aix4* | aix5*)
8349 version_type=linux
8350 need_lib_prefix=no
8351 need_version=no
8352 hardcode_into_libs=yes
8353 if test "$host_cpu" = ia64; then
8354 # AIX 5 supports IA64
8355 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8356 shlibpath_var=LD_LIBRARY_PATH
8357 else
8358 # With GCC up to 2.95.x, collect2 would create an import file
8359 # for dependence libraries. The import file would start with
8360 # the line `#! .'. This would cause the generated library to
8361 # depend on `.', always an invalid library. This was fixed in
8362 # development snapshots of GCC prior to 3.0.
8363 case $host_os in
8364 aix4 | aix4.[01] | aix4.[01].*)
8365 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8366 echo ' yes '
8367 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8368 :
8369 else
8370 can_build_shared=no
8371 fi
8372 ;;
8373 esac
8374 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8375 # soname into executable. Probably we can add versioning support to
8376 # collect2, so additional links can be useful in future.
8377 if test "$aix_use_runtimelinking" = yes; then
8378 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8379 # instead of lib<name>.a to let people know that these are not
8380 # typical AIX shared libraries.
8381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8382 else
8383 # We preserve .a as extension for shared libraries through AIX4.2
8384 # and later when we are not doing run time linking.
8385 library_names_spec='${libname}${release}.a $libname.a'
8386 soname_spec='${libname}${release}${shared_ext}$major'
8387 fi
8388 shlibpath_var=LIBPATH
8389 fi
8390 ;;
8391
8392 amigaos*)
8393 if test "$host_cpu" = m68k; then
8394 library_names_spec='$libname.ixlibrary $libname.a'
8395 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8396 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
8397 else
8398 dynamic_linker=no
8399 fi
8400 ;;
8401
8402 beos*)
8403 library_names_spec='${libname}${shared_ext}'
8404 dynamic_linker="$host_os ld.so"
8405 shlibpath_var=LIBRARY_PATH
8406 ;;
8407
8408 bsdi[45]*)
8409 version_type=linux
8410 need_version=no
8411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8412 soname_spec='${libname}${release}${shared_ext}$major'
8413 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8414 shlibpath_var=LD_LIBRARY_PATH
8415 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8416 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8417 # the default ld.so.conf also contains /usr/contrib/lib and
8418 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8419 # libtool to hard-code these into programs
8420 ;;
8421
8422 cygwin* | mingw* | pw32*)
8423 version_type=windows
8424 shrext_cmds=".dll"
8425 need_version=no
8426 need_lib_prefix=no
8427
8428 case $withGCC,$host_os in
8429 yes,cygwin* | yes,mingw* | yes,pw32*)
8430 library_names_spec='$libname.dll.a'
8431 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8432 postinstall_cmds='base_file=`basename \${file}`~
8433 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8434 dldir=$destdir/`dirname \$dlpath`~
8435 test -d \$dldir || mkdir -p \$dldir~
8436 $install_prog $dir/$dlname \$dldir/$dlname~
8437 chmod a+x \$dldir/$dlname~
8438 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8439 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8440 fi'
8441 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8442 dlpath=$dir/\$dldll~
8443 $RM \$dlpath'
8444 shlibpath_overrides_runpath=yes
8445
8446 case $host_os in
8447 cygwin*)
8448 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8449 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8450 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8451 ;;
8452 mingw*)
8453 # MinGW DLLs use traditional 'lib' prefix
8454 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8455 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8456 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8457 # It is most probably a Windows format PATH printed by
8458 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8459 # path with ; separators, and with drive letters. We can handle the
8460 # drive letters (cygwin fileutils understands them), so leave them,
8461 # especially as we might pass files found there to a mingw objdump,
8462 # which wouldn't understand a cygwinified path. Ahh.
8463 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8464 else
8465 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8466 fi
8467 ;;
8468 pw32*)
8469 # pw32 DLLs use 'pw' prefix rather than 'lib'
8470 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8471 ;;
8472 esac
8473 ;;
8474
8475 *)
8476 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8477 ;;
8478 esac
8479 dynamic_linker='Win32 ld.exe'
8480 # FIXME: first we should search . and the directory the executable is in
8481 shlibpath_var=PATH
8482 ;;
8483
8484 darwin* | rhapsody*)
8485 dynamic_linker="$host_os dyld"
8486 version_type=darwin
8487 need_lib_prefix=no
8488 need_version=no
8489 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8490 soname_spec='${libname}${release}${major}$shared_ext'
8491 shlibpath_overrides_runpath=yes
8492 shlibpath_var=DYLD_LIBRARY_PATH
8493 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8494
8495 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8496 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8497 ;;
8498
8499 dgux*)
8500 version_type=linux
8501 need_lib_prefix=no
8502 need_version=no
8503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8504 soname_spec='${libname}${release}${shared_ext}$major'
8505 shlibpath_var=LD_LIBRARY_PATH
8506 ;;
8507
8508 freebsd1*)
8509 dynamic_linker=no
8510 ;;
8511
8512 freebsd* | dragonfly*)
8513 # DragonFly does not have aout. When/if they implement a new
8514 # versioning mechanism, adjust this.
8515 if test -x /usr/bin/objformat; then
8516 objformat=`/usr/bin/objformat`
8517 else
8518 case $host_os in
8519 freebsd[123]*) objformat=aout ;;
8520 *) objformat=elf ;;
8521 esac
8522 fi
8523 version_type=freebsd-$objformat
8524 case $version_type in
8525 freebsd-elf*)
8526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8527 need_version=no
8528 need_lib_prefix=no
8529 ;;
8530 freebsd-*)
8531 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8532 need_version=yes
8533 ;;
8534 esac
8535 shlibpath_var=LD_LIBRARY_PATH
8536 case $host_os in
8537 freebsd2*)
8538 shlibpath_overrides_runpath=yes
8539 ;;
8540 freebsd3.[01]* | freebsdelf3.[01]*)
8541 shlibpath_overrides_runpath=yes
8542 hardcode_into_libs=yes
8543 ;;
8544 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8545 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8546 shlibpath_overrides_runpath=no
8547 hardcode_into_libs=yes
8548 ;;
8549 *) # from 4.6 on, and DragonFly
8550 shlibpath_overrides_runpath=yes
8551 hardcode_into_libs=yes
8552 ;;
8553 esac
8554 ;;
8555
8556 gnu*)
8557 version_type=linux
8558 need_lib_prefix=no
8559 need_version=no
8560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8561 soname_spec='${libname}${release}${shared_ext}$major'
8562 shlibpath_var=LD_LIBRARY_PATH
8563 hardcode_into_libs=yes
8564 ;;
8565
8566 hpux9* | hpux10* | hpux11*)
8567 # Give a soname corresponding to the major version so that dld.sl refuses to
8568 # link against other versions.
8569 version_type=sunos
8570 need_lib_prefix=no
8571 need_version=no
8572 case $host_cpu in
8573 ia64*)
8574 shrext_cmds='.so'
8575 hardcode_into_libs=yes
8576 dynamic_linker="$host_os dld.so"
8577 shlibpath_var=LD_LIBRARY_PATH
8578 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8580 soname_spec='${libname}${release}${shared_ext}$major'
8581 if test "X$HPUX_IA64_MODE" = X32; then
8582 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8583 else
8584 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8585 fi
8586 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8587 ;;
8588 hppa*64*)
8589 shrext_cmds='.sl'
8590 hardcode_into_libs=yes
8591 dynamic_linker="$host_os dld.sl"
8592 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8593 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8595 soname_spec='${libname}${release}${shared_ext}$major'
8596 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8597 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8598 ;;
8599 *)
8600 shrext_cmds='.sl'
8601 dynamic_linker="$host_os dld.sl"
8602 shlibpath_var=SHLIB_PATH
8603 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8605 soname_spec='${libname}${release}${shared_ext}$major'
8606 ;;
8607 esac
8608 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8609 postinstall_cmds='chmod 555 $lib'
8610 ;;
8611
8612 interix[3-9]*)
8613 version_type=linux
8614 need_lib_prefix=no
8615 need_version=no
8616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8617 soname_spec='${libname}${release}${shared_ext}$major'
8618 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8619 shlibpath_var=LD_LIBRARY_PATH
8620 shlibpath_overrides_runpath=no
8621 hardcode_into_libs=yes
8622 ;;
8623
8624 irix5* | irix6* | nonstopux*)
8625 case $host_os in
8626 nonstopux*) version_type=nonstopux ;;
8627 *)
8628 if test "$lt_cv_prog_gnu_ld" = yes; then
8629 version_type=linux
8630 else
8631 version_type=irix
8632 fi ;;
8633 esac
8634 need_lib_prefix=no
8635 need_version=no
8636 soname_spec='${libname}${release}${shared_ext}$major'
8637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8638 case $host_os in
8639 irix5* | nonstopux*)
8640 libsuff= shlibsuff=
8641 ;;
8642 *)
8643 case $LD in # libtool.m4 will add one of these switches to LD
8644 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8645 libsuff= shlibsuff= libmagic=32-bit;;
8646 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8647 libsuff=32 shlibsuff=N32 libmagic=N32;;
8648 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8649 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8650 *) libsuff= shlibsuff= libmagic=never-match;;
8651 esac
8652 ;;
8653 esac
8654 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8655 shlibpath_overrides_runpath=no
8656 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8657 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8658 hardcode_into_libs=yes
8659 ;;
8660
8661 # No shared lib support for Linux oldld, aout, or coff.
8662 linux*oldld* | linux*aout* | linux*coff*)
8663 dynamic_linker=no
8664 ;;
8665
8666 # This must be Linux ELF.
8667 linux* | k*bsd*-gnu)
8668 version_type=linux
8669 need_lib_prefix=no
8670 need_version=no
8671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8672 soname_spec='${libname}${release}${shared_ext}$major'
8673 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8674 shlibpath_var=LD_LIBRARY_PATH
8675 shlibpath_overrides_runpath=no
8676 # Some binutils ld are patched to set DT_RUNPATH
8677 save_LDFLAGS=$LDFLAGS
8678 save_libdir=$libdir
8679 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8680 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8681 cat >conftest.$ac_ext <<_ACEOF
8682 /* confdefs.h. */
8683 _ACEOF
8684 cat confdefs.h >>conftest.$ac_ext
8685 cat >>conftest.$ac_ext <<_ACEOF
8686 /* end confdefs.h. */
8687
8688 int
8689 main ()
8690 {
8691
8692 ;
8693 return 0;
8694 }
8695 _ACEOF
8696 rm -f conftest.$ac_objext conftest$ac_exeext
8697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8698 (eval $ac_link) 2>conftest.er1
8699 ac_status=$?
8700 grep -v '^ *+' conftest.er1 >conftest.err
8701 rm -f conftest.er1
8702 cat conftest.err >&5
8703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704 (exit $ac_status); } &&
8705 { ac_try='test -z "$ac_c_werror_flag"
8706 || test ! -s conftest.err'
8707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8708 (eval $ac_try) 2>&5
8709 ac_status=$?
8710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711 (exit $ac_status); }; } &&
8712 { ac_try='test -s conftest$ac_exeext'
8713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8714 (eval $ac_try) 2>&5
8715 ac_status=$?
8716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717 (exit $ac_status); }; }; then
8718 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
8719 shlibpath_overrides_runpath=yes
8720 fi
8721
8722 else
8723 echo "$as_me: failed program was:" >&5
8724 sed 's/^/| /' conftest.$ac_ext >&5
8725
8726 fi
8727 rm -f conftest.err conftest.$ac_objext \
8728 conftest$ac_exeext conftest.$ac_ext
8729 LDFLAGS=$save_LDFLAGS
8730 libdir=$save_libdir
8731
8732 # This implies no fast_install, which is unacceptable.
8733 # Some rework will be needed to allow for fast_install
8734 # before this can be enabled.
8735 hardcode_into_libs=yes
8736
8737 # Append ld.so.conf contents to the search path
8738 if test -f /etc/ld.so.conf; then
8739 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8740 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8741 fi
8742
8743 # We used to test for /lib/ld.so.1 and disable shared libraries on
8744 # powerpc, because MkLinux only supported shared libraries with the
8745 # GNU dynamic linker. Since this was broken with cross compilers,
8746 # most powerpc-linux boxes support dynamic linking these days and
8747 # people can always --disable-shared, the test was removed, and we
8748 # assume the GNU/Linux dynamic linker is in use.
8749 dynamic_linker='GNU/Linux ld.so'
8750 ;;
8751
8752 netbsd*)
8753 version_type=sunos
8754 need_lib_prefix=no
8755 need_version=no
8756 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8758 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8759 dynamic_linker='NetBSD (a.out) ld.so'
8760 else
8761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8762 soname_spec='${libname}${release}${shared_ext}$major'
8763 dynamic_linker='NetBSD ld.elf_so'
8764 fi
8765 shlibpath_var=LD_LIBRARY_PATH
8766 shlibpath_overrides_runpath=yes
8767 hardcode_into_libs=yes
8768 ;;
8769
8770 newsos6)
8771 version_type=linux
8772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8773 shlibpath_var=LD_LIBRARY_PATH
8774 shlibpath_overrides_runpath=yes
8775 ;;
8776
8777 *nto* | *qnx*)
8778 version_type=qnx
8779 need_lib_prefix=no
8780 need_version=no
8781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8782 soname_spec='${libname}${release}${shared_ext}$major'
8783 shlibpath_var=LD_LIBRARY_PATH
8784 shlibpath_overrides_runpath=no
8785 hardcode_into_libs=yes
8786 dynamic_linker='ldqnx.so'
8787 ;;
8788
8789 openbsd*)
8790 version_type=sunos
8791 sys_lib_dlsearch_path_spec="/usr/lib"
8792 need_lib_prefix=no
8793 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8794 case $host_os in
8795 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8796 *) need_version=no ;;
8797 esac
8798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8799 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8800 shlibpath_var=LD_LIBRARY_PATH
8801 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8802 case $host_os in
8803 openbsd2.[89] | openbsd2.[89].*)
8804 shlibpath_overrides_runpath=no
8805 ;;
8806 *)
8807 shlibpath_overrides_runpath=yes
8808 ;;
8809 esac
8810 else
8811 shlibpath_overrides_runpath=yes
8812 fi
8813 ;;
8814
8815 os2*)
8816 libname_spec='$name'
8817 shrext_cmds=".dll"
8818 need_lib_prefix=no
8819 library_names_spec='$libname${shared_ext} $libname.a'
8820 dynamic_linker='OS/2 ld.exe'
8821 shlibpath_var=LIBPATH
8822 ;;
8823
8824 osf3* | osf4* | osf5*)
8825 version_type=osf
8826 need_lib_prefix=no
8827 need_version=no
8828 soname_spec='${libname}${release}${shared_ext}$major'
8829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8830 shlibpath_var=LD_LIBRARY_PATH
8831 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8832 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8833 ;;
8834
8835 rdos*)
8836 dynamic_linker=no
8837 ;;
8838
8839 solaris*)
8840 version_type=linux
8841 need_lib_prefix=no
8842 need_version=no
8843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8844 soname_spec='${libname}${release}${shared_ext}$major'
8845 shlibpath_var=LD_LIBRARY_PATH
8846 shlibpath_overrides_runpath=yes
8847 hardcode_into_libs=yes
8848 # ldd complains unless libraries are executable
8849 postinstall_cmds='chmod +x $lib'
8850 ;;
8851
8852 sunos4*)
8853 version_type=sunos
8854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8855 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8856 shlibpath_var=LD_LIBRARY_PATH
8857 shlibpath_overrides_runpath=yes
8858 if test "$with_gnu_ld" = yes; then
8859 need_lib_prefix=no
8860 fi
8861 need_version=yes
8862 ;;
8863
8864 sysv4 | sysv4.3*)
8865 version_type=linux
8866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8867 soname_spec='${libname}${release}${shared_ext}$major'
8868 shlibpath_var=LD_LIBRARY_PATH
8869 case $host_vendor in
8870 sni)
8871 shlibpath_overrides_runpath=no
8872 need_lib_prefix=no
8873 runpath_var=LD_RUN_PATH
8874 ;;
8875 siemens)
8876 need_lib_prefix=no
8877 ;;
8878 motorola)
8879 need_lib_prefix=no
8880 need_version=no
8881 shlibpath_overrides_runpath=no
8882 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8883 ;;
8884 esac
8885 ;;
8886
8887 sysv4*MP*)
8888 if test -d /usr/nec ;then
8889 version_type=linux
8890 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8891 soname_spec='$libname${shared_ext}.$major'
8892 shlibpath_var=LD_LIBRARY_PATH
8893 fi
8894 ;;
8895
8896 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8897 version_type=freebsd-elf
8898 need_lib_prefix=no
8899 need_version=no
8900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8901 soname_spec='${libname}${release}${shared_ext}$major'
8902 shlibpath_var=LD_LIBRARY_PATH
8903 shlibpath_overrides_runpath=yes
8904 hardcode_into_libs=yes
8905 if test "$with_gnu_ld" = yes; then
8906 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8907 else
8908 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8909 case $host_os in
8910 sco3.2v5*)
8911 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8912 ;;
8913 esac
8914 fi
8915 sys_lib_dlsearch_path_spec='/usr/lib'
8916 ;;
8917
8918 tpf*)
8919 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
8920 version_type=linux
8921 need_lib_prefix=no
8922 need_version=no
8923 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8924 shlibpath_var=LD_LIBRARY_PATH
8925 shlibpath_overrides_runpath=no
8926 hardcode_into_libs=yes
8927 ;;
8928
8929 uts4*)
8930 version_type=linux
8931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8932 soname_spec='${libname}${release}${shared_ext}$major'
8933 shlibpath_var=LD_LIBRARY_PATH
8934 ;;
8935
8936 *)
8937 dynamic_linker=no
8938 ;;
8939 esac
8940 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8941 echo "${ECHO_T}$dynamic_linker" >&6
8942 test "$dynamic_linker" = no && can_build_shared=no
8943
8944 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8945 if test "$GCC" = yes; then
8946 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8947 fi
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9036 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9037 hardcode_action=
9038 if test -n "$hardcode_libdir_flag_spec" ||
9039 test -n "$runpath_var" ||
9040 test "X$hardcode_automatic" = "Xyes" ; then
9041
9042 # We can hardcode non-existent directories.
9043 if test "$hardcode_direct" != no &&
9044 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9045 # have to relink, otherwise we might link with an installed library
9046 # when we should be linking with a yet-to-be-installed one
9047 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9048 test "$hardcode_minus_L" != no; then
9049 # Linking always hardcodes the temporary library directory.
9050 hardcode_action=relink
9051 else
9052 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9053 hardcode_action=immediate
9054 fi
9055 else
9056 # We cannot hardcode anything, or else we can only hardcode existing
9057 # directories.
9058 hardcode_action=unsupported
9059 fi
9060 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9061 echo "${ECHO_T}$hardcode_action" >&6
9062
9063 if test "$hardcode_action" = relink ||
9064 test "$inherit_rpath" = yes; then
9065 # Fast installation is not supported
9066 enable_fast_install=no
9067 elif test "$shlibpath_overrides_runpath" = yes ||
9068 test "$enable_shared" = no; then
9069 # Fast installation is not necessary
9070 enable_fast_install=needless
9071 fi
9072
9073
9074
9075
9076
9077
9078 if test "x$enable_dlopen" != xyes; then
9079 enable_dlopen=unknown
9080 enable_dlopen_self=unknown
9081 enable_dlopen_self_static=unknown
9082 else
9083 lt_cv_dlopen=no
9084 lt_cv_dlopen_libs=
9085
9086 case $host_os in
9087 beos*)
9088 lt_cv_dlopen="load_add_on"
9089 lt_cv_dlopen_libs=
9090 lt_cv_dlopen_self=yes
9091 ;;
9092
9093 mingw* | pw32*)
9094 lt_cv_dlopen="LoadLibrary"
9095 lt_cv_dlopen_libs=
9096 ;;
9097
9098 cygwin*)
9099 lt_cv_dlopen="dlopen"
9100 lt_cv_dlopen_libs=
9101 ;;
9102
9103 darwin*)
9104 # if libdl is installed we need to link against it
9105 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9106 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9107 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9108 echo $ECHO_N "(cached) $ECHO_C" >&6
9109 else
9110 ac_check_lib_save_LIBS=$LIBS
9111 LIBS="-ldl $LIBS"
9112 cat >conftest.$ac_ext <<_ACEOF
9113 /* confdefs.h. */
9114 _ACEOF
9115 cat confdefs.h >>conftest.$ac_ext
9116 cat >>conftest.$ac_ext <<_ACEOF
9117 /* end confdefs.h. */
9118
9119 /* Override any gcc2 internal prototype to avoid an error. */
9120 #ifdef __cplusplus
9121 extern "C"
9122 #endif
9123 /* We use char because int might match the return type of a gcc2
9124 builtin and then its argument prototype would still apply. */
9125 char dlopen ();
9126 int
9127 main ()
9128 {
9129 dlopen ();
9130 ;
9131 return 0;
9132 }
9133 _ACEOF
9134 rm -f conftest.$ac_objext conftest$ac_exeext
9135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9136 (eval $ac_link) 2>conftest.er1
9137 ac_status=$?
9138 grep -v '^ *+' conftest.er1 >conftest.err
9139 rm -f conftest.er1
9140 cat conftest.err >&5
9141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142 (exit $ac_status); } &&
9143 { ac_try='test -z "$ac_c_werror_flag"
9144 || test ! -s conftest.err'
9145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9146 (eval $ac_try) 2>&5
9147 ac_status=$?
9148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9149 (exit $ac_status); }; } &&
9150 { ac_try='test -s conftest$ac_exeext'
9151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9152 (eval $ac_try) 2>&5
9153 ac_status=$?
9154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9155 (exit $ac_status); }; }; then
9156 ac_cv_lib_dl_dlopen=yes
9157 else
9158 echo "$as_me: failed program was:" >&5
9159 sed 's/^/| /' conftest.$ac_ext >&5
9160
9161 ac_cv_lib_dl_dlopen=no
9162 fi
9163 rm -f conftest.err conftest.$ac_objext \
9164 conftest$ac_exeext conftest.$ac_ext
9165 LIBS=$ac_check_lib_save_LIBS
9166 fi
9167 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9168 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9169 if test $ac_cv_lib_dl_dlopen = yes; then
9170 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9171 else
9172
9173 lt_cv_dlopen="dyld"
9174 lt_cv_dlopen_libs=
9175 lt_cv_dlopen_self=yes
9176
9177 fi
9178
9179 ;;
9180
9181 *)
9182 echo "$as_me:$LINENO: checking for shl_load" >&5
9183 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9184 if test "${ac_cv_func_shl_load+set}" = set; then
9185 echo $ECHO_N "(cached) $ECHO_C" >&6
9186 else
9187 cat >conftest.$ac_ext <<_ACEOF
9188 /* confdefs.h. */
9189 _ACEOF
9190 cat confdefs.h >>conftest.$ac_ext
9191 cat >>conftest.$ac_ext <<_ACEOF
9192 /* end confdefs.h. */
9193 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9194 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9195 #define shl_load innocuous_shl_load
9196
9197 /* System header to define __stub macros and hopefully few prototypes,
9198 which can conflict with char shl_load (); below.
9199 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9200 <limits.h> exists even on freestanding compilers. */
9201
9202 #ifdef __STDC__
9203 # include <limits.h>
9204 #else
9205 # include <assert.h>
9206 #endif
9207
9208 #undef shl_load
9209
9210 /* Override any gcc2 internal prototype to avoid an error. */
9211 #ifdef __cplusplus
9212 extern "C"
9213 {
9214 #endif
9215 /* We use char because int might match the return type of a gcc2
9216 builtin and then its argument prototype would still apply. */
9217 char shl_load ();
9218 /* The GNU C library defines this for functions which it implements
9219 to always fail with ENOSYS. Some functions are actually named
9220 something starting with __ and the normal name is an alias. */
9221 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9222 choke me
9223 #else
9224 char (*f) () = shl_load;
9225 #endif
9226 #ifdef __cplusplus
9227 }
9228 #endif
9229
9230 int
9231 main ()
9232 {
9233 return f != shl_load;
9234 ;
9235 return 0;
9236 }
9237 _ACEOF
9238 rm -f conftest.$ac_objext conftest$ac_exeext
9239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9240 (eval $ac_link) 2>conftest.er1
9241 ac_status=$?
9242 grep -v '^ *+' conftest.er1 >conftest.err
9243 rm -f conftest.er1
9244 cat conftest.err >&5
9245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9246 (exit $ac_status); } &&
9247 { ac_try='test -z "$ac_c_werror_flag"
9248 || test ! -s conftest.err'
9249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9250 (eval $ac_try) 2>&5
9251 ac_status=$?
9252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9253 (exit $ac_status); }; } &&
9254 { ac_try='test -s conftest$ac_exeext'
9255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9256 (eval $ac_try) 2>&5
9257 ac_status=$?
9258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259 (exit $ac_status); }; }; then
9260 ac_cv_func_shl_load=yes
9261 else
9262 echo "$as_me: failed program was:" >&5
9263 sed 's/^/| /' conftest.$ac_ext >&5
9264
9265 ac_cv_func_shl_load=no
9266 fi
9267 rm -f conftest.err conftest.$ac_objext \
9268 conftest$ac_exeext conftest.$ac_ext
9269 fi
9270 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9271 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9272 if test $ac_cv_func_shl_load = yes; then
9273 lt_cv_dlopen="shl_load"
9274 else
9275 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9276 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9277 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9278 echo $ECHO_N "(cached) $ECHO_C" >&6
9279 else
9280 ac_check_lib_save_LIBS=$LIBS
9281 LIBS="-ldld $LIBS"
9282 cat >conftest.$ac_ext <<_ACEOF
9283 /* confdefs.h. */
9284 _ACEOF
9285 cat confdefs.h >>conftest.$ac_ext
9286 cat >>conftest.$ac_ext <<_ACEOF
9287 /* end confdefs.h. */
9288
9289 /* Override any gcc2 internal prototype to avoid an error. */
9290 #ifdef __cplusplus
9291 extern "C"
9292 #endif
9293 /* We use char because int might match the return type of a gcc2
9294 builtin and then its argument prototype would still apply. */
9295 char shl_load ();
9296 int
9297 main ()
9298 {
9299 shl_load ();
9300 ;
9301 return 0;
9302 }
9303 _ACEOF
9304 rm -f conftest.$ac_objext conftest$ac_exeext
9305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9306 (eval $ac_link) 2>conftest.er1
9307 ac_status=$?
9308 grep -v '^ *+' conftest.er1 >conftest.err
9309 rm -f conftest.er1
9310 cat conftest.err >&5
9311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9312 (exit $ac_status); } &&
9313 { ac_try='test -z "$ac_c_werror_flag"
9314 || test ! -s conftest.err'
9315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9316 (eval $ac_try) 2>&5
9317 ac_status=$?
9318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9319 (exit $ac_status); }; } &&
9320 { ac_try='test -s conftest$ac_exeext'
9321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9322 (eval $ac_try) 2>&5
9323 ac_status=$?
9324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9325 (exit $ac_status); }; }; then
9326 ac_cv_lib_dld_shl_load=yes
9327 else
9328 echo "$as_me: failed program was:" >&5
9329 sed 's/^/| /' conftest.$ac_ext >&5
9330
9331 ac_cv_lib_dld_shl_load=no
9332 fi
9333 rm -f conftest.err conftest.$ac_objext \
9334 conftest$ac_exeext conftest.$ac_ext
9335 LIBS=$ac_check_lib_save_LIBS
9336 fi
9337 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9338 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9339 if test $ac_cv_lib_dld_shl_load = yes; then
9340 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9341 else
9342 echo "$as_me:$LINENO: checking for dlopen" >&5
9343 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9344 if test "${ac_cv_func_dlopen+set}" = set; then
9345 echo $ECHO_N "(cached) $ECHO_C" >&6
9346 else
9347 cat >conftest.$ac_ext <<_ACEOF
9348 /* confdefs.h. */
9349 _ACEOF
9350 cat confdefs.h >>conftest.$ac_ext
9351 cat >>conftest.$ac_ext <<_ACEOF
9352 /* end confdefs.h. */
9353 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9354 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9355 #define dlopen innocuous_dlopen
9356
9357 /* System header to define __stub macros and hopefully few prototypes,
9358 which can conflict with char dlopen (); below.
9359 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9360 <limits.h> exists even on freestanding compilers. */
9361
9362 #ifdef __STDC__
9363 # include <limits.h>
9364 #else
9365 # include <assert.h>
9366 #endif
9367
9368 #undef dlopen
9369
9370 /* Override any gcc2 internal prototype to avoid an error. */
9371 #ifdef __cplusplus
9372 extern "C"
9373 {
9374 #endif
9375 /* We use char because int might match the return type of a gcc2
9376 builtin and then its argument prototype would still apply. */
9377 char dlopen ();
9378 /* The GNU C library defines this for functions which it implements
9379 to always fail with ENOSYS. Some functions are actually named
9380 something starting with __ and the normal name is an alias. */
9381 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9382 choke me
9383 #else
9384 char (*f) () = dlopen;
9385 #endif
9386 #ifdef __cplusplus
9387 }
9388 #endif
9389
9390 int
9391 main ()
9392 {
9393 return f != dlopen;
9394 ;
9395 return 0;
9396 }
9397 _ACEOF
9398 rm -f conftest.$ac_objext conftest$ac_exeext
9399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9400 (eval $ac_link) 2>conftest.er1
9401 ac_status=$?
9402 grep -v '^ *+' conftest.er1 >conftest.err
9403 rm -f conftest.er1
9404 cat conftest.err >&5
9405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9406 (exit $ac_status); } &&
9407 { ac_try='test -z "$ac_c_werror_flag"
9408 || test ! -s conftest.err'
9409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9410 (eval $ac_try) 2>&5
9411 ac_status=$?
9412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9413 (exit $ac_status); }; } &&
9414 { ac_try='test -s conftest$ac_exeext'
9415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9416 (eval $ac_try) 2>&5
9417 ac_status=$?
9418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9419 (exit $ac_status); }; }; then
9420 ac_cv_func_dlopen=yes
9421 else
9422 echo "$as_me: failed program was:" >&5
9423 sed 's/^/| /' conftest.$ac_ext >&5
9424
9425 ac_cv_func_dlopen=no
9426 fi
9427 rm -f conftest.err conftest.$ac_objext \
9428 conftest$ac_exeext conftest.$ac_ext
9429 fi
9430 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9431 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9432 if test $ac_cv_func_dlopen = yes; then
9433 lt_cv_dlopen="dlopen"
9434 else
9435 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9436 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9437 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9438 echo $ECHO_N "(cached) $ECHO_C" >&6
9439 else
9440 ac_check_lib_save_LIBS=$LIBS
9441 LIBS="-ldl $LIBS"
9442 cat >conftest.$ac_ext <<_ACEOF
9443 /* confdefs.h. */
9444 _ACEOF
9445 cat confdefs.h >>conftest.$ac_ext
9446 cat >>conftest.$ac_ext <<_ACEOF
9447 /* end confdefs.h. */
9448
9449 /* Override any gcc2 internal prototype to avoid an error. */
9450 #ifdef __cplusplus
9451 extern "C"
9452 #endif
9453 /* We use char because int might match the return type of a gcc2
9454 builtin and then its argument prototype would still apply. */
9455 char dlopen ();
9456 int
9457 main ()
9458 {
9459 dlopen ();
9460 ;
9461 return 0;
9462 }
9463 _ACEOF
9464 rm -f conftest.$ac_objext conftest$ac_exeext
9465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9466 (eval $ac_link) 2>conftest.er1
9467 ac_status=$?
9468 grep -v '^ *+' conftest.er1 >conftest.err
9469 rm -f conftest.er1
9470 cat conftest.err >&5
9471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9472 (exit $ac_status); } &&
9473 { ac_try='test -z "$ac_c_werror_flag"
9474 || test ! -s conftest.err'
9475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9476 (eval $ac_try) 2>&5
9477 ac_status=$?
9478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9479 (exit $ac_status); }; } &&
9480 { ac_try='test -s conftest$ac_exeext'
9481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9482 (eval $ac_try) 2>&5
9483 ac_status=$?
9484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9485 (exit $ac_status); }; }; then
9486 ac_cv_lib_dl_dlopen=yes
9487 else
9488 echo "$as_me: failed program was:" >&5
9489 sed 's/^/| /' conftest.$ac_ext >&5
9490
9491 ac_cv_lib_dl_dlopen=no
9492 fi
9493 rm -f conftest.err conftest.$ac_objext \
9494 conftest$ac_exeext conftest.$ac_ext
9495 LIBS=$ac_check_lib_save_LIBS
9496 fi
9497 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9498 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9499 if test $ac_cv_lib_dl_dlopen = yes; then
9500 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9501 else
9502 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9503 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9504 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9505 echo $ECHO_N "(cached) $ECHO_C" >&6
9506 else
9507 ac_check_lib_save_LIBS=$LIBS
9508 LIBS="-lsvld $LIBS"
9509 cat >conftest.$ac_ext <<_ACEOF
9510 /* confdefs.h. */
9511 _ACEOF
9512 cat confdefs.h >>conftest.$ac_ext
9513 cat >>conftest.$ac_ext <<_ACEOF
9514 /* end confdefs.h. */
9515
9516 /* Override any gcc2 internal prototype to avoid an error. */
9517 #ifdef __cplusplus
9518 extern "C"
9519 #endif
9520 /* We use char because int might match the return type of a gcc2
9521 builtin and then its argument prototype would still apply. */
9522 char dlopen ();
9523 int
9524 main ()
9525 {
9526 dlopen ();
9527 ;
9528 return 0;
9529 }
9530 _ACEOF
9531 rm -f conftest.$ac_objext conftest$ac_exeext
9532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9533 (eval $ac_link) 2>conftest.er1
9534 ac_status=$?
9535 grep -v '^ *+' conftest.er1 >conftest.err
9536 rm -f conftest.er1
9537 cat conftest.err >&5
9538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539 (exit $ac_status); } &&
9540 { ac_try='test -z "$ac_c_werror_flag"
9541 || test ! -s conftest.err'
9542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9543 (eval $ac_try) 2>&5
9544 ac_status=$?
9545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546 (exit $ac_status); }; } &&
9547 { ac_try='test -s conftest$ac_exeext'
9548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9549 (eval $ac_try) 2>&5
9550 ac_status=$?
9551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9552 (exit $ac_status); }; }; then
9553 ac_cv_lib_svld_dlopen=yes
9554 else
9555 echo "$as_me: failed program was:" >&5
9556 sed 's/^/| /' conftest.$ac_ext >&5
9557
9558 ac_cv_lib_svld_dlopen=no
9559 fi
9560 rm -f conftest.err conftest.$ac_objext \
9561 conftest$ac_exeext conftest.$ac_ext
9562 LIBS=$ac_check_lib_save_LIBS
9563 fi
9564 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9565 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9566 if test $ac_cv_lib_svld_dlopen = yes; then
9567 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9568 else
9569 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9570 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9571 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9572 echo $ECHO_N "(cached) $ECHO_C" >&6
9573 else
9574 ac_check_lib_save_LIBS=$LIBS
9575 LIBS="-ldld $LIBS"
9576 cat >conftest.$ac_ext <<_ACEOF
9577 /* confdefs.h. */
9578 _ACEOF
9579 cat confdefs.h >>conftest.$ac_ext
9580 cat >>conftest.$ac_ext <<_ACEOF
9581 /* end confdefs.h. */
9582
9583 /* Override any gcc2 internal prototype to avoid an error. */
9584 #ifdef __cplusplus
9585 extern "C"
9586 #endif
9587 /* We use char because int might match the return type of a gcc2
9588 builtin and then its argument prototype would still apply. */
9589 char dld_link ();
9590 int
9591 main ()
9592 {
9593 dld_link ();
9594 ;
9595 return 0;
9596 }
9597 _ACEOF
9598 rm -f conftest.$ac_objext conftest$ac_exeext
9599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9600 (eval $ac_link) 2>conftest.er1
9601 ac_status=$?
9602 grep -v '^ *+' conftest.er1 >conftest.err
9603 rm -f conftest.er1
9604 cat conftest.err >&5
9605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9606 (exit $ac_status); } &&
9607 { ac_try='test -z "$ac_c_werror_flag"
9608 || test ! -s conftest.err'
9609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9610 (eval $ac_try) 2>&5
9611 ac_status=$?
9612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9613 (exit $ac_status); }; } &&
9614 { ac_try='test -s conftest$ac_exeext'
9615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9616 (eval $ac_try) 2>&5
9617 ac_status=$?
9618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9619 (exit $ac_status); }; }; then
9620 ac_cv_lib_dld_dld_link=yes
9621 else
9622 echo "$as_me: failed program was:" >&5
9623 sed 's/^/| /' conftest.$ac_ext >&5
9624
9625 ac_cv_lib_dld_dld_link=no
9626 fi
9627 rm -f conftest.err conftest.$ac_objext \
9628 conftest$ac_exeext conftest.$ac_ext
9629 LIBS=$ac_check_lib_save_LIBS
9630 fi
9631 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9632 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9633 if test $ac_cv_lib_dld_dld_link = yes; then
9634 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9635 fi
9636
9637
9638 fi
9639
9640
9641 fi
9642
9643
9644 fi
9645
9646
9647 fi
9648
9649
9650 fi
9651
9652 ;;
9653 esac
9654
9655 if test "x$lt_cv_dlopen" != xno; then
9656 enable_dlopen=yes
9657 else
9658 enable_dlopen=no
9659 fi
9660
9661 case $lt_cv_dlopen in
9662 dlopen)
9663 save_CPPFLAGS="$CPPFLAGS"
9664 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9665
9666 save_LDFLAGS="$LDFLAGS"
9667 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9668
9669 save_LIBS="$LIBS"
9670 LIBS="$lt_cv_dlopen_libs $LIBS"
9671
9672 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9673 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9674 if test "${lt_cv_dlopen_self+set}" = set; then
9675 echo $ECHO_N "(cached) $ECHO_C" >&6
9676 else
9677 if test "$cross_compiling" = yes; then :
9678 lt_cv_dlopen_self=cross
9679 else
9680 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9681 lt_status=$lt_dlunknown
9682 cat > conftest.$ac_ext <<_LT_EOF
9683 #line 9683 "configure"
9684 #include "confdefs.h"
9685
9686 #if HAVE_DLFCN_H
9687 #include <dlfcn.h>
9688 #endif
9689
9690 #include <stdio.h>
9691
9692 #ifdef RTLD_GLOBAL
9693 # define LT_DLGLOBAL RTLD_GLOBAL
9694 #else
9695 # ifdef DL_GLOBAL
9696 # define LT_DLGLOBAL DL_GLOBAL
9697 # else
9698 # define LT_DLGLOBAL 0
9699 # endif
9700 #endif
9701
9702 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9703 find out it does not work in some platform. */
9704 #ifndef LT_DLLAZY_OR_NOW
9705 # ifdef RTLD_LAZY
9706 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9707 # else
9708 # ifdef DL_LAZY
9709 # define LT_DLLAZY_OR_NOW DL_LAZY
9710 # else
9711 # ifdef RTLD_NOW
9712 # define LT_DLLAZY_OR_NOW RTLD_NOW
9713 # else
9714 # ifdef DL_NOW
9715 # define LT_DLLAZY_OR_NOW DL_NOW
9716 # else
9717 # define LT_DLLAZY_OR_NOW 0
9718 # endif
9719 # endif
9720 # endif
9721 # endif
9722 #endif
9723
9724 #ifdef __cplusplus
9725 extern "C" void exit (int);
9726 #endif
9727
9728 void fnord() { int i=42;}
9729 int main ()
9730 {
9731 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9732 int status = $lt_dlunknown;
9733
9734 if (self)
9735 {
9736 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9737 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9738 /* dlclose (self); */
9739 }
9740 else
9741 puts (dlerror ());
9742
9743 exit (status);
9744 }
9745 _LT_EOF
9746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9747 (eval $ac_link) 2>&5
9748 ac_status=$?
9749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9751 (./conftest; exit; ) >&5 2>/dev/null
9752 lt_status=$?
9753 case x$lt_status in
9754 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9755 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9756 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9757 esac
9758 else :
9759 # compilation failed
9760 lt_cv_dlopen_self=no
9761 fi
9762 fi
9763 rm -fr conftest*
9764
9765
9766 fi
9767 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9768 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9769
9770 if test "x$lt_cv_dlopen_self" = xyes; then
9771 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9772 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9773 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9774 if test "${lt_cv_dlopen_self_static+set}" = set; then
9775 echo $ECHO_N "(cached) $ECHO_C" >&6
9776 else
9777 if test "$cross_compiling" = yes; then :
9778 lt_cv_dlopen_self_static=cross
9779 else
9780 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9781 lt_status=$lt_dlunknown
9782 cat > conftest.$ac_ext <<_LT_EOF
9783 #line 9783 "configure"
9784 #include "confdefs.h"
9785
9786 #if HAVE_DLFCN_H
9787 #include <dlfcn.h>
9788 #endif
9789
9790 #include <stdio.h>
9791
9792 #ifdef RTLD_GLOBAL
9793 # define LT_DLGLOBAL RTLD_GLOBAL
9794 #else
9795 # ifdef DL_GLOBAL
9796 # define LT_DLGLOBAL DL_GLOBAL
9797 # else
9798 # define LT_DLGLOBAL 0
9799 # endif
9800 #endif
9801
9802 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9803 find out it does not work in some platform. */
9804 #ifndef LT_DLLAZY_OR_NOW
9805 # ifdef RTLD_LAZY
9806 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9807 # else
9808 # ifdef DL_LAZY
9809 # define LT_DLLAZY_OR_NOW DL_LAZY
9810 # else
9811 # ifdef RTLD_NOW
9812 # define LT_DLLAZY_OR_NOW RTLD_NOW
9813 # else
9814 # ifdef DL_NOW
9815 # define LT_DLLAZY_OR_NOW DL_NOW
9816 # else
9817 # define LT_DLLAZY_OR_NOW 0
9818 # endif
9819 # endif
9820 # endif
9821 # endif
9822 #endif
9823
9824 #ifdef __cplusplus
9825 extern "C" void exit (int);
9826 #endif
9827
9828 void fnord() { int i=42;}
9829 int main ()
9830 {
9831 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9832 int status = $lt_dlunknown;
9833
9834 if (self)
9835 {
9836 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9837 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9838 /* dlclose (self); */
9839 }
9840 else
9841 puts (dlerror ());
9842
9843 exit (status);
9844 }
9845 _LT_EOF
9846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9847 (eval $ac_link) 2>&5
9848 ac_status=$?
9849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9850 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9851 (./conftest; exit; ) >&5 2>/dev/null
9852 lt_status=$?
9853 case x$lt_status in
9854 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9855 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9856 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9857 esac
9858 else :
9859 # compilation failed
9860 lt_cv_dlopen_self_static=no
9861 fi
9862 fi
9863 rm -fr conftest*
9864
9865
9866 fi
9867 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9868 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9869 fi
9870
9871 CPPFLAGS="$save_CPPFLAGS"
9872 LDFLAGS="$save_LDFLAGS"
9873 LIBS="$save_LIBS"
9874 ;;
9875 esac
9876
9877 case $lt_cv_dlopen_self in
9878 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9879 *) enable_dlopen_self=unknown ;;
9880 esac
9881
9882 case $lt_cv_dlopen_self_static in
9883 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9884 *) enable_dlopen_self_static=unknown ;;
9885 esac
9886 fi
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904 striplib=
9905 old_striplib=
9906 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9907 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9908 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9909 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9910 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9911 echo "$as_me:$LINENO: result: yes" >&5
9912 echo "${ECHO_T}yes" >&6
9913 else
9914 # FIXME - insert some real tests, host_os isn't really good enough
9915 case $host_os in
9916 darwin*)
9917 if test -n "$STRIP" ; then
9918 striplib="$STRIP -x"
9919 old_striplib="$STRIP -S"
9920 echo "$as_me:$LINENO: result: yes" >&5
9921 echo "${ECHO_T}yes" >&6
9922 else
9923 echo "$as_me:$LINENO: result: no" >&5
9924 echo "${ECHO_T}no" >&6
9925 fi
9926 ;;
9927 *)
9928 echo "$as_me:$LINENO: result: no" >&5
9929 echo "${ECHO_T}no" >&6
9930 ;;
9931 esac
9932 fi
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945 # Report which library types will actually be built
9946 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9947 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9948 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9949 echo "${ECHO_T}$can_build_shared" >&6
9950
9951 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9952 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9953 test "$can_build_shared" = "no" && enable_shared=no
9954
9955 # On AIX, shared libraries and static libraries use the same namespace, and
9956 # are all built from PIC.
9957 case $host_os in
9958 aix3*)
9959 test "$enable_shared" = yes && enable_static=no
9960 if test -n "$RANLIB"; then
9961 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9962 postinstall_cmds='$RANLIB $lib'
9963 fi
9964 ;;
9965
9966 aix4* | aix5*)
9967 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9968 test "$enable_shared" = yes && enable_static=no
9969 fi
9970 ;;
9971 esac
9972 echo "$as_me:$LINENO: result: $enable_shared" >&5
9973 echo "${ECHO_T}$enable_shared" >&6
9974
9975 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9976 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9977 # Make sure either enable_shared or enable_static is yes.
9978 test "$enable_shared" = yes || enable_static=yes
9979 echo "$as_me:$LINENO: result: $enable_static" >&5
9980 echo "${ECHO_T}$enable_static" >&6
9981
9982
9983
9984
9985 fi
9986 ac_ext=c
9987 ac_cpp='$CPP $CPPFLAGS'
9988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9991
9992 CC="$lt_save_CC"
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006 ac_config_commands="$ac_config_commands libtool"
10007
10008
10009
10010
10011 # Only expand once:
10012
10013
10014
10015
10016
10017 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
10018 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
10019 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
10020 if test "${enable_maintainer_mode+set}" = set; then
10021 enableval="$enable_maintainer_mode"
10022 USE_MAINTAINER_MODE=$enableval
10023 else
10024 USE_MAINTAINER_MODE=no
10025 fi;
10026 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
10027 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
10028
10029
10030 if test $USE_MAINTAINER_MODE = yes; then
10031 MAINTAINER_MODE_TRUE=
10032 MAINTAINER_MODE_FALSE='#'
10033 else
10034 MAINTAINER_MODE_TRUE='#'
10035 MAINTAINER_MODE_FALSE=
10036 fi
10037
10038 MAINT=$MAINTAINER_MODE_TRUE
10039
10040
10041
10042 # We need gfortran to compile parts of the library
10043 # We can't use AC_PROG_FC because it expects a fully working gfortran.
10044 #AC_PROG_FC(gfortran)
10045 FC="$GFORTRAN"
10046 ac_ext=${FC_SRCEXT-f}
10047 ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
10048 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
10049 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
10050 if test -n "$ac_tool_prefix"; then
10051 for ac_prog in gfortran
10052 do
10053 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10054 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10055 echo "$as_me:$LINENO: checking for $ac_word" >&5
10056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10057 if test "${ac_cv_prog_FC+set}" = set; then
10058 echo $ECHO_N "(cached) $ECHO_C" >&6
10059 else
10060 if test -n "$FC"; then
10061 ac_cv_prog_FC="$FC" # Let the user override the test.
10062 else
10063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10064 for as_dir in $PATH
10065 do
10066 IFS=$as_save_IFS
10067 test -z "$as_dir" && as_dir=.
10068 for ac_exec_ext in '' $ac_executable_extensions; do
10069 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10070 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
10071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10072 break 2
10073 fi
10074 done
10075 done
10076
10077 fi
10078 fi
10079 FC=$ac_cv_prog_FC
10080 if test -n "$FC"; then
10081 echo "$as_me:$LINENO: result: $FC" >&5
10082 echo "${ECHO_T}$FC" >&6
10083 else
10084 echo "$as_me:$LINENO: result: no" >&5
10085 echo "${ECHO_T}no" >&6
10086 fi
10087
10088 test -n "$FC" && break
10089 done
10090 fi
10091 if test -z "$FC"; then
10092 ac_ct_FC=$FC
10093 for ac_prog in gfortran
10094 do
10095 # Extract the first word of "$ac_prog", so it can be a program name with args.
10096 set dummy $ac_prog; ac_word=$2
10097 echo "$as_me:$LINENO: checking for $ac_word" >&5
10098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10099 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
10100 echo $ECHO_N "(cached) $ECHO_C" >&6
10101 else
10102 if test -n "$ac_ct_FC"; then
10103 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
10104 else
10105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10106 for as_dir in $PATH
10107 do
10108 IFS=$as_save_IFS
10109 test -z "$as_dir" && as_dir=.
10110 for ac_exec_ext in '' $ac_executable_extensions; do
10111 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10112 ac_cv_prog_ac_ct_FC="$ac_prog"
10113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10114 break 2
10115 fi
10116 done
10117 done
10118
10119 fi
10120 fi
10121 ac_ct_FC=$ac_cv_prog_ac_ct_FC
10122 if test -n "$ac_ct_FC"; then
10123 echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
10124 echo "${ECHO_T}$ac_ct_FC" >&6
10125 else
10126 echo "$as_me:$LINENO: result: no" >&5
10127 echo "${ECHO_T}no" >&6
10128 fi
10129
10130 test -n "$ac_ct_FC" && break
10131 done
10132
10133 FC=$ac_ct_FC
10134 fi
10135
10136
10137 # Provide some information about the compiler.
10138 echo "$as_me:10138:" \
10139 "checking for Fortran compiler version" >&5
10140 ac_compiler=`set X $ac_compile; echo $2`
10141 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10142 (eval $ac_compiler --version </dev/null >&5) 2>&5
10143 ac_status=$?
10144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10145 (exit $ac_status); }
10146 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10147 (eval $ac_compiler -v </dev/null >&5) 2>&5
10148 ac_status=$?
10149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150 (exit $ac_status); }
10151 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10152 (eval $ac_compiler -V </dev/null >&5) 2>&5
10153 ac_status=$?
10154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10155 (exit $ac_status); }
10156 rm -f a.out
10157
10158 # If we don't use `.F' as extension, the preprocessor is not run on the
10159 # input file. (Note that this only needs to work for GNU compilers.)
10160 ac_save_ext=$ac_ext
10161 ac_ext=F
10162 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
10163 echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6
10164 if test "${ac_cv_fc_compiler_gnu+set}" = set; then
10165 echo $ECHO_N "(cached) $ECHO_C" >&6
10166 else
10167 cat >conftest.$ac_ext <<_ACEOF
10168 program main
10169 #ifndef __GNUC__
10170 choke me
10171 #endif
10172
10173 end
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_fc_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_compiler_gnu=yes
10198 else
10199 echo "$as_me: failed program was:" >&5
10200 sed 's/^/| /' conftest.$ac_ext >&5
10201
10202 ac_compiler_gnu=no
10203 fi
10204 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10205 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
10206
10207 fi
10208 echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
10209 echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6
10210 ac_ext=$ac_save_ext
10211 ac_test_FFLAGS=${FCFLAGS+set}
10212 ac_save_FFLAGS=$FCFLAGS
10213 FCFLAGS=
10214 echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
10215 echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6
10216 if test "${ac_cv_prog_fc_g+set}" = set; then
10217 echo $ECHO_N "(cached) $ECHO_C" >&6
10218 else
10219 FCFLAGS=-g
10220 cat >conftest.$ac_ext <<_ACEOF
10221 program main
10222
10223 end
10224 _ACEOF
10225 rm -f conftest.$ac_objext
10226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10227 (eval $ac_compile) 2>conftest.er1
10228 ac_status=$?
10229 grep -v '^ *+' conftest.er1 >conftest.err
10230 rm -f conftest.er1
10231 cat conftest.err >&5
10232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10233 (exit $ac_status); } &&
10234 { ac_try='test -z "$ac_fc_werror_flag"
10235 || test ! -s conftest.err'
10236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10237 (eval $ac_try) 2>&5
10238 ac_status=$?
10239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240 (exit $ac_status); }; } &&
10241 { ac_try='test -s conftest.$ac_objext'
10242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10243 (eval $ac_try) 2>&5
10244 ac_status=$?
10245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246 (exit $ac_status); }; }; then
10247 ac_cv_prog_fc_g=yes
10248 else
10249 echo "$as_me: failed program was:" >&5
10250 sed 's/^/| /' conftest.$ac_ext >&5
10251
10252 ac_cv_prog_fc_g=no
10253 fi
10254 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10255
10256 fi
10257 echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
10258 echo "${ECHO_T}$ac_cv_prog_fc_g" >&6
10259 if test "$ac_test_FFLAGS" = set; then
10260 FCFLAGS=$ac_save_FFLAGS
10261 elif test $ac_cv_prog_fc_g = yes; then
10262 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
10263 FCFLAGS="-g -O2"
10264 else
10265 FCFLAGS="-g"
10266 fi
10267 else
10268 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
10269 FCFLAGS="-O2"
10270 else
10271 FCFLAGS=
10272 fi
10273 fi
10274
10275 ac_ext=c
10276 ac_cpp='$CPP $CPPFLAGS'
10277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10280
10281
10282 ac_ext=${FC_SRCEXT-f}
10283 ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
10284 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
10285 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
10286 if test -n "$ac_tool_prefix"; then
10287 for ac_prog in f95 fort xlf95 ifc efc pgf95 lf95 gfortran f90 xlf90 pgf90 epcf90 g77 f77 xlf frt pgf77 fort77 fl32 af77
10288 do
10289 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10290 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10291 echo "$as_me:$LINENO: checking for $ac_word" >&5
10292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10293 if test "${ac_cv_prog_FC+set}" = set; then
10294 echo $ECHO_N "(cached) $ECHO_C" >&6
10295 else
10296 if test -n "$FC"; then
10297 ac_cv_prog_FC="$FC" # Let the user override the test.
10298 else
10299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10300 for as_dir in $PATH
10301 do
10302 IFS=$as_save_IFS
10303 test -z "$as_dir" && as_dir=.
10304 for ac_exec_ext in '' $ac_executable_extensions; do
10305 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10306 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
10307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10308 break 2
10309 fi
10310 done
10311 done
10312
10313 fi
10314 fi
10315 FC=$ac_cv_prog_FC
10316 if test -n "$FC"; then
10317 echo "$as_me:$LINENO: result: $FC" >&5
10318 echo "${ECHO_T}$FC" >&6
10319 else
10320 echo "$as_me:$LINENO: result: no" >&5
10321 echo "${ECHO_T}no" >&6
10322 fi
10323
10324 test -n "$FC" && break
10325 done
10326 fi
10327 if test -z "$FC"; then
10328 ac_ct_FC=$FC
10329 for ac_prog in f95 fort xlf95 ifc efc pgf95 lf95 gfortran f90 xlf90 pgf90 epcf90 g77 f77 xlf frt pgf77 fort77 fl32 af77
10330 do
10331 # Extract the first word of "$ac_prog", so it can be a program name with args.
10332 set dummy $ac_prog; ac_word=$2
10333 echo "$as_me:$LINENO: checking for $ac_word" >&5
10334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10335 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
10336 echo $ECHO_N "(cached) $ECHO_C" >&6
10337 else
10338 if test -n "$ac_ct_FC"; then
10339 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
10340 else
10341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10342 for as_dir in $PATH
10343 do
10344 IFS=$as_save_IFS
10345 test -z "$as_dir" && as_dir=.
10346 for ac_exec_ext in '' $ac_executable_extensions; do
10347 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10348 ac_cv_prog_ac_ct_FC="$ac_prog"
10349 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10350 break 2
10351 fi
10352 done
10353 done
10354
10355 fi
10356 fi
10357 ac_ct_FC=$ac_cv_prog_ac_ct_FC
10358 if test -n "$ac_ct_FC"; then
10359 echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
10360 echo "${ECHO_T}$ac_ct_FC" >&6
10361 else
10362 echo "$as_me:$LINENO: result: no" >&5
10363 echo "${ECHO_T}no" >&6
10364 fi
10365
10366 test -n "$ac_ct_FC" && break
10367 done
10368
10369 FC=$ac_ct_FC
10370 fi
10371
10372
10373 # Provide some information about the compiler.
10374 echo "$as_me:10374:" \
10375 "checking for Fortran compiler version" >&5
10376 ac_compiler=`set X $ac_compile; echo $2`
10377 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10378 (eval $ac_compiler --version </dev/null >&5) 2>&5
10379 ac_status=$?
10380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10381 (exit $ac_status); }
10382 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10383 (eval $ac_compiler -v </dev/null >&5) 2>&5
10384 ac_status=$?
10385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10386 (exit $ac_status); }
10387 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10388 (eval $ac_compiler -V </dev/null >&5) 2>&5
10389 ac_status=$?
10390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10391 (exit $ac_status); }
10392 rm -f a.out
10393
10394 # If we don't use `.F' as extension, the preprocessor is not run on the
10395 # input file. (Note that this only needs to work for GNU compilers.)
10396 ac_save_ext=$ac_ext
10397 ac_ext=F
10398 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
10399 echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6
10400 if test "${ac_cv_fc_compiler_gnu+set}" = set; then
10401 echo $ECHO_N "(cached) $ECHO_C" >&6
10402 else
10403 cat >conftest.$ac_ext <<_ACEOF
10404 program main
10405 #ifndef __GNUC__
10406 choke me
10407 #endif
10408
10409 end
10410 _ACEOF
10411 rm -f conftest.$ac_objext
10412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10413 (eval $ac_compile) 2>conftest.er1
10414 ac_status=$?
10415 grep -v '^ *+' conftest.er1 >conftest.err
10416 rm -f conftest.er1
10417 cat conftest.err >&5
10418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10419 (exit $ac_status); } &&
10420 { ac_try='test -z "$ac_fc_werror_flag"
10421 || test ! -s conftest.err'
10422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10423 (eval $ac_try) 2>&5
10424 ac_status=$?
10425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10426 (exit $ac_status); }; } &&
10427 { ac_try='test -s conftest.$ac_objext'
10428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10429 (eval $ac_try) 2>&5
10430 ac_status=$?
10431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10432 (exit $ac_status); }; }; then
10433 ac_compiler_gnu=yes
10434 else
10435 echo "$as_me: failed program was:" >&5
10436 sed 's/^/| /' conftest.$ac_ext >&5
10437
10438 ac_compiler_gnu=no
10439 fi
10440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10441 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
10442
10443 fi
10444 echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
10445 echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6
10446 ac_ext=$ac_save_ext
10447 ac_test_FFLAGS=${FCFLAGS+set}
10448 ac_save_FFLAGS=$FCFLAGS
10449 FCFLAGS=
10450 echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
10451 echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6
10452 if test "${ac_cv_prog_fc_g+set}" = set; then
10453 echo $ECHO_N "(cached) $ECHO_C" >&6
10454 else
10455 FCFLAGS=-g
10456 cat >conftest.$ac_ext <<_ACEOF
10457 program main
10458
10459 end
10460 _ACEOF
10461 rm -f conftest.$ac_objext
10462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10463 (eval $ac_compile) 2>conftest.er1
10464 ac_status=$?
10465 grep -v '^ *+' conftest.er1 >conftest.err
10466 rm -f conftest.er1
10467 cat conftest.err >&5
10468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10469 (exit $ac_status); } &&
10470 { ac_try='test -z "$ac_fc_werror_flag"
10471 || test ! -s conftest.err'
10472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10473 (eval $ac_try) 2>&5
10474 ac_status=$?
10475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10476 (exit $ac_status); }; } &&
10477 { ac_try='test -s conftest.$ac_objext'
10478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10479 (eval $ac_try) 2>&5
10480 ac_status=$?
10481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10482 (exit $ac_status); }; }; then
10483 ac_cv_prog_fc_g=yes
10484 else
10485 echo "$as_me: failed program was:" >&5
10486 sed 's/^/| /' conftest.$ac_ext >&5
10487
10488 ac_cv_prog_fc_g=no
10489 fi
10490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10491
10492 fi
10493 echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
10494 echo "${ECHO_T}$ac_cv_prog_fc_g" >&6
10495 if test "$ac_test_FFLAGS" = set; then
10496 FCFLAGS=$ac_save_FFLAGS
10497 elif test $ac_cv_prog_fc_g = yes; then
10498 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
10499 FCFLAGS="-g -O2"
10500 else
10501 FCFLAGS="-g"
10502 fi
10503 else
10504 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
10505 FCFLAGS="-O2"
10506 else
10507 FCFLAGS=
10508 fi
10509 fi
10510
10511 ac_ext=c
10512 ac_cpp='$CPP $CPPFLAGS'
10513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10516
10517 if test -z "$FC" || test "X$FC" = "Xno"; then
10518 _lt_disable_FC=yes
10519 fi
10520
10521
10522
10523 ac_ext=${FC_SRCEXT-f}
10524 ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
10525 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
10526 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
10527
10528
10529 archive_cmds_need_lc_FC=no
10530 allow_undefined_flag_FC=
10531 always_export_symbols_FC=no
10532 archive_expsym_cmds_FC=
10533 export_dynamic_flag_spec_FC=
10534 hardcode_direct_FC=no
10535 hardcode_direct_absolute_FC=no
10536 hardcode_libdir_flag_spec_FC=
10537 hardcode_libdir_flag_spec_ld_FC=
10538 hardcode_libdir_separator_FC=
10539 hardcode_minus_L_FC=no
10540 hardcode_automatic_FC=no
10541 inherit_rpath_FC=no
10542 module_cmds_FC=
10543 module_expsym_cmds_FC=
10544 link_all_deplibs_FC=unknown
10545 old_archive_cmds_FC=$old_archive_cmds
10546 no_undefined_flag_FC=
10547 whole_archive_flag_spec_FC=
10548 enable_shared_with_static_runtimes_FC=no
10549
10550 # Source file extension for fc test sources.
10551 ac_ext=${ac_fc_srcext-f}
10552
10553 # Object file extension for compiled fc test sources.
10554 objext=o
10555 objext_FC=$objext
10556
10557 # No sense in running all these tests if we already determined that
10558 # the FC compiler isn't working. Some variables (like enable_shared)
10559 # are currently assumed to apply to all compilers on this platform,
10560 # and will be corrupted by setting them based on a non-working compiler.
10561 if test "$_lt_disable_FC" != yes; then
10562 # Code to be used in simple compile tests
10563 lt_simple_compile_test_code="\
10564 subroutine t
10565 return
10566 end
10567 "
10568
10569 # Code to be used in simple link tests
10570 lt_simple_link_test_code="\
10571 program t
10572 end
10573 "
10574
10575 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10576
10577
10578
10579
10580
10581
10582 # If no C compiler was specified, use CC.
10583 LTCC=${LTCC-"$CC"}
10584
10585 # If no C compiler flags were specified, use CFLAGS.
10586 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10587
10588 # Allow CC to be a program name with arguments.
10589 compiler=$CC
10590
10591
10592 # save warnings/boilerplate of simple test code
10593 ac_outfile=conftest.$ac_objext
10594 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10595 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10596 _lt_compiler_boilerplate=`cat conftest.err`
10597 $RM conftest*
10598
10599 ac_outfile=conftest.$ac_objext
10600 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10601 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10602 _lt_linker_boilerplate=`cat conftest.err`
10603 $RM conftest*
10604
10605
10606 # Allow CC to be a program name with arguments.
10607 lt_save_CC="$CC"
10608 CC=${FC-"f95"}
10609 compiler=$CC
10610 compiler_FC=$CC
10611 for cc_temp in $compiler""; do
10612 case $cc_temp in
10613 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10614 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10615 \-*) ;;
10616 *) break;;
10617 esac
10618 done
10619 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10620
10621
10622 if test -n "$compiler"; then
10623 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10624 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10625 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10626 echo "${ECHO_T}$can_build_shared" >&6
10627
10628 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10629 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10630 test "$can_build_shared" = "no" && enable_shared=no
10631
10632 # On AIX, shared libraries and static libraries use the same namespace, and
10633 # are all built from PIC.
10634 case $host_os in
10635 aix3*)
10636 test "$enable_shared" = yes && enable_static=no
10637 if test -n "$RANLIB"; then
10638 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10639 postinstall_cmds='$RANLIB $lib'
10640 fi
10641 ;;
10642 aix4* | aix5*)
10643 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10644 test "$enable_shared" = yes && enable_static=no
10645 fi
10646 ;;
10647 esac
10648 echo "$as_me:$LINENO: result: $enable_shared" >&5
10649 echo "${ECHO_T}$enable_shared" >&6
10650
10651 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10652 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10653 # Make sure either enable_shared or enable_static is yes.
10654 test "$enable_shared" = yes || enable_static=yes
10655 echo "$as_me:$LINENO: result: $enable_static" >&5
10656 echo "${ECHO_T}$enable_static" >&6
10657
10658 GCC_FC="$ac_cv_fc_compiler_gnu"
10659 LD_FC="$LD"
10660
10661 ## CAVEAT EMPTOR:
10662 ## There is no encapsulation within the following macros, do not change
10663 ## the running order or otherwise move them around unless you know exactly
10664 ## what you are doing...
10665 # Dependencies to place before and after the object being linked:
10666 predep_objects_FC=
10667 postdep_objects_FC=
10668 predeps_FC=
10669 postdeps_FC=
10670 compiler_lib_search_path_FC=
10671
10672 cat > conftest.$ac_ext <<_LT_EOF
10673 subroutine foo
10674 implicit none
10675 integer a
10676 a=0
10677 return
10678 end
10679 _LT_EOF
10680
10681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10682 (eval $ac_compile) 2>&5
10683 ac_status=$?
10684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10685 (exit $ac_status); }; then
10686 # Parse the compiler output and extract the necessary
10687 # objects, libraries and library flags.
10688
10689 # Sentinel used to keep track of whether or not we are before
10690 # the conftest object file.
10691 pre_test_object_deps_done=no
10692
10693 # The `*' in the case matches for architectures that use `case' in
10694 # $output_verbose_cmd can trigger glob expansion during the loop
10695 # eval without this substitution.
10696 output_verbose_link_cmd=`$ECHO "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
10697
10698 for p in `eval $output_verbose_link_cmd`; do
10699 case $p in
10700
10701 -L* | -R* | -l*)
10702 # Some compilers place space between "-{L,R}" and the path.
10703 # Remove the space.
10704 if test $p = "-L" ||
10705 test $p = "-R"; then
10706 prev=$p
10707 continue
10708 else
10709 prev=
10710 fi
10711
10712 if test "$pre_test_object_deps_done" = no; then
10713 case $p in
10714 -L* | -R*)
10715 # Internal compiler library paths should come after those
10716 # provided the user. The postdeps already come after the
10717 # user supplied libs so there is no need to process them.
10718 if test -z "$compiler_lib_search_path_FC"; then
10719 compiler_lib_search_path_FC="${prev}${p}"
10720 else
10721 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
10722 fi
10723 ;;
10724 # The "-l" case would never come before the object being
10725 # linked, so don't bother handling this case.
10726 esac
10727 else
10728 if test -z "$postdeps_FC"; then
10729 postdeps_FC="${prev}${p}"
10730 else
10731 postdeps_FC="${postdeps_FC} ${prev}${p}"
10732 fi
10733 fi
10734 ;;
10735
10736 *.$objext)
10737 # This assumes that the test object file only shows up
10738 # once in the compiler output.
10739 if test "$p" = "conftest.$objext"; then
10740 pre_test_object_deps_done=yes
10741 continue
10742 fi
10743
10744 if test "$pre_test_object_deps_done" = no; then
10745 if test -z "$predep_objects_FC"; then
10746 predep_objects_FC="$p"
10747 else
10748 predep_objects_FC="$predep_objects_FC $p"
10749 fi
10750 else
10751 if test -z "$postdep_objects_FC"; then
10752 postdep_objects_FC="$p"
10753 else
10754 postdep_objects_FC="$postdep_objects_FC $p"
10755 fi
10756 fi
10757 ;;
10758
10759 *) ;; # Ignore the rest.
10760
10761 esac
10762 done
10763
10764 # Clean up.
10765 rm -f a.out a.exe
10766 else
10767 echo "libtool.m4: error: problem compiling FC test program"
10768 fi
10769
10770 $RM -f confest.$objext
10771
10772 # PORTME: override above test on systems where it is broken
10773
10774
10775 case " $postdeps_FC " in
10776 *" -lc "*) archive_cmds_need_lc_FC=no ;;
10777 esac
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804 lt_prog_compiler_wl_FC=
10805 lt_prog_compiler_pic_FC=
10806 lt_prog_compiler_static_FC=
10807
10808 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10809 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10810
10811 if test "$GCC" = yes; then
10812 lt_prog_compiler_wl_FC='-Wl,'
10813 lt_prog_compiler_static_FC='-static'
10814
10815 case $host_os in
10816 aix*)
10817 # All AIX code is PIC.
10818 if test "$host_cpu" = ia64; then
10819 # AIX 5 now supports IA64 processor
10820 lt_prog_compiler_static_FC='-Bstatic'
10821 fi
10822 ;;
10823
10824 amigaos*)
10825 if test "$host_cpu" = m68k; then
10826 # FIXME: we need at least 68020 code to build shared libraries, but
10827 # adding the `-m68020' flag to GCC prevents building anything better,
10828 # like `-m68040'.
10829 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
10830 fi
10831 ;;
10832
10833 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10834 # PIC is the default for these OSes.
10835 ;;
10836
10837 mingw* | cygwin* | pw32* | os2*)
10838 # This hack is so that the source file can tell whether it is being
10839 # built for inclusion in a dll (and should export symbols for example).
10840 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10841 # (--disable-auto-import) libraries
10842 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
10843 ;;
10844
10845 darwin* | rhapsody*)
10846 # PIC is the default on this platform
10847 # Common symbols not allowed in MH_DYLIB files
10848 lt_prog_compiler_pic_FC='-fno-common'
10849 ;;
10850
10851 hpux*)
10852 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10853 # not for PA HP-UX.
10854 case $host_cpu in
10855 hppa*64*|ia64*)
10856 # +Z the default
10857 ;;
10858 *)
10859 lt_prog_compiler_pic_FC='-fPIC'
10860 ;;
10861 esac
10862 ;;
10863
10864 interix[3-9]*)
10865 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10866 # Instead, we relocate shared libraries at runtime.
10867 ;;
10868
10869 msdosdjgpp*)
10870 # Just because we use GCC doesn't mean we suddenly get shared libraries
10871 # on systems that don't support them.
10872 lt_prog_compiler_can_build_shared_FC=no
10873 enable_shared=no
10874 ;;
10875
10876 *nto* | *qnx*)
10877 # QNX uses GNU C++, but need to define -shared option too, otherwise
10878 # it will coredump.
10879 lt_prog_compiler_pic_FC='-fPIC -shared'
10880 ;;
10881
10882 sysv4*MP*)
10883 if test -d /usr/nec; then
10884 lt_prog_compiler_pic_FC=-Kconform_pic
10885 fi
10886 ;;
10887
10888 *)
10889 lt_prog_compiler_pic_FC='-fPIC'
10890 ;;
10891 esac
10892 else
10893 # PORTME Check for flag to pass linker flags through the system compiler.
10894 case $host_os in
10895 aix*)
10896 lt_prog_compiler_wl_FC='-Wl,'
10897 if test "$host_cpu" = ia64; then
10898 # AIX 5 now supports IA64 processor
10899 lt_prog_compiler_static_FC='-Bstatic'
10900 else
10901 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
10902 fi
10903 ;;
10904 darwin*)
10905 # PIC is the default on this platform
10906 # Common symbols not allowed in MH_DYLIB files
10907 case $cc_basename in
10908 xlc*)
10909 lt_prog_compiler_pic_FC='-qnocommon'
10910 lt_prog_compiler_wl_FC='-Wl,'
10911 ;;
10912 esac
10913 ;;
10914
10915 mingw* | cygwin* | pw32* | os2*)
10916 # This hack is so that the source file can tell whether it is being
10917 # built for inclusion in a dll (and should export symbols for example).
10918 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
10919 ;;
10920
10921 hpux9* | hpux10* | hpux11*)
10922 lt_prog_compiler_wl_FC='-Wl,'
10923 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10924 # not for PA HP-UX.
10925 case $host_cpu in
10926 hppa*64*|ia64*)
10927 # +Z the default
10928 ;;
10929 *)
10930 lt_prog_compiler_pic_FC='+Z'
10931 ;;
10932 esac
10933 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10934 lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
10935 ;;
10936
10937 irix5* | irix6* | nonstopux*)
10938 lt_prog_compiler_wl_FC='-Wl,'
10939 # PIC (with -KPIC) is the default.
10940 lt_prog_compiler_static_FC='-non_shared'
10941 ;;
10942
10943 linux* | k*bsd*-gnu)
10944 case $cc_basename in
10945 icc* | ecc*)
10946 lt_prog_compiler_wl_FC='-Wl,'
10947 lt_prog_compiler_pic_FC='-KPIC'
10948 lt_prog_compiler_static_FC='-static'
10949 ;;
10950 pgcc* | pgf77* | pgf90* | pgf95*)
10951 # Portland Group compilers (*not* the Pentium gcc compiler,
10952 # which looks to be a dead project)
10953 lt_prog_compiler_wl_FC='-Wl,'
10954 lt_prog_compiler_pic_FC='-fpic'
10955 lt_prog_compiler_static_FC='-Bstatic'
10956 ;;
10957 ccc*)
10958 lt_prog_compiler_wl_FC='-Wl,'
10959 # All Alpha code is PIC.
10960 lt_prog_compiler_static_FC='-non_shared'
10961 ;;
10962 *)
10963 case `$CC -V 2>&1 | sed 5q` in
10964 *Sun\ C*)
10965 # Sun C 5.9
10966 lt_prog_compiler_pic_FC='-KPIC'
10967 lt_prog_compiler_static_FC='-Bstatic'
10968 lt_prog_compiler_wl_FC='-Wl,'
10969 ;;
10970 *Sun\ F*)
10971 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10972 lt_prog_compiler_pic_FC='-KPIC'
10973 lt_prog_compiler_static_FC='-Bstatic'
10974 lt_prog_compiler_wl_FC=''
10975 ;;
10976 esac
10977 ;;
10978 esac
10979 ;;
10980
10981 newsos6)
10982 lt_prog_compiler_pic_FC='-KPIC'
10983 lt_prog_compiler_static_FC='-Bstatic'
10984 ;;
10985
10986 *nto* | *qnx*)
10987 # QNX uses GNU C++, but need to define -shared option too, otherwise
10988 # it will coredump.
10989 lt_prog_compiler_pic_FC='-fPIC -shared'
10990 ;;
10991
10992 osf3* | osf4* | osf5*)
10993 lt_prog_compiler_wl_FC='-Wl,'
10994 # All OSF/1 code is PIC.
10995 lt_prog_compiler_static_FC='-non_shared'
10996 ;;
10997
10998 rdos*)
10999 lt_prog_compiler_static_FC='-non_shared'
11000 ;;
11001
11002 solaris*)
11003 lt_prog_compiler_pic_FC='-KPIC'
11004 lt_prog_compiler_static_FC='-Bstatic'
11005 case $cc_basename in
11006 f77* | f90* | f95*)
11007 lt_prog_compiler_wl_FC='-Qoption ld ';;
11008 *)
11009 lt_prog_compiler_wl_FC='-Wl,';;
11010 esac
11011 ;;
11012
11013 sunos4*)
11014 lt_prog_compiler_wl_FC='-Qoption ld '
11015 lt_prog_compiler_pic_FC='-PIC'
11016 lt_prog_compiler_static_FC='-Bstatic'
11017 ;;
11018
11019 sysv4 | sysv4.2uw2* | sysv4.3*)
11020 lt_prog_compiler_wl_FC='-Wl,'
11021 lt_prog_compiler_pic_FC='-KPIC'
11022 lt_prog_compiler_static_FC='-Bstatic'
11023 ;;
11024
11025 sysv4*MP*)
11026 if test -d /usr/nec ;then
11027 lt_prog_compiler_pic_FC='-Kconform_pic'
11028 lt_prog_compiler_static_FC='-Bstatic'
11029 fi
11030 ;;
11031
11032 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11033 lt_prog_compiler_wl_FC='-Wl,'
11034 lt_prog_compiler_pic_FC='-KPIC'
11035 lt_prog_compiler_static_FC='-Bstatic'
11036 ;;
11037
11038 unicos*)
11039 lt_prog_compiler_wl_FC='-Wl,'
11040 lt_prog_compiler_can_build_shared_FC=no
11041 ;;
11042
11043 uts4*)
11044 lt_prog_compiler_pic_FC='-pic'
11045 lt_prog_compiler_static_FC='-Bstatic'
11046 ;;
11047
11048 *)
11049 lt_prog_compiler_can_build_shared_FC=no
11050 ;;
11051 esac
11052 fi
11053
11054 case $host_os in
11055 # For platforms which do not support PIC, -DPIC is meaningless:
11056 *djgpp*)
11057 lt_prog_compiler_pic_FC=
11058 ;;
11059 *)
11060 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
11061 ;;
11062 esac
11063 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_FC" >&5
11064 echo "${ECHO_T}$lt_prog_compiler_pic_FC" >&6
11065
11066
11067
11068 #
11069 # Check to make sure the PIC flag actually works.
11070 #
11071 if test -n "$lt_prog_compiler_pic_FC"; then
11072 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
11073 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... $ECHO_C" >&6
11074 if test "${lt_prog_compiler_pic_works_FC+set}" = set; then
11075 echo $ECHO_N "(cached) $ECHO_C" >&6
11076 else
11077 lt_prog_compiler_pic_works_FC=no
11078 ac_outfile=conftest.$ac_objext
11079 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11080 lt_compiler_flag="$lt_prog_compiler_pic_FC"
11081 # Insert the option either (1) after the last *FLAGS variable, or
11082 # (2) before a word containing "conftest.", or (3) at the end.
11083 # Note that $ac_compile itself does not contain backslashes and begins
11084 # with a dollar sign (not a hyphen), so the echo should work correctly.
11085 # The option is referenced via a variable to avoid confusing sed.
11086 lt_compile=`echo "$ac_compile" | $SED \
11087 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11088 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11089 -e 's:$: $lt_compiler_flag:'`
11090 (eval echo "\"\$as_me:11090: $lt_compile\"" >&5)
11091 (eval "$lt_compile" 2>conftest.err)
11092 ac_status=$?
11093 cat conftest.err >&5
11094 echo "$as_me:11094: \$? = $ac_status" >&5
11095 if (exit $ac_status) && test -s "$ac_outfile"; then
11096 # The compiler can only warn and ignore the option if not recognized
11097 # So say no if there are warnings other than the usual output.
11098 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11099 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11100 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11101 lt_prog_compiler_pic_works_FC=yes
11102 fi
11103 fi
11104 $RM conftest*
11105
11106 fi
11107 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_FC" >&5
11108 echo "${ECHO_T}$lt_prog_compiler_pic_works_FC" >&6
11109
11110 if test x"$lt_prog_compiler_pic_works_FC" = xyes; then
11111 case $lt_prog_compiler_pic_FC in
11112 "" | " "*) ;;
11113 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
11114 esac
11115 else
11116 lt_prog_compiler_pic_FC=
11117 lt_prog_compiler_can_build_shared_FC=no
11118 fi
11119
11120 fi
11121
11122
11123
11124 #
11125 # Check to make sure the static flag actually works.
11126 #
11127 wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
11128 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11129 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11130 if test "${lt_prog_compiler_static_works_FC+set}" = set; then
11131 echo $ECHO_N "(cached) $ECHO_C" >&6
11132 else
11133 lt_prog_compiler_static_works_FC=no
11134 save_LDFLAGS="$LDFLAGS"
11135 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11136 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11137 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11138 # The linker can only warn and ignore the option if not recognized
11139 # So say no if there are warnings
11140 if test -s conftest.err; then
11141 # Append any errors to the config.log.
11142 cat conftest.err 1>&5
11143 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11144 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11145 if diff conftest.exp conftest.er2 >/dev/null; then
11146 lt_prog_compiler_static_works_FC=yes
11147 fi
11148 else
11149 lt_prog_compiler_static_works_FC=yes
11150 fi
11151 fi
11152 $RM conftest*
11153 LDFLAGS="$save_LDFLAGS"
11154
11155 fi
11156 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_FC" >&5
11157 echo "${ECHO_T}$lt_prog_compiler_static_works_FC" >&6
11158
11159 if test x"$lt_prog_compiler_static_works_FC" = xyes; then
11160 :
11161 else
11162 lt_prog_compiler_static_FC=
11163 fi
11164
11165
11166
11167
11168 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11169 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11170 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then
11171 echo $ECHO_N "(cached) $ECHO_C" >&6
11172 else
11173 lt_cv_prog_compiler_c_o_FC=no
11174 $RM -r conftest 2>/dev/null
11175 mkdir conftest
11176 cd conftest
11177 mkdir out
11178 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11179
11180 lt_compiler_flag="-o out/conftest2.$ac_objext"
11181 # Insert the option either (1) after the last *FLAGS variable, or
11182 # (2) before a word containing "conftest.", or (3) at the end.
11183 # Note that $ac_compile itself does not contain backslashes and begins
11184 # with a dollar sign (not a hyphen), so the echo should work correctly.
11185 lt_compile=`echo "$ac_compile" | $SED \
11186 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11187 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11188 -e 's:$: $lt_compiler_flag:'`
11189 (eval echo "\"\$as_me:11189: $lt_compile\"" >&5)
11190 (eval "$lt_compile" 2>out/conftest.err)
11191 ac_status=$?
11192 cat out/conftest.err >&5
11193 echo "$as_me:11193: \$? = $ac_status" >&5
11194 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11195 then
11196 # The compiler can only warn and ignore the option if not recognized
11197 # So say no if there are warnings
11198 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11199 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11200 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11201 lt_cv_prog_compiler_c_o_FC=yes
11202 fi
11203 fi
11204 chmod u+w . 2>&5
11205 $RM conftest*
11206 # SGI C++ compiler will create directory out/ii_files/ for
11207 # template instantiation
11208 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11209 $RM out/* && rmdir out
11210 cd ..
11211 $RM -r conftest
11212 $RM conftest*
11213
11214 fi
11215 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_FC" >&5
11216 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_FC" >&6
11217
11218
11219
11220 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11221 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11222 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then
11223 echo $ECHO_N "(cached) $ECHO_C" >&6
11224 else
11225 lt_cv_prog_compiler_c_o_FC=no
11226 $RM -r conftest 2>/dev/null
11227 mkdir conftest
11228 cd conftest
11229 mkdir out
11230 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11231
11232 lt_compiler_flag="-o out/conftest2.$ac_objext"
11233 # Insert the option either (1) after the last *FLAGS variable, or
11234 # (2) before a word containing "conftest.", or (3) at the end.
11235 # Note that $ac_compile itself does not contain backslashes and begins
11236 # with a dollar sign (not a hyphen), so the echo should work correctly.
11237 lt_compile=`echo "$ac_compile" | $SED \
11238 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11239 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11240 -e 's:$: $lt_compiler_flag:'`
11241 (eval echo "\"\$as_me:11241: $lt_compile\"" >&5)
11242 (eval "$lt_compile" 2>out/conftest.err)
11243 ac_status=$?
11244 cat out/conftest.err >&5
11245 echo "$as_me:11245: \$? = $ac_status" >&5
11246 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11247 then
11248 # The compiler can only warn and ignore the option if not recognized
11249 # So say no if there are warnings
11250 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11251 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11252 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11253 lt_cv_prog_compiler_c_o_FC=yes
11254 fi
11255 fi
11256 chmod u+w . 2>&5
11257 $RM conftest*
11258 # SGI C++ compiler will create directory out/ii_files/ for
11259 # template instantiation
11260 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11261 $RM out/* && rmdir out
11262 cd ..
11263 $RM -r conftest
11264 $RM conftest*
11265
11266 fi
11267 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_FC" >&5
11268 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_FC" >&6
11269
11270
11271
11272
11273 hard_links="nottested"
11274 if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
11275 # do not overwrite the value of need_locks provided by the user
11276 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11277 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11278 hard_links=yes
11279 $RM conftest*
11280 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11281 touch conftest.a
11282 ln conftest.a conftest.b 2>&5 || hard_links=no
11283 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11284 echo "$as_me:$LINENO: result: $hard_links" >&5
11285 echo "${ECHO_T}$hard_links" >&6
11286 if test "$hard_links" = no; then
11287 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11288 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11289 need_locks=warn
11290 fi
11291 else
11292 need_locks=no
11293 fi
11294
11295
11296
11297 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11298 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11299
11300 runpath_var=
11301 allow_undefined_flag_FC=
11302 always_export_symbols_FC=no
11303 archive_cmds_FC=
11304 archive_expsym_cmds_FC=
11305 compiler_needs_object_FC=no
11306 enable_shared_with_static_runtimes_FC=no
11307 export_dynamic_flag_spec_FC=
11308 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11309 hardcode_automatic_FC=no
11310 hardcode_direct_FC=no
11311 hardcode_direct_absolute_FC=no
11312 hardcode_libdir_flag_spec_FC=
11313 hardcode_libdir_flag_spec_ld_FC=
11314 hardcode_libdir_separator_FC=
11315 hardcode_minus_L_FC=no
11316 hardcode_shlibpath_var_FC=unsupported
11317 inherit_rpath_FC=no
11318 link_all_deplibs_FC=unknown
11319 module_cmds_FC=
11320 module_expsym_cmds_FC=
11321 old_archive_from_new_cmds_FC=
11322 old_archive_from_expsyms_cmds_FC=
11323 thread_safe_flag_spec_FC=
11324 whole_archive_flag_spec_FC=
11325 # include_expsyms should be a list of space-separated symbols to be *always*
11326 # included in the symbol list
11327 include_expsyms_FC=
11328 # exclude_expsyms can be an extended regexp of symbols to exclude
11329 # it will be wrapped by ` (' and `)$', so one must not match beginning or
11330 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11331 # as well as any symbol that contains `d'.
11332 exclude_expsyms_FC="_GLOBAL_OFFSET_TABLE_"
11333 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11334 # platforms (ab)use it in PIC code, but their linkers get confused if
11335 # the symbol is explicitly referenced. Since portable code cannot
11336 # rely on this symbol name, it's probably fine to never include it in
11337 # preloaded symbol tables.
11338 extract_expsyms_cmds=
11339
11340 case $host_os in
11341 cygwin* | mingw* | pw32*)
11342 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11343 # When not using gcc, we currently assume that we are using
11344 # Microsoft Visual C++.
11345 if test "$GCC" != yes; then
11346 with_gnu_ld=no
11347 fi
11348 ;;
11349 interix*)
11350 # we just hope/assume this is gcc and not c89 (= MSVC++)
11351 with_gnu_ld=yes
11352 ;;
11353 openbsd*)
11354 with_gnu_ld=no
11355 ;;
11356 esac
11357
11358 ld_shlibs_FC=yes
11359 if test "$with_gnu_ld" = yes; then
11360 # If archive_cmds runs LD, not CC, wlarc should be empty
11361 wlarc='${wl}'
11362
11363 # Set some defaults for GNU ld with shared library support. These
11364 # are reset later if shared libraries are not supported. Putting them
11365 # here allows them to be overridden if necessary.
11366 runpath_var=LD_RUN_PATH
11367 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
11368 export_dynamic_flag_spec_FC='${wl}--export-dynamic'
11369 # ancient GNU ld didn't support --whole-archive et. al.
11370 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11371 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11372 else
11373 whole_archive_flag_spec_FC=
11374 fi
11375 supports_anon_versioning=no
11376 case `$LD -v 2>&1` in
11377 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11378 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11379 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11380 *\ 2.11.*) ;; # other 2.11 versions
11381 *) supports_anon_versioning=yes ;;
11382 esac
11383
11384 # See if GNU ld supports shared libraries.
11385 case $host_os in
11386 aix3* | aix4* | aix5*)
11387 # On AIX/PPC, the GNU linker is very broken
11388 if test "$host_cpu" != ia64; then
11389 ld_shlibs_FC=no
11390 cat <<_LT_EOF 1>&2
11391
11392 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
11393 *** to be unable to reliably create shared libraries on AIX.
11394 *** Therefore, libtool is disabling shared libraries support. If you
11395 *** really care for shared libraries, you may want to modify your PATH
11396 *** so that a non-GNU linker is found, and then restart.
11397
11398 _LT_EOF
11399 fi
11400 ;;
11401
11402 amigaos*)
11403 if test "$host_cpu" = m68k; then
11404 archive_cmds_FC='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
11405 hardcode_libdir_flag_spec_FC='-L$libdir'
11406 hardcode_minus_L_FC=yes
11407 fi
11408
11409 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
11410 # that the semantics of dynamic libraries on AmigaOS, at least up
11411 # to version 4, is to share data among multiple programs linked
11412 # with the same dynamic library. Since this doesn't match the
11413 # behavior of shared libraries on other platforms, we can't use
11414 # them.
11415 ld_shlibs_FC=no
11416 ;;
11417
11418 beos*)
11419 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11420 allow_undefined_flag_FC=unsupported
11421 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11422 # support --undefined. This deserves some investigation. FIXME
11423 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11424 else
11425 ld_shlibs_FC=no
11426 fi
11427 ;;
11428
11429 cygwin* | mingw* | pw32*)
11430 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
11431 # as there is no search path for DLLs.
11432 hardcode_libdir_flag_spec_FC='-L$libdir'
11433 allow_undefined_flag_FC=unsupported
11434 always_export_symbols_FC=no
11435 enable_shared_with_static_runtimes_FC=yes
11436 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11437
11438 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11439 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11440 # If the export-symbols file already is a .def file (1st line
11441 # is EXPORTS), use it as is; otherwise, prepend...
11442 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11443 cp $export_symbols $output_objdir/$soname.def;
11444 else
11445 echo EXPORTS > $output_objdir/$soname.def;
11446 cat $export_symbols >> $output_objdir/$soname.def;
11447 fi~
11448 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11449 else
11450 ld_shlibs_FC=no
11451 fi
11452 ;;
11453
11454 interix[3-9]*)
11455 hardcode_direct_FC=no
11456 hardcode_shlibpath_var_FC=no
11457 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
11458 export_dynamic_flag_spec_FC='${wl}-E'
11459 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11460 # Instead, shared libraries are loaded at an image base (0x10000000 by
11461 # default) and relocated if they conflict, which is a slow very memory
11462 # consuming and fragmenting process. To avoid this, we pick a random,
11463 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11464 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11465 archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11466 archive_expsym_cmds_FC='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11467 ;;
11468
11469 gnu* | linux* | tpf* | k*bsd*-gnu)
11470 tmp_diet=no
11471 if test "$host_os" = linux-dietlibc; then
11472 case $cc_basename in
11473 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11474 esac
11475 fi
11476 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11477 && test "$tmp_diet" = no
11478 then
11479 tmp_addflag=
11480 case $cc_basename,$host_cpu in
11481 pgcc*) # Portland Group C compiler
11482 whole_archive_flag_spec_FC='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
11483 tmp_addflag=' $pic_flag'
11484 ;;
11485 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
11486 whole_archive_flag_spec_FC='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
11487 tmp_addflag=' $pic_flag -Mnomain' ;;
11488 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11489 tmp_addflag=' -i_dynamic' ;;
11490 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11491 tmp_addflag=' -i_dynamic -nofor_main' ;;
11492 ifc* | ifort*) # Intel Fortran compiler
11493 tmp_addflag=' -nofor_main' ;;
11494 esac
11495 case `$CC -V 2>&1 | sed 5q` in
11496 *Sun\ C*) # Sun C 5.9
11497 whole_archive_flag_spec_FC='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
11498 compiler_needs_object_FC=yes
11499 tmp_sharedflag='-G' ;;
11500 *Sun\ F*) # Sun Fortran 8.3
11501 tmp_sharedflag='-G' ;;
11502 *)
11503 tmp_sharedflag='-shared' ;;
11504 esac
11505 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11506
11507 if test "x$supports_anon_versioning" = xyes; then
11508 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
11509 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11510 echo "local: *; };" >> $output_objdir/$libname.ver~
11511 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11512 fi
11513 else
11514 ld_shlibs_FC=no
11515 fi
11516 ;;
11517
11518 netbsd*)
11519 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11520 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11521 wlarc=
11522 else
11523 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11524 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11525 fi
11526 ;;
11527
11528 solaris*)
11529 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11530 ld_shlibs_FC=no
11531 cat <<_LT_EOF 1>&2
11532
11533 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11534 *** create shared libraries on Solaris systems. Therefore, libtool
11535 *** is disabling shared libraries support. We urge you to upgrade GNU
11536 *** binutils to release 2.9.1 or newer. Another option is to modify
11537 *** your PATH or compiler configuration so that the native linker is
11538 *** used, and then restart.
11539
11540 _LT_EOF
11541 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11542 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11543 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11544 else
11545 ld_shlibs_FC=no
11546 fi
11547 ;;
11548
11549 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11550 case `$LD -v 2>&1` in
11551 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11552 ld_shlibs_FC=no
11553 cat <<_LT_EOF 1>&2
11554
11555 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11556 *** reliably create shared libraries on SCO systems. Therefore, libtool
11557 *** is disabling shared libraries support. We urge you to upgrade GNU
11558 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11559 *** your PATH or compiler configuration so that the native linker is
11560 *** used, and then restart.
11561
11562 _LT_EOF
11563 ;;
11564 *)
11565 # For security reasons, it is highly recommended that you always
11566 # use absolute paths for naming shared libraries, and exclude the
11567 # DT_RUNPATH tag from executables and libraries. But doing so
11568 # requires that you compile everything twice, which is a pain.
11569 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11570 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
11571 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11572 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11573 else
11574 ld_shlibs_FC=no
11575 fi
11576 ;;
11577 esac
11578 ;;
11579
11580 sunos4*)
11581 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11582 wlarc=
11583 hardcode_direct_FC=yes
11584 hardcode_shlibpath_var_FC=no
11585 ;;
11586
11587 *)
11588 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11589 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11590 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11591 else
11592 ld_shlibs_FC=no
11593 fi
11594 ;;
11595 esac
11596
11597 if test "$ld_shlibs_FC" = no; then
11598 runpath_var=
11599 hardcode_libdir_flag_spec_FC=
11600 export_dynamic_flag_spec_FC=
11601 whole_archive_flag_spec_FC=
11602 fi
11603 else
11604 # PORTME fill in a description of your system's linker (not GNU ld)
11605 case $host_os in
11606 aix3*)
11607 allow_undefined_flag_FC=unsupported
11608 always_export_symbols_FC=yes
11609 archive_expsym_cmds_FC='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
11610 # Note: this linker hardcodes the directories in LIBPATH if there
11611 # are no directories specified by -L.
11612 hardcode_minus_L_FC=yes
11613 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11614 # Neither direct hardcoding nor static linking is supported with a
11615 # broken collect2.
11616 hardcode_direct_FC=unsupported
11617 fi
11618 ;;
11619
11620 aix4* | aix5*)
11621 if test "$host_cpu" = ia64; then
11622 # On IA64, the linker does run time linking by default, so we don't
11623 # have to do anything special.
11624 aix_use_runtimelinking=no
11625 exp_sym_flag='-Bexport'
11626 no_entry_flag=""
11627 else
11628 # If we're using GNU nm, then we don't want the "-C" option.
11629 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11630 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11631 export_symbols_cmds_FC='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11632 else
11633 export_symbols_cmds_FC='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11634 fi
11635 aix_use_runtimelinking=no
11636
11637 # Test if we are trying to use run time linking or normal
11638 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11639 # need to do runtime linking.
11640 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11641 for ld_flag in $LDFLAGS; do
11642 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11643 aix_use_runtimelinking=yes
11644 break
11645 fi
11646 done
11647 ;;
11648 esac
11649
11650 exp_sym_flag='-bexport'
11651 no_entry_flag='-bnoentry'
11652 fi
11653
11654 # When large executables or shared objects are built, AIX ld can
11655 # have problems creating the table of contents. If linking a library
11656 # or program results in "error TOC overflow" add -mminimal-toc to
11657 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11658 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11659
11660 archive_cmds_FC=''
11661 hardcode_direct_FC=yes
11662 hardcode_direct_absolute_FC=yes
11663 hardcode_libdir_separator_FC=':'
11664 link_all_deplibs_FC=yes
11665 file_list_spec_FC='${wl}-f,'
11666
11667 if test "$GCC" = yes; then
11668 case $host_os in aix4.[012]|aix4.[012].*)
11669 # We only want to do this on AIX 4.2 and lower, the check
11670 # below for broken collect2 doesn't work under 4.3+
11671 collect2name=`${CC} -print-prog-name=collect2`
11672 if test -f "$collect2name" &&
11673 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11674 then
11675 # We have reworked collect2
11676 :
11677 else
11678 # We have old collect2
11679 hardcode_direct_FC=unsupported
11680 # It fails to find uninstalled libraries when the uninstalled
11681 # path is not listed in the libpath. Setting hardcode_minus_L
11682 # to unsupported forces relinking
11683 hardcode_minus_L_FC=yes
11684 hardcode_libdir_flag_spec_FC='-L$libdir'
11685 hardcode_libdir_separator_FC=
11686 fi
11687 ;;
11688 esac
11689 shared_flag='-shared'
11690 if test "$aix_use_runtimelinking" = yes; then
11691 shared_flag="$shared_flag "'${wl}-G'
11692 fi
11693 else
11694 # not using gcc
11695 if test "$host_cpu" = ia64; then
11696 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11697 # chokes on -Wl,-G. The following line is correct:
11698 shared_flag='-G'
11699 else
11700 if test "$aix_use_runtimelinking" = yes; then
11701 shared_flag='${wl}-G'
11702 else
11703 shared_flag='${wl}-bM:SRE'
11704 fi
11705 fi
11706 fi
11707
11708 # It seems that -bexpall does not export symbols beginning with
11709 # underscore (_), so it is better to generate a list of symbols to export.
11710 always_export_symbols_FC=yes
11711 if test "$aix_use_runtimelinking" = yes; then
11712 # Warning - without using the other runtime loading flags (-brtl),
11713 # -berok will link without error, but may produce a broken library.
11714 allow_undefined_flag_FC='-berok'
11715 # Determine the default libpath from the value encoded in an
11716 # empty executable.
11717 cat >conftest.$ac_ext <<_ACEOF
11718 program main
11719
11720 end
11721 _ACEOF
11722 rm -f conftest.$ac_objext conftest$ac_exeext
11723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11724 (eval $ac_link) 2>conftest.er1
11725 ac_status=$?
11726 grep -v '^ *+' conftest.er1 >conftest.err
11727 rm -f conftest.er1
11728 cat conftest.err >&5
11729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11730 (exit $ac_status); } &&
11731 { ac_try='test -z "$ac_fc_werror_flag"
11732 || test ! -s conftest.err'
11733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11734 (eval $ac_try) 2>&5
11735 ac_status=$?
11736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737 (exit $ac_status); }; } &&
11738 { ac_try='test -s conftest$ac_exeext'
11739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11740 (eval $ac_try) 2>&5
11741 ac_status=$?
11742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743 (exit $ac_status); }; }; then
11744
11745 lt_aix_libpath_sed='
11746 /Import File Strings/,/^$/ {
11747 /^0/ {
11748 s/^0 *\(.*\)$/\1/
11749 p
11750 }
11751 }'
11752 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11753 # Check for a 64-bit object if we didn't find anything.
11754 if test -z "$aix_libpath"; then
11755 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11756 fi
11757 else
11758 echo "$as_me: failed program was:" >&5
11759 sed 's/^/| /' conftest.$ac_ext >&5
11760
11761 fi
11762 rm -f conftest.err conftest.$ac_objext \
11763 conftest$ac_exeext conftest.$ac_ext
11764 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11765
11766 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
11767 archive_expsym_cmds_FC='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11768 else
11769 if test "$host_cpu" = ia64; then
11770 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
11771 allow_undefined_flag_FC="-z nodefs"
11772 archive_expsym_cmds_FC="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
11773 else
11774 # Determine the default libpath from the value encoded in an
11775 # empty executable.
11776 cat >conftest.$ac_ext <<_ACEOF
11777 program main
11778
11779 end
11780 _ACEOF
11781 rm -f conftest.$ac_objext conftest$ac_exeext
11782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11783 (eval $ac_link) 2>conftest.er1
11784 ac_status=$?
11785 grep -v '^ *+' conftest.er1 >conftest.err
11786 rm -f conftest.er1
11787 cat conftest.err >&5
11788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789 (exit $ac_status); } &&
11790 { ac_try='test -z "$ac_fc_werror_flag"
11791 || test ! -s conftest.err'
11792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11793 (eval $ac_try) 2>&5
11794 ac_status=$?
11795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11796 (exit $ac_status); }; } &&
11797 { ac_try='test -s conftest$ac_exeext'
11798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11799 (eval $ac_try) 2>&5
11800 ac_status=$?
11801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11802 (exit $ac_status); }; }; then
11803
11804 lt_aix_libpath_sed='
11805 /Import File Strings/,/^$/ {
11806 /^0/ {
11807 s/^0 *\(.*\)$/\1/
11808 p
11809 }
11810 }'
11811 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11812 # Check for a 64-bit object if we didn't find anything.
11813 if test -z "$aix_libpath"; then
11814 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11815 fi
11816 else
11817 echo "$as_me: failed program was:" >&5
11818 sed 's/^/| /' conftest.$ac_ext >&5
11819
11820 fi
11821 rm -f conftest.err conftest.$ac_objext \
11822 conftest$ac_exeext conftest.$ac_ext
11823 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11824
11825 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
11826 # Warning - without using the other run time loading flags,
11827 # -berok will link without error, but may produce a broken library.
11828 no_undefined_flag_FC=' ${wl}-bernotok'
11829 allow_undefined_flag_FC=' ${wl}-berok'
11830 # Exported symbols can be pulled into shared objects from archives
11831 whole_archive_flag_spec_FC='$convenience'
11832 archive_cmds_need_lc_FC=yes
11833 # This is similar to how AIX traditionally builds its shared libraries.
11834 archive_expsym_cmds_FC="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11835 fi
11836 fi
11837 ;;
11838
11839 amigaos*)
11840 if test "$host_cpu" = m68k; then
11841 archive_cmds_FC='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
11842 hardcode_libdir_flag_spec_FC='-L$libdir'
11843 hardcode_minus_L_FC=yes
11844 fi
11845 # see comment about different semantics on the GNU ld section
11846 ld_shlibs_FC=no
11847 ;;
11848
11849 bsdi[45]*)
11850 export_dynamic_flag_spec_FC=-rdynamic
11851 ;;
11852
11853 cygwin* | mingw* | pw32*)
11854 # When not using gcc, we currently assume that we are using
11855 # Microsoft Visual C++.
11856 # hardcode_libdir_flag_spec is actually meaningless, as there is
11857 # no search path for DLLs.
11858 hardcode_libdir_flag_spec_FC=' '
11859 allow_undefined_flag_FC=unsupported
11860 # Tell ltmain to make .lib files, not .a files.
11861 libext=lib
11862 # Tell ltmain to make .dll files, not .so files.
11863 shrext_cmds=".dll"
11864 # FIXME: Setting linknames here is a bad hack.
11865 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
11866 # The linker will automatically build a .lib file if we build a DLL.
11867 old_archive_from_new_cmds_FC='true'
11868 # FIXME: Should let the user specify the lib program.
11869 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
11870 fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
11871 enable_shared_with_static_runtimes_FC=yes
11872 ;;
11873
11874 darwin* | rhapsody*)
11875 case $host_os in
11876 rhapsody* | darwin1.[012])
11877 allow_undefined_flag_FC='${wl}-undefined ${wl}suppress'
11878 ;;
11879 *) # Darwin 1.3 on
11880 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
11881 10.[012])
11882 allow_undefined_flag_FC='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11883 ;;
11884 10.*)
11885 allow_undefined_flag_FC='${wl}-undefined ${wl}dynamic_lookup'
11886 ;;
11887 esac
11888 ;;
11889 esac
11890 archive_cmds_need_lc_FC=no
11891 hardcode_direct_FC=no
11892 hardcode_automatic_FC=yes
11893 hardcode_shlibpath_var_FC=unsupported
11894 whole_archive_flag_spec_FC=''
11895 link_all_deplibs_FC=yes
11896 if test "$GCC" = yes ; then
11897 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
11898 echo $ECHO_N "(cached) $ECHO_C" >&6
11899 else
11900 lt_cv_apple_cc_single_mod=no
11901 if test -z "${LT_MULTI_MODULE}"; then
11902 # By default we will add the -single_module flag. You can override
11903 # by either setting the environment variable LT_MULTI_MODULE
11904 # non-empty at configure time, or by adding -multi-module to the
11905 # link flags.
11906 echo "int foo(void){return 1;}" > conftest.c
11907 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11908 -dynamiclib ${wl}-single_module conftest.c
11909 if test -f libconftest.dylib; then
11910 lt_cv_apple_cc_single_mod=yes
11911 rm libconftest.dylib
11912 fi
11913 rm conftest.$ac_ext
11914 fi
11915 fi
11916
11917 output_verbose_link_cmd=echo
11918 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
11919 archive_cmds_FC='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11920 archive_expsym_cmds_FC='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11921 else
11922 archive_cmds_FC='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11923 archive_expsym_cmds_FC='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11924 fi
11925 module_cmds_FC='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11926 module_expsym_cmds_FC='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11927 else
11928 case $cc_basename in
11929 xlc*)
11930 output_verbose_link_cmd=echo
11931 archive_cmds_FC='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
11932 module_cmds_FC='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11933 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11934 archive_expsym_cmds_FC='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11935 module_expsym_cmds_FC='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11936 ;;
11937 *)
11938 ld_shlibs_FC=no
11939 ;;
11940 esac
11941 fi
11942 ;;
11943
11944 dgux*)
11945 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11946 hardcode_libdir_flag_spec_FC='-L$libdir'
11947 hardcode_shlibpath_var_FC=no
11948 ;;
11949
11950 freebsd1*)
11951 ld_shlibs_FC=no
11952 ;;
11953
11954 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11955 # support. Future versions do this automatically, but an explicit c++rt0.o
11956 # does not break anything, and helps significantly (at the cost of a little
11957 # extra space).
11958 freebsd2.2*)
11959 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11960 hardcode_libdir_flag_spec_FC='-R$libdir'
11961 hardcode_direct_FC=yes
11962 hardcode_shlibpath_var_FC=no
11963 ;;
11964
11965 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11966 freebsd2*)
11967 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11968 hardcode_direct_FC=yes
11969 hardcode_minus_L_FC=yes
11970 hardcode_shlibpath_var_FC=no
11971 ;;
11972
11973 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11974 freebsd* | dragonfly*)
11975 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11976 hardcode_libdir_flag_spec_FC='-R$libdir'
11977 hardcode_direct_FC=yes
11978 hardcode_shlibpath_var_FC=no
11979 ;;
11980
11981 hpux9*)
11982 if test "$GCC" = yes; then
11983 archive_cmds_FC='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11984 else
11985 archive_cmds_FC='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11986 fi
11987 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
11988 hardcode_libdir_separator_FC=:
11989 hardcode_direct_FC=yes
11990
11991 # hardcode_minus_L: Not really in the search PATH,
11992 # but as the default location of the library.
11993 hardcode_minus_L_FC=yes
11994 export_dynamic_flag_spec_FC='${wl}-E'
11995 ;;
11996
11997 hpux10*)
11998 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11999 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12000 else
12001 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12002 fi
12003 if test "$with_gnu_ld" = no; then
12004 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
12005 hardcode_libdir_flag_spec_ld_FC='+b $libdir'
12006 hardcode_libdir_separator_FC=:
12007 hardcode_direct_FC=yes
12008 hardcode_direct_absolute_FC=yes
12009 export_dynamic_flag_spec_FC='${wl}-E'
12010 # hardcode_minus_L: Not really in the search PATH,
12011 # but as the default location of the library.
12012 hardcode_minus_L_FC=yes
12013 fi
12014 ;;
12015
12016 hpux11*)
12017 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12018 case $host_cpu in
12019 hppa*64*)
12020 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12021 ;;
12022 ia64*)
12023 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12024 ;;
12025 *)
12026 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12027 ;;
12028 esac
12029 else
12030 case $host_cpu in
12031 hppa*64*)
12032 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12033 ;;
12034 ia64*)
12035 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12036 ;;
12037 *)
12038 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12039 ;;
12040 esac
12041 fi
12042 if test "$with_gnu_ld" = no; then
12043 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
12044 hardcode_libdir_separator_FC=:
12045
12046 case $host_cpu in
12047 hppa*64*|ia64*)
12048 hardcode_direct_FC=no
12049 hardcode_shlibpath_var_FC=no
12050 ;;
12051 *)
12052 hardcode_direct_FC=yes
12053 hardcode_direct_absolute_FC=yes
12054 export_dynamic_flag_spec_FC='${wl}-E'
12055
12056 # hardcode_minus_L: Not really in the search PATH,
12057 # but as the default location of the library.
12058 hardcode_minus_L_FC=yes
12059 ;;
12060 esac
12061 fi
12062 ;;
12063
12064 irix5* | irix6* | nonstopux*)
12065 if test "$GCC" = yes; then
12066 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12067 # Try to use the -exported_symbol ld option, if it does not
12068 # work, assume that -exports_file does not work either and
12069 # implicitly export all symbols.
12070 save_LDFLAGS="$LDFLAGS"
12071 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12072 cat >conftest.$ac_ext <<_ACEOF
12073 int foo(void) {}
12074 _ACEOF
12075 rm -f conftest.$ac_objext conftest$ac_exeext
12076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12077 (eval $ac_link) 2>conftest.er1
12078 ac_status=$?
12079 grep -v '^ *+' conftest.er1 >conftest.err
12080 rm -f conftest.er1
12081 cat conftest.err >&5
12082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12083 (exit $ac_status); } &&
12084 { ac_try='test -z "$ac_fc_werror_flag"
12085 || test ! -s conftest.err'
12086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12087 (eval $ac_try) 2>&5
12088 ac_status=$?
12089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12090 (exit $ac_status); }; } &&
12091 { ac_try='test -s conftest$ac_exeext'
12092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12093 (eval $ac_try) 2>&5
12094 ac_status=$?
12095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12096 (exit $ac_status); }; }; then
12097 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
12098
12099 else
12100 echo "$as_me: failed program was:" >&5
12101 sed 's/^/| /' conftest.$ac_ext >&5
12102
12103 fi
12104 rm -f conftest.err conftest.$ac_objext \
12105 conftest$ac_exeext conftest.$ac_ext
12106 LDFLAGS="$save_LDFLAGS"
12107 else
12108 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12109 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
12110 fi
12111 archive_cmds_need_lc_FC='no'
12112 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12113 hardcode_libdir_separator_FC=:
12114 inherit_rpath_FC=yes
12115 link_all_deplibs_FC=yes
12116 ;;
12117
12118 netbsd*)
12119 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12120 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12121 else
12122 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12123 fi
12124 hardcode_libdir_flag_spec_FC='-R$libdir'
12125 hardcode_direct_FC=yes
12126 hardcode_shlibpath_var_FC=no
12127 ;;
12128
12129 newsos6)
12130 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12131 hardcode_direct_FC=yes
12132 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12133 hardcode_libdir_separator_FC=:
12134 hardcode_shlibpath_var_FC=no
12135 ;;
12136
12137 *nto* | *qnx*)
12138 ;;
12139
12140 openbsd*)
12141 hardcode_direct_FC=yes
12142 hardcode_shlibpath_var_FC=no
12143 hardcode_direct_absolute_FC=yes
12144 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12145 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12146 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12147 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
12148 export_dynamic_flag_spec_FC='${wl}-E'
12149 else
12150 case $host_os in
12151 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12152 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12153 hardcode_libdir_flag_spec_FC='-R$libdir'
12154 ;;
12155 *)
12156 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12157 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
12158 ;;
12159 esac
12160 fi
12161 ;;
12162
12163 os2*)
12164 hardcode_libdir_flag_spec_FC='-L$libdir'
12165 hardcode_minus_L_FC=yes
12166 allow_undefined_flag_FC=unsupported
12167 archive_cmds_FC='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
12168 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12169 ;;
12170
12171 osf3*)
12172 if test "$GCC" = yes; then
12173 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
12174 archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12175 else
12176 allow_undefined_flag_FC=' -expect_unresolved \*'
12177 archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12178 fi
12179 archive_cmds_need_lc_FC='no'
12180 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12181 hardcode_libdir_separator_FC=:
12182 ;;
12183
12184 osf4* | osf5*) # as osf3* with the addition of -msym flag
12185 if test "$GCC" = yes; then
12186 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
12187 archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12188 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12189 else
12190 allow_undefined_flag_FC=' -expect_unresolved \*'
12191 archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12192 archive_expsym_cmds_FC='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
12193 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
12194
12195 # Both c and cxx compiler support -rpath directly
12196 hardcode_libdir_flag_spec_FC='-rpath $libdir'
12197 fi
12198 archive_cmds_need_lc_FC='no'
12199 hardcode_libdir_separator_FC=:
12200 ;;
12201
12202 solaris*)
12203 no_undefined_flag_FC=' -z defs'
12204 if test "$GCC" = yes; then
12205 wlarc='${wl}'
12206 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12207 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12208 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12209 else
12210 case `$CC -V 2>&1` in
12211 *"Compilers 5.0"*)
12212 wlarc=''
12213 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12214 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12215 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12216 ;;
12217 *)
12218 wlarc='${wl}'
12219 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12220 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12221 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12222 ;;
12223 esac
12224 fi
12225 hardcode_libdir_flag_spec_FC='-R$libdir'
12226 hardcode_shlibpath_var_FC=no
12227 case $host_os in
12228 solaris2.[0-5] | solaris2.[0-5].*) ;;
12229 *)
12230 # The compiler driver will combine and reorder linker options,
12231 # but understands `-z linker_flag'. GCC discards it without `$wl',
12232 # but is careful enough not to reorder.
12233 # Supported since Solaris 2.6 (maybe 2.5.1?)
12234 if test "$GCC" = yes; then
12235 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12236 else
12237 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
12238 fi
12239 ;;
12240 esac
12241 link_all_deplibs_FC=yes
12242 ;;
12243
12244 sunos4*)
12245 if test "x$host_vendor" = xsequent; then
12246 # Use $CC to link under sequent, because it throws in some extra .o
12247 # files that make .init and .fini sections work.
12248 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12249 else
12250 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12251 fi
12252 hardcode_libdir_flag_spec_FC='-L$libdir'
12253 hardcode_direct_FC=yes
12254 hardcode_minus_L_FC=yes
12255 hardcode_shlibpath_var_FC=no
12256 ;;
12257
12258 sysv4)
12259 case $host_vendor in
12260 sni)
12261 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12262 hardcode_direct_FC=yes # is this really true???
12263 ;;
12264 siemens)
12265 ## LD is ld it makes a PLAMLIB
12266 ## CC just makes a GrossModule.
12267 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12268 reload_cmds_FC='$CC -r -o $output$reload_objs'
12269 hardcode_direct_FC=no
12270 ;;
12271 motorola)
12272 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12273 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
12274 ;;
12275 esac
12276 runpath_var='LD_RUN_PATH'
12277 hardcode_shlibpath_var_FC=no
12278 ;;
12279
12280 sysv4.3*)
12281 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12282 hardcode_shlibpath_var_FC=no
12283 export_dynamic_flag_spec_FC='-Bexport'
12284 ;;
12285
12286 sysv4*MP*)
12287 if test -d /usr/nec; then
12288 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12289 hardcode_shlibpath_var_FC=no
12290 runpath_var=LD_RUN_PATH
12291 hardcode_runpath_var=yes
12292 ld_shlibs_FC=yes
12293 fi
12294 ;;
12295
12296 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12297 no_undefined_flag_FC='${wl}-z,text'
12298 archive_cmds_need_lc_FC=no
12299 hardcode_shlibpath_var_FC=no
12300 runpath_var='LD_RUN_PATH'
12301
12302 if test "$GCC" = yes; then
12303 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12304 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12305 else
12306 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12307 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12308 fi
12309 ;;
12310
12311 sysv5* | sco3.2v5* | sco5v6*)
12312 # Note: We can NOT use -z defs as we might desire, because we do not
12313 # link with -lc, and that would cause any symbols used from libc to
12314 # always be unresolved, which means just about no library would
12315 # ever link correctly. If we're not using GNU ld we use -z text
12316 # though, which does catch some bad symbols but isn't as heavy-handed
12317 # as -z defs.
12318 no_undefined_flag_FC='${wl}-z,text'
12319 allow_undefined_flag_FC='${wl}-z,nodefs'
12320 archive_cmds_need_lc_FC=no
12321 hardcode_shlibpath_var_FC=no
12322 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
12323 hardcode_libdir_separator_FC=':'
12324 link_all_deplibs_FC=yes
12325 export_dynamic_flag_spec_FC='${wl}-Bexport'
12326 runpath_var='LD_RUN_PATH'
12327
12328 if test "$GCC" = yes; then
12329 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12330 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12331 else
12332 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12333 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12334 fi
12335 ;;
12336
12337 uts4*)
12338 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12339 hardcode_libdir_flag_spec_FC='-L$libdir'
12340 hardcode_shlibpath_var_FC=no
12341 ;;
12342
12343 *)
12344 ld_shlibs_FC=no
12345 ;;
12346 esac
12347
12348 if test x$host_vendor = xsni; then
12349 case $host in
12350 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12351 export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
12352 ;;
12353 esac
12354 fi
12355 fi
12356
12357 echo "$as_me:$LINENO: result: $ld_shlibs_FC" >&5
12358 echo "${ECHO_T}$ld_shlibs_FC" >&6
12359 test "$ld_shlibs_FC" = no && can_build_shared=no
12360
12361 with_gnu_ld_FC=$with_gnu_ld
12362
12363
12364
12365
12366
12367
12368 #
12369 # Do we need to explicitly link libc?
12370 #
12371 case "x$archive_cmds_need_lc_FC" in
12372 x|xyes)
12373 # Assume -lc should be added
12374 archive_cmds_need_lc_FC=yes
12375
12376 if test "$enable_shared" = yes && test "$GCC" = yes; then
12377 case $archive_cmds_FC in
12378 *'~'*)
12379 # FIXME: we may have to deal with multi-command sequences.
12380 ;;
12381 '$CC '*)
12382 # Test whether the compiler implicitly links with -lc since on some
12383 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12384 # to ld, don't add -lc before -lgcc.
12385 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12386 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12387 $RM conftest*
12388 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12389
12390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12391 (eval $ac_compile) 2>&5
12392 ac_status=$?
12393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394 (exit $ac_status); } 2>conftest.err; then
12395 soname=conftest
12396 lib=conftest
12397 libobjs=conftest.$ac_objext
12398 deplibs=
12399 wl=$lt_prog_compiler_wl_FC
12400 pic_flag=$lt_prog_compiler_pic_FC
12401 compiler_flags=-v
12402 linker_flags=-v
12403 verstring=
12404 output_objdir=.
12405 libname=conftest
12406 lt_save_allow_undefined_flag=$allow_undefined_flag_FC
12407 allow_undefined_flag_FC=
12408 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
12409 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12410 ac_status=$?
12411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12412 (exit $ac_status); }
12413 then
12414 archive_cmds_need_lc_FC=no
12415 else
12416 archive_cmds_need_lc_FC=yes
12417 fi
12418 allow_undefined_flag_FC=$lt_save_allow_undefined_flag
12419 else
12420 cat conftest.err 1>&5
12421 fi
12422 $RM conftest*
12423 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_FC" >&5
12424 echo "${ECHO_T}$archive_cmds_need_lc_FC" >&6
12425 ;;
12426 esac
12427 fi
12428 ;;
12429 esac
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12495 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12496 withGCC=$ac_cv_fc_compiler_gnu
12497 library_names_spec=
12498 libname_spec='lib$name'
12499 soname_spec=
12500 shrext_cmds=".so"
12501 postinstall_cmds=
12502 postuninstall_cmds=
12503 finish_cmds=
12504 finish_eval=
12505 shlibpath_var=
12506 shlibpath_overrides_runpath=unknown
12507 version_type=none
12508 dynamic_linker="$host_os ld.so"
12509 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12510 need_lib_prefix=unknown
12511 hardcode_into_libs=no
12512
12513 # when you set need_version to no, make sure it does not cause -set_version
12514 # flags to be left without arguments
12515 need_version=unknown
12516
12517 case $host_os in
12518 aix3*)
12519 version_type=linux
12520 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12521 shlibpath_var=LIBPATH
12522
12523 # AIX 3 has no versioning support, so we append a major version to the name.
12524 soname_spec='${libname}${release}${shared_ext}$major'
12525 ;;
12526
12527 aix4* | aix5*)
12528 version_type=linux
12529 need_lib_prefix=no
12530 need_version=no
12531 hardcode_into_libs=yes
12532 if test "$host_cpu" = ia64; then
12533 # AIX 5 supports IA64
12534 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12535 shlibpath_var=LD_LIBRARY_PATH
12536 else
12537 # With GCC up to 2.95.x, collect2 would create an import file
12538 # for dependence libraries. The import file would start with
12539 # the line `#! .'. This would cause the generated library to
12540 # depend on `.', always an invalid library. This was fixed in
12541 # development snapshots of GCC prior to 3.0.
12542 case $host_os in
12543 aix4 | aix4.[01] | aix4.[01].*)
12544 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12545 echo ' yes '
12546 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12547 :
12548 else
12549 can_build_shared=no
12550 fi
12551 ;;
12552 esac
12553 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12554 # soname into executable. Probably we can add versioning support to
12555 # collect2, so additional links can be useful in future.
12556 if test "$aix_use_runtimelinking" = yes; then
12557 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12558 # instead of lib<name>.a to let people know that these are not
12559 # typical AIX shared libraries.
12560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12561 else
12562 # We preserve .a as extension for shared libraries through AIX4.2
12563 # and later when we are not doing run time linking.
12564 library_names_spec='${libname}${release}.a $libname.a'
12565 soname_spec='${libname}${release}${shared_ext}$major'
12566 fi
12567 shlibpath_var=LIBPATH
12568 fi
12569 ;;
12570
12571 amigaos*)
12572 if test "$host_cpu" = m68k; then
12573 library_names_spec='$libname.ixlibrary $libname.a'
12574 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12575 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
12576 else
12577 dynamic_linker=no
12578 fi
12579 ;;
12580
12581 beos*)
12582 library_names_spec='${libname}${shared_ext}'
12583 dynamic_linker="$host_os ld.so"
12584 shlibpath_var=LIBRARY_PATH
12585 ;;
12586
12587 bsdi[45]*)
12588 version_type=linux
12589 need_version=no
12590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12591 soname_spec='${libname}${release}${shared_ext}$major'
12592 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12593 shlibpath_var=LD_LIBRARY_PATH
12594 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12595 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12596 # the default ld.so.conf also contains /usr/contrib/lib and
12597 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12598 # libtool to hard-code these into programs
12599 ;;
12600
12601 cygwin* | mingw* | pw32*)
12602 version_type=windows
12603 shrext_cmds=".dll"
12604 need_version=no
12605 need_lib_prefix=no
12606
12607 case $withGCC,$host_os in
12608 yes,cygwin* | yes,mingw* | yes,pw32*)
12609 library_names_spec='$libname.dll.a'
12610 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12611 postinstall_cmds='base_file=`basename \${file}`~
12612 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12613 dldir=$destdir/`dirname \$dlpath`~
12614 test -d \$dldir || mkdir -p \$dldir~
12615 $install_prog $dir/$dlname \$dldir/$dlname~
12616 chmod a+x \$dldir/$dlname~
12617 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12618 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12619 fi'
12620 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12621 dlpath=$dir/\$dldll~
12622 $RM \$dlpath'
12623 shlibpath_overrides_runpath=yes
12624
12625 case $host_os in
12626 cygwin*)
12627 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12628 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12629 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12630 ;;
12631 mingw*)
12632 # MinGW DLLs use traditional 'lib' prefix
12633 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12634 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12635 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12636 # It is most probably a Windows format PATH printed by
12637 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12638 # path with ; separators, and with drive letters. We can handle the
12639 # drive letters (cygwin fileutils understands them), so leave them,
12640 # especially as we might pass files found there to a mingw objdump,
12641 # which wouldn't understand a cygwinified path. Ahh.
12642 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12643 else
12644 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12645 fi
12646 ;;
12647 pw32*)
12648 # pw32 DLLs use 'pw' prefix rather than 'lib'
12649 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12650 ;;
12651 esac
12652 ;;
12653
12654 *)
12655 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12656 ;;
12657 esac
12658 dynamic_linker='Win32 ld.exe'
12659 # FIXME: first we should search . and the directory the executable is in
12660 shlibpath_var=PATH
12661 ;;
12662
12663 darwin* | rhapsody*)
12664 dynamic_linker="$host_os dyld"
12665 version_type=darwin
12666 need_lib_prefix=no
12667 need_version=no
12668 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12669 soname_spec='${libname}${release}${major}$shared_ext'
12670 shlibpath_overrides_runpath=yes
12671 shlibpath_var=DYLD_LIBRARY_PATH
12672 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12673
12674 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12675 ;;
12676
12677 dgux*)
12678 version_type=linux
12679 need_lib_prefix=no
12680 need_version=no
12681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12682 soname_spec='${libname}${release}${shared_ext}$major'
12683 shlibpath_var=LD_LIBRARY_PATH
12684 ;;
12685
12686 freebsd1*)
12687 dynamic_linker=no
12688 ;;
12689
12690 freebsd* | dragonfly*)
12691 # DragonFly does not have aout. When/if they implement a new
12692 # versioning mechanism, adjust this.
12693 if test -x /usr/bin/objformat; then
12694 objformat=`/usr/bin/objformat`
12695 else
12696 case $host_os in
12697 freebsd[123]*) objformat=aout ;;
12698 *) objformat=elf ;;
12699 esac
12700 fi
12701 version_type=freebsd-$objformat
12702 case $version_type in
12703 freebsd-elf*)
12704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12705 need_version=no
12706 need_lib_prefix=no
12707 ;;
12708 freebsd-*)
12709 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12710 need_version=yes
12711 ;;
12712 esac
12713 shlibpath_var=LD_LIBRARY_PATH
12714 case $host_os in
12715 freebsd2*)
12716 shlibpath_overrides_runpath=yes
12717 ;;
12718 freebsd3.[01]* | freebsdelf3.[01]*)
12719 shlibpath_overrides_runpath=yes
12720 hardcode_into_libs=yes
12721 ;;
12722 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12723 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12724 shlibpath_overrides_runpath=no
12725 hardcode_into_libs=yes
12726 ;;
12727 *) # from 4.6 on, and DragonFly
12728 shlibpath_overrides_runpath=yes
12729 hardcode_into_libs=yes
12730 ;;
12731 esac
12732 ;;
12733
12734 gnu*)
12735 version_type=linux
12736 need_lib_prefix=no
12737 need_version=no
12738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12739 soname_spec='${libname}${release}${shared_ext}$major'
12740 shlibpath_var=LD_LIBRARY_PATH
12741 hardcode_into_libs=yes
12742 ;;
12743
12744 hpux9* | hpux10* | hpux11*)
12745 # Give a soname corresponding to the major version so that dld.sl refuses to
12746 # link against other versions.
12747 version_type=sunos
12748 need_lib_prefix=no
12749 need_version=no
12750 case $host_cpu in
12751 ia64*)
12752 shrext_cmds='.so'
12753 hardcode_into_libs=yes
12754 dynamic_linker="$host_os dld.so"
12755 shlibpath_var=LD_LIBRARY_PATH
12756 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12758 soname_spec='${libname}${release}${shared_ext}$major'
12759 if test "X$HPUX_IA64_MODE" = X32; then
12760 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12761 else
12762 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12763 fi
12764 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12765 ;;
12766 hppa*64*)
12767 shrext_cmds='.sl'
12768 hardcode_into_libs=yes
12769 dynamic_linker="$host_os dld.sl"
12770 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12771 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12773 soname_spec='${libname}${release}${shared_ext}$major'
12774 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12775 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12776 ;;
12777 *)
12778 shrext_cmds='.sl'
12779 dynamic_linker="$host_os dld.sl"
12780 shlibpath_var=SHLIB_PATH
12781 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12783 soname_spec='${libname}${release}${shared_ext}$major'
12784 ;;
12785 esac
12786 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12787 postinstall_cmds='chmod 555 $lib'
12788 ;;
12789
12790 interix[3-9]*)
12791 version_type=linux
12792 need_lib_prefix=no
12793 need_version=no
12794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12795 soname_spec='${libname}${release}${shared_ext}$major'
12796 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12797 shlibpath_var=LD_LIBRARY_PATH
12798 shlibpath_overrides_runpath=no
12799 hardcode_into_libs=yes
12800 ;;
12801
12802 irix5* | irix6* | nonstopux*)
12803 case $host_os in
12804 nonstopux*) version_type=nonstopux ;;
12805 *)
12806 if test "$lt_cv_prog_gnu_ld" = yes; then
12807 version_type=linux
12808 else
12809 version_type=irix
12810 fi ;;
12811 esac
12812 need_lib_prefix=no
12813 need_version=no
12814 soname_spec='${libname}${release}${shared_ext}$major'
12815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12816 case $host_os in
12817 irix5* | nonstopux*)
12818 libsuff= shlibsuff=
12819 ;;
12820 *)
12821 case $LD in # libtool.m4 will add one of these switches to LD
12822 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12823 libsuff= shlibsuff= libmagic=32-bit;;
12824 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12825 libsuff=32 shlibsuff=N32 libmagic=N32;;
12826 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12827 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12828 *) libsuff= shlibsuff= libmagic=never-match;;
12829 esac
12830 ;;
12831 esac
12832 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12833 shlibpath_overrides_runpath=no
12834 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12835 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12836 hardcode_into_libs=yes
12837 ;;
12838
12839 # No shared lib support for Linux oldld, aout, or coff.
12840 linux*oldld* | linux*aout* | linux*coff*)
12841 dynamic_linker=no
12842 ;;
12843
12844 # This must be Linux ELF.
12845 linux* | k*bsd*-gnu)
12846 version_type=linux
12847 need_lib_prefix=no
12848 need_version=no
12849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12850 soname_spec='${libname}${release}${shared_ext}$major'
12851 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12852 shlibpath_var=LD_LIBRARY_PATH
12853 shlibpath_overrides_runpath=no
12854 # Some binutils ld are patched to set DT_RUNPATH
12855 save_LDFLAGS=$LDFLAGS
12856 save_libdir=$libdir
12857 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
12858 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
12859 cat >conftest.$ac_ext <<_ACEOF
12860 program main
12861
12862 end
12863 _ACEOF
12864 rm -f conftest.$ac_objext conftest$ac_exeext
12865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12866 (eval $ac_link) 2>conftest.er1
12867 ac_status=$?
12868 grep -v '^ *+' conftest.er1 >conftest.err
12869 rm -f conftest.er1
12870 cat conftest.err >&5
12871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12872 (exit $ac_status); } &&
12873 { ac_try='test -z "$ac_fc_werror_flag"
12874 || test ! -s conftest.err'
12875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12876 (eval $ac_try) 2>&5
12877 ac_status=$?
12878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12879 (exit $ac_status); }; } &&
12880 { ac_try='test -s conftest$ac_exeext'
12881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12882 (eval $ac_try) 2>&5
12883 ac_status=$?
12884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12885 (exit $ac_status); }; }; then
12886 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
12887 shlibpath_overrides_runpath=yes
12888 fi
12889
12890 else
12891 echo "$as_me: failed program was:" >&5
12892 sed 's/^/| /' conftest.$ac_ext >&5
12893
12894 fi
12895 rm -f conftest.err conftest.$ac_objext \
12896 conftest$ac_exeext conftest.$ac_ext
12897 LDFLAGS=$save_LDFLAGS
12898 libdir=$save_libdir
12899
12900 # This implies no fast_install, which is unacceptable.
12901 # Some rework will be needed to allow for fast_install
12902 # before this can be enabled.
12903 hardcode_into_libs=yes
12904
12905 # Append ld.so.conf contents to the search path
12906 if test -f /etc/ld.so.conf; then
12907 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12908 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12909 fi
12910
12911 # We used to test for /lib/ld.so.1 and disable shared libraries on
12912 # powerpc, because MkLinux only supported shared libraries with the
12913 # GNU dynamic linker. Since this was broken with cross compilers,
12914 # most powerpc-linux boxes support dynamic linking these days and
12915 # people can always --disable-shared, the test was removed, and we
12916 # assume the GNU/Linux dynamic linker is in use.
12917 dynamic_linker='GNU/Linux ld.so'
12918 ;;
12919
12920 netbsd*)
12921 version_type=sunos
12922 need_lib_prefix=no
12923 need_version=no
12924 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12926 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12927 dynamic_linker='NetBSD (a.out) ld.so'
12928 else
12929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12930 soname_spec='${libname}${release}${shared_ext}$major'
12931 dynamic_linker='NetBSD ld.elf_so'
12932 fi
12933 shlibpath_var=LD_LIBRARY_PATH
12934 shlibpath_overrides_runpath=yes
12935 hardcode_into_libs=yes
12936 ;;
12937
12938 newsos6)
12939 version_type=linux
12940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12941 shlibpath_var=LD_LIBRARY_PATH
12942 shlibpath_overrides_runpath=yes
12943 ;;
12944
12945 *nto* | *qnx*)
12946 version_type=qnx
12947 need_lib_prefix=no
12948 need_version=no
12949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12950 soname_spec='${libname}${release}${shared_ext}$major'
12951 shlibpath_var=LD_LIBRARY_PATH
12952 shlibpath_overrides_runpath=no
12953 hardcode_into_libs=yes
12954 dynamic_linker='ldqnx.so'
12955 ;;
12956
12957 openbsd*)
12958 version_type=sunos
12959 sys_lib_dlsearch_path_spec="/usr/lib"
12960 need_lib_prefix=no
12961 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12962 case $host_os in
12963 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12964 *) need_version=no ;;
12965 esac
12966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12967 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12968 shlibpath_var=LD_LIBRARY_PATH
12969 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12970 case $host_os in
12971 openbsd2.[89] | openbsd2.[89].*)
12972 shlibpath_overrides_runpath=no
12973 ;;
12974 *)
12975 shlibpath_overrides_runpath=yes
12976 ;;
12977 esac
12978 else
12979 shlibpath_overrides_runpath=yes
12980 fi
12981 ;;
12982
12983 os2*)
12984 libname_spec='$name'
12985 shrext_cmds=".dll"
12986 need_lib_prefix=no
12987 library_names_spec='$libname${shared_ext} $libname.a'
12988 dynamic_linker='OS/2 ld.exe'
12989 shlibpath_var=LIBPATH
12990 ;;
12991
12992 osf3* | osf4* | osf5*)
12993 version_type=osf
12994 need_lib_prefix=no
12995 need_version=no
12996 soname_spec='${libname}${release}${shared_ext}$major'
12997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12998 shlibpath_var=LD_LIBRARY_PATH
12999 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13000 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13001 ;;
13002
13003 rdos*)
13004 dynamic_linker=no
13005 ;;
13006
13007 solaris*)
13008 version_type=linux
13009 need_lib_prefix=no
13010 need_version=no
13011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13012 soname_spec='${libname}${release}${shared_ext}$major'
13013 shlibpath_var=LD_LIBRARY_PATH
13014 shlibpath_overrides_runpath=yes
13015 hardcode_into_libs=yes
13016 # ldd complains unless libraries are executable
13017 postinstall_cmds='chmod +x $lib'
13018 ;;
13019
13020 sunos4*)
13021 version_type=sunos
13022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13023 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13024 shlibpath_var=LD_LIBRARY_PATH
13025 shlibpath_overrides_runpath=yes
13026 if test "$with_gnu_ld" = yes; then
13027 need_lib_prefix=no
13028 fi
13029 need_version=yes
13030 ;;
13031
13032 sysv4 | sysv4.3*)
13033 version_type=linux
13034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13035 soname_spec='${libname}${release}${shared_ext}$major'
13036 shlibpath_var=LD_LIBRARY_PATH
13037 case $host_vendor in
13038 sni)
13039 shlibpath_overrides_runpath=no
13040 need_lib_prefix=no
13041 runpath_var=LD_RUN_PATH
13042 ;;
13043 siemens)
13044 need_lib_prefix=no
13045 ;;
13046 motorola)
13047 need_lib_prefix=no
13048 need_version=no
13049 shlibpath_overrides_runpath=no
13050 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13051 ;;
13052 esac
13053 ;;
13054
13055 sysv4*MP*)
13056 if test -d /usr/nec ;then
13057 version_type=linux
13058 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13059 soname_spec='$libname${shared_ext}.$major'
13060 shlibpath_var=LD_LIBRARY_PATH
13061 fi
13062 ;;
13063
13064 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13065 version_type=freebsd-elf
13066 need_lib_prefix=no
13067 need_version=no
13068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13069 soname_spec='${libname}${release}${shared_ext}$major'
13070 shlibpath_var=LD_LIBRARY_PATH
13071 shlibpath_overrides_runpath=yes
13072 hardcode_into_libs=yes
13073 if test "$with_gnu_ld" = yes; then
13074 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13075 else
13076 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13077 case $host_os in
13078 sco3.2v5*)
13079 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13080 ;;
13081 esac
13082 fi
13083 sys_lib_dlsearch_path_spec='/usr/lib'
13084 ;;
13085
13086 tpf*)
13087 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13088 version_type=linux
13089 need_lib_prefix=no
13090 need_version=no
13091 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13092 shlibpath_var=LD_LIBRARY_PATH
13093 shlibpath_overrides_runpath=no
13094 hardcode_into_libs=yes
13095 ;;
13096
13097 uts4*)
13098 version_type=linux
13099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13100 soname_spec='${libname}${release}${shared_ext}$major'
13101 shlibpath_var=LD_LIBRARY_PATH
13102 ;;
13103
13104 *)
13105 dynamic_linker=no
13106 ;;
13107 esac
13108 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13109 echo "${ECHO_T}$dynamic_linker" >&6
13110 test "$dynamic_linker" = no && can_build_shared=no
13111
13112 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13113 if test "$GCC" = yes; then
13114 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13115 fi
13116
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148
13149
13150
13151
13152 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13153 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13154 hardcode_action_FC=
13155 if test -n "$hardcode_libdir_flag_spec_FC" ||
13156 test -n "$runpath_var_FC" ||
13157 test "X$hardcode_automatic_FC" = "Xyes" ; then
13158
13159 # We can hardcode non-existent directories.
13160 if test "$hardcode_direct_FC" != no &&
13161 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13162 # have to relink, otherwise we might link with an installed library
13163 # when we should be linking with a yet-to-be-installed one
13164 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
13165 test "$hardcode_minus_L_FC" != no; then
13166 # Linking always hardcodes the temporary library directory.
13167 hardcode_action_FC=relink
13168 else
13169 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13170 hardcode_action_FC=immediate
13171 fi
13172 else
13173 # We cannot hardcode anything, or else we can only hardcode existing
13174 # directories.
13175 hardcode_action_FC=unsupported
13176 fi
13177 echo "$as_me:$LINENO: result: $hardcode_action_FC" >&5
13178 echo "${ECHO_T}$hardcode_action_FC" >&6
13179
13180 if test "$hardcode_action_FC" = relink ||
13181 test "$inherit_rpath_FC" = yes; then
13182 # Fast installation is not supported
13183 enable_fast_install=no
13184 elif test "$shlibpath_overrides_runpath" = yes ||
13185 test "$enable_shared" = no; then
13186 # Fast installation is not necessary
13187 enable_fast_install=needless
13188 fi
13189
13190
13191
13192
13193
13194
13195
13196 fi # test -n "$compiler"
13197
13198 CC="$lt_save_CC"
13199 fi # test "$_lt_disable_FC" != yes
13200
13201 ac_ext=c
13202 ac_cpp='$CPP $CPPFLAGS'
13203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13206
13207
13208 FCFLAGS="$FCFLAGS -Wall"
13209
13210 # For libtool versioning info, format is CURRENT:REVISION:AGE
13211 libtool_VERSION=1:0:0
13212
13213
13214 # Check header files.
13215 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13216 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13217 if test "${ac_cv_header_stdc+set}" = set; then
13218 echo $ECHO_N "(cached) $ECHO_C" >&6
13219 else
13220 cat >conftest.$ac_ext <<_ACEOF
13221 /* confdefs.h. */
13222 _ACEOF
13223 cat confdefs.h >>conftest.$ac_ext
13224 cat >>conftest.$ac_ext <<_ACEOF
13225 /* end confdefs.h. */
13226 #include <stdlib.h>
13227 #include <stdarg.h>
13228 #include <string.h>
13229 #include <float.h>
13230
13231 int
13232 main ()
13233 {
13234
13235 ;
13236 return 0;
13237 }
13238 _ACEOF
13239 rm -f conftest.$ac_objext
13240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13241 (eval $ac_compile) 2>conftest.er1
13242 ac_status=$?
13243 grep -v '^ *+' conftest.er1 >conftest.err
13244 rm -f conftest.er1
13245 cat conftest.err >&5
13246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247 (exit $ac_status); } &&
13248 { ac_try='test -z "$ac_c_werror_flag"
13249 || test ! -s conftest.err'
13250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13251 (eval $ac_try) 2>&5
13252 ac_status=$?
13253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13254 (exit $ac_status); }; } &&
13255 { ac_try='test -s conftest.$ac_objext'
13256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13257 (eval $ac_try) 2>&5
13258 ac_status=$?
13259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260 (exit $ac_status); }; }; then
13261 ac_cv_header_stdc=yes
13262 else
13263 echo "$as_me: failed program was:" >&5
13264 sed 's/^/| /' conftest.$ac_ext >&5
13265
13266 ac_cv_header_stdc=no
13267 fi
13268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13269
13270 if test $ac_cv_header_stdc = yes; then
13271 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13272 cat >conftest.$ac_ext <<_ACEOF
13273 /* confdefs.h. */
13274 _ACEOF
13275 cat confdefs.h >>conftest.$ac_ext
13276 cat >>conftest.$ac_ext <<_ACEOF
13277 /* end confdefs.h. */
13278 #include <string.h>
13279
13280 _ACEOF
13281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13282 $EGREP "memchr" >/dev/null 2>&1; then
13283 :
13284 else
13285 ac_cv_header_stdc=no
13286 fi
13287 rm -f conftest*
13288
13289 fi
13290
13291 if test $ac_cv_header_stdc = yes; then
13292 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13293 cat >conftest.$ac_ext <<_ACEOF
13294 /* confdefs.h. */
13295 _ACEOF
13296 cat confdefs.h >>conftest.$ac_ext
13297 cat >>conftest.$ac_ext <<_ACEOF
13298 /* end confdefs.h. */
13299 #include <stdlib.h>
13300
13301 _ACEOF
13302 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13303 $EGREP "free" >/dev/null 2>&1; then
13304 :
13305 else
13306 ac_cv_header_stdc=no
13307 fi
13308 rm -f conftest*
13309
13310 fi
13311
13312 if test $ac_cv_header_stdc = yes; then
13313 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13314 if test "$cross_compiling" = yes; then
13315 :
13316 else
13317 cat >conftest.$ac_ext <<_ACEOF
13318 /* confdefs.h. */
13319 _ACEOF
13320 cat confdefs.h >>conftest.$ac_ext
13321 cat >>conftest.$ac_ext <<_ACEOF
13322 /* end confdefs.h. */
13323 #include <ctype.h>
13324 #if ((' ' & 0x0FF) == 0x020)
13325 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13326 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13327 #else
13328 # define ISLOWER(c) \
13329 (('a' <= (c) && (c) <= 'i') \
13330 || ('j' <= (c) && (c) <= 'r') \
13331 || ('s' <= (c) && (c) <= 'z'))
13332 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13333 #endif
13334
13335 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13336 int
13337 main ()
13338 {
13339 int i;
13340 for (i = 0; i < 256; i++)
13341 if (XOR (islower (i), ISLOWER (i))
13342 || toupper (i) != TOUPPER (i))
13343 exit(2);
13344 exit (0);
13345 }
13346 _ACEOF
13347 rm -f conftest$ac_exeext
13348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13349 (eval $ac_link) 2>&5
13350 ac_status=$?
13351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13352 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13354 (eval $ac_try) 2>&5
13355 ac_status=$?
13356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13357 (exit $ac_status); }; }; then
13358 :
13359 else
13360 echo "$as_me: program exited with status $ac_status" >&5
13361 echo "$as_me: failed program was:" >&5
13362 sed 's/^/| /' conftest.$ac_ext >&5
13363
13364 ( exit $ac_status )
13365 ac_cv_header_stdc=no
13366 fi
13367 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13368 fi
13369 fi
13370 fi
13371 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13372 echo "${ECHO_T}$ac_cv_header_stdc" >&6
13373 if test $ac_cv_header_stdc = yes; then
13374
13375 cat >>confdefs.h <<\_ACEOF
13376 #define STDC_HEADERS 1
13377 _ACEOF
13378
13379 fi
13380
13381 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
13382 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
13383 if test "${ac_cv_header_time+set}" = set; then
13384 echo $ECHO_N "(cached) $ECHO_C" >&6
13385 else
13386 cat >conftest.$ac_ext <<_ACEOF
13387 /* confdefs.h. */
13388 _ACEOF
13389 cat confdefs.h >>conftest.$ac_ext
13390 cat >>conftest.$ac_ext <<_ACEOF
13391 /* end confdefs.h. */
13392 #include <sys/types.h>
13393 #include <sys/time.h>
13394 #include <time.h>
13395
13396 int
13397 main ()
13398 {
13399 if ((struct tm *) 0)
13400 return 0;
13401 ;
13402 return 0;
13403 }
13404 _ACEOF
13405 rm -f conftest.$ac_objext
13406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13407 (eval $ac_compile) 2>conftest.er1
13408 ac_status=$?
13409 grep -v '^ *+' conftest.er1 >conftest.err
13410 rm -f conftest.er1
13411 cat conftest.err >&5
13412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13413 (exit $ac_status); } &&
13414 { ac_try='test -z "$ac_c_werror_flag"
13415 || test ! -s conftest.err'
13416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13417 (eval $ac_try) 2>&5
13418 ac_status=$?
13419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13420 (exit $ac_status); }; } &&
13421 { ac_try='test -s conftest.$ac_objext'
13422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13423 (eval $ac_try) 2>&5
13424 ac_status=$?
13425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13426 (exit $ac_status); }; }; then
13427 ac_cv_header_time=yes
13428 else
13429 echo "$as_me: failed program was:" >&5
13430 sed 's/^/| /' conftest.$ac_ext >&5
13431
13432 ac_cv_header_time=no
13433 fi
13434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13435 fi
13436 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
13437 echo "${ECHO_T}$ac_cv_header_time" >&6
13438 if test $ac_cv_header_time = yes; then
13439
13440 cat >>confdefs.h <<\_ACEOF
13441 #define TIME_WITH_SYS_TIME 1
13442 _ACEOF
13443
13444 fi
13445
13446
13447
13448
13449
13450 for ac_header in unistd.h semaphore.h sys/loadavg.h sys/time.h
13451 do
13452 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13453 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13454 echo "$as_me:$LINENO: checking for $ac_header" >&5
13455 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13456 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13457 echo $ECHO_N "(cached) $ECHO_C" >&6
13458 fi
13459 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13460 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13461 else
13462 # Is the header compilable?
13463 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13464 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13465 cat >conftest.$ac_ext <<_ACEOF
13466 /* confdefs.h. */
13467 _ACEOF
13468 cat confdefs.h >>conftest.$ac_ext
13469 cat >>conftest.$ac_ext <<_ACEOF
13470 /* end confdefs.h. */
13471 $ac_includes_default
13472 #include <$ac_header>
13473 _ACEOF
13474 rm -f conftest.$ac_objext
13475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13476 (eval $ac_compile) 2>conftest.er1
13477 ac_status=$?
13478 grep -v '^ *+' conftest.er1 >conftest.err
13479 rm -f conftest.er1
13480 cat conftest.err >&5
13481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13482 (exit $ac_status); } &&
13483 { ac_try='test -z "$ac_c_werror_flag"
13484 || test ! -s conftest.err'
13485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13486 (eval $ac_try) 2>&5
13487 ac_status=$?
13488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13489 (exit $ac_status); }; } &&
13490 { ac_try='test -s conftest.$ac_objext'
13491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13492 (eval $ac_try) 2>&5
13493 ac_status=$?
13494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13495 (exit $ac_status); }; }; then
13496 ac_header_compiler=yes
13497 else
13498 echo "$as_me: failed program was:" >&5
13499 sed 's/^/| /' conftest.$ac_ext >&5
13500
13501 ac_header_compiler=no
13502 fi
13503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13504 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13505 echo "${ECHO_T}$ac_header_compiler" >&6
13506
13507 # Is the header present?
13508 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13509 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13510 cat >conftest.$ac_ext <<_ACEOF
13511 /* confdefs.h. */
13512 _ACEOF
13513 cat confdefs.h >>conftest.$ac_ext
13514 cat >>conftest.$ac_ext <<_ACEOF
13515 /* end confdefs.h. */
13516 #include <$ac_header>
13517 _ACEOF
13518 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13519 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13520 ac_status=$?
13521 grep -v '^ *+' conftest.er1 >conftest.err
13522 rm -f conftest.er1
13523 cat conftest.err >&5
13524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525 (exit $ac_status); } >/dev/null; then
13526 if test -s conftest.err; then
13527 ac_cpp_err=$ac_c_preproc_warn_flag
13528 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13529 else
13530 ac_cpp_err=
13531 fi
13532 else
13533 ac_cpp_err=yes
13534 fi
13535 if test -z "$ac_cpp_err"; then
13536 ac_header_preproc=yes
13537 else
13538 echo "$as_me: failed program was:" >&5
13539 sed 's/^/| /' conftest.$ac_ext >&5
13540
13541 ac_header_preproc=no
13542 fi
13543 rm -f conftest.err conftest.$ac_ext
13544 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13545 echo "${ECHO_T}$ac_header_preproc" >&6
13546
13547 # So? What about this header?
13548 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13549 yes:no: )
13550 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13551 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13552 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13553 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13554 ac_header_preproc=yes
13555 ;;
13556 no:yes:* )
13557 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13558 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13559 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13560 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13561 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13562 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13563 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13564 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13565 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13566 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13567 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13568 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13569 (
13570 cat <<\_ASBOX
13571 ## ----------------------------------------------------- ##
13572 ## Report this to the GNU OpenMP Runtime Library lists. ##
13573 ## ----------------------------------------------------- ##
13574 _ASBOX
13575 ) |
13576 sed "s/^/$as_me: WARNING: /" >&2
13577 ;;
13578 esac
13579 echo "$as_me:$LINENO: checking for $ac_header" >&5
13580 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13581 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13582 echo $ECHO_N "(cached) $ECHO_C" >&6
13583 else
13584 eval "$as_ac_Header=\$ac_header_preproc"
13585 fi
13586 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13587 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13588
13589 fi
13590 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13591 cat >>confdefs.h <<_ACEOF
13592 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13593 _ACEOF
13594
13595 fi
13596
13597 done
13598
13599
13600
13601
13602 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
13603
13604 acx_cv_header_stdint=stddef.h
13605 acx_cv_header_stdint_kind="(already complete)"
13606 for i in stdint.h $inttype_headers; do
13607 unset ac_cv_type_uintptr_t
13608 unset ac_cv_type_uintmax_t
13609 unset ac_cv_type_int_least32_t
13610 unset ac_cv_type_int_fast32_t
13611 unset ac_cv_type_uint64_t
13612 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
13613 echo "$as_me:$LINENO: checking for uintmax_t" >&5
13614 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
13615 if test "${ac_cv_type_uintmax_t+set}" = set; then
13616 echo $ECHO_N "(cached) $ECHO_C" >&6
13617 else
13618 cat >conftest.$ac_ext <<_ACEOF
13619 /* confdefs.h. */
13620 _ACEOF
13621 cat confdefs.h >>conftest.$ac_ext
13622 cat >>conftest.$ac_ext <<_ACEOF
13623 /* end confdefs.h. */
13624 #include <sys/types.h>
13625 #include <$i>
13626
13627 int
13628 main ()
13629 {
13630 if ((uintmax_t *) 0)
13631 return 0;
13632 if (sizeof (uintmax_t))
13633 return 0;
13634 ;
13635 return 0;
13636 }
13637 _ACEOF
13638 rm -f conftest.$ac_objext
13639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13640 (eval $ac_compile) 2>conftest.er1
13641 ac_status=$?
13642 grep -v '^ *+' conftest.er1 >conftest.err
13643 rm -f conftest.er1
13644 cat conftest.err >&5
13645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13646 (exit $ac_status); } &&
13647 { ac_try='test -z "$ac_c_werror_flag"
13648 || test ! -s conftest.err'
13649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13650 (eval $ac_try) 2>&5
13651 ac_status=$?
13652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653 (exit $ac_status); }; } &&
13654 { ac_try='test -s conftest.$ac_objext'
13655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13656 (eval $ac_try) 2>&5
13657 ac_status=$?
13658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13659 (exit $ac_status); }; }; then
13660 ac_cv_type_uintmax_t=yes
13661 else
13662 echo "$as_me: failed program was:" >&5
13663 sed 's/^/| /' conftest.$ac_ext >&5
13664
13665 ac_cv_type_uintmax_t=no
13666 fi
13667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13668 fi
13669 echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
13670 echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
13671 if test $ac_cv_type_uintmax_t = yes; then
13672 acx_cv_header_stdint=$i
13673 else
13674 continue
13675 fi
13676
13677 echo "$as_me:$LINENO: checking for uintptr_t" >&5
13678 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
13679 if test "${ac_cv_type_uintptr_t+set}" = set; then
13680 echo $ECHO_N "(cached) $ECHO_C" >&6
13681 else
13682 cat >conftest.$ac_ext <<_ACEOF
13683 /* confdefs.h. */
13684 _ACEOF
13685 cat confdefs.h >>conftest.$ac_ext
13686 cat >>conftest.$ac_ext <<_ACEOF
13687 /* end confdefs.h. */
13688 #include <sys/types.h>
13689 #include <$i>
13690
13691 int
13692 main ()
13693 {
13694 if ((uintptr_t *) 0)
13695 return 0;
13696 if (sizeof (uintptr_t))
13697 return 0;
13698 ;
13699 return 0;
13700 }
13701 _ACEOF
13702 rm -f conftest.$ac_objext
13703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13704 (eval $ac_compile) 2>conftest.er1
13705 ac_status=$?
13706 grep -v '^ *+' conftest.er1 >conftest.err
13707 rm -f conftest.er1
13708 cat conftest.err >&5
13709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13710 (exit $ac_status); } &&
13711 { ac_try='test -z "$ac_c_werror_flag"
13712 || test ! -s conftest.err'
13713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13714 (eval $ac_try) 2>&5
13715 ac_status=$?
13716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717 (exit $ac_status); }; } &&
13718 { ac_try='test -s conftest.$ac_objext'
13719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13720 (eval $ac_try) 2>&5
13721 ac_status=$?
13722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723 (exit $ac_status); }; }; then
13724 ac_cv_type_uintptr_t=yes
13725 else
13726 echo "$as_me: failed program was:" >&5
13727 sed 's/^/| /' conftest.$ac_ext >&5
13728
13729 ac_cv_type_uintptr_t=no
13730 fi
13731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13732 fi
13733 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
13734 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
13735 if test $ac_cv_type_uintptr_t = yes; then
13736 :
13737 else
13738 acx_cv_header_stdint_kind="(mostly complete)"
13739 fi
13740
13741 echo "$as_me:$LINENO: checking for int_least32_t" >&5
13742 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
13743 if test "${ac_cv_type_int_least32_t+set}" = set; then
13744 echo $ECHO_N "(cached) $ECHO_C" >&6
13745 else
13746 cat >conftest.$ac_ext <<_ACEOF
13747 /* confdefs.h. */
13748 _ACEOF
13749 cat confdefs.h >>conftest.$ac_ext
13750 cat >>conftest.$ac_ext <<_ACEOF
13751 /* end confdefs.h. */
13752 #include <sys/types.h>
13753 #include <$i>
13754
13755 int
13756 main ()
13757 {
13758 if ((int_least32_t *) 0)
13759 return 0;
13760 if (sizeof (int_least32_t))
13761 return 0;
13762 ;
13763 return 0;
13764 }
13765 _ACEOF
13766 rm -f conftest.$ac_objext
13767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13768 (eval $ac_compile) 2>conftest.er1
13769 ac_status=$?
13770 grep -v '^ *+' conftest.er1 >conftest.err
13771 rm -f conftest.er1
13772 cat conftest.err >&5
13773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13774 (exit $ac_status); } &&
13775 { ac_try='test -z "$ac_c_werror_flag"
13776 || test ! -s conftest.err'
13777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13778 (eval $ac_try) 2>&5
13779 ac_status=$?
13780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13781 (exit $ac_status); }; } &&
13782 { ac_try='test -s conftest.$ac_objext'
13783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13784 (eval $ac_try) 2>&5
13785 ac_status=$?
13786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13787 (exit $ac_status); }; }; then
13788 ac_cv_type_int_least32_t=yes
13789 else
13790 echo "$as_me: failed program was:" >&5
13791 sed 's/^/| /' conftest.$ac_ext >&5
13792
13793 ac_cv_type_int_least32_t=no
13794 fi
13795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13796 fi
13797 echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
13798 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
13799 if test $ac_cv_type_int_least32_t = yes; then
13800 :
13801 else
13802 acx_cv_header_stdint_kind="(mostly complete)"
13803 fi
13804
13805 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
13806 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
13807 if test "${ac_cv_type_int_fast32_t+set}" = set; then
13808 echo $ECHO_N "(cached) $ECHO_C" >&6
13809 else
13810 cat >conftest.$ac_ext <<_ACEOF
13811 /* confdefs.h. */
13812 _ACEOF
13813 cat confdefs.h >>conftest.$ac_ext
13814 cat >>conftest.$ac_ext <<_ACEOF
13815 /* end confdefs.h. */
13816 #include <sys/types.h>
13817 #include <$i>
13818
13819 int
13820 main ()
13821 {
13822 if ((int_fast32_t *) 0)
13823 return 0;
13824 if (sizeof (int_fast32_t))
13825 return 0;
13826 ;
13827 return 0;
13828 }
13829 _ACEOF
13830 rm -f conftest.$ac_objext
13831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13832 (eval $ac_compile) 2>conftest.er1
13833 ac_status=$?
13834 grep -v '^ *+' conftest.er1 >conftest.err
13835 rm -f conftest.er1
13836 cat conftest.err >&5
13837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13838 (exit $ac_status); } &&
13839 { ac_try='test -z "$ac_c_werror_flag"
13840 || test ! -s conftest.err'
13841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13842 (eval $ac_try) 2>&5
13843 ac_status=$?
13844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13845 (exit $ac_status); }; } &&
13846 { ac_try='test -s conftest.$ac_objext'
13847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13848 (eval $ac_try) 2>&5
13849 ac_status=$?
13850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13851 (exit $ac_status); }; }; then
13852 ac_cv_type_int_fast32_t=yes
13853 else
13854 echo "$as_me: failed program was:" >&5
13855 sed 's/^/| /' conftest.$ac_ext >&5
13856
13857 ac_cv_type_int_fast32_t=no
13858 fi
13859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13860 fi
13861 echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
13862 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
13863 if test $ac_cv_type_int_fast32_t = yes; then
13864 :
13865 else
13866 acx_cv_header_stdint_kind="(mostly complete)"
13867 fi
13868
13869 echo "$as_me:$LINENO: checking for uint64_t" >&5
13870 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
13871 if test "${ac_cv_type_uint64_t+set}" = set; then
13872 echo $ECHO_N "(cached) $ECHO_C" >&6
13873 else
13874 cat >conftest.$ac_ext <<_ACEOF
13875 /* confdefs.h. */
13876 _ACEOF
13877 cat confdefs.h >>conftest.$ac_ext
13878 cat >>conftest.$ac_ext <<_ACEOF
13879 /* end confdefs.h. */
13880 #include <sys/types.h>
13881 #include <$i>
13882
13883 int
13884 main ()
13885 {
13886 if ((uint64_t *) 0)
13887 return 0;
13888 if (sizeof (uint64_t))
13889 return 0;
13890 ;
13891 return 0;
13892 }
13893 _ACEOF
13894 rm -f conftest.$ac_objext
13895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13896 (eval $ac_compile) 2>conftest.er1
13897 ac_status=$?
13898 grep -v '^ *+' conftest.er1 >conftest.err
13899 rm -f conftest.er1
13900 cat conftest.err >&5
13901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13902 (exit $ac_status); } &&
13903 { ac_try='test -z "$ac_c_werror_flag"
13904 || test ! -s conftest.err'
13905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13906 (eval $ac_try) 2>&5
13907 ac_status=$?
13908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13909 (exit $ac_status); }; } &&
13910 { ac_try='test -s conftest.$ac_objext'
13911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13912 (eval $ac_try) 2>&5
13913 ac_status=$?
13914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13915 (exit $ac_status); }; }; then
13916 ac_cv_type_uint64_t=yes
13917 else
13918 echo "$as_me: failed program was:" >&5
13919 sed 's/^/| /' conftest.$ac_ext >&5
13920
13921 ac_cv_type_uint64_t=no
13922 fi
13923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13924 fi
13925 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13926 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
13927 if test $ac_cv_type_uint64_t = yes; then
13928 :
13929 else
13930 acx_cv_header_stdint_kind="(lacks uint64_t)"
13931 fi
13932
13933 break
13934 done
13935 if test "$acx_cv_header_stdint" = stddef.h; then
13936 acx_cv_header_stdint_kind="(lacks uintmax_t)"
13937 for i in stdint.h $inttype_headers; do
13938 unset ac_cv_type_uintptr_t
13939 unset ac_cv_type_uint32_t
13940 unset ac_cv_type_uint64_t
13941 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
13942 echo "$as_me:$LINENO: checking for uint32_t" >&5
13943 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
13944 if test "${ac_cv_type_uint32_t+set}" = set; then
13945 echo $ECHO_N "(cached) $ECHO_C" >&6
13946 else
13947 cat >conftest.$ac_ext <<_ACEOF
13948 /* confdefs.h. */
13949 _ACEOF
13950 cat confdefs.h >>conftest.$ac_ext
13951 cat >>conftest.$ac_ext <<_ACEOF
13952 /* end confdefs.h. */
13953 #include <sys/types.h>
13954 #include <$i>
13955
13956 int
13957 main ()
13958 {
13959 if ((uint32_t *) 0)
13960 return 0;
13961 if (sizeof (uint32_t))
13962 return 0;
13963 ;
13964 return 0;
13965 }
13966 _ACEOF
13967 rm -f conftest.$ac_objext
13968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13969 (eval $ac_compile) 2>conftest.er1
13970 ac_status=$?
13971 grep -v '^ *+' conftest.er1 >conftest.err
13972 rm -f conftest.er1
13973 cat conftest.err >&5
13974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13975 (exit $ac_status); } &&
13976 { ac_try='test -z "$ac_c_werror_flag"
13977 || test ! -s conftest.err'
13978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13979 (eval $ac_try) 2>&5
13980 ac_status=$?
13981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13982 (exit $ac_status); }; } &&
13983 { ac_try='test -s conftest.$ac_objext'
13984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13985 (eval $ac_try) 2>&5
13986 ac_status=$?
13987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13988 (exit $ac_status); }; }; then
13989 ac_cv_type_uint32_t=yes
13990 else
13991 echo "$as_me: failed program was:" >&5
13992 sed 's/^/| /' conftest.$ac_ext >&5
13993
13994 ac_cv_type_uint32_t=no
13995 fi
13996 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13997 fi
13998 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
13999 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
14000 if test $ac_cv_type_uint32_t = yes; then
14001 acx_cv_header_stdint=$i
14002 else
14003 continue
14004 fi
14005
14006 echo "$as_me:$LINENO: checking for uint64_t" >&5
14007 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
14008 if test "${ac_cv_type_uint64_t+set}" = set; then
14009 echo $ECHO_N "(cached) $ECHO_C" >&6
14010 else
14011 cat >conftest.$ac_ext <<_ACEOF
14012 /* confdefs.h. */
14013 _ACEOF
14014 cat confdefs.h >>conftest.$ac_ext
14015 cat >>conftest.$ac_ext <<_ACEOF
14016 /* end confdefs.h. */
14017 #include <sys/types.h>
14018 #include <$i>
14019
14020 int
14021 main ()
14022 {
14023 if ((uint64_t *) 0)
14024 return 0;
14025 if (sizeof (uint64_t))
14026 return 0;
14027 ;
14028 return 0;
14029 }
14030 _ACEOF
14031 rm -f conftest.$ac_objext
14032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14033 (eval $ac_compile) 2>conftest.er1
14034 ac_status=$?
14035 grep -v '^ *+' conftest.er1 >conftest.err
14036 rm -f conftest.er1
14037 cat conftest.err >&5
14038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14039 (exit $ac_status); } &&
14040 { ac_try='test -z "$ac_c_werror_flag"
14041 || test ! -s conftest.err'
14042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14043 (eval $ac_try) 2>&5
14044 ac_status=$?
14045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14046 (exit $ac_status); }; } &&
14047 { ac_try='test -s conftest.$ac_objext'
14048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14049 (eval $ac_try) 2>&5
14050 ac_status=$?
14051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14052 (exit $ac_status); }; }; then
14053 ac_cv_type_uint64_t=yes
14054 else
14055 echo "$as_me: failed program was:" >&5
14056 sed 's/^/| /' conftest.$ac_ext >&5
14057
14058 ac_cv_type_uint64_t=no
14059 fi
14060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14061 fi
14062 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
14063 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
14064
14065 echo "$as_me:$LINENO: checking for uintptr_t" >&5
14066 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
14067 if test "${ac_cv_type_uintptr_t+set}" = set; then
14068 echo $ECHO_N "(cached) $ECHO_C" >&6
14069 else
14070 cat >conftest.$ac_ext <<_ACEOF
14071 /* confdefs.h. */
14072 _ACEOF
14073 cat confdefs.h >>conftest.$ac_ext
14074 cat >>conftest.$ac_ext <<_ACEOF
14075 /* end confdefs.h. */
14076 #include <sys/types.h>
14077 #include <$i>
14078
14079 int
14080 main ()
14081 {
14082 if ((uintptr_t *) 0)
14083 return 0;
14084 if (sizeof (uintptr_t))
14085 return 0;
14086 ;
14087 return 0;
14088 }
14089 _ACEOF
14090 rm -f conftest.$ac_objext
14091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14092 (eval $ac_compile) 2>conftest.er1
14093 ac_status=$?
14094 grep -v '^ *+' conftest.er1 >conftest.err
14095 rm -f conftest.er1
14096 cat conftest.err >&5
14097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14098 (exit $ac_status); } &&
14099 { ac_try='test -z "$ac_c_werror_flag"
14100 || test ! -s conftest.err'
14101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14102 (eval $ac_try) 2>&5
14103 ac_status=$?
14104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14105 (exit $ac_status); }; } &&
14106 { ac_try='test -s conftest.$ac_objext'
14107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14108 (eval $ac_try) 2>&5
14109 ac_status=$?
14110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14111 (exit $ac_status); }; }; then
14112 ac_cv_type_uintptr_t=yes
14113 else
14114 echo "$as_me: failed program was:" >&5
14115 sed 's/^/| /' conftest.$ac_ext >&5
14116
14117 ac_cv_type_uintptr_t=no
14118 fi
14119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14120 fi
14121 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
14122 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
14123
14124 break
14125 done
14126 fi
14127 if test "$acx_cv_header_stdint" = stddef.h; then
14128 acx_cv_header_stdint_kind="(u_intXX_t style)"
14129 for i in sys/types.h $inttype_headers; do
14130 unset ac_cv_type_u_int32_t
14131 unset ac_cv_type_u_int64_t
14132 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
14133 echo "$as_me:$LINENO: checking for u_int32_t" >&5
14134 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
14135 if test "${ac_cv_type_u_int32_t+set}" = set; then
14136 echo $ECHO_N "(cached) $ECHO_C" >&6
14137 else
14138 cat >conftest.$ac_ext <<_ACEOF
14139 /* confdefs.h. */
14140 _ACEOF
14141 cat confdefs.h >>conftest.$ac_ext
14142 cat >>conftest.$ac_ext <<_ACEOF
14143 /* end confdefs.h. */
14144 #include <sys/types.h>
14145 #include <$i>
14146
14147 int
14148 main ()
14149 {
14150 if ((u_int32_t *) 0)
14151 return 0;
14152 if (sizeof (u_int32_t))
14153 return 0;
14154 ;
14155 return 0;
14156 }
14157 _ACEOF
14158 rm -f conftest.$ac_objext
14159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14160 (eval $ac_compile) 2>conftest.er1
14161 ac_status=$?
14162 grep -v '^ *+' conftest.er1 >conftest.err
14163 rm -f conftest.er1
14164 cat conftest.err >&5
14165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14166 (exit $ac_status); } &&
14167 { ac_try='test -z "$ac_c_werror_flag"
14168 || test ! -s conftest.err'
14169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14170 (eval $ac_try) 2>&5
14171 ac_status=$?
14172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14173 (exit $ac_status); }; } &&
14174 { ac_try='test -s conftest.$ac_objext'
14175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14176 (eval $ac_try) 2>&5
14177 ac_status=$?
14178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179 (exit $ac_status); }; }; then
14180 ac_cv_type_u_int32_t=yes
14181 else
14182 echo "$as_me: failed program was:" >&5
14183 sed 's/^/| /' conftest.$ac_ext >&5
14184
14185 ac_cv_type_u_int32_t=no
14186 fi
14187 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14188 fi
14189 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
14190 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
14191 if test $ac_cv_type_u_int32_t = yes; then
14192 acx_cv_header_stdint=$i
14193 else
14194 continue
14195 fi
14196
14197 echo "$as_me:$LINENO: checking for u_int64_t" >&5
14198 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
14199 if test "${ac_cv_type_u_int64_t+set}" = set; then
14200 echo $ECHO_N "(cached) $ECHO_C" >&6
14201 else
14202 cat >conftest.$ac_ext <<_ACEOF
14203 /* confdefs.h. */
14204 _ACEOF
14205 cat confdefs.h >>conftest.$ac_ext
14206 cat >>conftest.$ac_ext <<_ACEOF
14207 /* end confdefs.h. */
14208 #include <sys/types.h>
14209 #include <$i>
14210
14211 int
14212 main ()
14213 {
14214 if ((u_int64_t *) 0)
14215 return 0;
14216 if (sizeof (u_int64_t))
14217 return 0;
14218 ;
14219 return 0;
14220 }
14221 _ACEOF
14222 rm -f conftest.$ac_objext
14223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14224 (eval $ac_compile) 2>conftest.er1
14225 ac_status=$?
14226 grep -v '^ *+' conftest.er1 >conftest.err
14227 rm -f conftest.er1
14228 cat conftest.err >&5
14229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14230 (exit $ac_status); } &&
14231 { ac_try='test -z "$ac_c_werror_flag"
14232 || test ! -s conftest.err'
14233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14234 (eval $ac_try) 2>&5
14235 ac_status=$?
14236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14237 (exit $ac_status); }; } &&
14238 { ac_try='test -s conftest.$ac_objext'
14239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14240 (eval $ac_try) 2>&5
14241 ac_status=$?
14242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14243 (exit $ac_status); }; }; then
14244 ac_cv_type_u_int64_t=yes
14245 else
14246 echo "$as_me: failed program was:" >&5
14247 sed 's/^/| /' conftest.$ac_ext >&5
14248
14249 ac_cv_type_u_int64_t=no
14250 fi
14251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14252 fi
14253 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
14254 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
14255
14256 break
14257 done
14258 fi
14259 if test "$acx_cv_header_stdint" = stddef.h; then
14260 acx_cv_header_stdint_kind="(using manual detection)"
14261 fi
14262
14263 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
14264 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
14265 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
14266 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
14267 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
14268
14269 # ----------------- Summarize what we found so far
14270
14271 echo "$as_me:$LINENO: checking what to include in gstdint.h" >&5
14272 echo $ECHO_N "checking what to include in gstdint.h... $ECHO_C" >&6
14273
14274 case `$as_basename gstdint.h ||
14275 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
14276 Xgstdint.h : 'X\(//\)$' \| \
14277 Xgstdint.h : 'X\(/\)$' \| \
14278 . : '\(.\)' 2>/dev/null ||
14279 echo X/gstdint.h |
14280 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14281 /^X\/\(\/\/\)$/{ s//\1/; q; }
14282 /^X\/\(\/\).*/{ s//\1/; q; }
14283 s/.*/./; q'` in
14284 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
14285 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14286 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
14287 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14288 *) ;;
14289 esac
14290
14291 echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
14292 echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
14293
14294 # ----------------- done included file, check C basic types --------
14295
14296 # Lacking an uintptr_t? Test size of void *
14297 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
14298 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
14299 echo $ECHO_N "checking for void *... $ECHO_C" >&6
14300 if test "${ac_cv_type_void_p+set}" = set; then
14301 echo $ECHO_N "(cached) $ECHO_C" >&6
14302 else
14303 cat >conftest.$ac_ext <<_ACEOF
14304 /* confdefs.h. */
14305 _ACEOF
14306 cat confdefs.h >>conftest.$ac_ext
14307 cat >>conftest.$ac_ext <<_ACEOF
14308 /* end confdefs.h. */
14309 $ac_includes_default
14310 int
14311 main ()
14312 {
14313 if ((void * *) 0)
14314 return 0;
14315 if (sizeof (void *))
14316 return 0;
14317 ;
14318 return 0;
14319 }
14320 _ACEOF
14321 rm -f conftest.$ac_objext
14322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14323 (eval $ac_compile) 2>conftest.er1
14324 ac_status=$?
14325 grep -v '^ *+' conftest.er1 >conftest.err
14326 rm -f conftest.er1
14327 cat conftest.err >&5
14328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14329 (exit $ac_status); } &&
14330 { ac_try='test -z "$ac_c_werror_flag"
14331 || test ! -s conftest.err'
14332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14333 (eval $ac_try) 2>&5
14334 ac_status=$?
14335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14336 (exit $ac_status); }; } &&
14337 { ac_try='test -s conftest.$ac_objext'
14338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14339 (eval $ac_try) 2>&5
14340 ac_status=$?
14341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14342 (exit $ac_status); }; }; then
14343 ac_cv_type_void_p=yes
14344 else
14345 echo "$as_me: failed program was:" >&5
14346 sed 's/^/| /' conftest.$ac_ext >&5
14347
14348 ac_cv_type_void_p=no
14349 fi
14350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14351 fi
14352 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14353 echo "${ECHO_T}$ac_cv_type_void_p" >&6
14354
14355 echo "$as_me:$LINENO: checking size of void *" >&5
14356 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14357 if test "${ac_cv_sizeof_void_p+set}" = set; then
14358 echo $ECHO_N "(cached) $ECHO_C" >&6
14359 else
14360 if test "$ac_cv_type_void_p" = yes; then
14361 # The cast to unsigned long works around a bug in the HP C Compiler
14362 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14363 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14364 # This bug is HP SR number 8606223364.
14365 if test "$cross_compiling" = yes; then
14366 # Depending upon the size, compute the lo and hi bounds.
14367 cat >conftest.$ac_ext <<_ACEOF
14368 /* confdefs.h. */
14369 _ACEOF
14370 cat confdefs.h >>conftest.$ac_ext
14371 cat >>conftest.$ac_ext <<_ACEOF
14372 /* end confdefs.h. */
14373 $ac_includes_default
14374 int
14375 main ()
14376 {
14377 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14378 test_array [0] = 0
14379
14380 ;
14381 return 0;
14382 }
14383 _ACEOF
14384 rm -f conftest.$ac_objext
14385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14386 (eval $ac_compile) 2>conftest.er1
14387 ac_status=$?
14388 grep -v '^ *+' conftest.er1 >conftest.err
14389 rm -f conftest.er1
14390 cat conftest.err >&5
14391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14392 (exit $ac_status); } &&
14393 { ac_try='test -z "$ac_c_werror_flag"
14394 || test ! -s conftest.err'
14395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14396 (eval $ac_try) 2>&5
14397 ac_status=$?
14398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14399 (exit $ac_status); }; } &&
14400 { ac_try='test -s conftest.$ac_objext'
14401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14402 (eval $ac_try) 2>&5
14403 ac_status=$?
14404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14405 (exit $ac_status); }; }; then
14406 ac_lo=0 ac_mid=0
14407 while :; do
14408 cat >conftest.$ac_ext <<_ACEOF
14409 /* confdefs.h. */
14410 _ACEOF
14411 cat confdefs.h >>conftest.$ac_ext
14412 cat >>conftest.$ac_ext <<_ACEOF
14413 /* end confdefs.h. */
14414 $ac_includes_default
14415 int
14416 main ()
14417 {
14418 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14419 test_array [0] = 0
14420
14421 ;
14422 return 0;
14423 }
14424 _ACEOF
14425 rm -f conftest.$ac_objext
14426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14427 (eval $ac_compile) 2>conftest.er1
14428 ac_status=$?
14429 grep -v '^ *+' conftest.er1 >conftest.err
14430 rm -f conftest.er1
14431 cat conftest.err >&5
14432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433 (exit $ac_status); } &&
14434 { ac_try='test -z "$ac_c_werror_flag"
14435 || test ! -s conftest.err'
14436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14437 (eval $ac_try) 2>&5
14438 ac_status=$?
14439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14440 (exit $ac_status); }; } &&
14441 { ac_try='test -s conftest.$ac_objext'
14442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14443 (eval $ac_try) 2>&5
14444 ac_status=$?
14445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14446 (exit $ac_status); }; }; then
14447 ac_hi=$ac_mid; break
14448 else
14449 echo "$as_me: failed program was:" >&5
14450 sed 's/^/| /' conftest.$ac_ext >&5
14451
14452 ac_lo=`expr $ac_mid + 1`
14453 if test $ac_lo -le $ac_mid; then
14454 ac_lo= ac_hi=
14455 break
14456 fi
14457 ac_mid=`expr 2 '*' $ac_mid + 1`
14458 fi
14459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14460 done
14461 else
14462 echo "$as_me: failed program was:" >&5
14463 sed 's/^/| /' conftest.$ac_ext >&5
14464
14465 cat >conftest.$ac_ext <<_ACEOF
14466 /* confdefs.h. */
14467 _ACEOF
14468 cat confdefs.h >>conftest.$ac_ext
14469 cat >>conftest.$ac_ext <<_ACEOF
14470 /* end confdefs.h. */
14471 $ac_includes_default
14472 int
14473 main ()
14474 {
14475 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
14476 test_array [0] = 0
14477
14478 ;
14479 return 0;
14480 }
14481 _ACEOF
14482 rm -f conftest.$ac_objext
14483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14484 (eval $ac_compile) 2>conftest.er1
14485 ac_status=$?
14486 grep -v '^ *+' conftest.er1 >conftest.err
14487 rm -f conftest.er1
14488 cat conftest.err >&5
14489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14490 (exit $ac_status); } &&
14491 { ac_try='test -z "$ac_c_werror_flag"
14492 || test ! -s conftest.err'
14493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14494 (eval $ac_try) 2>&5
14495 ac_status=$?
14496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14497 (exit $ac_status); }; } &&
14498 { ac_try='test -s conftest.$ac_objext'
14499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14500 (eval $ac_try) 2>&5
14501 ac_status=$?
14502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14503 (exit $ac_status); }; }; then
14504 ac_hi=-1 ac_mid=-1
14505 while :; do
14506 cat >conftest.$ac_ext <<_ACEOF
14507 /* confdefs.h. */
14508 _ACEOF
14509 cat confdefs.h >>conftest.$ac_ext
14510 cat >>conftest.$ac_ext <<_ACEOF
14511 /* end confdefs.h. */
14512 $ac_includes_default
14513 int
14514 main ()
14515 {
14516 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
14517 test_array [0] = 0
14518
14519 ;
14520 return 0;
14521 }
14522 _ACEOF
14523 rm -f conftest.$ac_objext
14524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14525 (eval $ac_compile) 2>conftest.er1
14526 ac_status=$?
14527 grep -v '^ *+' conftest.er1 >conftest.err
14528 rm -f conftest.er1
14529 cat conftest.err >&5
14530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531 (exit $ac_status); } &&
14532 { ac_try='test -z "$ac_c_werror_flag"
14533 || test ! -s conftest.err'
14534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14535 (eval $ac_try) 2>&5
14536 ac_status=$?
14537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14538 (exit $ac_status); }; } &&
14539 { ac_try='test -s conftest.$ac_objext'
14540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14541 (eval $ac_try) 2>&5
14542 ac_status=$?
14543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14544 (exit $ac_status); }; }; then
14545 ac_lo=$ac_mid; break
14546 else
14547 echo "$as_me: failed program was:" >&5
14548 sed 's/^/| /' conftest.$ac_ext >&5
14549
14550 ac_hi=`expr '(' $ac_mid ')' - 1`
14551 if test $ac_mid -le $ac_hi; then
14552 ac_lo= ac_hi=
14553 break
14554 fi
14555 ac_mid=`expr 2 '*' $ac_mid`
14556 fi
14557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14558 done
14559 else
14560 echo "$as_me: failed program was:" >&5
14561 sed 's/^/| /' conftest.$ac_ext >&5
14562
14563 ac_lo= ac_hi=
14564 fi
14565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14566 fi
14567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14568 # Binary search between lo and hi bounds.
14569 while test "x$ac_lo" != "x$ac_hi"; do
14570 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14571 cat >conftest.$ac_ext <<_ACEOF
14572 /* confdefs.h. */
14573 _ACEOF
14574 cat confdefs.h >>conftest.$ac_ext
14575 cat >>conftest.$ac_ext <<_ACEOF
14576 /* end confdefs.h. */
14577 $ac_includes_default
14578 int
14579 main ()
14580 {
14581 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14582 test_array [0] = 0
14583
14584 ;
14585 return 0;
14586 }
14587 _ACEOF
14588 rm -f conftest.$ac_objext
14589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14590 (eval $ac_compile) 2>conftest.er1
14591 ac_status=$?
14592 grep -v '^ *+' conftest.er1 >conftest.err
14593 rm -f conftest.er1
14594 cat conftest.err >&5
14595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14596 (exit $ac_status); } &&
14597 { ac_try='test -z "$ac_c_werror_flag"
14598 || test ! -s conftest.err'
14599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14600 (eval $ac_try) 2>&5
14601 ac_status=$?
14602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14603 (exit $ac_status); }; } &&
14604 { ac_try='test -s conftest.$ac_objext'
14605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14606 (eval $ac_try) 2>&5
14607 ac_status=$?
14608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14609 (exit $ac_status); }; }; then
14610 ac_hi=$ac_mid
14611 else
14612 echo "$as_me: failed program was:" >&5
14613 sed 's/^/| /' conftest.$ac_ext >&5
14614
14615 ac_lo=`expr '(' $ac_mid ')' + 1`
14616 fi
14617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14618 done
14619 case $ac_lo in
14620 ?*) ac_cv_sizeof_void_p=$ac_lo;;
14621 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14622 See \`config.log' for more details." >&5
14623 echo "$as_me: error: cannot compute sizeof (void *), 77
14624 See \`config.log' for more details." >&2;}
14625 { (exit 1); exit 1; }; } ;;
14626 esac
14627 else
14628 if test "$cross_compiling" = yes; then
14629 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14630 See \`config.log' for more details." >&5
14631 echo "$as_me: error: cannot run test program while cross compiling
14632 See \`config.log' for more details." >&2;}
14633 { (exit 1); exit 1; }; }
14634 else
14635 cat >conftest.$ac_ext <<_ACEOF
14636 /* confdefs.h. */
14637 _ACEOF
14638 cat confdefs.h >>conftest.$ac_ext
14639 cat >>conftest.$ac_ext <<_ACEOF
14640 /* end confdefs.h. */
14641 $ac_includes_default
14642 long longval () { return (long) (sizeof (void *)); }
14643 unsigned long ulongval () { return (long) (sizeof (void *)); }
14644 #include <stdio.h>
14645 #include <stdlib.h>
14646 int
14647 main ()
14648 {
14649
14650 FILE *f = fopen ("conftest.val", "w");
14651 if (! f)
14652 exit (1);
14653 if (((long) (sizeof (void *))) < 0)
14654 {
14655 long i = longval ();
14656 if (i != ((long) (sizeof (void *))))
14657 exit (1);
14658 fprintf (f, "%ld\n", i);
14659 }
14660 else
14661 {
14662 unsigned long i = ulongval ();
14663 if (i != ((long) (sizeof (void *))))
14664 exit (1);
14665 fprintf (f, "%lu\n", i);
14666 }
14667 exit (ferror (f) || fclose (f) != 0);
14668
14669 ;
14670 return 0;
14671 }
14672 _ACEOF
14673 rm -f conftest$ac_exeext
14674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14675 (eval $ac_link) 2>&5
14676 ac_status=$?
14677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14678 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14680 (eval $ac_try) 2>&5
14681 ac_status=$?
14682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14683 (exit $ac_status); }; }; then
14684 ac_cv_sizeof_void_p=`cat conftest.val`
14685 else
14686 echo "$as_me: program exited with status $ac_status" >&5
14687 echo "$as_me: failed program was:" >&5
14688 sed 's/^/| /' conftest.$ac_ext >&5
14689
14690 ( exit $ac_status )
14691 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14692 See \`config.log' for more details." >&5
14693 echo "$as_me: error: cannot compute sizeof (void *), 77
14694 See \`config.log' for more details." >&2;}
14695 { (exit 1); exit 1; }; }
14696 fi
14697 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14698 fi
14699 fi
14700 rm -f conftest.val
14701 else
14702 ac_cv_sizeof_void_p=0
14703 fi
14704 fi
14705 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14706 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
14707 cat >>confdefs.h <<_ACEOF
14708 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14709 _ACEOF
14710
14711 ;;
14712 esac
14713
14714 # Lacking an uint64_t? Test size of long
14715 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
14716 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
14717 echo $ECHO_N "checking for long... $ECHO_C" >&6
14718 if test "${ac_cv_type_long+set}" = set; then
14719 echo $ECHO_N "(cached) $ECHO_C" >&6
14720 else
14721 cat >conftest.$ac_ext <<_ACEOF
14722 /* confdefs.h. */
14723 _ACEOF
14724 cat confdefs.h >>conftest.$ac_ext
14725 cat >>conftest.$ac_ext <<_ACEOF
14726 /* end confdefs.h. */
14727 $ac_includes_default
14728 int
14729 main ()
14730 {
14731 if ((long *) 0)
14732 return 0;
14733 if (sizeof (long))
14734 return 0;
14735 ;
14736 return 0;
14737 }
14738 _ACEOF
14739 rm -f conftest.$ac_objext
14740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14741 (eval $ac_compile) 2>conftest.er1
14742 ac_status=$?
14743 grep -v '^ *+' conftest.er1 >conftest.err
14744 rm -f conftest.er1
14745 cat conftest.err >&5
14746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14747 (exit $ac_status); } &&
14748 { ac_try='test -z "$ac_c_werror_flag"
14749 || test ! -s conftest.err'
14750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14751 (eval $ac_try) 2>&5
14752 ac_status=$?
14753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14754 (exit $ac_status); }; } &&
14755 { ac_try='test -s conftest.$ac_objext'
14756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14757 (eval $ac_try) 2>&5
14758 ac_status=$?
14759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14760 (exit $ac_status); }; }; then
14761 ac_cv_type_long=yes
14762 else
14763 echo "$as_me: failed program was:" >&5
14764 sed 's/^/| /' conftest.$ac_ext >&5
14765
14766 ac_cv_type_long=no
14767 fi
14768 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14769 fi
14770 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
14771 echo "${ECHO_T}$ac_cv_type_long" >&6
14772
14773 echo "$as_me:$LINENO: checking size of long" >&5
14774 echo $ECHO_N "checking size of long... $ECHO_C" >&6
14775 if test "${ac_cv_sizeof_long+set}" = set; then
14776 echo $ECHO_N "(cached) $ECHO_C" >&6
14777 else
14778 if test "$ac_cv_type_long" = yes; then
14779 # The cast to unsigned long works around a bug in the HP C Compiler
14780 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14781 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14782 # This bug is HP SR number 8606223364.
14783 if test "$cross_compiling" = yes; then
14784 # Depending upon the size, compute the lo and hi bounds.
14785 cat >conftest.$ac_ext <<_ACEOF
14786 /* confdefs.h. */
14787 _ACEOF
14788 cat confdefs.h >>conftest.$ac_ext
14789 cat >>conftest.$ac_ext <<_ACEOF
14790 /* end confdefs.h. */
14791 $ac_includes_default
14792 int
14793 main ()
14794 {
14795 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
14796 test_array [0] = 0
14797
14798 ;
14799 return 0;
14800 }
14801 _ACEOF
14802 rm -f conftest.$ac_objext
14803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14804 (eval $ac_compile) 2>conftest.er1
14805 ac_status=$?
14806 grep -v '^ *+' conftest.er1 >conftest.err
14807 rm -f conftest.er1
14808 cat conftest.err >&5
14809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14810 (exit $ac_status); } &&
14811 { ac_try='test -z "$ac_c_werror_flag"
14812 || test ! -s conftest.err'
14813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14814 (eval $ac_try) 2>&5
14815 ac_status=$?
14816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14817 (exit $ac_status); }; } &&
14818 { ac_try='test -s conftest.$ac_objext'
14819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14820 (eval $ac_try) 2>&5
14821 ac_status=$?
14822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14823 (exit $ac_status); }; }; then
14824 ac_lo=0 ac_mid=0
14825 while :; do
14826 cat >conftest.$ac_ext <<_ACEOF
14827 /* confdefs.h. */
14828 _ACEOF
14829 cat confdefs.h >>conftest.$ac_ext
14830 cat >>conftest.$ac_ext <<_ACEOF
14831 /* end confdefs.h. */
14832 $ac_includes_default
14833 int
14834 main ()
14835 {
14836 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
14837 test_array [0] = 0
14838
14839 ;
14840 return 0;
14841 }
14842 _ACEOF
14843 rm -f conftest.$ac_objext
14844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14845 (eval $ac_compile) 2>conftest.er1
14846 ac_status=$?
14847 grep -v '^ *+' conftest.er1 >conftest.err
14848 rm -f conftest.er1
14849 cat conftest.err >&5
14850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14851 (exit $ac_status); } &&
14852 { ac_try='test -z "$ac_c_werror_flag"
14853 || test ! -s conftest.err'
14854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14855 (eval $ac_try) 2>&5
14856 ac_status=$?
14857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14858 (exit $ac_status); }; } &&
14859 { ac_try='test -s conftest.$ac_objext'
14860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14861 (eval $ac_try) 2>&5
14862 ac_status=$?
14863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14864 (exit $ac_status); }; }; then
14865 ac_hi=$ac_mid; break
14866 else
14867 echo "$as_me: failed program was:" >&5
14868 sed 's/^/| /' conftest.$ac_ext >&5
14869
14870 ac_lo=`expr $ac_mid + 1`
14871 if test $ac_lo -le $ac_mid; then
14872 ac_lo= ac_hi=
14873 break
14874 fi
14875 ac_mid=`expr 2 '*' $ac_mid + 1`
14876 fi
14877 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14878 done
14879 else
14880 echo "$as_me: failed program was:" >&5
14881 sed 's/^/| /' conftest.$ac_ext >&5
14882
14883 cat >conftest.$ac_ext <<_ACEOF
14884 /* confdefs.h. */
14885 _ACEOF
14886 cat confdefs.h >>conftest.$ac_ext
14887 cat >>conftest.$ac_ext <<_ACEOF
14888 /* end confdefs.h. */
14889 $ac_includes_default
14890 int
14891 main ()
14892 {
14893 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
14894 test_array [0] = 0
14895
14896 ;
14897 return 0;
14898 }
14899 _ACEOF
14900 rm -f conftest.$ac_objext
14901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14902 (eval $ac_compile) 2>conftest.er1
14903 ac_status=$?
14904 grep -v '^ *+' conftest.er1 >conftest.err
14905 rm -f conftest.er1
14906 cat conftest.err >&5
14907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14908 (exit $ac_status); } &&
14909 { ac_try='test -z "$ac_c_werror_flag"
14910 || test ! -s conftest.err'
14911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14912 (eval $ac_try) 2>&5
14913 ac_status=$?
14914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14915 (exit $ac_status); }; } &&
14916 { ac_try='test -s conftest.$ac_objext'
14917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14918 (eval $ac_try) 2>&5
14919 ac_status=$?
14920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14921 (exit $ac_status); }; }; then
14922 ac_hi=-1 ac_mid=-1
14923 while :; do
14924 cat >conftest.$ac_ext <<_ACEOF
14925 /* confdefs.h. */
14926 _ACEOF
14927 cat confdefs.h >>conftest.$ac_ext
14928 cat >>conftest.$ac_ext <<_ACEOF
14929 /* end confdefs.h. */
14930 $ac_includes_default
14931 int
14932 main ()
14933 {
14934 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
14935 test_array [0] = 0
14936
14937 ;
14938 return 0;
14939 }
14940 _ACEOF
14941 rm -f conftest.$ac_objext
14942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14943 (eval $ac_compile) 2>conftest.er1
14944 ac_status=$?
14945 grep -v '^ *+' conftest.er1 >conftest.err
14946 rm -f conftest.er1
14947 cat conftest.err >&5
14948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14949 (exit $ac_status); } &&
14950 { ac_try='test -z "$ac_c_werror_flag"
14951 || test ! -s conftest.err'
14952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14953 (eval $ac_try) 2>&5
14954 ac_status=$?
14955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14956 (exit $ac_status); }; } &&
14957 { ac_try='test -s conftest.$ac_objext'
14958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14959 (eval $ac_try) 2>&5
14960 ac_status=$?
14961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14962 (exit $ac_status); }; }; then
14963 ac_lo=$ac_mid; break
14964 else
14965 echo "$as_me: failed program was:" >&5
14966 sed 's/^/| /' conftest.$ac_ext >&5
14967
14968 ac_hi=`expr '(' $ac_mid ')' - 1`
14969 if test $ac_mid -le $ac_hi; then
14970 ac_lo= ac_hi=
14971 break
14972 fi
14973 ac_mid=`expr 2 '*' $ac_mid`
14974 fi
14975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14976 done
14977 else
14978 echo "$as_me: failed program was:" >&5
14979 sed 's/^/| /' conftest.$ac_ext >&5
14980
14981 ac_lo= ac_hi=
14982 fi
14983 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14984 fi
14985 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14986 # Binary search between lo and hi bounds.
14987 while test "x$ac_lo" != "x$ac_hi"; do
14988 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14989 cat >conftest.$ac_ext <<_ACEOF
14990 /* confdefs.h. */
14991 _ACEOF
14992 cat confdefs.h >>conftest.$ac_ext
14993 cat >>conftest.$ac_ext <<_ACEOF
14994 /* end confdefs.h. */
14995 $ac_includes_default
14996 int
14997 main ()
14998 {
14999 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15000 test_array [0] = 0
15001
15002 ;
15003 return 0;
15004 }
15005 _ACEOF
15006 rm -f conftest.$ac_objext
15007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15008 (eval $ac_compile) 2>conftest.er1
15009 ac_status=$?
15010 grep -v '^ *+' conftest.er1 >conftest.err
15011 rm -f conftest.er1
15012 cat conftest.err >&5
15013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15014 (exit $ac_status); } &&
15015 { ac_try='test -z "$ac_c_werror_flag"
15016 || test ! -s conftest.err'
15017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15018 (eval $ac_try) 2>&5
15019 ac_status=$?
15020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15021 (exit $ac_status); }; } &&
15022 { ac_try='test -s conftest.$ac_objext'
15023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15024 (eval $ac_try) 2>&5
15025 ac_status=$?
15026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15027 (exit $ac_status); }; }; then
15028 ac_hi=$ac_mid
15029 else
15030 echo "$as_me: failed program was:" >&5
15031 sed 's/^/| /' conftest.$ac_ext >&5
15032
15033 ac_lo=`expr '(' $ac_mid ')' + 1`
15034 fi
15035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15036 done
15037 case $ac_lo in
15038 ?*) ac_cv_sizeof_long=$ac_lo;;
15039 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15040 See \`config.log' for more details." >&5
15041 echo "$as_me: error: cannot compute sizeof (long), 77
15042 See \`config.log' for more details." >&2;}
15043 { (exit 1); exit 1; }; } ;;
15044 esac
15045 else
15046 if test "$cross_compiling" = yes; then
15047 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15048 See \`config.log' for more details." >&5
15049 echo "$as_me: error: cannot run test program while cross compiling
15050 See \`config.log' for more details." >&2;}
15051 { (exit 1); exit 1; }; }
15052 else
15053 cat >conftest.$ac_ext <<_ACEOF
15054 /* confdefs.h. */
15055 _ACEOF
15056 cat confdefs.h >>conftest.$ac_ext
15057 cat >>conftest.$ac_ext <<_ACEOF
15058 /* end confdefs.h. */
15059 $ac_includes_default
15060 long longval () { return (long) (sizeof (long)); }
15061 unsigned long ulongval () { return (long) (sizeof (long)); }
15062 #include <stdio.h>
15063 #include <stdlib.h>
15064 int
15065 main ()
15066 {
15067
15068 FILE *f = fopen ("conftest.val", "w");
15069 if (! f)
15070 exit (1);
15071 if (((long) (sizeof (long))) < 0)
15072 {
15073 long i = longval ();
15074 if (i != ((long) (sizeof (long))))
15075 exit (1);
15076 fprintf (f, "%ld\n", i);
15077 }
15078 else
15079 {
15080 unsigned long i = ulongval ();
15081 if (i != ((long) (sizeof (long))))
15082 exit (1);
15083 fprintf (f, "%lu\n", i);
15084 }
15085 exit (ferror (f) || fclose (f) != 0);
15086
15087 ;
15088 return 0;
15089 }
15090 _ACEOF
15091 rm -f conftest$ac_exeext
15092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15093 (eval $ac_link) 2>&5
15094 ac_status=$?
15095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15096 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15098 (eval $ac_try) 2>&5
15099 ac_status=$?
15100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15101 (exit $ac_status); }; }; then
15102 ac_cv_sizeof_long=`cat conftest.val`
15103 else
15104 echo "$as_me: program exited with status $ac_status" >&5
15105 echo "$as_me: failed program was:" >&5
15106 sed 's/^/| /' conftest.$ac_ext >&5
15107
15108 ( exit $ac_status )
15109 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15110 See \`config.log' for more details." >&5
15111 echo "$as_me: error: cannot compute sizeof (long), 77
15112 See \`config.log' for more details." >&2;}
15113 { (exit 1); exit 1; }; }
15114 fi
15115 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15116 fi
15117 fi
15118 rm -f conftest.val
15119 else
15120 ac_cv_sizeof_long=0
15121 fi
15122 fi
15123 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
15124 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
15125 cat >>confdefs.h <<_ACEOF
15126 #define SIZEOF_LONG $ac_cv_sizeof_long
15127 _ACEOF
15128
15129 ;;
15130 esac
15131
15132 if test $acx_cv_header_stdint = stddef.h; then
15133 # Lacking a good header? Test size of everything and deduce all types.
15134 echo "$as_me:$LINENO: checking for int" >&5
15135 echo $ECHO_N "checking for int... $ECHO_C" >&6
15136 if test "${ac_cv_type_int+set}" = set; then
15137 echo $ECHO_N "(cached) $ECHO_C" >&6
15138 else
15139 cat >conftest.$ac_ext <<_ACEOF
15140 /* confdefs.h. */
15141 _ACEOF
15142 cat confdefs.h >>conftest.$ac_ext
15143 cat >>conftest.$ac_ext <<_ACEOF
15144 /* end confdefs.h. */
15145 $ac_includes_default
15146 int
15147 main ()
15148 {
15149 if ((int *) 0)
15150 return 0;
15151 if (sizeof (int))
15152 return 0;
15153 ;
15154 return 0;
15155 }
15156 _ACEOF
15157 rm -f conftest.$ac_objext
15158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15159 (eval $ac_compile) 2>conftest.er1
15160 ac_status=$?
15161 grep -v '^ *+' conftest.er1 >conftest.err
15162 rm -f conftest.er1
15163 cat conftest.err >&5
15164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15165 (exit $ac_status); } &&
15166 { ac_try='test -z "$ac_c_werror_flag"
15167 || test ! -s conftest.err'
15168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15169 (eval $ac_try) 2>&5
15170 ac_status=$?
15171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15172 (exit $ac_status); }; } &&
15173 { ac_try='test -s conftest.$ac_objext'
15174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15175 (eval $ac_try) 2>&5
15176 ac_status=$?
15177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15178 (exit $ac_status); }; }; then
15179 ac_cv_type_int=yes
15180 else
15181 echo "$as_me: failed program was:" >&5
15182 sed 's/^/| /' conftest.$ac_ext >&5
15183
15184 ac_cv_type_int=no
15185 fi
15186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15187 fi
15188 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15189 echo "${ECHO_T}$ac_cv_type_int" >&6
15190
15191 echo "$as_me:$LINENO: checking size of int" >&5
15192 echo $ECHO_N "checking size of int... $ECHO_C" >&6
15193 if test "${ac_cv_sizeof_int+set}" = set; then
15194 echo $ECHO_N "(cached) $ECHO_C" >&6
15195 else
15196 if test "$ac_cv_type_int" = yes; then
15197 # The cast to unsigned long works around a bug in the HP C Compiler
15198 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15199 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15200 # This bug is HP SR number 8606223364.
15201 if test "$cross_compiling" = yes; then
15202 # Depending upon the size, compute the lo and hi bounds.
15203 cat >conftest.$ac_ext <<_ACEOF
15204 /* confdefs.h. */
15205 _ACEOF
15206 cat confdefs.h >>conftest.$ac_ext
15207 cat >>conftest.$ac_ext <<_ACEOF
15208 /* end confdefs.h. */
15209 $ac_includes_default
15210 int
15211 main ()
15212 {
15213 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15214 test_array [0] = 0
15215
15216 ;
15217 return 0;
15218 }
15219 _ACEOF
15220 rm -f conftest.$ac_objext
15221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15222 (eval $ac_compile) 2>conftest.er1
15223 ac_status=$?
15224 grep -v '^ *+' conftest.er1 >conftest.err
15225 rm -f conftest.er1
15226 cat conftest.err >&5
15227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15228 (exit $ac_status); } &&
15229 { ac_try='test -z "$ac_c_werror_flag"
15230 || test ! -s conftest.err'
15231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15232 (eval $ac_try) 2>&5
15233 ac_status=$?
15234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15235 (exit $ac_status); }; } &&
15236 { ac_try='test -s conftest.$ac_objext'
15237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15238 (eval $ac_try) 2>&5
15239 ac_status=$?
15240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15241 (exit $ac_status); }; }; then
15242 ac_lo=0 ac_mid=0
15243 while :; do
15244 cat >conftest.$ac_ext <<_ACEOF
15245 /* confdefs.h. */
15246 _ACEOF
15247 cat confdefs.h >>conftest.$ac_ext
15248 cat >>conftest.$ac_ext <<_ACEOF
15249 /* end confdefs.h. */
15250 $ac_includes_default
15251 int
15252 main ()
15253 {
15254 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15255 test_array [0] = 0
15256
15257 ;
15258 return 0;
15259 }
15260 _ACEOF
15261 rm -f conftest.$ac_objext
15262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15263 (eval $ac_compile) 2>conftest.er1
15264 ac_status=$?
15265 grep -v '^ *+' conftest.er1 >conftest.err
15266 rm -f conftest.er1
15267 cat conftest.err >&5
15268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15269 (exit $ac_status); } &&
15270 { ac_try='test -z "$ac_c_werror_flag"
15271 || test ! -s conftest.err'
15272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15273 (eval $ac_try) 2>&5
15274 ac_status=$?
15275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15276 (exit $ac_status); }; } &&
15277 { ac_try='test -s conftest.$ac_objext'
15278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15279 (eval $ac_try) 2>&5
15280 ac_status=$?
15281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15282 (exit $ac_status); }; }; then
15283 ac_hi=$ac_mid; break
15284 else
15285 echo "$as_me: failed program was:" >&5
15286 sed 's/^/| /' conftest.$ac_ext >&5
15287
15288 ac_lo=`expr $ac_mid + 1`
15289 if test $ac_lo -le $ac_mid; then
15290 ac_lo= ac_hi=
15291 break
15292 fi
15293 ac_mid=`expr 2 '*' $ac_mid + 1`
15294 fi
15295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15296 done
15297 else
15298 echo "$as_me: failed program was:" >&5
15299 sed 's/^/| /' conftest.$ac_ext >&5
15300
15301 cat >conftest.$ac_ext <<_ACEOF
15302 /* confdefs.h. */
15303 _ACEOF
15304 cat confdefs.h >>conftest.$ac_ext
15305 cat >>conftest.$ac_ext <<_ACEOF
15306 /* end confdefs.h. */
15307 $ac_includes_default
15308 int
15309 main ()
15310 {
15311 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15312 test_array [0] = 0
15313
15314 ;
15315 return 0;
15316 }
15317 _ACEOF
15318 rm -f conftest.$ac_objext
15319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15320 (eval $ac_compile) 2>conftest.er1
15321 ac_status=$?
15322 grep -v '^ *+' conftest.er1 >conftest.err
15323 rm -f conftest.er1
15324 cat conftest.err >&5
15325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15326 (exit $ac_status); } &&
15327 { ac_try='test -z "$ac_c_werror_flag"
15328 || test ! -s conftest.err'
15329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15330 (eval $ac_try) 2>&5
15331 ac_status=$?
15332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15333 (exit $ac_status); }; } &&
15334 { ac_try='test -s conftest.$ac_objext'
15335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15336 (eval $ac_try) 2>&5
15337 ac_status=$?
15338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15339 (exit $ac_status); }; }; then
15340 ac_hi=-1 ac_mid=-1
15341 while :; do
15342 cat >conftest.$ac_ext <<_ACEOF
15343 /* confdefs.h. */
15344 _ACEOF
15345 cat confdefs.h >>conftest.$ac_ext
15346 cat >>conftest.$ac_ext <<_ACEOF
15347 /* end confdefs.h. */
15348 $ac_includes_default
15349 int
15350 main ()
15351 {
15352 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15353 test_array [0] = 0
15354
15355 ;
15356 return 0;
15357 }
15358 _ACEOF
15359 rm -f conftest.$ac_objext
15360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15361 (eval $ac_compile) 2>conftest.er1
15362 ac_status=$?
15363 grep -v '^ *+' conftest.er1 >conftest.err
15364 rm -f conftest.er1
15365 cat conftest.err >&5
15366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15367 (exit $ac_status); } &&
15368 { ac_try='test -z "$ac_c_werror_flag"
15369 || test ! -s conftest.err'
15370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15371 (eval $ac_try) 2>&5
15372 ac_status=$?
15373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15374 (exit $ac_status); }; } &&
15375 { ac_try='test -s conftest.$ac_objext'
15376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15377 (eval $ac_try) 2>&5
15378 ac_status=$?
15379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15380 (exit $ac_status); }; }; then
15381 ac_lo=$ac_mid; break
15382 else
15383 echo "$as_me: failed program was:" >&5
15384 sed 's/^/| /' conftest.$ac_ext >&5
15385
15386 ac_hi=`expr '(' $ac_mid ')' - 1`
15387 if test $ac_mid -le $ac_hi; then
15388 ac_lo= ac_hi=
15389 break
15390 fi
15391 ac_mid=`expr 2 '*' $ac_mid`
15392 fi
15393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15394 done
15395 else
15396 echo "$as_me: failed program was:" >&5
15397 sed 's/^/| /' conftest.$ac_ext >&5
15398
15399 ac_lo= ac_hi=
15400 fi
15401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15402 fi
15403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15404 # Binary search between lo and hi bounds.
15405 while test "x$ac_lo" != "x$ac_hi"; do
15406 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15407 cat >conftest.$ac_ext <<_ACEOF
15408 /* confdefs.h. */
15409 _ACEOF
15410 cat confdefs.h >>conftest.$ac_ext
15411 cat >>conftest.$ac_ext <<_ACEOF
15412 /* end confdefs.h. */
15413 $ac_includes_default
15414 int
15415 main ()
15416 {
15417 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15418 test_array [0] = 0
15419
15420 ;
15421 return 0;
15422 }
15423 _ACEOF
15424 rm -f conftest.$ac_objext
15425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15426 (eval $ac_compile) 2>conftest.er1
15427 ac_status=$?
15428 grep -v '^ *+' conftest.er1 >conftest.err
15429 rm -f conftest.er1
15430 cat conftest.err >&5
15431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15432 (exit $ac_status); } &&
15433 { ac_try='test -z "$ac_c_werror_flag"
15434 || test ! -s conftest.err'
15435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15436 (eval $ac_try) 2>&5
15437 ac_status=$?
15438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15439 (exit $ac_status); }; } &&
15440 { ac_try='test -s conftest.$ac_objext'
15441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15442 (eval $ac_try) 2>&5
15443 ac_status=$?
15444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15445 (exit $ac_status); }; }; then
15446 ac_hi=$ac_mid
15447 else
15448 echo "$as_me: failed program was:" >&5
15449 sed 's/^/| /' conftest.$ac_ext >&5
15450
15451 ac_lo=`expr '(' $ac_mid ')' + 1`
15452 fi
15453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15454 done
15455 case $ac_lo in
15456 ?*) ac_cv_sizeof_int=$ac_lo;;
15457 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15458 See \`config.log' for more details." >&5
15459 echo "$as_me: error: cannot compute sizeof (int), 77
15460 See \`config.log' for more details." >&2;}
15461 { (exit 1); exit 1; }; } ;;
15462 esac
15463 else
15464 if test "$cross_compiling" = yes; then
15465 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15466 See \`config.log' for more details." >&5
15467 echo "$as_me: error: cannot run test program while cross compiling
15468 See \`config.log' for more details." >&2;}
15469 { (exit 1); exit 1; }; }
15470 else
15471 cat >conftest.$ac_ext <<_ACEOF
15472 /* confdefs.h. */
15473 _ACEOF
15474 cat confdefs.h >>conftest.$ac_ext
15475 cat >>conftest.$ac_ext <<_ACEOF
15476 /* end confdefs.h. */
15477 $ac_includes_default
15478 long longval () { return (long) (sizeof (int)); }
15479 unsigned long ulongval () { return (long) (sizeof (int)); }
15480 #include <stdio.h>
15481 #include <stdlib.h>
15482 int
15483 main ()
15484 {
15485
15486 FILE *f = fopen ("conftest.val", "w");
15487 if (! f)
15488 exit (1);
15489 if (((long) (sizeof (int))) < 0)
15490 {
15491 long i = longval ();
15492 if (i != ((long) (sizeof (int))))
15493 exit (1);
15494 fprintf (f, "%ld\n", i);
15495 }
15496 else
15497 {
15498 unsigned long i = ulongval ();
15499 if (i != ((long) (sizeof (int))))
15500 exit (1);
15501 fprintf (f, "%lu\n", i);
15502 }
15503 exit (ferror (f) || fclose (f) != 0);
15504
15505 ;
15506 return 0;
15507 }
15508 _ACEOF
15509 rm -f conftest$ac_exeext
15510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15511 (eval $ac_link) 2>&5
15512 ac_status=$?
15513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15514 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15516 (eval $ac_try) 2>&5
15517 ac_status=$?
15518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15519 (exit $ac_status); }; }; then
15520 ac_cv_sizeof_int=`cat conftest.val`
15521 else
15522 echo "$as_me: program exited with status $ac_status" >&5
15523 echo "$as_me: failed program was:" >&5
15524 sed 's/^/| /' conftest.$ac_ext >&5
15525
15526 ( exit $ac_status )
15527 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15528 See \`config.log' for more details." >&5
15529 echo "$as_me: error: cannot compute sizeof (int), 77
15530 See \`config.log' for more details." >&2;}
15531 { (exit 1); exit 1; }; }
15532 fi
15533 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15534 fi
15535 fi
15536 rm -f conftest.val
15537 else
15538 ac_cv_sizeof_int=0
15539 fi
15540 fi
15541 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15542 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15543 cat >>confdefs.h <<_ACEOF
15544 #define SIZEOF_INT $ac_cv_sizeof_int
15545 _ACEOF
15546
15547
15548 echo "$as_me:$LINENO: checking for short" >&5
15549 echo $ECHO_N "checking for short... $ECHO_C" >&6
15550 if test "${ac_cv_type_short+set}" = set; then
15551 echo $ECHO_N "(cached) $ECHO_C" >&6
15552 else
15553 cat >conftest.$ac_ext <<_ACEOF
15554 /* confdefs.h. */
15555 _ACEOF
15556 cat confdefs.h >>conftest.$ac_ext
15557 cat >>conftest.$ac_ext <<_ACEOF
15558 /* end confdefs.h. */
15559 $ac_includes_default
15560 int
15561 main ()
15562 {
15563 if ((short *) 0)
15564 return 0;
15565 if (sizeof (short))
15566 return 0;
15567 ;
15568 return 0;
15569 }
15570 _ACEOF
15571 rm -f conftest.$ac_objext
15572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15573 (eval $ac_compile) 2>conftest.er1
15574 ac_status=$?
15575 grep -v '^ *+' conftest.er1 >conftest.err
15576 rm -f conftest.er1
15577 cat conftest.err >&5
15578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15579 (exit $ac_status); } &&
15580 { ac_try='test -z "$ac_c_werror_flag"
15581 || test ! -s conftest.err'
15582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15583 (eval $ac_try) 2>&5
15584 ac_status=$?
15585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15586 (exit $ac_status); }; } &&
15587 { ac_try='test -s conftest.$ac_objext'
15588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15589 (eval $ac_try) 2>&5
15590 ac_status=$?
15591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15592 (exit $ac_status); }; }; then
15593 ac_cv_type_short=yes
15594 else
15595 echo "$as_me: failed program was:" >&5
15596 sed 's/^/| /' conftest.$ac_ext >&5
15597
15598 ac_cv_type_short=no
15599 fi
15600 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15601 fi
15602 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
15603 echo "${ECHO_T}$ac_cv_type_short" >&6
15604
15605 echo "$as_me:$LINENO: checking size of short" >&5
15606 echo $ECHO_N "checking size of short... $ECHO_C" >&6
15607 if test "${ac_cv_sizeof_short+set}" = set; then
15608 echo $ECHO_N "(cached) $ECHO_C" >&6
15609 else
15610 if test "$ac_cv_type_short" = yes; then
15611 # The cast to unsigned long works around a bug in the HP C Compiler
15612 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15613 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15614 # This bug is HP SR number 8606223364.
15615 if test "$cross_compiling" = yes; then
15616 # Depending upon the size, compute the lo and hi bounds.
15617 cat >conftest.$ac_ext <<_ACEOF
15618 /* confdefs.h. */
15619 _ACEOF
15620 cat confdefs.h >>conftest.$ac_ext
15621 cat >>conftest.$ac_ext <<_ACEOF
15622 /* end confdefs.h. */
15623 $ac_includes_default
15624 int
15625 main ()
15626 {
15627 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
15628 test_array [0] = 0
15629
15630 ;
15631 return 0;
15632 }
15633 _ACEOF
15634 rm -f conftest.$ac_objext
15635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15636 (eval $ac_compile) 2>conftest.er1
15637 ac_status=$?
15638 grep -v '^ *+' conftest.er1 >conftest.err
15639 rm -f conftest.er1
15640 cat conftest.err >&5
15641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15642 (exit $ac_status); } &&
15643 { ac_try='test -z "$ac_c_werror_flag"
15644 || test ! -s conftest.err'
15645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15646 (eval $ac_try) 2>&5
15647 ac_status=$?
15648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15649 (exit $ac_status); }; } &&
15650 { ac_try='test -s conftest.$ac_objext'
15651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15652 (eval $ac_try) 2>&5
15653 ac_status=$?
15654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15655 (exit $ac_status); }; }; then
15656 ac_lo=0 ac_mid=0
15657 while :; do
15658 cat >conftest.$ac_ext <<_ACEOF
15659 /* confdefs.h. */
15660 _ACEOF
15661 cat confdefs.h >>conftest.$ac_ext
15662 cat >>conftest.$ac_ext <<_ACEOF
15663 /* end confdefs.h. */
15664 $ac_includes_default
15665 int
15666 main ()
15667 {
15668 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15669 test_array [0] = 0
15670
15671 ;
15672 return 0;
15673 }
15674 _ACEOF
15675 rm -f conftest.$ac_objext
15676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15677 (eval $ac_compile) 2>conftest.er1
15678 ac_status=$?
15679 grep -v '^ *+' conftest.er1 >conftest.err
15680 rm -f conftest.er1
15681 cat conftest.err >&5
15682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15683 (exit $ac_status); } &&
15684 { ac_try='test -z "$ac_c_werror_flag"
15685 || test ! -s conftest.err'
15686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15687 (eval $ac_try) 2>&5
15688 ac_status=$?
15689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15690 (exit $ac_status); }; } &&
15691 { ac_try='test -s conftest.$ac_objext'
15692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15693 (eval $ac_try) 2>&5
15694 ac_status=$?
15695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15696 (exit $ac_status); }; }; then
15697 ac_hi=$ac_mid; break
15698 else
15699 echo "$as_me: failed program was:" >&5
15700 sed 's/^/| /' conftest.$ac_ext >&5
15701
15702 ac_lo=`expr $ac_mid + 1`
15703 if test $ac_lo -le $ac_mid; then
15704 ac_lo= ac_hi=
15705 break
15706 fi
15707 ac_mid=`expr 2 '*' $ac_mid + 1`
15708 fi
15709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15710 done
15711 else
15712 echo "$as_me: failed program was:" >&5
15713 sed 's/^/| /' conftest.$ac_ext >&5
15714
15715 cat >conftest.$ac_ext <<_ACEOF
15716 /* confdefs.h. */
15717 _ACEOF
15718 cat confdefs.h >>conftest.$ac_ext
15719 cat >>conftest.$ac_ext <<_ACEOF
15720 /* end confdefs.h. */
15721 $ac_includes_default
15722 int
15723 main ()
15724 {
15725 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
15726 test_array [0] = 0
15727
15728 ;
15729 return 0;
15730 }
15731 _ACEOF
15732 rm -f conftest.$ac_objext
15733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15734 (eval $ac_compile) 2>conftest.er1
15735 ac_status=$?
15736 grep -v '^ *+' conftest.er1 >conftest.err
15737 rm -f conftest.er1
15738 cat conftest.err >&5
15739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15740 (exit $ac_status); } &&
15741 { ac_try='test -z "$ac_c_werror_flag"
15742 || test ! -s conftest.err'
15743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15744 (eval $ac_try) 2>&5
15745 ac_status=$?
15746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15747 (exit $ac_status); }; } &&
15748 { ac_try='test -s conftest.$ac_objext'
15749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15750 (eval $ac_try) 2>&5
15751 ac_status=$?
15752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15753 (exit $ac_status); }; }; then
15754 ac_hi=-1 ac_mid=-1
15755 while :; do
15756 cat >conftest.$ac_ext <<_ACEOF
15757 /* confdefs.h. */
15758 _ACEOF
15759 cat confdefs.h >>conftest.$ac_ext
15760 cat >>conftest.$ac_ext <<_ACEOF
15761 /* end confdefs.h. */
15762 $ac_includes_default
15763 int
15764 main ()
15765 {
15766 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
15767 test_array [0] = 0
15768
15769 ;
15770 return 0;
15771 }
15772 _ACEOF
15773 rm -f conftest.$ac_objext
15774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15775 (eval $ac_compile) 2>conftest.er1
15776 ac_status=$?
15777 grep -v '^ *+' conftest.er1 >conftest.err
15778 rm -f conftest.er1
15779 cat conftest.err >&5
15780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15781 (exit $ac_status); } &&
15782 { ac_try='test -z "$ac_c_werror_flag"
15783 || test ! -s conftest.err'
15784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15785 (eval $ac_try) 2>&5
15786 ac_status=$?
15787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15788 (exit $ac_status); }; } &&
15789 { ac_try='test -s conftest.$ac_objext'
15790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15791 (eval $ac_try) 2>&5
15792 ac_status=$?
15793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794 (exit $ac_status); }; }; then
15795 ac_lo=$ac_mid; break
15796 else
15797 echo "$as_me: failed program was:" >&5
15798 sed 's/^/| /' conftest.$ac_ext >&5
15799
15800 ac_hi=`expr '(' $ac_mid ')' - 1`
15801 if test $ac_mid -le $ac_hi; then
15802 ac_lo= ac_hi=
15803 break
15804 fi
15805 ac_mid=`expr 2 '*' $ac_mid`
15806 fi
15807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15808 done
15809 else
15810 echo "$as_me: failed program was:" >&5
15811 sed 's/^/| /' conftest.$ac_ext >&5
15812
15813 ac_lo= ac_hi=
15814 fi
15815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15816 fi
15817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15818 # Binary search between lo and hi bounds.
15819 while test "x$ac_lo" != "x$ac_hi"; do
15820 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15821 cat >conftest.$ac_ext <<_ACEOF
15822 /* confdefs.h. */
15823 _ACEOF
15824 cat confdefs.h >>conftest.$ac_ext
15825 cat >>conftest.$ac_ext <<_ACEOF
15826 /* end confdefs.h. */
15827 $ac_includes_default
15828 int
15829 main ()
15830 {
15831 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15832 test_array [0] = 0
15833
15834 ;
15835 return 0;
15836 }
15837 _ACEOF
15838 rm -f conftest.$ac_objext
15839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15840 (eval $ac_compile) 2>conftest.er1
15841 ac_status=$?
15842 grep -v '^ *+' conftest.er1 >conftest.err
15843 rm -f conftest.er1
15844 cat conftest.err >&5
15845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15846 (exit $ac_status); } &&
15847 { ac_try='test -z "$ac_c_werror_flag"
15848 || test ! -s conftest.err'
15849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15850 (eval $ac_try) 2>&5
15851 ac_status=$?
15852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15853 (exit $ac_status); }; } &&
15854 { ac_try='test -s conftest.$ac_objext'
15855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15856 (eval $ac_try) 2>&5
15857 ac_status=$?
15858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15859 (exit $ac_status); }; }; then
15860 ac_hi=$ac_mid
15861 else
15862 echo "$as_me: failed program was:" >&5
15863 sed 's/^/| /' conftest.$ac_ext >&5
15864
15865 ac_lo=`expr '(' $ac_mid ')' + 1`
15866 fi
15867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15868 done
15869 case $ac_lo in
15870 ?*) ac_cv_sizeof_short=$ac_lo;;
15871 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15872 See \`config.log' for more details." >&5
15873 echo "$as_me: error: cannot compute sizeof (short), 77
15874 See \`config.log' for more details." >&2;}
15875 { (exit 1); exit 1; }; } ;;
15876 esac
15877 else
15878 if test "$cross_compiling" = yes; then
15879 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15880 See \`config.log' for more details." >&5
15881 echo "$as_me: error: cannot run test program while cross compiling
15882 See \`config.log' for more details." >&2;}
15883 { (exit 1); exit 1; }; }
15884 else
15885 cat >conftest.$ac_ext <<_ACEOF
15886 /* confdefs.h. */
15887 _ACEOF
15888 cat confdefs.h >>conftest.$ac_ext
15889 cat >>conftest.$ac_ext <<_ACEOF
15890 /* end confdefs.h. */
15891 $ac_includes_default
15892 long longval () { return (long) (sizeof (short)); }
15893 unsigned long ulongval () { return (long) (sizeof (short)); }
15894 #include <stdio.h>
15895 #include <stdlib.h>
15896 int
15897 main ()
15898 {
15899
15900 FILE *f = fopen ("conftest.val", "w");
15901 if (! f)
15902 exit (1);
15903 if (((long) (sizeof (short))) < 0)
15904 {
15905 long i = longval ();
15906 if (i != ((long) (sizeof (short))))
15907 exit (1);
15908 fprintf (f, "%ld\n", i);
15909 }
15910 else
15911 {
15912 unsigned long i = ulongval ();
15913 if (i != ((long) (sizeof (short))))
15914 exit (1);
15915 fprintf (f, "%lu\n", i);
15916 }
15917 exit (ferror (f) || fclose (f) != 0);
15918
15919 ;
15920 return 0;
15921 }
15922 _ACEOF
15923 rm -f conftest$ac_exeext
15924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15925 (eval $ac_link) 2>&5
15926 ac_status=$?
15927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15928 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15930 (eval $ac_try) 2>&5
15931 ac_status=$?
15932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15933 (exit $ac_status); }; }; then
15934 ac_cv_sizeof_short=`cat conftest.val`
15935 else
15936 echo "$as_me: program exited with status $ac_status" >&5
15937 echo "$as_me: failed program was:" >&5
15938 sed 's/^/| /' conftest.$ac_ext >&5
15939
15940 ( exit $ac_status )
15941 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15942 See \`config.log' for more details." >&5
15943 echo "$as_me: error: cannot compute sizeof (short), 77
15944 See \`config.log' for more details." >&2;}
15945 { (exit 1); exit 1; }; }
15946 fi
15947 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15948 fi
15949 fi
15950 rm -f conftest.val
15951 else
15952 ac_cv_sizeof_short=0
15953 fi
15954 fi
15955 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
15956 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
15957 cat >>confdefs.h <<_ACEOF
15958 #define SIZEOF_SHORT $ac_cv_sizeof_short
15959 _ACEOF
15960
15961
15962 echo "$as_me:$LINENO: checking for char" >&5
15963 echo $ECHO_N "checking for char... $ECHO_C" >&6
15964 if test "${ac_cv_type_char+set}" = set; then
15965 echo $ECHO_N "(cached) $ECHO_C" >&6
15966 else
15967 cat >conftest.$ac_ext <<_ACEOF
15968 /* confdefs.h. */
15969 _ACEOF
15970 cat confdefs.h >>conftest.$ac_ext
15971 cat >>conftest.$ac_ext <<_ACEOF
15972 /* end confdefs.h. */
15973 $ac_includes_default
15974 int
15975 main ()
15976 {
15977 if ((char *) 0)
15978 return 0;
15979 if (sizeof (char))
15980 return 0;
15981 ;
15982 return 0;
15983 }
15984 _ACEOF
15985 rm -f conftest.$ac_objext
15986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15987 (eval $ac_compile) 2>conftest.er1
15988 ac_status=$?
15989 grep -v '^ *+' conftest.er1 >conftest.err
15990 rm -f conftest.er1
15991 cat conftest.err >&5
15992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15993 (exit $ac_status); } &&
15994 { ac_try='test -z "$ac_c_werror_flag"
15995 || test ! -s conftest.err'
15996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15997 (eval $ac_try) 2>&5
15998 ac_status=$?
15999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16000 (exit $ac_status); }; } &&
16001 { ac_try='test -s conftest.$ac_objext'
16002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16003 (eval $ac_try) 2>&5
16004 ac_status=$?
16005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16006 (exit $ac_status); }; }; then
16007 ac_cv_type_char=yes
16008 else
16009 echo "$as_me: failed program was:" >&5
16010 sed 's/^/| /' conftest.$ac_ext >&5
16011
16012 ac_cv_type_char=no
16013 fi
16014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16015 fi
16016 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
16017 echo "${ECHO_T}$ac_cv_type_char" >&6
16018
16019 echo "$as_me:$LINENO: checking size of char" >&5
16020 echo $ECHO_N "checking size of char... $ECHO_C" >&6
16021 if test "${ac_cv_sizeof_char+set}" = set; then
16022 echo $ECHO_N "(cached) $ECHO_C" >&6
16023 else
16024 if test "$ac_cv_type_char" = yes; then
16025 # The cast to unsigned long works around a bug in the HP C Compiler
16026 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16027 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16028 # This bug is HP SR number 8606223364.
16029 if test "$cross_compiling" = yes; then
16030 # Depending upon the size, compute the lo and hi bounds.
16031 cat >conftest.$ac_ext <<_ACEOF
16032 /* confdefs.h. */
16033 _ACEOF
16034 cat confdefs.h >>conftest.$ac_ext
16035 cat >>conftest.$ac_ext <<_ACEOF
16036 /* end confdefs.h. */
16037 $ac_includes_default
16038 int
16039 main ()
16040 {
16041 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
16042 test_array [0] = 0
16043
16044 ;
16045 return 0;
16046 }
16047 _ACEOF
16048 rm -f conftest.$ac_objext
16049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16050 (eval $ac_compile) 2>conftest.er1
16051 ac_status=$?
16052 grep -v '^ *+' conftest.er1 >conftest.err
16053 rm -f conftest.er1
16054 cat conftest.err >&5
16055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16056 (exit $ac_status); } &&
16057 { ac_try='test -z "$ac_c_werror_flag"
16058 || test ! -s conftest.err'
16059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16060 (eval $ac_try) 2>&5
16061 ac_status=$?
16062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16063 (exit $ac_status); }; } &&
16064 { ac_try='test -s conftest.$ac_objext'
16065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16066 (eval $ac_try) 2>&5
16067 ac_status=$?
16068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16069 (exit $ac_status); }; }; then
16070 ac_lo=0 ac_mid=0
16071 while :; do
16072 cat >conftest.$ac_ext <<_ACEOF
16073 /* confdefs.h. */
16074 _ACEOF
16075 cat confdefs.h >>conftest.$ac_ext
16076 cat >>conftest.$ac_ext <<_ACEOF
16077 /* end confdefs.h. */
16078 $ac_includes_default
16079 int
16080 main ()
16081 {
16082 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16083 test_array [0] = 0
16084
16085 ;
16086 return 0;
16087 }
16088 _ACEOF
16089 rm -f conftest.$ac_objext
16090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16091 (eval $ac_compile) 2>conftest.er1
16092 ac_status=$?
16093 grep -v '^ *+' conftest.er1 >conftest.err
16094 rm -f conftest.er1
16095 cat conftest.err >&5
16096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16097 (exit $ac_status); } &&
16098 { ac_try='test -z "$ac_c_werror_flag"
16099 || test ! -s conftest.err'
16100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16101 (eval $ac_try) 2>&5
16102 ac_status=$?
16103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16104 (exit $ac_status); }; } &&
16105 { ac_try='test -s conftest.$ac_objext'
16106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16107 (eval $ac_try) 2>&5
16108 ac_status=$?
16109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16110 (exit $ac_status); }; }; then
16111 ac_hi=$ac_mid; break
16112 else
16113 echo "$as_me: failed program was:" >&5
16114 sed 's/^/| /' conftest.$ac_ext >&5
16115
16116 ac_lo=`expr $ac_mid + 1`
16117 if test $ac_lo -le $ac_mid; then
16118 ac_lo= ac_hi=
16119 break
16120 fi
16121 ac_mid=`expr 2 '*' $ac_mid + 1`
16122 fi
16123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16124 done
16125 else
16126 echo "$as_me: failed program was:" >&5
16127 sed 's/^/| /' conftest.$ac_ext >&5
16128
16129 cat >conftest.$ac_ext <<_ACEOF
16130 /* confdefs.h. */
16131 _ACEOF
16132 cat confdefs.h >>conftest.$ac_ext
16133 cat >>conftest.$ac_ext <<_ACEOF
16134 /* end confdefs.h. */
16135 $ac_includes_default
16136 int
16137 main ()
16138 {
16139 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
16140 test_array [0] = 0
16141
16142 ;
16143 return 0;
16144 }
16145 _ACEOF
16146 rm -f conftest.$ac_objext
16147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16148 (eval $ac_compile) 2>conftest.er1
16149 ac_status=$?
16150 grep -v '^ *+' conftest.er1 >conftest.err
16151 rm -f conftest.er1
16152 cat conftest.err >&5
16153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16154 (exit $ac_status); } &&
16155 { ac_try='test -z "$ac_c_werror_flag"
16156 || test ! -s conftest.err'
16157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16158 (eval $ac_try) 2>&5
16159 ac_status=$?
16160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16161 (exit $ac_status); }; } &&
16162 { ac_try='test -s conftest.$ac_objext'
16163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16164 (eval $ac_try) 2>&5
16165 ac_status=$?
16166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16167 (exit $ac_status); }; }; then
16168 ac_hi=-1 ac_mid=-1
16169 while :; do
16170 cat >conftest.$ac_ext <<_ACEOF
16171 /* confdefs.h. */
16172 _ACEOF
16173 cat confdefs.h >>conftest.$ac_ext
16174 cat >>conftest.$ac_ext <<_ACEOF
16175 /* end confdefs.h. */
16176 $ac_includes_default
16177 int
16178 main ()
16179 {
16180 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
16181 test_array [0] = 0
16182
16183 ;
16184 return 0;
16185 }
16186 _ACEOF
16187 rm -f conftest.$ac_objext
16188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16189 (eval $ac_compile) 2>conftest.er1
16190 ac_status=$?
16191 grep -v '^ *+' conftest.er1 >conftest.err
16192 rm -f conftest.er1
16193 cat conftest.err >&5
16194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16195 (exit $ac_status); } &&
16196 { ac_try='test -z "$ac_c_werror_flag"
16197 || test ! -s conftest.err'
16198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16199 (eval $ac_try) 2>&5
16200 ac_status=$?
16201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16202 (exit $ac_status); }; } &&
16203 { ac_try='test -s conftest.$ac_objext'
16204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16205 (eval $ac_try) 2>&5
16206 ac_status=$?
16207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16208 (exit $ac_status); }; }; then
16209 ac_lo=$ac_mid; break
16210 else
16211 echo "$as_me: failed program was:" >&5
16212 sed 's/^/| /' conftest.$ac_ext >&5
16213
16214 ac_hi=`expr '(' $ac_mid ')' - 1`
16215 if test $ac_mid -le $ac_hi; then
16216 ac_lo= ac_hi=
16217 break
16218 fi
16219 ac_mid=`expr 2 '*' $ac_mid`
16220 fi
16221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16222 done
16223 else
16224 echo "$as_me: failed program was:" >&5
16225 sed 's/^/| /' conftest.$ac_ext >&5
16226
16227 ac_lo= ac_hi=
16228 fi
16229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16230 fi
16231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16232 # Binary search between lo and hi bounds.
16233 while test "x$ac_lo" != "x$ac_hi"; do
16234 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16235 cat >conftest.$ac_ext <<_ACEOF
16236 /* confdefs.h. */
16237 _ACEOF
16238 cat confdefs.h >>conftest.$ac_ext
16239 cat >>conftest.$ac_ext <<_ACEOF
16240 /* end confdefs.h. */
16241 $ac_includes_default
16242 int
16243 main ()
16244 {
16245 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16246 test_array [0] = 0
16247
16248 ;
16249 return 0;
16250 }
16251 _ACEOF
16252 rm -f conftest.$ac_objext
16253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16254 (eval $ac_compile) 2>conftest.er1
16255 ac_status=$?
16256 grep -v '^ *+' conftest.er1 >conftest.err
16257 rm -f conftest.er1
16258 cat conftest.err >&5
16259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16260 (exit $ac_status); } &&
16261 { ac_try='test -z "$ac_c_werror_flag"
16262 || test ! -s conftest.err'
16263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16264 (eval $ac_try) 2>&5
16265 ac_status=$?
16266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16267 (exit $ac_status); }; } &&
16268 { ac_try='test -s conftest.$ac_objext'
16269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16270 (eval $ac_try) 2>&5
16271 ac_status=$?
16272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16273 (exit $ac_status); }; }; then
16274 ac_hi=$ac_mid
16275 else
16276 echo "$as_me: failed program was:" >&5
16277 sed 's/^/| /' conftest.$ac_ext >&5
16278
16279 ac_lo=`expr '(' $ac_mid ')' + 1`
16280 fi
16281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16282 done
16283 case $ac_lo in
16284 ?*) ac_cv_sizeof_char=$ac_lo;;
16285 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16286 See \`config.log' for more details." >&5
16287 echo "$as_me: error: cannot compute sizeof (char), 77
16288 See \`config.log' for more details." >&2;}
16289 { (exit 1); exit 1; }; } ;;
16290 esac
16291 else
16292 if test "$cross_compiling" = yes; then
16293 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16294 See \`config.log' for more details." >&5
16295 echo "$as_me: error: cannot run test program while cross compiling
16296 See \`config.log' for more details." >&2;}
16297 { (exit 1); exit 1; }; }
16298 else
16299 cat >conftest.$ac_ext <<_ACEOF
16300 /* confdefs.h. */
16301 _ACEOF
16302 cat confdefs.h >>conftest.$ac_ext
16303 cat >>conftest.$ac_ext <<_ACEOF
16304 /* end confdefs.h. */
16305 $ac_includes_default
16306 long longval () { return (long) (sizeof (char)); }
16307 unsigned long ulongval () { return (long) (sizeof (char)); }
16308 #include <stdio.h>
16309 #include <stdlib.h>
16310 int
16311 main ()
16312 {
16313
16314 FILE *f = fopen ("conftest.val", "w");
16315 if (! f)
16316 exit (1);
16317 if (((long) (sizeof (char))) < 0)
16318 {
16319 long i = longval ();
16320 if (i != ((long) (sizeof (char))))
16321 exit (1);
16322 fprintf (f, "%ld\n", i);
16323 }
16324 else
16325 {
16326 unsigned long i = ulongval ();
16327 if (i != ((long) (sizeof (char))))
16328 exit (1);
16329 fprintf (f, "%lu\n", i);
16330 }
16331 exit (ferror (f) || fclose (f) != 0);
16332
16333 ;
16334 return 0;
16335 }
16336 _ACEOF
16337 rm -f conftest$ac_exeext
16338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16339 (eval $ac_link) 2>&5
16340 ac_status=$?
16341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16342 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16344 (eval $ac_try) 2>&5
16345 ac_status=$?
16346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16347 (exit $ac_status); }; }; then
16348 ac_cv_sizeof_char=`cat conftest.val`
16349 else
16350 echo "$as_me: program exited with status $ac_status" >&5
16351 echo "$as_me: failed program was:" >&5
16352 sed 's/^/| /' conftest.$ac_ext >&5
16353
16354 ( exit $ac_status )
16355 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16356 See \`config.log' for more details." >&5
16357 echo "$as_me: error: cannot compute sizeof (char), 77
16358 See \`config.log' for more details." >&2;}
16359 { (exit 1); exit 1; }; }
16360 fi
16361 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16362 fi
16363 fi
16364 rm -f conftest.val
16365 else
16366 ac_cv_sizeof_char=0
16367 fi
16368 fi
16369 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
16370 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
16371 cat >>confdefs.h <<_ACEOF
16372 #define SIZEOF_CHAR $ac_cv_sizeof_char
16373 _ACEOF
16374
16375
16376
16377 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
16378 echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
16379 case "$ac_cv_sizeof_char" in
16380 1) acx_cv_type_int8_t=char ;;
16381 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
16382 echo "$as_me: error: no 8-bit type" >&2;}
16383 { (exit please report a bug); exit please report a bug; }; }
16384 esac
16385 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
16386 echo "${ECHO_T}$acx_cv_type_int8_t" >&6
16387
16388 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
16389 echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
16390 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
16391 2:*) acx_cv_type_int16_t=int ;;
16392 *:2) acx_cv_type_int16_t=short ;;
16393 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
16394 echo "$as_me: error: no 16-bit type" >&2;}
16395 { (exit please report a bug); exit please report a bug; }; }
16396 esac
16397 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
16398 echo "${ECHO_T}$acx_cv_type_int16_t" >&6
16399
16400 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
16401 echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
16402 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16403 4:*) acx_cv_type_int32_t=int ;;
16404 *:4) acx_cv_type_int32_t=long ;;
16405 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
16406 echo "$as_me: error: no 32-bit type" >&2;}
16407 { (exit please report a bug); exit please report a bug; }; }
16408 esac
16409 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
16410 echo "${ECHO_T}$acx_cv_type_int32_t" >&6
16411 fi
16412
16413 # These tests are here to make the output prettier
16414
16415 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
16416 case "$ac_cv_sizeof_long" in
16417 8) acx_cv_type_int64_t=long ;;
16418 esac
16419 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
16420 echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
16421 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
16422 echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
16423 fi
16424
16425 # Now we can use the above types
16426
16427 if test "$ac_cv_type_uintptr_t" != yes; then
16428 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
16429 echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
16430 case $ac_cv_sizeof_void_p in
16431 2) acx_cv_type_intptr_t=int16_t ;;
16432 4) acx_cv_type_intptr_t=int32_t ;;
16433 8) acx_cv_type_intptr_t=int64_t ;;
16434 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
16435 echo "$as_me: error: no equivalent for intptr_t" >&2;}
16436 { (exit please report a bug); exit please report a bug; }; }
16437 esac
16438 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
16439 echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
16440 fi
16441
16442 # ----------------- done all checks, emit header -------------
16443 ac_config_commands="$ac_config_commands gstdint.h"
16444
16445
16446
16447
16448 # Check to see if -pthread or -lpthread is needed. Prefer the former.
16449 # In case the pthread.h system header is not found, this test will fail.
16450 XPCFLAGS=""
16451 CFLAGS="$CFLAGS -pthread"
16452 cat >conftest.$ac_ext <<_ACEOF
16453 /* confdefs.h. */
16454 _ACEOF
16455 cat confdefs.h >>conftest.$ac_ext
16456 cat >>conftest.$ac_ext <<_ACEOF
16457 /* end confdefs.h. */
16458 #include <pthread.h>
16459 void *g(void *d) { return NULL; }
16460 int
16461 main ()
16462 {
16463 pthread_t t; pthread_create(&t,NULL,g,NULL);
16464 ;
16465 return 0;
16466 }
16467 _ACEOF
16468 rm -f conftest.$ac_objext conftest$ac_exeext
16469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16470 (eval $ac_link) 2>conftest.er1
16471 ac_status=$?
16472 grep -v '^ *+' conftest.er1 >conftest.err
16473 rm -f conftest.er1
16474 cat conftest.err >&5
16475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16476 (exit $ac_status); } &&
16477 { ac_try='test -z "$ac_c_werror_flag"
16478 || test ! -s conftest.err'
16479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16480 (eval $ac_try) 2>&5
16481 ac_status=$?
16482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16483 (exit $ac_status); }; } &&
16484 { ac_try='test -s conftest$ac_exeext'
16485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16486 (eval $ac_try) 2>&5
16487 ac_status=$?
16488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16489 (exit $ac_status); }; }; then
16490 XPCFLAGS=" -Wc,-pthread"
16491 else
16492 echo "$as_me: failed program was:" >&5
16493 sed 's/^/| /' conftest.$ac_ext >&5
16494
16495 CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
16496 cat >conftest.$ac_ext <<_ACEOF
16497 /* confdefs.h. */
16498 _ACEOF
16499 cat confdefs.h >>conftest.$ac_ext
16500 cat >>conftest.$ac_ext <<_ACEOF
16501 /* end confdefs.h. */
16502 #include <pthread.h>
16503 void *g(void *d) { return NULL; }
16504 int
16505 main ()
16506 {
16507 pthread_t t; pthread_create(&t,NULL,g,NULL);
16508 ;
16509 return 0;
16510 }
16511 _ACEOF
16512 rm -f conftest.$ac_objext conftest$ac_exeext
16513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16514 (eval $ac_link) 2>conftest.er1
16515 ac_status=$?
16516 grep -v '^ *+' conftest.er1 >conftest.err
16517 rm -f conftest.er1
16518 cat conftest.err >&5
16519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16520 (exit $ac_status); } &&
16521 { ac_try='test -z "$ac_c_werror_flag"
16522 || test ! -s conftest.err'
16523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16524 (eval $ac_try) 2>&5
16525 ac_status=$?
16526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16527 (exit $ac_status); }; } &&
16528 { ac_try='test -s conftest$ac_exeext'
16529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16530 (eval $ac_try) 2>&5
16531 ac_status=$?
16532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16533 (exit $ac_status); }; }; then
16534 :
16535 else
16536 echo "$as_me: failed program was:" >&5
16537 sed 's/^/| /' conftest.$ac_ext >&5
16538
16539 { { echo "$as_me:$LINENO: error: Pthreads are required to build libgomp" >&5
16540 echo "$as_me: error: Pthreads are required to build libgomp" >&2;}
16541 { (exit 1); exit 1; }; }
16542 fi
16543 rm -f conftest.err conftest.$ac_objext \
16544 conftest$ac_exeext conftest.$ac_ext
16545 fi
16546 rm -f conftest.err conftest.$ac_objext \
16547 conftest$ac_exeext conftest.$ac_ext
16548
16549 # Check for functions needed.
16550
16551
16552 for ac_func in getloadavg clock_gettime
16553 do
16554 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16555 echo "$as_me:$LINENO: checking for $ac_func" >&5
16556 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16557 if eval "test \"\${$as_ac_var+set}\" = set"; then
16558 echo $ECHO_N "(cached) $ECHO_C" >&6
16559 else
16560 cat >conftest.$ac_ext <<_ACEOF
16561 /* confdefs.h. */
16562 _ACEOF
16563 cat confdefs.h >>conftest.$ac_ext
16564 cat >>conftest.$ac_ext <<_ACEOF
16565 /* end confdefs.h. */
16566 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16567 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16568 #define $ac_func innocuous_$ac_func
16569
16570 /* System header to define __stub macros and hopefully few prototypes,
16571 which can conflict with char $ac_func (); below.
16572 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16573 <limits.h> exists even on freestanding compilers. */
16574
16575 #ifdef __STDC__
16576 # include <limits.h>
16577 #else
16578 # include <assert.h>
16579 #endif
16580
16581 #undef $ac_func
16582
16583 /* Override any gcc2 internal prototype to avoid an error. */
16584 #ifdef __cplusplus
16585 extern "C"
16586 {
16587 #endif
16588 /* We use char because int might match the return type of a gcc2
16589 builtin and then its argument prototype would still apply. */
16590 char $ac_func ();
16591 /* The GNU C library defines this for functions which it implements
16592 to always fail with ENOSYS. Some functions are actually named
16593 something starting with __ and the normal name is an alias. */
16594 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16595 choke me
16596 #else
16597 char (*f) () = $ac_func;
16598 #endif
16599 #ifdef __cplusplus
16600 }
16601 #endif
16602
16603 int
16604 main ()
16605 {
16606 return f != $ac_func;
16607 ;
16608 return 0;
16609 }
16610 _ACEOF
16611 rm -f conftest.$ac_objext conftest$ac_exeext
16612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16613 (eval $ac_link) 2>conftest.er1
16614 ac_status=$?
16615 grep -v '^ *+' conftest.er1 >conftest.err
16616 rm -f conftest.er1
16617 cat conftest.err >&5
16618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16619 (exit $ac_status); } &&
16620 { ac_try='test -z "$ac_c_werror_flag"
16621 || test ! -s conftest.err'
16622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16623 (eval $ac_try) 2>&5
16624 ac_status=$?
16625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16626 (exit $ac_status); }; } &&
16627 { ac_try='test -s conftest$ac_exeext'
16628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16629 (eval $ac_try) 2>&5
16630 ac_status=$?
16631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16632 (exit $ac_status); }; }; then
16633 eval "$as_ac_var=yes"
16634 else
16635 echo "$as_me: failed program was:" >&5
16636 sed 's/^/| /' conftest.$ac_ext >&5
16637
16638 eval "$as_ac_var=no"
16639 fi
16640 rm -f conftest.err conftest.$ac_objext \
16641 conftest$ac_exeext conftest.$ac_ext
16642 fi
16643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16644 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16645 if test `eval echo '${'$as_ac_var'}'` = yes; then
16646 cat >>confdefs.h <<_ACEOF
16647 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16648 _ACEOF
16649
16650 fi
16651 done
16652
16653
16654 # Check for broken semaphore implementation on darwin.
16655 # sem_init returns: sem_init error: Function not implemented.
16656 case "$host" in
16657 *-darwin*)
16658
16659 cat >>confdefs.h <<\_ACEOF
16660 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
16661 _ACEOF
16662
16663 ;;
16664 *-linux*)
16665 case "$enable_linux_futex" in
16666 default)
16667 # If headers don't have gettid/futex syscalls definition, then
16668 # default to no, otherwise there will be compile time failures.
16669 # Otherwise, default to yes. If we don't detect we are
16670 # compiled/linked against NPTL and not cross-compiling, check
16671 # if programs are run by default against NPTL and if not, issue
16672 # a warning.
16673 enable_linux_futex=no
16674 cat >conftest.$ac_ext <<_ACEOF
16675 /* confdefs.h. */
16676 _ACEOF
16677 cat confdefs.h >>conftest.$ac_ext
16678 cat >>conftest.$ac_ext <<_ACEOF
16679 /* end confdefs.h. */
16680 #include <sys/syscall.h>
16681 int lk;
16682 int
16683 main ()
16684 {
16685 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
16686 ;
16687 return 0;
16688 }
16689 _ACEOF
16690 rm -f conftest.$ac_objext conftest$ac_exeext
16691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16692 (eval $ac_link) 2>conftest.er1
16693 ac_status=$?
16694 grep -v '^ *+' conftest.er1 >conftest.err
16695 rm -f conftest.er1
16696 cat conftest.err >&5
16697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16698 (exit $ac_status); } &&
16699 { ac_try='test -z "$ac_c_werror_flag"
16700 || test ! -s conftest.err'
16701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16702 (eval $ac_try) 2>&5
16703 ac_status=$?
16704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16705 (exit $ac_status); }; } &&
16706 { ac_try='test -s conftest$ac_exeext'
16707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16708 (eval $ac_try) 2>&5
16709 ac_status=$?
16710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16711 (exit $ac_status); }; }; then
16712 cat >conftest.$ac_ext <<_ACEOF
16713 /* confdefs.h. */
16714 _ACEOF
16715 cat confdefs.h >>conftest.$ac_ext
16716 cat >>conftest.$ac_ext <<_ACEOF
16717 /* end confdefs.h. */
16718 #ifndef _GNU_SOURCE
16719 #define _GNU_SOURCE 1
16720 #endif
16721 #include <pthread.h>
16722 pthread_t th; void *status;
16723 int
16724 main ()
16725 {
16726 pthread_tryjoin_np (th, &status);
16727 ;
16728 return 0;
16729 }
16730 _ACEOF
16731 rm -f conftest.$ac_objext conftest$ac_exeext
16732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16733 (eval $ac_link) 2>conftest.er1
16734 ac_status=$?
16735 grep -v '^ *+' conftest.er1 >conftest.err
16736 rm -f conftest.er1
16737 cat conftest.err >&5
16738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16739 (exit $ac_status); } &&
16740 { ac_try='test -z "$ac_c_werror_flag"
16741 || test ! -s conftest.err'
16742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16743 (eval $ac_try) 2>&5
16744 ac_status=$?
16745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16746 (exit $ac_status); }; } &&
16747 { ac_try='test -s conftest$ac_exeext'
16748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16749 (eval $ac_try) 2>&5
16750 ac_status=$?
16751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16752 (exit $ac_status); }; }; then
16753 enable_linux_futex=yes
16754 else
16755 echo "$as_me: failed program was:" >&5
16756 sed 's/^/| /' conftest.$ac_ext >&5
16757
16758 if test x$cross_compiling = xno; then
16759 if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
16760 | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then
16761 { echo "$as_me:$LINENO: WARNING: The kernel might not support futex or gettid syscalls.
16762 If so, please configure with --disable-linux-futex" >&5
16763 echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
16764 If so, please configure with --disable-linux-futex" >&2;}
16765 fi
16766 fi
16767 enable_linux_futex=yes
16768 fi
16769 rm -f conftest.err conftest.$ac_objext \
16770 conftest$ac_exeext conftest.$ac_ext
16771 else
16772 echo "$as_me: failed program was:" >&5
16773 sed 's/^/| /' conftest.$ac_ext >&5
16774
16775 fi
16776 rm -f conftest.err conftest.$ac_objext \
16777 conftest$ac_exeext conftest.$ac_ext
16778 ;;
16779 yes)
16780 cat >conftest.$ac_ext <<_ACEOF
16781 /* confdefs.h. */
16782 _ACEOF
16783 cat confdefs.h >>conftest.$ac_ext
16784 cat >>conftest.$ac_ext <<_ACEOF
16785 /* end confdefs.h. */
16786 #include <sys/syscall.h>
16787 int lk;
16788 int
16789 main ()
16790 {
16791 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
16792 ;
16793 return 0;
16794 }
16795 _ACEOF
16796 rm -f conftest.$ac_objext conftest$ac_exeext
16797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16798 (eval $ac_link) 2>conftest.er1
16799 ac_status=$?
16800 grep -v '^ *+' conftest.er1 >conftest.err
16801 rm -f conftest.er1
16802 cat conftest.err >&5
16803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16804 (exit $ac_status); } &&
16805 { ac_try='test -z "$ac_c_werror_flag"
16806 || test ! -s conftest.err'
16807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16808 (eval $ac_try) 2>&5
16809 ac_status=$?
16810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16811 (exit $ac_status); }; } &&
16812 { ac_try='test -s conftest$ac_exeext'
16813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16814 (eval $ac_try) 2>&5
16815 ac_status=$?
16816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16817 (exit $ac_status); }; }; then
16818 :
16819 else
16820 echo "$as_me: failed program was:" >&5
16821 sed 's/^/| /' conftest.$ac_ext >&5
16822
16823 { { echo "$as_me:$LINENO: error: SYS_gettid and SYS_futex required for --enable-linux-futex" >&5
16824 echo "$as_me: error: SYS_gettid and SYS_futex required for --enable-linux-futex" >&2;}
16825 { (exit 1); exit 1; }; }
16826 fi
16827 rm -f conftest.err conftest.$ac_objext \
16828 conftest$ac_exeext conftest.$ac_ext
16829 ;;
16830 esac
16831 ;;
16832 esac
16833
16834 # Check for pthread_{,attr_}[sg]etaffinity_np.
16835 cat >conftest.$ac_ext <<_ACEOF
16836 /* confdefs.h. */
16837 _ACEOF
16838 cat confdefs.h >>conftest.$ac_ext
16839 cat >>conftest.$ac_ext <<_ACEOF
16840 /* end confdefs.h. */
16841 #define _GNU_SOURCE
16842 #include <pthread.h>
16843 int
16844 main ()
16845 {
16846 cpu_set_t cpuset;
16847 pthread_attr_t attr;
16848 pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
16849 if (CPU_ISSET (0, &cpuset))
16850 CPU_SET (1, &cpuset);
16851 else
16852 CPU_ZERO (&cpuset);
16853 pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
16854 pthread_attr_init (&attr);
16855 pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
16856 pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
16857 ;
16858 return 0;
16859 }
16860 _ACEOF
16861 rm -f conftest.$ac_objext conftest$ac_exeext
16862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16863 (eval $ac_link) 2>conftest.er1
16864 ac_status=$?
16865 grep -v '^ *+' conftest.er1 >conftest.err
16866 rm -f conftest.er1
16867 cat conftest.err >&5
16868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16869 (exit $ac_status); } &&
16870 { ac_try='test -z "$ac_c_werror_flag"
16871 || test ! -s conftest.err'
16872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16873 (eval $ac_try) 2>&5
16874 ac_status=$?
16875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16876 (exit $ac_status); }; } &&
16877 { ac_try='test -s conftest$ac_exeext'
16878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16879 (eval $ac_try) 2>&5
16880 ac_status=$?
16881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16882 (exit $ac_status); }; }; then
16883
16884 cat >>confdefs.h <<\_ACEOF
16885 #define HAVE_PTHREAD_AFFINITY_NP 1
16886 _ACEOF
16887
16888 else
16889 echo "$as_me: failed program was:" >&5
16890 sed 's/^/| /' conftest.$ac_ext >&5
16891
16892 fi
16893 rm -f conftest.err conftest.$ac_objext \
16894 conftest$ac_exeext conftest.$ac_ext
16895
16896 # At least for glibc, clock_gettime is in librt. But don't pull that
16897 # in if it still doesn't give us the function we want.
16898 if test $ac_cv_func_clock_gettime = no; then
16899 echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
16900 echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
16901 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
16902 echo $ECHO_N "(cached) $ECHO_C" >&6
16903 else
16904 ac_check_lib_save_LIBS=$LIBS
16905 LIBS="-lrt $LIBS"
16906 cat >conftest.$ac_ext <<_ACEOF
16907 /* confdefs.h. */
16908 _ACEOF
16909 cat confdefs.h >>conftest.$ac_ext
16910 cat >>conftest.$ac_ext <<_ACEOF
16911 /* end confdefs.h. */
16912
16913 /* Override any gcc2 internal prototype to avoid an error. */
16914 #ifdef __cplusplus
16915 extern "C"
16916 #endif
16917 /* We use char because int might match the return type of a gcc2
16918 builtin and then its argument prototype would still apply. */
16919 char clock_gettime ();
16920 int
16921 main ()
16922 {
16923 clock_gettime ();
16924 ;
16925 return 0;
16926 }
16927 _ACEOF
16928 rm -f conftest.$ac_objext conftest$ac_exeext
16929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16930 (eval $ac_link) 2>conftest.er1
16931 ac_status=$?
16932 grep -v '^ *+' conftest.er1 >conftest.err
16933 rm -f conftest.er1
16934 cat conftest.err >&5
16935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16936 (exit $ac_status); } &&
16937 { ac_try='test -z "$ac_c_werror_flag"
16938 || test ! -s conftest.err'
16939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16940 (eval $ac_try) 2>&5
16941 ac_status=$?
16942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16943 (exit $ac_status); }; } &&
16944 { ac_try='test -s conftest$ac_exeext'
16945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16946 (eval $ac_try) 2>&5
16947 ac_status=$?
16948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16949 (exit $ac_status); }; }; then
16950 ac_cv_lib_rt_clock_gettime=yes
16951 else
16952 echo "$as_me: failed program was:" >&5
16953 sed 's/^/| /' conftest.$ac_ext >&5
16954
16955 ac_cv_lib_rt_clock_gettime=no
16956 fi
16957 rm -f conftest.err conftest.$ac_objext \
16958 conftest$ac_exeext conftest.$ac_ext
16959 LIBS=$ac_check_lib_save_LIBS
16960 fi
16961 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
16962 echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
16963 if test $ac_cv_lib_rt_clock_gettime = yes; then
16964 LIBS="-lrt $LIBS"
16965
16966 cat >>confdefs.h <<\_ACEOF
16967 #define HAVE_CLOCK_GETTIME 1
16968 _ACEOF
16969
16970 fi
16971
16972 fi
16973
16974 # See if we support thread-local storage.
16975
16976 # Check whether --enable-tls or --disable-tls was given.
16977 if test "${enable_tls+set}" = set; then
16978 enableval="$enable_tls"
16979
16980 case "$enableval" in
16981 yes|no) ;;
16982 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
16983 echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
16984 { (exit 1); exit 1; }; } ;;
16985 esac
16986
16987 else
16988 enable_tls=yes
16989 fi;
16990
16991 echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
16992 echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
16993 if test "${have_tls+set}" = set; then
16994 echo $ECHO_N "(cached) $ECHO_C" >&6
16995 else
16996
16997 if test "$cross_compiling" = yes; then
16998 cat >conftest.$ac_ext <<_ACEOF
16999 __thread int a; int b; int main() { return a = b; }
17000 _ACEOF
17001 rm -f conftest.$ac_objext conftest$ac_exeext
17002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17003 (eval $ac_link) 2>conftest.er1
17004 ac_status=$?
17005 grep -v '^ *+' conftest.er1 >conftest.err
17006 rm -f conftest.er1
17007 cat conftest.err >&5
17008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17009 (exit $ac_status); } &&
17010 { ac_try='test -z "$ac_c_werror_flag"
17011 || test ! -s conftest.err'
17012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17013 (eval $ac_try) 2>&5
17014 ac_status=$?
17015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17016 (exit $ac_status); }; } &&
17017 { ac_try='test -s conftest$ac_exeext'
17018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17019 (eval $ac_try) 2>&5
17020 ac_status=$?
17021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17022 (exit $ac_status); }; }; then
17023 have_tls=yes
17024 else
17025 echo "$as_me: failed program was:" >&5
17026 sed 's/^/| /' conftest.$ac_ext >&5
17027
17028 have_tls=no
17029 fi
17030 rm -f conftest.err conftest.$ac_objext \
17031 conftest$ac_exeext conftest.$ac_ext
17032
17033
17034 else
17035 cat >conftest.$ac_ext <<_ACEOF
17036 __thread int a; int b; int main() { return a = b; }
17037 _ACEOF
17038 rm -f conftest$ac_exeext
17039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17040 (eval $ac_link) 2>&5
17041 ac_status=$?
17042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17043 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17045 (eval $ac_try) 2>&5
17046 ac_status=$?
17047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17048 (exit $ac_status); }; }; then
17049 chktls_save_LDFLAGS="$LDFLAGS"
17050 LDFLAGS="-static $LDFLAGS"
17051 cat >conftest.$ac_ext <<_ACEOF
17052 int main() { return 0; }
17053 _ACEOF
17054 rm -f conftest.$ac_objext conftest$ac_exeext
17055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17056 (eval $ac_link) 2>conftest.er1
17057 ac_status=$?
17058 grep -v '^ *+' conftest.er1 >conftest.err
17059 rm -f conftest.er1
17060 cat conftest.err >&5
17061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17062 (exit $ac_status); } &&
17063 { ac_try='test -z "$ac_c_werror_flag"
17064 || test ! -s conftest.err'
17065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17066 (eval $ac_try) 2>&5
17067 ac_status=$?
17068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17069 (exit $ac_status); }; } &&
17070 { ac_try='test -s conftest$ac_exeext'
17071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17072 (eval $ac_try) 2>&5
17073 ac_status=$?
17074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17075 (exit $ac_status); }; }; then
17076 if test "$cross_compiling" = yes; then
17077 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17078 See \`config.log' for more details." >&5
17079 echo "$as_me: error: cannot run test program while cross compiling
17080 See \`config.log' for more details." >&2;}
17081 { (exit 1); exit 1; }; }
17082 else
17083 cat >conftest.$ac_ext <<_ACEOF
17084 __thread int a; int b; int main() { return a = b; }
17085 _ACEOF
17086 rm -f conftest$ac_exeext
17087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17088 (eval $ac_link) 2>&5
17089 ac_status=$?
17090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17091 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17093 (eval $ac_try) 2>&5
17094 ac_status=$?
17095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17096 (exit $ac_status); }; }; then
17097 have_tls=yes
17098 else
17099 echo "$as_me: program exited with status $ac_status" >&5
17100 echo "$as_me: failed program was:" >&5
17101 sed 's/^/| /' conftest.$ac_ext >&5
17102
17103 ( exit $ac_status )
17104 have_tls=no
17105 fi
17106 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17107 fi
17108 else
17109 echo "$as_me: failed program was:" >&5
17110 sed 's/^/| /' conftest.$ac_ext >&5
17111
17112 have_tls=yes
17113 fi
17114 rm -f conftest.err conftest.$ac_objext \
17115 conftest$ac_exeext conftest.$ac_ext
17116 LDFLAGS="$chktls_save_LDFLAGS"
17117 if test $have_tls = yes; then
17118 chktls_save_CFLAGS="$CFLAGS"
17119 thread_CFLAGS=failed
17120 for flag in '' '-pthread' '-lpthread'; do
17121 CFLAGS="$flag $chktls_save_CFLAGS"
17122 cat >conftest.$ac_ext <<_ACEOF
17123 /* confdefs.h. */
17124 _ACEOF
17125 cat confdefs.h >>conftest.$ac_ext
17126 cat >>conftest.$ac_ext <<_ACEOF
17127 /* end confdefs.h. */
17128 #include <pthread.h>
17129 void *g(void *d) { return NULL; }
17130 int
17131 main ()
17132 {
17133 pthread_t t; pthread_create(&t,NULL,g,NULL);
17134 ;
17135 return 0;
17136 }
17137 _ACEOF
17138 rm -f conftest.$ac_objext conftest$ac_exeext
17139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17140 (eval $ac_link) 2>conftest.er1
17141 ac_status=$?
17142 grep -v '^ *+' conftest.er1 >conftest.err
17143 rm -f conftest.er1
17144 cat conftest.err >&5
17145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146 (exit $ac_status); } &&
17147 { ac_try='test -z "$ac_c_werror_flag"
17148 || test ! -s conftest.err'
17149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17150 (eval $ac_try) 2>&5
17151 ac_status=$?
17152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17153 (exit $ac_status); }; } &&
17154 { ac_try='test -s conftest$ac_exeext'
17155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17156 (eval $ac_try) 2>&5
17157 ac_status=$?
17158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17159 (exit $ac_status); }; }; then
17160 thread_CFLAGS="$flag"
17161 else
17162 echo "$as_me: failed program was:" >&5
17163 sed 's/^/| /' conftest.$ac_ext >&5
17164
17165 fi
17166 rm -f conftest.err conftest.$ac_objext \
17167 conftest$ac_exeext conftest.$ac_ext
17168 if test "X$thread_CFLAGS" != Xfailed; then
17169 break
17170 fi
17171 done
17172 CFLAGS="$chktls_save_CFLAGS"
17173 if test "X$thread_CFLAGS" != Xfailed; then
17174 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
17175 if test "$cross_compiling" = yes; then
17176 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17177 See \`config.log' for more details." >&5
17178 echo "$as_me: error: cannot run test program while cross compiling
17179 See \`config.log' for more details." >&2;}
17180 { (exit 1); exit 1; }; }
17181 else
17182 cat >conftest.$ac_ext <<_ACEOF
17183 /* confdefs.h. */
17184 _ACEOF
17185 cat confdefs.h >>conftest.$ac_ext
17186 cat >>conftest.$ac_ext <<_ACEOF
17187 /* end confdefs.h. */
17188 #include <pthread.h>
17189 __thread int a;
17190 static int *a_in_other_thread;
17191 static void *
17192 thread_func (void *arg)
17193 {
17194 a_in_other_thread = &a;
17195 return (void *)0;
17196 }
17197 int
17198 main ()
17199 {
17200 pthread_t thread;
17201 void *thread_retval;
17202 int *a_in_main_thread;
17203 if (pthread_create (&thread, (pthread_attr_t *)0,
17204 thread_func, (void *)0))
17205 return 0;
17206 a_in_main_thread = &a;
17207 if (pthread_join (thread, &thread_retval))
17208 return 0;
17209 return (a_in_other_thread == a_in_main_thread);
17210 ;
17211 return 0;
17212 }
17213 _ACEOF
17214 rm -f conftest$ac_exeext
17215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17216 (eval $ac_link) 2>&5
17217 ac_status=$?
17218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17219 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17221 (eval $ac_try) 2>&5
17222 ac_status=$?
17223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17224 (exit $ac_status); }; }; then
17225 have_tls=yes
17226 else
17227 echo "$as_me: program exited with status $ac_status" >&5
17228 echo "$as_me: failed program was:" >&5
17229 sed 's/^/| /' conftest.$ac_ext >&5
17230
17231 ( exit $ac_status )
17232 have_tls=no
17233 fi
17234 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17235 fi
17236 CFLAGS="$chktls_save_CFLAGS"
17237 fi
17238 fi
17239 else
17240 echo "$as_me: program exited with status $ac_status" >&5
17241 echo "$as_me: failed program was:" >&5
17242 sed 's/^/| /' conftest.$ac_ext >&5
17243
17244 ( exit $ac_status )
17245 have_tls=no
17246 fi
17247 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17248 fi
17249 fi
17250 echo "$as_me:$LINENO: result: $have_tls" >&5
17251 echo "${ECHO_T}$have_tls" >&6
17252 if test "$enable_tls $have_tls" = "yes yes"; then
17253
17254 cat >>confdefs.h <<\_ACEOF
17255 #define HAVE_TLS 1
17256 _ACEOF
17257
17258 fi
17259
17260 # See what sort of export controls are availible.
17261
17262 echo "$as_me:$LINENO: checking whether the target supports hidden visibility" >&5
17263 echo $ECHO_N "checking whether the target supports hidden visibility... $ECHO_C" >&6
17264 if test "${have_attribute_visibility+set}" = set; then
17265 echo $ECHO_N "(cached) $ECHO_C" >&6
17266 else
17267
17268 save_CFLAGS="$CFLAGS"
17269 CFLAGS="$CFLAGS -Werror"
17270 cat >conftest.$ac_ext <<_ACEOF
17271 /* confdefs.h. */
17272 _ACEOF
17273 cat confdefs.h >>conftest.$ac_ext
17274 cat >>conftest.$ac_ext <<_ACEOF
17275 /* end confdefs.h. */
17276 void __attribute__((visibility("hidden"))) foo(void) { }
17277 int
17278 main ()
17279 {
17280
17281 ;
17282 return 0;
17283 }
17284 _ACEOF
17285 rm -f conftest.$ac_objext
17286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17287 (eval $ac_compile) 2>conftest.er1
17288 ac_status=$?
17289 grep -v '^ *+' conftest.er1 >conftest.err
17290 rm -f conftest.er1
17291 cat conftest.err >&5
17292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17293 (exit $ac_status); } &&
17294 { ac_try='test -z "$ac_c_werror_flag"
17295 || test ! -s conftest.err'
17296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17297 (eval $ac_try) 2>&5
17298 ac_status=$?
17299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17300 (exit $ac_status); }; } &&
17301 { ac_try='test -s conftest.$ac_objext'
17302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17303 (eval $ac_try) 2>&5
17304 ac_status=$?
17305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17306 (exit $ac_status); }; }; then
17307 have_attribute_visibility=yes
17308 else
17309 echo "$as_me: failed program was:" >&5
17310 sed 's/^/| /' conftest.$ac_ext >&5
17311
17312 have_attribute_visibility=no
17313 fi
17314 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17315 CFLAGS="$save_CFLAGS"
17316 fi
17317 echo "$as_me:$LINENO: result: $have_attribute_visibility" >&5
17318 echo "${ECHO_T}$have_attribute_visibility" >&6
17319 if test $have_attribute_visibility = yes; then
17320
17321 cat >>confdefs.h <<\_ACEOF
17322 #define HAVE_ATTRIBUTE_VISIBILITY 1
17323 _ACEOF
17324
17325 fi
17326
17327 echo "$as_me:$LINENO: checking whether the target supports dllexport" >&5
17328 echo $ECHO_N "checking whether the target supports dllexport... $ECHO_C" >&6
17329 if test "${have_attribute_dllexport+set}" = set; then
17330 echo $ECHO_N "(cached) $ECHO_C" >&6
17331 else
17332
17333 save_CFLAGS="$CFLAGS"
17334 CFLAGS="$CFLAGS -Werror"
17335 cat >conftest.$ac_ext <<_ACEOF
17336 /* confdefs.h. */
17337 _ACEOF
17338 cat confdefs.h >>conftest.$ac_ext
17339 cat >>conftest.$ac_ext <<_ACEOF
17340 /* end confdefs.h. */
17341 void __attribute__((dllexport)) foo(void) { }
17342 int
17343 main ()
17344 {
17345
17346 ;
17347 return 0;
17348 }
17349 _ACEOF
17350 rm -f conftest.$ac_objext
17351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17352 (eval $ac_compile) 2>conftest.er1
17353 ac_status=$?
17354 grep -v '^ *+' conftest.er1 >conftest.err
17355 rm -f conftest.er1
17356 cat conftest.err >&5
17357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17358 (exit $ac_status); } &&
17359 { ac_try='test -z "$ac_c_werror_flag"
17360 || test ! -s conftest.err'
17361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17362 (eval $ac_try) 2>&5
17363 ac_status=$?
17364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17365 (exit $ac_status); }; } &&
17366 { ac_try='test -s conftest.$ac_objext'
17367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17368 (eval $ac_try) 2>&5
17369 ac_status=$?
17370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17371 (exit $ac_status); }; }; then
17372 have_attribute_dllexport=yes
17373 else
17374 echo "$as_me: failed program was:" >&5
17375 sed 's/^/| /' conftest.$ac_ext >&5
17376
17377 have_attribute_dllexport=no
17378 fi
17379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17380 CFLAGS="$save_CFLAGS"
17381 fi
17382 echo "$as_me:$LINENO: result: $have_attribute_dllexport" >&5
17383 echo "${ECHO_T}$have_attribute_dllexport" >&6
17384 if test $have_attribute_dllexport = yes; then
17385
17386 cat >>confdefs.h <<\_ACEOF
17387 #define HAVE_ATTRIBUTE_DLLEXPORT 1
17388 _ACEOF
17389
17390 fi
17391
17392 echo "$as_me:$LINENO: checking whether the target supports symbol aliases" >&5
17393 echo $ECHO_N "checking whether the target supports symbol aliases... $ECHO_C" >&6
17394 if test "${have_attribute_alias+set}" = set; then
17395 echo $ECHO_N "(cached) $ECHO_C" >&6
17396 else
17397
17398 cat >conftest.$ac_ext <<_ACEOF
17399 /* confdefs.h. */
17400 _ACEOF
17401 cat confdefs.h >>conftest.$ac_ext
17402 cat >>conftest.$ac_ext <<_ACEOF
17403 /* end confdefs.h. */
17404
17405 void foo(void) { }
17406 extern void bar(void) __attribute__((alias("foo")));
17407 int
17408 main ()
17409 {
17410 bar();
17411 ;
17412 return 0;
17413 }
17414 _ACEOF
17415 rm -f conftest.$ac_objext conftest$ac_exeext
17416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17417 (eval $ac_link) 2>conftest.er1
17418 ac_status=$?
17419 grep -v '^ *+' conftest.er1 >conftest.err
17420 rm -f conftest.er1
17421 cat conftest.err >&5
17422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17423 (exit $ac_status); } &&
17424 { ac_try='test -z "$ac_c_werror_flag"
17425 || test ! -s conftest.err'
17426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17427 (eval $ac_try) 2>&5
17428 ac_status=$?
17429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17430 (exit $ac_status); }; } &&
17431 { ac_try='test -s conftest$ac_exeext'
17432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17433 (eval $ac_try) 2>&5
17434 ac_status=$?
17435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436 (exit $ac_status); }; }; then
17437 have_attribute_alias=yes
17438 else
17439 echo "$as_me: failed program was:" >&5
17440 sed 's/^/| /' conftest.$ac_ext >&5
17441
17442 have_attribute_alias=no
17443 fi
17444 rm -f conftest.err conftest.$ac_objext \
17445 conftest$ac_exeext conftest.$ac_ext
17446 fi
17447 echo "$as_me:$LINENO: result: $have_attribute_alias" >&5
17448 echo "${ECHO_T}$have_attribute_alias" >&6
17449 if test $have_attribute_alias = yes; then
17450
17451 cat >>confdefs.h <<\_ACEOF
17452 #define HAVE_ATTRIBUTE_ALIAS 1
17453 _ACEOF
17454
17455 fi
17456
17457
17458 # Check whether --with-gnu-ld or --without-gnu-ld was given.
17459 if test "${with_gnu_ld+set}" = set; then
17460 withval="$with_gnu_ld"
17461 test "$withval" = no || with_gnu_ld=yes
17462 else
17463 with_gnu_ld=no
17464 fi;
17465 ac_prog=ld
17466 if test "$GCC" = yes; then
17467 # Check if gcc -print-prog-name=ld gives a path.
17468 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
17469 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
17470 case $host in
17471 *-*-mingw*)
17472 # gcc leaves a trailing carriage return which upsets mingw
17473 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17474 *)
17475 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17476 esac
17477 case $ac_prog in
17478 # Accept absolute paths.
17479 [\\/]* | ?:[\\/]*)
17480 re_direlt='/[^/][^/]*/\.\./'
17481 # Canonicalize the pathname of ld
17482 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17483 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17484 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17485 done
17486 test -z "$LD" && LD="$ac_prog"
17487 ;;
17488 "")
17489 # If it fails, then pretend we aren't using GCC.
17490 ac_prog=ld
17491 ;;
17492 *)
17493 # If it is relative, then search for the first ld in PATH.
17494 with_gnu_ld=unknown
17495 ;;
17496 esac
17497 elif test "$with_gnu_ld" = yes; then
17498 echo "$as_me:$LINENO: checking for GNU ld" >&5
17499 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
17500 else
17501 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
17502 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
17503 fi
17504 if test "${lt_cv_path_LD+set}" = set; then
17505 echo $ECHO_N "(cached) $ECHO_C" >&6
17506 else
17507 if test -z "$LD"; then
17508 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17509 for ac_dir in $PATH; do
17510 IFS="$lt_save_ifs"
17511 test -z "$ac_dir" && ac_dir=.
17512 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17513 lt_cv_path_LD="$ac_dir/$ac_prog"
17514 # Check to see if the program is GNU ld. I'd rather use --version,
17515 # but apparently some variants of GNU ld only accept -v.
17516 # Break only if it was the GNU/non-GNU ld that we prefer.
17517 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17518 *GNU* | *'with BFD'*)
17519 test "$with_gnu_ld" != no && break
17520 ;;
17521 *)
17522 test "$with_gnu_ld" != yes && break
17523 ;;
17524 esac
17525 fi
17526 done
17527 IFS="$lt_save_ifs"
17528 else
17529 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17530 fi
17531 fi
17532
17533 LD="$lt_cv_path_LD"
17534 if test -n "$LD"; then
17535 echo "$as_me:$LINENO: result: $LD" >&5
17536 echo "${ECHO_T}$LD" >&6
17537 else
17538 echo "$as_me:$LINENO: result: no" >&5
17539 echo "${ECHO_T}no" >&6
17540 fi
17541 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
17542 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
17543 { (exit 1); exit 1; }; }
17544 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
17545 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
17546 if test "${lt_cv_prog_gnu_ld+set}" = set; then
17547 echo $ECHO_N "(cached) $ECHO_C" >&6
17548 else
17549 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17550 case `$LD -v 2>&1 </dev/null` in
17551 *GNU* | *'with BFD'*)
17552 lt_cv_prog_gnu_ld=yes
17553 ;;
17554 *)
17555 lt_cv_prog_gnu_ld=no
17556 ;;
17557 esac
17558 fi
17559 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
17560 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
17561 with_gnu_ld=$lt_cv_prog_gnu_ld
17562
17563
17564
17565
17566
17567
17568
17569 # If we're not using GNU ld, then there's no point in even trying these
17570 # tests. Check for that first. We should have already tested for gld
17571 # by now (in libtool), but require it now just to be safe...
17572 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
17573 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
17574
17575
17576
17577 # The name set by libtool depends on the version of libtool. Shame on us
17578 # for depending on an impl detail, but c'est la vie. Older versions used
17579 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
17580 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
17581 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
17582 # set (hence we're using an older libtool), then set it.
17583 if test x${with_gnu_ld+set} != xset; then
17584 if test x${ac_cv_prog_gnu_ld+set} != xset; then
17585 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
17586 with_gnu_ld=no
17587 else
17588 with_gnu_ld=$ac_cv_prog_gnu_ld
17589 fi
17590 fi
17591
17592 # Start by getting the version number. I think the libtool test already
17593 # does some of this, but throws away the result.
17594
17595 ldver=`$LD --version 2>/dev/null | head -1 | \
17596 sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
17597
17598 libgomp_gnu_ld_version=`echo $ldver | \
17599 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
17600
17601 # Set --gc-sections.
17602 if test "$with_gnu_ld" = "notbroken"; then
17603 # GNU ld it is! Joy and bunny rabbits!
17604
17605 # All these tests are for C++; save the language and the compiler flags.
17606 # Need to do this so that g++ won't try to link in libstdc++
17607 ac_test_CFLAGS="${CFLAGS+set}"
17608 ac_save_CFLAGS="$CFLAGS"
17609 CFLAGS='-x c++ -Wl,--gc-sections'
17610
17611 # Check for -Wl,--gc-sections
17612 # XXX This test is broken at the moment, as symbols required for linking
17613 # are now in libsupc++ (not built yet). In addition, this test has
17614 # cored on solaris in the past. In addition, --gc-sections doesn't
17615 # really work at the moment (keeps on discarding used sections, first
17616 # .eh_frame and now some of the glibc sections for iconv).
17617 # Bzzzzt. Thanks for playing, maybe next time.
17618 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
17619 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
17620 if test "$cross_compiling" = yes; then
17621 ac_sectionLDflags=yes
17622 else
17623 cat >conftest.$ac_ext <<_ACEOF
17624 /* confdefs.h. */
17625 _ACEOF
17626 cat confdefs.h >>conftest.$ac_ext
17627 cat >>conftest.$ac_ext <<_ACEOF
17628 /* end confdefs.h. */
17629
17630 int main(void)
17631 {
17632 try { throw 1; }
17633 catch (...) { };
17634 return 0;
17635 }
17636
17637 _ACEOF
17638 rm -f conftest$ac_exeext
17639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17640 (eval $ac_link) 2>&5
17641 ac_status=$?
17642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17643 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17645 (eval $ac_try) 2>&5
17646 ac_status=$?
17647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17648 (exit $ac_status); }; }; then
17649 ac_sectionLDflags=yes
17650 else
17651 echo "$as_me: program exited with status $ac_status" >&5
17652 echo "$as_me: failed program was:" >&5
17653 sed 's/^/| /' conftest.$ac_ext >&5
17654
17655 ( exit $ac_status )
17656 ac_sectionLDflags=no
17657 fi
17658 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17659 fi
17660 if test "$ac_test_CFLAGS" = set; then
17661 CFLAGS="$ac_save_CFLAGS"
17662 else
17663 # this is the suspicious part
17664 CFLAGS=''
17665 fi
17666 if test "$ac_sectionLDflags" = "yes"; then
17667 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
17668 fi
17669 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
17670 echo "${ECHO_T}$ac_sectionLDflags" >&6
17671 fi
17672
17673 # Set linker optimization flags.
17674 if test x"$with_gnu_ld" = x"yes"; then
17675 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
17676 fi
17677
17678
17679
17680
17681
17682
17683 # Check whether --enable-symvers or --disable-symvers was given.
17684 if test "${enable_symvers+set}" = set; then
17685 enableval="$enable_symvers"
17686
17687 case "$enableval" in
17688 yes|no|gnu) ;;
17689 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable symvers" >&5
17690 echo "$as_me: error: Unknown argument to enable/disable symvers" >&2;}
17691 { (exit 1); exit 1; }; } ;;
17692 esac
17693
17694 else
17695 enable_symvers=yes
17696 fi;
17697
17698
17699 # If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
17700 # don't know enough about $LD to do tricks...
17701
17702 # FIXME The following test is too strict, in theory.
17703 if test $enable_shared = no ||
17704 test "x$LD" = x ||
17705 test x$libgomp_gnu_ld_version = x; then
17706 enable_symvers=no
17707 fi
17708
17709 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
17710 if test $enable_symvers != no; then
17711 echo "$as_me:$LINENO: checking for shared libgcc" >&5
17712 echo $ECHO_N "checking for shared libgcc... $ECHO_C" >&6
17713 ac_save_CFLAGS="$CFLAGS"
17714 CFLAGS=' -lgcc_s'
17715 cat >conftest.$ac_ext <<_ACEOF
17716 /* confdefs.h. */
17717 _ACEOF
17718 cat confdefs.h >>conftest.$ac_ext
17719 cat >>conftest.$ac_ext <<_ACEOF
17720 /* end confdefs.h. */
17721
17722 int
17723 main ()
17724 {
17725 return 0;
17726 ;
17727 return 0;
17728 }
17729 _ACEOF
17730 rm -f conftest.$ac_objext conftest$ac_exeext
17731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17732 (eval $ac_link) 2>conftest.er1
17733 ac_status=$?
17734 grep -v '^ *+' conftest.er1 >conftest.err
17735 rm -f conftest.er1
17736 cat conftest.err >&5
17737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17738 (exit $ac_status); } &&
17739 { ac_try='test -z "$ac_c_werror_flag"
17740 || test ! -s conftest.err'
17741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17742 (eval $ac_try) 2>&5
17743 ac_status=$?
17744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17745 (exit $ac_status); }; } &&
17746 { ac_try='test -s conftest$ac_exeext'
17747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17748 (eval $ac_try) 2>&5
17749 ac_status=$?
17750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751 (exit $ac_status); }; }; then
17752 libgomp_shared_libgcc=yes
17753 else
17754 echo "$as_me: failed program was:" >&5
17755 sed 's/^/| /' conftest.$ac_ext >&5
17756
17757 libgomp_shared_libgcc=no
17758 fi
17759 rm -f conftest.err conftest.$ac_objext \
17760 conftest$ac_exeext conftest.$ac_ext
17761 CFLAGS="$ac_save_CFLAGS"
17762 if test $libgomp_shared_libgcc = no; then
17763 cat > conftest.c <<EOF
17764 int main (void) { return 0; }
17765 EOF
17766 libgomp_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
17767 -shared -shared-libgcc -o conftest.so \
17768 conftest.c -v 2>&1 >/dev/null \
17769 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
17770 rm -f conftest.c conftest.so
17771 if test x${libgomp_libgcc_s_suffix+set} = xset; then
17772 CFLAGS=" -lgcc_s$libgomp_libgcc_s_suffix"
17773 cat >conftest.$ac_ext <<_ACEOF
17774 /* confdefs.h. */
17775 _ACEOF
17776 cat confdefs.h >>conftest.$ac_ext
17777 cat >>conftest.$ac_ext <<_ACEOF
17778 /* end confdefs.h. */
17779
17780 int
17781 main ()
17782 {
17783 return 0;
17784 ;
17785 return 0;
17786 }
17787 _ACEOF
17788 rm -f conftest.$ac_objext conftest$ac_exeext
17789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17790 (eval $ac_link) 2>conftest.er1
17791 ac_status=$?
17792 grep -v '^ *+' conftest.er1 >conftest.err
17793 rm -f conftest.er1
17794 cat conftest.err >&5
17795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17796 (exit $ac_status); } &&
17797 { ac_try='test -z "$ac_c_werror_flag"
17798 || test ! -s conftest.err'
17799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17800 (eval $ac_try) 2>&5
17801 ac_status=$?
17802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17803 (exit $ac_status); }; } &&
17804 { ac_try='test -s conftest$ac_exeext'
17805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17806 (eval $ac_try) 2>&5
17807 ac_status=$?
17808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17809 (exit $ac_status); }; }; then
17810 libgomp_shared_libgcc=yes
17811 else
17812 echo "$as_me: failed program was:" >&5
17813 sed 's/^/| /' conftest.$ac_ext >&5
17814
17815 fi
17816 rm -f conftest.err conftest.$ac_objext \
17817 conftest$ac_exeext conftest.$ac_ext
17818 CFLAGS="$ac_save_CFLAGS"
17819 fi
17820 fi
17821 echo "$as_me:$LINENO: result: $libgomp_shared_libgcc" >&5
17822 echo "${ECHO_T}$libgomp_shared_libgcc" >&6
17823 fi
17824
17825 # For GNU ld, we need at least this version. The format is described in
17826 # LIBGOMP_CHECK_LINKER_FEATURES above.
17827 libgomp_min_gnu_ld_version=21400
17828 # XXXXXXXXXXX libgomp_gnu_ld_version=21390
17829
17830 # Check to see if unspecified "yes" value can win, given results above.
17831 # Change "yes" into either "no" or a style name.
17832 if test $enable_symvers = yes; then
17833 if test $with_gnu_ld = yes &&
17834 test $libgomp_shared_libgcc = yes;
17835 then
17836 if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
17837 enable_symvers=gnu
17838 else
17839 # The right tools, the right setup, but too old. Fallbacks?
17840 { echo "$as_me:$LINENO: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
17841 echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
17842 { echo "$as_me:$LINENO: WARNING: === full symbol versioning support in this release of GCC." >&5
17843 echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
17844 { echo "$as_me:$LINENO: WARNING: === You would need to upgrade your binutils to version" >&5
17845 echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
17846 { echo "$as_me:$LINENO: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
17847 echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
17848 if test $libgomp_gnu_ld_version -ge 21200 ; then
17849 # Globbing fix is present, proper block support is not.
17850 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
17851 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17852 enable_symvers=no
17853 else
17854 # 2.11 or older.
17855 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
17856 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17857 enable_symvers=no
17858 fi
17859 fi
17860 else
17861 # just fail for now
17862 { echo "$as_me:$LINENO: WARNING: === You have requested some kind of symbol versioning, but" >&5
17863 echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
17864 { echo "$as_me:$LINENO: WARNING: === either you are not using a supported linker, or you are" >&5
17865 echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
17866 { echo "$as_me:$LINENO: WARNING: === not building a shared libgcc_s (which is required)." >&5
17867 echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
17868 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
17869 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17870 enable_symvers=no
17871 fi
17872 fi
17873
17874
17875
17876 if test $enable_symvers != no; then
17877 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE=
17878 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='#'
17879 else
17880 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#'
17881 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE=
17882 fi
17883
17884 { echo "$as_me:$LINENO: versioning on shared library symbols is $enable_symvers" >&5
17885 echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
17886
17887
17888 # Get target configury.
17889 . ${srcdir}/configure.tgt
17890 CFLAGS="$save_CFLAGS $XCFLAGS"
17891
17892 # Check for __sync_val_compare_and_swap, but only after the target has
17893 # had a chance to set XCFLAGS.
17894
17895 echo "$as_me:$LINENO: checking whether the target supports __sync_*_compare_and_swap" >&5
17896 echo $ECHO_N "checking whether the target supports __sync_*_compare_and_swap... $ECHO_C" >&6
17897 if test "${have_sync_builtins+set}" = set; then
17898 echo $ECHO_N "(cached) $ECHO_C" >&6
17899 else
17900
17901 cat >conftest.$ac_ext <<_ACEOF
17902 /* confdefs.h. */
17903 _ACEOF
17904 cat confdefs.h >>conftest.$ac_ext
17905 cat >>conftest.$ac_ext <<_ACEOF
17906 /* end confdefs.h. */
17907
17908 int
17909 main ()
17910 {
17911 int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
17912 ;
17913 return 0;
17914 }
17915 _ACEOF
17916 rm -f conftest.$ac_objext conftest$ac_exeext
17917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17918 (eval $ac_link) 2>conftest.er1
17919 ac_status=$?
17920 grep -v '^ *+' conftest.er1 >conftest.err
17921 rm -f conftest.er1
17922 cat conftest.err >&5
17923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17924 (exit $ac_status); } &&
17925 { ac_try='test -z "$ac_c_werror_flag"
17926 || test ! -s conftest.err'
17927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17928 (eval $ac_try) 2>&5
17929 ac_status=$?
17930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17931 (exit $ac_status); }; } &&
17932 { ac_try='test -s conftest$ac_exeext'
17933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17934 (eval $ac_try) 2>&5
17935 ac_status=$?
17936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17937 (exit $ac_status); }; }; then
17938 have_sync_builtins=yes
17939 else
17940 echo "$as_me: failed program was:" >&5
17941 sed 's/^/| /' conftest.$ac_ext >&5
17942
17943 have_sync_builtins=no
17944 fi
17945 rm -f conftest.err conftest.$ac_objext \
17946 conftest$ac_exeext conftest.$ac_ext
17947 fi
17948 echo "$as_me:$LINENO: result: $have_sync_builtins" >&5
17949 echo "${ECHO_T}$have_sync_builtins" >&6
17950 if test $have_sync_builtins = yes; then
17951
17952 cat >>confdefs.h <<\_ACEOF
17953 #define HAVE_SYNC_BUILTINS 1
17954 _ACEOF
17955
17956 fi
17957
17958 XCFLAGS="$XCFLAGS$XPCFLAGS"
17959
17960
17961
17962
17963
17964 # Cleanup and exit.
17965 CFLAGS="$save_CFLAGS"
17966 cat >confcache <<\_ACEOF
17967 # This file is a shell script that caches the results of configure
17968 # tests run on this system so they can be shared between configure
17969 # scripts and configure runs, see configure's option --config-cache.
17970 # It is not useful on other systems. If it contains results you don't
17971 # want to keep, you may remove or edit it.
17972 #
17973 # config.status only pays attention to the cache file if you give it
17974 # the --recheck option to rerun configure.
17975 #
17976 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17977 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17978 # following values.
17979
17980 _ACEOF
17981
17982 # The following way of writing the cache mishandles newlines in values,
17983 # but we know of no workaround that is simple, portable, and efficient.
17984 # So, don't put newlines in cache variables' values.
17985 # Ultrix sh set writes to stderr and can't be redirected directly,
17986 # and sets the high bit in the cache file unless we assign to the vars.
17987 {
17988 (set) 2>&1 |
17989 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17990 *ac_space=\ *)
17991 # `set' does not quote correctly, so add quotes (double-quote
17992 # substitution turns \\\\ into \\, and sed turns \\ into \).
17993 sed -n \
17994 "s/'/'\\\\''/g;
17995 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17996 ;;
17997 *)
17998 # `set' quotes correctly as required by POSIX, so do not add quotes.
17999 sed -n \
18000 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18001 ;;
18002 esac;
18003 } |
18004 sed '
18005 t clear
18006 : clear
18007 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18008 t end
18009 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18010 : end' >>confcache
18011 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18012 if test -w $cache_file; then
18013 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18014 cat confcache >$cache_file
18015 else
18016 echo "not updating unwritable cache $cache_file"
18017 fi
18018 fi
18019 rm -f confcache
18020
18021 if test ${multilib} = yes; then
18022 multilib_arg="--enable-multilib"
18023 else
18024 multilib_arg=
18025 fi
18026
18027 # Set up the set of libraries that we need to link against for libgomp.
18028 # Note that the GOMP_SELF_SPEC in gcc.c will force -pthread for -fopenmp,
18029 # which will force linkage against -lpthread (or equivalent for the system).
18030 # That's not 100% ideal, but about the best we can do easily.
18031 if test $enable_shared = yes; then
18032 link_gomp="-lgomp %{static: $LIBS}"
18033 else
18034 link_gomp="-lgomp $LIBS"
18035 fi
18036
18037
18038
18039
18040 if test "$ac_cv_fc_compiler_gnu" = yes; then
18041 USE_FORTRAN_TRUE=
18042 USE_FORTRAN_FALSE='#'
18043 else
18044 USE_FORTRAN_TRUE='#'
18045 USE_FORTRAN_FALSE=
18046 fi
18047
18048
18049 # ??? 2006-01-24: Paulo committed to asking autoconf folk to document
18050 # and export AC_COMPUTE_INT. If that happens, then we'll need to remove
18051 # the underscore here and update the PREREQ. If it doesn't, then we'll
18052 # need to copy this macro to our acinclude.m4.
18053 save_CFLAGS="$CFLAGS"
18054 for i in $config_path; do
18055 if test -f $srcdir/config/$i/omp-lock.h; then
18056 CFLAGS="$CFLAGS -include $srcdir/config/$i/omp-lock.h"
18057 break
18058 fi
18059 done
18060
18061 if test "$cross_compiling" = yes; then
18062 # Depending upon the size, compute the lo and hi bounds.
18063 cat >conftest.$ac_ext <<_ACEOF
18064 /* confdefs.h. */
18065 _ACEOF
18066 cat confdefs.h >>conftest.$ac_ext
18067 cat >>conftest.$ac_ext <<_ACEOF
18068 /* end confdefs.h. */
18069
18070 int
18071 main ()
18072 {
18073 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) >= 0)];
18074 test_array [0] = 0
18075
18076 ;
18077 return 0;
18078 }
18079 _ACEOF
18080 rm -f conftest.$ac_objext
18081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18082 (eval $ac_compile) 2>conftest.er1
18083 ac_status=$?
18084 grep -v '^ *+' conftest.er1 >conftest.err
18085 rm -f conftest.er1
18086 cat conftest.err >&5
18087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18088 (exit $ac_status); } &&
18089 { ac_try='test -z "$ac_c_werror_flag"
18090 || test ! -s conftest.err'
18091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18092 (eval $ac_try) 2>&5
18093 ac_status=$?
18094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18095 (exit $ac_status); }; } &&
18096 { ac_try='test -s conftest.$ac_objext'
18097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18098 (eval $ac_try) 2>&5
18099 ac_status=$?
18100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18101 (exit $ac_status); }; }; then
18102 ac_lo=0 ac_mid=0
18103 while :; do
18104 cat >conftest.$ac_ext <<_ACEOF
18105 /* confdefs.h. */
18106 _ACEOF
18107 cat confdefs.h >>conftest.$ac_ext
18108 cat >>conftest.$ac_ext <<_ACEOF
18109 /* end confdefs.h. */
18110
18111 int
18112 main ()
18113 {
18114 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) <= $ac_mid)];
18115 test_array [0] = 0
18116
18117 ;
18118 return 0;
18119 }
18120 _ACEOF
18121 rm -f conftest.$ac_objext
18122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18123 (eval $ac_compile) 2>conftest.er1
18124 ac_status=$?
18125 grep -v '^ *+' conftest.er1 >conftest.err
18126 rm -f conftest.er1
18127 cat conftest.err >&5
18128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18129 (exit $ac_status); } &&
18130 { ac_try='test -z "$ac_c_werror_flag"
18131 || test ! -s conftest.err'
18132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18133 (eval $ac_try) 2>&5
18134 ac_status=$?
18135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18136 (exit $ac_status); }; } &&
18137 { ac_try='test -s conftest.$ac_objext'
18138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18139 (eval $ac_try) 2>&5
18140 ac_status=$?
18141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18142 (exit $ac_status); }; }; then
18143 ac_hi=$ac_mid; break
18144 else
18145 echo "$as_me: failed program was:" >&5
18146 sed 's/^/| /' conftest.$ac_ext >&5
18147
18148 ac_lo=`expr $ac_mid + 1`
18149 if test $ac_lo -le $ac_mid; then
18150 ac_lo= ac_hi=
18151 break
18152 fi
18153 ac_mid=`expr 2 '*' $ac_mid + 1`
18154 fi
18155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18156 done
18157 else
18158 echo "$as_me: failed program was:" >&5
18159 sed 's/^/| /' conftest.$ac_ext >&5
18160
18161 cat >conftest.$ac_ext <<_ACEOF
18162 /* confdefs.h. */
18163 _ACEOF
18164 cat confdefs.h >>conftest.$ac_ext
18165 cat >>conftest.$ac_ext <<_ACEOF
18166 /* end confdefs.h. */
18167
18168 int
18169 main ()
18170 {
18171 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) < 0)];
18172 test_array [0] = 0
18173
18174 ;
18175 return 0;
18176 }
18177 _ACEOF
18178 rm -f conftest.$ac_objext
18179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18180 (eval $ac_compile) 2>conftest.er1
18181 ac_status=$?
18182 grep -v '^ *+' conftest.er1 >conftest.err
18183 rm -f conftest.er1
18184 cat conftest.err >&5
18185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18186 (exit $ac_status); } &&
18187 { ac_try='test -z "$ac_c_werror_flag"
18188 || test ! -s conftest.err'
18189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18190 (eval $ac_try) 2>&5
18191 ac_status=$?
18192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18193 (exit $ac_status); }; } &&
18194 { ac_try='test -s conftest.$ac_objext'
18195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18196 (eval $ac_try) 2>&5
18197 ac_status=$?
18198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18199 (exit $ac_status); }; }; then
18200 ac_hi=-1 ac_mid=-1
18201 while :; do
18202 cat >conftest.$ac_ext <<_ACEOF
18203 /* confdefs.h. */
18204 _ACEOF
18205 cat confdefs.h >>conftest.$ac_ext
18206 cat >>conftest.$ac_ext <<_ACEOF
18207 /* end confdefs.h. */
18208
18209 int
18210 main ()
18211 {
18212 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) >= $ac_mid)];
18213 test_array [0] = 0
18214
18215 ;
18216 return 0;
18217 }
18218 _ACEOF
18219 rm -f conftest.$ac_objext
18220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18221 (eval $ac_compile) 2>conftest.er1
18222 ac_status=$?
18223 grep -v '^ *+' conftest.er1 >conftest.err
18224 rm -f conftest.er1
18225 cat conftest.err >&5
18226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18227 (exit $ac_status); } &&
18228 { ac_try='test -z "$ac_c_werror_flag"
18229 || test ! -s conftest.err'
18230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18231 (eval $ac_try) 2>&5
18232 ac_status=$?
18233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18234 (exit $ac_status); }; } &&
18235 { ac_try='test -s conftest.$ac_objext'
18236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18237 (eval $ac_try) 2>&5
18238 ac_status=$?
18239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18240 (exit $ac_status); }; }; then
18241 ac_lo=$ac_mid; break
18242 else
18243 echo "$as_me: failed program was:" >&5
18244 sed 's/^/| /' conftest.$ac_ext >&5
18245
18246 ac_hi=`expr '(' $ac_mid ')' - 1`
18247 if test $ac_mid -le $ac_hi; then
18248 ac_lo= ac_hi=
18249 break
18250 fi
18251 ac_mid=`expr 2 '*' $ac_mid`
18252 fi
18253 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18254 done
18255 else
18256 echo "$as_me: failed program was:" >&5
18257 sed 's/^/| /' conftest.$ac_ext >&5
18258
18259 ac_lo= ac_hi=
18260 fi
18261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18262 fi
18263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18264 # Binary search between lo and hi bounds.
18265 while test "x$ac_lo" != "x$ac_hi"; do
18266 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18267 cat >conftest.$ac_ext <<_ACEOF
18268 /* confdefs.h. */
18269 _ACEOF
18270 cat confdefs.h >>conftest.$ac_ext
18271 cat >>conftest.$ac_ext <<_ACEOF
18272 /* end confdefs.h. */
18273
18274 int
18275 main ()
18276 {
18277 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) <= $ac_mid)];
18278 test_array [0] = 0
18279
18280 ;
18281 return 0;
18282 }
18283 _ACEOF
18284 rm -f conftest.$ac_objext
18285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18286 (eval $ac_compile) 2>conftest.er1
18287 ac_status=$?
18288 grep -v '^ *+' conftest.er1 >conftest.err
18289 rm -f conftest.er1
18290 cat conftest.err >&5
18291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18292 (exit $ac_status); } &&
18293 { ac_try='test -z "$ac_c_werror_flag"
18294 || test ! -s conftest.err'
18295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18296 (eval $ac_try) 2>&5
18297 ac_status=$?
18298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18299 (exit $ac_status); }; } &&
18300 { ac_try='test -s conftest.$ac_objext'
18301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18302 (eval $ac_try) 2>&5
18303 ac_status=$?
18304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18305 (exit $ac_status); }; }; then
18306 ac_hi=$ac_mid
18307 else
18308 echo "$as_me: failed program was:" >&5
18309 sed 's/^/| /' conftest.$ac_ext >&5
18310
18311 ac_lo=`expr '(' $ac_mid ')' + 1`
18312 fi
18313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18314 done
18315 case $ac_lo in
18316 ?*) OMP_LOCK_SIZE=$ac_lo;;
18317 '') { { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_t)" >&5
18318 echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_t)" >&2;}
18319 { (exit 1); exit 1; }; } ;;
18320 esac
18321 else
18322 if test "$cross_compiling" = yes; then
18323 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18324 See \`config.log' for more details." >&5
18325 echo "$as_me: error: cannot run test program while cross compiling
18326 See \`config.log' for more details." >&2;}
18327 { (exit 1); exit 1; }; }
18328 else
18329 cat >conftest.$ac_ext <<_ACEOF
18330 /* confdefs.h. */
18331 _ACEOF
18332 cat confdefs.h >>conftest.$ac_ext
18333 cat >>conftest.$ac_ext <<_ACEOF
18334 /* end confdefs.h. */
18335
18336 long longval () { return sizeof (omp_lock_t); }
18337 unsigned long ulongval () { return sizeof (omp_lock_t); }
18338 #include <stdio.h>
18339 #include <stdlib.h>
18340 int
18341 main ()
18342 {
18343
18344 FILE *f = fopen ("conftest.val", "w");
18345 if (! f)
18346 exit (1);
18347 if ((sizeof (omp_lock_t)) < 0)
18348 {
18349 long i = longval ();
18350 if (i != (sizeof (omp_lock_t)))
18351 exit (1);
18352 fprintf (f, "%ld\n", i);
18353 }
18354 else
18355 {
18356 unsigned long i = ulongval ();
18357 if (i != (sizeof (omp_lock_t)))
18358 exit (1);
18359 fprintf (f, "%lu\n", i);
18360 }
18361 exit (ferror (f) || fclose (f) != 0);
18362
18363 ;
18364 return 0;
18365 }
18366 _ACEOF
18367 rm -f conftest$ac_exeext
18368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18369 (eval $ac_link) 2>&5
18370 ac_status=$?
18371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18372 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18374 (eval $ac_try) 2>&5
18375 ac_status=$?
18376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18377 (exit $ac_status); }; }; then
18378 OMP_LOCK_SIZE=`cat conftest.val`
18379 else
18380 echo "$as_me: program exited with status $ac_status" >&5
18381 echo "$as_me: failed program was:" >&5
18382 sed 's/^/| /' conftest.$ac_ext >&5
18383
18384 ( exit $ac_status )
18385 { { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_t)" >&5
18386 echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_t)" >&2;}
18387 { (exit 1); exit 1; }; }
18388 fi
18389 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18390 fi
18391 fi
18392 rm -f conftest.val
18393 if test "$cross_compiling" = yes; then
18394 # Depending upon the size, compute the lo and hi bounds.
18395 cat >conftest.$ac_ext <<_ACEOF
18396 /* confdefs.h. */
18397 _ACEOF
18398 cat confdefs.h >>conftest.$ac_ext
18399 cat >>conftest.$ac_ext <<_ACEOF
18400 /* end confdefs.h. */
18401
18402 int
18403 main ()
18404 {
18405 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) >= 0)];
18406 test_array [0] = 0
18407
18408 ;
18409 return 0;
18410 }
18411 _ACEOF
18412 rm -f conftest.$ac_objext
18413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18414 (eval $ac_compile) 2>conftest.er1
18415 ac_status=$?
18416 grep -v '^ *+' conftest.er1 >conftest.err
18417 rm -f conftest.er1
18418 cat conftest.err >&5
18419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18420 (exit $ac_status); } &&
18421 { ac_try='test -z "$ac_c_werror_flag"
18422 || test ! -s conftest.err'
18423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18424 (eval $ac_try) 2>&5
18425 ac_status=$?
18426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18427 (exit $ac_status); }; } &&
18428 { ac_try='test -s conftest.$ac_objext'
18429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18430 (eval $ac_try) 2>&5
18431 ac_status=$?
18432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18433 (exit $ac_status); }; }; then
18434 ac_lo=0 ac_mid=0
18435 while :; do
18436 cat >conftest.$ac_ext <<_ACEOF
18437 /* confdefs.h. */
18438 _ACEOF
18439 cat confdefs.h >>conftest.$ac_ext
18440 cat >>conftest.$ac_ext <<_ACEOF
18441 /* end confdefs.h. */
18442
18443 int
18444 main ()
18445 {
18446 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) <= $ac_mid)];
18447 test_array [0] = 0
18448
18449 ;
18450 return 0;
18451 }
18452 _ACEOF
18453 rm -f conftest.$ac_objext
18454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18455 (eval $ac_compile) 2>conftest.er1
18456 ac_status=$?
18457 grep -v '^ *+' conftest.er1 >conftest.err
18458 rm -f conftest.er1
18459 cat conftest.err >&5
18460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18461 (exit $ac_status); } &&
18462 { ac_try='test -z "$ac_c_werror_flag"
18463 || test ! -s conftest.err'
18464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18465 (eval $ac_try) 2>&5
18466 ac_status=$?
18467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18468 (exit $ac_status); }; } &&
18469 { ac_try='test -s conftest.$ac_objext'
18470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18471 (eval $ac_try) 2>&5
18472 ac_status=$?
18473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18474 (exit $ac_status); }; }; then
18475 ac_hi=$ac_mid; break
18476 else
18477 echo "$as_me: failed program was:" >&5
18478 sed 's/^/| /' conftest.$ac_ext >&5
18479
18480 ac_lo=`expr $ac_mid + 1`
18481 if test $ac_lo -le $ac_mid; then
18482 ac_lo= ac_hi=
18483 break
18484 fi
18485 ac_mid=`expr 2 '*' $ac_mid + 1`
18486 fi
18487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18488 done
18489 else
18490 echo "$as_me: failed program was:" >&5
18491 sed 's/^/| /' conftest.$ac_ext >&5
18492
18493 cat >conftest.$ac_ext <<_ACEOF
18494 /* confdefs.h. */
18495 _ACEOF
18496 cat confdefs.h >>conftest.$ac_ext
18497 cat >>conftest.$ac_ext <<_ACEOF
18498 /* end confdefs.h. */
18499
18500 int
18501 main ()
18502 {
18503 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) < 0)];
18504 test_array [0] = 0
18505
18506 ;
18507 return 0;
18508 }
18509 _ACEOF
18510 rm -f conftest.$ac_objext
18511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18512 (eval $ac_compile) 2>conftest.er1
18513 ac_status=$?
18514 grep -v '^ *+' conftest.er1 >conftest.err
18515 rm -f conftest.er1
18516 cat conftest.err >&5
18517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18518 (exit $ac_status); } &&
18519 { ac_try='test -z "$ac_c_werror_flag"
18520 || test ! -s conftest.err'
18521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18522 (eval $ac_try) 2>&5
18523 ac_status=$?
18524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18525 (exit $ac_status); }; } &&
18526 { ac_try='test -s conftest.$ac_objext'
18527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18528 (eval $ac_try) 2>&5
18529 ac_status=$?
18530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18531 (exit $ac_status); }; }; then
18532 ac_hi=-1 ac_mid=-1
18533 while :; do
18534 cat >conftest.$ac_ext <<_ACEOF
18535 /* confdefs.h. */
18536 _ACEOF
18537 cat confdefs.h >>conftest.$ac_ext
18538 cat >>conftest.$ac_ext <<_ACEOF
18539 /* end confdefs.h. */
18540
18541 int
18542 main ()
18543 {
18544 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) >= $ac_mid)];
18545 test_array [0] = 0
18546
18547 ;
18548 return 0;
18549 }
18550 _ACEOF
18551 rm -f conftest.$ac_objext
18552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18553 (eval $ac_compile) 2>conftest.er1
18554 ac_status=$?
18555 grep -v '^ *+' conftest.er1 >conftest.err
18556 rm -f conftest.er1
18557 cat conftest.err >&5
18558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18559 (exit $ac_status); } &&
18560 { ac_try='test -z "$ac_c_werror_flag"
18561 || test ! -s conftest.err'
18562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18563 (eval $ac_try) 2>&5
18564 ac_status=$?
18565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18566 (exit $ac_status); }; } &&
18567 { ac_try='test -s conftest.$ac_objext'
18568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18569 (eval $ac_try) 2>&5
18570 ac_status=$?
18571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18572 (exit $ac_status); }; }; then
18573 ac_lo=$ac_mid; break
18574 else
18575 echo "$as_me: failed program was:" >&5
18576 sed 's/^/| /' conftest.$ac_ext >&5
18577
18578 ac_hi=`expr '(' $ac_mid ')' - 1`
18579 if test $ac_mid -le $ac_hi; then
18580 ac_lo= ac_hi=
18581 break
18582 fi
18583 ac_mid=`expr 2 '*' $ac_mid`
18584 fi
18585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18586 done
18587 else
18588 echo "$as_me: failed program was:" >&5
18589 sed 's/^/| /' conftest.$ac_ext >&5
18590
18591 ac_lo= ac_hi=
18592 fi
18593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18594 fi
18595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18596 # Binary search between lo and hi bounds.
18597 while test "x$ac_lo" != "x$ac_hi"; do
18598 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18599 cat >conftest.$ac_ext <<_ACEOF
18600 /* confdefs.h. */
18601 _ACEOF
18602 cat confdefs.h >>conftest.$ac_ext
18603 cat >>conftest.$ac_ext <<_ACEOF
18604 /* end confdefs.h. */
18605
18606 int
18607 main ()
18608 {
18609 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) <= $ac_mid)];
18610 test_array [0] = 0
18611
18612 ;
18613 return 0;
18614 }
18615 _ACEOF
18616 rm -f conftest.$ac_objext
18617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18618 (eval $ac_compile) 2>conftest.er1
18619 ac_status=$?
18620 grep -v '^ *+' conftest.er1 >conftest.err
18621 rm -f conftest.er1
18622 cat conftest.err >&5
18623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18624 (exit $ac_status); } &&
18625 { ac_try='test -z "$ac_c_werror_flag"
18626 || test ! -s conftest.err'
18627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18628 (eval $ac_try) 2>&5
18629 ac_status=$?
18630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18631 (exit $ac_status); }; } &&
18632 { ac_try='test -s conftest.$ac_objext'
18633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18634 (eval $ac_try) 2>&5
18635 ac_status=$?
18636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18637 (exit $ac_status); }; }; then
18638 ac_hi=$ac_mid
18639 else
18640 echo "$as_me: failed program was:" >&5
18641 sed 's/^/| /' conftest.$ac_ext >&5
18642
18643 ac_lo=`expr '(' $ac_mid ')' + 1`
18644 fi
18645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18646 done
18647 case $ac_lo in
18648 ?*) OMP_LOCK_ALIGN=$ac_lo;;
18649 '') ;;
18650 esac
18651 else
18652 if test "$cross_compiling" = yes; then
18653 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18654 See \`config.log' for more details." >&5
18655 echo "$as_me: error: cannot run test program while cross compiling
18656 See \`config.log' for more details." >&2;}
18657 { (exit 1); exit 1; }; }
18658 else
18659 cat >conftest.$ac_ext <<_ACEOF
18660 /* confdefs.h. */
18661 _ACEOF
18662 cat confdefs.h >>conftest.$ac_ext
18663 cat >>conftest.$ac_ext <<_ACEOF
18664 /* end confdefs.h. */
18665
18666 long longval () { return __alignof (omp_lock_t); }
18667 unsigned long ulongval () { return __alignof (omp_lock_t); }
18668 #include <stdio.h>
18669 #include <stdlib.h>
18670 int
18671 main ()
18672 {
18673
18674 FILE *f = fopen ("conftest.val", "w");
18675 if (! f)
18676 exit (1);
18677 if ((__alignof (omp_lock_t)) < 0)
18678 {
18679 long i = longval ();
18680 if (i != (__alignof (omp_lock_t)))
18681 exit (1);
18682 fprintf (f, "%ld\n", i);
18683 }
18684 else
18685 {
18686 unsigned long i = ulongval ();
18687 if (i != (__alignof (omp_lock_t)))
18688 exit (1);
18689 fprintf (f, "%lu\n", i);
18690 }
18691 exit (ferror (f) || fclose (f) != 0);
18692
18693 ;
18694 return 0;
18695 }
18696 _ACEOF
18697 rm -f conftest$ac_exeext
18698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18699 (eval $ac_link) 2>&5
18700 ac_status=$?
18701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18702 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18704 (eval $ac_try) 2>&5
18705 ac_status=$?
18706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18707 (exit $ac_status); }; }; then
18708 OMP_LOCK_ALIGN=`cat conftest.val`
18709 else
18710 echo "$as_me: program exited with status $ac_status" >&5
18711 echo "$as_me: failed program was:" >&5
18712 sed 's/^/| /' conftest.$ac_ext >&5
18713
18714 fi
18715 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18716 fi
18717 fi
18718 rm -f conftest.val
18719 if test "$cross_compiling" = yes; then
18720 # Depending upon the size, compute the lo and hi bounds.
18721 cat >conftest.$ac_ext <<_ACEOF
18722 /* confdefs.h. */
18723 _ACEOF
18724 cat confdefs.h >>conftest.$ac_ext
18725 cat >>conftest.$ac_ext <<_ACEOF
18726 /* end confdefs.h. */
18727
18728 int
18729 main ()
18730 {
18731 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) >= 0)];
18732 test_array [0] = 0
18733
18734 ;
18735 return 0;
18736 }
18737 _ACEOF
18738 rm -f conftest.$ac_objext
18739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18740 (eval $ac_compile) 2>conftest.er1
18741 ac_status=$?
18742 grep -v '^ *+' conftest.er1 >conftest.err
18743 rm -f conftest.er1
18744 cat conftest.err >&5
18745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18746 (exit $ac_status); } &&
18747 { ac_try='test -z "$ac_c_werror_flag"
18748 || test ! -s conftest.err'
18749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18750 (eval $ac_try) 2>&5
18751 ac_status=$?
18752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18753 (exit $ac_status); }; } &&
18754 { ac_try='test -s conftest.$ac_objext'
18755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18756 (eval $ac_try) 2>&5
18757 ac_status=$?
18758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18759 (exit $ac_status); }; }; then
18760 ac_lo=0 ac_mid=0
18761 while :; do
18762 cat >conftest.$ac_ext <<_ACEOF
18763 /* confdefs.h. */
18764 _ACEOF
18765 cat confdefs.h >>conftest.$ac_ext
18766 cat >>conftest.$ac_ext <<_ACEOF
18767 /* end confdefs.h. */
18768
18769 int
18770 main ()
18771 {
18772 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) <= $ac_mid)];
18773 test_array [0] = 0
18774
18775 ;
18776 return 0;
18777 }
18778 _ACEOF
18779 rm -f conftest.$ac_objext
18780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18781 (eval $ac_compile) 2>conftest.er1
18782 ac_status=$?
18783 grep -v '^ *+' conftest.er1 >conftest.err
18784 rm -f conftest.er1
18785 cat conftest.err >&5
18786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18787 (exit $ac_status); } &&
18788 { ac_try='test -z "$ac_c_werror_flag"
18789 || test ! -s conftest.err'
18790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18791 (eval $ac_try) 2>&5
18792 ac_status=$?
18793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18794 (exit $ac_status); }; } &&
18795 { ac_try='test -s conftest.$ac_objext'
18796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18797 (eval $ac_try) 2>&5
18798 ac_status=$?
18799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18800 (exit $ac_status); }; }; then
18801 ac_hi=$ac_mid; break
18802 else
18803 echo "$as_me: failed program was:" >&5
18804 sed 's/^/| /' conftest.$ac_ext >&5
18805
18806 ac_lo=`expr $ac_mid + 1`
18807 if test $ac_lo -le $ac_mid; then
18808 ac_lo= ac_hi=
18809 break
18810 fi
18811 ac_mid=`expr 2 '*' $ac_mid + 1`
18812 fi
18813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18814 done
18815 else
18816 echo "$as_me: failed program was:" >&5
18817 sed 's/^/| /' conftest.$ac_ext >&5
18818
18819 cat >conftest.$ac_ext <<_ACEOF
18820 /* confdefs.h. */
18821 _ACEOF
18822 cat confdefs.h >>conftest.$ac_ext
18823 cat >>conftest.$ac_ext <<_ACEOF
18824 /* end confdefs.h. */
18825
18826 int
18827 main ()
18828 {
18829 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) < 0)];
18830 test_array [0] = 0
18831
18832 ;
18833 return 0;
18834 }
18835 _ACEOF
18836 rm -f conftest.$ac_objext
18837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18838 (eval $ac_compile) 2>conftest.er1
18839 ac_status=$?
18840 grep -v '^ *+' conftest.er1 >conftest.err
18841 rm -f conftest.er1
18842 cat conftest.err >&5
18843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18844 (exit $ac_status); } &&
18845 { ac_try='test -z "$ac_c_werror_flag"
18846 || test ! -s conftest.err'
18847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18848 (eval $ac_try) 2>&5
18849 ac_status=$?
18850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18851 (exit $ac_status); }; } &&
18852 { ac_try='test -s conftest.$ac_objext'
18853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18854 (eval $ac_try) 2>&5
18855 ac_status=$?
18856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18857 (exit $ac_status); }; }; then
18858 ac_hi=-1 ac_mid=-1
18859 while :; do
18860 cat >conftest.$ac_ext <<_ACEOF
18861 /* confdefs.h. */
18862 _ACEOF
18863 cat confdefs.h >>conftest.$ac_ext
18864 cat >>conftest.$ac_ext <<_ACEOF
18865 /* end confdefs.h. */
18866
18867 int
18868 main ()
18869 {
18870 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) >= $ac_mid)];
18871 test_array [0] = 0
18872
18873 ;
18874 return 0;
18875 }
18876 _ACEOF
18877 rm -f conftest.$ac_objext
18878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18879 (eval $ac_compile) 2>conftest.er1
18880 ac_status=$?
18881 grep -v '^ *+' conftest.er1 >conftest.err
18882 rm -f conftest.er1
18883 cat conftest.err >&5
18884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18885 (exit $ac_status); } &&
18886 { ac_try='test -z "$ac_c_werror_flag"
18887 || test ! -s conftest.err'
18888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18889 (eval $ac_try) 2>&5
18890 ac_status=$?
18891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18892 (exit $ac_status); }; } &&
18893 { ac_try='test -s conftest.$ac_objext'
18894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18895 (eval $ac_try) 2>&5
18896 ac_status=$?
18897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18898 (exit $ac_status); }; }; then
18899 ac_lo=$ac_mid; break
18900 else
18901 echo "$as_me: failed program was:" >&5
18902 sed 's/^/| /' conftest.$ac_ext >&5
18903
18904 ac_hi=`expr '(' $ac_mid ')' - 1`
18905 if test $ac_mid -le $ac_hi; then
18906 ac_lo= ac_hi=
18907 break
18908 fi
18909 ac_mid=`expr 2 '*' $ac_mid`
18910 fi
18911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18912 done
18913 else
18914 echo "$as_me: failed program was:" >&5
18915 sed 's/^/| /' conftest.$ac_ext >&5
18916
18917 ac_lo= ac_hi=
18918 fi
18919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18920 fi
18921 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18922 # Binary search between lo and hi bounds.
18923 while test "x$ac_lo" != "x$ac_hi"; do
18924 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18925 cat >conftest.$ac_ext <<_ACEOF
18926 /* confdefs.h. */
18927 _ACEOF
18928 cat confdefs.h >>conftest.$ac_ext
18929 cat >>conftest.$ac_ext <<_ACEOF
18930 /* end confdefs.h. */
18931
18932 int
18933 main ()
18934 {
18935 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) <= $ac_mid)];
18936 test_array [0] = 0
18937
18938 ;
18939 return 0;
18940 }
18941 _ACEOF
18942 rm -f conftest.$ac_objext
18943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18944 (eval $ac_compile) 2>conftest.er1
18945 ac_status=$?
18946 grep -v '^ *+' conftest.er1 >conftest.err
18947 rm -f conftest.er1
18948 cat conftest.err >&5
18949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18950 (exit $ac_status); } &&
18951 { ac_try='test -z "$ac_c_werror_flag"
18952 || test ! -s conftest.err'
18953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18954 (eval $ac_try) 2>&5
18955 ac_status=$?
18956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18957 (exit $ac_status); }; } &&
18958 { ac_try='test -s conftest.$ac_objext'
18959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18960 (eval $ac_try) 2>&5
18961 ac_status=$?
18962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18963 (exit $ac_status); }; }; then
18964 ac_hi=$ac_mid
18965 else
18966 echo "$as_me: failed program was:" >&5
18967 sed 's/^/| /' conftest.$ac_ext >&5
18968
18969 ac_lo=`expr '(' $ac_mid ')' + 1`
18970 fi
18971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18972 done
18973 case $ac_lo in
18974 ?*) OMP_NEST_LOCK_SIZE=$ac_lo;;
18975 '') ;;
18976 esac
18977 else
18978 if test "$cross_compiling" = yes; then
18979 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18980 See \`config.log' for more details." >&5
18981 echo "$as_me: error: cannot run test program while cross compiling
18982 See \`config.log' for more details." >&2;}
18983 { (exit 1); exit 1; }; }
18984 else
18985 cat >conftest.$ac_ext <<_ACEOF
18986 /* confdefs.h. */
18987 _ACEOF
18988 cat confdefs.h >>conftest.$ac_ext
18989 cat >>conftest.$ac_ext <<_ACEOF
18990 /* end confdefs.h. */
18991
18992 long longval () { return sizeof (omp_nest_lock_t); }
18993 unsigned long ulongval () { return sizeof (omp_nest_lock_t); }
18994 #include <stdio.h>
18995 #include <stdlib.h>
18996 int
18997 main ()
18998 {
18999
19000 FILE *f = fopen ("conftest.val", "w");
19001 if (! f)
19002 exit (1);
19003 if ((sizeof (omp_nest_lock_t)) < 0)
19004 {
19005 long i = longval ();
19006 if (i != (sizeof (omp_nest_lock_t)))
19007 exit (1);
19008 fprintf (f, "%ld\n", i);
19009 }
19010 else
19011 {
19012 unsigned long i = ulongval ();
19013 if (i != (sizeof (omp_nest_lock_t)))
19014 exit (1);
19015 fprintf (f, "%lu\n", i);
19016 }
19017 exit (ferror (f) || fclose (f) != 0);
19018
19019 ;
19020 return 0;
19021 }
19022 _ACEOF
19023 rm -f conftest$ac_exeext
19024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19025 (eval $ac_link) 2>&5
19026 ac_status=$?
19027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19028 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19030 (eval $ac_try) 2>&5
19031 ac_status=$?
19032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19033 (exit $ac_status); }; }; then
19034 OMP_NEST_LOCK_SIZE=`cat conftest.val`
19035 else
19036 echo "$as_me: program exited with status $ac_status" >&5
19037 echo "$as_me: failed program was:" >&5
19038 sed 's/^/| /' conftest.$ac_ext >&5
19039
19040 fi
19041 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19042 fi
19043 fi
19044 rm -f conftest.val
19045 if test "$cross_compiling" = yes; then
19046 # Depending upon the size, compute the lo and hi bounds.
19047 cat >conftest.$ac_ext <<_ACEOF
19048 /* confdefs.h. */
19049 _ACEOF
19050 cat confdefs.h >>conftest.$ac_ext
19051 cat >>conftest.$ac_ext <<_ACEOF
19052 /* end confdefs.h. */
19053
19054 int
19055 main ()
19056 {
19057 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) >= 0)];
19058 test_array [0] = 0
19059
19060 ;
19061 return 0;
19062 }
19063 _ACEOF
19064 rm -f conftest.$ac_objext
19065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19066 (eval $ac_compile) 2>conftest.er1
19067 ac_status=$?
19068 grep -v '^ *+' conftest.er1 >conftest.err
19069 rm -f conftest.er1
19070 cat conftest.err >&5
19071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19072 (exit $ac_status); } &&
19073 { ac_try='test -z "$ac_c_werror_flag"
19074 || test ! -s conftest.err'
19075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19076 (eval $ac_try) 2>&5
19077 ac_status=$?
19078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19079 (exit $ac_status); }; } &&
19080 { ac_try='test -s conftest.$ac_objext'
19081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19082 (eval $ac_try) 2>&5
19083 ac_status=$?
19084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19085 (exit $ac_status); }; }; then
19086 ac_lo=0 ac_mid=0
19087 while :; do
19088 cat >conftest.$ac_ext <<_ACEOF
19089 /* confdefs.h. */
19090 _ACEOF
19091 cat confdefs.h >>conftest.$ac_ext
19092 cat >>conftest.$ac_ext <<_ACEOF
19093 /* end confdefs.h. */
19094
19095 int
19096 main ()
19097 {
19098 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) <= $ac_mid)];
19099 test_array [0] = 0
19100
19101 ;
19102 return 0;
19103 }
19104 _ACEOF
19105 rm -f conftest.$ac_objext
19106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19107 (eval $ac_compile) 2>conftest.er1
19108 ac_status=$?
19109 grep -v '^ *+' conftest.er1 >conftest.err
19110 rm -f conftest.er1
19111 cat conftest.err >&5
19112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19113 (exit $ac_status); } &&
19114 { ac_try='test -z "$ac_c_werror_flag"
19115 || test ! -s conftest.err'
19116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19117 (eval $ac_try) 2>&5
19118 ac_status=$?
19119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19120 (exit $ac_status); }; } &&
19121 { ac_try='test -s conftest.$ac_objext'
19122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19123 (eval $ac_try) 2>&5
19124 ac_status=$?
19125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19126 (exit $ac_status); }; }; then
19127 ac_hi=$ac_mid; break
19128 else
19129 echo "$as_me: failed program was:" >&5
19130 sed 's/^/| /' conftest.$ac_ext >&5
19131
19132 ac_lo=`expr $ac_mid + 1`
19133 if test $ac_lo -le $ac_mid; then
19134 ac_lo= ac_hi=
19135 break
19136 fi
19137 ac_mid=`expr 2 '*' $ac_mid + 1`
19138 fi
19139 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19140 done
19141 else
19142 echo "$as_me: failed program was:" >&5
19143 sed 's/^/| /' conftest.$ac_ext >&5
19144
19145 cat >conftest.$ac_ext <<_ACEOF
19146 /* confdefs.h. */
19147 _ACEOF
19148 cat confdefs.h >>conftest.$ac_ext
19149 cat >>conftest.$ac_ext <<_ACEOF
19150 /* end confdefs.h. */
19151
19152 int
19153 main ()
19154 {
19155 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) < 0)];
19156 test_array [0] = 0
19157
19158 ;
19159 return 0;
19160 }
19161 _ACEOF
19162 rm -f conftest.$ac_objext
19163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19164 (eval $ac_compile) 2>conftest.er1
19165 ac_status=$?
19166 grep -v '^ *+' conftest.er1 >conftest.err
19167 rm -f conftest.er1
19168 cat conftest.err >&5
19169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19170 (exit $ac_status); } &&
19171 { ac_try='test -z "$ac_c_werror_flag"
19172 || test ! -s conftest.err'
19173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19174 (eval $ac_try) 2>&5
19175 ac_status=$?
19176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19177 (exit $ac_status); }; } &&
19178 { ac_try='test -s conftest.$ac_objext'
19179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19180 (eval $ac_try) 2>&5
19181 ac_status=$?
19182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19183 (exit $ac_status); }; }; then
19184 ac_hi=-1 ac_mid=-1
19185 while :; do
19186 cat >conftest.$ac_ext <<_ACEOF
19187 /* confdefs.h. */
19188 _ACEOF
19189 cat confdefs.h >>conftest.$ac_ext
19190 cat >>conftest.$ac_ext <<_ACEOF
19191 /* end confdefs.h. */
19192
19193 int
19194 main ()
19195 {
19196 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) >= $ac_mid)];
19197 test_array [0] = 0
19198
19199 ;
19200 return 0;
19201 }
19202 _ACEOF
19203 rm -f conftest.$ac_objext
19204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19205 (eval $ac_compile) 2>conftest.er1
19206 ac_status=$?
19207 grep -v '^ *+' conftest.er1 >conftest.err
19208 rm -f conftest.er1
19209 cat conftest.err >&5
19210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19211 (exit $ac_status); } &&
19212 { ac_try='test -z "$ac_c_werror_flag"
19213 || test ! -s conftest.err'
19214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19215 (eval $ac_try) 2>&5
19216 ac_status=$?
19217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19218 (exit $ac_status); }; } &&
19219 { ac_try='test -s conftest.$ac_objext'
19220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19221 (eval $ac_try) 2>&5
19222 ac_status=$?
19223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19224 (exit $ac_status); }; }; then
19225 ac_lo=$ac_mid; break
19226 else
19227 echo "$as_me: failed program was:" >&5
19228 sed 's/^/| /' conftest.$ac_ext >&5
19229
19230 ac_hi=`expr '(' $ac_mid ')' - 1`
19231 if test $ac_mid -le $ac_hi; then
19232 ac_lo= ac_hi=
19233 break
19234 fi
19235 ac_mid=`expr 2 '*' $ac_mid`
19236 fi
19237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19238 done
19239 else
19240 echo "$as_me: failed program was:" >&5
19241 sed 's/^/| /' conftest.$ac_ext >&5
19242
19243 ac_lo= ac_hi=
19244 fi
19245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19246 fi
19247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19248 # Binary search between lo and hi bounds.
19249 while test "x$ac_lo" != "x$ac_hi"; do
19250 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19251 cat >conftest.$ac_ext <<_ACEOF
19252 /* confdefs.h. */
19253 _ACEOF
19254 cat confdefs.h >>conftest.$ac_ext
19255 cat >>conftest.$ac_ext <<_ACEOF
19256 /* end confdefs.h. */
19257
19258 int
19259 main ()
19260 {
19261 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) <= $ac_mid)];
19262 test_array [0] = 0
19263
19264 ;
19265 return 0;
19266 }
19267 _ACEOF
19268 rm -f conftest.$ac_objext
19269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19270 (eval $ac_compile) 2>conftest.er1
19271 ac_status=$?
19272 grep -v '^ *+' conftest.er1 >conftest.err
19273 rm -f conftest.er1
19274 cat conftest.err >&5
19275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19276 (exit $ac_status); } &&
19277 { ac_try='test -z "$ac_c_werror_flag"
19278 || test ! -s conftest.err'
19279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19280 (eval $ac_try) 2>&5
19281 ac_status=$?
19282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19283 (exit $ac_status); }; } &&
19284 { ac_try='test -s conftest.$ac_objext'
19285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19286 (eval $ac_try) 2>&5
19287 ac_status=$?
19288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19289 (exit $ac_status); }; }; then
19290 ac_hi=$ac_mid
19291 else
19292 echo "$as_me: failed program was:" >&5
19293 sed 's/^/| /' conftest.$ac_ext >&5
19294
19295 ac_lo=`expr '(' $ac_mid ')' + 1`
19296 fi
19297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19298 done
19299 case $ac_lo in
19300 ?*) OMP_NEST_LOCK_ALIGN=$ac_lo;;
19301 '') ;;
19302 esac
19303 else
19304 if test "$cross_compiling" = yes; then
19305 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19306 See \`config.log' for more details." >&5
19307 echo "$as_me: error: cannot run test program while cross compiling
19308 See \`config.log' for more details." >&2;}
19309 { (exit 1); exit 1; }; }
19310 else
19311 cat >conftest.$ac_ext <<_ACEOF
19312 /* confdefs.h. */
19313 _ACEOF
19314 cat confdefs.h >>conftest.$ac_ext
19315 cat >>conftest.$ac_ext <<_ACEOF
19316 /* end confdefs.h. */
19317
19318 long longval () { return __alignof (omp_nest_lock_t); }
19319 unsigned long ulongval () { return __alignof (omp_nest_lock_t); }
19320 #include <stdio.h>
19321 #include <stdlib.h>
19322 int
19323 main ()
19324 {
19325
19326 FILE *f = fopen ("conftest.val", "w");
19327 if (! f)
19328 exit (1);
19329 if ((__alignof (omp_nest_lock_t)) < 0)
19330 {
19331 long i = longval ();
19332 if (i != (__alignof (omp_nest_lock_t)))
19333 exit (1);
19334 fprintf (f, "%ld\n", i);
19335 }
19336 else
19337 {
19338 unsigned long i = ulongval ();
19339 if (i != (__alignof (omp_nest_lock_t)))
19340 exit (1);
19341 fprintf (f, "%lu\n", i);
19342 }
19343 exit (ferror (f) || fclose (f) != 0);
19344
19345 ;
19346 return 0;
19347 }
19348 _ACEOF
19349 rm -f conftest$ac_exeext
19350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19351 (eval $ac_link) 2>&5
19352 ac_status=$?
19353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19354 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19356 (eval $ac_try) 2>&5
19357 ac_status=$?
19358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19359 (exit $ac_status); }; }; then
19360 OMP_NEST_LOCK_ALIGN=`cat conftest.val`
19361 else
19362 echo "$as_me: program exited with status $ac_status" >&5
19363 echo "$as_me: failed program was:" >&5
19364 sed 's/^/| /' conftest.$ac_ext >&5
19365
19366 fi
19367 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19368 fi
19369 fi
19370 rm -f conftest.val
19371
19372 # If the lock fits in an integer, then arrange for Fortran to use that
19373 # integer. If it doesn't, then arrange for Fortran to use a pointer.
19374 # Except that we don't have a way at present to multi-lib the installed
19375 # Fortran modules, so we assume 8 bytes for pointers, regardless of the
19376 # actual target.
19377 OMP_LOCK_KIND=$OMP_LOCK_SIZE
19378 OMP_NEST_LOCK_KIND=$OMP_NEST_LOCK_SIZE
19379 if test $OMP_LOCK_SIZE -gt 8 || test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
19380 OMP_LOCK_KIND=8
19381 fi
19382 if test $OMP_NEST_LOCK_SIZE -gt 8 || test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
19383 OMP_NEST_LOCK_KIND=8
19384 fi
19385
19386
19387
19388
19389
19390
19391
19392 CFLAGS="$save_CFLAGS"
19393
19394 ac_config_files="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
19395
19396 ac_config_files="$ac_config_files Makefile testsuite/Makefile libgomp.spec"
19397
19398 cat >confcache <<\_ACEOF
19399 # This file is a shell script that caches the results of configure
19400 # tests run on this system so they can be shared between configure
19401 # scripts and configure runs, see configure's option --config-cache.
19402 # It is not useful on other systems. If it contains results you don't
19403 # want to keep, you may remove or edit it.
19404 #
19405 # config.status only pays attention to the cache file if you give it
19406 # the --recheck option to rerun configure.
19407 #
19408 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19409 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19410 # following values.
19411
19412 _ACEOF
19413
19414 # The following way of writing the cache mishandles newlines in values,
19415 # but we know of no workaround that is simple, portable, and efficient.
19416 # So, don't put newlines in cache variables' values.
19417 # Ultrix sh set writes to stderr and can't be redirected directly,
19418 # and sets the high bit in the cache file unless we assign to the vars.
19419 {
19420 (set) 2>&1 |
19421 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19422 *ac_space=\ *)
19423 # `set' does not quote correctly, so add quotes (double-quote
19424 # substitution turns \\\\ into \\, and sed turns \\ into \).
19425 sed -n \
19426 "s/'/'\\\\''/g;
19427 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19428 ;;
19429 *)
19430 # `set' quotes correctly as required by POSIX, so do not add quotes.
19431 sed -n \
19432 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19433 ;;
19434 esac;
19435 } |
19436 sed '
19437 t clear
19438 : clear
19439 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19440 t end
19441 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19442 : end' >>confcache
19443 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19444 if test -w $cache_file; then
19445 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19446 cat confcache >$cache_file
19447 else
19448 echo "not updating unwritable cache $cache_file"
19449 fi
19450 fi
19451 rm -f confcache
19452
19453 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19454 # Let make expand exec_prefix.
19455 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19456
19457 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19458 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19459 # trailing colons and then remove the whole line if VPATH becomes empty
19460 # (actually we leave an empty line to preserve line numbers).
19461 if test "x$srcdir" = x.; then
19462 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19463 s/:*\$(srcdir):*/:/;
19464 s/:*\${srcdir}:*/:/;
19465 s/:*@srcdir@:*/:/;
19466 s/^\([^=]*=[ ]*\):*/\1/;
19467 s/:*$//;
19468 s/^[^=]*=[ ]*$//;
19469 }'
19470 fi
19471
19472 DEFS=-DHAVE_CONFIG_H
19473
19474 ac_libobjs=
19475 ac_ltlibobjs=
19476 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19477 # 1. Remove the extension, and $U if already installed.
19478 ac_i=`echo "$ac_i" |
19479 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19480 # 2. Add them.
19481 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19482 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19483 done
19484 LIBOBJS=$ac_libobjs
19485
19486 LTLIBOBJS=$ac_ltlibobjs
19487
19488
19489 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
19490 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC\" was never defined.
19491 Usually this means the macro was only invoked conditionally." >&5
19492 echo "$as_me: error: conditional \"GENINSRC\" was never defined.
19493 Usually this means the macro was only invoked conditionally." >&2;}
19494 { (exit 1); exit 1; }; }
19495 fi
19496 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19497 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19498 Usually this means the macro was only invoked conditionally." >&5
19499 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19500 Usually this means the macro was only invoked conditionally." >&2;}
19501 { (exit 1); exit 1; }; }
19502 fi
19503 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19504 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19505 Usually this means the macro was only invoked conditionally." >&5
19506 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19507 Usually this means the macro was only invoked conditionally." >&2;}
19508 { (exit 1); exit 1; }; }
19509 fi
19510 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
19511 { { echo "$as_me:$LINENO: error: conditional \"BUILD_INFO\" was never defined.
19512 Usually this means the macro was only invoked conditionally." >&5
19513 echo "$as_me: error: conditional \"BUILD_INFO\" was never defined.
19514 Usually this means the macro was only invoked conditionally." >&2;}
19515 { (exit 1); exit 1; }; }
19516 fi
19517 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19518 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
19519 Usually this means the macro was only invoked conditionally." >&5
19520 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
19521 Usually this means the macro was only invoked conditionally." >&2;}
19522 { (exit 1); exit 1; }; }
19523 fi
19524 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
19525 { { echo "$as_me:$LINENO: error: conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
19526 Usually this means the macro was only invoked conditionally." >&5
19527 echo "$as_me: error: conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
19528 Usually this means the macro was only invoked conditionally." >&2;}
19529 { (exit 1); exit 1; }; }
19530 fi
19531 if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
19532 { { echo "$as_me:$LINENO: error: conditional \"USE_FORTRAN\" was never defined.
19533 Usually this means the macro was only invoked conditionally." >&5
19534 echo "$as_me: error: conditional \"USE_FORTRAN\" was never defined.
19535 Usually this means the macro was only invoked conditionally." >&2;}
19536 { (exit 1); exit 1; }; }
19537 fi
19538
19539 : ${CONFIG_STATUS=./config.status}
19540 ac_clean_files_save=$ac_clean_files
19541 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19542 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19543 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19544 cat >$CONFIG_STATUS <<_ACEOF
19545 #! $SHELL
19546 # Generated by $as_me.
19547 # Run this file to recreate the current configuration.
19548 # Compiler output produced by configure, useful for debugging
19549 # configure, is in config.log if it exists.
19550
19551 debug=false
19552 ac_cs_recheck=false
19553 ac_cs_silent=false
19554 SHELL=\${CONFIG_SHELL-$SHELL}
19555 _ACEOF
19556
19557 cat >>$CONFIG_STATUS <<\_ACEOF
19558 ## --------------------- ##
19559 ## M4sh Initialization. ##
19560 ## --------------------- ##
19561
19562 # Be Bourne compatible
19563 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19564 emulate sh
19565 NULLCMD=:
19566 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19567 # is contrary to our usage. Disable this feature.
19568 alias -g '${1+"$@"}'='"$@"'
19569 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19570 set -o posix
19571 fi
19572 DUALCASE=1; export DUALCASE # for MKS sh
19573
19574 # Support unset when possible.
19575 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19576 as_unset=unset
19577 else
19578 as_unset=false
19579 fi
19580
19581
19582 # Work around bugs in pre-3.0 UWIN ksh.
19583 $as_unset ENV MAIL MAILPATH
19584 PS1='$ '
19585 PS2='> '
19586 PS4='+ '
19587
19588 # NLS nuisances.
19589 for as_var in \
19590 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19591 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19592 LC_TELEPHONE LC_TIME
19593 do
19594 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19595 eval $as_var=C; export $as_var
19596 else
19597 $as_unset $as_var
19598 fi
19599 done
19600
19601 # Required to use basename.
19602 if expr a : '\(a\)' >/dev/null 2>&1; then
19603 as_expr=expr
19604 else
19605 as_expr=false
19606 fi
19607
19608 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19609 as_basename=basename
19610 else
19611 as_basename=false
19612 fi
19613
19614
19615 # Name of the executable.
19616 as_me=`$as_basename "$0" ||
19617 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19618 X"$0" : 'X\(//\)$' \| \
19619 X"$0" : 'X\(/\)$' \| \
19620 . : '\(.\)' 2>/dev/null ||
19621 echo X/"$0" |
19622 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19623 /^X\/\(\/\/\)$/{ s//\1/; q; }
19624 /^X\/\(\/\).*/{ s//\1/; q; }
19625 s/.*/./; q'`
19626
19627
19628 # PATH needs CR, and LINENO needs CR and PATH.
19629 # Avoid depending upon Character Ranges.
19630 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19631 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19632 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19633 as_cr_digits='0123456789'
19634 as_cr_alnum=$as_cr_Letters$as_cr_digits
19635
19636 # The user is always right.
19637 if test "${PATH_SEPARATOR+set}" != set; then
19638 echo "#! /bin/sh" >conf$$.sh
19639 echo "exit 0" >>conf$$.sh
19640 chmod +x conf$$.sh
19641 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19642 PATH_SEPARATOR=';'
19643 else
19644 PATH_SEPARATOR=:
19645 fi
19646 rm -f conf$$.sh
19647 fi
19648
19649
19650 as_lineno_1=$LINENO
19651 as_lineno_2=$LINENO
19652 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19653 test "x$as_lineno_1" != "x$as_lineno_2" &&
19654 test "x$as_lineno_3" = "x$as_lineno_2" || {
19655 # Find who we are. Look in the path if we contain no path at all
19656 # relative or not.
19657 case $0 in
19658 *[\\/]* ) as_myself=$0 ;;
19659 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19660 for as_dir in $PATH
19661 do
19662 IFS=$as_save_IFS
19663 test -z "$as_dir" && as_dir=.
19664 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19665 done
19666
19667 ;;
19668 esac
19669 # We did not find ourselves, most probably we were run as `sh COMMAND'
19670 # in which case we are not to be found in the path.
19671 if test "x$as_myself" = x; then
19672 as_myself=$0
19673 fi
19674 if test ! -f "$as_myself"; then
19675 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19676 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19677 { (exit 1); exit 1; }; }
19678 fi
19679 case $CONFIG_SHELL in
19680 '')
19681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19682 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19683 do
19684 IFS=$as_save_IFS
19685 test -z "$as_dir" && as_dir=.
19686 for as_base in sh bash ksh sh5; do
19687 case $as_dir in
19688 /*)
19689 if ("$as_dir/$as_base" -c '
19690 as_lineno_1=$LINENO
19691 as_lineno_2=$LINENO
19692 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19693 test "x$as_lineno_1" != "x$as_lineno_2" &&
19694 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19695 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19696 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19697 CONFIG_SHELL=$as_dir/$as_base
19698 export CONFIG_SHELL
19699 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19700 fi;;
19701 esac
19702 done
19703 done
19704 ;;
19705 esac
19706
19707 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19708 # uniformly replaced by the line number. The first 'sed' inserts a
19709 # line-number line before each line; the second 'sed' does the real
19710 # work. The second script uses 'N' to pair each line-number line
19711 # with the numbered line, and appends trailing '-' during
19712 # substitution so that $LINENO is not a special case at line end.
19713 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19714 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19715 sed '=' <$as_myself |
19716 sed '
19717 N
19718 s,$,-,
19719 : loop
19720 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19721 t loop
19722 s,-$,,
19723 s,^['$as_cr_digits']*\n,,
19724 ' >$as_me.lineno &&
19725 chmod +x $as_me.lineno ||
19726 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19727 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19728 { (exit 1); exit 1; }; }
19729
19730 # Don't try to exec as it changes $[0], causing all sort of problems
19731 # (the dirname of $[0] is not the place where we might find the
19732 # original and so on. Autoconf is especially sensible to this).
19733 . ./$as_me.lineno
19734 # Exit status is that of the last command.
19735 exit
19736 }
19737
19738
19739 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19740 *c*,-n*) ECHO_N= ECHO_C='
19741 ' ECHO_T=' ' ;;
19742 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19743 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19744 esac
19745
19746 if expr a : '\(a\)' >/dev/null 2>&1; then
19747 as_expr=expr
19748 else
19749 as_expr=false
19750 fi
19751
19752 rm -f conf$$ conf$$.exe conf$$.file
19753 echo >conf$$.file
19754 if ln -s conf$$.file conf$$ 2>/dev/null; then
19755 # We could just check for DJGPP; but this test a) works b) is more generic
19756 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19757 if test -f conf$$.exe; then
19758 # Don't use ln at all; we don't have any links
19759 as_ln_s='cp -p'
19760 else
19761 as_ln_s='ln -s'
19762 fi
19763 elif ln conf$$.file conf$$ 2>/dev/null; then
19764 as_ln_s=ln
19765 else
19766 as_ln_s='cp -p'
19767 fi
19768 rm -f conf$$ conf$$.exe conf$$.file
19769
19770 if mkdir -p . 2>/dev/null; then
19771 as_mkdir_p=:
19772 else
19773 test -d ./-p && rmdir ./-p
19774 as_mkdir_p=false
19775 fi
19776
19777 as_executable_p="test -f"
19778
19779 # Sed expression to map a string onto a valid CPP name.
19780 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19781
19782 # Sed expression to map a string onto a valid variable name.
19783 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19784
19785
19786 # IFS
19787 # We need space, tab and new line, in precisely that order.
19788 as_nl='
19789 '
19790 IFS=" $as_nl"
19791
19792 # CDPATH.
19793 $as_unset CDPATH
19794
19795 exec 6>&1
19796
19797 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19798 # report actual input values of CONFIG_FILES etc. instead of their
19799 # values after options handling. Logging --version etc. is OK.
19800 exec 5>>config.log
19801 {
19802 echo
19803 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19804 ## Running $as_me. ##
19805 _ASBOX
19806 } >&5
19807 cat >&5 <<_CSEOF
19808
19809 This file was extended by GNU OpenMP Runtime Library $as_me 1.0, which was
19810 generated by GNU Autoconf 2.59. Invocation command line was
19811
19812 CONFIG_FILES = $CONFIG_FILES
19813 CONFIG_HEADERS = $CONFIG_HEADERS
19814 CONFIG_LINKS = $CONFIG_LINKS
19815 CONFIG_COMMANDS = $CONFIG_COMMANDS
19816 $ $0 $@
19817
19818 _CSEOF
19819 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19820 echo >&5
19821 _ACEOF
19822
19823 # Files that config.status was made for.
19824 if test -n "$ac_config_files"; then
19825 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19826 fi
19827
19828 if test -n "$ac_config_headers"; then
19829 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19830 fi
19831
19832 if test -n "$ac_config_links"; then
19833 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19834 fi
19835
19836 if test -n "$ac_config_commands"; then
19837 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19838 fi
19839
19840 cat >>$CONFIG_STATUS <<\_ACEOF
19841
19842 ac_cs_usage="\
19843 \`$as_me' instantiates files from templates according to the
19844 current configuration.
19845
19846 Usage: $0 [OPTIONS] [FILE]...
19847
19848 -h, --help print this help, then exit
19849 -V, --version print version number, then exit
19850 -q, --quiet do not print progress messages
19851 -d, --debug don't remove temporary files
19852 --recheck update $as_me by reconfiguring in the same conditions
19853 --file=FILE[:TEMPLATE]
19854 instantiate the configuration file FILE
19855 --header=FILE[:TEMPLATE]
19856 instantiate the configuration header FILE
19857
19858 Configuration files:
19859 $config_files
19860
19861 Configuration headers:
19862 $config_headers
19863
19864 Configuration commands:
19865 $config_commands
19866
19867 Report bugs to <bug-autoconf@gnu.org>."
19868 _ACEOF
19869
19870 cat >>$CONFIG_STATUS <<_ACEOF
19871 ac_cs_version="\\
19872 GNU OpenMP Runtime Library config.status 1.0
19873 configured by $0, generated by GNU Autoconf 2.59,
19874 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19875
19876 Copyright (C) 2003 Free Software Foundation, Inc.
19877 This config.status script is free software; the Free Software Foundation
19878 gives unlimited permission to copy, distribute and modify it."
19879 srcdir=$srcdir
19880 INSTALL="$INSTALL"
19881 _ACEOF
19882
19883 cat >>$CONFIG_STATUS <<\_ACEOF
19884 # If no file are specified by the user, then we need to provide default
19885 # value. By we need to know if files were specified by the user.
19886 ac_need_defaults=:
19887 while test $# != 0
19888 do
19889 case $1 in
19890 --*=*)
19891 ac_option=`expr "x$1" : 'x\([^=]*\)='`
19892 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19893 ac_shift=:
19894 ;;
19895 -*)
19896 ac_option=$1
19897 ac_optarg=$2
19898 ac_shift=shift
19899 ;;
19900 *) # This is not an option, so the user has probably given explicit
19901 # arguments.
19902 ac_option=$1
19903 ac_need_defaults=false;;
19904 esac
19905
19906 case $ac_option in
19907 # Handling of the options.
19908 _ACEOF
19909 cat >>$CONFIG_STATUS <<\_ACEOF
19910 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19911 ac_cs_recheck=: ;;
19912 --version | --vers* | -V )
19913 echo "$ac_cs_version"; exit 0 ;;
19914 --he | --h)
19915 # Conflict between --help and --header
19916 { { echo "$as_me:$LINENO: error: ambiguous option: $1
19917 Try \`$0 --help' for more information." >&5
19918 echo "$as_me: error: ambiguous option: $1
19919 Try \`$0 --help' for more information." >&2;}
19920 { (exit 1); exit 1; }; };;
19921 --help | --hel | -h )
19922 echo "$ac_cs_usage"; exit 0 ;;
19923 --debug | --d* | -d )
19924 debug=: ;;
19925 --file | --fil | --fi | --f )
19926 $ac_shift
19927 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19928 ac_need_defaults=false;;
19929 --header | --heade | --head | --hea )
19930 $ac_shift
19931 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19932 ac_need_defaults=false;;
19933 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19934 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19935 ac_cs_silent=: ;;
19936
19937 # This is an error.
19938 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19939 Try \`$0 --help' for more information." >&5
19940 echo "$as_me: error: unrecognized option: $1
19941 Try \`$0 --help' for more information." >&2;}
19942 { (exit 1); exit 1; }; } ;;
19943
19944 *) ac_config_targets="$ac_config_targets $1" ;;
19945
19946 esac
19947 shift
19948 done
19949
19950 ac_configure_extra_args=
19951
19952 if $ac_cs_silent; then
19953 exec 6>/dev/null
19954 ac_configure_extra_args="$ac_configure_extra_args --silent"
19955 fi
19956
19957 _ACEOF
19958 cat >>$CONFIG_STATUS <<_ACEOF
19959 if \$ac_cs_recheck; then
19960 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19961 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19962 fi
19963
19964 _ACEOF
19965
19966 cat >>$CONFIG_STATUS <<_ACEOF
19967 #
19968 # INIT-COMMANDS section.
19969 #
19970
19971
19972 srcdir="$srcdir"
19973 host="$host"
19974 target="$target"
19975 with_multisubdir="$with_multisubdir"
19976 with_multisrctop="$with_multisrctop"
19977 with_target_subdir="$with_target_subdir"
19978 ac_configure_args="${multilib_arg} ${ac_configure_args}"
19979 multi_basedir="$multi_basedir"
19980 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
19981 CC="$CC"
19982 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19983
19984
19985 # The HP-UX ksh and POSIX shell print the target directory to stdout
19986 # if CDPATH is set.
19987 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19988
19989 sed_quote_subst='$sed_quote_subst'
19990 double_quote_subst='$double_quote_subst'
19991 delay_variable_subst='$delay_variable_subst'
19992 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
19993 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
19994 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
19995 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
19996 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
19997 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
19998 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
19999 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
20000 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
20001 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
20002 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
20003 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
20004 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
20005 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
20006 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
20007 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
20008 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
20009 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
20010 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
20011 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
20012 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
20013 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
20014 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
20015 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
20016 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
20017 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
20018 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
20019 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20020 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
20021 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
20022 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
20023 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20024 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
20025 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
20026 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20027 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20028 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20029 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
20030 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20031 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
20032 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
20033 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
20034 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
20035 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
20036 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
20037 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
20038 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
20039 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
20040 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
20041 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
20042 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
20043 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
20044 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
20045 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
20046 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
20047 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20048 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20049 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
20050 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
20051 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20052 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20053 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
20054 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20055 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20056 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20057 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20058 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20059 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20060 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
20061 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20062 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20063 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20064 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
20065 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
20066 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
20067 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
20068 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
20069 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20070 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
20071 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
20072 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
20073 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
20074 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
20075 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20076 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20077 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20078 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20079 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
20080 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
20081 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
20082 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
20083 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
20084 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20085 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20086 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
20087 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20088 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
20089 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20090 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20091 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20092 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20093 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
20094 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
20095 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20096 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20097 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
20098 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
20099 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
20100 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
20101 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
20102 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
20103 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
20104 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
20105 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
20106 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
20107 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
20108 LD_FC='`$ECHO "X$LD_FC" | $Xsed -e "$delay_single_quote_subst"`'
20109 old_archive_cmds_FC='`$ECHO "X$old_archive_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20110 compiler_FC='`$ECHO "X$compiler_FC" | $Xsed -e "$delay_single_quote_subst"`'
20111 GCC_FC='`$ECHO "X$GCC_FC" | $Xsed -e "$delay_single_quote_subst"`'
20112 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "X$lt_prog_compiler_no_builtin_flag_FC" | $Xsed -e "$delay_single_quote_subst"`'
20113 lt_prog_compiler_wl_FC='`$ECHO "X$lt_prog_compiler_wl_FC" | $Xsed -e "$delay_single_quote_subst"`'
20114 lt_prog_compiler_pic_FC='`$ECHO "X$lt_prog_compiler_pic_FC" | $Xsed -e "$delay_single_quote_subst"`'
20115 lt_prog_compiler_static_FC='`$ECHO "X$lt_prog_compiler_static_FC" | $Xsed -e "$delay_single_quote_subst"`'
20116 lt_cv_prog_compiler_c_o_FC='`$ECHO "X$lt_cv_prog_compiler_c_o_FC" | $Xsed -e "$delay_single_quote_subst"`'
20117 archive_cmds_need_lc_FC='`$ECHO "X$archive_cmds_need_lc_FC" | $Xsed -e "$delay_single_quote_subst"`'
20118 enable_shared_with_static_runtimes_FC='`$ECHO "X$enable_shared_with_static_runtimes_FC" | $Xsed -e "$delay_single_quote_subst"`'
20119 export_dynamic_flag_spec_FC='`$ECHO "X$export_dynamic_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
20120 whole_archive_flag_spec_FC='`$ECHO "X$whole_archive_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
20121 compiler_needs_object_FC='`$ECHO "X$compiler_needs_object_FC" | $Xsed -e "$delay_single_quote_subst"`'
20122 old_archive_from_new_cmds_FC='`$ECHO "X$old_archive_from_new_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20123 old_archive_from_expsyms_cmds_FC='`$ECHO "X$old_archive_from_expsyms_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20124 archive_cmds_FC='`$ECHO "X$archive_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20125 archive_expsym_cmds_FC='`$ECHO "X$archive_expsym_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20126 module_cmds_FC='`$ECHO "X$module_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20127 module_expsym_cmds_FC='`$ECHO "X$module_expsym_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20128 with_gnu_ld_FC='`$ECHO "X$with_gnu_ld_FC" | $Xsed -e "$delay_single_quote_subst"`'
20129 allow_undefined_flag_FC='`$ECHO "X$allow_undefined_flag_FC" | $Xsed -e "$delay_single_quote_subst"`'
20130 no_undefined_flag_FC='`$ECHO "X$no_undefined_flag_FC" | $Xsed -e "$delay_single_quote_subst"`'
20131 hardcode_libdir_flag_spec_FC='`$ECHO "X$hardcode_libdir_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
20132 hardcode_libdir_flag_spec_ld_FC='`$ECHO "X$hardcode_libdir_flag_spec_ld_FC" | $Xsed -e "$delay_single_quote_subst"`'
20133 hardcode_libdir_separator_FC='`$ECHO "X$hardcode_libdir_separator_FC" | $Xsed -e "$delay_single_quote_subst"`'
20134 hardcode_direct_FC='`$ECHO "X$hardcode_direct_FC" | $Xsed -e "$delay_single_quote_subst"`'
20135 hardcode_direct_absolute_FC='`$ECHO "X$hardcode_direct_absolute_FC" | $Xsed -e "$delay_single_quote_subst"`'
20136 hardcode_minus_L_FC='`$ECHO "X$hardcode_minus_L_FC" | $Xsed -e "$delay_single_quote_subst"`'
20137 hardcode_shlibpath_var_FC='`$ECHO "X$hardcode_shlibpath_var_FC" | $Xsed -e "$delay_single_quote_subst"`'
20138 hardcode_automatic_FC='`$ECHO "X$hardcode_automatic_FC" | $Xsed -e "$delay_single_quote_subst"`'
20139 inherit_rpath_FC='`$ECHO "X$inherit_rpath_FC" | $Xsed -e "$delay_single_quote_subst"`'
20140 link_all_deplibs_FC='`$ECHO "X$link_all_deplibs_FC" | $Xsed -e "$delay_single_quote_subst"`'
20141 fix_srcfile_path_FC='`$ECHO "X$fix_srcfile_path_FC" | $Xsed -e "$delay_single_quote_subst"`'
20142 always_export_symbols_FC='`$ECHO "X$always_export_symbols_FC" | $Xsed -e "$delay_single_quote_subst"`'
20143 export_symbols_cmds_FC='`$ECHO "X$export_symbols_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20144 exclude_expsyms_FC='`$ECHO "X$exclude_expsyms_FC" | $Xsed -e "$delay_single_quote_subst"`'
20145 include_expsyms_FC='`$ECHO "X$include_expsyms_FC" | $Xsed -e "$delay_single_quote_subst"`'
20146 prelink_cmds_FC='`$ECHO "X$prelink_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20147 file_list_spec_FC='`$ECHO "X$file_list_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
20148 hardcode_action_FC='`$ECHO "X$hardcode_action_FC" | $Xsed -e "$delay_single_quote_subst"`'
20149 predep_objects_FC='`$ECHO "X$predep_objects_FC" | $Xsed -e "$delay_single_quote_subst"`'
20150 postdep_objects_FC='`$ECHO "X$postdep_objects_FC" | $Xsed -e "$delay_single_quote_subst"`'
20151 predeps_FC='`$ECHO "X$predeps_FC" | $Xsed -e "$delay_single_quote_subst"`'
20152 postdeps_FC='`$ECHO "X$postdeps_FC" | $Xsed -e "$delay_single_quote_subst"`'
20153 compiler_lib_search_path_FC='`$ECHO "X$compiler_lib_search_path_FC" | $Xsed -e "$delay_single_quote_subst"`'
20154
20155 LTCC='$LTCC'
20156 LTCFLAGS='$LTCFLAGS'
20157 compiler='$compiler_DEFAULT'
20158
20159 # Quote evaled strings.
20160 for var in SED \
20161 GREP \
20162 EGREP \
20163 FGREP \
20164 LD \
20165 NM \
20166 LN_S \
20167 lt_SP2NL \
20168 lt_NL2SP \
20169 reload_flag \
20170 deplibs_check_method \
20171 file_magic_cmd \
20172 AR \
20173 AR_FLAGS \
20174 STRIP \
20175 RANLIB \
20176 CC \
20177 CFLAGS \
20178 compiler \
20179 lt_cv_sys_global_symbol_pipe \
20180 lt_cv_sys_global_symbol_to_cdecl \
20181 lt_cv_sys_global_symbol_to_c_name_address \
20182 SHELL \
20183 ECHO \
20184 lt_prog_compiler_no_builtin_flag \
20185 lt_prog_compiler_wl \
20186 lt_prog_compiler_pic \
20187 lt_prog_compiler_static \
20188 lt_cv_prog_compiler_c_o \
20189 need_locks \
20190 shrext_cmds \
20191 export_dynamic_flag_spec \
20192 whole_archive_flag_spec \
20193 compiler_needs_object \
20194 with_gnu_ld \
20195 allow_undefined_flag \
20196 no_undefined_flag \
20197 hardcode_libdir_flag_spec \
20198 hardcode_libdir_flag_spec_ld \
20199 hardcode_libdir_separator \
20200 fix_srcfile_path \
20201 exclude_expsyms \
20202 include_expsyms \
20203 file_list_spec \
20204 variables_saved_for_relink \
20205 libname_spec \
20206 library_names_spec \
20207 soname_spec \
20208 finish_eval \
20209 old_striplib \
20210 striplib \
20211 predep_objects \
20212 postdep_objects \
20213 predeps \
20214 postdeps \
20215 compiler_lib_search_path \
20216 LD_FC \
20217 compiler_FC \
20218 lt_prog_compiler_no_builtin_flag_FC \
20219 lt_prog_compiler_wl_FC \
20220 lt_prog_compiler_pic_FC \
20221 lt_prog_compiler_static_FC \
20222 lt_cv_prog_compiler_c_o_FC \
20223 export_dynamic_flag_spec_FC \
20224 whole_archive_flag_spec_FC \
20225 compiler_needs_object_FC \
20226 with_gnu_ld_FC \
20227 allow_undefined_flag_FC \
20228 no_undefined_flag_FC \
20229 hardcode_libdir_flag_spec_FC \
20230 hardcode_libdir_flag_spec_ld_FC \
20231 hardcode_libdir_separator_FC \
20232 fix_srcfile_path_FC \
20233 exclude_expsyms_FC \
20234 include_expsyms_FC \
20235 file_list_spec_FC \
20236 predep_objects_FC \
20237 postdep_objects_FC \
20238 predeps_FC \
20239 postdeps_FC \
20240 compiler_lib_search_path_FC; do
20241 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20242 *[\\\\\\\`\\"\\\$]*)
20243 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20244 ;;
20245 *)
20246 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20247 ;;
20248 esac
20249 done
20250
20251 # Double-quote double-evaled strings.
20252 for var in reload_cmds \
20253 old_postinstall_cmds \
20254 old_postuninstall_cmds \
20255 old_archive_cmds \
20256 extract_expsyms_cmds \
20257 old_archive_from_new_cmds \
20258 old_archive_from_expsyms_cmds \
20259 archive_cmds \
20260 archive_expsym_cmds \
20261 module_cmds \
20262 module_expsym_cmds \
20263 export_symbols_cmds \
20264 prelink_cmds \
20265 postinstall_cmds \
20266 postuninstall_cmds \
20267 finish_cmds \
20268 sys_lib_search_path_spec \
20269 sys_lib_dlsearch_path_spec \
20270 old_archive_cmds_FC \
20271 old_archive_from_new_cmds_FC \
20272 old_archive_from_expsyms_cmds_FC \
20273 archive_cmds_FC \
20274 archive_expsym_cmds_FC \
20275 module_cmds_FC \
20276 module_expsym_cmds_FC \
20277 export_symbols_cmds_FC \
20278 prelink_cmds_FC; do
20279 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20280 *[\\\\\\\`\\"\\\$]*)
20281 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20282 ;;
20283 *)
20284 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20285 ;;
20286 esac
20287 done
20288
20289 # Fix-up fallback echo if it was mangled by the above quoting rules.
20290 case \$lt_ECHO in
20291 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
20292 ;;
20293 esac
20294
20295 ac_aux_dir='$ac_aux_dir'
20296 xsi_shell='$xsi_shell'
20297 lt_shell_append='$lt_shell_append'
20298
20299 # See if we are running on zsh, and set the options which allow our
20300 # commands through without removal of \ escapes INIT.
20301 if test -n "\${ZSH_VERSION+set}" ; then
20302 setopt NO_GLOB_SUBST
20303 fi
20304
20305
20306 PACKAGE='$PACKAGE'
20307 VERSION='$VERSION'
20308 TIMESTAMP='$TIMESTAMP'
20309 RM='$RM'
20310 ofile='$ofile'
20311
20312
20313
20314
20315
20316
20317 GCC="$GCC"
20318 CC="$CC"
20319 acx_cv_header_stdint="$acx_cv_header_stdint"
20320 acx_cv_type_int8_t="$acx_cv_type_int8_t"
20321 acx_cv_type_int16_t="$acx_cv_type_int16_t"
20322 acx_cv_type_int32_t="$acx_cv_type_int32_t"
20323 acx_cv_type_int64_t="$acx_cv_type_int64_t"
20324 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
20325 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
20326 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
20327 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
20328 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
20329 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
20330 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
20331 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
20332 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
20333
20334
20335 _ACEOF
20336
20337
20338
20339 cat >>$CONFIG_STATUS <<\_ACEOF
20340 for ac_config_target in $ac_config_targets
20341 do
20342 case "$ac_config_target" in
20343 # Handling of arguments.
20344 "omp.h" ) CONFIG_FILES="$CONFIG_FILES omp.h" ;;
20345 "omp_lib.h" ) CONFIG_FILES="$CONFIG_FILES omp_lib.h" ;;
20346 "omp_lib.f90" ) CONFIG_FILES="$CONFIG_FILES omp_lib.f90" ;;
20347 "libgomp_f.h" ) CONFIG_FILES="$CONFIG_FILES libgomp_f.h" ;;
20348 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20349 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
20350 "libgomp.spec" ) CONFIG_FILES="$CONFIG_FILES libgomp.spec" ;;
20351 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
20352 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20353 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20354 "gstdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
20355 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20356 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20357 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20358 { (exit 1); exit 1; }; };;
20359 esac
20360 done
20361
20362 # If the user did not use the arguments to specify the items to instantiate,
20363 # then the envvar interface is used. Set only those that are not.
20364 # We use the long form for the default assignment because of an extremely
20365 # bizarre bug on SunOS 4.1.3.
20366 if $ac_need_defaults; then
20367 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20368 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20369 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20370 fi
20371
20372 # Have a temporary directory for convenience. Make it in the build tree
20373 # simply because there is no reason to put it here, and in addition,
20374 # creating and moving files from /tmp can sometimes cause problems.
20375 # Create a temporary directory, and hook for its removal unless debugging.
20376 $debug ||
20377 {
20378 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20379 trap '{ (exit 1); exit 1; }' 1 2 13 15
20380 }
20381
20382 # Create a (secure) tmp directory for tmp files.
20383
20384 {
20385 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20386 test -n "$tmp" && test -d "$tmp"
20387 } ||
20388 {
20389 tmp=./confstat$$-$RANDOM
20390 (umask 077 && mkdir $tmp)
20391 } ||
20392 {
20393 echo "$me: cannot create a temporary directory in ." >&2
20394 { (exit 1); exit 1; }
20395 }
20396
20397 _ACEOF
20398
20399 cat >>$CONFIG_STATUS <<_ACEOF
20400
20401 #
20402 # CONFIG_FILES section.
20403 #
20404
20405 # No need to generate the scripts if there are no CONFIG_FILES.
20406 # This happens for instance when ./config.status config.h
20407 if test -n "\$CONFIG_FILES"; then
20408 # Protect against being on the right side of a sed subst in config.status.
20409 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20410 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20411 s,@SHELL@,$SHELL,;t t
20412 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20413 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20414 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20415 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20416 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20417 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20418 s,@exec_prefix@,$exec_prefix,;t t
20419 s,@prefix@,$prefix,;t t
20420 s,@program_transform_name@,$program_transform_name,;t t
20421 s,@bindir@,$bindir,;t t
20422 s,@sbindir@,$sbindir,;t t
20423 s,@libexecdir@,$libexecdir,;t t
20424 s,@datadir@,$datadir,;t t
20425 s,@sysconfdir@,$sysconfdir,;t t
20426 s,@sharedstatedir@,$sharedstatedir,;t t
20427 s,@localstatedir@,$localstatedir,;t t
20428 s,@libdir@,$libdir,;t t
20429 s,@includedir@,$includedir,;t t
20430 s,@oldincludedir@,$oldincludedir,;t t
20431 s,@infodir@,$infodir,;t t
20432 s,@mandir@,$mandir,;t t
20433 s,@build_alias@,$build_alias,;t t
20434 s,@host_alias@,$host_alias,;t t
20435 s,@target_alias@,$target_alias,;t t
20436 s,@DEFS@,$DEFS,;t t
20437 s,@ECHO_C@,$ECHO_C,;t t
20438 s,@ECHO_N@,$ECHO_N,;t t
20439 s,@ECHO_T@,$ECHO_T,;t t
20440 s,@LIBS@,$LIBS,;t t
20441 s,@GENINSRC_TRUE@,$GENINSRC_TRUE,;t t
20442 s,@GENINSRC_FALSE@,$GENINSRC_FALSE,;t t
20443 s,@build@,$build,;t t
20444 s,@build_cpu@,$build_cpu,;t t
20445 s,@build_vendor@,$build_vendor,;t t
20446 s,@build_os@,$build_os,;t t
20447 s,@host@,$host,;t t
20448 s,@host_cpu@,$host_cpu,;t t
20449 s,@host_vendor@,$host_vendor,;t t
20450 s,@host_os@,$host_os,;t t
20451 s,@target@,$target,;t t
20452 s,@target_cpu@,$target_cpu,;t t
20453 s,@target_vendor@,$target_vendor,;t t
20454 s,@target_os@,$target_os,;t t
20455 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20456 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20457 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20458 s,@CYGPATH_W@,$CYGPATH_W,;t t
20459 s,@PACKAGE@,$PACKAGE,;t t
20460 s,@VERSION@,$VERSION,;t t
20461 s,@ACLOCAL@,$ACLOCAL,;t t
20462 s,@AUTOCONF@,$AUTOCONF,;t t
20463 s,@AUTOMAKE@,$AUTOMAKE,;t t
20464 s,@AUTOHEADER@,$AUTOHEADER,;t t
20465 s,@MAKEINFO@,$MAKEINFO,;t t
20466 s,@install_sh@,$install_sh,;t t
20467 s,@STRIP@,$STRIP,;t t
20468 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20469 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20470 s,@mkdir_p@,$mkdir_p,;t t
20471 s,@AWK@,$AWK,;t t
20472 s,@SET_MAKE@,$SET_MAKE,;t t
20473 s,@am__leading_dot@,$am__leading_dot,;t t
20474 s,@AMTAR@,$AMTAR,;t t
20475 s,@am__tar@,$am__tar,;t t
20476 s,@am__untar@,$am__untar,;t t
20477 s,@multi_basedir@,$multi_basedir,;t t
20478 s,@toolexecdir@,$toolexecdir,;t t
20479 s,@toolexeclibdir@,$toolexeclibdir,;t t
20480 s,@CC@,$CC,;t t
20481 s,@ac_ct_CC@,$ac_ct_CC,;t t
20482 s,@EXEEXT@,$EXEEXT,;t t
20483 s,@OBJEXT@,$OBJEXT,;t t
20484 s,@DEPDIR@,$DEPDIR,;t t
20485 s,@am__include@,$am__include,;t t
20486 s,@am__quote@,$am__quote,;t t
20487 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20488 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20489 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20490 s,@CCDEPMODE@,$CCDEPMODE,;t t
20491 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20492 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20493 s,@CFLAGS@,$CFLAGS,;t t
20494 s,@AR@,$AR,;t t
20495 s,@ac_ct_AR@,$ac_ct_AR,;t t
20496 s,@RANLIB@,$RANLIB,;t t
20497 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20498 s,@PERL@,$PERL,;t t
20499 s,@BUILD_INFO_TRUE@,$BUILD_INFO_TRUE,;t t
20500 s,@BUILD_INFO_FALSE@,$BUILD_INFO_FALSE,;t t
20501 s,@LIBTOOL@,$LIBTOOL,;t t
20502 s,@SED@,$SED,;t t
20503 s,@EGREP@,$EGREP,;t t
20504 s,@FGREP@,$FGREP,;t t
20505 s,@GREP@,$GREP,;t t
20506 s,@LD@,$LD,;t t
20507 s,@DUMPBIN@,$DUMPBIN,;t t
20508 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
20509 s,@NM@,$NM,;t t
20510 s,@LN_S@,$LN_S,;t t
20511 s,@lt_ECHO@,$lt_ECHO,;t t
20512 s,@CPP@,$CPP,;t t
20513 s,@CPPFLAGS@,$CPPFLAGS,;t t
20514 s,@enable_shared@,$enable_shared,;t t
20515 s,@enable_static@,$enable_static,;t t
20516 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
20517 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
20518 s,@MAINT@,$MAINT,;t t
20519 s,@FC@,$FC,;t t
20520 s,@FCFLAGS@,$FCFLAGS,;t t
20521 s,@LDFLAGS@,$LDFLAGS,;t t
20522 s,@ac_ct_FC@,$ac_ct_FC,;t t
20523 s,@libtool_VERSION@,$libtool_VERSION,;t t
20524 s,@SECTION_LDFLAGS@,$SECTION_LDFLAGS,;t t
20525 s,@OPT_LDFLAGS@,$OPT_LDFLAGS,;t t
20526 s,@LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE@,$LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE,;t t
20527 s,@LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE@,$LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE,;t t
20528 s,@config_path@,$config_path,;t t
20529 s,@XCFLAGS@,$XCFLAGS,;t t
20530 s,@XLDFLAGS@,$XLDFLAGS,;t t
20531 s,@link_gomp@,$link_gomp,;t t
20532 s,@USE_FORTRAN_TRUE@,$USE_FORTRAN_TRUE,;t t
20533 s,@USE_FORTRAN_FALSE@,$USE_FORTRAN_FALSE,;t t
20534 s,@OMP_LOCK_SIZE@,$OMP_LOCK_SIZE,;t t
20535 s,@OMP_LOCK_ALIGN@,$OMP_LOCK_ALIGN,;t t
20536 s,@OMP_NEST_LOCK_SIZE@,$OMP_NEST_LOCK_SIZE,;t t
20537 s,@OMP_NEST_LOCK_ALIGN@,$OMP_NEST_LOCK_ALIGN,;t t
20538 s,@OMP_LOCK_KIND@,$OMP_LOCK_KIND,;t t
20539 s,@OMP_NEST_LOCK_KIND@,$OMP_NEST_LOCK_KIND,;t t
20540 s,@LIBOBJS@,$LIBOBJS,;t t
20541 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20542 CEOF
20543
20544 _ACEOF
20545
20546 cat >>$CONFIG_STATUS <<\_ACEOF
20547 # Split the substitutions into bite-sized pieces for seds with
20548 # small command number limits, like on Digital OSF/1 and HP-UX.
20549 ac_max_sed_lines=48
20550 ac_sed_frag=1 # Number of current file.
20551 ac_beg=1 # First line for current file.
20552 ac_end=$ac_max_sed_lines # Line after last line for current file.
20553 ac_more_lines=:
20554 ac_sed_cmds=
20555 while $ac_more_lines; do
20556 if test $ac_beg -gt 1; then
20557 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20558 else
20559 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20560 fi
20561 if test ! -s $tmp/subs.frag; then
20562 ac_more_lines=false
20563 else
20564 # The purpose of the label and of the branching condition is to
20565 # speed up the sed processing (if there are no `@' at all, there
20566 # is no need to browse any of the substitutions).
20567 # These are the two extra sed commands mentioned above.
20568 (echo ':t
20569 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20570 if test -z "$ac_sed_cmds"; then
20571 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20572 else
20573 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20574 fi
20575 ac_sed_frag=`expr $ac_sed_frag + 1`
20576 ac_beg=$ac_end
20577 ac_end=`expr $ac_end + $ac_max_sed_lines`
20578 fi
20579 done
20580 if test -z "$ac_sed_cmds"; then
20581 ac_sed_cmds=cat
20582 fi
20583 fi # test -n "$CONFIG_FILES"
20584
20585 _ACEOF
20586 cat >>$CONFIG_STATUS <<\_ACEOF
20587 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20588 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20589 case $ac_file in
20590 - | *:- | *:-:* ) # input from stdin
20591 cat >$tmp/stdin
20592 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20593 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20594 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20595 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20596 * ) ac_file_in=$ac_file.in ;;
20597 esac
20598
20599 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20600 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20601 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20602 X"$ac_file" : 'X\(//\)[^/]' \| \
20603 X"$ac_file" : 'X\(//\)$' \| \
20604 X"$ac_file" : 'X\(/\)' \| \
20605 . : '\(.\)' 2>/dev/null ||
20606 echo X"$ac_file" |
20607 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20608 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20609 /^X\(\/\/\)$/{ s//\1/; q; }
20610 /^X\(\/\).*/{ s//\1/; q; }
20611 s/.*/./; q'`
20612 { if $as_mkdir_p; then
20613 mkdir -p "$ac_dir"
20614 else
20615 as_dir="$ac_dir"
20616 as_dirs=
20617 while test ! -d "$as_dir"; do
20618 as_dirs="$as_dir $as_dirs"
20619 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20620 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20621 X"$as_dir" : 'X\(//\)[^/]' \| \
20622 X"$as_dir" : 'X\(//\)$' \| \
20623 X"$as_dir" : 'X\(/\)' \| \
20624 . : '\(.\)' 2>/dev/null ||
20625 echo X"$as_dir" |
20626 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20627 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20628 /^X\(\/\/\)$/{ s//\1/; q; }
20629 /^X\(\/\).*/{ s//\1/; q; }
20630 s/.*/./; q'`
20631 done
20632 test ! -n "$as_dirs" || mkdir $as_dirs
20633 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20634 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20635 { (exit 1); exit 1; }; }; }
20636
20637 ac_builddir=.
20638
20639 if test "$ac_dir" != .; then
20640 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20641 # A "../" for each directory in $ac_dir_suffix.
20642 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20643 else
20644 ac_dir_suffix= ac_top_builddir=
20645 fi
20646
20647 case $srcdir in
20648 .) # No --srcdir option. We are building in place.
20649 ac_srcdir=.
20650 if test -z "$ac_top_builddir"; then
20651 ac_top_srcdir=.
20652 else
20653 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20654 fi ;;
20655 [\\/]* | ?:[\\/]* ) # Absolute path.
20656 ac_srcdir=$srcdir$ac_dir_suffix;
20657 ac_top_srcdir=$srcdir ;;
20658 *) # Relative path.
20659 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20660 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20661 esac
20662
20663 # Do not use `cd foo && pwd` to compute absolute paths, because
20664 # the directories may not exist.
20665 case `pwd` in
20666 .) ac_abs_builddir="$ac_dir";;
20667 *)
20668 case "$ac_dir" in
20669 .) ac_abs_builddir=`pwd`;;
20670 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20671 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20672 esac;;
20673 esac
20674 case $ac_abs_builddir in
20675 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20676 *)
20677 case ${ac_top_builddir}. in
20678 .) ac_abs_top_builddir=$ac_abs_builddir;;
20679 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20680 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20681 esac;;
20682 esac
20683 case $ac_abs_builddir in
20684 .) ac_abs_srcdir=$ac_srcdir;;
20685 *)
20686 case $ac_srcdir in
20687 .) ac_abs_srcdir=$ac_abs_builddir;;
20688 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20689 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20690 esac;;
20691 esac
20692 case $ac_abs_builddir in
20693 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20694 *)
20695 case $ac_top_srcdir in
20696 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20697 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20698 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20699 esac;;
20700 esac
20701
20702
20703 case $INSTALL in
20704 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20705 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20706 esac
20707
20708 if test x"$ac_file" != x-; then
20709 { echo "$as_me:$LINENO: creating $ac_file" >&5
20710 echo "$as_me: creating $ac_file" >&6;}
20711 rm -f "$ac_file"
20712 fi
20713 # Let's still pretend it is `configure' which instantiates (i.e., don't
20714 # use $as_me), people would be surprised to read:
20715 # /* config.h. Generated by config.status. */
20716 if test x"$ac_file" = x-; then
20717 configure_input=
20718 else
20719 configure_input="$ac_file. "
20720 fi
20721 configure_input=$configure_input"Generated from `echo $ac_file_in |
20722 sed 's,.*/,,'` by configure."
20723
20724 # First look for the input files in the build tree, otherwise in the
20725 # src tree.
20726 ac_file_inputs=`IFS=:
20727 for f in $ac_file_in; do
20728 case $f in
20729 -) echo $tmp/stdin ;;
20730 [\\/$]*)
20731 # Absolute (can't be DOS-style, as IFS=:)
20732 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20733 echo "$as_me: error: cannot find input file: $f" >&2;}
20734 { (exit 1); exit 1; }; }
20735 echo "$f";;
20736 *) # Relative
20737 if test -f "$f"; then
20738 # Build tree
20739 echo "$f"
20740 elif test -f "$srcdir/$f"; then
20741 # Source tree
20742 echo "$srcdir/$f"
20743 else
20744 # /dev/null tree
20745 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20746 echo "$as_me: error: cannot find input file: $f" >&2;}
20747 { (exit 1); exit 1; }; }
20748 fi;;
20749 esac
20750 done` || { (exit 1); exit 1; }
20751 _ACEOF
20752 cat >>$CONFIG_STATUS <<_ACEOF
20753 sed "$ac_vpsub
20754 $extrasub
20755 _ACEOF
20756 cat >>$CONFIG_STATUS <<\_ACEOF
20757 :t
20758 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20759 s,@configure_input@,$configure_input,;t t
20760 s,@srcdir@,$ac_srcdir,;t t
20761 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20762 s,@top_srcdir@,$ac_top_srcdir,;t t
20763 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20764 s,@builddir@,$ac_builddir,;t t
20765 s,@abs_builddir@,$ac_abs_builddir,;t t
20766 s,@top_builddir@,$ac_top_builddir,;t t
20767 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20768 s,@INSTALL@,$ac_INSTALL,;t t
20769 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20770 rm -f $tmp/stdin
20771 if test x"$ac_file" != x-; then
20772 mv $tmp/out $ac_file
20773 else
20774 cat $tmp/out
20775 rm -f $tmp/out
20776 fi
20777
20778 done
20779 _ACEOF
20780 cat >>$CONFIG_STATUS <<\_ACEOF
20781
20782 #
20783 # CONFIG_HEADER section.
20784 #
20785
20786 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20787 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20788 #
20789 # ac_d sets the value in "#define NAME VALUE" lines.
20790 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20791 ac_dB='[ ].*$,\1#\2'
20792 ac_dC=' '
20793 ac_dD=',;t'
20794 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20795 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20796 ac_uB='$,\1#\2define\3'
20797 ac_uC=' '
20798 ac_uD=',;t'
20799
20800 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20801 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20802 case $ac_file in
20803 - | *:- | *:-:* ) # input from stdin
20804 cat >$tmp/stdin
20805 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20806 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20807 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20808 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20809 * ) ac_file_in=$ac_file.in ;;
20810 esac
20811
20812 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20813 echo "$as_me: creating $ac_file" >&6;}
20814
20815 # First look for the input files in the build tree, otherwise in the
20816 # src tree.
20817 ac_file_inputs=`IFS=:
20818 for f in $ac_file_in; do
20819 case $f in
20820 -) echo $tmp/stdin ;;
20821 [\\/$]*)
20822 # Absolute (can't be DOS-style, as IFS=:)
20823 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20824 echo "$as_me: error: cannot find input file: $f" >&2;}
20825 { (exit 1); exit 1; }; }
20826 # Do quote $f, to prevent DOS paths from being IFS'd.
20827 echo "$f";;
20828 *) # Relative
20829 if test -f "$f"; then
20830 # Build tree
20831 echo "$f"
20832 elif test -f "$srcdir/$f"; then
20833 # Source tree
20834 echo "$srcdir/$f"
20835 else
20836 # /dev/null tree
20837 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20838 echo "$as_me: error: cannot find input file: $f" >&2;}
20839 { (exit 1); exit 1; }; }
20840 fi;;
20841 esac
20842 done` || { (exit 1); exit 1; }
20843 # Remove the trailing spaces.
20844 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20845
20846 _ACEOF
20847
20848 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20849 # `conftest.undefs', that substitutes the proper values into
20850 # config.h.in to produce config.h. The first handles `#define'
20851 # templates, and the second `#undef' templates.
20852 # And first: Protect against being on the right side of a sed subst in
20853 # config.status. Protect against being in an unquoted here document
20854 # in config.status.
20855 rm -f conftest.defines conftest.undefs
20856 # Using a here document instead of a string reduces the quoting nightmare.
20857 # Putting comments in sed scripts is not portable.
20858 #
20859 # `end' is used to avoid that the second main sed command (meant for
20860 # 0-ary CPP macros) applies to n-ary macro definitions.
20861 # See the Autoconf documentation for `clear'.
20862 cat >confdef2sed.sed <<\_ACEOF
20863 s/[\\&,]/\\&/g
20864 s,[\\$`],\\&,g
20865 t clear
20866 : clear
20867 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20868 t end
20869 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20870 : end
20871 _ACEOF
20872 # If some macros were called several times there might be several times
20873 # the same #defines, which is useless. Nevertheless, we may not want to
20874 # sort them, since we want the *last* AC-DEFINE to be honored.
20875 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20876 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20877 rm -f confdef2sed.sed
20878
20879 # This sed command replaces #undef with comments. This is necessary, for
20880 # example, in the case of _POSIX_SOURCE, which is predefined and required
20881 # on some systems where configure will not decide to define it.
20882 cat >>conftest.undefs <<\_ACEOF
20883 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20884 _ACEOF
20885
20886 # Break up conftest.defines because some shells have a limit on the size
20887 # of here documents, and old seds have small limits too (100 cmds).
20888 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20889 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20890 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20891 echo ' :' >>$CONFIG_STATUS
20892 rm -f conftest.tail
20893 while grep . conftest.defines >/dev/null
20894 do
20895 # Write a limited-size here document to $tmp/defines.sed.
20896 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20897 # Speed up: don't consider the non `#define' lines.
20898 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20899 # Work around the forget-to-reset-the-flag bug.
20900 echo 't clr' >>$CONFIG_STATUS
20901 echo ': clr' >>$CONFIG_STATUS
20902 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20903 echo 'CEOF
20904 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20905 rm -f $tmp/in
20906 mv $tmp/out $tmp/in
20907 ' >>$CONFIG_STATUS
20908 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20909 rm -f conftest.defines
20910 mv conftest.tail conftest.defines
20911 done
20912 rm -f conftest.defines
20913 echo ' fi # grep' >>$CONFIG_STATUS
20914 echo >>$CONFIG_STATUS
20915
20916 # Break up conftest.undefs because some shells have a limit on the size
20917 # of here documents, and old seds have small limits too (100 cmds).
20918 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20919 rm -f conftest.tail
20920 while grep . conftest.undefs >/dev/null
20921 do
20922 # Write a limited-size here document to $tmp/undefs.sed.
20923 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20924 # Speed up: don't consider the non `#undef'
20925 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20926 # Work around the forget-to-reset-the-flag bug.
20927 echo 't clr' >>$CONFIG_STATUS
20928 echo ': clr' >>$CONFIG_STATUS
20929 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20930 echo 'CEOF
20931 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20932 rm -f $tmp/in
20933 mv $tmp/out $tmp/in
20934 ' >>$CONFIG_STATUS
20935 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20936 rm -f conftest.undefs
20937 mv conftest.tail conftest.undefs
20938 done
20939 rm -f conftest.undefs
20940
20941 cat >>$CONFIG_STATUS <<\_ACEOF
20942 # Let's still pretend it is `configure' which instantiates (i.e., don't
20943 # use $as_me), people would be surprised to read:
20944 # /* config.h. Generated by config.status. */
20945 if test x"$ac_file" = x-; then
20946 echo "/* Generated by configure. */" >$tmp/config.h
20947 else
20948 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20949 fi
20950 cat $tmp/in >>$tmp/config.h
20951 rm -f $tmp/in
20952 if test x"$ac_file" != x-; then
20953 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20954 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20955 echo "$as_me: $ac_file is unchanged" >&6;}
20956 else
20957 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20958 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20959 X"$ac_file" : 'X\(//\)[^/]' \| \
20960 X"$ac_file" : 'X\(//\)$' \| \
20961 X"$ac_file" : 'X\(/\)' \| \
20962 . : '\(.\)' 2>/dev/null ||
20963 echo X"$ac_file" |
20964 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20965 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20966 /^X\(\/\/\)$/{ s//\1/; q; }
20967 /^X\(\/\).*/{ s//\1/; q; }
20968 s/.*/./; q'`
20969 { if $as_mkdir_p; then
20970 mkdir -p "$ac_dir"
20971 else
20972 as_dir="$ac_dir"
20973 as_dirs=
20974 while test ! -d "$as_dir"; do
20975 as_dirs="$as_dir $as_dirs"
20976 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20977 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20978 X"$as_dir" : 'X\(//\)[^/]' \| \
20979 X"$as_dir" : 'X\(//\)$' \| \
20980 X"$as_dir" : 'X\(/\)' \| \
20981 . : '\(.\)' 2>/dev/null ||
20982 echo X"$as_dir" |
20983 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20984 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20985 /^X\(\/\/\)$/{ s//\1/; q; }
20986 /^X\(\/\).*/{ s//\1/; q; }
20987 s/.*/./; q'`
20988 done
20989 test ! -n "$as_dirs" || mkdir $as_dirs
20990 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20991 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20992 { (exit 1); exit 1; }; }; }
20993
20994 rm -f $ac_file
20995 mv $tmp/config.h $ac_file
20996 fi
20997 else
20998 cat $tmp/config.h
20999 rm -f $tmp/config.h
21000 fi
21001 # Compute $ac_file's index in $config_headers.
21002 _am_stamp_count=1
21003 for _am_header in $config_headers :; do
21004 case $_am_header in
21005 $ac_file | $ac_file:* )
21006 break ;;
21007 * )
21008 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21009 esac
21010 done
21011 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21012 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21013 X$ac_file : 'X\(//\)[^/]' \| \
21014 X$ac_file : 'X\(//\)$' \| \
21015 X$ac_file : 'X\(/\)' \| \
21016 . : '\(.\)' 2>/dev/null ||
21017 echo X$ac_file |
21018 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21019 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21020 /^X\(\/\/\)$/{ s//\1/; q; }
21021 /^X\(\/\).*/{ s//\1/; q; }
21022 s/.*/./; q'`/stamp-h$_am_stamp_count
21023 done
21024 _ACEOF
21025 cat >>$CONFIG_STATUS <<\_ACEOF
21026
21027 #
21028 # CONFIG_COMMANDS section.
21029 #
21030 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21031 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21032 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21033 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21034 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21035 X"$ac_dest" : 'X\(//\)[^/]' \| \
21036 X"$ac_dest" : 'X\(//\)$' \| \
21037 X"$ac_dest" : 'X\(/\)' \| \
21038 . : '\(.\)' 2>/dev/null ||
21039 echo X"$ac_dest" |
21040 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21041 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21042 /^X\(\/\/\)$/{ s//\1/; q; }
21043 /^X\(\/\).*/{ s//\1/; q; }
21044 s/.*/./; q'`
21045 { if $as_mkdir_p; then
21046 mkdir -p "$ac_dir"
21047 else
21048 as_dir="$ac_dir"
21049 as_dirs=
21050 while test ! -d "$as_dir"; do
21051 as_dirs="$as_dir $as_dirs"
21052 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21053 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21054 X"$as_dir" : 'X\(//\)[^/]' \| \
21055 X"$as_dir" : 'X\(//\)$' \| \
21056 X"$as_dir" : 'X\(/\)' \| \
21057 . : '\(.\)' 2>/dev/null ||
21058 echo X"$as_dir" |
21059 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21060 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21061 /^X\(\/\/\)$/{ s//\1/; q; }
21062 /^X\(\/\).*/{ s//\1/; q; }
21063 s/.*/./; q'`
21064 done
21065 test ! -n "$as_dirs" || mkdir $as_dirs
21066 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21067 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21068 { (exit 1); exit 1; }; }; }
21069
21070 ac_builddir=.
21071
21072 if test "$ac_dir" != .; then
21073 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21074 # A "../" for each directory in $ac_dir_suffix.
21075 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21076 else
21077 ac_dir_suffix= ac_top_builddir=
21078 fi
21079
21080 case $srcdir in
21081 .) # No --srcdir option. We are building in place.
21082 ac_srcdir=.
21083 if test -z "$ac_top_builddir"; then
21084 ac_top_srcdir=.
21085 else
21086 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21087 fi ;;
21088 [\\/]* | ?:[\\/]* ) # Absolute path.
21089 ac_srcdir=$srcdir$ac_dir_suffix;
21090 ac_top_srcdir=$srcdir ;;
21091 *) # Relative path.
21092 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21093 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21094 esac
21095
21096 # Do not use `cd foo && pwd` to compute absolute paths, because
21097 # the directories may not exist.
21098 case `pwd` in
21099 .) ac_abs_builddir="$ac_dir";;
21100 *)
21101 case "$ac_dir" in
21102 .) ac_abs_builddir=`pwd`;;
21103 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21104 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21105 esac;;
21106 esac
21107 case $ac_abs_builddir in
21108 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21109 *)
21110 case ${ac_top_builddir}. in
21111 .) ac_abs_top_builddir=$ac_abs_builddir;;
21112 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21113 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21114 esac;;
21115 esac
21116 case $ac_abs_builddir in
21117 .) ac_abs_srcdir=$ac_srcdir;;
21118 *)
21119 case $ac_srcdir in
21120 .) ac_abs_srcdir=$ac_abs_builddir;;
21121 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21122 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21123 esac;;
21124 esac
21125 case $ac_abs_builddir in
21126 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21127 *)
21128 case $ac_top_srcdir in
21129 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21130 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21131 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21132 esac;;
21133 esac
21134
21135
21136 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21137 echo "$as_me: executing $ac_dest commands" >&6;}
21138 case $ac_dest in
21139 default-1 )
21140 # Only add multilib support code if we just rebuilt the top-level
21141 # Makefile.
21142 case " $CONFIG_FILES " in
21143 *" Makefile "*)
21144 ac_file=Makefile . ${multi_basedir}/config-ml.in
21145 ;;
21146 esac ;;
21147 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21148 # Strip MF so we end up with the name of the file.
21149 mf=`echo "$mf" | sed -e 's/:.*$//'`
21150 # Check whether this is an Automake generated Makefile or not.
21151 # We used to match only the files named `Makefile.in', but
21152 # some people rename them; so instead we look at the file content.
21153 # Grep'ing the first line is not enough: some people post-process
21154 # each Makefile.in and add a new line on top of each file to say so.
21155 # So let's grep whole file.
21156 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21157 dirpart=`(dirname "$mf") 2>/dev/null ||
21158 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21159 X"$mf" : 'X\(//\)[^/]' \| \
21160 X"$mf" : 'X\(//\)$' \| \
21161 X"$mf" : 'X\(/\)' \| \
21162 . : '\(.\)' 2>/dev/null ||
21163 echo X"$mf" |
21164 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21165 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21166 /^X\(\/\/\)$/{ s//\1/; q; }
21167 /^X\(\/\).*/{ s//\1/; q; }
21168 s/.*/./; q'`
21169 else
21170 continue
21171 fi
21172 # Extract the definition of DEPDIR, am__include, and am__quote
21173 # from the Makefile without running `make'.
21174 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21175 test -z "$DEPDIR" && continue
21176 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21177 test -z "am__include" && continue
21178 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21179 # When using ansi2knr, U may be empty or an underscore; expand it
21180 U=`sed -n 's/^U = //p' < "$mf"`
21181 # Find all dependency output files, they are included files with
21182 # $(DEPDIR) in their names. We invoke sed twice because it is the
21183 # simplest approach to changing $(DEPDIR) to its actual value in the
21184 # expansion.
21185 for file in `sed -n "
21186 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21187 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21188 # Make sure the directory exists.
21189 test -f "$dirpart/$file" && continue
21190 fdir=`(dirname "$file") 2>/dev/null ||
21191 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21192 X"$file" : 'X\(//\)[^/]' \| \
21193 X"$file" : 'X\(//\)$' \| \
21194 X"$file" : 'X\(/\)' \| \
21195 . : '\(.\)' 2>/dev/null ||
21196 echo X"$file" |
21197 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21198 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21199 /^X\(\/\/\)$/{ s//\1/; q; }
21200 /^X\(\/\).*/{ s//\1/; q; }
21201 s/.*/./; q'`
21202 { if $as_mkdir_p; then
21203 mkdir -p $dirpart/$fdir
21204 else
21205 as_dir=$dirpart/$fdir
21206 as_dirs=
21207 while test ! -d "$as_dir"; do
21208 as_dirs="$as_dir $as_dirs"
21209 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21210 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21211 X"$as_dir" : 'X\(//\)[^/]' \| \
21212 X"$as_dir" : 'X\(//\)$' \| \
21213 X"$as_dir" : 'X\(/\)' \| \
21214 . : '\(.\)' 2>/dev/null ||
21215 echo X"$as_dir" |
21216 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21217 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21218 /^X\(\/\/\)$/{ s//\1/; q; }
21219 /^X\(\/\).*/{ s//\1/; q; }
21220 s/.*/./; q'`
21221 done
21222 test ! -n "$as_dirs" || mkdir $as_dirs
21223 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21224 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21225 { (exit 1); exit 1; }; }; }
21226
21227 # echo "creating $dirpart/$file"
21228 echo '# dummy' > "$dirpart/$file"
21229 done
21230 done
21231 ;;
21232 libtool )
21233
21234 # See if we are running on zsh, and set the options which allow our
21235 # commands through without removal of \ escapes.
21236 if test -n "${ZSH_VERSION+set}" ; then
21237 setopt NO_GLOB_SUBST
21238 fi
21239
21240 cfgfile="${ofile}T"
21241 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21242 $RM "$cfgfile"
21243
21244 cat <<_LT_EOF >> "$cfgfile"
21245 #! $SHELL
21246
21247 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21248 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
21249 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21250 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21251 #
21252 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21253 # 2006, 2007 Free Software Foundation, Inc.
21254 #
21255 # This file is part of GNU Libtool:
21256 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
21257 #
21258 # This program is free software; you can redistribute it and/or modify
21259 # it under the terms of the GNU General Public License as published by
21260 # the Free Software Foundation; either version 2 of the License, or
21261 # (at your option) any later version.
21262 #
21263 # This program is distributed in the hope that it will be useful, but
21264 # WITHOUT ANY WARRANTY; without even the implied warranty of
21265 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21266 # General Public License for more details.
21267 #
21268 # You should have received a copy of the GNU General Public License
21269 # along with this program; if not, a copy can be downloaded from
21270 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
21271 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
21272 # MA 02110-1301, USA.
21273 #
21274 # As a special exception to the GNU General Public License, if you
21275 # distribute this file as part of a program that contains a
21276 # configuration script generated by Autoconf, you may include it under
21277 # the same distribution terms that you use for the rest of that program.
21278
21279
21280 # The names of the tagged configurations supported by this script.
21281 available_tags="FC "
21282
21283 # ### BEGIN LIBTOOL CONFIG
21284
21285 # Which release of libtool.m4 was used?
21286 macro_version=$macro_version
21287 macro_revision=$macro_revision
21288
21289 # Whether or not to build shared libraries.
21290 build_libtool_libs=$enable_shared
21291
21292 # Whether or not to build static libraries.
21293 build_old_libs=$enable_static
21294
21295 # What type of objects to build.
21296 pic_mode=$pic_mode
21297
21298 # Whether or not to optimize for fast installation.
21299 fast_install=$enable_fast_install
21300
21301 # The host system.
21302 host_alias=$host_alias
21303 host=$host
21304 host_os=$host_os
21305
21306 # The build system.
21307 build_alias=$build_alias
21308 build=$build
21309 build_os=$build_os
21310
21311 # A sed program that does not truncate output.
21312 SED=$lt_SED
21313
21314 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21315 Xsed="\$SED -e 1s/^X//"
21316
21317 # A grep program that handles long lines.
21318 GREP=$lt_GREP
21319
21320 # An ERE matcher.
21321 EGREP=$lt_EGREP
21322
21323 # A literal string matcher.
21324 FGREP=$lt_FGREP
21325
21326 # A BSD- or MS-compatible name lister.
21327 NM=$lt_NM
21328
21329 # Whether we need soft or hard links.
21330 LN_S=$lt_LN_S
21331
21332 # What is the maximum length of a command?
21333 max_cmd_len=$max_cmd_len
21334
21335 # Object file suffix (normally "o").
21336 objext=$ac_objext
21337
21338 # Executable file suffix (normally "").
21339 exeext=$exeext
21340
21341 # whether the shell understands "unset".
21342 lt_unset=$lt_unset
21343
21344 # turn spaces into newlines.
21345 SP2NL=$lt_lt_SP2NL
21346
21347 # turn newlines into spaces.
21348 NL2SP=$lt_lt_NL2SP
21349
21350 # How to create reloadable object files.
21351 reload_flag=$lt_reload_flag
21352 reload_cmds=$lt_reload_cmds
21353
21354 # Method to check whether dependent libraries are shared objects.
21355 deplibs_check_method=$lt_deplibs_check_method
21356
21357 # Command to use when deplibs_check_method == "file_magic".
21358 file_magic_cmd=$lt_file_magic_cmd
21359
21360 # The archiver.
21361 AR=$lt_AR
21362 AR_FLAGS=$lt_AR_FLAGS
21363
21364 # A symbol stripping program.
21365 STRIP=$lt_STRIP
21366
21367 # Commands used to install an old-style archive.
21368 RANLIB=$lt_RANLIB
21369 old_postinstall_cmds=$lt_old_postinstall_cmds
21370 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21371
21372 # A C compiler.
21373 LTCC=$lt_CC
21374
21375 # LTCC compiler flags.
21376 LTCFLAGS=$lt_CFLAGS
21377
21378 # Take the output of nm and produce a listing of raw symbols and C names.
21379 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21380
21381 # Transform the output of nm in a proper C declaration.
21382 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21383
21384 # Transform the output of nm in a C name address pair.
21385 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21386
21387 # The name of the directory that contains temporary libtool files.
21388 objdir=$objdir
21389
21390 # Shell to use when invoking shell scripts.
21391 SHELL=$lt_SHELL
21392
21393 # An echo program that does not interpret backslashes.
21394 ECHO=$lt_ECHO
21395
21396 # Used to examine libraries when file_magic_cmd begins with "file".
21397 MAGIC_CMD=$MAGIC_CMD
21398
21399 # Must we lock files when doing compilation?
21400 need_locks=$lt_need_locks
21401
21402 # Old archive suffix (normally "a").
21403 libext=$libext
21404
21405 # Shared library suffix (normally ".so").
21406 shrext_cmds=$lt_shrext_cmds
21407
21408 # The commands to extract the exported symbol list from a shared archive.
21409 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21410
21411 # Variables whose values should be saved in libtool wrapper scripts and
21412 # restored at link time.
21413 variables_saved_for_relink=$lt_variables_saved_for_relink
21414
21415 # Do we need the "lib" prefix for modules?
21416 need_lib_prefix=$need_lib_prefix
21417
21418 # Do we need a version for libraries?
21419 need_version=$need_version
21420
21421 # Library versioning type.
21422 version_type=$version_type
21423
21424 # Shared library runtime path variable.
21425 runpath_var=$runpath_var
21426
21427 # Shared library path variable.
21428 shlibpath_var=$shlibpath_var
21429
21430 # Is shlibpath searched before the hard-coded library search path?
21431 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21432
21433 # Format of library name prefix.
21434 libname_spec=$lt_libname_spec
21435
21436 # List of archive names. First name is the real one, the rest are links.
21437 # The last name is the one that the linker finds with -lNAME
21438 library_names_spec=$lt_library_names_spec
21439
21440 # The coded name of the library, if different from the real name.
21441 soname_spec=$lt_soname_spec
21442
21443 # Command to use after installation of a shared archive.
21444 postinstall_cmds=$lt_postinstall_cmds
21445
21446 # Command to use after uninstallation of a shared archive.
21447 postuninstall_cmds=$lt_postuninstall_cmds
21448
21449 # Commands used to finish a libtool library installation in a directory.
21450 finish_cmds=$lt_finish_cmds
21451
21452 # As "finish_cmds", except a single script fragment to be evaled but
21453 # not shown.
21454 finish_eval=$lt_finish_eval
21455
21456 # Whether we should hardcode library paths into libraries.
21457 hardcode_into_libs=$hardcode_into_libs
21458
21459 # Compile-time system search path for libraries.
21460 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21461
21462 # Run-time system search path for libraries.
21463 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21464
21465 # Whether dlopen is supported.
21466 dlopen_support=$enable_dlopen
21467
21468 # Whether dlopen of programs is supported.
21469 dlopen_self=$enable_dlopen_self
21470
21471 # Whether dlopen of statically linked programs is supported.
21472 dlopen_self_static=$enable_dlopen_self_static
21473
21474 # Commands to strip libraries.
21475 old_striplib=$lt_old_striplib
21476 striplib=$lt_striplib
21477
21478
21479 # The linker used to build libraries.
21480 LD=$lt_LD
21481
21482 # Commands used to build an old-style archive.
21483 old_archive_cmds=$lt_old_archive_cmds
21484
21485 # A language specific compiler.
21486 CC=$lt_compiler
21487
21488 # Is the compiler the GNU compiler?
21489 with_gcc=$GCC
21490
21491 # Compiler flag to turn off builtin functions.
21492 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21493
21494 # How to pass a linker flag through the compiler.
21495 wl=$lt_lt_prog_compiler_wl
21496
21497 # Additional compiler flags for building library objects.
21498 pic_flag=$lt_lt_prog_compiler_pic
21499
21500 # Compiler flag to prevent dynamic linking.
21501 link_static_flag=$lt_lt_prog_compiler_static
21502
21503 # Does compiler simultaneously support -c and -o options?
21504 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21505
21506 # Whether or not to add -lc for building shared libraries.
21507 build_libtool_need_lc=$archive_cmds_need_lc
21508
21509 # Whether or not to disallow shared libs when runtime libs are static.
21510 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21511
21512 # Compiler flag to allow reflexive dlopens.
21513 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21514
21515 # Compiler flag to generate shared objects directly from archives.
21516 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21517
21518 # Whether the compiler copes with passing no objects directly.
21519 compiler_needs_object=$lt_compiler_needs_object
21520
21521 # Create an old-style archive from a shared archive.
21522 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21523
21524 # Create a temporary old-style archive to link instead of a shared archive.
21525 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21526
21527 # Commands used to build a shared archive.
21528 archive_cmds=$lt_archive_cmds
21529 archive_expsym_cmds=$lt_archive_expsym_cmds
21530
21531 # Commands used to build a loadable module if different from building
21532 # a shared archive.
21533 module_cmds=$lt_module_cmds
21534 module_expsym_cmds=$lt_module_expsym_cmds
21535
21536 # Whether we are building with GNU ld or not.
21537 with_gnu_ld=$lt_with_gnu_ld
21538
21539 # Flag that allows shared libraries with undefined symbols to be built.
21540 allow_undefined_flag=$lt_allow_undefined_flag
21541
21542 # Flag that enforces no undefined symbols.
21543 no_undefined_flag=$lt_no_undefined_flag
21544
21545 # Flag to hardcode \$libdir into a binary during linking.
21546 # This must work even if \$libdir does not exist
21547 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21548
21549 # If ld is used when linking, flag to hardcode \$libdir into a binary
21550 # during linking. This must work even if \$libdir does not exist.
21551 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
21552
21553 # Whether we need a single "-rpath" flag with a separated argument.
21554 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21555
21556 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21557 # DIR into the resulting binary.
21558 hardcode_direct=$hardcode_direct
21559
21560 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21561 # DIR into the resulting binary and the resulting library dependency is
21562 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21563 # library is relocated.
21564 hardcode_direct_absolute=$hardcode_direct_absolute
21565
21566 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21567 # into the resulting binary.
21568 hardcode_minus_L=$hardcode_minus_L
21569
21570 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21571 # into the resulting binary.
21572 hardcode_shlibpath_var=$hardcode_shlibpath_var
21573
21574 # Set to "yes" if building a shared library automatically hardcodes DIR
21575 # into the library and all subsequent libraries and executables linked
21576 # against it.
21577 hardcode_automatic=$hardcode_automatic
21578
21579 # Set to yes if linker adds runtime paths of dependent libraries
21580 # to runtime path list.
21581 inherit_rpath=$inherit_rpath
21582
21583 # Whether libtool must link a program against all its dependency libraries.
21584 link_all_deplibs=$link_all_deplibs
21585
21586 # Fix the shell variable \$srcfile for the compiler.
21587 fix_srcfile_path=$lt_fix_srcfile_path
21588
21589 # Set to "yes" if exported symbols are required.
21590 always_export_symbols=$always_export_symbols
21591
21592 # The commands to list exported symbols.
21593 export_symbols_cmds=$lt_export_symbols_cmds
21594
21595 # Symbols that should not be listed in the preloaded symbols.
21596 exclude_expsyms=$lt_exclude_expsyms
21597
21598 # Symbols that must always be exported.
21599 include_expsyms=$lt_include_expsyms
21600
21601 # Commands necessary for linking programs (against libraries) with templates.
21602 prelink_cmds=$lt_prelink_cmds
21603
21604 # Specify filename containing input files.
21605 file_list_spec=$lt_file_list_spec
21606
21607 # How to hardcode a shared library path into an executable.
21608 hardcode_action=$hardcode_action
21609
21610 # Dependencies to place before and after the objects being linked to
21611 # create a shared library.
21612 predep_objects=$lt_predep_objects
21613 postdep_objects=$lt_postdep_objects
21614 predeps=$lt_predeps
21615 postdeps=$lt_postdeps
21616
21617 # The library search path used internally by the compiler when linking
21618 # a shared library.
21619 compiler_lib_search_path=$lt_compiler_lib_search_path
21620
21621 # ### END LIBTOOL CONFIG
21622
21623 _LT_EOF
21624
21625 case $host_os in
21626 aix3*)
21627 cat <<\_LT_EOF >> "$cfgfile"
21628 # AIX sometimes has problems with the GCC collect2 program. For some
21629 # reason, if we set the COLLECT_NAMES environment variable, the problems
21630 # vanish in a puff of smoke.
21631 if test "X${COLLECT_NAMES+set}" != Xset; then
21632 COLLECT_NAMES=
21633 export COLLECT_NAMES
21634 fi
21635 _LT_EOF
21636 ;;
21637 esac
21638
21639
21640 ltmain="$ac_aux_dir/ltmain.sh"
21641
21642
21643 # We use sed instead of cat because bash on DJGPP gets confused if
21644 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21645 # text mode, it properly converts lines to CR/LF. This bash problem
21646 # is reportedly fixed, but why not run on old versions too?
21647 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
21648 || (rm -f "$cfgfile"; exit 1)
21649
21650 case $xsi_shell in
21651 yes)
21652 cat << \_LT_EOF >> "$cfgfile"
21653 # func_dirname file append nondir_replacement
21654 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
21655 # otherwise set result to NONDIR_REPLACEMENT.
21656 func_dirname ()
21657 {
21658 case ${1} in
21659 */*) func_dirname_result="${1%/*}${2}" ;;
21660 * ) func_dirname_result="${3}" ;;
21661 esac
21662 }
21663
21664 # func_basename file
21665 func_basename ()
21666 {
21667 func_basename_result="${1##*/}"
21668 }
21669
21670 # func_stripname prefix suffix name
21671 # strip PREFIX and SUFFIX off of NAME.
21672 # PREFIX and SUFFIX must not contain globbing or regex special
21673 # characters, hashes, percent signs, but SUFFIX may contain a leading
21674 # dot (in which case that matches only a dot).
21675 func_stripname ()
21676 {
21677 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
21678 # positional parameters, so assign one to ordinary parameter first.
21679 func_stripname_result=${3}
21680 func_stripname_result=${func_stripname_result#"${1}"}
21681 func_stripname_result=${func_stripname_result%"${2}"}
21682 }
21683
21684 # func_opt_split
21685 func_opt_split ()
21686 {
21687 func_opt_split_opt=${1%%=*}
21688 func_opt_split_arg=${1#*=}
21689 }
21690
21691 # func_lo2o object
21692 func_lo2o ()
21693 {
21694 case ${1} in
21695 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
21696 *) func_lo2o_result=${1} ;;
21697 esac
21698 }
21699 _LT_EOF
21700 ;;
21701 *) # Bourne compatible functions.
21702 cat << \_LT_EOF >> "$cfgfile"
21703 # func_dirname file append nondir_replacement
21704 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
21705 # otherwise set result to NONDIR_REPLACEMENT.
21706 func_dirname ()
21707 {
21708 # Extract subdirectory from the argument.
21709 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
21710 if test "X$func_dirname_result" = "X${1}"; then
21711 func_dirname_result="${3}"
21712 else
21713 func_dirname_result="$func_dirname_result${2}"
21714 fi
21715 }
21716
21717 # func_basename file
21718 func_basename ()
21719 {
21720 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
21721 }
21722
21723 # func_stripname prefix suffix name
21724 # strip PREFIX and SUFFIX off of NAME.
21725 # PREFIX and SUFFIX must not contain globbing or regex special
21726 # characters, hashes, percent signs, but SUFFIX may contain a leading
21727 # dot (in which case that matches only a dot).
21728 # func_strip_suffix prefix name
21729 func_stripname ()
21730 {
21731 case ${2} in
21732 .*) func_stripname_result=`$ECHO "X${3}" \
21733 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
21734 *) func_stripname_result=`$ECHO "X${3}" \
21735 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
21736 esac
21737 }
21738
21739 # sed scripts:
21740 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
21741 my_sed_long_arg='1s/^-[^=]*=//'
21742
21743 # func_opt_split
21744 func_opt_split ()
21745 {
21746 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
21747 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
21748 }
21749
21750 # func_lo2o object
21751 func_lo2o ()
21752 {
21753 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
21754 }
21755 _LT_EOF
21756 esac
21757
21758 case $lt_shell_append in
21759 yes)
21760 cat << \_LT_EOF >> "$cfgfile"
21761
21762 # func_append var value
21763 # Append VALUE to the end of shell variable VAR.
21764 func_append ()
21765 {
21766 eval "$1+=\$2"
21767 }
21768 _LT_EOF
21769 ;;
21770 *)
21771 cat << \_LT_EOF >> "$cfgfile"
21772
21773 # func_append var value
21774 # Append VALUE to the end of shell variable VAR.
21775 func_append ()
21776 {
21777 eval "$1=\$$1\$2"
21778 }
21779 _LT_EOF
21780 ;;
21781 esac
21782
21783
21784 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
21785 || (rm -f "$cfgfile"; exit 1)
21786
21787 mv -f "$cfgfile" "$ofile" ||
21788 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21789 chmod +x "$ofile"
21790
21791
21792 cat <<_LT_EOF >> "$ofile"
21793
21794 # ### BEGIN LIBTOOL TAG CONFIG: FC
21795
21796 # The linker used to build libraries.
21797 LD=$lt_LD_FC
21798
21799 # Commands used to build an old-style archive.
21800 old_archive_cmds=$lt_old_archive_cmds_FC
21801
21802 # A language specific compiler.
21803 CC=$lt_compiler_FC
21804
21805 # Is the compiler the GNU compiler?
21806 with_gcc=$GCC_FC
21807
21808 # Compiler flag to turn off builtin functions.
21809 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
21810
21811 # How to pass a linker flag through the compiler.
21812 wl=$lt_lt_prog_compiler_wl_FC
21813
21814 # Additional compiler flags for building library objects.
21815 pic_flag=$lt_lt_prog_compiler_pic_FC
21816
21817 # Compiler flag to prevent dynamic linking.
21818 link_static_flag=$lt_lt_prog_compiler_static_FC
21819
21820 # Does compiler simultaneously support -c and -o options?
21821 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
21822
21823 # Whether or not to add -lc for building shared libraries.
21824 build_libtool_need_lc=$archive_cmds_need_lc_FC
21825
21826 # Whether or not to disallow shared libs when runtime libs are static.
21827 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
21828
21829 # Compiler flag to allow reflexive dlopens.
21830 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
21831
21832 # Compiler flag to generate shared objects directly from archives.
21833 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
21834
21835 # Whether the compiler copes with passing no objects directly.
21836 compiler_needs_object=$lt_compiler_needs_object_FC
21837
21838 # Create an old-style archive from a shared archive.
21839 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
21840
21841 # Create a temporary old-style archive to link instead of a shared archive.
21842 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
21843
21844 # Commands used to build a shared archive.
21845 archive_cmds=$lt_archive_cmds_FC
21846 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
21847
21848 # Commands used to build a loadable module if different from building
21849 # a shared archive.
21850 module_cmds=$lt_module_cmds_FC
21851 module_expsym_cmds=$lt_module_expsym_cmds_FC
21852
21853 # Whether we are building with GNU ld or not.
21854 with_gnu_ld=$lt_with_gnu_ld_FC
21855
21856 # Flag that allows shared libraries with undefined symbols to be built.
21857 allow_undefined_flag=$lt_allow_undefined_flag_FC
21858
21859 # Flag that enforces no undefined symbols.
21860 no_undefined_flag=$lt_no_undefined_flag_FC
21861
21862 # Flag to hardcode \$libdir into a binary during linking.
21863 # This must work even if \$libdir does not exist
21864 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
21865
21866 # If ld is used when linking, flag to hardcode \$libdir into a binary
21867 # during linking. This must work even if \$libdir does not exist.
21868 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
21869
21870 # Whether we need a single "-rpath" flag with a separated argument.
21871 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
21872
21873 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21874 # DIR into the resulting binary.
21875 hardcode_direct=$hardcode_direct_FC
21876
21877 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21878 # DIR into the resulting binary and the resulting library dependency is
21879 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21880 # library is relocated.
21881 hardcode_direct_absolute=$hardcode_direct_absolute_FC
21882
21883 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21884 # into the resulting binary.
21885 hardcode_minus_L=$hardcode_minus_L_FC
21886
21887 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21888 # into the resulting binary.
21889 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
21890
21891 # Set to "yes" if building a shared library automatically hardcodes DIR
21892 # into the library and all subsequent libraries and executables linked
21893 # against it.
21894 hardcode_automatic=$hardcode_automatic_FC
21895
21896 # Set to yes if linker adds runtime paths of dependent libraries
21897 # to runtime path list.
21898 inherit_rpath=$inherit_rpath_FC
21899
21900 # Whether libtool must link a program against all its dependency libraries.
21901 link_all_deplibs=$link_all_deplibs_FC
21902
21903 # Fix the shell variable \$srcfile for the compiler.
21904 fix_srcfile_path=$lt_fix_srcfile_path_FC
21905
21906 # Set to "yes" if exported symbols are required.
21907 always_export_symbols=$always_export_symbols_FC
21908
21909 # The commands to list exported symbols.
21910 export_symbols_cmds=$lt_export_symbols_cmds_FC
21911
21912 # Symbols that should not be listed in the preloaded symbols.
21913 exclude_expsyms=$lt_exclude_expsyms_FC
21914
21915 # Symbols that must always be exported.
21916 include_expsyms=$lt_include_expsyms_FC
21917
21918 # Commands necessary for linking programs (against libraries) with templates.
21919 prelink_cmds=$lt_prelink_cmds_FC
21920
21921 # Specify filename containing input files.
21922 file_list_spec=$lt_file_list_spec_FC
21923
21924 # How to hardcode a shared library path into an executable.
21925 hardcode_action=$hardcode_action_FC
21926
21927 # Dependencies to place before and after the objects being linked to
21928 # create a shared library.
21929 predep_objects=$lt_predep_objects_FC
21930 postdep_objects=$lt_postdep_objects_FC
21931 predeps=$lt_predeps_FC
21932 postdeps=$lt_postdeps_FC
21933
21934 # The library search path used internally by the compiler when linking
21935 # a shared library.
21936 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
21937
21938 # ### END LIBTOOL TAG CONFIG: FC
21939 _LT_EOF
21940
21941 ;;
21942 gstdint.h )
21943 if test "$GCC" = yes; then
21944 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
21945 else
21946 echo "/* generated for $CC */" > tmp-stdint.h
21947 fi
21948
21949 sed 's/^ *//' >> tmp-stdint.h <<EOF
21950
21951 #ifndef GCC_GENERATED_STDINT_H
21952 #define GCC_GENERATED_STDINT_H 1
21953
21954 #include <sys/types.h>
21955 EOF
21956
21957 if test "$acx_cv_header_stdint" != stdint.h; then
21958 echo "#include <stddef.h>" >> tmp-stdint.h
21959 fi
21960 if test "$acx_cv_header_stdint" != stddef.h; then
21961 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
21962 fi
21963
21964 sed 's/^ *//' >> tmp-stdint.h <<EOF
21965 /* glibc uses these symbols as guards to prevent redefinitions. */
21966 #ifdef __int8_t_defined
21967 #define _INT8_T
21968 #define _INT16_T
21969 #define _INT32_T
21970 #endif
21971 #ifdef __uint32_t_defined
21972 #define _UINT32_T
21973 #endif
21974
21975 EOF
21976
21977 # ----------------- done header, emit basic int types -------------
21978 if test "$acx_cv_header_stdint" = stddef.h; then
21979 sed 's/^ *//' >> tmp-stdint.h <<EOF
21980
21981 #ifndef _UINT8_T
21982 #define _UINT8_T
21983 #ifndef __uint8_t_defined
21984 #define __uint8_t_defined
21985 typedef unsigned $acx_cv_type_int8_t uint8_t;
21986 #endif
21987 #endif
21988
21989 #ifndef _UINT16_T
21990 #define _UINT16_T
21991 #ifndef __uint16_t_defined
21992 #define __uint16_t_defined
21993 typedef unsigned $acx_cv_type_int16_t uint16_t;
21994 #endif
21995 #endif
21996
21997 #ifndef _UINT32_T
21998 #define _UINT32_T
21999 #ifndef __uint32_t_defined
22000 #define __uint32_t_defined
22001 typedef unsigned $acx_cv_type_int32_t uint32_t;
22002 #endif
22003 #endif
22004
22005 #ifndef _INT8_T
22006 #define _INT8_T
22007 #ifndef __int8_t_defined
22008 #define __int8_t_defined
22009 typedef $acx_cv_type_int8_t int8_t;
22010 #endif
22011 #endif
22012
22013 #ifndef _INT16_T
22014 #define _INT16_T
22015 #ifndef __int16_t_defined
22016 #define __int16_t_defined
22017 typedef $acx_cv_type_int16_t int16_t;
22018 #endif
22019 #endif
22020
22021 #ifndef _INT32_T
22022 #define _INT32_T
22023 #ifndef __int32_t_defined
22024 #define __int32_t_defined
22025 typedef $acx_cv_type_int32_t int32_t;
22026 #endif
22027 #endif
22028 EOF
22029 elif test "$ac_cv_type_u_int32_t" = yes; then
22030 sed 's/^ *//' >> tmp-stdint.h <<EOF
22031
22032 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
22033 #ifndef _INT8_T
22034 #define _INT8_T
22035 #endif
22036 #ifndef _INT16_T
22037 #define _INT16_T
22038 #endif
22039 #ifndef _INT32_T
22040 #define _INT32_T
22041 #endif
22042
22043 #ifndef _UINT8_T
22044 #define _UINT8_T
22045 #ifndef __uint8_t_defined
22046 #define __uint8_t_defined
22047 typedef u_int8_t uint8_t;
22048 #endif
22049 #endif
22050
22051 #ifndef _UINT16_T
22052 #define _UINT16_T
22053 #ifndef __uint16_t_defined
22054 #define __uint16_t_defined
22055 typedef u_int16_t uint16_t;
22056 #endif
22057 #endif
22058
22059 #ifndef _UINT32_T
22060 #define _UINT32_T
22061 #ifndef __uint32_t_defined
22062 #define __uint32_t_defined
22063 typedef u_int32_t uint32_t;
22064 #endif
22065 #endif
22066 EOF
22067 else
22068 sed 's/^ *//' >> tmp-stdint.h <<EOF
22069
22070 /* Some systems have guard macros to prevent redefinitions, define them. */
22071 #ifndef _INT8_T
22072 #define _INT8_T
22073 #endif
22074 #ifndef _INT16_T
22075 #define _INT16_T
22076 #endif
22077 #ifndef _INT32_T
22078 #define _INT32_T
22079 #endif
22080 #ifndef _UINT8_T
22081 #define _UINT8_T
22082 #endif
22083 #ifndef _UINT16_T
22084 #define _UINT16_T
22085 #endif
22086 #ifndef _UINT32_T
22087 #define _UINT32_T
22088 #endif
22089 EOF
22090 fi
22091
22092 # ------------- done basic int types, emit int64_t types ------------
22093 if test "$ac_cv_type_uint64_t" = yes; then
22094 sed 's/^ *//' >> tmp-stdint.h <<EOF
22095
22096 /* system headers have good uint64_t and int64_t */
22097 #ifndef _INT64_T
22098 #define _INT64_T
22099 #endif
22100 #ifndef _UINT64_T
22101 #define _UINT64_T
22102 #endif
22103 EOF
22104 elif test "$ac_cv_type_u_int64_t" = yes; then
22105 sed 's/^ *//' >> tmp-stdint.h <<EOF
22106
22107 /* system headers have an u_int64_t (and int64_t) */
22108 #ifndef _INT64_T
22109 #define _INT64_T
22110 #endif
22111 #ifndef _UINT64_T
22112 #define _UINT64_T
22113 #ifndef __uint64_t_defined
22114 #define __uint64_t_defined
22115 typedef u_int64_t uint64_t;
22116 #endif
22117 #endif
22118 EOF
22119 elif test -n "$acx_cv_type_int64_t"; then
22120 sed 's/^ *//' >> tmp-stdint.h <<EOF
22121
22122 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
22123 #ifndef _INT64_T
22124 #define _INT64_T
22125 typedef $acx_cv_type_int64_t int64_t;
22126 #endif
22127 #ifndef _UINT64_T
22128 #define _UINT64_T
22129 #ifndef __uint64_t_defined
22130 #define __uint64_t_defined
22131 typedef unsigned $acx_cv_type_int64_t uint64_t;
22132 #endif
22133 #endif
22134 EOF
22135 else
22136 sed 's/^ *//' >> tmp-stdint.h <<EOF
22137
22138 /* some common heuristics for int64_t, using compiler-specific tests */
22139 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
22140 #ifndef _INT64_T
22141 #define _INT64_T
22142 #ifndef __int64_t_defined
22143 typedef long long int64_t;
22144 #endif
22145 #endif
22146 #ifndef _UINT64_T
22147 #define _UINT64_T
22148 typedef unsigned long long uint64_t;
22149 #endif
22150
22151 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
22152 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
22153 does not implement __extension__. But that compiler doesn't define
22154 __GNUC_MINOR__. */
22155 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
22156 # define __extension__
22157 # endif
22158
22159 # ifndef _INT64_T
22160 # define _INT64_T
22161 __extension__ typedef long long int64_t;
22162 # endif
22163 # ifndef _UINT64_T
22164 # define _UINT64_T
22165 __extension__ typedef unsigned long long uint64_t;
22166 # endif
22167
22168 #elif !defined __STRICT_ANSI__
22169 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
22170
22171 # ifndef _INT64_T
22172 # define _INT64_T
22173 typedef __int64 int64_t;
22174 # endif
22175 # ifndef _UINT64_T
22176 # define _UINT64_T
22177 typedef unsigned __int64 uint64_t;
22178 # endif
22179 # endif /* compiler */
22180
22181 #endif /* ANSI version */
22182 EOF
22183 fi
22184
22185 # ------------- done int64_t types, emit intptr types ------------
22186 if test "$ac_cv_type_uintptr_t" != yes; then
22187 sed 's/^ *//' >> tmp-stdint.h <<EOF
22188
22189 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
22190 #ifndef __uintptr_t_defined
22191 typedef u$acx_cv_type_intptr_t uintptr_t;
22192 #endif
22193 #ifndef __intptr_t_defined
22194 typedef $acx_cv_type_intptr_t intptr_t;
22195 #endif
22196 EOF
22197 fi
22198
22199 # ------------- done intptr types, emit int_least types ------------
22200 if test "$ac_cv_type_int_least32_t" != yes; then
22201 sed 's/^ *//' >> tmp-stdint.h <<EOF
22202
22203 /* Define int_least types */
22204 typedef int8_t int_least8_t;
22205 typedef int16_t int_least16_t;
22206 typedef int32_t int_least32_t;
22207 #ifdef _INT64_T
22208 typedef int64_t int_least64_t;
22209 #endif
22210
22211 typedef uint8_t uint_least8_t;
22212 typedef uint16_t uint_least16_t;
22213 typedef uint32_t uint_least32_t;
22214 #ifdef _UINT64_T
22215 typedef uint64_t uint_least64_t;
22216 #endif
22217 EOF
22218 fi
22219
22220 # ------------- done intptr types, emit int_fast types ------------
22221 if test "$ac_cv_type_int_fast32_t" != yes; then
22222 sed 's/^ *//' >> tmp-stdint.h <<EOF
22223
22224 /* Define int_fast types. short is often slow */
22225 typedef int8_t int_fast8_t;
22226 typedef int int_fast16_t;
22227 typedef int32_t int_fast32_t;
22228 #ifdef _INT64_T
22229 typedef int64_t int_fast64_t;
22230 #endif
22231
22232 typedef uint8_t uint_fast8_t;
22233 typedef unsigned int uint_fast16_t;
22234 typedef uint32_t uint_fast32_t;
22235 #ifdef _UINT64_T
22236 typedef uint64_t uint_fast64_t;
22237 #endif
22238 EOF
22239 fi
22240
22241 if test "$ac_cv_type_uintmax_t" != yes; then
22242 sed 's/^ *//' >> tmp-stdint.h <<EOF
22243
22244 /* Define intmax based on what we found */
22245 #ifdef _INT64_T
22246 typedef int64_t intmax_t;
22247 #else
22248 typedef long intmax_t;
22249 #endif
22250 #ifdef _UINT64_T
22251 typedef uint64_t uintmax_t;
22252 #else
22253 typedef unsigned long uintmax_t;
22254 #endif
22255 EOF
22256 fi
22257
22258 sed 's/^ *//' >> tmp-stdint.h <<EOF
22259
22260 #endif /* GCC_GENERATED_STDINT_H */
22261 EOF
22262
22263 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
22264 rm -f tmp-stdint.h
22265 else
22266 mv -f tmp-stdint.h gstdint.h
22267 fi
22268
22269 ;;
22270 esac
22271 done
22272 _ACEOF
22273
22274 cat >>$CONFIG_STATUS <<\_ACEOF
22275
22276 { (exit 0); exit 0; }
22277 _ACEOF
22278 chmod +x $CONFIG_STATUS
22279 ac_clean_files=$ac_clean_files_save
22280
22281
22282 # configure is writing to config.log, and then calls config.status.
22283 # config.status does its own redirection, appending to config.log.
22284 # Unfortunately, on DOS this fails, as config.log is still kept open
22285 # by configure, so config.status won't be able to write to it; its
22286 # output is simply discarded. So we exec the FD to /dev/null,
22287 # effectively closing config.log, so it can be properly (re)opened and
22288 # appended to by config.status. When coming back to configure, we
22289 # need to make the FD available again.
22290 if test "$no_create" != yes; then
22291 ac_cs_success=:
22292 ac_config_status_args=
22293 test "$silent" = yes &&
22294 ac_config_status_args="$ac_config_status_args --quiet"
22295 exec 5>/dev/null
22296 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22297 exec 5>>config.log
22298 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22299 # would make configure fail if this is the last instruction.
22300 $ac_cs_success || { (exit 1); exit 1; }
22301 fi
22302
This page took 1.197833 seconds and 5 git commands to generate.