re PR middle-end/33880 (ICE: in extract_omp_for_data, at omp-low.c:162)
[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-generated-files-in-srcdir
1007 put copies of generated files in source dir intended
1008 for creating source tarballs for users without
1009 texinfo bison or flex. [default=no]
1010 --enable-multilib build many library versions (default)
1011 --disable-dependency-tracking speeds up one-time build
1012 --enable-dependency-tracking do not reject slow dependency extractors
1013 --enable-shared[=PKGS]
1014 build shared libraries [default=yes]
1015 --enable-static[=PKGS]
1016 build static libraries [default=yes]
1017 --enable-fast-install[=PKGS]
1018 optimize for fast installation [default=yes]
1019 --disable-libtool-lock avoid locking (might break parallel builds)
1020 --enable-maintainer-mode enable make rules and dependencies not useful
1021 (and sometimes confusing) to the casual installer
1022 --enable-linux-futex use the Linux futex system call
1023 [default=default]
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 # We would like our source tree to be readonly. However when releases or
1522 # pre-releases are generated, the flex/bison generated files as well as the
1523 # various formats of manuals need to be included along with the rest of the
1524 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1525 # just that.
1526 echo "$as_me:$LINENO: checking for --enable-generated-files-in-srcdir" >&5
1527 echo $ECHO_N "checking for --enable-generated-files-in-srcdir... $ECHO_C" >&6
1528 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1529 if test "${enable_generated_files_in_srcdir+set}" = set; then
1530 enableval="$enable_generated_files_in_srcdir"
1531
1532 case "$enableval" in
1533 yes|no) ;;
1534 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable generated-files-in-srcdir" >&5
1535 echo "$as_me: error: Unknown argument to enable/disable generated-files-in-srcdir" >&2;}
1536 { (exit 1); exit 1; }; } ;;
1537 esac
1538
1539 else
1540 enable_generated_files_in_srcdir=no
1541 fi;
1542
1543 echo "$as_me:$LINENO: result: $enable_generated_files_in_srcdir" >&5
1544 echo "${ECHO_T}$enable_generated_files_in_srcdir" >&6
1545
1546
1547 if test "$enable_generated_files_in_srcdir" = yes; then
1548 GENINSRC_TRUE=
1549 GENINSRC_FALSE='#'
1550 else
1551 GENINSRC_TRUE='#'
1552 GENINSRC_FALSE=
1553 fi
1554
1555
1556
1557 # -------
1558 # -------
1559
1560 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
1561 #
1562 # You will slowly go insane if you do not grok the following fact: when
1563 # building this library, the top-level /target/ becomes the library's /host/.
1564 #
1565 # configure then causes --target to default to --host, exactly like any
1566 # other package using autoconf. Therefore, 'target' and 'host' will
1567 # always be the same. This makes sense both for native and cross compilers
1568 # just think about it for a little while. :-)
1569 #
1570 # Also, if this library is being configured as part of a cross compiler, the
1571 # top-level configure script will pass the "real" host as $with_cross_host.
1572 #
1573 # Do not delete or change the following two lines. For why, see
1574 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
1575 ac_aux_dir=
1576 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1577 if test -f $ac_dir/install-sh; then
1578 ac_aux_dir=$ac_dir
1579 ac_install_sh="$ac_aux_dir/install-sh -c"
1580 break
1581 elif test -f $ac_dir/install.sh; then
1582 ac_aux_dir=$ac_dir
1583 ac_install_sh="$ac_aux_dir/install.sh -c"
1584 break
1585 elif test -f $ac_dir/shtool; then
1586 ac_aux_dir=$ac_dir
1587 ac_install_sh="$ac_aux_dir/shtool install -c"
1588 break
1589 fi
1590 done
1591 if test -z "$ac_aux_dir"; then
1592 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1593 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1594 { (exit 1); exit 1; }; }
1595 fi
1596 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1597 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1598 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1599
1600 # Make sure we can run config.sub.
1601 $ac_config_sub sun4 >/dev/null 2>&1 ||
1602 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1603 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1604 { (exit 1); exit 1; }; }
1605
1606 echo "$as_me:$LINENO: checking build system type" >&5
1607 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1608 if test "${ac_cv_build+set}" = set; then
1609 echo $ECHO_N "(cached) $ECHO_C" >&6
1610 else
1611 ac_cv_build_alias=$build_alias
1612 test -z "$ac_cv_build_alias" &&
1613 ac_cv_build_alias=`$ac_config_guess`
1614 test -z "$ac_cv_build_alias" &&
1615 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1616 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1617 { (exit 1); exit 1; }; }
1618 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1619 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1620 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1621 { (exit 1); exit 1; }; }
1622
1623 fi
1624 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1625 echo "${ECHO_T}$ac_cv_build" >&6
1626 build=$ac_cv_build
1627 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1628 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1629 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1630
1631
1632 echo "$as_me:$LINENO: checking host system type" >&5
1633 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1634 if test "${ac_cv_host+set}" = set; then
1635 echo $ECHO_N "(cached) $ECHO_C" >&6
1636 else
1637 ac_cv_host_alias=$host_alias
1638 test -z "$ac_cv_host_alias" &&
1639 ac_cv_host_alias=$ac_cv_build_alias
1640 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1641 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1642 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1643 { (exit 1); exit 1; }; }
1644
1645 fi
1646 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1647 echo "${ECHO_T}$ac_cv_host" >&6
1648 host=$ac_cv_host
1649 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1650 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1651 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1652
1653
1654 echo "$as_me:$LINENO: checking target system type" >&5
1655 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1656 if test "${ac_cv_target+set}" = set; then
1657 echo $ECHO_N "(cached) $ECHO_C" >&6
1658 else
1659 ac_cv_target_alias=$target_alias
1660 test "x$ac_cv_target_alias" = "x" &&
1661 ac_cv_target_alias=$ac_cv_host_alias
1662 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1663 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1664 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1665 { (exit 1); exit 1; }; }
1666
1667 fi
1668 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1669 echo "${ECHO_T}$ac_cv_target" >&6
1670 target=$ac_cv_target
1671 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1672 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1673 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1674
1675
1676 # The aliases save the names the user supplied, while $host etc.
1677 # will get canonicalized.
1678 test -n "$target_alias" &&
1679 test "$program_prefix$program_suffix$program_transform_name" = \
1680 NONENONEs,x,x, &&
1681 program_prefix=${target_alias}-
1682 target_alias=${target_alias-$host_alias}
1683
1684 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
1685 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
1686 # 1.9.0: minimum required version
1687 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
1688 # of other PACKAGE_* variables will, however, and there's nothing
1689 # we can do about that; they come from AC_INIT).
1690 # foreign: we don't follow the normal rules for GNU packages (no COPYING
1691 # file in the top srcdir, etc, etc), so stop complaining.
1692 # -Wall: turns on all automake warnings...
1693 # -Wno-portability: ...except this one, since GNU make is required.
1694 # -Wno-override: ... and this one, since we do want this in testsuite.
1695 am__api_version="1.9"
1696 # Find a good install program. We prefer a C program (faster),
1697 # so one script is as good as another. But avoid the broken or
1698 # incompatible versions:
1699 # SysV /etc/install, /usr/sbin/install
1700 # SunOS /usr/etc/install
1701 # IRIX /sbin/install
1702 # AIX /bin/install
1703 # AmigaOS /C/install, which installs bootblocks on floppy discs
1704 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1705 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1706 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1707 # OS/2's system install, which has a completely different semantic
1708 # ./install, which can be erroneously created by make from ./install.sh.
1709 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1710 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1711 if test -z "$INSTALL"; then
1712 if test "${ac_cv_path_install+set}" = set; then
1713 echo $ECHO_N "(cached) $ECHO_C" >&6
1714 else
1715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1716 for as_dir in $PATH
1717 do
1718 IFS=$as_save_IFS
1719 test -z "$as_dir" && as_dir=.
1720 # Account for people who put trailing slashes in PATH elements.
1721 case $as_dir/ in
1722 ./ | .// | /cC/* | \
1723 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1724 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1725 /usr/ucb/* ) ;;
1726 *)
1727 # OSF1 and SCO ODT 3.0 have their own names for install.
1728 # Don't use installbsd from OSF since it installs stuff as root
1729 # by default.
1730 for ac_prog in ginstall scoinst install; do
1731 for ac_exec_ext in '' $ac_executable_extensions; do
1732 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1733 if test $ac_prog = install &&
1734 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1735 # AIX install. It has an incompatible calling convention.
1736 :
1737 elif test $ac_prog = install &&
1738 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1739 # program-specific install script used by HP pwplus--don't use.
1740 :
1741 else
1742 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1743 break 3
1744 fi
1745 fi
1746 done
1747 done
1748 ;;
1749 esac
1750 done
1751
1752
1753 fi
1754 if test "${ac_cv_path_install+set}" = set; then
1755 INSTALL=$ac_cv_path_install
1756 else
1757 # As a last resort, use the slow shell script. We don't cache a
1758 # path for INSTALL within a source directory, because that will
1759 # break other packages using the cache if that directory is
1760 # removed, or if the path is relative.
1761 INSTALL=$ac_install_sh
1762 fi
1763 fi
1764 echo "$as_me:$LINENO: result: $INSTALL" >&5
1765 echo "${ECHO_T}$INSTALL" >&6
1766
1767 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1768 # It thinks the first close brace ends the variable substitution.
1769 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1770
1771 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1772
1773 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1774
1775 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1776 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1777 # Just in case
1778 sleep 1
1779 echo timestamp > conftest.file
1780 # Do `set' in a subshell so we don't clobber the current shell's
1781 # arguments. Must try -L first in case configure is actually a
1782 # symlink; some systems play weird games with the mod time of symlinks
1783 # (eg FreeBSD returns the mod time of the symlink's containing
1784 # directory).
1785 if (
1786 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1787 if test "$*" = "X"; then
1788 # -L didn't work.
1789 set X `ls -t $srcdir/configure conftest.file`
1790 fi
1791 rm -f conftest.file
1792 if test "$*" != "X $srcdir/configure conftest.file" \
1793 && test "$*" != "X conftest.file $srcdir/configure"; then
1794
1795 # If neither matched, then we have a broken ls. This can happen
1796 # if, for instance, CONFIG_SHELL is bash and it inherits a
1797 # broken ls alias from the environment. This has actually
1798 # happened. Such a system could not be considered "sane".
1799 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1800 alias in your environment" >&5
1801 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1802 alias in your environment" >&2;}
1803 { (exit 1); exit 1; }; }
1804 fi
1805
1806 test "$2" = conftest.file
1807 )
1808 then
1809 # Ok.
1810 :
1811 else
1812 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1813 Check your system clock" >&5
1814 echo "$as_me: error: newly created file is older than distributed files!
1815 Check your system clock" >&2;}
1816 { (exit 1); exit 1; }; }
1817 fi
1818 echo "$as_me:$LINENO: result: yes" >&5
1819 echo "${ECHO_T}yes" >&6
1820 test "$program_prefix" != NONE &&
1821 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1822 # Use a double $ so make ignores it.
1823 test "$program_suffix" != NONE &&
1824 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1825 # Double any \ or $. echo might interpret backslashes.
1826 # By default was `s,x,x', remove it if useless.
1827 cat <<\_ACEOF >conftest.sed
1828 s/[\\$]/&&/g;s/;s,x,x,$//
1829 _ACEOF
1830 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1831 rm conftest.sed
1832
1833 # expand $ac_aux_dir to an absolute path
1834 am_aux_dir=`cd $ac_aux_dir && pwd`
1835
1836 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1837 # Use eval to expand $SHELL
1838 if eval "$MISSING --run true"; then
1839 am_missing_run="$MISSING --run "
1840 else
1841 am_missing_run=
1842 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1843 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1844 fi
1845
1846 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1847 # We used to keeping the `.' as first argument, in order to
1848 # allow $(mkdir_p) to be used without argument. As in
1849 # $(mkdir_p) $(somedir)
1850 # where $(somedir) is conditionally defined. However this is wrong
1851 # for two reasons:
1852 # 1. if the package is installed by a user who cannot write `.'
1853 # make install will fail,
1854 # 2. the above comment should most certainly read
1855 # $(mkdir_p) $(DESTDIR)$(somedir)
1856 # so it does not work when $(somedir) is undefined and
1857 # $(DESTDIR) is not.
1858 # To support the latter case, we have to write
1859 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1860 # so the `.' trick is pointless.
1861 mkdir_p='mkdir -p --'
1862 else
1863 # On NextStep and OpenStep, the `mkdir' command does not
1864 # recognize any option. It will interpret all options as
1865 # directories to create, and then abort because `.' already
1866 # exists.
1867 for d in ./-p ./--version;
1868 do
1869 test -d $d && rmdir $d
1870 done
1871 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1872 if test -f "$ac_aux_dir/mkinstalldirs"; then
1873 mkdir_p='$(mkinstalldirs)'
1874 else
1875 mkdir_p='$(install_sh) -d'
1876 fi
1877 fi
1878
1879 for ac_prog in gawk mawk nawk awk
1880 do
1881 # Extract the first word of "$ac_prog", so it can be a program name with args.
1882 set dummy $ac_prog; ac_word=$2
1883 echo "$as_me:$LINENO: checking for $ac_word" >&5
1884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1885 if test "${ac_cv_prog_AWK+set}" = set; then
1886 echo $ECHO_N "(cached) $ECHO_C" >&6
1887 else
1888 if test -n "$AWK"; then
1889 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1890 else
1891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1892 for as_dir in $PATH
1893 do
1894 IFS=$as_save_IFS
1895 test -z "$as_dir" && as_dir=.
1896 for ac_exec_ext in '' $ac_executable_extensions; do
1897 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1898 ac_cv_prog_AWK="$ac_prog"
1899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1900 break 2
1901 fi
1902 done
1903 done
1904
1905 fi
1906 fi
1907 AWK=$ac_cv_prog_AWK
1908 if test -n "$AWK"; then
1909 echo "$as_me:$LINENO: result: $AWK" >&5
1910 echo "${ECHO_T}$AWK" >&6
1911 else
1912 echo "$as_me:$LINENO: result: no" >&5
1913 echo "${ECHO_T}no" >&6
1914 fi
1915
1916 test -n "$AWK" && break
1917 done
1918
1919 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1920 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1921 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1922 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1923 echo $ECHO_N "(cached) $ECHO_C" >&6
1924 else
1925 cat >conftest.make <<\_ACEOF
1926 all:
1927 @echo 'ac_maketemp="$(MAKE)"'
1928 _ACEOF
1929 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1930 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1931 if test -n "$ac_maketemp"; then
1932 eval ac_cv_prog_make_${ac_make}_set=yes
1933 else
1934 eval ac_cv_prog_make_${ac_make}_set=no
1935 fi
1936 rm -f conftest.make
1937 fi
1938 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1939 echo "$as_me:$LINENO: result: yes" >&5
1940 echo "${ECHO_T}yes" >&6
1941 SET_MAKE=
1942 else
1943 echo "$as_me:$LINENO: result: no" >&5
1944 echo "${ECHO_T}no" >&6
1945 SET_MAKE="MAKE=${MAKE-make}"
1946 fi
1947
1948 rm -rf .tst 2>/dev/null
1949 mkdir .tst 2>/dev/null
1950 if test -d .tst; then
1951 am__leading_dot=.
1952 else
1953 am__leading_dot=_
1954 fi
1955 rmdir .tst 2>/dev/null
1956
1957 # test to see if srcdir already configured
1958 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1959 test -f $srcdir/config.status; then
1960 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1961 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1962 { (exit 1); exit 1; }; }
1963 fi
1964
1965 # test whether we have cygpath
1966 if test -z "$CYGPATH_W"; then
1967 if (cygpath --version) >/dev/null 2>/dev/null; then
1968 CYGPATH_W='cygpath -w'
1969 else
1970 CYGPATH_W=echo
1971 fi
1972 fi
1973
1974
1975 # Define the identity of the package.
1976 PACKAGE='libgomp'
1977 VERSION='1.0'
1978
1979
1980 cat >>confdefs.h <<_ACEOF
1981 #define PACKAGE "$PACKAGE"
1982 _ACEOF
1983
1984
1985 cat >>confdefs.h <<_ACEOF
1986 #define VERSION "$VERSION"
1987 _ACEOF
1988
1989 # Some tools Automake needs.
1990
1991 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1992
1993
1994 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1995
1996
1997 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1998
1999
2000 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2001
2002
2003 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2004
2005 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2006
2007 # Installed binaries are usually stripped using `strip' when the user
2008 # run `make install-strip'. However `strip' might not be the right
2009 # tool to use in cross-compilation environments, therefore Automake
2010 # will honor the `STRIP' environment variable to overrule this program.
2011 if test "$cross_compiling" != no; then
2012 if test -n "$ac_tool_prefix"; then
2013 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2014 set dummy ${ac_tool_prefix}strip; ac_word=$2
2015 echo "$as_me:$LINENO: checking for $ac_word" >&5
2016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2017 if test "${ac_cv_prog_STRIP+set}" = set; then
2018 echo $ECHO_N "(cached) $ECHO_C" >&6
2019 else
2020 if test -n "$STRIP"; then
2021 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2022 else
2023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2024 for as_dir in $PATH
2025 do
2026 IFS=$as_save_IFS
2027 test -z "$as_dir" && as_dir=.
2028 for ac_exec_ext in '' $ac_executable_extensions; do
2029 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2030 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2032 break 2
2033 fi
2034 done
2035 done
2036
2037 fi
2038 fi
2039 STRIP=$ac_cv_prog_STRIP
2040 if test -n "$STRIP"; then
2041 echo "$as_me:$LINENO: result: $STRIP" >&5
2042 echo "${ECHO_T}$STRIP" >&6
2043 else
2044 echo "$as_me:$LINENO: result: no" >&5
2045 echo "${ECHO_T}no" >&6
2046 fi
2047
2048 fi
2049 if test -z "$ac_cv_prog_STRIP"; then
2050 ac_ct_STRIP=$STRIP
2051 # Extract the first word of "strip", so it can be a program name with args.
2052 set dummy strip; ac_word=$2
2053 echo "$as_me:$LINENO: checking for $ac_word" >&5
2054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2055 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2056 echo $ECHO_N "(cached) $ECHO_C" >&6
2057 else
2058 if test -n "$ac_ct_STRIP"; then
2059 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2060 else
2061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2062 for as_dir in $PATH
2063 do
2064 IFS=$as_save_IFS
2065 test -z "$as_dir" && as_dir=.
2066 for ac_exec_ext in '' $ac_executable_extensions; do
2067 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2068 ac_cv_prog_ac_ct_STRIP="strip"
2069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2070 break 2
2071 fi
2072 done
2073 done
2074
2075 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2076 fi
2077 fi
2078 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2079 if test -n "$ac_ct_STRIP"; then
2080 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2081 echo "${ECHO_T}$ac_ct_STRIP" >&6
2082 else
2083 echo "$as_me:$LINENO: result: no" >&5
2084 echo "${ECHO_T}no" >&6
2085 fi
2086
2087 STRIP=$ac_ct_STRIP
2088 else
2089 STRIP="$ac_cv_prog_STRIP"
2090 fi
2091
2092 fi
2093 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2094
2095 # We need awk for the "check" target. The system "awk" is bad on
2096 # some platforms.
2097 # Always define AMTAR for backward compatibility.
2098
2099 AMTAR=${AMTAR-"${am_missing_run}tar"}
2100
2101 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2102
2103
2104
2105
2106
2107 # Default to --enable-multilib
2108 # Check whether --enable-multilib or --disable-multilib was given.
2109 if test "${enable_multilib+set}" = set; then
2110 enableval="$enable_multilib"
2111 case "$enableval" in
2112 yes) multilib=yes ;;
2113 no) multilib=no ;;
2114 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
2115 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
2116 { (exit 1); exit 1; }; } ;;
2117 esac
2118 else
2119 multilib=yes
2120 fi;
2121
2122 # We may get other options which we leave undocumented:
2123 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2124 # See config-ml.in if you want the gory details.
2125
2126 if test "$srcdir" = "."; then
2127 if test "$with_target_subdir" != "."; then
2128 multi_basedir="$srcdir/$with_multisrctop../.."
2129 else
2130 multi_basedir="$srcdir/$with_multisrctop.."
2131 fi
2132 else
2133 multi_basedir="$srcdir/.."
2134 fi
2135
2136
2137 # Even if the default multilib is not a cross compilation,
2138 # it may be that some of the other multilibs are.
2139 if test $cross_compiling = no && test $multilib = yes \
2140 && test "x${with_multisubdir}" != x ; then
2141 cross_compiling=maybe
2142 fi
2143
2144 ac_config_commands="$ac_config_commands default-1"
2145
2146
2147 # Calculate toolexeclibdir
2148 # Also toolexecdir, though it's only used in toolexeclibdir
2149 case ${enable_version_specific_runtime_libs} in
2150 yes)
2151 # Need the gcc compiler version to know where to install libraries
2152 # and header files if --enable-version-specific-runtime-libs option
2153 # is selected.
2154 toolexecdir='$(libdir)/gcc/$(target_alias)'
2155 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
2156 ;;
2157 no)
2158 if test -n "$with_cross_host" &&
2159 test x"$with_cross_host" != x"no"; then
2160 # Install a library built with a cross compiler in tooldir, not libdir.
2161 toolexecdir='$(exec_prefix)/$(target_alias)'
2162 toolexeclibdir='$(toolexecdir)/lib'
2163 else
2164 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
2165 toolexeclibdir='$(libdir)'
2166 fi
2167 multi_os_directory=`$CC -print-multi-os-directory`
2168 case $multi_os_directory in
2169 .) ;; # Avoid trailing /.
2170 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
2171 esac
2172 ;;
2173 esac
2174
2175
2176
2177 # Check the compiler.
2178 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
2179 # We must force CC to /not/ be precious variables; otherwise
2180 # the wrong, non-multilib-adjusted value will be used in multilibs.
2181 # As a side effect, we have to subst CFLAGS ourselves.
2182
2183
2184
2185 ac_ext=c
2186 ac_cpp='$CPP $CPPFLAGS'
2187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2190 if test -n "$ac_tool_prefix"; then
2191 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2192 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2193 echo "$as_me:$LINENO: checking for $ac_word" >&5
2194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2195 if test "${ac_cv_prog_CC+set}" = set; then
2196 echo $ECHO_N "(cached) $ECHO_C" >&6
2197 else
2198 if test -n "$CC"; then
2199 ac_cv_prog_CC="$CC" # Let the user override the test.
2200 else
2201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2202 for as_dir in $PATH
2203 do
2204 IFS=$as_save_IFS
2205 test -z "$as_dir" && as_dir=.
2206 for ac_exec_ext in '' $ac_executable_extensions; do
2207 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2208 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2210 break 2
2211 fi
2212 done
2213 done
2214
2215 fi
2216 fi
2217 CC=$ac_cv_prog_CC
2218 if test -n "$CC"; then
2219 echo "$as_me:$LINENO: result: $CC" >&5
2220 echo "${ECHO_T}$CC" >&6
2221 else
2222 echo "$as_me:$LINENO: result: no" >&5
2223 echo "${ECHO_T}no" >&6
2224 fi
2225
2226 fi
2227 if test -z "$ac_cv_prog_CC"; then
2228 ac_ct_CC=$CC
2229 # Extract the first word of "gcc", so it can be a program name with args.
2230 set dummy gcc; ac_word=$2
2231 echo "$as_me:$LINENO: checking for $ac_word" >&5
2232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2233 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2234 echo $ECHO_N "(cached) $ECHO_C" >&6
2235 else
2236 if test -n "$ac_ct_CC"; then
2237 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2238 else
2239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2240 for as_dir in $PATH
2241 do
2242 IFS=$as_save_IFS
2243 test -z "$as_dir" && as_dir=.
2244 for ac_exec_ext in '' $ac_executable_extensions; do
2245 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2246 ac_cv_prog_ac_ct_CC="gcc"
2247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2248 break 2
2249 fi
2250 done
2251 done
2252
2253 fi
2254 fi
2255 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2256 if test -n "$ac_ct_CC"; then
2257 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2258 echo "${ECHO_T}$ac_ct_CC" >&6
2259 else
2260 echo "$as_me:$LINENO: result: no" >&5
2261 echo "${ECHO_T}no" >&6
2262 fi
2263
2264 CC=$ac_ct_CC
2265 else
2266 CC="$ac_cv_prog_CC"
2267 fi
2268
2269 if test -z "$CC"; then
2270 if test -n "$ac_tool_prefix"; then
2271 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2272 set dummy ${ac_tool_prefix}cc; ac_word=$2
2273 echo "$as_me:$LINENO: checking for $ac_word" >&5
2274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2275 if test "${ac_cv_prog_CC+set}" = set; then
2276 echo $ECHO_N "(cached) $ECHO_C" >&6
2277 else
2278 if test -n "$CC"; then
2279 ac_cv_prog_CC="$CC" # Let the user override the test.
2280 else
2281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2282 for as_dir in $PATH
2283 do
2284 IFS=$as_save_IFS
2285 test -z "$as_dir" && as_dir=.
2286 for ac_exec_ext in '' $ac_executable_extensions; do
2287 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2288 ac_cv_prog_CC="${ac_tool_prefix}cc"
2289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2290 break 2
2291 fi
2292 done
2293 done
2294
2295 fi
2296 fi
2297 CC=$ac_cv_prog_CC
2298 if test -n "$CC"; then
2299 echo "$as_me:$LINENO: result: $CC" >&5
2300 echo "${ECHO_T}$CC" >&6
2301 else
2302 echo "$as_me:$LINENO: result: no" >&5
2303 echo "${ECHO_T}no" >&6
2304 fi
2305
2306 fi
2307 if test -z "$ac_cv_prog_CC"; then
2308 ac_ct_CC=$CC
2309 # Extract the first word of "cc", so it can be a program name with args.
2310 set dummy cc; ac_word=$2
2311 echo "$as_me:$LINENO: checking for $ac_word" >&5
2312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2313 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2314 echo $ECHO_N "(cached) $ECHO_C" >&6
2315 else
2316 if test -n "$ac_ct_CC"; then
2317 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2318 else
2319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2320 for as_dir in $PATH
2321 do
2322 IFS=$as_save_IFS
2323 test -z "$as_dir" && as_dir=.
2324 for ac_exec_ext in '' $ac_executable_extensions; do
2325 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2326 ac_cv_prog_ac_ct_CC="cc"
2327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2328 break 2
2329 fi
2330 done
2331 done
2332
2333 fi
2334 fi
2335 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2336 if test -n "$ac_ct_CC"; then
2337 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2338 echo "${ECHO_T}$ac_ct_CC" >&6
2339 else
2340 echo "$as_me:$LINENO: result: no" >&5
2341 echo "${ECHO_T}no" >&6
2342 fi
2343
2344 CC=$ac_ct_CC
2345 else
2346 CC="$ac_cv_prog_CC"
2347 fi
2348
2349 fi
2350 if test -z "$CC"; then
2351 # Extract the first word of "cc", so it can be a program name with args.
2352 set dummy cc; ac_word=$2
2353 echo "$as_me:$LINENO: checking for $ac_word" >&5
2354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2355 if test "${ac_cv_prog_CC+set}" = set; then
2356 echo $ECHO_N "(cached) $ECHO_C" >&6
2357 else
2358 if test -n "$CC"; then
2359 ac_cv_prog_CC="$CC" # Let the user override the test.
2360 else
2361 ac_prog_rejected=no
2362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2363 for as_dir in $PATH
2364 do
2365 IFS=$as_save_IFS
2366 test -z "$as_dir" && as_dir=.
2367 for ac_exec_ext in '' $ac_executable_extensions; do
2368 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2369 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2370 ac_prog_rejected=yes
2371 continue
2372 fi
2373 ac_cv_prog_CC="cc"
2374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2375 break 2
2376 fi
2377 done
2378 done
2379
2380 if test $ac_prog_rejected = yes; then
2381 # We found a bogon in the path, so make sure we never use it.
2382 set dummy $ac_cv_prog_CC
2383 shift
2384 if test $# != 0; then
2385 # We chose a different compiler from the bogus one.
2386 # However, it has the same basename, so the bogon will be chosen
2387 # first if we set CC to just the basename; use the full file name.
2388 shift
2389 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2390 fi
2391 fi
2392 fi
2393 fi
2394 CC=$ac_cv_prog_CC
2395 if test -n "$CC"; then
2396 echo "$as_me:$LINENO: result: $CC" >&5
2397 echo "${ECHO_T}$CC" >&6
2398 else
2399 echo "$as_me:$LINENO: result: no" >&5
2400 echo "${ECHO_T}no" >&6
2401 fi
2402
2403 fi
2404 if test -z "$CC"; then
2405 if test -n "$ac_tool_prefix"; then
2406 for ac_prog in cl
2407 do
2408 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2409 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2410 echo "$as_me:$LINENO: checking for $ac_word" >&5
2411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2412 if test "${ac_cv_prog_CC+set}" = set; then
2413 echo $ECHO_N "(cached) $ECHO_C" >&6
2414 else
2415 if test -n "$CC"; then
2416 ac_cv_prog_CC="$CC" # Let the user override the test.
2417 else
2418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2419 for as_dir in $PATH
2420 do
2421 IFS=$as_save_IFS
2422 test -z "$as_dir" && as_dir=.
2423 for ac_exec_ext in '' $ac_executable_extensions; do
2424 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2425 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2427 break 2
2428 fi
2429 done
2430 done
2431
2432 fi
2433 fi
2434 CC=$ac_cv_prog_CC
2435 if test -n "$CC"; then
2436 echo "$as_me:$LINENO: result: $CC" >&5
2437 echo "${ECHO_T}$CC" >&6
2438 else
2439 echo "$as_me:$LINENO: result: no" >&5
2440 echo "${ECHO_T}no" >&6
2441 fi
2442
2443 test -n "$CC" && break
2444 done
2445 fi
2446 if test -z "$CC"; then
2447 ac_ct_CC=$CC
2448 for ac_prog in cl
2449 do
2450 # Extract the first word of "$ac_prog", so it can be a program name with args.
2451 set dummy $ac_prog; ac_word=$2
2452 echo "$as_me:$LINENO: checking for $ac_word" >&5
2453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2454 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2455 echo $ECHO_N "(cached) $ECHO_C" >&6
2456 else
2457 if test -n "$ac_ct_CC"; then
2458 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2459 else
2460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2461 for as_dir in $PATH
2462 do
2463 IFS=$as_save_IFS
2464 test -z "$as_dir" && as_dir=.
2465 for ac_exec_ext in '' $ac_executable_extensions; do
2466 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2467 ac_cv_prog_ac_ct_CC="$ac_prog"
2468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2469 break 2
2470 fi
2471 done
2472 done
2473
2474 fi
2475 fi
2476 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2477 if test -n "$ac_ct_CC"; then
2478 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2479 echo "${ECHO_T}$ac_ct_CC" >&6
2480 else
2481 echo "$as_me:$LINENO: result: no" >&5
2482 echo "${ECHO_T}no" >&6
2483 fi
2484
2485 test -n "$ac_ct_CC" && break
2486 done
2487
2488 CC=$ac_ct_CC
2489 fi
2490
2491 fi
2492
2493
2494 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2495 See \`config.log' for more details." >&5
2496 echo "$as_me: error: no acceptable C compiler found in \$PATH
2497 See \`config.log' for more details." >&2;}
2498 { (exit 1); exit 1; }; }
2499
2500 # Provide some information about the compiler.
2501 echo "$as_me:$LINENO:" \
2502 "checking for C compiler version" >&5
2503 ac_compiler=`set X $ac_compile; echo $2`
2504 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2505 (eval $ac_compiler --version </dev/null >&5) 2>&5
2506 ac_status=$?
2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508 (exit $ac_status); }
2509 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2510 (eval $ac_compiler -v </dev/null >&5) 2>&5
2511 ac_status=$?
2512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513 (exit $ac_status); }
2514 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2515 (eval $ac_compiler -V </dev/null >&5) 2>&5
2516 ac_status=$?
2517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518 (exit $ac_status); }
2519
2520 cat >conftest.$ac_ext <<_ACEOF
2521 /* confdefs.h. */
2522 _ACEOF
2523 cat confdefs.h >>conftest.$ac_ext
2524 cat >>conftest.$ac_ext <<_ACEOF
2525 /* end confdefs.h. */
2526
2527 int
2528 main ()
2529 {
2530
2531 ;
2532 return 0;
2533 }
2534 _ACEOF
2535 ac_clean_files_save=$ac_clean_files
2536 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2537 # Try to create an executable without -o first, disregard a.out.
2538 # It will help us diagnose broken compilers, and finding out an intuition
2539 # of exeext.
2540 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2541 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2542 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2543 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2544 (eval $ac_link_default) 2>&5
2545 ac_status=$?
2546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547 (exit $ac_status); }; then
2548 # Find the output, starting from the most likely. This scheme is
2549 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2550 # resort.
2551
2552 # Be careful to initialize this variable, since it used to be cached.
2553 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2554 ac_cv_exeext=
2555 # b.out is created by i960 compilers.
2556 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2557 do
2558 test -f "$ac_file" || continue
2559 case $ac_file in
2560 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2561 ;;
2562 conftest.$ac_ext )
2563 # This is the source file.
2564 ;;
2565 [ab].out )
2566 # We found the default executable, but exeext='' is most
2567 # certainly right.
2568 break;;
2569 *.* )
2570 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2571 # FIXME: I believe we export ac_cv_exeext for Libtool,
2572 # but it would be cool to find out if it's true. Does anybody
2573 # maintain Libtool? --akim.
2574 export ac_cv_exeext
2575 break;;
2576 * )
2577 break;;
2578 esac
2579 done
2580 else
2581 echo "$as_me: failed program was:" >&5
2582 sed 's/^/| /' conftest.$ac_ext >&5
2583
2584 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2585 See \`config.log' for more details." >&5
2586 echo "$as_me: error: C compiler cannot create executables
2587 See \`config.log' for more details." >&2;}
2588 { (exit 77); exit 77; }; }
2589 fi
2590
2591 ac_exeext=$ac_cv_exeext
2592 echo "$as_me:$LINENO: result: $ac_file" >&5
2593 echo "${ECHO_T}$ac_file" >&6
2594
2595 # Check the compiler produces executables we can run. If not, either
2596 # the compiler is broken, or we cross compile.
2597 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2598 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2599 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2600 # If not cross compiling, check that we can run a simple program.
2601 if test "$cross_compiling" != yes; then
2602 if { ac_try='./$ac_file'
2603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2604 (eval $ac_try) 2>&5
2605 ac_status=$?
2606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607 (exit $ac_status); }; }; then
2608 cross_compiling=no
2609 else
2610 if test "$cross_compiling" = maybe; then
2611 cross_compiling=yes
2612 else
2613 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2614 If you meant to cross compile, use \`--host'.
2615 See \`config.log' for more details." >&5
2616 echo "$as_me: error: cannot run C compiled programs.
2617 If you meant to cross compile, use \`--host'.
2618 See \`config.log' for more details." >&2;}
2619 { (exit 1); exit 1; }; }
2620 fi
2621 fi
2622 fi
2623 echo "$as_me:$LINENO: result: yes" >&5
2624 echo "${ECHO_T}yes" >&6
2625
2626 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2627 ac_clean_files=$ac_clean_files_save
2628 # Check the compiler produces executables we can run. If not, either
2629 # the compiler is broken, or we cross compile.
2630 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2631 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2632 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2633 echo "${ECHO_T}$cross_compiling" >&6
2634
2635 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2636 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2638 (eval $ac_link) 2>&5
2639 ac_status=$?
2640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641 (exit $ac_status); }; then
2642 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2643 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2644 # work properly (i.e., refer to `conftest.exe'), while it won't with
2645 # `rm'.
2646 for ac_file in conftest.exe conftest conftest.*; do
2647 test -f "$ac_file" || continue
2648 case $ac_file in
2649 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2650 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2651 export ac_cv_exeext
2652 break;;
2653 * ) break;;
2654 esac
2655 done
2656 else
2657 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2658 See \`config.log' for more details." >&5
2659 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2660 See \`config.log' for more details." >&2;}
2661 { (exit 1); exit 1; }; }
2662 fi
2663
2664 rm -f conftest$ac_cv_exeext
2665 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2666 echo "${ECHO_T}$ac_cv_exeext" >&6
2667
2668 rm -f conftest.$ac_ext
2669 EXEEXT=$ac_cv_exeext
2670 ac_exeext=$EXEEXT
2671 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2672 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2673 if test "${ac_cv_objext+set}" = set; then
2674 echo $ECHO_N "(cached) $ECHO_C" >&6
2675 else
2676 cat >conftest.$ac_ext <<_ACEOF
2677 /* confdefs.h. */
2678 _ACEOF
2679 cat confdefs.h >>conftest.$ac_ext
2680 cat >>conftest.$ac_ext <<_ACEOF
2681 /* end confdefs.h. */
2682
2683 int
2684 main ()
2685 {
2686
2687 ;
2688 return 0;
2689 }
2690 _ACEOF
2691 rm -f conftest.o conftest.obj
2692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2693 (eval $ac_compile) 2>&5
2694 ac_status=$?
2695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696 (exit $ac_status); }; then
2697 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2698 case $ac_file in
2699 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2700 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2701 break;;
2702 esac
2703 done
2704 else
2705 echo "$as_me: failed program was:" >&5
2706 sed 's/^/| /' conftest.$ac_ext >&5
2707
2708 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2709 See \`config.log' for more details." >&5
2710 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2711 See \`config.log' for more details." >&2;}
2712 { (exit 1); exit 1; }; }
2713 fi
2714
2715 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2716 fi
2717 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2718 echo "${ECHO_T}$ac_cv_objext" >&6
2719 OBJEXT=$ac_cv_objext
2720 ac_objext=$OBJEXT
2721 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2722 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2723 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2724 echo $ECHO_N "(cached) $ECHO_C" >&6
2725 else
2726 cat >conftest.$ac_ext <<_ACEOF
2727 /* confdefs.h. */
2728 _ACEOF
2729 cat confdefs.h >>conftest.$ac_ext
2730 cat >>conftest.$ac_ext <<_ACEOF
2731 /* end confdefs.h. */
2732
2733 int
2734 main ()
2735 {
2736 #ifndef __GNUC__
2737 choke me
2738 #endif
2739
2740 ;
2741 return 0;
2742 }
2743 _ACEOF
2744 rm -f conftest.$ac_objext
2745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2746 (eval $ac_compile) 2>conftest.er1
2747 ac_status=$?
2748 grep -v '^ *+' conftest.er1 >conftest.err
2749 rm -f conftest.er1
2750 cat conftest.err >&5
2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); } &&
2753 { ac_try='test -z "$ac_c_werror_flag"
2754 || test ! -s conftest.err'
2755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2756 (eval $ac_try) 2>&5
2757 ac_status=$?
2758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759 (exit $ac_status); }; } &&
2760 { ac_try='test -s conftest.$ac_objext'
2761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2762 (eval $ac_try) 2>&5
2763 ac_status=$?
2764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765 (exit $ac_status); }; }; then
2766 ac_compiler_gnu=yes
2767 else
2768 echo "$as_me: failed program was:" >&5
2769 sed 's/^/| /' conftest.$ac_ext >&5
2770
2771 ac_compiler_gnu=no
2772 fi
2773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2774 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2775
2776 fi
2777 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2778 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2779 GCC=`test $ac_compiler_gnu = yes && echo yes`
2780 ac_test_CFLAGS=${CFLAGS+set}
2781 ac_save_CFLAGS=$CFLAGS
2782 CFLAGS="-g"
2783 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2784 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2785 if test "${ac_cv_prog_cc_g+set}" = set; then
2786 echo $ECHO_N "(cached) $ECHO_C" >&6
2787 else
2788 cat >conftest.$ac_ext <<_ACEOF
2789 /* confdefs.h. */
2790 _ACEOF
2791 cat confdefs.h >>conftest.$ac_ext
2792 cat >>conftest.$ac_ext <<_ACEOF
2793 /* end confdefs.h. */
2794
2795 int
2796 main ()
2797 {
2798
2799 ;
2800 return 0;
2801 }
2802 _ACEOF
2803 rm -f conftest.$ac_objext
2804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2805 (eval $ac_compile) 2>conftest.er1
2806 ac_status=$?
2807 grep -v '^ *+' conftest.er1 >conftest.err
2808 rm -f conftest.er1
2809 cat conftest.err >&5
2810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811 (exit $ac_status); } &&
2812 { ac_try='test -z "$ac_c_werror_flag"
2813 || test ! -s conftest.err'
2814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2815 (eval $ac_try) 2>&5
2816 ac_status=$?
2817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818 (exit $ac_status); }; } &&
2819 { ac_try='test -s conftest.$ac_objext'
2820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2821 (eval $ac_try) 2>&5
2822 ac_status=$?
2823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824 (exit $ac_status); }; }; then
2825 ac_cv_prog_cc_g=yes
2826 else
2827 echo "$as_me: failed program was:" >&5
2828 sed 's/^/| /' conftest.$ac_ext >&5
2829
2830 ac_cv_prog_cc_g=no
2831 fi
2832 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2833 fi
2834 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2835 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2836 if test "$ac_test_CFLAGS" = set; then
2837 CFLAGS=$ac_save_CFLAGS
2838 elif test $ac_cv_prog_cc_g = yes; then
2839 if test "$GCC" = yes; then
2840 CFLAGS="-g -O2"
2841 else
2842 CFLAGS="-g"
2843 fi
2844 else
2845 if test "$GCC" = yes; then
2846 CFLAGS="-O2"
2847 else
2848 CFLAGS=
2849 fi
2850 fi
2851 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2852 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2853 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2854 echo $ECHO_N "(cached) $ECHO_C" >&6
2855 else
2856 ac_cv_prog_cc_stdc=no
2857 ac_save_CC=$CC
2858 cat >conftest.$ac_ext <<_ACEOF
2859 /* confdefs.h. */
2860 _ACEOF
2861 cat confdefs.h >>conftest.$ac_ext
2862 cat >>conftest.$ac_ext <<_ACEOF
2863 /* end confdefs.h. */
2864 #include <stdarg.h>
2865 #include <stdio.h>
2866 #include <sys/types.h>
2867 #include <sys/stat.h>
2868 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2869 struct buf { int x; };
2870 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2871 static char *e (p, i)
2872 char **p;
2873 int i;
2874 {
2875 return p[i];
2876 }
2877 static char *f (char * (*g) (char **, int), char **p, ...)
2878 {
2879 char *s;
2880 va_list v;
2881 va_start (v,p);
2882 s = g (p, va_arg (v,int));
2883 va_end (v);
2884 return s;
2885 }
2886
2887 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2888 function prototypes and stuff, but not '\xHH' hex character constants.
2889 These don't provoke an error unfortunately, instead are silently treated
2890 as 'x'. The following induces an error, until -std1 is added to get
2891 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2892 array size at least. It's necessary to write '\x00'==0 to get something
2893 that's true only with -std1. */
2894 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2895
2896 int test (int i, double x);
2897 struct s1 {int (*f) (int a);};
2898 struct s2 {int (*f) (double a);};
2899 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2900 int argc;
2901 char **argv;
2902 int
2903 main ()
2904 {
2905 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2906 ;
2907 return 0;
2908 }
2909 _ACEOF
2910 # Don't try gcc -ansi; that turns off useful extensions and
2911 # breaks some systems' header files.
2912 # AIX -qlanglvl=ansi
2913 # Ultrix and OSF/1 -std1
2914 # HP-UX 10.20 and later -Ae
2915 # HP-UX older versions -Aa -D_HPUX_SOURCE
2916 # SVR4 -Xc -D__EXTENSIONS__
2917 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2918 do
2919 CC="$ac_save_CC $ac_arg"
2920 rm -f conftest.$ac_objext
2921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2922 (eval $ac_compile) 2>conftest.er1
2923 ac_status=$?
2924 grep -v '^ *+' conftest.er1 >conftest.err
2925 rm -f conftest.er1
2926 cat conftest.err >&5
2927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2928 (exit $ac_status); } &&
2929 { ac_try='test -z "$ac_c_werror_flag"
2930 || test ! -s conftest.err'
2931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2932 (eval $ac_try) 2>&5
2933 ac_status=$?
2934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935 (exit $ac_status); }; } &&
2936 { ac_try='test -s conftest.$ac_objext'
2937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2938 (eval $ac_try) 2>&5
2939 ac_status=$?
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); }; }; then
2942 ac_cv_prog_cc_stdc=$ac_arg
2943 break
2944 else
2945 echo "$as_me: failed program was:" >&5
2946 sed 's/^/| /' conftest.$ac_ext >&5
2947
2948 fi
2949 rm -f conftest.err conftest.$ac_objext
2950 done
2951 rm -f conftest.$ac_ext conftest.$ac_objext
2952 CC=$ac_save_CC
2953
2954 fi
2955
2956 case "x$ac_cv_prog_cc_stdc" in
2957 x|xno)
2958 echo "$as_me:$LINENO: result: none needed" >&5
2959 echo "${ECHO_T}none needed" >&6 ;;
2960 *)
2961 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2962 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2963 CC="$CC $ac_cv_prog_cc_stdc" ;;
2964 esac
2965
2966 # Some people use a C++ compiler to compile C. Since we use `exit',
2967 # in C++ we need to declare it. In case someone uses the same compiler
2968 # for both compiling C and C++ we need to have the C++ compiler decide
2969 # the declaration of exit, since it's the most demanding environment.
2970 cat >conftest.$ac_ext <<_ACEOF
2971 #ifndef __cplusplus
2972 choke me
2973 #endif
2974 _ACEOF
2975 rm -f conftest.$ac_objext
2976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2977 (eval $ac_compile) 2>conftest.er1
2978 ac_status=$?
2979 grep -v '^ *+' conftest.er1 >conftest.err
2980 rm -f conftest.er1
2981 cat conftest.err >&5
2982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983 (exit $ac_status); } &&
2984 { ac_try='test -z "$ac_c_werror_flag"
2985 || test ! -s conftest.err'
2986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2987 (eval $ac_try) 2>&5
2988 ac_status=$?
2989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990 (exit $ac_status); }; } &&
2991 { ac_try='test -s conftest.$ac_objext'
2992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2993 (eval $ac_try) 2>&5
2994 ac_status=$?
2995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996 (exit $ac_status); }; }; then
2997 for ac_declaration in \
2998 '' \
2999 'extern "C" void std::exit (int) throw (); using std::exit;' \
3000 'extern "C" void std::exit (int); using std::exit;' \
3001 'extern "C" void exit (int) throw ();' \
3002 'extern "C" void exit (int);' \
3003 'void exit (int);'
3004 do
3005 cat >conftest.$ac_ext <<_ACEOF
3006 /* confdefs.h. */
3007 _ACEOF
3008 cat confdefs.h >>conftest.$ac_ext
3009 cat >>conftest.$ac_ext <<_ACEOF
3010 /* end confdefs.h. */
3011 $ac_declaration
3012 #include <stdlib.h>
3013 int
3014 main ()
3015 {
3016 exit (42);
3017 ;
3018 return 0;
3019 }
3020 _ACEOF
3021 rm -f conftest.$ac_objext
3022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3023 (eval $ac_compile) 2>conftest.er1
3024 ac_status=$?
3025 grep -v '^ *+' conftest.er1 >conftest.err
3026 rm -f conftest.er1
3027 cat conftest.err >&5
3028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029 (exit $ac_status); } &&
3030 { ac_try='test -z "$ac_c_werror_flag"
3031 || test ! -s conftest.err'
3032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3033 (eval $ac_try) 2>&5
3034 ac_status=$?
3035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036 (exit $ac_status); }; } &&
3037 { ac_try='test -s conftest.$ac_objext'
3038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3039 (eval $ac_try) 2>&5
3040 ac_status=$?
3041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042 (exit $ac_status); }; }; then
3043 :
3044 else
3045 echo "$as_me: failed program was:" >&5
3046 sed 's/^/| /' conftest.$ac_ext >&5
3047
3048 continue
3049 fi
3050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3051 cat >conftest.$ac_ext <<_ACEOF
3052 /* confdefs.h. */
3053 _ACEOF
3054 cat confdefs.h >>conftest.$ac_ext
3055 cat >>conftest.$ac_ext <<_ACEOF
3056 /* end confdefs.h. */
3057 $ac_declaration
3058 int
3059 main ()
3060 {
3061 exit (42);
3062 ;
3063 return 0;
3064 }
3065 _ACEOF
3066 rm -f conftest.$ac_objext
3067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3068 (eval $ac_compile) 2>conftest.er1
3069 ac_status=$?
3070 grep -v '^ *+' conftest.er1 >conftest.err
3071 rm -f conftest.er1
3072 cat conftest.err >&5
3073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074 (exit $ac_status); } &&
3075 { ac_try='test -z "$ac_c_werror_flag"
3076 || test ! -s conftest.err'
3077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3078 (eval $ac_try) 2>&5
3079 ac_status=$?
3080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081 (exit $ac_status); }; } &&
3082 { ac_try='test -s conftest.$ac_objext'
3083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3084 (eval $ac_try) 2>&5
3085 ac_status=$?
3086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087 (exit $ac_status); }; }; then
3088 break
3089 else
3090 echo "$as_me: failed program was:" >&5
3091 sed 's/^/| /' conftest.$ac_ext >&5
3092
3093 fi
3094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3095 done
3096 rm -f conftest*
3097 if test -n "$ac_declaration"; then
3098 echo '#ifdef __cplusplus' >>confdefs.h
3099 echo $ac_declaration >>confdefs.h
3100 echo '#endif' >>confdefs.h
3101 fi
3102
3103 else
3104 echo "$as_me: failed program was:" >&5
3105 sed 's/^/| /' conftest.$ac_ext >&5
3106
3107 fi
3108 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3109 ac_ext=c
3110 ac_cpp='$CPP $CPPFLAGS'
3111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3114 DEPDIR="${am__leading_dot}deps"
3115
3116 ac_config_commands="$ac_config_commands depfiles"
3117
3118
3119 am_make=${MAKE-make}
3120 cat > confinc << 'END'
3121 am__doit:
3122 @echo done
3123 .PHONY: am__doit
3124 END
3125 # If we don't find an include directive, just comment out the code.
3126 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3127 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3128 am__include="#"
3129 am__quote=
3130 _am_result=none
3131 # First try GNU make style include.
3132 echo "include confinc" > confmf
3133 # We grep out `Entering directory' and `Leaving directory'
3134 # messages which can occur if `w' ends up in MAKEFLAGS.
3135 # In particular we don't look at `^make:' because GNU make might
3136 # be invoked under some other name (usually "gmake"), in which
3137 # case it prints its new name instead of `make'.
3138 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3139 am__include=include
3140 am__quote=
3141 _am_result=GNU
3142 fi
3143 # Now try BSD make style include.
3144 if test "$am__include" = "#"; then
3145 echo '.include "confinc"' > confmf
3146 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3147 am__include=.include
3148 am__quote="\""
3149 _am_result=BSD
3150 fi
3151 fi
3152
3153
3154 echo "$as_me:$LINENO: result: $_am_result" >&5
3155 echo "${ECHO_T}$_am_result" >&6
3156 rm -f confinc confmf
3157
3158 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3159 if test "${enable_dependency_tracking+set}" = set; then
3160 enableval="$enable_dependency_tracking"
3161
3162 fi;
3163 if test "x$enable_dependency_tracking" != xno; then
3164 am_depcomp="$ac_aux_dir/depcomp"
3165 AMDEPBACKSLASH='\'
3166 fi
3167
3168
3169 if test "x$enable_dependency_tracking" != xno; then
3170 AMDEP_TRUE=
3171 AMDEP_FALSE='#'
3172 else
3173 AMDEP_TRUE='#'
3174 AMDEP_FALSE=
3175 fi
3176
3177
3178
3179
3180 depcc="$CC" am_compiler_list=
3181
3182 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3183 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3184 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3185 echo $ECHO_N "(cached) $ECHO_C" >&6
3186 else
3187 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3188 # We make a subdir and do the tests there. Otherwise we can end up
3189 # making bogus files that we don't know about and never remove. For
3190 # instance it was reported that on HP-UX the gcc test will end up
3191 # making a dummy file named `D' -- because `-MD' means `put the output
3192 # in D'.
3193 mkdir conftest.dir
3194 # Copy depcomp to subdir because otherwise we won't find it if we're
3195 # using a relative directory.
3196 cp "$am_depcomp" conftest.dir
3197 cd conftest.dir
3198 # We will build objects and dependencies in a subdirectory because
3199 # it helps to detect inapplicable dependency modes. For instance
3200 # both Tru64's cc and ICC support -MD to output dependencies as a
3201 # side effect of compilation, but ICC will put the dependencies in
3202 # the current directory while Tru64 will put them in the object
3203 # directory.
3204 mkdir sub
3205
3206 am_cv_CC_dependencies_compiler_type=none
3207 if test "$am_compiler_list" = ""; then
3208 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3209 fi
3210 for depmode in $am_compiler_list; do
3211 # Setup a source with many dependencies, because some compilers
3212 # like to wrap large dependency lists on column 80 (with \), and
3213 # we should not choose a depcomp mode which is confused by this.
3214 #
3215 # We need to recreate these files for each test, as the compiler may
3216 # overwrite some of them when testing with obscure command lines.
3217 # This happens at least with the AIX C compiler.
3218 : > sub/conftest.c
3219 for i in 1 2 3 4 5 6; do
3220 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3221 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3222 # Solaris 8's {/usr,}/bin/sh.
3223 touch sub/conftst$i.h
3224 done
3225 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3226
3227 case $depmode in
3228 nosideeffect)
3229 # after this tag, mechanisms are not by side-effect, so they'll
3230 # only be used when explicitly requested
3231 if test "x$enable_dependency_tracking" = xyes; then
3232 continue
3233 else
3234 break
3235 fi
3236 ;;
3237 none) break ;;
3238 esac
3239 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3240 # mode. It turns out that the SunPro C++ compiler does not properly
3241 # handle `-M -o', and we need to detect this.
3242 if depmode=$depmode \
3243 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3244 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3245 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3246 >/dev/null 2>conftest.err &&
3247 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3248 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3249 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3250 # icc doesn't choke on unknown options, it will just issue warnings
3251 # or remarks (even with -Werror). So we grep stderr for any message
3252 # that says an option was ignored or not supported.
3253 # When given -MP, icc 7.0 and 7.1 complain thusly:
3254 # icc: Command line warning: ignoring option '-M'; no argument required
3255 # The diagnosis changed in icc 8.0:
3256 # icc: Command line remark: option '-MP' not supported
3257 if (grep 'ignoring option' conftest.err ||
3258 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3259 am_cv_CC_dependencies_compiler_type=$depmode
3260 break
3261 fi
3262 fi
3263 done
3264
3265 cd ..
3266 rm -rf conftest.dir
3267 else
3268 am_cv_CC_dependencies_compiler_type=none
3269 fi
3270
3271 fi
3272 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3273 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3274 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3275
3276
3277
3278 if
3279 test "x$enable_dependency_tracking" != xno \
3280 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3281 am__fastdepCC_TRUE=
3282 am__fastdepCC_FALSE='#'
3283 else
3284 am__fastdepCC_TRUE='#'
3285 am__fastdepCC_FALSE=
3286 fi
3287
3288
3289
3290
3291
3292
3293 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
3294 # in XCFLAGS. But we need them in CFLAGS during configury. So put them
3295 # in both places for now and restore CFLAGS at the end of config.
3296 save_CFLAGS="$CFLAGS"
3297
3298 # Add -Wall -Werror if we are using GCC.
3299 if test "x$GCC" = "xyes"; then
3300 XCFLAGS="$XCFLAGS -Wall -Werror"
3301 fi
3302
3303 # Find other programs we need.
3304 if test -n "$ac_tool_prefix"; then
3305 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3306 set dummy ${ac_tool_prefix}ar; ac_word=$2
3307 echo "$as_me:$LINENO: checking for $ac_word" >&5
3308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3309 if test "${ac_cv_prog_AR+set}" = set; then
3310 echo $ECHO_N "(cached) $ECHO_C" >&6
3311 else
3312 if test -n "$AR"; then
3313 ac_cv_prog_AR="$AR" # Let the user override the test.
3314 else
3315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3316 for as_dir in $PATH
3317 do
3318 IFS=$as_save_IFS
3319 test -z "$as_dir" && as_dir=.
3320 for ac_exec_ext in '' $ac_executable_extensions; do
3321 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3322 ac_cv_prog_AR="${ac_tool_prefix}ar"
3323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3324 break 2
3325 fi
3326 done
3327 done
3328
3329 fi
3330 fi
3331 AR=$ac_cv_prog_AR
3332 if test -n "$AR"; then
3333 echo "$as_me:$LINENO: result: $AR" >&5
3334 echo "${ECHO_T}$AR" >&6
3335 else
3336 echo "$as_me:$LINENO: result: no" >&5
3337 echo "${ECHO_T}no" >&6
3338 fi
3339
3340 fi
3341 if test -z "$ac_cv_prog_AR"; then
3342 ac_ct_AR=$AR
3343 # Extract the first word of "ar", so it can be a program name with args.
3344 set dummy ar; ac_word=$2
3345 echo "$as_me:$LINENO: checking for $ac_word" >&5
3346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3347 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3348 echo $ECHO_N "(cached) $ECHO_C" >&6
3349 else
3350 if test -n "$ac_ct_AR"; then
3351 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3352 else
3353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3354 for as_dir in $PATH
3355 do
3356 IFS=$as_save_IFS
3357 test -z "$as_dir" && as_dir=.
3358 for ac_exec_ext in '' $ac_executable_extensions; do
3359 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3360 ac_cv_prog_ac_ct_AR="ar"
3361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3362 break 2
3363 fi
3364 done
3365 done
3366
3367 fi
3368 fi
3369 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3370 if test -n "$ac_ct_AR"; then
3371 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3372 echo "${ECHO_T}$ac_ct_AR" >&6
3373 else
3374 echo "$as_me:$LINENO: result: no" >&5
3375 echo "${ECHO_T}no" >&6
3376 fi
3377
3378 AR=$ac_ct_AR
3379 else
3380 AR="$ac_cv_prog_AR"
3381 fi
3382
3383 if test -n "$ac_tool_prefix"; then
3384 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3385 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3386 echo "$as_me:$LINENO: checking for $ac_word" >&5
3387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3388 if test "${ac_cv_prog_RANLIB+set}" = set; then
3389 echo $ECHO_N "(cached) $ECHO_C" >&6
3390 else
3391 if test -n "$RANLIB"; then
3392 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3393 else
3394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3395 for as_dir in $PATH
3396 do
3397 IFS=$as_save_IFS
3398 test -z "$as_dir" && as_dir=.
3399 for ac_exec_ext in '' $ac_executable_extensions; do
3400 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3401 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3403 break 2
3404 fi
3405 done
3406 done
3407
3408 fi
3409 fi
3410 RANLIB=$ac_cv_prog_RANLIB
3411 if test -n "$RANLIB"; then
3412 echo "$as_me:$LINENO: result: $RANLIB" >&5
3413 echo "${ECHO_T}$RANLIB" >&6
3414 else
3415 echo "$as_me:$LINENO: result: no" >&5
3416 echo "${ECHO_T}no" >&6
3417 fi
3418
3419 fi
3420 if test -z "$ac_cv_prog_RANLIB"; then
3421 ac_ct_RANLIB=$RANLIB
3422 # Extract the first word of "ranlib", so it can be a program name with args.
3423 set dummy ranlib; ac_word=$2
3424 echo "$as_me:$LINENO: checking for $ac_word" >&5
3425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3426 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3427 echo $ECHO_N "(cached) $ECHO_C" >&6
3428 else
3429 if test -n "$ac_ct_RANLIB"; then
3430 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3431 else
3432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3433 for as_dir in $PATH
3434 do
3435 IFS=$as_save_IFS
3436 test -z "$as_dir" && as_dir=.
3437 for ac_exec_ext in '' $ac_executable_extensions; do
3438 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3439 ac_cv_prog_ac_ct_RANLIB="ranlib"
3440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3441 break 2
3442 fi
3443 done
3444 done
3445
3446 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error"
3447 fi
3448 fi
3449 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3450 if test -n "$ac_ct_RANLIB"; then
3451 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3452 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3453 else
3454 echo "$as_me:$LINENO: result: no" >&5
3455 echo "${ECHO_T}no" >&6
3456 fi
3457
3458 RANLIB=$ac_ct_RANLIB
3459 else
3460 RANLIB="$ac_cv_prog_RANLIB"
3461 fi
3462
3463 # Extract the first word of "perl", so it can be a program name with args.
3464 set dummy perl; ac_word=$2
3465 echo "$as_me:$LINENO: checking for $ac_word" >&5
3466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3467 if test "${ac_cv_path_PERL+set}" = set; then
3468 echo $ECHO_N "(cached) $ECHO_C" >&6
3469 else
3470 case $PERL in
3471 [\\/]* | ?:[\\/]*)
3472 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3473 ;;
3474 *)
3475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3476 for as_dir in $PATH
3477 do
3478 IFS=$as_save_IFS
3479 test -z "$as_dir" && as_dir=.
3480 for ac_exec_ext in '' $ac_executable_extensions; do
3481 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3482 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
3483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3484 break 2
3485 fi
3486 done
3487 done
3488
3489 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
3490 ;;
3491 esac
3492 fi
3493 PERL=$ac_cv_path_PERL
3494
3495 if test -n "$PERL"; then
3496 echo "$as_me:$LINENO: result: $PERL" >&5
3497 echo "${ECHO_T}$PERL" >&6
3498 else
3499 echo "$as_me:$LINENO: result: no" >&5
3500 echo "${ECHO_T}no" >&6
3501 fi
3502
3503 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3504 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3505 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3506 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3507 echo $ECHO_N "(cached) $ECHO_C" >&6
3508 else
3509 cat >conftest.make <<\_ACEOF
3510 all:
3511 @echo 'ac_maketemp="$(MAKE)"'
3512 _ACEOF
3513 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3514 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3515 if test -n "$ac_maketemp"; then
3516 eval ac_cv_prog_make_${ac_make}_set=yes
3517 else
3518 eval ac_cv_prog_make_${ac_make}_set=no
3519 fi
3520 rm -f conftest.make
3521 fi
3522 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3523 echo "$as_me:$LINENO: result: yes" >&5
3524 echo "${ECHO_T}yes" >&6
3525 SET_MAKE=
3526 else
3527 echo "$as_me:$LINENO: result: no" >&5
3528 echo "${ECHO_T}no" >&6
3529 SET_MAKE="MAKE=${MAKE-make}"
3530 fi
3531
3532 # Find a good install program. We prefer a C program (faster),
3533 # so one script is as good as another. But avoid the broken or
3534 # incompatible versions:
3535 # SysV /etc/install, /usr/sbin/install
3536 # SunOS /usr/etc/install
3537 # IRIX /sbin/install
3538 # AIX /bin/install
3539 # AmigaOS /C/install, which installs bootblocks on floppy discs
3540 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3541 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3542 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3543 # OS/2's system install, which has a completely different semantic
3544 # ./install, which can be erroneously created by make from ./install.sh.
3545 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3546 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3547 if test -z "$INSTALL"; then
3548 if test "${ac_cv_path_install+set}" = set; then
3549 echo $ECHO_N "(cached) $ECHO_C" >&6
3550 else
3551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3552 for as_dir in $PATH
3553 do
3554 IFS=$as_save_IFS
3555 test -z "$as_dir" && as_dir=.
3556 # Account for people who put trailing slashes in PATH elements.
3557 case $as_dir/ in
3558 ./ | .// | /cC/* | \
3559 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3560 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3561 /usr/ucb/* ) ;;
3562 *)
3563 # OSF1 and SCO ODT 3.0 have their own names for install.
3564 # Don't use installbsd from OSF since it installs stuff as root
3565 # by default.
3566 for ac_prog in ginstall scoinst install; do
3567 for ac_exec_ext in '' $ac_executable_extensions; do
3568 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3569 if test $ac_prog = install &&
3570 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3571 # AIX install. It has an incompatible calling convention.
3572 :
3573 elif test $ac_prog = install &&
3574 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3575 # program-specific install script used by HP pwplus--don't use.
3576 :
3577 else
3578 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3579 break 3
3580 fi
3581 fi
3582 done
3583 done
3584 ;;
3585 esac
3586 done
3587
3588
3589 fi
3590 if test "${ac_cv_path_install+set}" = set; then
3591 INSTALL=$ac_cv_path_install
3592 else
3593 # As a last resort, use the slow shell script. We don't cache a
3594 # path for INSTALL within a source directory, because that will
3595 # break other packages using the cache if that directory is
3596 # removed, or if the path is relative.
3597 INSTALL=$ac_install_sh
3598 fi
3599 fi
3600 echo "$as_me:$LINENO: result: $INSTALL" >&5
3601 echo "${ECHO_T}$INSTALL" >&6
3602
3603 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3604 # It thinks the first close brace ends the variable substitution.
3605 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3606
3607 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3608
3609 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3610
3611
3612 # See if makeinfo has been installed and is modern enough
3613 # that we can use it.
3614
3615 # Extract the first word of "makeinfo", so it can be a program name with args.
3616 set dummy makeinfo; ac_word=$2
3617 echo "$as_me:$LINENO: checking for $ac_word" >&5
3618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3619 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
3620 echo $ECHO_N "(cached) $ECHO_C" >&6
3621 else
3622 if test -n "$MAKEINFO"; then
3623 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3624 else
3625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3626 for as_dir in $PATH
3627 do
3628 IFS=$as_save_IFS
3629 test -z "$as_dir" && as_dir=.
3630 for ac_exec_ext in '' $ac_executable_extensions; do
3631 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3632 ac_cv_prog_MAKEINFO="makeinfo"
3633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3634 break 2
3635 fi
3636 done
3637 done
3638
3639 fi
3640 fi
3641 MAKEINFO=$ac_cv_prog_MAKEINFO
3642 if test -n "$MAKEINFO"; then
3643 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
3644 echo "${ECHO_T}$MAKEINFO" >&6
3645 else
3646 echo "$as_me:$LINENO: result: no" >&5
3647 echo "${ECHO_T}no" >&6
3648 fi
3649
3650 if test -n "$MAKEINFO"; then
3651 # Found it, now check the version.
3652 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
3653 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
3654 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
3655 echo $ECHO_N "(cached) $ECHO_C" >&6
3656 else
3657 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
3658 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
3659
3660 case $ac_prog_version in
3661 '') gcc_cv_prog_makeinfo_modern=no;;
3662 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
3663 *) gcc_cv_prog_makeinfo_modern=no;;
3664 esac
3665
3666 fi
3667 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
3668 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
3669 else
3670 gcc_cv_prog_makeinfo_modern=no
3671 fi
3672 if test $gcc_cv_prog_makeinfo_modern = no; then
3673 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
3674 fi
3675
3676
3677
3678 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
3679 BUILD_INFO_TRUE=
3680 BUILD_INFO_FALSE='#'
3681 else
3682 BUILD_INFO_TRUE='#'
3683 BUILD_INFO_FALSE=
3684 fi
3685
3686
3687
3688 # Configure libtool
3689
3690
3691 macro_version='2.1a'
3692 macro_revision='1.2435'
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705 ltmain="$ac_aux_dir/ltmain.sh"
3706
3707 # Set options
3708
3709 enable_dlopen=no
3710
3711
3712 enable_win32_dll=no
3713
3714
3715 # Check whether --enable-shared or --disable-shared was given.
3716 if test "${enable_shared+set}" = set; then
3717 enableval="$enable_shared"
3718 p=${PACKAGE-default}
3719 case $enableval in
3720 yes) enable_shared=yes ;;
3721 no) enable_shared=no ;;
3722 *)
3723 enable_shared=no
3724 # Look at the argument we got. We use all the common list separators.
3725 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3726 for pkg in $enableval; do
3727 IFS="$lt_save_ifs"
3728 if test "X$pkg" = "X$p"; then
3729 enable_shared=yes
3730 fi
3731 done
3732 IFS="$lt_save_ifs"
3733 ;;
3734 esac
3735 else
3736 enable_shared=yes
3737 fi;
3738
3739
3740
3741
3742
3743
3744
3745
3746 # Check whether --enable-static or --disable-static was given.
3747 if test "${enable_static+set}" = set; then
3748 enableval="$enable_static"
3749 p=${PACKAGE-default}
3750 case $enableval in
3751 yes) enable_static=yes ;;
3752 no) enable_static=no ;;
3753 *)
3754 enable_static=no
3755 # Look at the argument we got. We use all the common list separators.
3756 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3757 for pkg in $enableval; do
3758 IFS="$lt_save_ifs"
3759 if test "X$pkg" = "X$p"; then
3760 enable_static=yes
3761 fi
3762 done
3763 IFS="$lt_save_ifs"
3764 ;;
3765 esac
3766 else
3767 enable_static=yes
3768 fi;
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778 # Check whether --with-pic or --without-pic was given.
3779 if test "${with_pic+set}" = set; then
3780 withval="$with_pic"
3781 pic_mode="$withval"
3782 else
3783 pic_mode=default
3784 fi;
3785
3786 test -z "$pic_mode" && pic_mode=default
3787
3788
3789
3790
3791
3792
3793
3794 # Check whether --enable-fast-install or --disable-fast-install was given.
3795 if test "${enable_fast_install+set}" = set; then
3796 enableval="$enable_fast_install"
3797 p=${PACKAGE-default}
3798 case $enableval in
3799 yes) enable_fast_install=yes ;;
3800 no) enable_fast_install=no ;;
3801 *)
3802 enable_fast_install=no
3803 # Look at the argument we got. We use all the common list separators.
3804 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3805 for pkg in $enableval; do
3806 IFS="$lt_save_ifs"
3807 if test "X$pkg" = "X$p"; then
3808 enable_fast_install=yes
3809 fi
3810 done
3811 IFS="$lt_save_ifs"
3812 ;;
3813 esac
3814 else
3815 enable_fast_install=yes
3816 fi;
3817
3818
3819
3820
3821
3822
3823
3824
3825 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3826 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3827 if test "${lt_cv_path_SED+set}" = set; then
3828 echo $ECHO_N "(cached) $ECHO_C" >&6
3829 else
3830 # Loop through the user's path and test for sed and gsed.
3831 # Then use that list of sed's as ones to test for truncation.
3832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3833 for as_dir in $PATH
3834 do
3835 IFS=$as_save_IFS
3836 test -z "$as_dir" && as_dir=.
3837 for lt_ac_prog in sed gsed; do
3838 for ac_exec_ext in '' $ac_executable_extensions; do
3839 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3840 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3841 fi
3842 done
3843 done
3844 done
3845 IFS=$as_save_IFS
3846 lt_ac_max=0
3847 lt_ac_count=0
3848 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3849 # along with /bin/sed that truncates output.
3850 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3851 test ! -f $lt_ac_sed && continue
3852 cat /dev/null > conftest.in
3853 lt_ac_count=0
3854 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3855 # Check for GNU sed and select it if it is found.
3856 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3857 lt_cv_path_SED=$lt_ac_sed
3858 break
3859 fi
3860 while true; do
3861 cat conftest.in conftest.in >conftest.tmp
3862 mv conftest.tmp conftest.in
3863 cp conftest.in conftest.nl
3864 echo >>conftest.nl
3865 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3866 cmp -s conftest.out conftest.nl || break
3867 # 10000 chars as input seems more than enough
3868 test $lt_ac_count -gt 10 && break
3869 lt_ac_count=`expr $lt_ac_count + 1`
3870 if test $lt_ac_count -gt $lt_ac_max; then
3871 lt_ac_max=$lt_ac_count
3872 lt_cv_path_SED=$lt_ac_sed
3873 fi
3874 done
3875 done
3876
3877 fi
3878
3879 SED=$lt_cv_path_SED
3880
3881 echo "$as_me:$LINENO: result: $SED" >&5
3882 echo "${ECHO_T}$SED" >&6
3883
3884 test -z "$SED" && SED=sed
3885 Xsed="$SED -e 1s/^X//"
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897 echo "$as_me:$LINENO: checking for egrep" >&5
3898 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3899 if test "${ac_cv_prog_egrep+set}" = set; then
3900 echo $ECHO_N "(cached) $ECHO_C" >&6
3901 else
3902 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3903 then ac_cv_prog_egrep='grep -E'
3904 else ac_cv_prog_egrep='egrep'
3905 fi
3906 fi
3907 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3908 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3909 EGREP=$ac_cv_prog_egrep
3910
3911
3912 echo "$as_me:$LINENO: checking for fgrep" >&5
3913 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
3914 if test "${ac_cv_prog_fgrep+set}" = set; then
3915 echo $ECHO_N "(cached) $ECHO_C" >&6
3916 else
3917 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
3918 then ac_cv_prog_fgrep='grep -F'
3919 else ac_cv_prog_fgrep='fgrep'
3920 fi
3921 fi
3922 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
3923 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
3924 FGREP=$ac_cv_prog_fgrep
3925
3926
3927 test -z "$GREP" && GREP=grep
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3948 if test "${with_gnu_ld+set}" = set; then
3949 withval="$with_gnu_ld"
3950 test "$withval" = no || with_gnu_ld=yes
3951 else
3952 with_gnu_ld=no
3953 fi;
3954 ac_prog=ld
3955 if test "$GCC" = yes; then
3956 # Check if gcc -print-prog-name=ld gives a path.
3957 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3958 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3959 case $host in
3960 *-*-mingw*)
3961 # gcc leaves a trailing carriage return which upsets mingw
3962 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3963 *)
3964 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3965 esac
3966 case $ac_prog in
3967 # Accept absolute paths.
3968 [\\/]* | ?:[\\/]*)
3969 re_direlt='/[^/][^/]*/\.\./'
3970 # Canonicalize the pathname of ld
3971 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3972 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3973 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3974 done
3975 test -z "$LD" && LD="$ac_prog"
3976 ;;
3977 "")
3978 # If it fails, then pretend we aren't using GCC.
3979 ac_prog=ld
3980 ;;
3981 *)
3982 # If it is relative, then search for the first ld in PATH.
3983 with_gnu_ld=unknown
3984 ;;
3985 esac
3986 elif test "$with_gnu_ld" = yes; then
3987 echo "$as_me:$LINENO: checking for GNU ld" >&5
3988 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3989 else
3990 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3991 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3992 fi
3993 if test "${lt_cv_path_LD+set}" = set; then
3994 echo $ECHO_N "(cached) $ECHO_C" >&6
3995 else
3996 if test -z "$LD"; then
3997 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3998 for ac_dir in $PATH; do
3999 IFS="$lt_save_ifs"
4000 test -z "$ac_dir" && ac_dir=.
4001 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4002 lt_cv_path_LD="$ac_dir/$ac_prog"
4003 # Check to see if the program is GNU ld. I'd rather use --version,
4004 # but apparently some variants of GNU ld only accept -v.
4005 # Break only if it was the GNU/non-GNU ld that we prefer.
4006 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4007 *GNU* | *'with BFD'*)
4008 test "$with_gnu_ld" != no && break
4009 ;;
4010 *)
4011 test "$with_gnu_ld" != yes && break
4012 ;;
4013 esac
4014 fi
4015 done
4016 IFS="$lt_save_ifs"
4017 else
4018 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4019 fi
4020 fi
4021
4022 LD="$lt_cv_path_LD"
4023 if test -n "$LD"; then
4024 echo "$as_me:$LINENO: result: $LD" >&5
4025 echo "${ECHO_T}$LD" >&6
4026 else
4027 echo "$as_me:$LINENO: result: no" >&5
4028 echo "${ECHO_T}no" >&6
4029 fi
4030 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4031 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4032 { (exit 1); exit 1; }; }
4033 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4034 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4035 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4036 echo $ECHO_N "(cached) $ECHO_C" >&6
4037 else
4038 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4039 case `$LD -v 2>&1 </dev/null` in
4040 *GNU* | *'with BFD'*)
4041 lt_cv_prog_gnu_ld=yes
4042 ;;
4043 *)
4044 lt_cv_prog_gnu_ld=no
4045 ;;
4046 esac
4047 fi
4048 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4049 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4050 with_gnu_ld=$lt_cv_prog_gnu_ld
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4062 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
4063 if test "${lt_cv_path_NM+set}" = set; then
4064 echo $ECHO_N "(cached) $ECHO_C" >&6
4065 else
4066 if test -n "$NM"; then
4067 # Let the user override the test.
4068 lt_cv_path_NM="$NM"
4069 else
4070 lt_nm_to_check="${ac_tool_prefix}nm"
4071 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4072 lt_nm_to_check="$lt_nm_to_check nm"
4073 fi
4074 for lt_tmp_nm in $lt_nm_to_check; do
4075 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4076 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4077 IFS="$lt_save_ifs"
4078 test -z "$ac_dir" && ac_dir=.
4079 tmp_nm="$ac_dir/$lt_tmp_nm"
4080 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4081 # Check to see if the nm accepts a BSD-compat flag.
4082 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4083 # nm: unknown option "B" ignored
4084 # Tru64's nm complains that /dev/null is an invalid object file
4085 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4086 */dev/null* | *'Invalid file or object type'*)
4087 lt_cv_path_NM="$tmp_nm -B"
4088 break
4089 ;;
4090 *)
4091 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4092 */dev/null*)
4093 lt_cv_path_NM="$tmp_nm -p"
4094 break
4095 ;;
4096 *)
4097 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4098 continue # so that we can try to find one that supports BSD flags
4099 ;;
4100 esac
4101 ;;
4102 esac
4103 fi
4104 done
4105 IFS="$lt_save_ifs"
4106 done
4107 : ${lt_cv_path_NM=no}
4108 fi
4109 fi
4110 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4111 echo "${ECHO_T}$lt_cv_path_NM" >&6
4112 if test "$lt_cv_path_NM" != "no"; then
4113 NM="$lt_cv_path_NM"
4114 else
4115 # Didn't find any BSD compatible name lister, look for dumpbin.
4116 if test -n "$ac_tool_prefix"; then
4117 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4118 do
4119 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4120 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4121 echo "$as_me:$LINENO: checking for $ac_word" >&5
4122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4123 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4124 echo $ECHO_N "(cached) $ECHO_C" >&6
4125 else
4126 if test -n "$DUMPBIN"; then
4127 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4128 else
4129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4130 for as_dir in $PATH
4131 do
4132 IFS=$as_save_IFS
4133 test -z "$as_dir" && as_dir=.
4134 for ac_exec_ext in '' $ac_executable_extensions; do
4135 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4136 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4138 break 2
4139 fi
4140 done
4141 done
4142
4143 fi
4144 fi
4145 DUMPBIN=$ac_cv_prog_DUMPBIN
4146 if test -n "$DUMPBIN"; then
4147 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4148 echo "${ECHO_T}$DUMPBIN" >&6
4149 else
4150 echo "$as_me:$LINENO: result: no" >&5
4151 echo "${ECHO_T}no" >&6
4152 fi
4153
4154 test -n "$DUMPBIN" && break
4155 done
4156 fi
4157 if test -z "$DUMPBIN"; then
4158 ac_ct_DUMPBIN=$DUMPBIN
4159 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4160 do
4161 # Extract the first word of "$ac_prog", so it can be a program name with args.
4162 set dummy $ac_prog; ac_word=$2
4163 echo "$as_me:$LINENO: checking for $ac_word" >&5
4164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4165 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4166 echo $ECHO_N "(cached) $ECHO_C" >&6
4167 else
4168 if test -n "$ac_ct_DUMPBIN"; then
4169 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4170 else
4171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4172 for as_dir in $PATH
4173 do
4174 IFS=$as_save_IFS
4175 test -z "$as_dir" && as_dir=.
4176 for ac_exec_ext in '' $ac_executable_extensions; do
4177 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4178 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4180 break 2
4181 fi
4182 done
4183 done
4184
4185 fi
4186 fi
4187 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4188 if test -n "$ac_ct_DUMPBIN"; then
4189 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4190 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4191 else
4192 echo "$as_me:$LINENO: result: no" >&5
4193 echo "${ECHO_T}no" >&6
4194 fi
4195
4196 test -n "$ac_ct_DUMPBIN" && break
4197 done
4198 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
4199
4200 DUMPBIN=$ac_ct_DUMPBIN
4201 fi
4202
4203
4204 if test "$DUMPBIN" != ":"; then
4205 NM="$DUMPBIN"
4206 fi
4207 fi
4208 test -z "$NM" && NM=nm
4209
4210
4211
4212
4213
4214
4215 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4216 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4217 if test "${lt_cv_nm_interface+set}" = set; then
4218 echo $ECHO_N "(cached) $ECHO_C" >&6
4219 else
4220 lt_cv_nm_interface="BSD nm"
4221 echo "int some_variable = 0;" > conftest.$ac_ext
4222 (eval echo "\"\$as_me:4242: $ac_compile\"" >&5)
4223 (eval "$ac_compile" 2>conftest.err)
4224 cat conftest.err >&5
4225 (eval echo "\"\$as_me:4245: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4226 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4227 cat conftest.err >&5
4228 (eval echo "\"\$as_me:4248: output\"" >&5)
4229 cat conftest.out >&5
4230 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4231 lt_cv_nm_interface="MS dumpbin"
4232 fi
4233 rm -f conftest*
4234 fi
4235 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4236 echo "${ECHO_T}$lt_cv_nm_interface" >&6
4237
4238 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4239 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4240 LN_S=$as_ln_s
4241 if test "$LN_S" = "ln -s"; then
4242 echo "$as_me:$LINENO: result: yes" >&5
4243 echo "${ECHO_T}yes" >&6
4244 else
4245 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4246 echo "${ECHO_T}no, using $LN_S" >&6
4247 fi
4248
4249 # find the maximum length of command line arguments
4250 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4251 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4252 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4253 echo $ECHO_N "(cached) $ECHO_C" >&6
4254 else
4255 i=0
4256 teststring="ABCD"
4257
4258 case $build_os in
4259 msdosdjgpp*)
4260 # On DJGPP, this test can blow up pretty badly due to problems in libc
4261 # (any single argument exceeding 2000 bytes causes a buffer overrun
4262 # during glob expansion). Even if it were fixed, the result of this
4263 # check would be larger than it should be.
4264 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4265 ;;
4266
4267 gnu*)
4268 # Under GNU Hurd, this test is not required because there is
4269 # no limit to the length of command line arguments.
4270 # Libtool will interpret -1 as no limit whatsoever
4271 lt_cv_sys_max_cmd_len=-1;
4272 ;;
4273
4274 cygwin* | mingw*)
4275 # On Win9x/ME, this test blows up -- it succeeds, but takes
4276 # about 5 minutes as the teststring grows exponentially.
4277 # Worse, since 9x/ME are not pre-emptively multitasking,
4278 # you end up with a "frozen" computer, even though with patience
4279 # the test eventually succeeds (with a max line length of 256k).
4280 # Instead, let's just punt: use the minimum linelength reported by
4281 # all of the supported platforms: 8192 (on NT/2K/XP).
4282 lt_cv_sys_max_cmd_len=8192;
4283 ;;
4284
4285 amigaos*)
4286 # On AmigaOS with pdksh, this test takes hours, literally.
4287 # So we just punt and use a minimum line length of 8192.
4288 lt_cv_sys_max_cmd_len=8192;
4289 ;;
4290
4291 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4292 # This has been around since 386BSD, at least. Likely further.
4293 if test -x /sbin/sysctl; then
4294 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4295 elif test -x /usr/sbin/sysctl; then
4296 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4297 else
4298 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4299 fi
4300 # And add a safety zone
4301 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4302 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4303 ;;
4304
4305 interix*)
4306 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4307 lt_cv_sys_max_cmd_len=196608
4308 ;;
4309
4310 osf*)
4311 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4312 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4313 # nice to cause kernel panics so lets avoid the loop below.
4314 # First set a reasonable default.
4315 lt_cv_sys_max_cmd_len=16384
4316 #
4317 if test -x /sbin/sysconfig; then
4318 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4319 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4320 esac
4321 fi
4322 ;;
4323 sco3.2v5*)
4324 lt_cv_sys_max_cmd_len=102400
4325 ;;
4326 sysv5* | sco5v6* | sysv4.2uw2*)
4327 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4328 if test -n "$kargmax"; then
4329 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4330 else
4331 lt_cv_sys_max_cmd_len=32768
4332 fi
4333 ;;
4334 *)
4335 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
4336 if test -n $lt_cv_sys_max_cmd_len; then
4337 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4338 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4339 else
4340 # Make teststring a little bigger before we do anything with it.
4341 # a 1K string should be a reasonable start.
4342 for i in 1 2 3 4 5 6 7 8 ; do
4343 teststring=$teststring$teststring
4344 done
4345 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4346 # If test is not a shell built-in, we'll probably end up computing a
4347 # maximum length that is only half of the actual maximum length, but
4348 # we can't tell.
4349 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4350 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4351 test $i != 17 # 1/2 MB should be enough
4352 do
4353 i=`expr $i + 1`
4354 teststring=$teststring$teststring
4355 done
4356 # Only check the string length outside the loop.
4357 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4358 teststring=
4359 # Add a significant safety factor because C++ compilers can tack on
4360 # massive amounts of additional arguments before passing them to the
4361 # linker. It appears as though 1/2 is a usable value.
4362 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4363 fi
4364 ;;
4365 esac
4366
4367 fi
4368
4369 if test -n $lt_cv_sys_max_cmd_len ; then
4370 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4371 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4372 else
4373 echo "$as_me:$LINENO: result: none" >&5
4374 echo "${ECHO_T}none" >&6
4375 fi
4376 max_cmd_len=$lt_cv_sys_max_cmd_len
4377
4378
4379
4380
4381
4382
4383
4384 : ${CP="cp -f"}
4385 : ${MV="mv -f"}
4386 : ${RM="rm -f"}
4387
4388 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4389 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4390 # Try some XSI features
4391 xsi_shell=no
4392 ( _lt_dummy="a/b/c"
4393 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4394 = c,a/b,, ) >/dev/null 2>&1 \
4395 && xsi_shell=yes
4396 echo "$as_me:$LINENO: result: $xsi_shell" >&5
4397 echo "${ECHO_T}$xsi_shell" >&6
4398
4399
4400 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4401 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4402 lt_shell_append=no
4403 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4404 >/dev/null 2>&1 \
4405 && lt_shell_append=yes
4406 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4407 echo "${ECHO_T}$lt_shell_append" >&6
4408
4409
4410 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4411 lt_unset=unset
4412 else
4413 lt_unset=false
4414 fi
4415
4416
4417
4418
4419
4420 # test EBCDIC or ASCII
4421 case `echo X|tr X '\101'` in
4422 A) # ASCII based system
4423 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4424 lt_SP2NL='tr \040 \012'
4425 lt_NL2SP='tr \015\012 \040\040'
4426 ;;
4427 *) # EBCDIC based system
4428 lt_SP2NL='tr \100 \n'
4429 lt_NL2SP='tr \r\n \100\100'
4430 ;;
4431 esac
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4442 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4443 if test "${lt_cv_ld_reload_flag+set}" = set; then
4444 echo $ECHO_N "(cached) $ECHO_C" >&6
4445 else
4446 lt_cv_ld_reload_flag='-r'
4447 fi
4448 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4449 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4450 reload_flag=$lt_cv_ld_reload_flag
4451 case $reload_flag in
4452 "" | " "*) ;;
4453 *) reload_flag=" $reload_flag" ;;
4454 esac
4455 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4456 case $host_os in
4457 darwin*)
4458 if test "$GCC" = yes; then
4459 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4460 else
4461 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4462 fi
4463 ;;
4464 esac
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4476 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4477 if test "${lt_cv_deplibs_check_method+set}" = set; then
4478 echo $ECHO_N "(cached) $ECHO_C" >&6
4479 else
4480 lt_cv_file_magic_cmd='$MAGIC_CMD'
4481 lt_cv_file_magic_test_file=
4482 lt_cv_deplibs_check_method='unknown'
4483 # Need to set the preceding variable on all platforms that support
4484 # interlibrary dependencies.
4485 # 'none' -- dependencies not supported.
4486 # `unknown' -- same as none, but documents that we really don't know.
4487 # 'pass_all' -- all dependencies passed with no checks.
4488 # 'test_compile' -- check by making test program.
4489 # 'file_magic [[regex]]' -- check by looking for files in library path
4490 # which responds to the $file_magic_cmd with a given extended regex.
4491 # If you have `file' or equivalent on your system and you're not sure
4492 # whether `pass_all' will *always* work, you probably want this one.
4493
4494 case $host_os in
4495 aix[4-9]*)
4496 lt_cv_deplibs_check_method=pass_all
4497 ;;
4498
4499 beos*)
4500 lt_cv_deplibs_check_method=pass_all
4501 ;;
4502
4503 bsdi[45]*)
4504 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4505 lt_cv_file_magic_cmd='/usr/bin/file -L'
4506 lt_cv_file_magic_test_file=/shlib/libc.so
4507 ;;
4508
4509 cygwin*)
4510 # func_win32_libid is a shell function defined in ltmain.sh
4511 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4512 lt_cv_file_magic_cmd='func_win32_libid'
4513 ;;
4514
4515 mingw* | pw32*)
4516 # Base MSYS/MinGW do not provide the 'file' command needed by
4517 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4518 # unless we find 'file', for example because we are cross-compiling.
4519 if ( file / ) >/dev/null 2>&1; then
4520 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4521 lt_cv_file_magic_cmd='func_win32_libid'
4522 else
4523 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4524 lt_cv_file_magic_cmd='$OBJDUMP -f'
4525 fi
4526 ;;
4527
4528 darwin* | rhapsody*)
4529 lt_cv_deplibs_check_method=pass_all
4530 ;;
4531
4532 freebsd* | dragonfly*)
4533 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4534 case $host_cpu in
4535 i*86 )
4536 # Not sure whether the presence of OpenBSD here was a mistake.
4537 # Let's accept both of them until this is cleared up.
4538 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4539 lt_cv_file_magic_cmd=/usr/bin/file
4540 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4541 ;;
4542 esac
4543 else
4544 lt_cv_deplibs_check_method=pass_all
4545 fi
4546 ;;
4547
4548 gnu*)
4549 lt_cv_deplibs_check_method=pass_all
4550 ;;
4551
4552 hpux10.20* | hpux11*)
4553 lt_cv_file_magic_cmd=/usr/bin/file
4554 case $host_cpu in
4555 ia64*)
4556 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4557 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4558 ;;
4559 hppa*64*)
4560 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]'
4561 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4562 ;;
4563 *)
4564 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4565 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4566 ;;
4567 esac
4568 ;;
4569
4570 interix[3-9]*)
4571 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4572 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4573 ;;
4574
4575 irix5* | irix6* | nonstopux*)
4576 case $LD in
4577 *-32|*"-32 ") libmagic=32-bit;;
4578 *-n32|*"-n32 ") libmagic=N32;;
4579 *-64|*"-64 ") libmagic=64-bit;;
4580 *) libmagic=never-match;;
4581 esac
4582 lt_cv_deplibs_check_method=pass_all
4583 ;;
4584
4585 # This must be Linux ELF.
4586 linux* | k*bsd*-gnu)
4587 lt_cv_deplibs_check_method=pass_all
4588 ;;
4589
4590 netbsd*)
4591 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4592 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4593 else
4594 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4595 fi
4596 ;;
4597
4598 newos6*)
4599 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4600 lt_cv_file_magic_cmd=/usr/bin/file
4601 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4602 ;;
4603
4604 *nto* | *qnx*)
4605 lt_cv_deplibs_check_method=pass_all
4606 ;;
4607
4608 openbsd*)
4609 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4610 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4611 else
4612 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4613 fi
4614 ;;
4615
4616 osf3* | osf4* | osf5*)
4617 lt_cv_deplibs_check_method=pass_all
4618 ;;
4619
4620 rdos*)
4621 lt_cv_deplibs_check_method=pass_all
4622 ;;
4623
4624 solaris*)
4625 lt_cv_deplibs_check_method=pass_all
4626 ;;
4627
4628 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4629 lt_cv_deplibs_check_method=pass_all
4630 ;;
4631
4632 sysv4 | sysv4.3*)
4633 case $host_vendor in
4634 motorola)
4635 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]'
4636 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4637 ;;
4638 ncr)
4639 lt_cv_deplibs_check_method=pass_all
4640 ;;
4641 sequent)
4642 lt_cv_file_magic_cmd='/bin/file'
4643 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4644 ;;
4645 sni)
4646 lt_cv_file_magic_cmd='/bin/file'
4647 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4648 lt_cv_file_magic_test_file=/lib/libc.so
4649 ;;
4650 siemens)
4651 lt_cv_deplibs_check_method=pass_all
4652 ;;
4653 pc)
4654 lt_cv_deplibs_check_method=pass_all
4655 ;;
4656 esac
4657 ;;
4658
4659 tpf*)
4660 lt_cv_deplibs_check_method=pass_all
4661 ;;
4662 esac
4663
4664 fi
4665 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4666 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4667 file_magic_cmd=$lt_cv_file_magic_cmd
4668 deplibs_check_method=$lt_cv_deplibs_check_method
4669 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682 if test -n "$ac_tool_prefix"; then
4683 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4684 set dummy ${ac_tool_prefix}ar; ac_word=$2
4685 echo "$as_me:$LINENO: checking for $ac_word" >&5
4686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4687 if test "${ac_cv_prog_AR+set}" = set; then
4688 echo $ECHO_N "(cached) $ECHO_C" >&6
4689 else
4690 if test -n "$AR"; then
4691 ac_cv_prog_AR="$AR" # Let the user override the test.
4692 else
4693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4694 for as_dir in $PATH
4695 do
4696 IFS=$as_save_IFS
4697 test -z "$as_dir" && as_dir=.
4698 for ac_exec_ext in '' $ac_executable_extensions; do
4699 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4700 ac_cv_prog_AR="${ac_tool_prefix}ar"
4701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4702 break 2
4703 fi
4704 done
4705 done
4706
4707 fi
4708 fi
4709 AR=$ac_cv_prog_AR
4710 if test -n "$AR"; then
4711 echo "$as_me:$LINENO: result: $AR" >&5
4712 echo "${ECHO_T}$AR" >&6
4713 else
4714 echo "$as_me:$LINENO: result: no" >&5
4715 echo "${ECHO_T}no" >&6
4716 fi
4717
4718 fi
4719 if test -z "$ac_cv_prog_AR"; then
4720 ac_ct_AR=$AR
4721 # Extract the first word of "ar", so it can be a program name with args.
4722 set dummy ar; ac_word=$2
4723 echo "$as_me:$LINENO: checking for $ac_word" >&5
4724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4725 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4726 echo $ECHO_N "(cached) $ECHO_C" >&6
4727 else
4728 if test -n "$ac_ct_AR"; then
4729 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4730 else
4731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4732 for as_dir in $PATH
4733 do
4734 IFS=$as_save_IFS
4735 test -z "$as_dir" && as_dir=.
4736 for ac_exec_ext in '' $ac_executable_extensions; do
4737 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4738 ac_cv_prog_ac_ct_AR="ar"
4739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4740 break 2
4741 fi
4742 done
4743 done
4744
4745 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
4746 fi
4747 fi
4748 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4749 if test -n "$ac_ct_AR"; then
4750 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4751 echo "${ECHO_T}$ac_ct_AR" >&6
4752 else
4753 echo "$as_me:$LINENO: result: no" >&5
4754 echo "${ECHO_T}no" >&6
4755 fi
4756
4757 AR=$ac_ct_AR
4758 else
4759 AR="$ac_cv_prog_AR"
4760 fi
4761
4762 test -z "$AR" && AR=ar
4763 test -z "$AR_FLAGS" && AR_FLAGS=cru
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775 if test -n "$ac_tool_prefix"; then
4776 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4777 set dummy ${ac_tool_prefix}strip; ac_word=$2
4778 echo "$as_me:$LINENO: checking for $ac_word" >&5
4779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4780 if test "${ac_cv_prog_STRIP+set}" = set; then
4781 echo $ECHO_N "(cached) $ECHO_C" >&6
4782 else
4783 if test -n "$STRIP"; then
4784 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4785 else
4786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4787 for as_dir in $PATH
4788 do
4789 IFS=$as_save_IFS
4790 test -z "$as_dir" && as_dir=.
4791 for ac_exec_ext in '' $ac_executable_extensions; do
4792 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4793 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4795 break 2
4796 fi
4797 done
4798 done
4799
4800 fi
4801 fi
4802 STRIP=$ac_cv_prog_STRIP
4803 if test -n "$STRIP"; then
4804 echo "$as_me:$LINENO: result: $STRIP" >&5
4805 echo "${ECHO_T}$STRIP" >&6
4806 else
4807 echo "$as_me:$LINENO: result: no" >&5
4808 echo "${ECHO_T}no" >&6
4809 fi
4810
4811 fi
4812 if test -z "$ac_cv_prog_STRIP"; then
4813 ac_ct_STRIP=$STRIP
4814 # Extract the first word of "strip", so it can be a program name with args.
4815 set dummy strip; ac_word=$2
4816 echo "$as_me:$LINENO: checking for $ac_word" >&5
4817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4818 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4819 echo $ECHO_N "(cached) $ECHO_C" >&6
4820 else
4821 if test -n "$ac_ct_STRIP"; then
4822 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4823 else
4824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4825 for as_dir in $PATH
4826 do
4827 IFS=$as_save_IFS
4828 test -z "$as_dir" && as_dir=.
4829 for ac_exec_ext in '' $ac_executable_extensions; do
4830 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4831 ac_cv_prog_ac_ct_STRIP="strip"
4832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4833 break 2
4834 fi
4835 done
4836 done
4837
4838 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4839 fi
4840 fi
4841 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4842 if test -n "$ac_ct_STRIP"; then
4843 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4844 echo "${ECHO_T}$ac_ct_STRIP" >&6
4845 else
4846 echo "$as_me:$LINENO: result: no" >&5
4847 echo "${ECHO_T}no" >&6
4848 fi
4849
4850 STRIP=$ac_ct_STRIP
4851 else
4852 STRIP="$ac_cv_prog_STRIP"
4853 fi
4854
4855 test -z "$STRIP" && STRIP=:
4856
4857
4858
4859
4860
4861
4862 if test -n "$ac_tool_prefix"; then
4863 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4864 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4865 echo "$as_me:$LINENO: checking for $ac_word" >&5
4866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4867 if test "${ac_cv_prog_RANLIB+set}" = set; then
4868 echo $ECHO_N "(cached) $ECHO_C" >&6
4869 else
4870 if test -n "$RANLIB"; then
4871 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4872 else
4873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4874 for as_dir in $PATH
4875 do
4876 IFS=$as_save_IFS
4877 test -z "$as_dir" && as_dir=.
4878 for ac_exec_ext in '' $ac_executable_extensions; do
4879 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4880 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4882 break 2
4883 fi
4884 done
4885 done
4886
4887 fi
4888 fi
4889 RANLIB=$ac_cv_prog_RANLIB
4890 if test -n "$RANLIB"; then
4891 echo "$as_me:$LINENO: result: $RANLIB" >&5
4892 echo "${ECHO_T}$RANLIB" >&6
4893 else
4894 echo "$as_me:$LINENO: result: no" >&5
4895 echo "${ECHO_T}no" >&6
4896 fi
4897
4898 fi
4899 if test -z "$ac_cv_prog_RANLIB"; then
4900 ac_ct_RANLIB=$RANLIB
4901 # Extract the first word of "ranlib", so it can be a program name with args.
4902 set dummy ranlib; ac_word=$2
4903 echo "$as_me:$LINENO: checking for $ac_word" >&5
4904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4905 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4906 echo $ECHO_N "(cached) $ECHO_C" >&6
4907 else
4908 if test -n "$ac_ct_RANLIB"; then
4909 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4910 else
4911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4912 for as_dir in $PATH
4913 do
4914 IFS=$as_save_IFS
4915 test -z "$as_dir" && as_dir=.
4916 for ac_exec_ext in '' $ac_executable_extensions; do
4917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4918 ac_cv_prog_ac_ct_RANLIB="ranlib"
4919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4920 break 2
4921 fi
4922 done
4923 done
4924
4925 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4926 fi
4927 fi
4928 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4929 if test -n "$ac_ct_RANLIB"; then
4930 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4931 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4932 else
4933 echo "$as_me:$LINENO: result: no" >&5
4934 echo "${ECHO_T}no" >&6
4935 fi
4936
4937 RANLIB=$ac_ct_RANLIB
4938 else
4939 RANLIB="$ac_cv_prog_RANLIB"
4940 fi
4941
4942 test -z "$RANLIB" && RANLIB=:
4943
4944
4945
4946
4947
4948
4949 # Determine commands to create old-style static archives.
4950 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4951 old_postinstall_cmds='chmod 644 $oldlib'
4952 old_postuninstall_cmds=
4953
4954 if test -n "$RANLIB"; then
4955 case $host_os in
4956 openbsd*)
4957 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4958 ;;
4959 *)
4960 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4961 ;;
4962 esac
4963 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4964 fi
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999 # If no C compiler was specified, use CC.
5000 LTCC=${LTCC-"$CC"}
5001
5002 # If no C compiler flags were specified, use CFLAGS.
5003 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5004
5005 # Allow CC to be a program name with arguments.
5006 compiler=$CC
5007
5008
5009 # Check for command to grab the raw symbol name followed by C symbol from nm.
5010 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5011 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5012 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5013 echo $ECHO_N "(cached) $ECHO_C" >&6
5014 else
5015
5016 # These are sane defaults that work on at least a few old systems.
5017 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5018
5019 # Character class describing NM global symbol codes.
5020 symcode='[BCDEGRST]'
5021
5022 # Regexp to match symbols that can be accessed directly from C.
5023 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5024
5025 # Define system-specific variables.
5026 case $host_os in
5027 aix*)
5028 symcode='[BCDT]'
5029 ;;
5030 cygwin* | mingw* | pw32*)
5031 symcode='[ABCDGISTW]'
5032 ;;
5033 hpux*)
5034 if test "$host_cpu" = ia64; then
5035 symcode='[ABCDEGRST]'
5036 fi
5037 ;;
5038 irix* | nonstopux*)
5039 symcode='[BCDEGRST]'
5040 ;;
5041 osf*)
5042 symcode='[BCDEGQRST]'
5043 ;;
5044 solaris*)
5045 symcode='[BDRT]'
5046 ;;
5047 sco3.2v5*)
5048 symcode='[DT]'
5049 ;;
5050 sysv4.2uw2*)
5051 symcode='[DT]'
5052 ;;
5053 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5054 symcode='[ABDT]'
5055 ;;
5056 sysv4)
5057 symcode='[DFNSTU]'
5058 ;;
5059 esac
5060
5061 # If we're using GNU nm, then use its standard symbol codes.
5062 case `$NM -V 2>&1` in
5063 *GNU* | *'with BFD'*)
5064 symcode='[ABCDGIRSTW]' ;;
5065 esac
5066
5067 # Transform an extracted symbol line into a proper C declaration.
5068 # Some systems (esp. on ia64) link data and code symbols differently,
5069 # so use this general approach.
5070 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5071
5072 # Transform an extracted symbol line into symbol name and symbol address
5073 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5074
5075 # Handle CRLF in mingw tool chain
5076 opt_cr=
5077 case $build_os in
5078 mingw*)
5079 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5080 ;;
5081 esac
5082
5083 # Try without a prefix underscore, then with it.
5084 for ac_symprfx in "" "_"; do
5085
5086 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5087 symxfrm="\\1 $ac_symprfx\\2 \\2"
5088
5089 # Write the raw and C identifiers.
5090 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5091 # Fake it for dumpbin and say T for any non-static function
5092 # and D for any global variable.
5093 # Also find C++ and __fastcall symbols from MSVC++,
5094 # which start with @ or ?.
5095 lt_cv_sys_global_symbol_pipe="$AWK '"\
5096 " {last_section=section; section=\$ 3};"\
5097 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5098 " \$ 0!~/External *\|/{next};"\
5099 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5100 " {if(hide[section]) next};"\
5101 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5102 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5103 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5104 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5105 " ' prfx=^$ac_symprfx"
5106 else
5107 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5108 fi
5109
5110 # Check to see that the pipe works correctly.
5111 pipe_works=no
5112
5113 rm -f conftest*
5114 cat > conftest.$ac_ext <<_LT_EOF
5115 #ifdef __cplusplus
5116 extern "C" {
5117 #endif
5118 char nm_test_var;
5119 void nm_test_func(void);
5120 void nm_test_func(void){}
5121 #ifdef __cplusplus
5122 }
5123 #endif
5124 int main(){nm_test_var='a';nm_test_func();return(0);}
5125 _LT_EOF
5126
5127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5128 (eval $ac_compile) 2>&5
5129 ac_status=$?
5130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5131 (exit $ac_status); }; then
5132 # Now try to grab the symbols.
5133 nlist=conftest.nm
5134 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5135 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5136 ac_status=$?
5137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138 (exit $ac_status); } && test -s "$nlist"; then
5139 # Try sorting and uniquifying the output.
5140 if sort "$nlist" | uniq > "$nlist"T; then
5141 mv -f "$nlist"T "$nlist"
5142 else
5143 rm -f "$nlist"T
5144 fi
5145
5146 # Make sure that we snagged all the symbols we need.
5147 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5148 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5149 cat <<_LT_EOF > conftest.$ac_ext
5150 #ifdef __cplusplus
5151 extern "C" {
5152 #endif
5153
5154 _LT_EOF
5155 # Now generate the symbol file.
5156 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5157
5158 cat <<_LT_EOF >> conftest.$ac_ext
5159
5160 /* The mapping between symbol names and symbols. */
5161 const struct {
5162 const char *name;
5163 void *address;
5164 }
5165 lt__PROGRAM__LTX_preloaded_symbols[] =
5166 {
5167 { "@PROGRAM@", (void *) 0 },
5168 _LT_EOF
5169 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5170 cat <<\_LT_EOF >> conftest.$ac_ext
5171 {0, (void *) 0}
5172 };
5173
5174 /* This works around a problem in FreeBSD linker */
5175 #ifdef FREEBSD_WORKAROUND
5176 static const void *lt_preloaded_setup() {
5177 return lt__PROGRAM__LTX_preloaded_symbols;
5178 }
5179 #endif
5180
5181 #ifdef __cplusplus
5182 }
5183 #endif
5184 _LT_EOF
5185 # Now try linking the two files.
5186 mv conftest.$ac_objext conftstm.$ac_objext
5187 lt_save_LIBS="$LIBS"
5188 lt_save_CFLAGS="$CFLAGS"
5189 LIBS="conftstm.$ac_objext"
5190 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5192 (eval $ac_link) 2>&5
5193 ac_status=$?
5194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5196 pipe_works=yes
5197 fi
5198 LIBS="$lt_save_LIBS"
5199 CFLAGS="$lt_save_CFLAGS"
5200 else
5201 echo "cannot find nm_test_func in $nlist" >&5
5202 fi
5203 else
5204 echo "cannot find nm_test_var in $nlist" >&5
5205 fi
5206 else
5207 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5208 fi
5209 else
5210 echo "$progname: failed program was:" >&5
5211 cat conftest.$ac_ext >&5
5212 fi
5213 rm -f conftest* conftst*
5214
5215 # Do not use the global_symbol_pipe unless it works.
5216 if test "$pipe_works" = yes; then
5217 break
5218 else
5219 lt_cv_sys_global_symbol_pipe=
5220 fi
5221 done
5222
5223 fi
5224
5225 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5226 lt_cv_sys_global_symbol_to_cdecl=
5227 fi
5228 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5229 echo "$as_me:$LINENO: result: failed" >&5
5230 echo "${ECHO_T}failed" >&6
5231 else
5232 echo "$as_me:$LINENO: result: ok" >&5
5233 echo "${ECHO_T}ok" >&6
5234 fi
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5254 if test "${enable_libtool_lock+set}" = set; then
5255 enableval="$enable_libtool_lock"
5256
5257 fi;
5258 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5259
5260 # Some flags need to be propagated to the compiler or linker for good
5261 # libtool support.
5262 case $host in
5263 ia64-*-hpux*)
5264 # Find out which ABI we are using.
5265 echo 'int i;' > conftest.$ac_ext
5266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5267 (eval $ac_compile) 2>&5
5268 ac_status=$?
5269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270 (exit $ac_status); }; then
5271 case `/usr/bin/file conftest.$ac_objext` in
5272 *ELF-32*)
5273 HPUX_IA64_MODE="32"
5274 ;;
5275 *ELF-64*)
5276 HPUX_IA64_MODE="64"
5277 ;;
5278 esac
5279 fi
5280 rm -rf conftest*
5281 ;;
5282 *-*-irix6*)
5283 # Find out which ABI we are using.
5284 echo '#line 5304 "configure"' > conftest.$ac_ext
5285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5286 (eval $ac_compile) 2>&5
5287 ac_status=$?
5288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289 (exit $ac_status); }; then
5290 if test "$lt_cv_prog_gnu_ld" = yes; then
5291 case `/usr/bin/file conftest.$ac_objext` in
5292 *32-bit*)
5293 LD="${LD-ld} -melf32bsmip"
5294 ;;
5295 *N32*)
5296 LD="${LD-ld} -melf32bmipn32"
5297 ;;
5298 *64-bit*)
5299 LD="${LD-ld} -melf64bmip"
5300 ;;
5301 esac
5302 else
5303 case `/usr/bin/file conftest.$ac_objext` in
5304 *32-bit*)
5305 LD="${LD-ld} -32"
5306 ;;
5307 *N32*)
5308 LD="${LD-ld} -n32"
5309 ;;
5310 *64-bit*)
5311 LD="${LD-ld} -64"
5312 ;;
5313 esac
5314 fi
5315 fi
5316 rm -rf conftest*
5317 ;;
5318
5319 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5320 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5321 # Find out which ABI we are using.
5322 echo 'int i;' > conftest.$ac_ext
5323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5324 (eval $ac_compile) 2>&5
5325 ac_status=$?
5326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5327 (exit $ac_status); }; then
5328 case `/usr/bin/file conftest.o` in
5329 *32-bit*)
5330 case $host in
5331 x86_64-*kfreebsd*-gnu)
5332 LD="${LD-ld} -m elf_i386_fbsd"
5333 ;;
5334 x86_64-*linux*)
5335 LD="${LD-ld} -m elf_i386"
5336 ;;
5337 ppc64-*linux*|powerpc64-*linux*)
5338 LD="${LD-ld} -m elf32ppclinux"
5339 ;;
5340 s390x-*linux*)
5341 LD="${LD-ld} -m elf_s390"
5342 ;;
5343 sparc64-*linux*)
5344 LD="${LD-ld} -m elf32_sparc"
5345 ;;
5346 esac
5347 ;;
5348 *64-bit*)
5349 case $host in
5350 x86_64-*kfreebsd*-gnu)
5351 LD="${LD-ld} -m elf_x86_64_fbsd"
5352 ;;
5353 x86_64-*linux*)
5354 LD="${LD-ld} -m elf_x86_64"
5355 ;;
5356 ppc*-*linux*|powerpc*-*linux*)
5357 LD="${LD-ld} -m elf64ppc"
5358 ;;
5359 s390*-*linux*|s390*-*tpf*)
5360 LD="${LD-ld} -m elf64_s390"
5361 ;;
5362 sparc*-*linux*)
5363 LD="${LD-ld} -m elf64_sparc"
5364 ;;
5365 esac
5366 ;;
5367 esac
5368 fi
5369 rm -rf conftest*
5370 ;;
5371
5372 *-*-sco3.2v5*)
5373 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5374 SAVE_CFLAGS="$CFLAGS"
5375 CFLAGS="$CFLAGS -belf"
5376 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5377 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5378 if test "${lt_cv_cc_needs_belf+set}" = set; then
5379 echo $ECHO_N "(cached) $ECHO_C" >&6
5380 else
5381 ac_ext=c
5382 ac_cpp='$CPP $CPPFLAGS'
5383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5386
5387 cat >conftest.$ac_ext <<_ACEOF
5388 /* confdefs.h. */
5389 _ACEOF
5390 cat confdefs.h >>conftest.$ac_ext
5391 cat >>conftest.$ac_ext <<_ACEOF
5392 /* end confdefs.h. */
5393
5394 int
5395 main ()
5396 {
5397
5398 ;
5399 return 0;
5400 }
5401 _ACEOF
5402 rm -f conftest.$ac_objext conftest$ac_exeext
5403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5404 (eval $ac_link) 2>conftest.er1
5405 ac_status=$?
5406 grep -v '^ *+' conftest.er1 >conftest.err
5407 rm -f conftest.er1
5408 cat conftest.err >&5
5409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410 (exit $ac_status); } &&
5411 { ac_try='test -z "$ac_c_werror_flag"
5412 || test ! -s conftest.err'
5413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5414 (eval $ac_try) 2>&5
5415 ac_status=$?
5416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417 (exit $ac_status); }; } &&
5418 { ac_try='test -s conftest$ac_exeext'
5419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5420 (eval $ac_try) 2>&5
5421 ac_status=$?
5422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5423 (exit $ac_status); }; }; then
5424 lt_cv_cc_needs_belf=yes
5425 else
5426 echo "$as_me: failed program was:" >&5
5427 sed 's/^/| /' conftest.$ac_ext >&5
5428
5429 lt_cv_cc_needs_belf=no
5430 fi
5431 rm -f conftest.err conftest.$ac_objext \
5432 conftest$ac_exeext conftest.$ac_ext
5433 ac_ext=c
5434 ac_cpp='$CPP $CPPFLAGS'
5435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5438
5439 fi
5440 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5441 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5442 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5443 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5444 CFLAGS="$SAVE_CFLAGS"
5445 fi
5446 ;;
5447 sparc*-*solaris*)
5448 # Find out which ABI we are using.
5449 echo 'int i;' > conftest.$ac_ext
5450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5451 (eval $ac_compile) 2>&5
5452 ac_status=$?
5453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5454 (exit $ac_status); }; then
5455 case `/usr/bin/file conftest.o` in
5456 *64-bit*)
5457 case $lt_cv_prog_gnu_ld in
5458 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5459 *) LD="${LD-ld} -64" ;;
5460 esac
5461 ;;
5462 esac
5463 fi
5464 rm -rf conftest*
5465 ;;
5466 esac
5467
5468 need_locks="$enable_libtool_lock"
5469
5470 ac_ext=c
5471 ac_cpp='$CPP $CPPFLAGS'
5472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5475 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5476 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5477 # On Suns, sometimes $CPP names a directory.
5478 if test -n "$CPP" && test -d "$CPP"; then
5479 CPP=
5480 fi
5481 if test -z "$CPP"; then
5482 if test "${ac_cv_prog_CPP+set}" = set; then
5483 echo $ECHO_N "(cached) $ECHO_C" >&6
5484 else
5485 # Double quotes because CPP needs to be expanded
5486 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5487 do
5488 ac_preproc_ok=false
5489 for ac_c_preproc_warn_flag in '' yes
5490 do
5491 # Use a header file that comes with gcc, so configuring glibc
5492 # with a fresh cross-compiler works.
5493 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5494 # <limits.h> exists even on freestanding compilers.
5495 # On the NeXT, cc -E runs the code through the compiler's parser,
5496 # not just through cpp. "Syntax error" is here to catch this case.
5497 cat >conftest.$ac_ext <<_ACEOF
5498 /* confdefs.h. */
5499 _ACEOF
5500 cat confdefs.h >>conftest.$ac_ext
5501 cat >>conftest.$ac_ext <<_ACEOF
5502 /* end confdefs.h. */
5503 #ifdef __STDC__
5504 # include <limits.h>
5505 #else
5506 # include <assert.h>
5507 #endif
5508 Syntax error
5509 _ACEOF
5510 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5511 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5512 ac_status=$?
5513 grep -v '^ *+' conftest.er1 >conftest.err
5514 rm -f conftest.er1
5515 cat conftest.err >&5
5516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517 (exit $ac_status); } >/dev/null; then
5518 if test -s conftest.err; then
5519 ac_cpp_err=$ac_c_preproc_warn_flag
5520 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5521 else
5522 ac_cpp_err=
5523 fi
5524 else
5525 ac_cpp_err=yes
5526 fi
5527 if test -z "$ac_cpp_err"; then
5528 :
5529 else
5530 echo "$as_me: failed program was:" >&5
5531 sed 's/^/| /' conftest.$ac_ext >&5
5532
5533 # Broken: fails on valid input.
5534 continue
5535 fi
5536 rm -f conftest.err conftest.$ac_ext
5537
5538 # OK, works on sane cases. Now check whether non-existent headers
5539 # can be detected and how.
5540 cat >conftest.$ac_ext <<_ACEOF
5541 /* confdefs.h. */
5542 _ACEOF
5543 cat confdefs.h >>conftest.$ac_ext
5544 cat >>conftest.$ac_ext <<_ACEOF
5545 /* end confdefs.h. */
5546 #include <ac_nonexistent.h>
5547 _ACEOF
5548 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5549 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5550 ac_status=$?
5551 grep -v '^ *+' conftest.er1 >conftest.err
5552 rm -f conftest.er1
5553 cat conftest.err >&5
5554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555 (exit $ac_status); } >/dev/null; then
5556 if test -s conftest.err; then
5557 ac_cpp_err=$ac_c_preproc_warn_flag
5558 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5559 else
5560 ac_cpp_err=
5561 fi
5562 else
5563 ac_cpp_err=yes
5564 fi
5565 if test -z "$ac_cpp_err"; then
5566 # Broken: success on invalid input.
5567 continue
5568 else
5569 echo "$as_me: failed program was:" >&5
5570 sed 's/^/| /' conftest.$ac_ext >&5
5571
5572 # Passes both tests.
5573 ac_preproc_ok=:
5574 break
5575 fi
5576 rm -f conftest.err conftest.$ac_ext
5577
5578 done
5579 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5580 rm -f conftest.err conftest.$ac_ext
5581 if $ac_preproc_ok; then
5582 break
5583 fi
5584
5585 done
5586 ac_cv_prog_CPP=$CPP
5587
5588 fi
5589 CPP=$ac_cv_prog_CPP
5590 else
5591 ac_cv_prog_CPP=$CPP
5592 fi
5593 echo "$as_me:$LINENO: result: $CPP" >&5
5594 echo "${ECHO_T}$CPP" >&6
5595 ac_preproc_ok=false
5596 for ac_c_preproc_warn_flag in '' yes
5597 do
5598 # Use a header file that comes with gcc, so configuring glibc
5599 # with a fresh cross-compiler works.
5600 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5601 # <limits.h> exists even on freestanding compilers.
5602 # On the NeXT, cc -E runs the code through the compiler's parser,
5603 # not just through cpp. "Syntax error" is here to catch this case.
5604 cat >conftest.$ac_ext <<_ACEOF
5605 /* confdefs.h. */
5606 _ACEOF
5607 cat confdefs.h >>conftest.$ac_ext
5608 cat >>conftest.$ac_ext <<_ACEOF
5609 /* end confdefs.h. */
5610 #ifdef __STDC__
5611 # include <limits.h>
5612 #else
5613 # include <assert.h>
5614 #endif
5615 Syntax error
5616 _ACEOF
5617 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5618 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5619 ac_status=$?
5620 grep -v '^ *+' conftest.er1 >conftest.err
5621 rm -f conftest.er1
5622 cat conftest.err >&5
5623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624 (exit $ac_status); } >/dev/null; then
5625 if test -s conftest.err; then
5626 ac_cpp_err=$ac_c_preproc_warn_flag
5627 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5628 else
5629 ac_cpp_err=
5630 fi
5631 else
5632 ac_cpp_err=yes
5633 fi
5634 if test -z "$ac_cpp_err"; then
5635 :
5636 else
5637 echo "$as_me: failed program was:" >&5
5638 sed 's/^/| /' conftest.$ac_ext >&5
5639
5640 # Broken: fails on valid input.
5641 continue
5642 fi
5643 rm -f conftest.err conftest.$ac_ext
5644
5645 # OK, works on sane cases. Now check whether non-existent headers
5646 # can be detected and how.
5647 cat >conftest.$ac_ext <<_ACEOF
5648 /* confdefs.h. */
5649 _ACEOF
5650 cat confdefs.h >>conftest.$ac_ext
5651 cat >>conftest.$ac_ext <<_ACEOF
5652 /* end confdefs.h. */
5653 #include <ac_nonexistent.h>
5654 _ACEOF
5655 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5656 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5657 ac_status=$?
5658 grep -v '^ *+' conftest.er1 >conftest.err
5659 rm -f conftest.er1
5660 cat conftest.err >&5
5661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662 (exit $ac_status); } >/dev/null; then
5663 if test -s conftest.err; then
5664 ac_cpp_err=$ac_c_preproc_warn_flag
5665 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5666 else
5667 ac_cpp_err=
5668 fi
5669 else
5670 ac_cpp_err=yes
5671 fi
5672 if test -z "$ac_cpp_err"; then
5673 # Broken: success on invalid input.
5674 continue
5675 else
5676 echo "$as_me: failed program was:" >&5
5677 sed 's/^/| /' conftest.$ac_ext >&5
5678
5679 # Passes both tests.
5680 ac_preproc_ok=:
5681 break
5682 fi
5683 rm -f conftest.err conftest.$ac_ext
5684
5685 done
5686 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5687 rm -f conftest.err conftest.$ac_ext
5688 if $ac_preproc_ok; then
5689 :
5690 else
5691 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5692 See \`config.log' for more details." >&5
5693 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5694 See \`config.log' for more details." >&2;}
5695 { (exit 1); exit 1; }; }
5696 fi
5697
5698 ac_ext=c
5699 ac_cpp='$CPP $CPPFLAGS'
5700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5703
5704
5705 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5706 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5707 if test "${ac_cv_header_stdc+set}" = set; then
5708 echo $ECHO_N "(cached) $ECHO_C" >&6
5709 else
5710 cat >conftest.$ac_ext <<_ACEOF
5711 /* confdefs.h. */
5712 _ACEOF
5713 cat confdefs.h >>conftest.$ac_ext
5714 cat >>conftest.$ac_ext <<_ACEOF
5715 /* end confdefs.h. */
5716 #include <stdlib.h>
5717 #include <stdarg.h>
5718 #include <string.h>
5719 #include <float.h>
5720
5721 int
5722 main ()
5723 {
5724
5725 ;
5726 return 0;
5727 }
5728 _ACEOF
5729 rm -f conftest.$ac_objext
5730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5731 (eval $ac_compile) 2>conftest.er1
5732 ac_status=$?
5733 grep -v '^ *+' conftest.er1 >conftest.err
5734 rm -f conftest.er1
5735 cat conftest.err >&5
5736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737 (exit $ac_status); } &&
5738 { ac_try='test -z "$ac_c_werror_flag"
5739 || test ! -s conftest.err'
5740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5741 (eval $ac_try) 2>&5
5742 ac_status=$?
5743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744 (exit $ac_status); }; } &&
5745 { ac_try='test -s conftest.$ac_objext'
5746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5747 (eval $ac_try) 2>&5
5748 ac_status=$?
5749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750 (exit $ac_status); }; }; then
5751 ac_cv_header_stdc=yes
5752 else
5753 echo "$as_me: failed program was:" >&5
5754 sed 's/^/| /' conftest.$ac_ext >&5
5755
5756 ac_cv_header_stdc=no
5757 fi
5758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5759
5760 if test $ac_cv_header_stdc = yes; then
5761 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5762 cat >conftest.$ac_ext <<_ACEOF
5763 /* confdefs.h. */
5764 _ACEOF
5765 cat confdefs.h >>conftest.$ac_ext
5766 cat >>conftest.$ac_ext <<_ACEOF
5767 /* end confdefs.h. */
5768 #include <string.h>
5769
5770 _ACEOF
5771 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5772 $EGREP "memchr" >/dev/null 2>&1; then
5773 :
5774 else
5775 ac_cv_header_stdc=no
5776 fi
5777 rm -f conftest*
5778
5779 fi
5780
5781 if test $ac_cv_header_stdc = yes; then
5782 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5783 cat >conftest.$ac_ext <<_ACEOF
5784 /* confdefs.h. */
5785 _ACEOF
5786 cat confdefs.h >>conftest.$ac_ext
5787 cat >>conftest.$ac_ext <<_ACEOF
5788 /* end confdefs.h. */
5789 #include <stdlib.h>
5790
5791 _ACEOF
5792 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5793 $EGREP "free" >/dev/null 2>&1; then
5794 :
5795 else
5796 ac_cv_header_stdc=no
5797 fi
5798 rm -f conftest*
5799
5800 fi
5801
5802 if test $ac_cv_header_stdc = yes; then
5803 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5804 if test "$cross_compiling" = yes; then
5805 :
5806 else
5807 cat >conftest.$ac_ext <<_ACEOF
5808 /* confdefs.h. */
5809 _ACEOF
5810 cat confdefs.h >>conftest.$ac_ext
5811 cat >>conftest.$ac_ext <<_ACEOF
5812 /* end confdefs.h. */
5813 #include <ctype.h>
5814 #if ((' ' & 0x0FF) == 0x020)
5815 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5816 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5817 #else
5818 # define ISLOWER(c) \
5819 (('a' <= (c) && (c) <= 'i') \
5820 || ('j' <= (c) && (c) <= 'r') \
5821 || ('s' <= (c) && (c) <= 'z'))
5822 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5823 #endif
5824
5825 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5826 int
5827 main ()
5828 {
5829 int i;
5830 for (i = 0; i < 256; i++)
5831 if (XOR (islower (i), ISLOWER (i))
5832 || toupper (i) != TOUPPER (i))
5833 exit(2);
5834 exit (0);
5835 }
5836 _ACEOF
5837 rm -f conftest$ac_exeext
5838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5839 (eval $ac_link) 2>&5
5840 ac_status=$?
5841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5844 (eval $ac_try) 2>&5
5845 ac_status=$?
5846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847 (exit $ac_status); }; }; then
5848 :
5849 else
5850 echo "$as_me: program exited with status $ac_status" >&5
5851 echo "$as_me: failed program was:" >&5
5852 sed 's/^/| /' conftest.$ac_ext >&5
5853
5854 ( exit $ac_status )
5855 ac_cv_header_stdc=no
5856 fi
5857 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5858 fi
5859 fi
5860 fi
5861 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5862 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5863 if test $ac_cv_header_stdc = yes; then
5864
5865 cat >>confdefs.h <<\_ACEOF
5866 #define STDC_HEADERS 1
5867 _ACEOF
5868
5869 fi
5870
5871 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5882 inttypes.h stdint.h unistd.h
5883 do
5884 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5885 echo "$as_me:$LINENO: checking for $ac_header" >&5
5886 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5887 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5888 echo $ECHO_N "(cached) $ECHO_C" >&6
5889 else
5890 cat >conftest.$ac_ext <<_ACEOF
5891 /* confdefs.h. */
5892 _ACEOF
5893 cat confdefs.h >>conftest.$ac_ext
5894 cat >>conftest.$ac_ext <<_ACEOF
5895 /* end confdefs.h. */
5896 $ac_includes_default
5897
5898 #include <$ac_header>
5899 _ACEOF
5900 rm -f conftest.$ac_objext
5901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5902 (eval $ac_compile) 2>conftest.er1
5903 ac_status=$?
5904 grep -v '^ *+' conftest.er1 >conftest.err
5905 rm -f conftest.er1
5906 cat conftest.err >&5
5907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908 (exit $ac_status); } &&
5909 { ac_try='test -z "$ac_c_werror_flag"
5910 || test ! -s conftest.err'
5911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5912 (eval $ac_try) 2>&5
5913 ac_status=$?
5914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915 (exit $ac_status); }; } &&
5916 { ac_try='test -s conftest.$ac_objext'
5917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5918 (eval $ac_try) 2>&5
5919 ac_status=$?
5920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921 (exit $ac_status); }; }; then
5922 eval "$as_ac_Header=yes"
5923 else
5924 echo "$as_me: failed program was:" >&5
5925 sed 's/^/| /' conftest.$ac_ext >&5
5926
5927 eval "$as_ac_Header=no"
5928 fi
5929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5930 fi
5931 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5932 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5933 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5934 cat >>confdefs.h <<_ACEOF
5935 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5936 _ACEOF
5937
5938 fi
5939
5940 done
5941
5942
5943
5944 for ac_header in dlfcn.h
5945 do
5946 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5947 echo "$as_me:$LINENO: checking for $ac_header" >&5
5948 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5949 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5950 echo $ECHO_N "(cached) $ECHO_C" >&6
5951 else
5952 cat >conftest.$ac_ext <<_ACEOF
5953 /* confdefs.h. */
5954 _ACEOF
5955 cat confdefs.h >>conftest.$ac_ext
5956 cat >>conftest.$ac_ext <<_ACEOF
5957 /* end confdefs.h. */
5958 $ac_includes_default
5959
5960 #include <$ac_header>
5961 _ACEOF
5962 rm -f conftest.$ac_objext
5963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5964 (eval $ac_compile) 2>conftest.er1
5965 ac_status=$?
5966 grep -v '^ *+' conftest.er1 >conftest.err
5967 rm -f conftest.er1
5968 cat conftest.err >&5
5969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5970 (exit $ac_status); } &&
5971 { ac_try='test -z "$ac_c_werror_flag"
5972 || test ! -s conftest.err'
5973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5974 (eval $ac_try) 2>&5
5975 ac_status=$?
5976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977 (exit $ac_status); }; } &&
5978 { ac_try='test -s conftest.$ac_objext'
5979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5980 (eval $ac_try) 2>&5
5981 ac_status=$?
5982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983 (exit $ac_status); }; }; then
5984 eval "$as_ac_Header=yes"
5985 else
5986 echo "$as_me: failed program was:" >&5
5987 sed 's/^/| /' conftest.$ac_ext >&5
5988
5989 eval "$as_ac_Header=no"
5990 fi
5991 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5992 fi
5993 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5994 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5995 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5996 cat >>confdefs.h <<_ACEOF
5997 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5998 _ACEOF
5999
6000 fi
6001
6002 done
6003
6004
6005
6006 # This can be used to rebuild libtool when needed
6007 LIBTOOL_DEPS="$ltmain"
6008
6009 # Always use our own libtool.
6010 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036 test -z "$LN_S" && LN_S="ln -s"
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051 if test -n "${ZSH_VERSION+set}" ; then
6052 setopt NO_GLOB_SUBST
6053 fi
6054
6055 echo "$as_me:$LINENO: checking for objdir" >&5
6056 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6057 if test "${lt_cv_objdir+set}" = set; then
6058 echo $ECHO_N "(cached) $ECHO_C" >&6
6059 else
6060 rm -f .libs 2>/dev/null
6061 mkdir .libs 2>/dev/null
6062 if test -d .libs; then
6063 lt_cv_objdir=.libs
6064 else
6065 # MS-DOS does not allow filenames that begin with a dot.
6066 lt_cv_objdir=_libs
6067 fi
6068 rmdir .libs 2>/dev/null
6069 fi
6070 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6071 echo "${ECHO_T}$lt_cv_objdir" >&6
6072 objdir=$lt_cv_objdir
6073
6074
6075
6076
6077
6078 cat >>confdefs.h <<_ACEOF
6079 #define LT_OBJDIR "$lt_cv_objdir/"
6080 _ACEOF
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098 case $host_os in
6099 aix3*)
6100 # AIX sometimes has problems with the GCC collect2 program. For some
6101 # reason, if we set the COLLECT_NAMES environment variable, the problems
6102 # vanish in a puff of smoke.
6103 if test "X${COLLECT_NAMES+set}" != Xset; then
6104 COLLECT_NAMES=
6105 export COLLECT_NAMES
6106 fi
6107 ;;
6108 esac
6109
6110 # Sed substitution that helps us do robust quoting. It backslashifies
6111 # metacharacters that are still active within double-quoted strings.
6112 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6113
6114 # Same as above, but do not quote variable references.
6115 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6116
6117 # Sed substitution to delay expansion of an escaped shell variable in a
6118 # double_quote_subst'ed string.
6119 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6120
6121 # Sed substitution to delay expansion of an escaped single quote.
6122 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6123
6124 # Sed substitution to avoid accidental globbing in evaled expressions
6125 no_glob_subst='s/\*/\\\*/g'
6126
6127 # Global variables:
6128 ofile=libtool
6129 can_build_shared=yes
6130
6131 # All known linkers require a `.a' archive for static linking (except MSVC,
6132 # which needs '.lib').
6133 libext=a
6134
6135 with_gnu_ld="$lt_cv_prog_gnu_ld"
6136
6137 old_CC="$CC"
6138 old_CFLAGS="$CFLAGS"
6139
6140 # Set sane defaults for various variables
6141 test -z "$CC" && CC=cc
6142 test -z "$LTCC" && LTCC=$CC
6143 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6144 test -z "$LD" && LD=ld
6145 test -z "$ac_objext" && ac_objext=o
6146
6147 for cc_temp in $compiler""; do
6148 case $cc_temp in
6149 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6150 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6151 \-*) ;;
6152 *) break;;
6153 esac
6154 done
6155 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6156
6157
6158 # Only perform the check for file, if the check method requires it
6159 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6160 case $deplibs_check_method in
6161 file_magic*)
6162 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6163 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6164 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6165 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6166 echo $ECHO_N "(cached) $ECHO_C" >&6
6167 else
6168 case $MAGIC_CMD in
6169 [\\/*] | ?:[\\/]*)
6170 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6171 ;;
6172 *)
6173 lt_save_MAGIC_CMD="$MAGIC_CMD"
6174 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6175 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6176 for ac_dir in $ac_dummy; do
6177 IFS="$lt_save_ifs"
6178 test -z "$ac_dir" && ac_dir=.
6179 if test -f $ac_dir/${ac_tool_prefix}file; then
6180 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6181 if test -n "$file_magic_test_file"; then
6182 case $deplibs_check_method in
6183 "file_magic "*)
6184 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6185 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6186 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6187 $EGREP "$file_magic_regex" > /dev/null; then
6188 :
6189 else
6190 cat <<_LT_EOF 1>&2
6191
6192 *** Warning: the command libtool uses to detect shared libraries,
6193 *** $file_magic_cmd, produces output that libtool cannot recognize.
6194 *** The result is that libtool may fail to recognize shared libraries
6195 *** as such. This will affect the creation of libtool libraries that
6196 *** depend on shared libraries, but programs linked with such libtool
6197 *** libraries will work regardless of this problem. Nevertheless, you
6198 *** may want to report the problem to your system manager and/or to
6199 *** bug-libtool@gnu.org
6200
6201 _LT_EOF
6202 fi ;;
6203 esac
6204 fi
6205 break
6206 fi
6207 done
6208 IFS="$lt_save_ifs"
6209 MAGIC_CMD="$lt_save_MAGIC_CMD"
6210 ;;
6211 esac
6212 fi
6213
6214 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6215 if test -n "$MAGIC_CMD"; then
6216 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6217 echo "${ECHO_T}$MAGIC_CMD" >&6
6218 else
6219 echo "$as_me:$LINENO: result: no" >&5
6220 echo "${ECHO_T}no" >&6
6221 fi
6222
6223
6224
6225
6226
6227 if test -z "$lt_cv_path_MAGIC_CMD"; then
6228 if test -n "$ac_tool_prefix"; then
6229 echo "$as_me:$LINENO: checking for file" >&5
6230 echo $ECHO_N "checking for file... $ECHO_C" >&6
6231 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6232 echo $ECHO_N "(cached) $ECHO_C" >&6
6233 else
6234 case $MAGIC_CMD in
6235 [\\/*] | ?:[\\/]*)
6236 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6237 ;;
6238 *)
6239 lt_save_MAGIC_CMD="$MAGIC_CMD"
6240 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6241 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6242 for ac_dir in $ac_dummy; do
6243 IFS="$lt_save_ifs"
6244 test -z "$ac_dir" && ac_dir=.
6245 if test -f $ac_dir/file; then
6246 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6247 if test -n "$file_magic_test_file"; then
6248 case $deplibs_check_method in
6249 "file_magic "*)
6250 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6251 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6252 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6253 $EGREP "$file_magic_regex" > /dev/null; then
6254 :
6255 else
6256 cat <<_LT_EOF 1>&2
6257
6258 *** Warning: the command libtool uses to detect shared libraries,
6259 *** $file_magic_cmd, produces output that libtool cannot recognize.
6260 *** The result is that libtool may fail to recognize shared libraries
6261 *** as such. This will affect the creation of libtool libraries that
6262 *** depend on shared libraries, but programs linked with such libtool
6263 *** libraries will work regardless of this problem. Nevertheless, you
6264 *** may want to report the problem to your system manager and/or to
6265 *** bug-libtool@gnu.org
6266
6267 _LT_EOF
6268 fi ;;
6269 esac
6270 fi
6271 break
6272 fi
6273 done
6274 IFS="$lt_save_ifs"
6275 MAGIC_CMD="$lt_save_MAGIC_CMD"
6276 ;;
6277 esac
6278 fi
6279
6280 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6281 if test -n "$MAGIC_CMD"; then
6282 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6283 echo "${ECHO_T}$MAGIC_CMD" >&6
6284 else
6285 echo "$as_me:$LINENO: result: no" >&5
6286 echo "${ECHO_T}no" >&6
6287 fi
6288
6289
6290 else
6291 MAGIC_CMD=:
6292 fi
6293 fi
6294
6295 fi
6296 ;;
6297 esac
6298
6299 # Use C for the default configuration in the libtool script
6300
6301 lt_save_CC="$CC"
6302 ac_ext=c
6303 ac_cpp='$CPP $CPPFLAGS'
6304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6307
6308
6309 # Source file extension for C test sources.
6310 ac_ext=c
6311
6312 # Object file extension for compiled C test sources.
6313 objext=o
6314 objext=$objext
6315
6316 # Code to be used in simple compile tests
6317 lt_simple_compile_test_code="int some_variable = 0;"
6318
6319 # Code to be used in simple link tests
6320 lt_simple_link_test_code='int main(){return(0);}'
6321
6322
6323
6324
6325
6326
6327
6328 # If no C compiler was specified, use CC.
6329 LTCC=${LTCC-"$CC"}
6330
6331 # If no C compiler flags were specified, use CFLAGS.
6332 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6333
6334 # Allow CC to be a program name with arguments.
6335 compiler=$CC
6336
6337 # Save the default compiler, since it gets overwritten when the other
6338 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6339 compiler_DEFAULT=$CC
6340
6341 # save warnings/boilerplate of simple test code
6342 ac_outfile=conftest.$ac_objext
6343 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6344 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6345 _lt_compiler_boilerplate=`cat conftest.err`
6346 $RM conftest*
6347
6348 ac_outfile=conftest.$ac_objext
6349 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6350 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6351 _lt_linker_boilerplate=`cat conftest.err`
6352 $RM conftest*
6353
6354
6355 ## CAVEAT EMPTOR:
6356 ## There is no encapsulation within the following macros, do not change
6357 ## the running order or otherwise move them around unless you know exactly
6358 ## what you are doing...
6359 if test -n "$compiler"; then
6360
6361 lt_prog_compiler_no_builtin_flag=
6362
6363 if test "$GCC" = yes; then
6364 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6365
6366 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6367 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6368 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6369 echo $ECHO_N "(cached) $ECHO_C" >&6
6370 else
6371 lt_cv_prog_compiler_rtti_exceptions=no
6372 ac_outfile=conftest.$ac_objext
6373 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6374 lt_compiler_flag="-fno-rtti -fno-exceptions"
6375 # Insert the option either (1) after the last *FLAGS variable, or
6376 # (2) before a word containing "conftest.", or (3) at the end.
6377 # Note that $ac_compile itself does not contain backslashes and begins
6378 # with a dollar sign (not a hyphen), so the echo should work correctly.
6379 # The option is referenced via a variable to avoid confusing sed.
6380 lt_compile=`echo "$ac_compile" | $SED \
6381 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6382 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6383 -e 's:$: $lt_compiler_flag:'`
6384 (eval echo "\"\$as_me:6404: $lt_compile\"" >&5)
6385 (eval "$lt_compile" 2>conftest.err)
6386 ac_status=$?
6387 cat conftest.err >&5
6388 echo "$as_me:6408: \$? = $ac_status" >&5
6389 if (exit $ac_status) && test -s "$ac_outfile"; then
6390 # The compiler can only warn and ignore the option if not recognized
6391 # So say no if there are warnings other than the usual output.
6392 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6393 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6394 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6395 lt_cv_prog_compiler_rtti_exceptions=yes
6396 fi
6397 fi
6398 $RM conftest*
6399
6400 fi
6401 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6402 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6403
6404 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6405 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6406 else
6407 :
6408 fi
6409
6410 fi
6411
6412
6413
6414
6415
6416
6417 lt_prog_compiler_wl=
6418 lt_prog_compiler_pic=
6419 lt_prog_compiler_static=
6420
6421 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6422 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6423
6424 if test "$GCC" = yes; then
6425 lt_prog_compiler_wl='-Wl,'
6426 lt_prog_compiler_static='-static'
6427
6428 case $host_os in
6429 aix*)
6430 # All AIX code is PIC.
6431 if test "$host_cpu" = ia64; then
6432 # AIX 5 now supports IA64 processor
6433 lt_prog_compiler_static='-Bstatic'
6434 fi
6435 ;;
6436
6437 amigaos*)
6438 if test "$host_cpu" = m68k; then
6439 # FIXME: we need at least 68020 code to build shared libraries, but
6440 # adding the `-m68020' flag to GCC prevents building anything better,
6441 # like `-m68040'.
6442 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6443 fi
6444 ;;
6445
6446 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6447 # PIC is the default for these OSes.
6448 ;;
6449
6450 mingw* | cygwin* | pw32* | os2*)
6451 # This hack is so that the source file can tell whether it is being
6452 # built for inclusion in a dll (and should export symbols for example).
6453 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6454 # (--disable-auto-import) libraries
6455 lt_prog_compiler_pic='-DDLL_EXPORT'
6456 ;;
6457
6458 darwin* | rhapsody*)
6459 # PIC is the default on this platform
6460 # Common symbols not allowed in MH_DYLIB files
6461 lt_prog_compiler_pic='-fno-common'
6462 ;;
6463
6464 hpux*)
6465 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6466 # not for PA HP-UX.
6467 case $host_cpu in
6468 hppa*64*|ia64*)
6469 # +Z the default
6470 ;;
6471 *)
6472 lt_prog_compiler_pic='-fPIC'
6473 ;;
6474 esac
6475 ;;
6476
6477 interix[3-9]*)
6478 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6479 # Instead, we relocate shared libraries at runtime.
6480 ;;
6481
6482 msdosdjgpp*)
6483 # Just because we use GCC doesn't mean we suddenly get shared libraries
6484 # on systems that don't support them.
6485 lt_prog_compiler_can_build_shared=no
6486 enable_shared=no
6487 ;;
6488
6489 *nto* | *qnx*)
6490 # QNX uses GNU C++, but need to define -shared option too, otherwise
6491 # it will coredump.
6492 lt_prog_compiler_pic='-fPIC -shared'
6493 ;;
6494
6495 sysv4*MP*)
6496 if test -d /usr/nec; then
6497 lt_prog_compiler_pic=-Kconform_pic
6498 fi
6499 ;;
6500
6501 *)
6502 lt_prog_compiler_pic='-fPIC'
6503 ;;
6504 esac
6505 else
6506 # PORTME Check for flag to pass linker flags through the system compiler.
6507 case $host_os in
6508 aix*)
6509 lt_prog_compiler_wl='-Wl,'
6510 if test "$host_cpu" = ia64; then
6511 # AIX 5 now supports IA64 processor
6512 lt_prog_compiler_static='-Bstatic'
6513 else
6514 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6515 fi
6516 ;;
6517 darwin*)
6518 # PIC is the default on this platform
6519 # Common symbols not allowed in MH_DYLIB files
6520 case $cc_basename in
6521 xlc*)
6522 lt_prog_compiler_pic='-qnocommon'
6523 lt_prog_compiler_wl='-Wl,'
6524 ;;
6525 esac
6526 ;;
6527
6528 mingw* | cygwin* | pw32* | os2*)
6529 # This hack is so that the source file can tell whether it is being
6530 # built for inclusion in a dll (and should export symbols for example).
6531 lt_prog_compiler_pic='-DDLL_EXPORT'
6532 ;;
6533
6534 hpux9* | hpux10* | hpux11*)
6535 lt_prog_compiler_wl='-Wl,'
6536 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6537 # not for PA HP-UX.
6538 case $host_cpu in
6539 hppa*64*|ia64*)
6540 # +Z the default
6541 ;;
6542 *)
6543 lt_prog_compiler_pic='+Z'
6544 ;;
6545 esac
6546 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6547 lt_prog_compiler_static='${wl}-a ${wl}archive'
6548 ;;
6549
6550 irix5* | irix6* | nonstopux*)
6551 lt_prog_compiler_wl='-Wl,'
6552 # PIC (with -KPIC) is the default.
6553 lt_prog_compiler_static='-non_shared'
6554 ;;
6555
6556 linux* | k*bsd*-gnu)
6557 case $cc_basename in
6558 icc* | ecc*)
6559 lt_prog_compiler_wl='-Wl,'
6560 lt_prog_compiler_pic='-KPIC'
6561 lt_prog_compiler_static='-static'
6562 ;;
6563 pgcc* | pgf77* | pgf90* | pgf95*)
6564 # Portland Group compilers (*not* the Pentium gcc compiler,
6565 # which looks to be a dead project)
6566 lt_prog_compiler_wl='-Wl,'
6567 lt_prog_compiler_pic='-fpic'
6568 lt_prog_compiler_static='-Bstatic'
6569 ;;
6570 ccc*)
6571 lt_prog_compiler_wl='-Wl,'
6572 # All Alpha code is PIC.
6573 lt_prog_compiler_static='-non_shared'
6574 ;;
6575 *)
6576 case `$CC -V 2>&1 | sed 5q` in
6577 *Sun\ C*)
6578 # Sun C 5.9
6579 lt_prog_compiler_pic='-KPIC'
6580 lt_prog_compiler_static='-Bstatic'
6581 lt_prog_compiler_wl='-Wl,'
6582 ;;
6583 *Sun\ F*)
6584 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6585 lt_prog_compiler_pic='-KPIC'
6586 lt_prog_compiler_static='-Bstatic'
6587 lt_prog_compiler_wl=''
6588 ;;
6589 esac
6590 ;;
6591 esac
6592 ;;
6593
6594 newsos6)
6595 lt_prog_compiler_pic='-KPIC'
6596 lt_prog_compiler_static='-Bstatic'
6597 ;;
6598
6599 *nto* | *qnx*)
6600 # QNX uses GNU C++, but need to define -shared option too, otherwise
6601 # it will coredump.
6602 lt_prog_compiler_pic='-fPIC -shared'
6603 ;;
6604
6605 osf3* | osf4* | osf5*)
6606 lt_prog_compiler_wl='-Wl,'
6607 # All OSF/1 code is PIC.
6608 lt_prog_compiler_static='-non_shared'
6609 ;;
6610
6611 rdos*)
6612 lt_prog_compiler_static='-non_shared'
6613 ;;
6614
6615 solaris*)
6616 lt_prog_compiler_pic='-KPIC'
6617 lt_prog_compiler_static='-Bstatic'
6618 case $cc_basename in
6619 f77* | f90* | f95*)
6620 lt_prog_compiler_wl='-Qoption ld ';;
6621 *)
6622 lt_prog_compiler_wl='-Wl,';;
6623 esac
6624 ;;
6625
6626 sunos4*)
6627 lt_prog_compiler_wl='-Qoption ld '
6628 lt_prog_compiler_pic='-PIC'
6629 lt_prog_compiler_static='-Bstatic'
6630 ;;
6631
6632 sysv4 | sysv4.2uw2* | sysv4.3*)
6633 lt_prog_compiler_wl='-Wl,'
6634 lt_prog_compiler_pic='-KPIC'
6635 lt_prog_compiler_static='-Bstatic'
6636 ;;
6637
6638 sysv4*MP*)
6639 if test -d /usr/nec ;then
6640 lt_prog_compiler_pic='-Kconform_pic'
6641 lt_prog_compiler_static='-Bstatic'
6642 fi
6643 ;;
6644
6645 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6646 lt_prog_compiler_wl='-Wl,'
6647 lt_prog_compiler_pic='-KPIC'
6648 lt_prog_compiler_static='-Bstatic'
6649 ;;
6650
6651 unicos*)
6652 lt_prog_compiler_wl='-Wl,'
6653 lt_prog_compiler_can_build_shared=no
6654 ;;
6655
6656 uts4*)
6657 lt_prog_compiler_pic='-pic'
6658 lt_prog_compiler_static='-Bstatic'
6659 ;;
6660
6661 *)
6662 lt_prog_compiler_can_build_shared=no
6663 ;;
6664 esac
6665 fi
6666
6667 case $host_os in
6668 # For platforms which do not support PIC, -DPIC is meaningless:
6669 *djgpp*)
6670 lt_prog_compiler_pic=
6671 ;;
6672 *)
6673 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6674 ;;
6675 esac
6676 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6677 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6678
6679
6680
6681
6682
6683
6684 #
6685 # Check to make sure the PIC flag actually works.
6686 #
6687 if test -n "$lt_prog_compiler_pic"; then
6688 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6689 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6690 if test "${lt_prog_compiler_pic_works+set}" = set; then
6691 echo $ECHO_N "(cached) $ECHO_C" >&6
6692 else
6693 lt_prog_compiler_pic_works=no
6694 ac_outfile=conftest.$ac_objext
6695 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6696 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6697 # Insert the option either (1) after the last *FLAGS variable, or
6698 # (2) before a word containing "conftest.", or (3) at the end.
6699 # Note that $ac_compile itself does not contain backslashes and begins
6700 # with a dollar sign (not a hyphen), so the echo should work correctly.
6701 # The option is referenced via a variable to avoid confusing sed.
6702 lt_compile=`echo "$ac_compile" | $SED \
6703 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6704 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6705 -e 's:$: $lt_compiler_flag:'`
6706 (eval echo "\"\$as_me:6726: $lt_compile\"" >&5)
6707 (eval "$lt_compile" 2>conftest.err)
6708 ac_status=$?
6709 cat conftest.err >&5
6710 echo "$as_me:6730: \$? = $ac_status" >&5
6711 if (exit $ac_status) && test -s "$ac_outfile"; then
6712 # The compiler can only warn and ignore the option if not recognized
6713 # So say no if there are warnings other than the usual output.
6714 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6715 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6716 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6717 lt_prog_compiler_pic_works=yes
6718 fi
6719 fi
6720 $RM conftest*
6721
6722 fi
6723 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6724 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6725
6726 if test x"$lt_prog_compiler_pic_works" = xyes; then
6727 case $lt_prog_compiler_pic in
6728 "" | " "*) ;;
6729 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6730 esac
6731 else
6732 lt_prog_compiler_pic=
6733 lt_prog_compiler_can_build_shared=no
6734 fi
6735
6736 fi
6737
6738
6739
6740
6741
6742
6743 #
6744 # Check to make sure the static flag actually works.
6745 #
6746 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6747 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6748 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6749 if test "${lt_prog_compiler_static_works+set}" = set; then
6750 echo $ECHO_N "(cached) $ECHO_C" >&6
6751 else
6752 lt_prog_compiler_static_works=no
6753 save_LDFLAGS="$LDFLAGS"
6754 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6755 echo "$lt_simple_link_test_code" > conftest.$ac_ext
6756 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6757 # The linker can only warn and ignore the option if not recognized
6758 # So say no if there are warnings
6759 if test -s conftest.err; then
6760 # Append any errors to the config.log.
6761 cat conftest.err 1>&5
6762 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6763 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6764 if diff conftest.exp conftest.er2 >/dev/null; then
6765 lt_prog_compiler_static_works=yes
6766 fi
6767 else
6768 lt_prog_compiler_static_works=yes
6769 fi
6770 fi
6771 $RM conftest*
6772 LDFLAGS="$save_LDFLAGS"
6773
6774 fi
6775 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6776 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6777
6778 if test x"$lt_prog_compiler_static_works" = xyes; then
6779 :
6780 else
6781 lt_prog_compiler_static=
6782 fi
6783
6784
6785
6786
6787
6788
6789
6790 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6791 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6792 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6793 echo $ECHO_N "(cached) $ECHO_C" >&6
6794 else
6795 lt_cv_prog_compiler_c_o=no
6796 $RM -r conftest 2>/dev/null
6797 mkdir conftest
6798 cd conftest
6799 mkdir out
6800 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6801
6802 lt_compiler_flag="-o out/conftest2.$ac_objext"
6803 # Insert the option either (1) after the last *FLAGS variable, or
6804 # (2) before a word containing "conftest.", or (3) at the end.
6805 # Note that $ac_compile itself does not contain backslashes and begins
6806 # with a dollar sign (not a hyphen), so the echo should work correctly.
6807 lt_compile=`echo "$ac_compile" | $SED \
6808 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6809 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6810 -e 's:$: $lt_compiler_flag:'`
6811 (eval echo "\"\$as_me:6831: $lt_compile\"" >&5)
6812 (eval "$lt_compile" 2>out/conftest.err)
6813 ac_status=$?
6814 cat out/conftest.err >&5
6815 echo "$as_me:6835: \$? = $ac_status" >&5
6816 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6817 then
6818 # The compiler can only warn and ignore the option if not recognized
6819 # So say no if there are warnings
6820 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6821 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6822 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6823 lt_cv_prog_compiler_c_o=yes
6824 fi
6825 fi
6826 chmod u+w . 2>&5
6827 $RM conftest*
6828 # SGI C++ compiler will create directory out/ii_files/ for
6829 # template instantiation
6830 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6831 $RM out/* && rmdir out
6832 cd ..
6833 $RM -r conftest
6834 $RM conftest*
6835
6836 fi
6837 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6838 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6839
6840
6841
6842
6843
6844
6845 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6846 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6847 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6848 echo $ECHO_N "(cached) $ECHO_C" >&6
6849 else
6850 lt_cv_prog_compiler_c_o=no
6851 $RM -r conftest 2>/dev/null
6852 mkdir conftest
6853 cd conftest
6854 mkdir out
6855 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6856
6857 lt_compiler_flag="-o out/conftest2.$ac_objext"
6858 # Insert the option either (1) after the last *FLAGS variable, or
6859 # (2) before a word containing "conftest.", or (3) at the end.
6860 # Note that $ac_compile itself does not contain backslashes and begins
6861 # with a dollar sign (not a hyphen), so the echo should work correctly.
6862 lt_compile=`echo "$ac_compile" | $SED \
6863 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6864 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6865 -e 's:$: $lt_compiler_flag:'`
6866 (eval echo "\"\$as_me:6886: $lt_compile\"" >&5)
6867 (eval "$lt_compile" 2>out/conftest.err)
6868 ac_status=$?
6869 cat out/conftest.err >&5
6870 echo "$as_me:6890: \$? = $ac_status" >&5
6871 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6872 then
6873 # The compiler can only warn and ignore the option if not recognized
6874 # So say no if there are warnings
6875 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6876 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6877 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6878 lt_cv_prog_compiler_c_o=yes
6879 fi
6880 fi
6881 chmod u+w . 2>&5
6882 $RM conftest*
6883 # SGI C++ compiler will create directory out/ii_files/ for
6884 # template instantiation
6885 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6886 $RM out/* && rmdir out
6887 cd ..
6888 $RM -r conftest
6889 $RM conftest*
6890
6891 fi
6892 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6893 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6894
6895
6896
6897
6898 hard_links="nottested"
6899 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6900 # do not overwrite the value of need_locks provided by the user
6901 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6902 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6903 hard_links=yes
6904 $RM conftest*
6905 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6906 touch conftest.a
6907 ln conftest.a conftest.b 2>&5 || hard_links=no
6908 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6909 echo "$as_me:$LINENO: result: $hard_links" >&5
6910 echo "${ECHO_T}$hard_links" >&6
6911 if test "$hard_links" = no; then
6912 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6913 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6914 need_locks=warn
6915 fi
6916 else
6917 need_locks=no
6918 fi
6919
6920
6921
6922
6923
6924
6925 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6926 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6927
6928 runpath_var=
6929 allow_undefined_flag=
6930 always_export_symbols=no
6931 archive_cmds=
6932 archive_expsym_cmds=
6933 compiler_needs_object=no
6934 enable_shared_with_static_runtimes=no
6935 export_dynamic_flag_spec=
6936 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6937 hardcode_automatic=no
6938 hardcode_direct=no
6939 hardcode_direct_absolute=no
6940 hardcode_libdir_flag_spec=
6941 hardcode_libdir_flag_spec_ld=
6942 hardcode_libdir_separator=
6943 hardcode_minus_L=no
6944 hardcode_shlibpath_var=unsupported
6945 inherit_rpath=no
6946 link_all_deplibs=unknown
6947 module_cmds=
6948 module_expsym_cmds=
6949 old_archive_from_new_cmds=
6950 old_archive_from_expsyms_cmds=
6951 thread_safe_flag_spec=
6952 whole_archive_flag_spec=
6953 # include_expsyms should be a list of space-separated symbols to be *always*
6954 # included in the symbol list
6955 include_expsyms=
6956 # exclude_expsyms can be an extended regexp of symbols to exclude
6957 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6958 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6959 # as well as any symbol that contains `d'.
6960 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6961 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6962 # platforms (ab)use it in PIC code, but their linkers get confused if
6963 # the symbol is explicitly referenced. Since portable code cannot
6964 # rely on this symbol name, it's probably fine to never include it in
6965 # preloaded symbol tables.
6966 extract_expsyms_cmds=
6967
6968 case $host_os in
6969 cygwin* | mingw* | pw32*)
6970 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6971 # When not using gcc, we currently assume that we are using
6972 # Microsoft Visual C++.
6973 if test "$GCC" != yes; then
6974 with_gnu_ld=no
6975 fi
6976 ;;
6977 interix*)
6978 # we just hope/assume this is gcc and not c89 (= MSVC++)
6979 with_gnu_ld=yes
6980 ;;
6981 openbsd*)
6982 with_gnu_ld=no
6983 ;;
6984 esac
6985
6986 ld_shlibs=yes
6987 if test "$with_gnu_ld" = yes; then
6988 # If archive_cmds runs LD, not CC, wlarc should be empty
6989 wlarc='${wl}'
6990
6991 # Set some defaults for GNU ld with shared library support. These
6992 # are reset later if shared libraries are not supported. Putting them
6993 # here allows them to be overridden if necessary.
6994 runpath_var=LD_RUN_PATH
6995 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6996 export_dynamic_flag_spec='${wl}--export-dynamic'
6997 # ancient GNU ld didn't support --whole-archive et. al.
6998 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
6999 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7000 else
7001 whole_archive_flag_spec=
7002 fi
7003 supports_anon_versioning=no
7004 case `$LD -v 2>&1` in
7005 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7006 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7007 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7008 *\ 2.11.*) ;; # other 2.11 versions
7009 *) supports_anon_versioning=yes ;;
7010 esac
7011
7012 # See if GNU ld supports shared libraries.
7013 case $host_os in
7014 aix[3-9]*)
7015 # On AIX/PPC, the GNU linker is very broken
7016 if test "$host_cpu" != ia64; then
7017 ld_shlibs=no
7018 cat <<_LT_EOF 1>&2
7019
7020 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7021 *** to be unable to reliably create shared libraries on AIX.
7022 *** Therefore, libtool is disabling shared libraries support. If you
7023 *** really care for shared libraries, you may want to modify your PATH
7024 *** so that a non-GNU linker is found, and then restart.
7025
7026 _LT_EOF
7027 fi
7028 ;;
7029
7030 amigaos*)
7031 if test "$host_cpu" = m68k; then
7032 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)'
7033 hardcode_libdir_flag_spec='-L$libdir'
7034 hardcode_minus_L=yes
7035 fi
7036
7037 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7038 # that the semantics of dynamic libraries on AmigaOS, at least up
7039 # to version 4, is to share data among multiple programs linked
7040 # with the same dynamic library. Since this doesn't match the
7041 # behavior of shared libraries on other platforms, we can't use
7042 # them.
7043 ld_shlibs=no
7044 ;;
7045
7046 beos*)
7047 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7048 allow_undefined_flag=unsupported
7049 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7050 # support --undefined. This deserves some investigation. FIXME
7051 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7052 else
7053 ld_shlibs=no
7054 fi
7055 ;;
7056
7057 cygwin* | mingw* | pw32*)
7058 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7059 # as there is no search path for DLLs.
7060 hardcode_libdir_flag_spec='-L$libdir'
7061 allow_undefined_flag=unsupported
7062 always_export_symbols=no
7063 enable_shared_with_static_runtimes=yes
7064 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7065
7066 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7067 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7068 # If the export-symbols file already is a .def file (1st line
7069 # is EXPORTS), use it as is; otherwise, prepend...
7070 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7071 cp $export_symbols $output_objdir/$soname.def;
7072 else
7073 echo EXPORTS > $output_objdir/$soname.def;
7074 cat $export_symbols >> $output_objdir/$soname.def;
7075 fi~
7076 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7077 else
7078 ld_shlibs=no
7079 fi
7080 ;;
7081
7082 interix[3-9]*)
7083 hardcode_direct=no
7084 hardcode_shlibpath_var=no
7085 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7086 export_dynamic_flag_spec='${wl}-E'
7087 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7088 # Instead, shared libraries are loaded at an image base (0x10000000 by
7089 # default) and relocated if they conflict, which is a slow very memory
7090 # consuming and fragmenting process. To avoid this, we pick a random,
7091 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7092 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7093 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7094 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'
7095 ;;
7096
7097 gnu* | linux* | tpf* | k*bsd*-gnu)
7098 tmp_diet=no
7099 if test "$host_os" = linux-dietlibc; then
7100 case $cc_basename in
7101 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7102 esac
7103 fi
7104 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7105 && test "$tmp_diet" = no
7106 then
7107 tmp_addflag=
7108 case $cc_basename,$host_cpu in
7109 pgcc*) # Portland Group C compiler
7110 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'
7111 tmp_addflag=' $pic_flag'
7112 ;;
7113 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7114 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'
7115 tmp_addflag=' $pic_flag -Mnomain' ;;
7116 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7117 tmp_addflag=' -i_dynamic' ;;
7118 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7119 tmp_addflag=' -i_dynamic -nofor_main' ;;
7120 ifc* | ifort*) # Intel Fortran compiler
7121 tmp_addflag=' -nofor_main' ;;
7122 esac
7123 case `$CC -V 2>&1 | sed 5q` in
7124 *Sun\ C*) # Sun C 5.9
7125 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'
7126 compiler_needs_object=yes
7127 tmp_sharedflag='-G' ;;
7128 *Sun\ F*) # Sun Fortran 8.3
7129 tmp_sharedflag='-G' ;;
7130 *)
7131 tmp_sharedflag='-shared' ;;
7132 esac
7133 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7134
7135 if test "x$supports_anon_versioning" = xyes; then
7136 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7137 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7138 echo "local: *; };" >> $output_objdir/$libname.ver~
7139 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7140 fi
7141 else
7142 ld_shlibs=no
7143 fi
7144 ;;
7145
7146 netbsd*)
7147 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7148 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7149 wlarc=
7150 else
7151 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7152 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7153 fi
7154 ;;
7155
7156 solaris*)
7157 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7158 ld_shlibs=no
7159 cat <<_LT_EOF 1>&2
7160
7161 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7162 *** create shared libraries on Solaris systems. Therefore, libtool
7163 *** is disabling shared libraries support. We urge you to upgrade GNU
7164 *** binutils to release 2.9.1 or newer. Another option is to modify
7165 *** your PATH or compiler configuration so that the native linker is
7166 *** used, and then restart.
7167
7168 _LT_EOF
7169 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7170 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7171 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7172 else
7173 ld_shlibs=no
7174 fi
7175 ;;
7176
7177 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7178 case `$LD -v 2>&1` in
7179 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7180 ld_shlibs=no
7181 cat <<_LT_EOF 1>&2
7182
7183 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7184 *** reliably create shared libraries on SCO systems. Therefore, libtool
7185 *** is disabling shared libraries support. We urge you to upgrade GNU
7186 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7187 *** your PATH or compiler configuration so that the native linker is
7188 *** used, and then restart.
7189
7190 _LT_EOF
7191 ;;
7192 *)
7193 # For security reasons, it is highly recommended that you always
7194 # use absolute paths for naming shared libraries, and exclude the
7195 # DT_RUNPATH tag from executables and libraries. But doing so
7196 # requires that you compile everything twice, which is a pain.
7197 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7198 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7199 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7200 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7201 else
7202 ld_shlibs=no
7203 fi
7204 ;;
7205 esac
7206 ;;
7207
7208 sunos4*)
7209 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7210 wlarc=
7211 hardcode_direct=yes
7212 hardcode_shlibpath_var=no
7213 ;;
7214
7215 *)
7216 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7217 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7218 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7219 else
7220 ld_shlibs=no
7221 fi
7222 ;;
7223 esac
7224
7225 if test "$ld_shlibs" = no; then
7226 runpath_var=
7227 hardcode_libdir_flag_spec=
7228 export_dynamic_flag_spec=
7229 whole_archive_flag_spec=
7230 fi
7231 else
7232 # PORTME fill in a description of your system's linker (not GNU ld)
7233 case $host_os in
7234 aix3*)
7235 allow_undefined_flag=unsupported
7236 always_export_symbols=yes
7237 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'
7238 # Note: this linker hardcodes the directories in LIBPATH if there
7239 # are no directories specified by -L.
7240 hardcode_minus_L=yes
7241 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7242 # Neither direct hardcoding nor static linking is supported with a
7243 # broken collect2.
7244 hardcode_direct=unsupported
7245 fi
7246 ;;
7247
7248 aix[4-9]*)
7249 if test "$host_cpu" = ia64; then
7250 # On IA64, the linker does run time linking by default, so we don't
7251 # have to do anything special.
7252 aix_use_runtimelinking=no
7253 exp_sym_flag='-Bexport'
7254 no_entry_flag=""
7255 else
7256 # If we're using GNU nm, then we don't want the "-C" option.
7257 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7258 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7259 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'
7260 else
7261 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'
7262 fi
7263 aix_use_runtimelinking=no
7264
7265 # Test if we are trying to use run time linking or normal
7266 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7267 # need to do runtime linking.
7268 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7269 for ld_flag in $LDFLAGS; do
7270 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7271 aix_use_runtimelinking=yes
7272 break
7273 fi
7274 done
7275 ;;
7276 esac
7277
7278 exp_sym_flag='-bexport'
7279 no_entry_flag='-bnoentry'
7280 fi
7281
7282 # When large executables or shared objects are built, AIX ld can
7283 # have problems creating the table of contents. If linking a library
7284 # or program results in "error TOC overflow" add -mminimal-toc to
7285 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7286 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7287
7288 archive_cmds=''
7289 hardcode_direct=yes
7290 hardcode_direct_absolute=yes
7291 hardcode_libdir_separator=':'
7292 link_all_deplibs=yes
7293 file_list_spec='${wl}-f,'
7294
7295 if test "$GCC" = yes; then
7296 case $host_os in aix4.[012]|aix4.[012].*)
7297 # We only want to do this on AIX 4.2 and lower, the check
7298 # below for broken collect2 doesn't work under 4.3+
7299 collect2name=`${CC} -print-prog-name=collect2`
7300 if test -f "$collect2name" &&
7301 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7302 then
7303 # We have reworked collect2
7304 :
7305 else
7306 # We have old collect2
7307 hardcode_direct=unsupported
7308 # It fails to find uninstalled libraries when the uninstalled
7309 # path is not listed in the libpath. Setting hardcode_minus_L
7310 # to unsupported forces relinking
7311 hardcode_minus_L=yes
7312 hardcode_libdir_flag_spec='-L$libdir'
7313 hardcode_libdir_separator=
7314 fi
7315 ;;
7316 esac
7317 shared_flag='-shared'
7318 if test "$aix_use_runtimelinking" = yes; then
7319 shared_flag="$shared_flag "'${wl}-G'
7320 fi
7321 else
7322 # not using gcc
7323 if test "$host_cpu" = ia64; then
7324 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7325 # chokes on -Wl,-G. The following line is correct:
7326 shared_flag='-G'
7327 else
7328 if test "$aix_use_runtimelinking" = yes; then
7329 shared_flag='${wl}-G'
7330 else
7331 shared_flag='${wl}-bM:SRE'
7332 fi
7333 fi
7334 fi
7335
7336 # It seems that -bexpall does not export symbols beginning with
7337 # underscore (_), so it is better to generate a list of symbols to export.
7338 always_export_symbols=yes
7339 if test "$aix_use_runtimelinking" = yes; then
7340 # Warning - without using the other runtime loading flags (-brtl),
7341 # -berok will link without error, but may produce a broken library.
7342 allow_undefined_flag='-berok'
7343 # Determine the default libpath from the value encoded in an
7344 # empty executable.
7345 cat >conftest.$ac_ext <<_ACEOF
7346 /* confdefs.h. */
7347 _ACEOF
7348 cat confdefs.h >>conftest.$ac_ext
7349 cat >>conftest.$ac_ext <<_ACEOF
7350 /* end confdefs.h. */
7351
7352 int
7353 main ()
7354 {
7355
7356 ;
7357 return 0;
7358 }
7359 _ACEOF
7360 rm -f conftest.$ac_objext conftest$ac_exeext
7361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7362 (eval $ac_link) 2>conftest.er1
7363 ac_status=$?
7364 grep -v '^ *+' conftest.er1 >conftest.err
7365 rm -f conftest.er1
7366 cat conftest.err >&5
7367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7368 (exit $ac_status); } &&
7369 { ac_try='test -z "$ac_c_werror_flag"
7370 || test ! -s conftest.err'
7371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7372 (eval $ac_try) 2>&5
7373 ac_status=$?
7374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7375 (exit $ac_status); }; } &&
7376 { ac_try='test -s conftest$ac_exeext'
7377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7378 (eval $ac_try) 2>&5
7379 ac_status=$?
7380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7381 (exit $ac_status); }; }; then
7382
7383 lt_aix_libpath_sed='
7384 /Import File Strings/,/^$/ {
7385 /^0/ {
7386 s/^0 *\(.*\)$/\1/
7387 p
7388 }
7389 }'
7390 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7391 # Check for a 64-bit object if we didn't find anything.
7392 if test -z "$aix_libpath"; then
7393 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7394 fi
7395 else
7396 echo "$as_me: failed program was:" >&5
7397 sed 's/^/| /' conftest.$ac_ext >&5
7398
7399 fi
7400 rm -f conftest.err conftest.$ac_objext \
7401 conftest$ac_exeext conftest.$ac_ext
7402 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7403
7404 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7405 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"
7406 else
7407 if test "$host_cpu" = ia64; then
7408 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7409 allow_undefined_flag="-z nodefs"
7410 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"
7411 else
7412 # Determine the default libpath from the value encoded in an
7413 # empty executable.
7414 cat >conftest.$ac_ext <<_ACEOF
7415 /* confdefs.h. */
7416 _ACEOF
7417 cat confdefs.h >>conftest.$ac_ext
7418 cat >>conftest.$ac_ext <<_ACEOF
7419 /* end confdefs.h. */
7420
7421 int
7422 main ()
7423 {
7424
7425 ;
7426 return 0;
7427 }
7428 _ACEOF
7429 rm -f conftest.$ac_objext conftest$ac_exeext
7430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7431 (eval $ac_link) 2>conftest.er1
7432 ac_status=$?
7433 grep -v '^ *+' conftest.er1 >conftest.err
7434 rm -f conftest.er1
7435 cat conftest.err >&5
7436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7437 (exit $ac_status); } &&
7438 { ac_try='test -z "$ac_c_werror_flag"
7439 || test ! -s conftest.err'
7440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7441 (eval $ac_try) 2>&5
7442 ac_status=$?
7443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7444 (exit $ac_status); }; } &&
7445 { ac_try='test -s conftest$ac_exeext'
7446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7447 (eval $ac_try) 2>&5
7448 ac_status=$?
7449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7450 (exit $ac_status); }; }; then
7451
7452 lt_aix_libpath_sed='
7453 /Import File Strings/,/^$/ {
7454 /^0/ {
7455 s/^0 *\(.*\)$/\1/
7456 p
7457 }
7458 }'
7459 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7460 # Check for a 64-bit object if we didn't find anything.
7461 if test -z "$aix_libpath"; then
7462 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7463 fi
7464 else
7465 echo "$as_me: failed program was:" >&5
7466 sed 's/^/| /' conftest.$ac_ext >&5
7467
7468 fi
7469 rm -f conftest.err conftest.$ac_objext \
7470 conftest$ac_exeext conftest.$ac_ext
7471 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7472
7473 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7474 # Warning - without using the other run time loading flags,
7475 # -berok will link without error, but may produce a broken library.
7476 no_undefined_flag=' ${wl}-bernotok'
7477 allow_undefined_flag=' ${wl}-berok'
7478 # Exported symbols can be pulled into shared objects from archives
7479 whole_archive_flag_spec='$convenience'
7480 archive_cmds_need_lc=yes
7481 # This is similar to how AIX traditionally builds its shared libraries.
7482 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'
7483 fi
7484 fi
7485 ;;
7486
7487 amigaos*)
7488 if test "$host_cpu" = m68k; then
7489 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)'
7490 hardcode_libdir_flag_spec='-L$libdir'
7491 hardcode_minus_L=yes
7492 fi
7493 # see comment about different semantics on the GNU ld section
7494 ld_shlibs=no
7495 ;;
7496
7497 bsdi[45]*)
7498 export_dynamic_flag_spec=-rdynamic
7499 ;;
7500
7501 cygwin* | mingw* | pw32*)
7502 # When not using gcc, we currently assume that we are using
7503 # Microsoft Visual C++.
7504 # hardcode_libdir_flag_spec is actually meaningless, as there is
7505 # no search path for DLLs.
7506 hardcode_libdir_flag_spec=' '
7507 allow_undefined_flag=unsupported
7508 # Tell ltmain to make .lib files, not .a files.
7509 libext=lib
7510 # Tell ltmain to make .dll files, not .so files.
7511 shrext_cmds=".dll"
7512 # FIXME: Setting linknames here is a bad hack.
7513 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7514 # The linker will automatically build a .lib file if we build a DLL.
7515 old_archive_from_new_cmds='true'
7516 # FIXME: Should let the user specify the lib program.
7517 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7518 fix_srcfile_path='`cygpath -w "$srcfile"`'
7519 enable_shared_with_static_runtimes=yes
7520 ;;
7521
7522 darwin* | rhapsody*)
7523 case $host_os in
7524 rhapsody* | darwin1.[012])
7525 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7526 ;;
7527 *) # Darwin 1.3 on
7528 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7529 10.[012])
7530 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7531 ;;
7532 10.*)
7533 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7534 ;;
7535 esac
7536 ;;
7537 esac
7538 archive_cmds_need_lc=no
7539 hardcode_direct=no
7540 hardcode_automatic=yes
7541 hardcode_shlibpath_var=unsupported
7542 whole_archive_flag_spec=''
7543 link_all_deplibs=yes
7544 if test "$GCC" = yes ; then
7545 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7546 echo $ECHO_N "(cached) $ECHO_C" >&6
7547 else
7548 lt_cv_apple_cc_single_mod=no
7549 if test -z "${LT_MULTI_MODULE}"; then
7550 # By default we will add the -single_module flag. You can override
7551 # by either setting the environment variable LT_MULTI_MODULE
7552 # non-empty at configure time, or by adding -multi-module to the
7553 # link flags.
7554 echo "int foo(void){return 1;}" > conftest.c
7555 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7556 -dynamiclib ${wl}-single_module conftest.c
7557 if test -f libconftest.dylib; then
7558 lt_cv_apple_cc_single_mod=yes
7559 rm libconftest.dylib
7560 fi
7561 rm conftest.$ac_ext
7562 fi
7563 fi
7564
7565 output_verbose_link_cmd=echo
7566 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
7567 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7568 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}'
7569 else
7570 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7571 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}'
7572 fi
7573 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7574 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}'
7575 else
7576 case $cc_basename in
7577 xlc*)
7578 output_verbose_link_cmd=echo
7579 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
7580 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7581 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7582 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}'
7583 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}'
7584 ;;
7585 *)
7586 ld_shlibs=no
7587 ;;
7588 esac
7589 fi
7590 ;;
7591
7592 dgux*)
7593 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7594 hardcode_libdir_flag_spec='-L$libdir'
7595 hardcode_shlibpath_var=no
7596 ;;
7597
7598 freebsd1*)
7599 ld_shlibs=no
7600 ;;
7601
7602 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7603 # support. Future versions do this automatically, but an explicit c++rt0.o
7604 # does not break anything, and helps significantly (at the cost of a little
7605 # extra space).
7606 freebsd2.2*)
7607 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7608 hardcode_libdir_flag_spec='-R$libdir'
7609 hardcode_direct=yes
7610 hardcode_shlibpath_var=no
7611 ;;
7612
7613 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7614 freebsd2*)
7615 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7616 hardcode_direct=yes
7617 hardcode_minus_L=yes
7618 hardcode_shlibpath_var=no
7619 ;;
7620
7621 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7622 freebsd* | dragonfly*)
7623 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7624 hardcode_libdir_flag_spec='-R$libdir'
7625 hardcode_direct=yes
7626 hardcode_shlibpath_var=no
7627 ;;
7628
7629 hpux9*)
7630 if test "$GCC" = yes; then
7631 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'
7632 else
7633 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'
7634 fi
7635 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7636 hardcode_libdir_separator=:
7637 hardcode_direct=yes
7638
7639 # hardcode_minus_L: Not really in the search PATH,
7640 # but as the default location of the library.
7641 hardcode_minus_L=yes
7642 export_dynamic_flag_spec='${wl}-E'
7643 ;;
7644
7645 hpux10*)
7646 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7647 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7648 else
7649 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7650 fi
7651 if test "$with_gnu_ld" = no; then
7652 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7653 hardcode_libdir_flag_spec_ld='+b $libdir'
7654 hardcode_libdir_separator=:
7655 hardcode_direct=yes
7656 hardcode_direct_absolute=yes
7657 export_dynamic_flag_spec='${wl}-E'
7658 # hardcode_minus_L: Not really in the search PATH,
7659 # but as the default location of the library.
7660 hardcode_minus_L=yes
7661 fi
7662 ;;
7663
7664 hpux11*)
7665 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7666 case $host_cpu in
7667 hppa*64*)
7668 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7669 ;;
7670 ia64*)
7671 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7672 ;;
7673 *)
7674 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7675 ;;
7676 esac
7677 else
7678 case $host_cpu in
7679 hppa*64*)
7680 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7681 ;;
7682 ia64*)
7683 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7684 ;;
7685 *)
7686 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7687 ;;
7688 esac
7689 fi
7690 if test "$with_gnu_ld" = no; then
7691 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7692 hardcode_libdir_separator=:
7693
7694 case $host_cpu in
7695 hppa*64*|ia64*)
7696 hardcode_direct=no
7697 hardcode_shlibpath_var=no
7698 ;;
7699 *)
7700 hardcode_direct=yes
7701 hardcode_direct_absolute=yes
7702 export_dynamic_flag_spec='${wl}-E'
7703
7704 # hardcode_minus_L: Not really in the search PATH,
7705 # but as the default location of the library.
7706 hardcode_minus_L=yes
7707 ;;
7708 esac
7709 fi
7710 ;;
7711
7712 irix5* | irix6* | nonstopux*)
7713 if test "$GCC" = yes; then
7714 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'
7715 # Try to use the -exported_symbol ld option, if it does not
7716 # work, assume that -exports_file does not work either and
7717 # implicitly export all symbols.
7718 save_LDFLAGS="$LDFLAGS"
7719 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
7720 cat >conftest.$ac_ext <<_ACEOF
7721 int foo(void) {}
7722 _ACEOF
7723 rm -f conftest.$ac_objext conftest$ac_exeext
7724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7725 (eval $ac_link) 2>conftest.er1
7726 ac_status=$?
7727 grep -v '^ *+' conftest.er1 >conftest.err
7728 rm -f conftest.er1
7729 cat conftest.err >&5
7730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7731 (exit $ac_status); } &&
7732 { ac_try='test -z "$ac_c_werror_flag"
7733 || test ! -s conftest.err'
7734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7735 (eval $ac_try) 2>&5
7736 ac_status=$?
7737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7738 (exit $ac_status); }; } &&
7739 { ac_try='test -s conftest$ac_exeext'
7740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7741 (eval $ac_try) 2>&5
7742 ac_status=$?
7743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7744 (exit $ac_status); }; }; then
7745 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'
7746
7747 else
7748 echo "$as_me: failed program was:" >&5
7749 sed 's/^/| /' conftest.$ac_ext >&5
7750
7751 fi
7752 rm -f conftest.err conftest.$ac_objext \
7753 conftest$ac_exeext conftest.$ac_ext
7754 LDFLAGS="$save_LDFLAGS"
7755 else
7756 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'
7757 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'
7758 fi
7759 archive_cmds_need_lc='no'
7760 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7761 hardcode_libdir_separator=:
7762 inherit_rpath=yes
7763 link_all_deplibs=yes
7764 ;;
7765
7766 netbsd*)
7767 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7768 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7769 else
7770 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7771 fi
7772 hardcode_libdir_flag_spec='-R$libdir'
7773 hardcode_direct=yes
7774 hardcode_shlibpath_var=no
7775 ;;
7776
7777 newsos6)
7778 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7779 hardcode_direct=yes
7780 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7781 hardcode_libdir_separator=:
7782 hardcode_shlibpath_var=no
7783 ;;
7784
7785 *nto* | *qnx*)
7786 ;;
7787
7788 openbsd*)
7789 hardcode_direct=yes
7790 hardcode_shlibpath_var=no
7791 hardcode_direct_absolute=yes
7792 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7793 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7794 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7795 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7796 export_dynamic_flag_spec='${wl}-E'
7797 else
7798 case $host_os in
7799 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7800 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7801 hardcode_libdir_flag_spec='-R$libdir'
7802 ;;
7803 *)
7804 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7805 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7806 ;;
7807 esac
7808 fi
7809 ;;
7810
7811 os2*)
7812 hardcode_libdir_flag_spec='-L$libdir'
7813 hardcode_minus_L=yes
7814 allow_undefined_flag=unsupported
7815 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'
7816 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7817 ;;
7818
7819 osf3*)
7820 if test "$GCC" = yes; then
7821 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7822 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'
7823 else
7824 allow_undefined_flag=' -expect_unresolved \*'
7825 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'
7826 fi
7827 archive_cmds_need_lc='no'
7828 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7829 hardcode_libdir_separator=:
7830 ;;
7831
7832 osf4* | osf5*) # as osf3* with the addition of -msym flag
7833 if test "$GCC" = yes; then
7834 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7835 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'
7836 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7837 else
7838 allow_undefined_flag=' -expect_unresolved \*'
7839 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'
7840 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~
7841 $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'
7842
7843 # Both c and cxx compiler support -rpath directly
7844 hardcode_libdir_flag_spec='-rpath $libdir'
7845 fi
7846 archive_cmds_need_lc='no'
7847 hardcode_libdir_separator=:
7848 ;;
7849
7850 solaris*)
7851 no_undefined_flag=' -z defs'
7852 if test "$GCC" = yes; then
7853 wlarc='${wl}'
7854 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7855 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7856 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7857 else
7858 case `$CC -V 2>&1` in
7859 *"Compilers 5.0"*)
7860 wlarc=''
7861 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7862 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7863 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
7864 ;;
7865 *)
7866 wlarc='${wl}'
7867 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
7868 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7869 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7870 ;;
7871 esac
7872 fi
7873 hardcode_libdir_flag_spec='-R$libdir'
7874 hardcode_shlibpath_var=no
7875 case $host_os in
7876 solaris2.[0-5] | solaris2.[0-5].*) ;;
7877 *)
7878 # The compiler driver will combine and reorder linker options,
7879 # but understands `-z linker_flag'. GCC discards it without `$wl',
7880 # but is careful enough not to reorder.
7881 # Supported since Solaris 2.6 (maybe 2.5.1?)
7882 if test "$GCC" = yes; then
7883 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7884 else
7885 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
7886 fi
7887 ;;
7888 esac
7889 link_all_deplibs=yes
7890 ;;
7891
7892 sunos4*)
7893 if test "x$host_vendor" = xsequent; then
7894 # Use $CC to link under sequent, because it throws in some extra .o
7895 # files that make .init and .fini sections work.
7896 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7897 else
7898 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7899 fi
7900 hardcode_libdir_flag_spec='-L$libdir'
7901 hardcode_direct=yes
7902 hardcode_minus_L=yes
7903 hardcode_shlibpath_var=no
7904 ;;
7905
7906 sysv4)
7907 case $host_vendor in
7908 sni)
7909 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7910 hardcode_direct=yes # is this really true???
7911 ;;
7912 siemens)
7913 ## LD is ld it makes a PLAMLIB
7914 ## CC just makes a GrossModule.
7915 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7916 reload_cmds='$CC -r -o $output$reload_objs'
7917 hardcode_direct=no
7918 ;;
7919 motorola)
7920 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7921 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7922 ;;
7923 esac
7924 runpath_var='LD_RUN_PATH'
7925 hardcode_shlibpath_var=no
7926 ;;
7927
7928 sysv4.3*)
7929 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7930 hardcode_shlibpath_var=no
7931 export_dynamic_flag_spec='-Bexport'
7932 ;;
7933
7934 sysv4*MP*)
7935 if test -d /usr/nec; then
7936 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7937 hardcode_shlibpath_var=no
7938 runpath_var=LD_RUN_PATH
7939 hardcode_runpath_var=yes
7940 ld_shlibs=yes
7941 fi
7942 ;;
7943
7944 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
7945 no_undefined_flag='${wl}-z,text'
7946 archive_cmds_need_lc=no
7947 hardcode_shlibpath_var=no
7948 runpath_var='LD_RUN_PATH'
7949
7950 if test "$GCC" = yes; then
7951 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7952 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7953 else
7954 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7955 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7956 fi
7957 ;;
7958
7959 sysv5* | sco3.2v5* | sco5v6*)
7960 # Note: We can NOT use -z defs as we might desire, because we do not
7961 # link with -lc, and that would cause any symbols used from libc to
7962 # always be unresolved, which means just about no library would
7963 # ever link correctly. If we're not using GNU ld we use -z text
7964 # though, which does catch some bad symbols but isn't as heavy-handed
7965 # as -z defs.
7966 no_undefined_flag='${wl}-z,text'
7967 allow_undefined_flag='${wl}-z,nodefs'
7968 archive_cmds_need_lc=no
7969 hardcode_shlibpath_var=no
7970 hardcode_libdir_flag_spec='${wl}-R,$libdir'
7971 hardcode_libdir_separator=':'
7972 link_all_deplibs=yes
7973 export_dynamic_flag_spec='${wl}-Bexport'
7974 runpath_var='LD_RUN_PATH'
7975
7976 if test "$GCC" = yes; then
7977 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7978 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7979 else
7980 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7981 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7982 fi
7983 ;;
7984
7985 uts4*)
7986 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7987 hardcode_libdir_flag_spec='-L$libdir'
7988 hardcode_shlibpath_var=no
7989 ;;
7990
7991 *)
7992 ld_shlibs=no
7993 ;;
7994 esac
7995
7996 if test x$host_vendor = xsni; then
7997 case $host in
7998 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7999 export_dynamic_flag_spec='${wl}-Blargedynsym'
8000 ;;
8001 esac
8002 fi
8003 fi
8004
8005 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8006 echo "${ECHO_T}$ld_shlibs" >&6
8007 test "$ld_shlibs" = no && can_build_shared=no
8008
8009 with_gnu_ld=$with_gnu_ld
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025 #
8026 # Do we need to explicitly link libc?
8027 #
8028 case "x$archive_cmds_need_lc" in
8029 x|xyes)
8030 # Assume -lc should be added
8031 archive_cmds_need_lc=yes
8032
8033 if test "$enable_shared" = yes && test "$GCC" = yes; then
8034 case $archive_cmds in
8035 *'~'*)
8036 # FIXME: we may have to deal with multi-command sequences.
8037 ;;
8038 '$CC '*)
8039 # Test whether the compiler implicitly links with -lc since on some
8040 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8041 # to ld, don't add -lc before -lgcc.
8042 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8043 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8044 $RM conftest*
8045 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8046
8047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8048 (eval $ac_compile) 2>&5
8049 ac_status=$?
8050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051 (exit $ac_status); } 2>conftest.err; then
8052 soname=conftest
8053 lib=conftest
8054 libobjs=conftest.$ac_objext
8055 deplibs=
8056 wl=$lt_prog_compiler_wl
8057 pic_flag=$lt_prog_compiler_pic
8058 compiler_flags=-v
8059 linker_flags=-v
8060 verstring=
8061 output_objdir=.
8062 libname=conftest
8063 lt_save_allow_undefined_flag=$allow_undefined_flag
8064 allow_undefined_flag=
8065 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8066 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8067 ac_status=$?
8068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8069 (exit $ac_status); }
8070 then
8071 archive_cmds_need_lc=no
8072 else
8073 archive_cmds_need_lc=yes
8074 fi
8075 allow_undefined_flag=$lt_save_allow_undefined_flag
8076 else
8077 cat conftest.err 1>&5
8078 fi
8079 $RM conftest*
8080 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8081 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8082 ;;
8083 esac
8084 fi
8085 ;;
8086 esac
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
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 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8245 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8246 withGCC=$GCC
8247 if test "$withGCC" = yes; then
8248 case $host_os in
8249 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8250 *) lt_awk_arg="/^libraries:/" ;;
8251 esac
8252 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8253 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8254 # if the path contains ";" then we assume it to be the separator
8255 # otherwise default to the standard path separator (i.e. ":") - it is
8256 # assumed that no part of a normal pathname contains ";" but that should
8257 # okay in the real world where ";" in dirpaths is itself problematic.
8258 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8259 else
8260 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8261 fi
8262 # Ok, now we have the path, separated by spaces, we can step through it
8263 # and add multilib dir if necessary.
8264 lt_tmp_lt_search_path_spec=
8265 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8266 for lt_sys_path in $lt_search_path_spec; do
8267 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8268 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8269 else
8270 test -d "$lt_sys_path" && \
8271 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8272 fi
8273 done
8274 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8275 BEGIN {RS=" "; FS="/|\n";} {
8276 lt_foo="";
8277 lt_count=0;
8278 for (lt_i = NF; lt_i > 0; lt_i--) {
8279 if ($lt_i != "" && $lt_i != ".") {
8280 if ($lt_i == "..") {
8281 lt_count++;
8282 } else {
8283 if (lt_count == 0) {
8284 lt_foo="/" $lt_i lt_foo;
8285 } else {
8286 lt_count--;
8287 }
8288 }
8289 }
8290 }
8291 if (lt_foo != "") { lt_freq[lt_foo]++; }
8292 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8293 }'`
8294 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8295 else
8296 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8297 fi
8298 library_names_spec=
8299 libname_spec='lib$name'
8300 soname_spec=
8301 shrext_cmds=".so"
8302 postinstall_cmds=
8303 postuninstall_cmds=
8304 finish_cmds=
8305 finish_eval=
8306 shlibpath_var=
8307 shlibpath_overrides_runpath=unknown
8308 version_type=none
8309 dynamic_linker="$host_os ld.so"
8310 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8311 need_lib_prefix=unknown
8312 hardcode_into_libs=no
8313
8314 # when you set need_version to no, make sure it does not cause -set_version
8315 # flags to be left without arguments
8316 need_version=unknown
8317
8318 case $host_os in
8319 aix3*)
8320 version_type=linux
8321 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8322 shlibpath_var=LIBPATH
8323
8324 # AIX 3 has no versioning support, so we append a major version to the name.
8325 soname_spec='${libname}${release}${shared_ext}$major'
8326 ;;
8327
8328 aix[4-9]*)
8329 version_type=linux
8330 need_lib_prefix=no
8331 need_version=no
8332 hardcode_into_libs=yes
8333 if test "$host_cpu" = ia64; then
8334 # AIX 5 supports IA64
8335 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8336 shlibpath_var=LD_LIBRARY_PATH
8337 else
8338 # With GCC up to 2.95.x, collect2 would create an import file
8339 # for dependence libraries. The import file would start with
8340 # the line `#! .'. This would cause the generated library to
8341 # depend on `.', always an invalid library. This was fixed in
8342 # development snapshots of GCC prior to 3.0.
8343 case $host_os in
8344 aix4 | aix4.[01] | aix4.[01].*)
8345 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8346 echo ' yes '
8347 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8348 :
8349 else
8350 can_build_shared=no
8351 fi
8352 ;;
8353 esac
8354 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8355 # soname into executable. Probably we can add versioning support to
8356 # collect2, so additional links can be useful in future.
8357 if test "$aix_use_runtimelinking" = yes; then
8358 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8359 # instead of lib<name>.a to let people know that these are not
8360 # typical AIX shared libraries.
8361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8362 else
8363 # We preserve .a as extension for shared libraries through AIX4.2
8364 # and later when we are not doing run time linking.
8365 library_names_spec='${libname}${release}.a $libname.a'
8366 soname_spec='${libname}${release}${shared_ext}$major'
8367 fi
8368 shlibpath_var=LIBPATH
8369 fi
8370 ;;
8371
8372 amigaos*)
8373 if test "$host_cpu" = m68k; then
8374 library_names_spec='$libname.ixlibrary $libname.a'
8375 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8376 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'
8377 else
8378 dynamic_linker=no
8379 fi
8380 ;;
8381
8382 beos*)
8383 library_names_spec='${libname}${shared_ext}'
8384 dynamic_linker="$host_os ld.so"
8385 shlibpath_var=LIBRARY_PATH
8386 ;;
8387
8388 bsdi[45]*)
8389 version_type=linux
8390 need_version=no
8391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8392 soname_spec='${libname}${release}${shared_ext}$major'
8393 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8394 shlibpath_var=LD_LIBRARY_PATH
8395 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8396 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8397 # the default ld.so.conf also contains /usr/contrib/lib and
8398 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8399 # libtool to hard-code these into programs
8400 ;;
8401
8402 cygwin* | mingw* | pw32*)
8403 version_type=windows
8404 shrext_cmds=".dll"
8405 need_version=no
8406 need_lib_prefix=no
8407
8408 case $withGCC,$host_os in
8409 yes,cygwin* | yes,mingw* | yes,pw32*)
8410 library_names_spec='$libname.dll.a'
8411 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8412 postinstall_cmds='base_file=`basename \${file}`~
8413 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8414 dldir=$destdir/`dirname \$dlpath`~
8415 test -d \$dldir || mkdir -p \$dldir~
8416 $install_prog $dir/$dlname \$dldir/$dlname~
8417 chmod a+x \$dldir/$dlname~
8418 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8419 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8420 fi'
8421 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8422 dlpath=$dir/\$dldll~
8423 $RM \$dlpath'
8424 shlibpath_overrides_runpath=yes
8425
8426 case $host_os in
8427 cygwin*)
8428 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8429 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8430 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8431 ;;
8432 mingw*)
8433 # MinGW DLLs use traditional 'lib' prefix
8434 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8435 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8436 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8437 # It is most probably a Windows format PATH printed by
8438 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8439 # path with ; separators, and with drive letters. We can handle the
8440 # drive letters (cygwin fileutils understands them), so leave them,
8441 # especially as we might pass files found there to a mingw objdump,
8442 # which wouldn't understand a cygwinified path. Ahh.
8443 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8444 else
8445 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8446 fi
8447 ;;
8448 pw32*)
8449 # pw32 DLLs use 'pw' prefix rather than 'lib'
8450 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8451 ;;
8452 esac
8453 ;;
8454
8455 *)
8456 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8457 ;;
8458 esac
8459 dynamic_linker='Win32 ld.exe'
8460 # FIXME: first we should search . and the directory the executable is in
8461 shlibpath_var=PATH
8462 ;;
8463
8464 darwin* | rhapsody*)
8465 dynamic_linker="$host_os dyld"
8466 version_type=darwin
8467 need_lib_prefix=no
8468 need_version=no
8469 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8470 soname_spec='${libname}${release}${major}$shared_ext'
8471 shlibpath_overrides_runpath=yes
8472 shlibpath_var=DYLD_LIBRARY_PATH
8473 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8474
8475 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8476 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8477 ;;
8478
8479 dgux*)
8480 version_type=linux
8481 need_lib_prefix=no
8482 need_version=no
8483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8484 soname_spec='${libname}${release}${shared_ext}$major'
8485 shlibpath_var=LD_LIBRARY_PATH
8486 ;;
8487
8488 freebsd1*)
8489 dynamic_linker=no
8490 ;;
8491
8492 freebsd* | dragonfly*)
8493 # DragonFly does not have aout. When/if they implement a new
8494 # versioning mechanism, adjust this.
8495 if test -x /usr/bin/objformat; then
8496 objformat=`/usr/bin/objformat`
8497 else
8498 case $host_os in
8499 freebsd[123]*) objformat=aout ;;
8500 *) objformat=elf ;;
8501 esac
8502 fi
8503 version_type=freebsd-$objformat
8504 case $version_type in
8505 freebsd-elf*)
8506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8507 need_version=no
8508 need_lib_prefix=no
8509 ;;
8510 freebsd-*)
8511 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8512 need_version=yes
8513 ;;
8514 esac
8515 shlibpath_var=LD_LIBRARY_PATH
8516 case $host_os in
8517 freebsd2*)
8518 shlibpath_overrides_runpath=yes
8519 ;;
8520 freebsd3.[01]* | freebsdelf3.[01]*)
8521 shlibpath_overrides_runpath=yes
8522 hardcode_into_libs=yes
8523 ;;
8524 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8525 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8526 shlibpath_overrides_runpath=no
8527 hardcode_into_libs=yes
8528 ;;
8529 *) # from 4.6 on, and DragonFly
8530 shlibpath_overrides_runpath=yes
8531 hardcode_into_libs=yes
8532 ;;
8533 esac
8534 ;;
8535
8536 gnu*)
8537 version_type=linux
8538 need_lib_prefix=no
8539 need_version=no
8540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8541 soname_spec='${libname}${release}${shared_ext}$major'
8542 shlibpath_var=LD_LIBRARY_PATH
8543 hardcode_into_libs=yes
8544 ;;
8545
8546 hpux9* | hpux10* | hpux11*)
8547 # Give a soname corresponding to the major version so that dld.sl refuses to
8548 # link against other versions.
8549 version_type=sunos
8550 need_lib_prefix=no
8551 need_version=no
8552 case $host_cpu in
8553 ia64*)
8554 shrext_cmds='.so'
8555 hardcode_into_libs=yes
8556 dynamic_linker="$host_os dld.so"
8557 shlibpath_var=LD_LIBRARY_PATH
8558 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8560 soname_spec='${libname}${release}${shared_ext}$major'
8561 if test "X$HPUX_IA64_MODE" = X32; then
8562 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8563 else
8564 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8565 fi
8566 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8567 ;;
8568 hppa*64*)
8569 shrext_cmds='.sl'
8570 hardcode_into_libs=yes
8571 dynamic_linker="$host_os dld.sl"
8572 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8573 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8575 soname_spec='${libname}${release}${shared_ext}$major'
8576 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8577 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8578 ;;
8579 *)
8580 shrext_cmds='.sl'
8581 dynamic_linker="$host_os dld.sl"
8582 shlibpath_var=SHLIB_PATH
8583 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8585 soname_spec='${libname}${release}${shared_ext}$major'
8586 ;;
8587 esac
8588 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8589 postinstall_cmds='chmod 555 $lib'
8590 ;;
8591
8592 interix[3-9]*)
8593 version_type=linux
8594 need_lib_prefix=no
8595 need_version=no
8596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8597 soname_spec='${libname}${release}${shared_ext}$major'
8598 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8599 shlibpath_var=LD_LIBRARY_PATH
8600 shlibpath_overrides_runpath=no
8601 hardcode_into_libs=yes
8602 ;;
8603
8604 irix5* | irix6* | nonstopux*)
8605 case $host_os in
8606 nonstopux*) version_type=nonstopux ;;
8607 *)
8608 if test "$lt_cv_prog_gnu_ld" = yes; then
8609 version_type=linux
8610 else
8611 version_type=irix
8612 fi ;;
8613 esac
8614 need_lib_prefix=no
8615 need_version=no
8616 soname_spec='${libname}${release}${shared_ext}$major'
8617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8618 case $host_os in
8619 irix5* | nonstopux*)
8620 libsuff= shlibsuff=
8621 ;;
8622 *)
8623 case $LD in # libtool.m4 will add one of these switches to LD
8624 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8625 libsuff= shlibsuff= libmagic=32-bit;;
8626 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8627 libsuff=32 shlibsuff=N32 libmagic=N32;;
8628 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8629 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8630 *) libsuff= shlibsuff= libmagic=never-match;;
8631 esac
8632 ;;
8633 esac
8634 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8635 shlibpath_overrides_runpath=no
8636 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8637 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8638 hardcode_into_libs=yes
8639 ;;
8640
8641 # No shared lib support for Linux oldld, aout, or coff.
8642 linux*oldld* | linux*aout* | linux*coff*)
8643 dynamic_linker=no
8644 ;;
8645
8646 # This must be Linux ELF.
8647 linux* | k*bsd*-gnu)
8648 version_type=linux
8649 need_lib_prefix=no
8650 need_version=no
8651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8652 soname_spec='${libname}${release}${shared_ext}$major'
8653 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8654 shlibpath_var=LD_LIBRARY_PATH
8655 shlibpath_overrides_runpath=no
8656 # Some binutils ld are patched to set DT_RUNPATH
8657 save_LDFLAGS=$LDFLAGS
8658 save_libdir=$libdir
8659 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8660 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8661 cat >conftest.$ac_ext <<_ACEOF
8662 /* confdefs.h. */
8663 _ACEOF
8664 cat confdefs.h >>conftest.$ac_ext
8665 cat >>conftest.$ac_ext <<_ACEOF
8666 /* end confdefs.h. */
8667
8668 int
8669 main ()
8670 {
8671
8672 ;
8673 return 0;
8674 }
8675 _ACEOF
8676 rm -f conftest.$ac_objext conftest$ac_exeext
8677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8678 (eval $ac_link) 2>conftest.er1
8679 ac_status=$?
8680 grep -v '^ *+' conftest.er1 >conftest.err
8681 rm -f conftest.er1
8682 cat conftest.err >&5
8683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8684 (exit $ac_status); } &&
8685 { ac_try='test -z "$ac_c_werror_flag"
8686 || test ! -s conftest.err'
8687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8688 (eval $ac_try) 2>&5
8689 ac_status=$?
8690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8691 (exit $ac_status); }; } &&
8692 { ac_try='test -s conftest$ac_exeext'
8693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8694 (eval $ac_try) 2>&5
8695 ac_status=$?
8696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697 (exit $ac_status); }; }; then
8698 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
8699 shlibpath_overrides_runpath=yes
8700 fi
8701
8702 else
8703 echo "$as_me: failed program was:" >&5
8704 sed 's/^/| /' conftest.$ac_ext >&5
8705
8706 fi
8707 rm -f conftest.err conftest.$ac_objext \
8708 conftest$ac_exeext conftest.$ac_ext
8709 LDFLAGS=$save_LDFLAGS
8710 libdir=$save_libdir
8711
8712 # This implies no fast_install, which is unacceptable.
8713 # Some rework will be needed to allow for fast_install
8714 # before this can be enabled.
8715 hardcode_into_libs=yes
8716
8717 # Append ld.so.conf contents to the search path
8718 if test -f /etc/ld.so.conf; then
8719 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' ' '`
8720 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8721 fi
8722
8723 # We used to test for /lib/ld.so.1 and disable shared libraries on
8724 # powerpc, because MkLinux only supported shared libraries with the
8725 # GNU dynamic linker. Since this was broken with cross compilers,
8726 # most powerpc-linux boxes support dynamic linking these days and
8727 # people can always --disable-shared, the test was removed, and we
8728 # assume the GNU/Linux dynamic linker is in use.
8729 dynamic_linker='GNU/Linux ld.so'
8730 ;;
8731
8732 netbsd*)
8733 version_type=sunos
8734 need_lib_prefix=no
8735 need_version=no
8736 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8738 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8739 dynamic_linker='NetBSD (a.out) ld.so'
8740 else
8741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8742 soname_spec='${libname}${release}${shared_ext}$major'
8743 dynamic_linker='NetBSD ld.elf_so'
8744 fi
8745 shlibpath_var=LD_LIBRARY_PATH
8746 shlibpath_overrides_runpath=yes
8747 hardcode_into_libs=yes
8748 ;;
8749
8750 newsos6)
8751 version_type=linux
8752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8753 shlibpath_var=LD_LIBRARY_PATH
8754 shlibpath_overrides_runpath=yes
8755 ;;
8756
8757 *nto* | *qnx*)
8758 version_type=qnx
8759 need_lib_prefix=no
8760 need_version=no
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 shlibpath_var=LD_LIBRARY_PATH
8764 shlibpath_overrides_runpath=no
8765 hardcode_into_libs=yes
8766 dynamic_linker='ldqnx.so'
8767 ;;
8768
8769 openbsd*)
8770 version_type=sunos
8771 sys_lib_dlsearch_path_spec="/usr/lib"
8772 need_lib_prefix=no
8773 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8774 case $host_os in
8775 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8776 *) need_version=no ;;
8777 esac
8778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8779 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8780 shlibpath_var=LD_LIBRARY_PATH
8781 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8782 case $host_os in
8783 openbsd2.[89] | openbsd2.[89].*)
8784 shlibpath_overrides_runpath=no
8785 ;;
8786 *)
8787 shlibpath_overrides_runpath=yes
8788 ;;
8789 esac
8790 else
8791 shlibpath_overrides_runpath=yes
8792 fi
8793 ;;
8794
8795 os2*)
8796 libname_spec='$name'
8797 shrext_cmds=".dll"
8798 need_lib_prefix=no
8799 library_names_spec='$libname${shared_ext} $libname.a'
8800 dynamic_linker='OS/2 ld.exe'
8801 shlibpath_var=LIBPATH
8802 ;;
8803
8804 osf3* | osf4* | osf5*)
8805 version_type=osf
8806 need_lib_prefix=no
8807 need_version=no
8808 soname_spec='${libname}${release}${shared_ext}$major'
8809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8810 shlibpath_var=LD_LIBRARY_PATH
8811 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8812 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8813 ;;
8814
8815 rdos*)
8816 dynamic_linker=no
8817 ;;
8818
8819 solaris*)
8820 version_type=linux
8821 need_lib_prefix=no
8822 need_version=no
8823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8824 soname_spec='${libname}${release}${shared_ext}$major'
8825 shlibpath_var=LD_LIBRARY_PATH
8826 shlibpath_overrides_runpath=yes
8827 hardcode_into_libs=yes
8828 # ldd complains unless libraries are executable
8829 postinstall_cmds='chmod +x $lib'
8830 ;;
8831
8832 sunos4*)
8833 version_type=sunos
8834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8835 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8836 shlibpath_var=LD_LIBRARY_PATH
8837 shlibpath_overrides_runpath=yes
8838 if test "$with_gnu_ld" = yes; then
8839 need_lib_prefix=no
8840 fi
8841 need_version=yes
8842 ;;
8843
8844 sysv4 | sysv4.3*)
8845 version_type=linux
8846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8847 soname_spec='${libname}${release}${shared_ext}$major'
8848 shlibpath_var=LD_LIBRARY_PATH
8849 case $host_vendor in
8850 sni)
8851 shlibpath_overrides_runpath=no
8852 need_lib_prefix=no
8853 runpath_var=LD_RUN_PATH
8854 ;;
8855 siemens)
8856 need_lib_prefix=no
8857 ;;
8858 motorola)
8859 need_lib_prefix=no
8860 need_version=no
8861 shlibpath_overrides_runpath=no
8862 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8863 ;;
8864 esac
8865 ;;
8866
8867 sysv4*MP*)
8868 if test -d /usr/nec ;then
8869 version_type=linux
8870 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8871 soname_spec='$libname${shared_ext}.$major'
8872 shlibpath_var=LD_LIBRARY_PATH
8873 fi
8874 ;;
8875
8876 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8877 version_type=freebsd-elf
8878 need_lib_prefix=no
8879 need_version=no
8880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8881 soname_spec='${libname}${release}${shared_ext}$major'
8882 shlibpath_var=LD_LIBRARY_PATH
8883 shlibpath_overrides_runpath=yes
8884 hardcode_into_libs=yes
8885 if test "$with_gnu_ld" = yes; then
8886 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8887 else
8888 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8889 case $host_os in
8890 sco3.2v5*)
8891 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8892 ;;
8893 esac
8894 fi
8895 sys_lib_dlsearch_path_spec='/usr/lib'
8896 ;;
8897
8898 tpf*)
8899 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
8900 version_type=linux
8901 need_lib_prefix=no
8902 need_version=no
8903 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8904 shlibpath_var=LD_LIBRARY_PATH
8905 shlibpath_overrides_runpath=no
8906 hardcode_into_libs=yes
8907 ;;
8908
8909 uts4*)
8910 version_type=linux
8911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8912 soname_spec='${libname}${release}${shared_ext}$major'
8913 shlibpath_var=LD_LIBRARY_PATH
8914 ;;
8915
8916 *)
8917 dynamic_linker=no
8918 ;;
8919 esac
8920 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8921 echo "${ECHO_T}$dynamic_linker" >&6
8922 test "$dynamic_linker" = no && can_build_shared=no
8923
8924 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8925 if test "$GCC" = yes; then
8926 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8927 fi
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
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 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9016 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9017 hardcode_action=
9018 if test -n "$hardcode_libdir_flag_spec" ||
9019 test -n "$runpath_var" ||
9020 test "X$hardcode_automatic" = "Xyes" ; then
9021
9022 # We can hardcode non-existent directories.
9023 if test "$hardcode_direct" != no &&
9024 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9025 # have to relink, otherwise we might link with an installed library
9026 # when we should be linking with a yet-to-be-installed one
9027 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9028 test "$hardcode_minus_L" != no; then
9029 # Linking always hardcodes the temporary library directory.
9030 hardcode_action=relink
9031 else
9032 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9033 hardcode_action=immediate
9034 fi
9035 else
9036 # We cannot hardcode anything, or else we can only hardcode existing
9037 # directories.
9038 hardcode_action=unsupported
9039 fi
9040 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9041 echo "${ECHO_T}$hardcode_action" >&6
9042
9043 if test "$hardcode_action" = relink ||
9044 test "$inherit_rpath" = yes; then
9045 # Fast installation is not supported
9046 enable_fast_install=no
9047 elif test "$shlibpath_overrides_runpath" = yes ||
9048 test "$enable_shared" = no; then
9049 # Fast installation is not necessary
9050 enable_fast_install=needless
9051 fi
9052
9053
9054
9055
9056
9057
9058 if test "x$enable_dlopen" != xyes; then
9059 enable_dlopen=unknown
9060 enable_dlopen_self=unknown
9061 enable_dlopen_self_static=unknown
9062 else
9063 lt_cv_dlopen=no
9064 lt_cv_dlopen_libs=
9065
9066 case $host_os in
9067 beos*)
9068 lt_cv_dlopen="load_add_on"
9069 lt_cv_dlopen_libs=
9070 lt_cv_dlopen_self=yes
9071 ;;
9072
9073 mingw* | pw32*)
9074 lt_cv_dlopen="LoadLibrary"
9075 lt_cv_dlopen_libs=
9076 ;;
9077
9078 cygwin*)
9079 lt_cv_dlopen="dlopen"
9080 lt_cv_dlopen_libs=
9081 ;;
9082
9083 darwin*)
9084 # if libdl is installed we need to link against it
9085 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9086 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9087 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9088 echo $ECHO_N "(cached) $ECHO_C" >&6
9089 else
9090 ac_check_lib_save_LIBS=$LIBS
9091 LIBS="-ldl $LIBS"
9092 cat >conftest.$ac_ext <<_ACEOF
9093 /* confdefs.h. */
9094 _ACEOF
9095 cat confdefs.h >>conftest.$ac_ext
9096 cat >>conftest.$ac_ext <<_ACEOF
9097 /* end confdefs.h. */
9098
9099 /* Override any gcc2 internal prototype to avoid an error. */
9100 #ifdef __cplusplus
9101 extern "C"
9102 #endif
9103 /* We use char because int might match the return type of a gcc2
9104 builtin and then its argument prototype would still apply. */
9105 char dlopen ();
9106 int
9107 main ()
9108 {
9109 dlopen ();
9110 ;
9111 return 0;
9112 }
9113 _ACEOF
9114 rm -f conftest.$ac_objext conftest$ac_exeext
9115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9116 (eval $ac_link) 2>conftest.er1
9117 ac_status=$?
9118 grep -v '^ *+' conftest.er1 >conftest.err
9119 rm -f conftest.er1
9120 cat conftest.err >&5
9121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9122 (exit $ac_status); } &&
9123 { ac_try='test -z "$ac_c_werror_flag"
9124 || test ! -s conftest.err'
9125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9126 (eval $ac_try) 2>&5
9127 ac_status=$?
9128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129 (exit $ac_status); }; } &&
9130 { ac_try='test -s conftest$ac_exeext'
9131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9132 (eval $ac_try) 2>&5
9133 ac_status=$?
9134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9135 (exit $ac_status); }; }; then
9136 ac_cv_lib_dl_dlopen=yes
9137 else
9138 echo "$as_me: failed program was:" >&5
9139 sed 's/^/| /' conftest.$ac_ext >&5
9140
9141 ac_cv_lib_dl_dlopen=no
9142 fi
9143 rm -f conftest.err conftest.$ac_objext \
9144 conftest$ac_exeext conftest.$ac_ext
9145 LIBS=$ac_check_lib_save_LIBS
9146 fi
9147 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9148 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9149 if test $ac_cv_lib_dl_dlopen = yes; then
9150 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9151 else
9152
9153 lt_cv_dlopen="dyld"
9154 lt_cv_dlopen_libs=
9155 lt_cv_dlopen_self=yes
9156
9157 fi
9158
9159 ;;
9160
9161 *)
9162 echo "$as_me:$LINENO: checking for shl_load" >&5
9163 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9164 if test "${ac_cv_func_shl_load+set}" = set; then
9165 echo $ECHO_N "(cached) $ECHO_C" >&6
9166 else
9167 cat >conftest.$ac_ext <<_ACEOF
9168 /* confdefs.h. */
9169 _ACEOF
9170 cat confdefs.h >>conftest.$ac_ext
9171 cat >>conftest.$ac_ext <<_ACEOF
9172 /* end confdefs.h. */
9173 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9174 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9175 #define shl_load innocuous_shl_load
9176
9177 /* System header to define __stub macros and hopefully few prototypes,
9178 which can conflict with char shl_load (); below.
9179 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9180 <limits.h> exists even on freestanding compilers. */
9181
9182 #ifdef __STDC__
9183 # include <limits.h>
9184 #else
9185 # include <assert.h>
9186 #endif
9187
9188 #undef shl_load
9189
9190 /* Override any gcc2 internal prototype to avoid an error. */
9191 #ifdef __cplusplus
9192 extern "C"
9193 {
9194 #endif
9195 /* We use char because int might match the return type of a gcc2
9196 builtin and then its argument prototype would still apply. */
9197 char shl_load ();
9198 /* The GNU C library defines this for functions which it implements
9199 to always fail with ENOSYS. Some functions are actually named
9200 something starting with __ and the normal name is an alias. */
9201 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9202 choke me
9203 #else
9204 char (*f) () = shl_load;
9205 #endif
9206 #ifdef __cplusplus
9207 }
9208 #endif
9209
9210 int
9211 main ()
9212 {
9213 return f != shl_load;
9214 ;
9215 return 0;
9216 }
9217 _ACEOF
9218 rm -f conftest.$ac_objext conftest$ac_exeext
9219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9220 (eval $ac_link) 2>conftest.er1
9221 ac_status=$?
9222 grep -v '^ *+' conftest.er1 >conftest.err
9223 rm -f conftest.er1
9224 cat conftest.err >&5
9225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9226 (exit $ac_status); } &&
9227 { ac_try='test -z "$ac_c_werror_flag"
9228 || test ! -s conftest.err'
9229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9230 (eval $ac_try) 2>&5
9231 ac_status=$?
9232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9233 (exit $ac_status); }; } &&
9234 { ac_try='test -s conftest$ac_exeext'
9235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9236 (eval $ac_try) 2>&5
9237 ac_status=$?
9238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239 (exit $ac_status); }; }; then
9240 ac_cv_func_shl_load=yes
9241 else
9242 echo "$as_me: failed program was:" >&5
9243 sed 's/^/| /' conftest.$ac_ext >&5
9244
9245 ac_cv_func_shl_load=no
9246 fi
9247 rm -f conftest.err conftest.$ac_objext \
9248 conftest$ac_exeext conftest.$ac_ext
9249 fi
9250 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9251 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9252 if test $ac_cv_func_shl_load = yes; then
9253 lt_cv_dlopen="shl_load"
9254 else
9255 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9256 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9257 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9258 echo $ECHO_N "(cached) $ECHO_C" >&6
9259 else
9260 ac_check_lib_save_LIBS=$LIBS
9261 LIBS="-ldld $LIBS"
9262 cat >conftest.$ac_ext <<_ACEOF
9263 /* confdefs.h. */
9264 _ACEOF
9265 cat confdefs.h >>conftest.$ac_ext
9266 cat >>conftest.$ac_ext <<_ACEOF
9267 /* end confdefs.h. */
9268
9269 /* Override any gcc2 internal prototype to avoid an error. */
9270 #ifdef __cplusplus
9271 extern "C"
9272 #endif
9273 /* We use char because int might match the return type of a gcc2
9274 builtin and then its argument prototype would still apply. */
9275 char shl_load ();
9276 int
9277 main ()
9278 {
9279 shl_load ();
9280 ;
9281 return 0;
9282 }
9283 _ACEOF
9284 rm -f conftest.$ac_objext conftest$ac_exeext
9285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9286 (eval $ac_link) 2>conftest.er1
9287 ac_status=$?
9288 grep -v '^ *+' conftest.er1 >conftest.err
9289 rm -f conftest.er1
9290 cat conftest.err >&5
9291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9292 (exit $ac_status); } &&
9293 { ac_try='test -z "$ac_c_werror_flag"
9294 || test ! -s conftest.err'
9295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9296 (eval $ac_try) 2>&5
9297 ac_status=$?
9298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9299 (exit $ac_status); }; } &&
9300 { ac_try='test -s conftest$ac_exeext'
9301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9302 (eval $ac_try) 2>&5
9303 ac_status=$?
9304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9305 (exit $ac_status); }; }; then
9306 ac_cv_lib_dld_shl_load=yes
9307 else
9308 echo "$as_me: failed program was:" >&5
9309 sed 's/^/| /' conftest.$ac_ext >&5
9310
9311 ac_cv_lib_dld_shl_load=no
9312 fi
9313 rm -f conftest.err conftest.$ac_objext \
9314 conftest$ac_exeext conftest.$ac_ext
9315 LIBS=$ac_check_lib_save_LIBS
9316 fi
9317 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9318 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9319 if test $ac_cv_lib_dld_shl_load = yes; then
9320 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9321 else
9322 echo "$as_me:$LINENO: checking for dlopen" >&5
9323 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9324 if test "${ac_cv_func_dlopen+set}" = set; then
9325 echo $ECHO_N "(cached) $ECHO_C" >&6
9326 else
9327 cat >conftest.$ac_ext <<_ACEOF
9328 /* confdefs.h. */
9329 _ACEOF
9330 cat confdefs.h >>conftest.$ac_ext
9331 cat >>conftest.$ac_ext <<_ACEOF
9332 /* end confdefs.h. */
9333 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9334 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9335 #define dlopen innocuous_dlopen
9336
9337 /* System header to define __stub macros and hopefully few prototypes,
9338 which can conflict with char dlopen (); below.
9339 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9340 <limits.h> exists even on freestanding compilers. */
9341
9342 #ifdef __STDC__
9343 # include <limits.h>
9344 #else
9345 # include <assert.h>
9346 #endif
9347
9348 #undef dlopen
9349
9350 /* Override any gcc2 internal prototype to avoid an error. */
9351 #ifdef __cplusplus
9352 extern "C"
9353 {
9354 #endif
9355 /* We use char because int might match the return type of a gcc2
9356 builtin and then its argument prototype would still apply. */
9357 char dlopen ();
9358 /* The GNU C library defines this for functions which it implements
9359 to always fail with ENOSYS. Some functions are actually named
9360 something starting with __ and the normal name is an alias. */
9361 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9362 choke me
9363 #else
9364 char (*f) () = dlopen;
9365 #endif
9366 #ifdef __cplusplus
9367 }
9368 #endif
9369
9370 int
9371 main ()
9372 {
9373 return f != dlopen;
9374 ;
9375 return 0;
9376 }
9377 _ACEOF
9378 rm -f conftest.$ac_objext conftest$ac_exeext
9379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9380 (eval $ac_link) 2>conftest.er1
9381 ac_status=$?
9382 grep -v '^ *+' conftest.er1 >conftest.err
9383 rm -f conftest.er1
9384 cat conftest.err >&5
9385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9386 (exit $ac_status); } &&
9387 { ac_try='test -z "$ac_c_werror_flag"
9388 || test ! -s conftest.err'
9389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9390 (eval $ac_try) 2>&5
9391 ac_status=$?
9392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393 (exit $ac_status); }; } &&
9394 { ac_try='test -s conftest$ac_exeext'
9395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9396 (eval $ac_try) 2>&5
9397 ac_status=$?
9398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399 (exit $ac_status); }; }; then
9400 ac_cv_func_dlopen=yes
9401 else
9402 echo "$as_me: failed program was:" >&5
9403 sed 's/^/| /' conftest.$ac_ext >&5
9404
9405 ac_cv_func_dlopen=no
9406 fi
9407 rm -f conftest.err conftest.$ac_objext \
9408 conftest$ac_exeext conftest.$ac_ext
9409 fi
9410 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9411 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9412 if test $ac_cv_func_dlopen = yes; then
9413 lt_cv_dlopen="dlopen"
9414 else
9415 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9416 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9417 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9418 echo $ECHO_N "(cached) $ECHO_C" >&6
9419 else
9420 ac_check_lib_save_LIBS=$LIBS
9421 LIBS="-ldl $LIBS"
9422 cat >conftest.$ac_ext <<_ACEOF
9423 /* confdefs.h. */
9424 _ACEOF
9425 cat confdefs.h >>conftest.$ac_ext
9426 cat >>conftest.$ac_ext <<_ACEOF
9427 /* end confdefs.h. */
9428
9429 /* Override any gcc2 internal prototype to avoid an error. */
9430 #ifdef __cplusplus
9431 extern "C"
9432 #endif
9433 /* We use char because int might match the return type of a gcc2
9434 builtin and then its argument prototype would still apply. */
9435 char dlopen ();
9436 int
9437 main ()
9438 {
9439 dlopen ();
9440 ;
9441 return 0;
9442 }
9443 _ACEOF
9444 rm -f conftest.$ac_objext conftest$ac_exeext
9445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9446 (eval $ac_link) 2>conftest.er1
9447 ac_status=$?
9448 grep -v '^ *+' conftest.er1 >conftest.err
9449 rm -f conftest.er1
9450 cat conftest.err >&5
9451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452 (exit $ac_status); } &&
9453 { ac_try='test -z "$ac_c_werror_flag"
9454 || test ! -s conftest.err'
9455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9456 (eval $ac_try) 2>&5
9457 ac_status=$?
9458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9459 (exit $ac_status); }; } &&
9460 { ac_try='test -s conftest$ac_exeext'
9461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9462 (eval $ac_try) 2>&5
9463 ac_status=$?
9464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465 (exit $ac_status); }; }; then
9466 ac_cv_lib_dl_dlopen=yes
9467 else
9468 echo "$as_me: failed program was:" >&5
9469 sed 's/^/| /' conftest.$ac_ext >&5
9470
9471 ac_cv_lib_dl_dlopen=no
9472 fi
9473 rm -f conftest.err conftest.$ac_objext \
9474 conftest$ac_exeext conftest.$ac_ext
9475 LIBS=$ac_check_lib_save_LIBS
9476 fi
9477 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9478 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9479 if test $ac_cv_lib_dl_dlopen = yes; then
9480 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9481 else
9482 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9483 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9484 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9485 echo $ECHO_N "(cached) $ECHO_C" >&6
9486 else
9487 ac_check_lib_save_LIBS=$LIBS
9488 LIBS="-lsvld $LIBS"
9489 cat >conftest.$ac_ext <<_ACEOF
9490 /* confdefs.h. */
9491 _ACEOF
9492 cat confdefs.h >>conftest.$ac_ext
9493 cat >>conftest.$ac_ext <<_ACEOF
9494 /* end confdefs.h. */
9495
9496 /* Override any gcc2 internal prototype to avoid an error. */
9497 #ifdef __cplusplus
9498 extern "C"
9499 #endif
9500 /* We use char because int might match the return type of a gcc2
9501 builtin and then its argument prototype would still apply. */
9502 char dlopen ();
9503 int
9504 main ()
9505 {
9506 dlopen ();
9507 ;
9508 return 0;
9509 }
9510 _ACEOF
9511 rm -f conftest.$ac_objext conftest$ac_exeext
9512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9513 (eval $ac_link) 2>conftest.er1
9514 ac_status=$?
9515 grep -v '^ *+' conftest.er1 >conftest.err
9516 rm -f conftest.er1
9517 cat conftest.err >&5
9518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9519 (exit $ac_status); } &&
9520 { ac_try='test -z "$ac_c_werror_flag"
9521 || test ! -s conftest.err'
9522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9523 (eval $ac_try) 2>&5
9524 ac_status=$?
9525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9526 (exit $ac_status); }; } &&
9527 { ac_try='test -s conftest$ac_exeext'
9528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9529 (eval $ac_try) 2>&5
9530 ac_status=$?
9531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9532 (exit $ac_status); }; }; then
9533 ac_cv_lib_svld_dlopen=yes
9534 else
9535 echo "$as_me: failed program was:" >&5
9536 sed 's/^/| /' conftest.$ac_ext >&5
9537
9538 ac_cv_lib_svld_dlopen=no
9539 fi
9540 rm -f conftest.err conftest.$ac_objext \
9541 conftest$ac_exeext conftest.$ac_ext
9542 LIBS=$ac_check_lib_save_LIBS
9543 fi
9544 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9545 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9546 if test $ac_cv_lib_svld_dlopen = yes; then
9547 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9548 else
9549 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9550 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9551 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9552 echo $ECHO_N "(cached) $ECHO_C" >&6
9553 else
9554 ac_check_lib_save_LIBS=$LIBS
9555 LIBS="-ldld $LIBS"
9556 cat >conftest.$ac_ext <<_ACEOF
9557 /* confdefs.h. */
9558 _ACEOF
9559 cat confdefs.h >>conftest.$ac_ext
9560 cat >>conftest.$ac_ext <<_ACEOF
9561 /* end confdefs.h. */
9562
9563 /* Override any gcc2 internal prototype to avoid an error. */
9564 #ifdef __cplusplus
9565 extern "C"
9566 #endif
9567 /* We use char because int might match the return type of a gcc2
9568 builtin and then its argument prototype would still apply. */
9569 char dld_link ();
9570 int
9571 main ()
9572 {
9573 dld_link ();
9574 ;
9575 return 0;
9576 }
9577 _ACEOF
9578 rm -f conftest.$ac_objext conftest$ac_exeext
9579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9580 (eval $ac_link) 2>conftest.er1
9581 ac_status=$?
9582 grep -v '^ *+' conftest.er1 >conftest.err
9583 rm -f conftest.er1
9584 cat conftest.err >&5
9585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9586 (exit $ac_status); } &&
9587 { ac_try='test -z "$ac_c_werror_flag"
9588 || test ! -s conftest.err'
9589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9590 (eval $ac_try) 2>&5
9591 ac_status=$?
9592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9593 (exit $ac_status); }; } &&
9594 { ac_try='test -s conftest$ac_exeext'
9595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9596 (eval $ac_try) 2>&5
9597 ac_status=$?
9598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9599 (exit $ac_status); }; }; then
9600 ac_cv_lib_dld_dld_link=yes
9601 else
9602 echo "$as_me: failed program was:" >&5
9603 sed 's/^/| /' conftest.$ac_ext >&5
9604
9605 ac_cv_lib_dld_dld_link=no
9606 fi
9607 rm -f conftest.err conftest.$ac_objext \
9608 conftest$ac_exeext conftest.$ac_ext
9609 LIBS=$ac_check_lib_save_LIBS
9610 fi
9611 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9612 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9613 if test $ac_cv_lib_dld_dld_link = yes; then
9614 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9615 fi
9616
9617
9618 fi
9619
9620
9621 fi
9622
9623
9624 fi
9625
9626
9627 fi
9628
9629
9630 fi
9631
9632 ;;
9633 esac
9634
9635 if test "x$lt_cv_dlopen" != xno; then
9636 enable_dlopen=yes
9637 else
9638 enable_dlopen=no
9639 fi
9640
9641 case $lt_cv_dlopen in
9642 dlopen)
9643 save_CPPFLAGS="$CPPFLAGS"
9644 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9645
9646 save_LDFLAGS="$LDFLAGS"
9647 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9648
9649 save_LIBS="$LIBS"
9650 LIBS="$lt_cv_dlopen_libs $LIBS"
9651
9652 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9653 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9654 if test "${lt_cv_dlopen_self+set}" = set; then
9655 echo $ECHO_N "(cached) $ECHO_C" >&6
9656 else
9657 if test "$cross_compiling" = yes; then :
9658 lt_cv_dlopen_self=cross
9659 else
9660 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9661 lt_status=$lt_dlunknown
9662 cat > conftest.$ac_ext <<_LT_EOF
9663 #line 9683 "configure"
9664 #include "confdefs.h"
9665
9666 #if HAVE_DLFCN_H
9667 #include <dlfcn.h>
9668 #endif
9669
9670 #include <stdio.h>
9671
9672 #ifdef RTLD_GLOBAL
9673 # define LT_DLGLOBAL RTLD_GLOBAL
9674 #else
9675 # ifdef DL_GLOBAL
9676 # define LT_DLGLOBAL DL_GLOBAL
9677 # else
9678 # define LT_DLGLOBAL 0
9679 # endif
9680 #endif
9681
9682 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9683 find out it does not work in some platform. */
9684 #ifndef LT_DLLAZY_OR_NOW
9685 # ifdef RTLD_LAZY
9686 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9687 # else
9688 # ifdef DL_LAZY
9689 # define LT_DLLAZY_OR_NOW DL_LAZY
9690 # else
9691 # ifdef RTLD_NOW
9692 # define LT_DLLAZY_OR_NOW RTLD_NOW
9693 # else
9694 # ifdef DL_NOW
9695 # define LT_DLLAZY_OR_NOW DL_NOW
9696 # else
9697 # define LT_DLLAZY_OR_NOW 0
9698 # endif
9699 # endif
9700 # endif
9701 # endif
9702 #endif
9703
9704 #ifdef __cplusplus
9705 extern "C" void exit (int);
9706 #endif
9707
9708 void fnord() { int i=42;}
9709 int main ()
9710 {
9711 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9712 int status = $lt_dlunknown;
9713
9714 if (self)
9715 {
9716 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9717 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9718 /* dlclose (self); */
9719 }
9720 else
9721 puts (dlerror ());
9722
9723 exit (status);
9724 }
9725 _LT_EOF
9726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9727 (eval $ac_link) 2>&5
9728 ac_status=$?
9729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9730 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9731 (./conftest; exit; ) >&5 2>/dev/null
9732 lt_status=$?
9733 case x$lt_status in
9734 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9735 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9736 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9737 esac
9738 else :
9739 # compilation failed
9740 lt_cv_dlopen_self=no
9741 fi
9742 fi
9743 rm -fr conftest*
9744
9745
9746 fi
9747 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9748 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9749
9750 if test "x$lt_cv_dlopen_self" = xyes; then
9751 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9752 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9753 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9754 if test "${lt_cv_dlopen_self_static+set}" = set; then
9755 echo $ECHO_N "(cached) $ECHO_C" >&6
9756 else
9757 if test "$cross_compiling" = yes; then :
9758 lt_cv_dlopen_self_static=cross
9759 else
9760 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9761 lt_status=$lt_dlunknown
9762 cat > conftest.$ac_ext <<_LT_EOF
9763 #line 9783 "configure"
9764 #include "confdefs.h"
9765
9766 #if HAVE_DLFCN_H
9767 #include <dlfcn.h>
9768 #endif
9769
9770 #include <stdio.h>
9771
9772 #ifdef RTLD_GLOBAL
9773 # define LT_DLGLOBAL RTLD_GLOBAL
9774 #else
9775 # ifdef DL_GLOBAL
9776 # define LT_DLGLOBAL DL_GLOBAL
9777 # else
9778 # define LT_DLGLOBAL 0
9779 # endif
9780 #endif
9781
9782 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9783 find out it does not work in some platform. */
9784 #ifndef LT_DLLAZY_OR_NOW
9785 # ifdef RTLD_LAZY
9786 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9787 # else
9788 # ifdef DL_LAZY
9789 # define LT_DLLAZY_OR_NOW DL_LAZY
9790 # else
9791 # ifdef RTLD_NOW
9792 # define LT_DLLAZY_OR_NOW RTLD_NOW
9793 # else
9794 # ifdef DL_NOW
9795 # define LT_DLLAZY_OR_NOW DL_NOW
9796 # else
9797 # define LT_DLLAZY_OR_NOW 0
9798 # endif
9799 # endif
9800 # endif
9801 # endif
9802 #endif
9803
9804 #ifdef __cplusplus
9805 extern "C" void exit (int);
9806 #endif
9807
9808 void fnord() { int i=42;}
9809 int main ()
9810 {
9811 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9812 int status = $lt_dlunknown;
9813
9814 if (self)
9815 {
9816 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9817 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9818 /* dlclose (self); */
9819 }
9820 else
9821 puts (dlerror ());
9822
9823 exit (status);
9824 }
9825 _LT_EOF
9826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9827 (eval $ac_link) 2>&5
9828 ac_status=$?
9829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9830 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9831 (./conftest; exit; ) >&5 2>/dev/null
9832 lt_status=$?
9833 case x$lt_status in
9834 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9835 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9836 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9837 esac
9838 else :
9839 # compilation failed
9840 lt_cv_dlopen_self_static=no
9841 fi
9842 fi
9843 rm -fr conftest*
9844
9845
9846 fi
9847 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9848 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9849 fi
9850
9851 CPPFLAGS="$save_CPPFLAGS"
9852 LDFLAGS="$save_LDFLAGS"
9853 LIBS="$save_LIBS"
9854 ;;
9855 esac
9856
9857 case $lt_cv_dlopen_self in
9858 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9859 *) enable_dlopen_self=unknown ;;
9860 esac
9861
9862 case $lt_cv_dlopen_self_static in
9863 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9864 *) enable_dlopen_self_static=unknown ;;
9865 esac
9866 fi
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884 striplib=
9885 old_striplib=
9886 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9887 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9888 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9889 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9890 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9891 echo "$as_me:$LINENO: result: yes" >&5
9892 echo "${ECHO_T}yes" >&6
9893 else
9894 # FIXME - insert some real tests, host_os isn't really good enough
9895 case $host_os in
9896 darwin*)
9897 if test -n "$STRIP" ; then
9898 striplib="$STRIP -x"
9899 old_striplib="$STRIP -S"
9900 echo "$as_me:$LINENO: result: yes" >&5
9901 echo "${ECHO_T}yes" >&6
9902 else
9903 echo "$as_me:$LINENO: result: no" >&5
9904 echo "${ECHO_T}no" >&6
9905 fi
9906 ;;
9907 *)
9908 echo "$as_me:$LINENO: result: no" >&5
9909 echo "${ECHO_T}no" >&6
9910 ;;
9911 esac
9912 fi
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925 # Report which library types will actually be built
9926 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9927 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9928 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9929 echo "${ECHO_T}$can_build_shared" >&6
9930
9931 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9932 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9933 test "$can_build_shared" = "no" && enable_shared=no
9934
9935 # On AIX, shared libraries and static libraries use the same namespace, and
9936 # are all built from PIC.
9937 case $host_os in
9938 aix3*)
9939 test "$enable_shared" = yes && enable_static=no
9940 if test -n "$RANLIB"; then
9941 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9942 postinstall_cmds='$RANLIB $lib'
9943 fi
9944 ;;
9945
9946 aix[4-9]*)
9947 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9948 test "$enable_shared" = yes && enable_static=no
9949 fi
9950 ;;
9951 esac
9952 echo "$as_me:$LINENO: result: $enable_shared" >&5
9953 echo "${ECHO_T}$enable_shared" >&6
9954
9955 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9956 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9957 # Make sure either enable_shared or enable_static is yes.
9958 test "$enable_shared" = yes || enable_static=yes
9959 echo "$as_me:$LINENO: result: $enable_static" >&5
9960 echo "${ECHO_T}$enable_static" >&6
9961
9962
9963
9964
9965 fi
9966 ac_ext=c
9967 ac_cpp='$CPP $CPPFLAGS'
9968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9971
9972 CC="$lt_save_CC"
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986 ac_config_commands="$ac_config_commands libtool"
9987
9988
9989
9990
9991 # Only expand once:
9992
9993
9994
9995
9996
9997 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
9998 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
9999 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
10000 if test "${enable_maintainer_mode+set}" = set; then
10001 enableval="$enable_maintainer_mode"
10002 USE_MAINTAINER_MODE=$enableval
10003 else
10004 USE_MAINTAINER_MODE=no
10005 fi;
10006 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
10007 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
10008
10009
10010 if test $USE_MAINTAINER_MODE = yes; then
10011 MAINTAINER_MODE_TRUE=
10012 MAINTAINER_MODE_FALSE='#'
10013 else
10014 MAINTAINER_MODE_TRUE='#'
10015 MAINTAINER_MODE_FALSE=
10016 fi
10017
10018 MAINT=$MAINTAINER_MODE_TRUE
10019
10020
10021
10022 # We need gfortran to compile parts of the library
10023 # We can't use AC_PROG_FC because it expects a fully working gfortran.
10024 #AC_PROG_FC(gfortran)
10025 FC="$GFORTRAN"
10026 ac_ext=${FC_SRCEXT-f}
10027 ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
10028 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
10029 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
10030 if test -n "$ac_tool_prefix"; then
10031 for ac_prog in gfortran
10032 do
10033 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10034 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10035 echo "$as_me:$LINENO: checking for $ac_word" >&5
10036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10037 if test "${ac_cv_prog_FC+set}" = set; then
10038 echo $ECHO_N "(cached) $ECHO_C" >&6
10039 else
10040 if test -n "$FC"; then
10041 ac_cv_prog_FC="$FC" # Let the user override the test.
10042 else
10043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10044 for as_dir in $PATH
10045 do
10046 IFS=$as_save_IFS
10047 test -z "$as_dir" && as_dir=.
10048 for ac_exec_ext in '' $ac_executable_extensions; do
10049 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10050 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
10051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10052 break 2
10053 fi
10054 done
10055 done
10056
10057 fi
10058 fi
10059 FC=$ac_cv_prog_FC
10060 if test -n "$FC"; then
10061 echo "$as_me:$LINENO: result: $FC" >&5
10062 echo "${ECHO_T}$FC" >&6
10063 else
10064 echo "$as_me:$LINENO: result: no" >&5
10065 echo "${ECHO_T}no" >&6
10066 fi
10067
10068 test -n "$FC" && break
10069 done
10070 fi
10071 if test -z "$FC"; then
10072 ac_ct_FC=$FC
10073 for ac_prog in gfortran
10074 do
10075 # Extract the first word of "$ac_prog", so it can be a program name with args.
10076 set dummy $ac_prog; ac_word=$2
10077 echo "$as_me:$LINENO: checking for $ac_word" >&5
10078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10079 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
10080 echo $ECHO_N "(cached) $ECHO_C" >&6
10081 else
10082 if test -n "$ac_ct_FC"; then
10083 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
10084 else
10085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10086 for as_dir in $PATH
10087 do
10088 IFS=$as_save_IFS
10089 test -z "$as_dir" && as_dir=.
10090 for ac_exec_ext in '' $ac_executable_extensions; do
10091 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10092 ac_cv_prog_ac_ct_FC="$ac_prog"
10093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10094 break 2
10095 fi
10096 done
10097 done
10098
10099 fi
10100 fi
10101 ac_ct_FC=$ac_cv_prog_ac_ct_FC
10102 if test -n "$ac_ct_FC"; then
10103 echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
10104 echo "${ECHO_T}$ac_ct_FC" >&6
10105 else
10106 echo "$as_me:$LINENO: result: no" >&5
10107 echo "${ECHO_T}no" >&6
10108 fi
10109
10110 test -n "$ac_ct_FC" && break
10111 done
10112
10113 FC=$ac_ct_FC
10114 fi
10115
10116
10117 # Provide some information about the compiler.
10118 echo "$as_me:10138:" \
10119 "checking for Fortran compiler version" >&5
10120 ac_compiler=`set X $ac_compile; echo $2`
10121 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10122 (eval $ac_compiler --version </dev/null >&5) 2>&5
10123 ac_status=$?
10124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10125 (exit $ac_status); }
10126 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10127 (eval $ac_compiler -v </dev/null >&5) 2>&5
10128 ac_status=$?
10129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10130 (exit $ac_status); }
10131 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10132 (eval $ac_compiler -V </dev/null >&5) 2>&5
10133 ac_status=$?
10134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10135 (exit $ac_status); }
10136 rm -f a.out
10137
10138 # If we don't use `.F' as extension, the preprocessor is not run on the
10139 # input file. (Note that this only needs to work for GNU compilers.)
10140 ac_save_ext=$ac_ext
10141 ac_ext=F
10142 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
10143 echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6
10144 if test "${ac_cv_fc_compiler_gnu+set}" = set; then
10145 echo $ECHO_N "(cached) $ECHO_C" >&6
10146 else
10147 cat >conftest.$ac_ext <<_ACEOF
10148 program main
10149 #ifndef __GNUC__
10150 choke me
10151 #endif
10152
10153 end
10154 _ACEOF
10155 rm -f conftest.$ac_objext
10156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10157 (eval $ac_compile) 2>conftest.er1
10158 ac_status=$?
10159 grep -v '^ *+' conftest.er1 >conftest.err
10160 rm -f conftest.er1
10161 cat conftest.err >&5
10162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10163 (exit $ac_status); } &&
10164 { ac_try='test -z "$ac_fc_werror_flag"
10165 || test ! -s conftest.err'
10166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10167 (eval $ac_try) 2>&5
10168 ac_status=$?
10169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10170 (exit $ac_status); }; } &&
10171 { ac_try='test -s conftest.$ac_objext'
10172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10173 (eval $ac_try) 2>&5
10174 ac_status=$?
10175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176 (exit $ac_status); }; }; then
10177 ac_compiler_gnu=yes
10178 else
10179 echo "$as_me: failed program was:" >&5
10180 sed 's/^/| /' conftest.$ac_ext >&5
10181
10182 ac_compiler_gnu=no
10183 fi
10184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10185 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
10186
10187 fi
10188 echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
10189 echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6
10190 ac_ext=$ac_save_ext
10191 ac_test_FFLAGS=${FCFLAGS+set}
10192 ac_save_FFLAGS=$FCFLAGS
10193 FCFLAGS=
10194 echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
10195 echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6
10196 if test "${ac_cv_prog_fc_g+set}" = set; then
10197 echo $ECHO_N "(cached) $ECHO_C" >&6
10198 else
10199 FCFLAGS=-g
10200 cat >conftest.$ac_ext <<_ACEOF
10201 program main
10202
10203 end
10204 _ACEOF
10205 rm -f conftest.$ac_objext
10206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10207 (eval $ac_compile) 2>conftest.er1
10208 ac_status=$?
10209 grep -v '^ *+' conftest.er1 >conftest.err
10210 rm -f conftest.er1
10211 cat conftest.err >&5
10212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213 (exit $ac_status); } &&
10214 { ac_try='test -z "$ac_fc_werror_flag"
10215 || test ! -s conftest.err'
10216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10217 (eval $ac_try) 2>&5
10218 ac_status=$?
10219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220 (exit $ac_status); }; } &&
10221 { ac_try='test -s conftest.$ac_objext'
10222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10223 (eval $ac_try) 2>&5
10224 ac_status=$?
10225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10226 (exit $ac_status); }; }; then
10227 ac_cv_prog_fc_g=yes
10228 else
10229 echo "$as_me: failed program was:" >&5
10230 sed 's/^/| /' conftest.$ac_ext >&5
10231
10232 ac_cv_prog_fc_g=no
10233 fi
10234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10235
10236 fi
10237 echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
10238 echo "${ECHO_T}$ac_cv_prog_fc_g" >&6
10239 if test "$ac_test_FFLAGS" = set; then
10240 FCFLAGS=$ac_save_FFLAGS
10241 elif test $ac_cv_prog_fc_g = yes; then
10242 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
10243 FCFLAGS="-g -O2"
10244 else
10245 FCFLAGS="-g"
10246 fi
10247 else
10248 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
10249 FCFLAGS="-O2"
10250 else
10251 FCFLAGS=
10252 fi
10253 fi
10254
10255 ac_ext=c
10256 ac_cpp='$CPP $CPPFLAGS'
10257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10260
10261
10262 ac_ext=${FC_SRCEXT-f}
10263 ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
10264 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
10265 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
10266 if test -n "$ac_tool_prefix"; then
10267 for ac_prog in f95 fort xlf95 ifc efc pgf95 lf95 gfortran f90 xlf90 pgf90 epcf90 g77 f77 xlf frt pgf77 fort77 fl32 af77
10268 do
10269 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10270 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10271 echo "$as_me:$LINENO: checking for $ac_word" >&5
10272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10273 if test "${ac_cv_prog_FC+set}" = set; then
10274 echo $ECHO_N "(cached) $ECHO_C" >&6
10275 else
10276 if test -n "$FC"; then
10277 ac_cv_prog_FC="$FC" # Let the user override the test.
10278 else
10279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10280 for as_dir in $PATH
10281 do
10282 IFS=$as_save_IFS
10283 test -z "$as_dir" && as_dir=.
10284 for ac_exec_ext in '' $ac_executable_extensions; do
10285 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10286 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
10287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10288 break 2
10289 fi
10290 done
10291 done
10292
10293 fi
10294 fi
10295 FC=$ac_cv_prog_FC
10296 if test -n "$FC"; then
10297 echo "$as_me:$LINENO: result: $FC" >&5
10298 echo "${ECHO_T}$FC" >&6
10299 else
10300 echo "$as_me:$LINENO: result: no" >&5
10301 echo "${ECHO_T}no" >&6
10302 fi
10303
10304 test -n "$FC" && break
10305 done
10306 fi
10307 if test -z "$FC"; then
10308 ac_ct_FC=$FC
10309 for ac_prog in f95 fort xlf95 ifc efc pgf95 lf95 gfortran f90 xlf90 pgf90 epcf90 g77 f77 xlf frt pgf77 fort77 fl32 af77
10310 do
10311 # Extract the first word of "$ac_prog", so it can be a program name with args.
10312 set dummy $ac_prog; ac_word=$2
10313 echo "$as_me:$LINENO: checking for $ac_word" >&5
10314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10315 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
10316 echo $ECHO_N "(cached) $ECHO_C" >&6
10317 else
10318 if test -n "$ac_ct_FC"; then
10319 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
10320 else
10321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10322 for as_dir in $PATH
10323 do
10324 IFS=$as_save_IFS
10325 test -z "$as_dir" && as_dir=.
10326 for ac_exec_ext in '' $ac_executable_extensions; do
10327 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10328 ac_cv_prog_ac_ct_FC="$ac_prog"
10329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10330 break 2
10331 fi
10332 done
10333 done
10334
10335 fi
10336 fi
10337 ac_ct_FC=$ac_cv_prog_ac_ct_FC
10338 if test -n "$ac_ct_FC"; then
10339 echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
10340 echo "${ECHO_T}$ac_ct_FC" >&6
10341 else
10342 echo "$as_me:$LINENO: result: no" >&5
10343 echo "${ECHO_T}no" >&6
10344 fi
10345
10346 test -n "$ac_ct_FC" && break
10347 done
10348
10349 FC=$ac_ct_FC
10350 fi
10351
10352
10353 # Provide some information about the compiler.
10354 echo "$as_me:10374:" \
10355 "checking for Fortran compiler version" >&5
10356 ac_compiler=`set X $ac_compile; echo $2`
10357 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10358 (eval $ac_compiler --version </dev/null >&5) 2>&5
10359 ac_status=$?
10360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10361 (exit $ac_status); }
10362 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10363 (eval $ac_compiler -v </dev/null >&5) 2>&5
10364 ac_status=$?
10365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10366 (exit $ac_status); }
10367 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10368 (eval $ac_compiler -V </dev/null >&5) 2>&5
10369 ac_status=$?
10370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10371 (exit $ac_status); }
10372 rm -f a.out
10373
10374 # If we don't use `.F' as extension, the preprocessor is not run on the
10375 # input file. (Note that this only needs to work for GNU compilers.)
10376 ac_save_ext=$ac_ext
10377 ac_ext=F
10378 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
10379 echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6
10380 if test "${ac_cv_fc_compiler_gnu+set}" = set; then
10381 echo $ECHO_N "(cached) $ECHO_C" >&6
10382 else
10383 cat >conftest.$ac_ext <<_ACEOF
10384 program main
10385 #ifndef __GNUC__
10386 choke me
10387 #endif
10388
10389 end
10390 _ACEOF
10391 rm -f conftest.$ac_objext
10392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10393 (eval $ac_compile) 2>conftest.er1
10394 ac_status=$?
10395 grep -v '^ *+' conftest.er1 >conftest.err
10396 rm -f conftest.er1
10397 cat conftest.err >&5
10398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399 (exit $ac_status); } &&
10400 { ac_try='test -z "$ac_fc_werror_flag"
10401 || test ! -s conftest.err'
10402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10403 (eval $ac_try) 2>&5
10404 ac_status=$?
10405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10406 (exit $ac_status); }; } &&
10407 { ac_try='test -s conftest.$ac_objext'
10408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10409 (eval $ac_try) 2>&5
10410 ac_status=$?
10411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10412 (exit $ac_status); }; }; then
10413 ac_compiler_gnu=yes
10414 else
10415 echo "$as_me: failed program was:" >&5
10416 sed 's/^/| /' conftest.$ac_ext >&5
10417
10418 ac_compiler_gnu=no
10419 fi
10420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10421 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
10422
10423 fi
10424 echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
10425 echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6
10426 ac_ext=$ac_save_ext
10427 ac_test_FFLAGS=${FCFLAGS+set}
10428 ac_save_FFLAGS=$FCFLAGS
10429 FCFLAGS=
10430 echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
10431 echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6
10432 if test "${ac_cv_prog_fc_g+set}" = set; then
10433 echo $ECHO_N "(cached) $ECHO_C" >&6
10434 else
10435 FCFLAGS=-g
10436 cat >conftest.$ac_ext <<_ACEOF
10437 program main
10438
10439 end
10440 _ACEOF
10441 rm -f conftest.$ac_objext
10442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10443 (eval $ac_compile) 2>conftest.er1
10444 ac_status=$?
10445 grep -v '^ *+' conftest.er1 >conftest.err
10446 rm -f conftest.er1
10447 cat conftest.err >&5
10448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449 (exit $ac_status); } &&
10450 { ac_try='test -z "$ac_fc_werror_flag"
10451 || test ! -s conftest.err'
10452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10453 (eval $ac_try) 2>&5
10454 ac_status=$?
10455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10456 (exit $ac_status); }; } &&
10457 { ac_try='test -s conftest.$ac_objext'
10458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10459 (eval $ac_try) 2>&5
10460 ac_status=$?
10461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10462 (exit $ac_status); }; }; then
10463 ac_cv_prog_fc_g=yes
10464 else
10465 echo "$as_me: failed program was:" >&5
10466 sed 's/^/| /' conftest.$ac_ext >&5
10467
10468 ac_cv_prog_fc_g=no
10469 fi
10470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10471
10472 fi
10473 echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
10474 echo "${ECHO_T}$ac_cv_prog_fc_g" >&6
10475 if test "$ac_test_FFLAGS" = set; then
10476 FCFLAGS=$ac_save_FFLAGS
10477 elif test $ac_cv_prog_fc_g = yes; then
10478 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
10479 FCFLAGS="-g -O2"
10480 else
10481 FCFLAGS="-g"
10482 fi
10483 else
10484 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
10485 FCFLAGS="-O2"
10486 else
10487 FCFLAGS=
10488 fi
10489 fi
10490
10491 ac_ext=c
10492 ac_cpp='$CPP $CPPFLAGS'
10493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10496
10497 if test -z "$FC" || test "X$FC" = "Xno"; then
10498 _lt_disable_FC=yes
10499 fi
10500
10501
10502
10503 ac_ext=${FC_SRCEXT-f}
10504 ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
10505 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
10506 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
10507
10508
10509 archive_cmds_need_lc_FC=no
10510 allow_undefined_flag_FC=
10511 always_export_symbols_FC=no
10512 archive_expsym_cmds_FC=
10513 export_dynamic_flag_spec_FC=
10514 hardcode_direct_FC=no
10515 hardcode_direct_absolute_FC=no
10516 hardcode_libdir_flag_spec_FC=
10517 hardcode_libdir_flag_spec_ld_FC=
10518 hardcode_libdir_separator_FC=
10519 hardcode_minus_L_FC=no
10520 hardcode_automatic_FC=no
10521 inherit_rpath_FC=no
10522 module_cmds_FC=
10523 module_expsym_cmds_FC=
10524 link_all_deplibs_FC=unknown
10525 old_archive_cmds_FC=$old_archive_cmds
10526 no_undefined_flag_FC=
10527 whole_archive_flag_spec_FC=
10528 enable_shared_with_static_runtimes_FC=no
10529
10530 # Source file extension for fc test sources.
10531 ac_ext=${ac_fc_srcext-f}
10532
10533 # Object file extension for compiled fc test sources.
10534 objext=o
10535 objext_FC=$objext
10536
10537 # No sense in running all these tests if we already determined that
10538 # the FC compiler isn't working. Some variables (like enable_shared)
10539 # are currently assumed to apply to all compilers on this platform,
10540 # and will be corrupted by setting them based on a non-working compiler.
10541 if test "$_lt_disable_FC" != yes; then
10542 # Code to be used in simple compile tests
10543 lt_simple_compile_test_code="\
10544 subroutine t
10545 return
10546 end
10547 "
10548
10549 # Code to be used in simple link tests
10550 lt_simple_link_test_code="\
10551 program t
10552 end
10553 "
10554
10555 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10556
10557
10558
10559
10560
10561
10562 # If no C compiler was specified, use CC.
10563 LTCC=${LTCC-"$CC"}
10564
10565 # If no C compiler flags were specified, use CFLAGS.
10566 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10567
10568 # Allow CC to be a program name with arguments.
10569 compiler=$CC
10570
10571
10572 # save warnings/boilerplate of simple test code
10573 ac_outfile=conftest.$ac_objext
10574 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10575 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10576 _lt_compiler_boilerplate=`cat conftest.err`
10577 $RM conftest*
10578
10579 ac_outfile=conftest.$ac_objext
10580 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10581 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10582 _lt_linker_boilerplate=`cat conftest.err`
10583 $RM conftest*
10584
10585
10586 # Allow CC to be a program name with arguments.
10587 lt_save_CC="$CC"
10588 CC=${FC-"f95"}
10589 compiler=$CC
10590 compiler_FC=$CC
10591 for cc_temp in $compiler""; do
10592 case $cc_temp in
10593 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10594 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10595 \-*) ;;
10596 *) break;;
10597 esac
10598 done
10599 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10600
10601
10602 if test -n "$compiler"; then
10603 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10604 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10605 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10606 echo "${ECHO_T}$can_build_shared" >&6
10607
10608 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10609 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10610 test "$can_build_shared" = "no" && enable_shared=no
10611
10612 # On AIX, shared libraries and static libraries use the same namespace, and
10613 # are all built from PIC.
10614 case $host_os in
10615 aix3*)
10616 test "$enable_shared" = yes && enable_static=no
10617 if test -n "$RANLIB"; then
10618 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10619 postinstall_cmds='$RANLIB $lib'
10620 fi
10621 ;;
10622 aix[4-9]*)
10623 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10624 test "$enable_shared" = yes && enable_static=no
10625 fi
10626 ;;
10627 esac
10628 echo "$as_me:$LINENO: result: $enable_shared" >&5
10629 echo "${ECHO_T}$enable_shared" >&6
10630
10631 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10632 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10633 # Make sure either enable_shared or enable_static is yes.
10634 test "$enable_shared" = yes || enable_static=yes
10635 echo "$as_me:$LINENO: result: $enable_static" >&5
10636 echo "${ECHO_T}$enable_static" >&6
10637
10638 GCC_FC="$ac_cv_fc_compiler_gnu"
10639 LD_FC="$LD"
10640
10641 ## CAVEAT EMPTOR:
10642 ## There is no encapsulation within the following macros, do not change
10643 ## the running order or otherwise move them around unless you know exactly
10644 ## what you are doing...
10645 # Dependencies to place before and after the object being linked:
10646 predep_objects_FC=
10647 postdep_objects_FC=
10648 predeps_FC=
10649 postdeps_FC=
10650 compiler_lib_search_path_FC=
10651
10652 cat > conftest.$ac_ext <<_LT_EOF
10653 subroutine foo
10654 implicit none
10655 integer a
10656 a=0
10657 return
10658 end
10659 _LT_EOF
10660
10661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10662 (eval $ac_compile) 2>&5
10663 ac_status=$?
10664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665 (exit $ac_status); }; then
10666 # Parse the compiler output and extract the necessary
10667 # objects, libraries and library flags.
10668
10669 # Sentinel used to keep track of whether or not we are before
10670 # the conftest object file.
10671 pre_test_object_deps_done=no
10672
10673 # The `*' in the case matches for architectures that use `case' in
10674 # $output_verbose_cmd can trigger glob expansion during the loop
10675 # eval without this substitution.
10676 output_verbose_link_cmd=`$ECHO "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
10677
10678 for p in `eval $output_verbose_link_cmd`; do
10679 case $p in
10680
10681 -L* | -R* | -l*)
10682 # Some compilers place space between "-{L,R}" and the path.
10683 # Remove the space.
10684 if test $p = "-L" ||
10685 test $p = "-R"; then
10686 prev=$p
10687 continue
10688 else
10689 prev=
10690 fi
10691
10692 if test "$pre_test_object_deps_done" = no; then
10693 case $p in
10694 -L* | -R*)
10695 # Internal compiler library paths should come after those
10696 # provided the user. The postdeps already come after the
10697 # user supplied libs so there is no need to process them.
10698 if test -z "$compiler_lib_search_path_FC"; then
10699 compiler_lib_search_path_FC="${prev}${p}"
10700 else
10701 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
10702 fi
10703 ;;
10704 # The "-l" case would never come before the object being
10705 # linked, so don't bother handling this case.
10706 esac
10707 else
10708 if test -z "$postdeps_FC"; then
10709 postdeps_FC="${prev}${p}"
10710 else
10711 postdeps_FC="${postdeps_FC} ${prev}${p}"
10712 fi
10713 fi
10714 ;;
10715
10716 *.$objext)
10717 # This assumes that the test object file only shows up
10718 # once in the compiler output.
10719 if test "$p" = "conftest.$objext"; then
10720 pre_test_object_deps_done=yes
10721 continue
10722 fi
10723
10724 if test "$pre_test_object_deps_done" = no; then
10725 if test -z "$predep_objects_FC"; then
10726 predep_objects_FC="$p"
10727 else
10728 predep_objects_FC="$predep_objects_FC $p"
10729 fi
10730 else
10731 if test -z "$postdep_objects_FC"; then
10732 postdep_objects_FC="$p"
10733 else
10734 postdep_objects_FC="$postdep_objects_FC $p"
10735 fi
10736 fi
10737 ;;
10738
10739 *) ;; # Ignore the rest.
10740
10741 esac
10742 done
10743
10744 # Clean up.
10745 rm -f a.out a.exe
10746 else
10747 echo "libtool.m4: error: problem compiling FC test program"
10748 fi
10749
10750 $RM -f confest.$objext
10751
10752 # PORTME: override above test on systems where it is broken
10753
10754
10755 case " $postdeps_FC " in
10756 *" -lc "*) archive_cmds_need_lc_FC=no ;;
10757 esac
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784 lt_prog_compiler_wl_FC=
10785 lt_prog_compiler_pic_FC=
10786 lt_prog_compiler_static_FC=
10787
10788 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10789 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10790
10791 if test "$GCC" = yes; then
10792 lt_prog_compiler_wl_FC='-Wl,'
10793 lt_prog_compiler_static_FC='-static'
10794
10795 case $host_os in
10796 aix*)
10797 # All AIX code is PIC.
10798 if test "$host_cpu" = ia64; then
10799 # AIX 5 now supports IA64 processor
10800 lt_prog_compiler_static_FC='-Bstatic'
10801 fi
10802 ;;
10803
10804 amigaos*)
10805 if test "$host_cpu" = m68k; then
10806 # FIXME: we need at least 68020 code to build shared libraries, but
10807 # adding the `-m68020' flag to GCC prevents building anything better,
10808 # like `-m68040'.
10809 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
10810 fi
10811 ;;
10812
10813 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10814 # PIC is the default for these OSes.
10815 ;;
10816
10817 mingw* | cygwin* | pw32* | os2*)
10818 # This hack is so that the source file can tell whether it is being
10819 # built for inclusion in a dll (and should export symbols for example).
10820 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10821 # (--disable-auto-import) libraries
10822 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
10823 ;;
10824
10825 darwin* | rhapsody*)
10826 # PIC is the default on this platform
10827 # Common symbols not allowed in MH_DYLIB files
10828 lt_prog_compiler_pic_FC='-fno-common'
10829 ;;
10830
10831 hpux*)
10832 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10833 # not for PA HP-UX.
10834 case $host_cpu in
10835 hppa*64*|ia64*)
10836 # +Z the default
10837 ;;
10838 *)
10839 lt_prog_compiler_pic_FC='-fPIC'
10840 ;;
10841 esac
10842 ;;
10843
10844 interix[3-9]*)
10845 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10846 # Instead, we relocate shared libraries at runtime.
10847 ;;
10848
10849 msdosdjgpp*)
10850 # Just because we use GCC doesn't mean we suddenly get shared libraries
10851 # on systems that don't support them.
10852 lt_prog_compiler_can_build_shared_FC=no
10853 enable_shared=no
10854 ;;
10855
10856 *nto* | *qnx*)
10857 # QNX uses GNU C++, but need to define -shared option too, otherwise
10858 # it will coredump.
10859 lt_prog_compiler_pic_FC='-fPIC -shared'
10860 ;;
10861
10862 sysv4*MP*)
10863 if test -d /usr/nec; then
10864 lt_prog_compiler_pic_FC=-Kconform_pic
10865 fi
10866 ;;
10867
10868 *)
10869 lt_prog_compiler_pic_FC='-fPIC'
10870 ;;
10871 esac
10872 else
10873 # PORTME Check for flag to pass linker flags through the system compiler.
10874 case $host_os in
10875 aix*)
10876 lt_prog_compiler_wl_FC='-Wl,'
10877 if test "$host_cpu" = ia64; then
10878 # AIX 5 now supports IA64 processor
10879 lt_prog_compiler_static_FC='-Bstatic'
10880 else
10881 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
10882 fi
10883 ;;
10884 darwin*)
10885 # PIC is the default on this platform
10886 # Common symbols not allowed in MH_DYLIB files
10887 case $cc_basename in
10888 xlc*)
10889 lt_prog_compiler_pic_FC='-qnocommon'
10890 lt_prog_compiler_wl_FC='-Wl,'
10891 ;;
10892 esac
10893 ;;
10894
10895 mingw* | cygwin* | pw32* | os2*)
10896 # This hack is so that the source file can tell whether it is being
10897 # built for inclusion in a dll (and should export symbols for example).
10898 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
10899 ;;
10900
10901 hpux9* | hpux10* | hpux11*)
10902 lt_prog_compiler_wl_FC='-Wl,'
10903 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10904 # not for PA HP-UX.
10905 case $host_cpu in
10906 hppa*64*|ia64*)
10907 # +Z the default
10908 ;;
10909 *)
10910 lt_prog_compiler_pic_FC='+Z'
10911 ;;
10912 esac
10913 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10914 lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
10915 ;;
10916
10917 irix5* | irix6* | nonstopux*)
10918 lt_prog_compiler_wl_FC='-Wl,'
10919 # PIC (with -KPIC) is the default.
10920 lt_prog_compiler_static_FC='-non_shared'
10921 ;;
10922
10923 linux* | k*bsd*-gnu)
10924 case $cc_basename in
10925 icc* | ecc*)
10926 lt_prog_compiler_wl_FC='-Wl,'
10927 lt_prog_compiler_pic_FC='-KPIC'
10928 lt_prog_compiler_static_FC='-static'
10929 ;;
10930 pgcc* | pgf77* | pgf90* | pgf95*)
10931 # Portland Group compilers (*not* the Pentium gcc compiler,
10932 # which looks to be a dead project)
10933 lt_prog_compiler_wl_FC='-Wl,'
10934 lt_prog_compiler_pic_FC='-fpic'
10935 lt_prog_compiler_static_FC='-Bstatic'
10936 ;;
10937 ccc*)
10938 lt_prog_compiler_wl_FC='-Wl,'
10939 # All Alpha code is PIC.
10940 lt_prog_compiler_static_FC='-non_shared'
10941 ;;
10942 *)
10943 case `$CC -V 2>&1 | sed 5q` in
10944 *Sun\ C*)
10945 # Sun C 5.9
10946 lt_prog_compiler_pic_FC='-KPIC'
10947 lt_prog_compiler_static_FC='-Bstatic'
10948 lt_prog_compiler_wl_FC='-Wl,'
10949 ;;
10950 *Sun\ F*)
10951 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10952 lt_prog_compiler_pic_FC='-KPIC'
10953 lt_prog_compiler_static_FC='-Bstatic'
10954 lt_prog_compiler_wl_FC=''
10955 ;;
10956 esac
10957 ;;
10958 esac
10959 ;;
10960
10961 newsos6)
10962 lt_prog_compiler_pic_FC='-KPIC'
10963 lt_prog_compiler_static_FC='-Bstatic'
10964 ;;
10965
10966 *nto* | *qnx*)
10967 # QNX uses GNU C++, but need to define -shared option too, otherwise
10968 # it will coredump.
10969 lt_prog_compiler_pic_FC='-fPIC -shared'
10970 ;;
10971
10972 osf3* | osf4* | osf5*)
10973 lt_prog_compiler_wl_FC='-Wl,'
10974 # All OSF/1 code is PIC.
10975 lt_prog_compiler_static_FC='-non_shared'
10976 ;;
10977
10978 rdos*)
10979 lt_prog_compiler_static_FC='-non_shared'
10980 ;;
10981
10982 solaris*)
10983 lt_prog_compiler_pic_FC='-KPIC'
10984 lt_prog_compiler_static_FC='-Bstatic'
10985 case $cc_basename in
10986 f77* | f90* | f95*)
10987 lt_prog_compiler_wl_FC='-Qoption ld ';;
10988 *)
10989 lt_prog_compiler_wl_FC='-Wl,';;
10990 esac
10991 ;;
10992
10993 sunos4*)
10994 lt_prog_compiler_wl_FC='-Qoption ld '
10995 lt_prog_compiler_pic_FC='-PIC'
10996 lt_prog_compiler_static_FC='-Bstatic'
10997 ;;
10998
10999 sysv4 | sysv4.2uw2* | sysv4.3*)
11000 lt_prog_compiler_wl_FC='-Wl,'
11001 lt_prog_compiler_pic_FC='-KPIC'
11002 lt_prog_compiler_static_FC='-Bstatic'
11003 ;;
11004
11005 sysv4*MP*)
11006 if test -d /usr/nec ;then
11007 lt_prog_compiler_pic_FC='-Kconform_pic'
11008 lt_prog_compiler_static_FC='-Bstatic'
11009 fi
11010 ;;
11011
11012 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11013 lt_prog_compiler_wl_FC='-Wl,'
11014 lt_prog_compiler_pic_FC='-KPIC'
11015 lt_prog_compiler_static_FC='-Bstatic'
11016 ;;
11017
11018 unicos*)
11019 lt_prog_compiler_wl_FC='-Wl,'
11020 lt_prog_compiler_can_build_shared_FC=no
11021 ;;
11022
11023 uts4*)
11024 lt_prog_compiler_pic_FC='-pic'
11025 lt_prog_compiler_static_FC='-Bstatic'
11026 ;;
11027
11028 *)
11029 lt_prog_compiler_can_build_shared_FC=no
11030 ;;
11031 esac
11032 fi
11033
11034 case $host_os in
11035 # For platforms which do not support PIC, -DPIC is meaningless:
11036 *djgpp*)
11037 lt_prog_compiler_pic_FC=
11038 ;;
11039 *)
11040 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
11041 ;;
11042 esac
11043 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_FC" >&5
11044 echo "${ECHO_T}$lt_prog_compiler_pic_FC" >&6
11045
11046
11047
11048 #
11049 # Check to make sure the PIC flag actually works.
11050 #
11051 if test -n "$lt_prog_compiler_pic_FC"; then
11052 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
11053 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... $ECHO_C" >&6
11054 if test "${lt_prog_compiler_pic_works_FC+set}" = set; then
11055 echo $ECHO_N "(cached) $ECHO_C" >&6
11056 else
11057 lt_prog_compiler_pic_works_FC=no
11058 ac_outfile=conftest.$ac_objext
11059 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11060 lt_compiler_flag="$lt_prog_compiler_pic_FC"
11061 # Insert the option either (1) after the last *FLAGS variable, or
11062 # (2) before a word containing "conftest.", or (3) at the end.
11063 # Note that $ac_compile itself does not contain backslashes and begins
11064 # with a dollar sign (not a hyphen), so the echo should work correctly.
11065 # The option is referenced via a variable to avoid confusing sed.
11066 lt_compile=`echo "$ac_compile" | $SED \
11067 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11068 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11069 -e 's:$: $lt_compiler_flag:'`
11070 (eval echo "\"\$as_me:11090: $lt_compile\"" >&5)
11071 (eval "$lt_compile" 2>conftest.err)
11072 ac_status=$?
11073 cat conftest.err >&5
11074 echo "$as_me:11094: \$? = $ac_status" >&5
11075 if (exit $ac_status) && test -s "$ac_outfile"; then
11076 # The compiler can only warn and ignore the option if not recognized
11077 # So say no if there are warnings other than the usual output.
11078 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11079 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11080 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11081 lt_prog_compiler_pic_works_FC=yes
11082 fi
11083 fi
11084 $RM conftest*
11085
11086 fi
11087 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_FC" >&5
11088 echo "${ECHO_T}$lt_prog_compiler_pic_works_FC" >&6
11089
11090 if test x"$lt_prog_compiler_pic_works_FC" = xyes; then
11091 case $lt_prog_compiler_pic_FC in
11092 "" | " "*) ;;
11093 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
11094 esac
11095 else
11096 lt_prog_compiler_pic_FC=
11097 lt_prog_compiler_can_build_shared_FC=no
11098 fi
11099
11100 fi
11101
11102
11103
11104 #
11105 # Check to make sure the static flag actually works.
11106 #
11107 wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
11108 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11109 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11110 if test "${lt_prog_compiler_static_works_FC+set}" = set; then
11111 echo $ECHO_N "(cached) $ECHO_C" >&6
11112 else
11113 lt_prog_compiler_static_works_FC=no
11114 save_LDFLAGS="$LDFLAGS"
11115 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11116 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11117 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11118 # The linker can only warn and ignore the option if not recognized
11119 # So say no if there are warnings
11120 if test -s conftest.err; then
11121 # Append any errors to the config.log.
11122 cat conftest.err 1>&5
11123 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11124 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11125 if diff conftest.exp conftest.er2 >/dev/null; then
11126 lt_prog_compiler_static_works_FC=yes
11127 fi
11128 else
11129 lt_prog_compiler_static_works_FC=yes
11130 fi
11131 fi
11132 $RM conftest*
11133 LDFLAGS="$save_LDFLAGS"
11134
11135 fi
11136 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_FC" >&5
11137 echo "${ECHO_T}$lt_prog_compiler_static_works_FC" >&6
11138
11139 if test x"$lt_prog_compiler_static_works_FC" = xyes; then
11140 :
11141 else
11142 lt_prog_compiler_static_FC=
11143 fi
11144
11145
11146
11147
11148 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11149 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11150 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then
11151 echo $ECHO_N "(cached) $ECHO_C" >&6
11152 else
11153 lt_cv_prog_compiler_c_o_FC=no
11154 $RM -r conftest 2>/dev/null
11155 mkdir conftest
11156 cd conftest
11157 mkdir out
11158 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11159
11160 lt_compiler_flag="-o out/conftest2.$ac_objext"
11161 # Insert the option either (1) after the last *FLAGS variable, or
11162 # (2) before a word containing "conftest.", or (3) at the end.
11163 # Note that $ac_compile itself does not contain backslashes and begins
11164 # with a dollar sign (not a hyphen), so the echo should work correctly.
11165 lt_compile=`echo "$ac_compile" | $SED \
11166 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11167 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11168 -e 's:$: $lt_compiler_flag:'`
11169 (eval echo "\"\$as_me:11189: $lt_compile\"" >&5)
11170 (eval "$lt_compile" 2>out/conftest.err)
11171 ac_status=$?
11172 cat out/conftest.err >&5
11173 echo "$as_me:11193: \$? = $ac_status" >&5
11174 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11175 then
11176 # The compiler can only warn and ignore the option if not recognized
11177 # So say no if there are warnings
11178 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11179 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11180 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11181 lt_cv_prog_compiler_c_o_FC=yes
11182 fi
11183 fi
11184 chmod u+w . 2>&5
11185 $RM conftest*
11186 # SGI C++ compiler will create directory out/ii_files/ for
11187 # template instantiation
11188 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11189 $RM out/* && rmdir out
11190 cd ..
11191 $RM -r conftest
11192 $RM conftest*
11193
11194 fi
11195 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_FC" >&5
11196 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_FC" >&6
11197
11198
11199
11200 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11201 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11202 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then
11203 echo $ECHO_N "(cached) $ECHO_C" >&6
11204 else
11205 lt_cv_prog_compiler_c_o_FC=no
11206 $RM -r conftest 2>/dev/null
11207 mkdir conftest
11208 cd conftest
11209 mkdir out
11210 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11211
11212 lt_compiler_flag="-o out/conftest2.$ac_objext"
11213 # Insert the option either (1) after the last *FLAGS variable, or
11214 # (2) before a word containing "conftest.", or (3) at the end.
11215 # Note that $ac_compile itself does not contain backslashes and begins
11216 # with a dollar sign (not a hyphen), so the echo should work correctly.
11217 lt_compile=`echo "$ac_compile" | $SED \
11218 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11219 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11220 -e 's:$: $lt_compiler_flag:'`
11221 (eval echo "\"\$as_me:11241: $lt_compile\"" >&5)
11222 (eval "$lt_compile" 2>out/conftest.err)
11223 ac_status=$?
11224 cat out/conftest.err >&5
11225 echo "$as_me:11245: \$? = $ac_status" >&5
11226 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11227 then
11228 # The compiler can only warn and ignore the option if not recognized
11229 # So say no if there are warnings
11230 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11231 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11232 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11233 lt_cv_prog_compiler_c_o_FC=yes
11234 fi
11235 fi
11236 chmod u+w . 2>&5
11237 $RM conftest*
11238 # SGI C++ compiler will create directory out/ii_files/ for
11239 # template instantiation
11240 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11241 $RM out/* && rmdir out
11242 cd ..
11243 $RM -r conftest
11244 $RM conftest*
11245
11246 fi
11247 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_FC" >&5
11248 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_FC" >&6
11249
11250
11251
11252
11253 hard_links="nottested"
11254 if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
11255 # do not overwrite the value of need_locks provided by the user
11256 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11257 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11258 hard_links=yes
11259 $RM conftest*
11260 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11261 touch conftest.a
11262 ln conftest.a conftest.b 2>&5 || hard_links=no
11263 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11264 echo "$as_me:$LINENO: result: $hard_links" >&5
11265 echo "${ECHO_T}$hard_links" >&6
11266 if test "$hard_links" = no; then
11267 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11268 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11269 need_locks=warn
11270 fi
11271 else
11272 need_locks=no
11273 fi
11274
11275
11276
11277 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11278 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11279
11280 runpath_var=
11281 allow_undefined_flag_FC=
11282 always_export_symbols_FC=no
11283 archive_cmds_FC=
11284 archive_expsym_cmds_FC=
11285 compiler_needs_object_FC=no
11286 enable_shared_with_static_runtimes_FC=no
11287 export_dynamic_flag_spec_FC=
11288 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11289 hardcode_automatic_FC=no
11290 hardcode_direct_FC=no
11291 hardcode_direct_absolute_FC=no
11292 hardcode_libdir_flag_spec_FC=
11293 hardcode_libdir_flag_spec_ld_FC=
11294 hardcode_libdir_separator_FC=
11295 hardcode_minus_L_FC=no
11296 hardcode_shlibpath_var_FC=unsupported
11297 inherit_rpath_FC=no
11298 link_all_deplibs_FC=unknown
11299 module_cmds_FC=
11300 module_expsym_cmds_FC=
11301 old_archive_from_new_cmds_FC=
11302 old_archive_from_expsyms_cmds_FC=
11303 thread_safe_flag_spec_FC=
11304 whole_archive_flag_spec_FC=
11305 # include_expsyms should be a list of space-separated symbols to be *always*
11306 # included in the symbol list
11307 include_expsyms_FC=
11308 # exclude_expsyms can be an extended regexp of symbols to exclude
11309 # it will be wrapped by ` (' and `)$', so one must not match beginning or
11310 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11311 # as well as any symbol that contains `d'.
11312 exclude_expsyms_FC="_GLOBAL_OFFSET_TABLE_"
11313 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11314 # platforms (ab)use it in PIC code, but their linkers get confused if
11315 # the symbol is explicitly referenced. Since portable code cannot
11316 # rely on this symbol name, it's probably fine to never include it in
11317 # preloaded symbol tables.
11318 extract_expsyms_cmds=
11319
11320 case $host_os in
11321 cygwin* | mingw* | pw32*)
11322 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11323 # When not using gcc, we currently assume that we are using
11324 # Microsoft Visual C++.
11325 if test "$GCC" != yes; then
11326 with_gnu_ld=no
11327 fi
11328 ;;
11329 interix*)
11330 # we just hope/assume this is gcc and not c89 (= MSVC++)
11331 with_gnu_ld=yes
11332 ;;
11333 openbsd*)
11334 with_gnu_ld=no
11335 ;;
11336 esac
11337
11338 ld_shlibs_FC=yes
11339 if test "$with_gnu_ld" = yes; then
11340 # If archive_cmds runs LD, not CC, wlarc should be empty
11341 wlarc='${wl}'
11342
11343 # Set some defaults for GNU ld with shared library support. These
11344 # are reset later if shared libraries are not supported. Putting them
11345 # here allows them to be overridden if necessary.
11346 runpath_var=LD_RUN_PATH
11347 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
11348 export_dynamic_flag_spec_FC='${wl}--export-dynamic'
11349 # ancient GNU ld didn't support --whole-archive et. al.
11350 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11351 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11352 else
11353 whole_archive_flag_spec_FC=
11354 fi
11355 supports_anon_versioning=no
11356 case `$LD -v 2>&1` in
11357 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11358 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11359 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11360 *\ 2.11.*) ;; # other 2.11 versions
11361 *) supports_anon_versioning=yes ;;
11362 esac
11363
11364 # See if GNU ld supports shared libraries.
11365 case $host_os in
11366 aix[3-9]*)
11367 # On AIX/PPC, the GNU linker is very broken
11368 if test "$host_cpu" != ia64; then
11369 ld_shlibs_FC=no
11370 cat <<_LT_EOF 1>&2
11371
11372 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
11373 *** to be unable to reliably create shared libraries on AIX.
11374 *** Therefore, libtool is disabling shared libraries support. If you
11375 *** really care for shared libraries, you may want to modify your PATH
11376 *** so that a non-GNU linker is found, and then restart.
11377
11378 _LT_EOF
11379 fi
11380 ;;
11381
11382 amigaos*)
11383 if test "$host_cpu" = m68k; then
11384 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)'
11385 hardcode_libdir_flag_spec_FC='-L$libdir'
11386 hardcode_minus_L_FC=yes
11387 fi
11388
11389 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
11390 # that the semantics of dynamic libraries on AmigaOS, at least up
11391 # to version 4, is to share data among multiple programs linked
11392 # with the same dynamic library. Since this doesn't match the
11393 # behavior of shared libraries on other platforms, we can't use
11394 # them.
11395 ld_shlibs_FC=no
11396 ;;
11397
11398 beos*)
11399 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11400 allow_undefined_flag_FC=unsupported
11401 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11402 # support --undefined. This deserves some investigation. FIXME
11403 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11404 else
11405 ld_shlibs_FC=no
11406 fi
11407 ;;
11408
11409 cygwin* | mingw* | pw32*)
11410 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
11411 # as there is no search path for DLLs.
11412 hardcode_libdir_flag_spec_FC='-L$libdir'
11413 allow_undefined_flag_FC=unsupported
11414 always_export_symbols_FC=no
11415 enable_shared_with_static_runtimes_FC=yes
11416 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11417
11418 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11419 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11420 # If the export-symbols file already is a .def file (1st line
11421 # is EXPORTS), use it as is; otherwise, prepend...
11422 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11423 cp $export_symbols $output_objdir/$soname.def;
11424 else
11425 echo EXPORTS > $output_objdir/$soname.def;
11426 cat $export_symbols >> $output_objdir/$soname.def;
11427 fi~
11428 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11429 else
11430 ld_shlibs_FC=no
11431 fi
11432 ;;
11433
11434 interix[3-9]*)
11435 hardcode_direct_FC=no
11436 hardcode_shlibpath_var_FC=no
11437 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
11438 export_dynamic_flag_spec_FC='${wl}-E'
11439 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11440 # Instead, shared libraries are loaded at an image base (0x10000000 by
11441 # default) and relocated if they conflict, which is a slow very memory
11442 # consuming and fragmenting process. To avoid this, we pick a random,
11443 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11444 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11445 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'
11446 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'
11447 ;;
11448
11449 gnu* | linux* | tpf* | k*bsd*-gnu)
11450 tmp_diet=no
11451 if test "$host_os" = linux-dietlibc; then
11452 case $cc_basename in
11453 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11454 esac
11455 fi
11456 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11457 && test "$tmp_diet" = no
11458 then
11459 tmp_addflag=
11460 case $cc_basename,$host_cpu in
11461 pgcc*) # Portland Group C compiler
11462 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'
11463 tmp_addflag=' $pic_flag'
11464 ;;
11465 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
11466 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'
11467 tmp_addflag=' $pic_flag -Mnomain' ;;
11468 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11469 tmp_addflag=' -i_dynamic' ;;
11470 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11471 tmp_addflag=' -i_dynamic -nofor_main' ;;
11472 ifc* | ifort*) # Intel Fortran compiler
11473 tmp_addflag=' -nofor_main' ;;
11474 esac
11475 case `$CC -V 2>&1 | sed 5q` in
11476 *Sun\ C*) # Sun C 5.9
11477 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'
11478 compiler_needs_object_FC=yes
11479 tmp_sharedflag='-G' ;;
11480 *Sun\ F*) # Sun Fortran 8.3
11481 tmp_sharedflag='-G' ;;
11482 *)
11483 tmp_sharedflag='-shared' ;;
11484 esac
11485 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11486
11487 if test "x$supports_anon_versioning" = xyes; then
11488 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
11489 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11490 echo "local: *; };" >> $output_objdir/$libname.ver~
11491 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11492 fi
11493 else
11494 ld_shlibs_FC=no
11495 fi
11496 ;;
11497
11498 netbsd*)
11499 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11500 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11501 wlarc=
11502 else
11503 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11504 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11505 fi
11506 ;;
11507
11508 solaris*)
11509 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11510 ld_shlibs_FC=no
11511 cat <<_LT_EOF 1>&2
11512
11513 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11514 *** create shared libraries on Solaris systems. Therefore, libtool
11515 *** is disabling shared libraries support. We urge you to upgrade GNU
11516 *** binutils to release 2.9.1 or newer. Another option is to modify
11517 *** your PATH or compiler configuration so that the native linker is
11518 *** used, and then restart.
11519
11520 _LT_EOF
11521 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11522 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11523 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11524 else
11525 ld_shlibs_FC=no
11526 fi
11527 ;;
11528
11529 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11530 case `$LD -v 2>&1` in
11531 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11532 ld_shlibs_FC=no
11533 cat <<_LT_EOF 1>&2
11534
11535 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11536 *** reliably create shared libraries on SCO systems. Therefore, libtool
11537 *** is disabling shared libraries support. We urge you to upgrade GNU
11538 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11539 *** your PATH or compiler configuration so that the native linker is
11540 *** used, and then restart.
11541
11542 _LT_EOF
11543 ;;
11544 *)
11545 # For security reasons, it is highly recommended that you always
11546 # use absolute paths for naming shared libraries, and exclude the
11547 # DT_RUNPATH tag from executables and libraries. But doing so
11548 # requires that you compile everything twice, which is a pain.
11549 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11550 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
11551 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11552 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11553 else
11554 ld_shlibs_FC=no
11555 fi
11556 ;;
11557 esac
11558 ;;
11559
11560 sunos4*)
11561 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11562 wlarc=
11563 hardcode_direct_FC=yes
11564 hardcode_shlibpath_var_FC=no
11565 ;;
11566
11567 *)
11568 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11569 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11570 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11571 else
11572 ld_shlibs_FC=no
11573 fi
11574 ;;
11575 esac
11576
11577 if test "$ld_shlibs_FC" = no; then
11578 runpath_var=
11579 hardcode_libdir_flag_spec_FC=
11580 export_dynamic_flag_spec_FC=
11581 whole_archive_flag_spec_FC=
11582 fi
11583 else
11584 # PORTME fill in a description of your system's linker (not GNU ld)
11585 case $host_os in
11586 aix3*)
11587 allow_undefined_flag_FC=unsupported
11588 always_export_symbols_FC=yes
11589 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'
11590 # Note: this linker hardcodes the directories in LIBPATH if there
11591 # are no directories specified by -L.
11592 hardcode_minus_L_FC=yes
11593 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11594 # Neither direct hardcoding nor static linking is supported with a
11595 # broken collect2.
11596 hardcode_direct_FC=unsupported
11597 fi
11598 ;;
11599
11600 aix[4-9]*)
11601 if test "$host_cpu" = ia64; then
11602 # On IA64, the linker does run time linking by default, so we don't
11603 # have to do anything special.
11604 aix_use_runtimelinking=no
11605 exp_sym_flag='-Bexport'
11606 no_entry_flag=""
11607 else
11608 # If we're using GNU nm, then we don't want the "-C" option.
11609 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11610 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11611 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'
11612 else
11613 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'
11614 fi
11615 aix_use_runtimelinking=no
11616
11617 # Test if we are trying to use run time linking or normal
11618 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11619 # need to do runtime linking.
11620 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11621 for ld_flag in $LDFLAGS; do
11622 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11623 aix_use_runtimelinking=yes
11624 break
11625 fi
11626 done
11627 ;;
11628 esac
11629
11630 exp_sym_flag='-bexport'
11631 no_entry_flag='-bnoentry'
11632 fi
11633
11634 # When large executables or shared objects are built, AIX ld can
11635 # have problems creating the table of contents. If linking a library
11636 # or program results in "error TOC overflow" add -mminimal-toc to
11637 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11638 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11639
11640 archive_cmds_FC=''
11641 hardcode_direct_FC=yes
11642 hardcode_direct_absolute_FC=yes
11643 hardcode_libdir_separator_FC=':'
11644 link_all_deplibs_FC=yes
11645 file_list_spec_FC='${wl}-f,'
11646
11647 if test "$GCC" = yes; then
11648 case $host_os in aix4.[012]|aix4.[012].*)
11649 # We only want to do this on AIX 4.2 and lower, the check
11650 # below for broken collect2 doesn't work under 4.3+
11651 collect2name=`${CC} -print-prog-name=collect2`
11652 if test -f "$collect2name" &&
11653 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11654 then
11655 # We have reworked collect2
11656 :
11657 else
11658 # We have old collect2
11659 hardcode_direct_FC=unsupported
11660 # It fails to find uninstalled libraries when the uninstalled
11661 # path is not listed in the libpath. Setting hardcode_minus_L
11662 # to unsupported forces relinking
11663 hardcode_minus_L_FC=yes
11664 hardcode_libdir_flag_spec_FC='-L$libdir'
11665 hardcode_libdir_separator_FC=
11666 fi
11667 ;;
11668 esac
11669 shared_flag='-shared'
11670 if test "$aix_use_runtimelinking" = yes; then
11671 shared_flag="$shared_flag "'${wl}-G'
11672 fi
11673 else
11674 # not using gcc
11675 if test "$host_cpu" = ia64; then
11676 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11677 # chokes on -Wl,-G. The following line is correct:
11678 shared_flag='-G'
11679 else
11680 if test "$aix_use_runtimelinking" = yes; then
11681 shared_flag='${wl}-G'
11682 else
11683 shared_flag='${wl}-bM:SRE'
11684 fi
11685 fi
11686 fi
11687
11688 # It seems that -bexpall does not export symbols beginning with
11689 # underscore (_), so it is better to generate a list of symbols to export.
11690 always_export_symbols_FC=yes
11691 if test "$aix_use_runtimelinking" = yes; then
11692 # Warning - without using the other runtime loading flags (-brtl),
11693 # -berok will link without error, but may produce a broken library.
11694 allow_undefined_flag_FC='-berok'
11695 # Determine the default libpath from the value encoded in an
11696 # empty executable.
11697 cat >conftest.$ac_ext <<_ACEOF
11698 program main
11699
11700 end
11701 _ACEOF
11702 rm -f conftest.$ac_objext conftest$ac_exeext
11703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11704 (eval $ac_link) 2>conftest.er1
11705 ac_status=$?
11706 grep -v '^ *+' conftest.er1 >conftest.err
11707 rm -f conftest.er1
11708 cat conftest.err >&5
11709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11710 (exit $ac_status); } &&
11711 { ac_try='test -z "$ac_fc_werror_flag"
11712 || test ! -s conftest.err'
11713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11714 (eval $ac_try) 2>&5
11715 ac_status=$?
11716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11717 (exit $ac_status); }; } &&
11718 { ac_try='test -s conftest$ac_exeext'
11719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11720 (eval $ac_try) 2>&5
11721 ac_status=$?
11722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11723 (exit $ac_status); }; }; then
11724
11725 lt_aix_libpath_sed='
11726 /Import File Strings/,/^$/ {
11727 /^0/ {
11728 s/^0 *\(.*\)$/\1/
11729 p
11730 }
11731 }'
11732 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11733 # Check for a 64-bit object if we didn't find anything.
11734 if test -z "$aix_libpath"; then
11735 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11736 fi
11737 else
11738 echo "$as_me: failed program was:" >&5
11739 sed 's/^/| /' conftest.$ac_ext >&5
11740
11741 fi
11742 rm -f conftest.err conftest.$ac_objext \
11743 conftest$ac_exeext conftest.$ac_ext
11744 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11745
11746 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
11747 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"
11748 else
11749 if test "$host_cpu" = ia64; then
11750 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
11751 allow_undefined_flag_FC="-z nodefs"
11752 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"
11753 else
11754 # Determine the default libpath from the value encoded in an
11755 # empty executable.
11756 cat >conftest.$ac_ext <<_ACEOF
11757 program main
11758
11759 end
11760 _ACEOF
11761 rm -f conftest.$ac_objext conftest$ac_exeext
11762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11763 (eval $ac_link) 2>conftest.er1
11764 ac_status=$?
11765 grep -v '^ *+' conftest.er1 >conftest.err
11766 rm -f conftest.er1
11767 cat conftest.err >&5
11768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11769 (exit $ac_status); } &&
11770 { ac_try='test -z "$ac_fc_werror_flag"
11771 || test ! -s conftest.err'
11772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11773 (eval $ac_try) 2>&5
11774 ac_status=$?
11775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11776 (exit $ac_status); }; } &&
11777 { ac_try='test -s conftest$ac_exeext'
11778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11779 (eval $ac_try) 2>&5
11780 ac_status=$?
11781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11782 (exit $ac_status); }; }; then
11783
11784 lt_aix_libpath_sed='
11785 /Import File Strings/,/^$/ {
11786 /^0/ {
11787 s/^0 *\(.*\)$/\1/
11788 p
11789 }
11790 }'
11791 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11792 # Check for a 64-bit object if we didn't find anything.
11793 if test -z "$aix_libpath"; then
11794 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11795 fi
11796 else
11797 echo "$as_me: failed program was:" >&5
11798 sed 's/^/| /' conftest.$ac_ext >&5
11799
11800 fi
11801 rm -f conftest.err conftest.$ac_objext \
11802 conftest$ac_exeext conftest.$ac_ext
11803 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11804
11805 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
11806 # Warning - without using the other run time loading flags,
11807 # -berok will link without error, but may produce a broken library.
11808 no_undefined_flag_FC=' ${wl}-bernotok'
11809 allow_undefined_flag_FC=' ${wl}-berok'
11810 # Exported symbols can be pulled into shared objects from archives
11811 whole_archive_flag_spec_FC='$convenience'
11812 archive_cmds_need_lc_FC=yes
11813 # This is similar to how AIX traditionally builds its shared libraries.
11814 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'
11815 fi
11816 fi
11817 ;;
11818
11819 amigaos*)
11820 if test "$host_cpu" = m68k; then
11821 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)'
11822 hardcode_libdir_flag_spec_FC='-L$libdir'
11823 hardcode_minus_L_FC=yes
11824 fi
11825 # see comment about different semantics on the GNU ld section
11826 ld_shlibs_FC=no
11827 ;;
11828
11829 bsdi[45]*)
11830 export_dynamic_flag_spec_FC=-rdynamic
11831 ;;
11832
11833 cygwin* | mingw* | pw32*)
11834 # When not using gcc, we currently assume that we are using
11835 # Microsoft Visual C++.
11836 # hardcode_libdir_flag_spec is actually meaningless, as there is
11837 # no search path for DLLs.
11838 hardcode_libdir_flag_spec_FC=' '
11839 allow_undefined_flag_FC=unsupported
11840 # Tell ltmain to make .lib files, not .a files.
11841 libext=lib
11842 # Tell ltmain to make .dll files, not .so files.
11843 shrext_cmds=".dll"
11844 # FIXME: Setting linknames here is a bad hack.
11845 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
11846 # The linker will automatically build a .lib file if we build a DLL.
11847 old_archive_from_new_cmds_FC='true'
11848 # FIXME: Should let the user specify the lib program.
11849 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
11850 fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
11851 enable_shared_with_static_runtimes_FC=yes
11852 ;;
11853
11854 darwin* | rhapsody*)
11855 case $host_os in
11856 rhapsody* | darwin1.[012])
11857 allow_undefined_flag_FC='${wl}-undefined ${wl}suppress'
11858 ;;
11859 *) # Darwin 1.3 on
11860 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
11861 10.[012])
11862 allow_undefined_flag_FC='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11863 ;;
11864 10.*)
11865 allow_undefined_flag_FC='${wl}-undefined ${wl}dynamic_lookup'
11866 ;;
11867 esac
11868 ;;
11869 esac
11870 archive_cmds_need_lc_FC=no
11871 hardcode_direct_FC=no
11872 hardcode_automatic_FC=yes
11873 hardcode_shlibpath_var_FC=unsupported
11874 whole_archive_flag_spec_FC=''
11875 link_all_deplibs_FC=yes
11876 if test "$GCC" = yes ; then
11877 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
11878 echo $ECHO_N "(cached) $ECHO_C" >&6
11879 else
11880 lt_cv_apple_cc_single_mod=no
11881 if test -z "${LT_MULTI_MODULE}"; then
11882 # By default we will add the -single_module flag. You can override
11883 # by either setting the environment variable LT_MULTI_MODULE
11884 # non-empty at configure time, or by adding -multi-module to the
11885 # link flags.
11886 echo "int foo(void){return 1;}" > conftest.c
11887 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11888 -dynamiclib ${wl}-single_module conftest.c
11889 if test -f libconftest.dylib; then
11890 lt_cv_apple_cc_single_mod=yes
11891 rm libconftest.dylib
11892 fi
11893 rm conftest.$ac_ext
11894 fi
11895 fi
11896
11897 output_verbose_link_cmd=echo
11898 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
11899 archive_cmds_FC='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11900 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}'
11901 else
11902 archive_cmds_FC='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11903 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}'
11904 fi
11905 module_cmds_FC='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11906 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}'
11907 else
11908 case $cc_basename in
11909 xlc*)
11910 output_verbose_link_cmd=echo
11911 archive_cmds_FC='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
11912 module_cmds_FC='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11913 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11914 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}'
11915 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}'
11916 ;;
11917 *)
11918 ld_shlibs_FC=no
11919 ;;
11920 esac
11921 fi
11922 ;;
11923
11924 dgux*)
11925 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11926 hardcode_libdir_flag_spec_FC='-L$libdir'
11927 hardcode_shlibpath_var_FC=no
11928 ;;
11929
11930 freebsd1*)
11931 ld_shlibs_FC=no
11932 ;;
11933
11934 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11935 # support. Future versions do this automatically, but an explicit c++rt0.o
11936 # does not break anything, and helps significantly (at the cost of a little
11937 # extra space).
11938 freebsd2.2*)
11939 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11940 hardcode_libdir_flag_spec_FC='-R$libdir'
11941 hardcode_direct_FC=yes
11942 hardcode_shlibpath_var_FC=no
11943 ;;
11944
11945 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11946 freebsd2*)
11947 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11948 hardcode_direct_FC=yes
11949 hardcode_minus_L_FC=yes
11950 hardcode_shlibpath_var_FC=no
11951 ;;
11952
11953 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11954 freebsd* | dragonfly*)
11955 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11956 hardcode_libdir_flag_spec_FC='-R$libdir'
11957 hardcode_direct_FC=yes
11958 hardcode_shlibpath_var_FC=no
11959 ;;
11960
11961 hpux9*)
11962 if test "$GCC" = yes; then
11963 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'
11964 else
11965 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'
11966 fi
11967 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
11968 hardcode_libdir_separator_FC=:
11969 hardcode_direct_FC=yes
11970
11971 # hardcode_minus_L: Not really in the search PATH,
11972 # but as the default location of the library.
11973 hardcode_minus_L_FC=yes
11974 export_dynamic_flag_spec_FC='${wl}-E'
11975 ;;
11976
11977 hpux10*)
11978 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11979 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11980 else
11981 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11982 fi
11983 if test "$with_gnu_ld" = no; then
11984 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
11985 hardcode_libdir_flag_spec_ld_FC='+b $libdir'
11986 hardcode_libdir_separator_FC=:
11987 hardcode_direct_FC=yes
11988 hardcode_direct_absolute_FC=yes
11989 export_dynamic_flag_spec_FC='${wl}-E'
11990 # hardcode_minus_L: Not really in the search PATH,
11991 # but as the default location of the library.
11992 hardcode_minus_L_FC=yes
11993 fi
11994 ;;
11995
11996 hpux11*)
11997 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11998 case $host_cpu in
11999 hppa*64*)
12000 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12001 ;;
12002 ia64*)
12003 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12004 ;;
12005 *)
12006 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12007 ;;
12008 esac
12009 else
12010 case $host_cpu in
12011 hppa*64*)
12012 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12013 ;;
12014 ia64*)
12015 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12016 ;;
12017 *)
12018 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12019 ;;
12020 esac
12021 fi
12022 if test "$with_gnu_ld" = no; then
12023 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
12024 hardcode_libdir_separator_FC=:
12025
12026 case $host_cpu in
12027 hppa*64*|ia64*)
12028 hardcode_direct_FC=no
12029 hardcode_shlibpath_var_FC=no
12030 ;;
12031 *)
12032 hardcode_direct_FC=yes
12033 hardcode_direct_absolute_FC=yes
12034 export_dynamic_flag_spec_FC='${wl}-E'
12035
12036 # hardcode_minus_L: Not really in the search PATH,
12037 # but as the default location of the library.
12038 hardcode_minus_L_FC=yes
12039 ;;
12040 esac
12041 fi
12042 ;;
12043
12044 irix5* | irix6* | nonstopux*)
12045 if test "$GCC" = yes; then
12046 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'
12047 # Try to use the -exported_symbol ld option, if it does not
12048 # work, assume that -exports_file does not work either and
12049 # implicitly export all symbols.
12050 save_LDFLAGS="$LDFLAGS"
12051 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12052 cat >conftest.$ac_ext <<_ACEOF
12053 int foo(void) {}
12054 _ACEOF
12055 rm -f conftest.$ac_objext conftest$ac_exeext
12056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12057 (eval $ac_link) 2>conftest.er1
12058 ac_status=$?
12059 grep -v '^ *+' conftest.er1 >conftest.err
12060 rm -f conftest.er1
12061 cat conftest.err >&5
12062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12063 (exit $ac_status); } &&
12064 { ac_try='test -z "$ac_fc_werror_flag"
12065 || test ! -s conftest.err'
12066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12067 (eval $ac_try) 2>&5
12068 ac_status=$?
12069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12070 (exit $ac_status); }; } &&
12071 { ac_try='test -s conftest$ac_exeext'
12072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12073 (eval $ac_try) 2>&5
12074 ac_status=$?
12075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076 (exit $ac_status); }; }; then
12077 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'
12078
12079 else
12080 echo "$as_me: failed program was:" >&5
12081 sed 's/^/| /' conftest.$ac_ext >&5
12082
12083 fi
12084 rm -f conftest.err conftest.$ac_objext \
12085 conftest$ac_exeext conftest.$ac_ext
12086 LDFLAGS="$save_LDFLAGS"
12087 else
12088 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'
12089 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'
12090 fi
12091 archive_cmds_need_lc_FC='no'
12092 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12093 hardcode_libdir_separator_FC=:
12094 inherit_rpath_FC=yes
12095 link_all_deplibs_FC=yes
12096 ;;
12097
12098 netbsd*)
12099 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12100 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12101 else
12102 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12103 fi
12104 hardcode_libdir_flag_spec_FC='-R$libdir'
12105 hardcode_direct_FC=yes
12106 hardcode_shlibpath_var_FC=no
12107 ;;
12108
12109 newsos6)
12110 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12111 hardcode_direct_FC=yes
12112 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12113 hardcode_libdir_separator_FC=:
12114 hardcode_shlibpath_var_FC=no
12115 ;;
12116
12117 *nto* | *qnx*)
12118 ;;
12119
12120 openbsd*)
12121 hardcode_direct_FC=yes
12122 hardcode_shlibpath_var_FC=no
12123 hardcode_direct_absolute_FC=yes
12124 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12125 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12126 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12127 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
12128 export_dynamic_flag_spec_FC='${wl}-E'
12129 else
12130 case $host_os in
12131 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12132 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12133 hardcode_libdir_flag_spec_FC='-R$libdir'
12134 ;;
12135 *)
12136 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12137 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
12138 ;;
12139 esac
12140 fi
12141 ;;
12142
12143 os2*)
12144 hardcode_libdir_flag_spec_FC='-L$libdir'
12145 hardcode_minus_L_FC=yes
12146 allow_undefined_flag_FC=unsupported
12147 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'
12148 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12149 ;;
12150
12151 osf3*)
12152 if test "$GCC" = yes; then
12153 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
12154 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'
12155 else
12156 allow_undefined_flag_FC=' -expect_unresolved \*'
12157 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'
12158 fi
12159 archive_cmds_need_lc_FC='no'
12160 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12161 hardcode_libdir_separator_FC=:
12162 ;;
12163
12164 osf4* | osf5*) # as osf3* with the addition of -msym flag
12165 if test "$GCC" = yes; then
12166 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
12167 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'
12168 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12169 else
12170 allow_undefined_flag_FC=' -expect_unresolved \*'
12171 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'
12172 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~
12173 $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'
12174
12175 # Both c and cxx compiler support -rpath directly
12176 hardcode_libdir_flag_spec_FC='-rpath $libdir'
12177 fi
12178 archive_cmds_need_lc_FC='no'
12179 hardcode_libdir_separator_FC=:
12180 ;;
12181
12182 solaris*)
12183 no_undefined_flag_FC=' -z defs'
12184 if test "$GCC" = yes; then
12185 wlarc='${wl}'
12186 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12187 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12188 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12189 else
12190 case `$CC -V 2>&1` in
12191 *"Compilers 5.0"*)
12192 wlarc=''
12193 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12194 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12195 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12196 ;;
12197 *)
12198 wlarc='${wl}'
12199 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12200 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12201 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12202 ;;
12203 esac
12204 fi
12205 hardcode_libdir_flag_spec_FC='-R$libdir'
12206 hardcode_shlibpath_var_FC=no
12207 case $host_os in
12208 solaris2.[0-5] | solaris2.[0-5].*) ;;
12209 *)
12210 # The compiler driver will combine and reorder linker options,
12211 # but understands `-z linker_flag'. GCC discards it without `$wl',
12212 # but is careful enough not to reorder.
12213 # Supported since Solaris 2.6 (maybe 2.5.1?)
12214 if test "$GCC" = yes; then
12215 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12216 else
12217 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
12218 fi
12219 ;;
12220 esac
12221 link_all_deplibs_FC=yes
12222 ;;
12223
12224 sunos4*)
12225 if test "x$host_vendor" = xsequent; then
12226 # Use $CC to link under sequent, because it throws in some extra .o
12227 # files that make .init and .fini sections work.
12228 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12229 else
12230 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12231 fi
12232 hardcode_libdir_flag_spec_FC='-L$libdir'
12233 hardcode_direct_FC=yes
12234 hardcode_minus_L_FC=yes
12235 hardcode_shlibpath_var_FC=no
12236 ;;
12237
12238 sysv4)
12239 case $host_vendor in
12240 sni)
12241 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12242 hardcode_direct_FC=yes # is this really true???
12243 ;;
12244 siemens)
12245 ## LD is ld it makes a PLAMLIB
12246 ## CC just makes a GrossModule.
12247 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12248 reload_cmds_FC='$CC -r -o $output$reload_objs'
12249 hardcode_direct_FC=no
12250 ;;
12251 motorola)
12252 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12253 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
12254 ;;
12255 esac
12256 runpath_var='LD_RUN_PATH'
12257 hardcode_shlibpath_var_FC=no
12258 ;;
12259
12260 sysv4.3*)
12261 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12262 hardcode_shlibpath_var_FC=no
12263 export_dynamic_flag_spec_FC='-Bexport'
12264 ;;
12265
12266 sysv4*MP*)
12267 if test -d /usr/nec; then
12268 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12269 hardcode_shlibpath_var_FC=no
12270 runpath_var=LD_RUN_PATH
12271 hardcode_runpath_var=yes
12272 ld_shlibs_FC=yes
12273 fi
12274 ;;
12275
12276 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12277 no_undefined_flag_FC='${wl}-z,text'
12278 archive_cmds_need_lc_FC=no
12279 hardcode_shlibpath_var_FC=no
12280 runpath_var='LD_RUN_PATH'
12281
12282 if test "$GCC" = yes; then
12283 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12284 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12285 else
12286 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12287 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12288 fi
12289 ;;
12290
12291 sysv5* | sco3.2v5* | sco5v6*)
12292 # Note: We can NOT use -z defs as we might desire, because we do not
12293 # link with -lc, and that would cause any symbols used from libc to
12294 # always be unresolved, which means just about no library would
12295 # ever link correctly. If we're not using GNU ld we use -z text
12296 # though, which does catch some bad symbols but isn't as heavy-handed
12297 # as -z defs.
12298 no_undefined_flag_FC='${wl}-z,text'
12299 allow_undefined_flag_FC='${wl}-z,nodefs'
12300 archive_cmds_need_lc_FC=no
12301 hardcode_shlibpath_var_FC=no
12302 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
12303 hardcode_libdir_separator_FC=':'
12304 link_all_deplibs_FC=yes
12305 export_dynamic_flag_spec_FC='${wl}-Bexport'
12306 runpath_var='LD_RUN_PATH'
12307
12308 if test "$GCC" = yes; then
12309 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12310 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12311 else
12312 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12313 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12314 fi
12315 ;;
12316
12317 uts4*)
12318 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12319 hardcode_libdir_flag_spec_FC='-L$libdir'
12320 hardcode_shlibpath_var_FC=no
12321 ;;
12322
12323 *)
12324 ld_shlibs_FC=no
12325 ;;
12326 esac
12327
12328 if test x$host_vendor = xsni; then
12329 case $host in
12330 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12331 export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
12332 ;;
12333 esac
12334 fi
12335 fi
12336
12337 echo "$as_me:$LINENO: result: $ld_shlibs_FC" >&5
12338 echo "${ECHO_T}$ld_shlibs_FC" >&6
12339 test "$ld_shlibs_FC" = no && can_build_shared=no
12340
12341 with_gnu_ld_FC=$with_gnu_ld
12342
12343
12344
12345
12346
12347
12348 #
12349 # Do we need to explicitly link libc?
12350 #
12351 case "x$archive_cmds_need_lc_FC" in
12352 x|xyes)
12353 # Assume -lc should be added
12354 archive_cmds_need_lc_FC=yes
12355
12356 if test "$enable_shared" = yes && test "$GCC" = yes; then
12357 case $archive_cmds_FC in
12358 *'~'*)
12359 # FIXME: we may have to deal with multi-command sequences.
12360 ;;
12361 '$CC '*)
12362 # Test whether the compiler implicitly links with -lc since on some
12363 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12364 # to ld, don't add -lc before -lgcc.
12365 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12366 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12367 $RM conftest*
12368 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12369
12370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12371 (eval $ac_compile) 2>&5
12372 ac_status=$?
12373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374 (exit $ac_status); } 2>conftest.err; then
12375 soname=conftest
12376 lib=conftest
12377 libobjs=conftest.$ac_objext
12378 deplibs=
12379 wl=$lt_prog_compiler_wl_FC
12380 pic_flag=$lt_prog_compiler_pic_FC
12381 compiler_flags=-v
12382 linker_flags=-v
12383 verstring=
12384 output_objdir=.
12385 libname=conftest
12386 lt_save_allow_undefined_flag=$allow_undefined_flag_FC
12387 allow_undefined_flag_FC=
12388 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
12389 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12390 ac_status=$?
12391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12392 (exit $ac_status); }
12393 then
12394 archive_cmds_need_lc_FC=no
12395 else
12396 archive_cmds_need_lc_FC=yes
12397 fi
12398 allow_undefined_flag_FC=$lt_save_allow_undefined_flag
12399 else
12400 cat conftest.err 1>&5
12401 fi
12402 $RM conftest*
12403 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_FC" >&5
12404 echo "${ECHO_T}$archive_cmds_need_lc_FC" >&6
12405 ;;
12406 esac
12407 fi
12408 ;;
12409 esac
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
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 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12475 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12476 withGCC=$ac_cv_fc_compiler_gnu
12477 library_names_spec=
12478 libname_spec='lib$name'
12479 soname_spec=
12480 shrext_cmds=".so"
12481 postinstall_cmds=
12482 postuninstall_cmds=
12483 finish_cmds=
12484 finish_eval=
12485 shlibpath_var=
12486 shlibpath_overrides_runpath=unknown
12487 version_type=none
12488 dynamic_linker="$host_os ld.so"
12489 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12490 need_lib_prefix=unknown
12491 hardcode_into_libs=no
12492
12493 # when you set need_version to no, make sure it does not cause -set_version
12494 # flags to be left without arguments
12495 need_version=unknown
12496
12497 case $host_os in
12498 aix3*)
12499 version_type=linux
12500 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12501 shlibpath_var=LIBPATH
12502
12503 # AIX 3 has no versioning support, so we append a major version to the name.
12504 soname_spec='${libname}${release}${shared_ext}$major'
12505 ;;
12506
12507 aix[4-9]*)
12508 version_type=linux
12509 need_lib_prefix=no
12510 need_version=no
12511 hardcode_into_libs=yes
12512 if test "$host_cpu" = ia64; then
12513 # AIX 5 supports IA64
12514 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12515 shlibpath_var=LD_LIBRARY_PATH
12516 else
12517 # With GCC up to 2.95.x, collect2 would create an import file
12518 # for dependence libraries. The import file would start with
12519 # the line `#! .'. This would cause the generated library to
12520 # depend on `.', always an invalid library. This was fixed in
12521 # development snapshots of GCC prior to 3.0.
12522 case $host_os in
12523 aix4 | aix4.[01] | aix4.[01].*)
12524 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12525 echo ' yes '
12526 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12527 :
12528 else
12529 can_build_shared=no
12530 fi
12531 ;;
12532 esac
12533 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12534 # soname into executable. Probably we can add versioning support to
12535 # collect2, so additional links can be useful in future.
12536 if test "$aix_use_runtimelinking" = yes; then
12537 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12538 # instead of lib<name>.a to let people know that these are not
12539 # typical AIX shared libraries.
12540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12541 else
12542 # We preserve .a as extension for shared libraries through AIX4.2
12543 # and later when we are not doing run time linking.
12544 library_names_spec='${libname}${release}.a $libname.a'
12545 soname_spec='${libname}${release}${shared_ext}$major'
12546 fi
12547 shlibpath_var=LIBPATH
12548 fi
12549 ;;
12550
12551 amigaos*)
12552 if test "$host_cpu" = m68k; then
12553 library_names_spec='$libname.ixlibrary $libname.a'
12554 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12555 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'
12556 else
12557 dynamic_linker=no
12558 fi
12559 ;;
12560
12561 beos*)
12562 library_names_spec='${libname}${shared_ext}'
12563 dynamic_linker="$host_os ld.so"
12564 shlibpath_var=LIBRARY_PATH
12565 ;;
12566
12567 bsdi[45]*)
12568 version_type=linux
12569 need_version=no
12570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12571 soname_spec='${libname}${release}${shared_ext}$major'
12572 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12573 shlibpath_var=LD_LIBRARY_PATH
12574 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12575 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12576 # the default ld.so.conf also contains /usr/contrib/lib and
12577 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12578 # libtool to hard-code these into programs
12579 ;;
12580
12581 cygwin* | mingw* | pw32*)
12582 version_type=windows
12583 shrext_cmds=".dll"
12584 need_version=no
12585 need_lib_prefix=no
12586
12587 case $withGCC,$host_os in
12588 yes,cygwin* | yes,mingw* | yes,pw32*)
12589 library_names_spec='$libname.dll.a'
12590 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12591 postinstall_cmds='base_file=`basename \${file}`~
12592 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12593 dldir=$destdir/`dirname \$dlpath`~
12594 test -d \$dldir || mkdir -p \$dldir~
12595 $install_prog $dir/$dlname \$dldir/$dlname~
12596 chmod a+x \$dldir/$dlname~
12597 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12598 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12599 fi'
12600 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12601 dlpath=$dir/\$dldll~
12602 $RM \$dlpath'
12603 shlibpath_overrides_runpath=yes
12604
12605 case $host_os in
12606 cygwin*)
12607 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12608 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12609 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12610 ;;
12611 mingw*)
12612 # MinGW DLLs use traditional 'lib' prefix
12613 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12614 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12615 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12616 # It is most probably a Windows format PATH printed by
12617 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12618 # path with ; separators, and with drive letters. We can handle the
12619 # drive letters (cygwin fileutils understands them), so leave them,
12620 # especially as we might pass files found there to a mingw objdump,
12621 # which wouldn't understand a cygwinified path. Ahh.
12622 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12623 else
12624 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12625 fi
12626 ;;
12627 pw32*)
12628 # pw32 DLLs use 'pw' prefix rather than 'lib'
12629 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12630 ;;
12631 esac
12632 ;;
12633
12634 *)
12635 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12636 ;;
12637 esac
12638 dynamic_linker='Win32 ld.exe'
12639 # FIXME: first we should search . and the directory the executable is in
12640 shlibpath_var=PATH
12641 ;;
12642
12643 darwin* | rhapsody*)
12644 dynamic_linker="$host_os dyld"
12645 version_type=darwin
12646 need_lib_prefix=no
12647 need_version=no
12648 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12649 soname_spec='${libname}${release}${major}$shared_ext'
12650 shlibpath_overrides_runpath=yes
12651 shlibpath_var=DYLD_LIBRARY_PATH
12652 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12653
12654 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12655 ;;
12656
12657 dgux*)
12658 version_type=linux
12659 need_lib_prefix=no
12660 need_version=no
12661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12662 soname_spec='${libname}${release}${shared_ext}$major'
12663 shlibpath_var=LD_LIBRARY_PATH
12664 ;;
12665
12666 freebsd1*)
12667 dynamic_linker=no
12668 ;;
12669
12670 freebsd* | dragonfly*)
12671 # DragonFly does not have aout. When/if they implement a new
12672 # versioning mechanism, adjust this.
12673 if test -x /usr/bin/objformat; then
12674 objformat=`/usr/bin/objformat`
12675 else
12676 case $host_os in
12677 freebsd[123]*) objformat=aout ;;
12678 *) objformat=elf ;;
12679 esac
12680 fi
12681 version_type=freebsd-$objformat
12682 case $version_type in
12683 freebsd-elf*)
12684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12685 need_version=no
12686 need_lib_prefix=no
12687 ;;
12688 freebsd-*)
12689 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12690 need_version=yes
12691 ;;
12692 esac
12693 shlibpath_var=LD_LIBRARY_PATH
12694 case $host_os in
12695 freebsd2*)
12696 shlibpath_overrides_runpath=yes
12697 ;;
12698 freebsd3.[01]* | freebsdelf3.[01]*)
12699 shlibpath_overrides_runpath=yes
12700 hardcode_into_libs=yes
12701 ;;
12702 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12703 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12704 shlibpath_overrides_runpath=no
12705 hardcode_into_libs=yes
12706 ;;
12707 *) # from 4.6 on, and DragonFly
12708 shlibpath_overrides_runpath=yes
12709 hardcode_into_libs=yes
12710 ;;
12711 esac
12712 ;;
12713
12714 gnu*)
12715 version_type=linux
12716 need_lib_prefix=no
12717 need_version=no
12718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12719 soname_spec='${libname}${release}${shared_ext}$major'
12720 shlibpath_var=LD_LIBRARY_PATH
12721 hardcode_into_libs=yes
12722 ;;
12723
12724 hpux9* | hpux10* | hpux11*)
12725 # Give a soname corresponding to the major version so that dld.sl refuses to
12726 # link against other versions.
12727 version_type=sunos
12728 need_lib_prefix=no
12729 need_version=no
12730 case $host_cpu in
12731 ia64*)
12732 shrext_cmds='.so'
12733 hardcode_into_libs=yes
12734 dynamic_linker="$host_os dld.so"
12735 shlibpath_var=LD_LIBRARY_PATH
12736 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12738 soname_spec='${libname}${release}${shared_ext}$major'
12739 if test "X$HPUX_IA64_MODE" = X32; then
12740 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12741 else
12742 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12743 fi
12744 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12745 ;;
12746 hppa*64*)
12747 shrext_cmds='.sl'
12748 hardcode_into_libs=yes
12749 dynamic_linker="$host_os dld.sl"
12750 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12751 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12753 soname_spec='${libname}${release}${shared_ext}$major'
12754 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12755 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12756 ;;
12757 *)
12758 shrext_cmds='.sl'
12759 dynamic_linker="$host_os dld.sl"
12760 shlibpath_var=SHLIB_PATH
12761 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12763 soname_spec='${libname}${release}${shared_ext}$major'
12764 ;;
12765 esac
12766 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12767 postinstall_cmds='chmod 555 $lib'
12768 ;;
12769
12770 interix[3-9]*)
12771 version_type=linux
12772 need_lib_prefix=no
12773 need_version=no
12774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12775 soname_spec='${libname}${release}${shared_ext}$major'
12776 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12777 shlibpath_var=LD_LIBRARY_PATH
12778 shlibpath_overrides_runpath=no
12779 hardcode_into_libs=yes
12780 ;;
12781
12782 irix5* | irix6* | nonstopux*)
12783 case $host_os in
12784 nonstopux*) version_type=nonstopux ;;
12785 *)
12786 if test "$lt_cv_prog_gnu_ld" = yes; then
12787 version_type=linux
12788 else
12789 version_type=irix
12790 fi ;;
12791 esac
12792 need_lib_prefix=no
12793 need_version=no
12794 soname_spec='${libname}${release}${shared_ext}$major'
12795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12796 case $host_os in
12797 irix5* | nonstopux*)
12798 libsuff= shlibsuff=
12799 ;;
12800 *)
12801 case $LD in # libtool.m4 will add one of these switches to LD
12802 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12803 libsuff= shlibsuff= libmagic=32-bit;;
12804 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12805 libsuff=32 shlibsuff=N32 libmagic=N32;;
12806 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12807 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12808 *) libsuff= shlibsuff= libmagic=never-match;;
12809 esac
12810 ;;
12811 esac
12812 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12813 shlibpath_overrides_runpath=no
12814 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12815 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12816 hardcode_into_libs=yes
12817 ;;
12818
12819 # No shared lib support for Linux oldld, aout, or coff.
12820 linux*oldld* | linux*aout* | linux*coff*)
12821 dynamic_linker=no
12822 ;;
12823
12824 # This must be Linux ELF.
12825 linux* | k*bsd*-gnu)
12826 version_type=linux
12827 need_lib_prefix=no
12828 need_version=no
12829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12830 soname_spec='${libname}${release}${shared_ext}$major'
12831 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12832 shlibpath_var=LD_LIBRARY_PATH
12833 shlibpath_overrides_runpath=no
12834 # Some binutils ld are patched to set DT_RUNPATH
12835 save_LDFLAGS=$LDFLAGS
12836 save_libdir=$libdir
12837 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
12838 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
12839 cat >conftest.$ac_ext <<_ACEOF
12840 program main
12841
12842 end
12843 _ACEOF
12844 rm -f conftest.$ac_objext conftest$ac_exeext
12845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12846 (eval $ac_link) 2>conftest.er1
12847 ac_status=$?
12848 grep -v '^ *+' conftest.er1 >conftest.err
12849 rm -f conftest.er1
12850 cat conftest.err >&5
12851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12852 (exit $ac_status); } &&
12853 { ac_try='test -z "$ac_fc_werror_flag"
12854 || test ! -s conftest.err'
12855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12856 (eval $ac_try) 2>&5
12857 ac_status=$?
12858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859 (exit $ac_status); }; } &&
12860 { ac_try='test -s conftest$ac_exeext'
12861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12862 (eval $ac_try) 2>&5
12863 ac_status=$?
12864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12865 (exit $ac_status); }; }; then
12866 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
12867 shlibpath_overrides_runpath=yes
12868 fi
12869
12870 else
12871 echo "$as_me: failed program was:" >&5
12872 sed 's/^/| /' conftest.$ac_ext >&5
12873
12874 fi
12875 rm -f conftest.err conftest.$ac_objext \
12876 conftest$ac_exeext conftest.$ac_ext
12877 LDFLAGS=$save_LDFLAGS
12878 libdir=$save_libdir
12879
12880 # This implies no fast_install, which is unacceptable.
12881 # Some rework will be needed to allow for fast_install
12882 # before this can be enabled.
12883 hardcode_into_libs=yes
12884
12885 # Append ld.so.conf contents to the search path
12886 if test -f /etc/ld.so.conf; then
12887 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' ' '`
12888 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12889 fi
12890
12891 # We used to test for /lib/ld.so.1 and disable shared libraries on
12892 # powerpc, because MkLinux only supported shared libraries with the
12893 # GNU dynamic linker. Since this was broken with cross compilers,
12894 # most powerpc-linux boxes support dynamic linking these days and
12895 # people can always --disable-shared, the test was removed, and we
12896 # assume the GNU/Linux dynamic linker is in use.
12897 dynamic_linker='GNU/Linux ld.so'
12898 ;;
12899
12900 netbsd*)
12901 version_type=sunos
12902 need_lib_prefix=no
12903 need_version=no
12904 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12906 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12907 dynamic_linker='NetBSD (a.out) ld.so'
12908 else
12909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12910 soname_spec='${libname}${release}${shared_ext}$major'
12911 dynamic_linker='NetBSD ld.elf_so'
12912 fi
12913 shlibpath_var=LD_LIBRARY_PATH
12914 shlibpath_overrides_runpath=yes
12915 hardcode_into_libs=yes
12916 ;;
12917
12918 newsos6)
12919 version_type=linux
12920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12921 shlibpath_var=LD_LIBRARY_PATH
12922 shlibpath_overrides_runpath=yes
12923 ;;
12924
12925 *nto* | *qnx*)
12926 version_type=qnx
12927 need_lib_prefix=no
12928 need_version=no
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 shlibpath_var=LD_LIBRARY_PATH
12932 shlibpath_overrides_runpath=no
12933 hardcode_into_libs=yes
12934 dynamic_linker='ldqnx.so'
12935 ;;
12936
12937 openbsd*)
12938 version_type=sunos
12939 sys_lib_dlsearch_path_spec="/usr/lib"
12940 need_lib_prefix=no
12941 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12942 case $host_os in
12943 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12944 *) need_version=no ;;
12945 esac
12946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12947 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12948 shlibpath_var=LD_LIBRARY_PATH
12949 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12950 case $host_os in
12951 openbsd2.[89] | openbsd2.[89].*)
12952 shlibpath_overrides_runpath=no
12953 ;;
12954 *)
12955 shlibpath_overrides_runpath=yes
12956 ;;
12957 esac
12958 else
12959 shlibpath_overrides_runpath=yes
12960 fi
12961 ;;
12962
12963 os2*)
12964 libname_spec='$name'
12965 shrext_cmds=".dll"
12966 need_lib_prefix=no
12967 library_names_spec='$libname${shared_ext} $libname.a'
12968 dynamic_linker='OS/2 ld.exe'
12969 shlibpath_var=LIBPATH
12970 ;;
12971
12972 osf3* | osf4* | osf5*)
12973 version_type=osf
12974 need_lib_prefix=no
12975 need_version=no
12976 soname_spec='${libname}${release}${shared_ext}$major'
12977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12978 shlibpath_var=LD_LIBRARY_PATH
12979 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12980 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12981 ;;
12982
12983 rdos*)
12984 dynamic_linker=no
12985 ;;
12986
12987 solaris*)
12988 version_type=linux
12989 need_lib_prefix=no
12990 need_version=no
12991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12992 soname_spec='${libname}${release}${shared_ext}$major'
12993 shlibpath_var=LD_LIBRARY_PATH
12994 shlibpath_overrides_runpath=yes
12995 hardcode_into_libs=yes
12996 # ldd complains unless libraries are executable
12997 postinstall_cmds='chmod +x $lib'
12998 ;;
12999
13000 sunos4*)
13001 version_type=sunos
13002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13003 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13004 shlibpath_var=LD_LIBRARY_PATH
13005 shlibpath_overrides_runpath=yes
13006 if test "$with_gnu_ld" = yes; then
13007 need_lib_prefix=no
13008 fi
13009 need_version=yes
13010 ;;
13011
13012 sysv4 | sysv4.3*)
13013 version_type=linux
13014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13015 soname_spec='${libname}${release}${shared_ext}$major'
13016 shlibpath_var=LD_LIBRARY_PATH
13017 case $host_vendor in
13018 sni)
13019 shlibpath_overrides_runpath=no
13020 need_lib_prefix=no
13021 runpath_var=LD_RUN_PATH
13022 ;;
13023 siemens)
13024 need_lib_prefix=no
13025 ;;
13026 motorola)
13027 need_lib_prefix=no
13028 need_version=no
13029 shlibpath_overrides_runpath=no
13030 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13031 ;;
13032 esac
13033 ;;
13034
13035 sysv4*MP*)
13036 if test -d /usr/nec ;then
13037 version_type=linux
13038 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13039 soname_spec='$libname${shared_ext}.$major'
13040 shlibpath_var=LD_LIBRARY_PATH
13041 fi
13042 ;;
13043
13044 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13045 version_type=freebsd-elf
13046 need_lib_prefix=no
13047 need_version=no
13048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13049 soname_spec='${libname}${release}${shared_ext}$major'
13050 shlibpath_var=LD_LIBRARY_PATH
13051 shlibpath_overrides_runpath=yes
13052 hardcode_into_libs=yes
13053 if test "$with_gnu_ld" = yes; then
13054 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13055 else
13056 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13057 case $host_os in
13058 sco3.2v5*)
13059 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13060 ;;
13061 esac
13062 fi
13063 sys_lib_dlsearch_path_spec='/usr/lib'
13064 ;;
13065
13066 tpf*)
13067 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13068 version_type=linux
13069 need_lib_prefix=no
13070 need_version=no
13071 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13072 shlibpath_var=LD_LIBRARY_PATH
13073 shlibpath_overrides_runpath=no
13074 hardcode_into_libs=yes
13075 ;;
13076
13077 uts4*)
13078 version_type=linux
13079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13080 soname_spec='${libname}${release}${shared_ext}$major'
13081 shlibpath_var=LD_LIBRARY_PATH
13082 ;;
13083
13084 *)
13085 dynamic_linker=no
13086 ;;
13087 esac
13088 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13089 echo "${ECHO_T}$dynamic_linker" >&6
13090 test "$dynamic_linker" = no && can_build_shared=no
13091
13092 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13093 if test "$GCC" = yes; then
13094 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13095 fi
13096
13097
13098
13099
13100
13101
13102
13103
13104
13105
13106
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13133 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13134 hardcode_action_FC=
13135 if test -n "$hardcode_libdir_flag_spec_FC" ||
13136 test -n "$runpath_var_FC" ||
13137 test "X$hardcode_automatic_FC" = "Xyes" ; then
13138
13139 # We can hardcode non-existent directories.
13140 if test "$hardcode_direct_FC" != no &&
13141 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13142 # have to relink, otherwise we might link with an installed library
13143 # when we should be linking with a yet-to-be-installed one
13144 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
13145 test "$hardcode_minus_L_FC" != no; then
13146 # Linking always hardcodes the temporary library directory.
13147 hardcode_action_FC=relink
13148 else
13149 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13150 hardcode_action_FC=immediate
13151 fi
13152 else
13153 # We cannot hardcode anything, or else we can only hardcode existing
13154 # directories.
13155 hardcode_action_FC=unsupported
13156 fi
13157 echo "$as_me:$LINENO: result: $hardcode_action_FC" >&5
13158 echo "${ECHO_T}$hardcode_action_FC" >&6
13159
13160 if test "$hardcode_action_FC" = relink ||
13161 test "$inherit_rpath_FC" = yes; then
13162 # Fast installation is not supported
13163 enable_fast_install=no
13164 elif test "$shlibpath_overrides_runpath" = yes ||
13165 test "$enable_shared" = no; then
13166 # Fast installation is not necessary
13167 enable_fast_install=needless
13168 fi
13169
13170
13171
13172
13173
13174
13175
13176 fi # test -n "$compiler"
13177
13178 CC="$lt_save_CC"
13179 fi # test "$_lt_disable_FC" != yes
13180
13181 ac_ext=c
13182 ac_cpp='$CPP $CPPFLAGS'
13183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13186
13187
13188 FCFLAGS="$FCFLAGS -Wall"
13189
13190 # For libtool versioning info, format is CURRENT:REVISION:AGE
13191 libtool_VERSION=1:0:0
13192
13193
13194 # Check header files.
13195 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13196 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13197 if test "${ac_cv_header_stdc+set}" = set; then
13198 echo $ECHO_N "(cached) $ECHO_C" >&6
13199 else
13200 cat >conftest.$ac_ext <<_ACEOF
13201 /* confdefs.h. */
13202 _ACEOF
13203 cat confdefs.h >>conftest.$ac_ext
13204 cat >>conftest.$ac_ext <<_ACEOF
13205 /* end confdefs.h. */
13206 #include <stdlib.h>
13207 #include <stdarg.h>
13208 #include <string.h>
13209 #include <float.h>
13210
13211 int
13212 main ()
13213 {
13214
13215 ;
13216 return 0;
13217 }
13218 _ACEOF
13219 rm -f conftest.$ac_objext
13220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13221 (eval $ac_compile) 2>conftest.er1
13222 ac_status=$?
13223 grep -v '^ *+' conftest.er1 >conftest.err
13224 rm -f conftest.er1
13225 cat conftest.err >&5
13226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13227 (exit $ac_status); } &&
13228 { ac_try='test -z "$ac_c_werror_flag"
13229 || test ! -s conftest.err'
13230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13231 (eval $ac_try) 2>&5
13232 ac_status=$?
13233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13234 (exit $ac_status); }; } &&
13235 { ac_try='test -s conftest.$ac_objext'
13236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13237 (eval $ac_try) 2>&5
13238 ac_status=$?
13239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13240 (exit $ac_status); }; }; then
13241 ac_cv_header_stdc=yes
13242 else
13243 echo "$as_me: failed program was:" >&5
13244 sed 's/^/| /' conftest.$ac_ext >&5
13245
13246 ac_cv_header_stdc=no
13247 fi
13248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13249
13250 if test $ac_cv_header_stdc = yes; then
13251 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13252 cat >conftest.$ac_ext <<_ACEOF
13253 /* confdefs.h. */
13254 _ACEOF
13255 cat confdefs.h >>conftest.$ac_ext
13256 cat >>conftest.$ac_ext <<_ACEOF
13257 /* end confdefs.h. */
13258 #include <string.h>
13259
13260 _ACEOF
13261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13262 $EGREP "memchr" >/dev/null 2>&1; then
13263 :
13264 else
13265 ac_cv_header_stdc=no
13266 fi
13267 rm -f conftest*
13268
13269 fi
13270
13271 if test $ac_cv_header_stdc = yes; then
13272 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13273 cat >conftest.$ac_ext <<_ACEOF
13274 /* confdefs.h. */
13275 _ACEOF
13276 cat confdefs.h >>conftest.$ac_ext
13277 cat >>conftest.$ac_ext <<_ACEOF
13278 /* end confdefs.h. */
13279 #include <stdlib.h>
13280
13281 _ACEOF
13282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13283 $EGREP "free" >/dev/null 2>&1; then
13284 :
13285 else
13286 ac_cv_header_stdc=no
13287 fi
13288 rm -f conftest*
13289
13290 fi
13291
13292 if test $ac_cv_header_stdc = yes; then
13293 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13294 if test "$cross_compiling" = yes; then
13295 :
13296 else
13297 cat >conftest.$ac_ext <<_ACEOF
13298 /* confdefs.h. */
13299 _ACEOF
13300 cat confdefs.h >>conftest.$ac_ext
13301 cat >>conftest.$ac_ext <<_ACEOF
13302 /* end confdefs.h. */
13303 #include <ctype.h>
13304 #if ((' ' & 0x0FF) == 0x020)
13305 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13306 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13307 #else
13308 # define ISLOWER(c) \
13309 (('a' <= (c) && (c) <= 'i') \
13310 || ('j' <= (c) && (c) <= 'r') \
13311 || ('s' <= (c) && (c) <= 'z'))
13312 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13313 #endif
13314
13315 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13316 int
13317 main ()
13318 {
13319 int i;
13320 for (i = 0; i < 256; i++)
13321 if (XOR (islower (i), ISLOWER (i))
13322 || toupper (i) != TOUPPER (i))
13323 exit(2);
13324 exit (0);
13325 }
13326 _ACEOF
13327 rm -f conftest$ac_exeext
13328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13329 (eval $ac_link) 2>&5
13330 ac_status=$?
13331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13332 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13334 (eval $ac_try) 2>&5
13335 ac_status=$?
13336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13337 (exit $ac_status); }; }; then
13338 :
13339 else
13340 echo "$as_me: program exited with status $ac_status" >&5
13341 echo "$as_me: failed program was:" >&5
13342 sed 's/^/| /' conftest.$ac_ext >&5
13343
13344 ( exit $ac_status )
13345 ac_cv_header_stdc=no
13346 fi
13347 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13348 fi
13349 fi
13350 fi
13351 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13352 echo "${ECHO_T}$ac_cv_header_stdc" >&6
13353 if test $ac_cv_header_stdc = yes; then
13354
13355 cat >>confdefs.h <<\_ACEOF
13356 #define STDC_HEADERS 1
13357 _ACEOF
13358
13359 fi
13360
13361 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
13362 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
13363 if test "${ac_cv_header_time+set}" = set; then
13364 echo $ECHO_N "(cached) $ECHO_C" >&6
13365 else
13366 cat >conftest.$ac_ext <<_ACEOF
13367 /* confdefs.h. */
13368 _ACEOF
13369 cat confdefs.h >>conftest.$ac_ext
13370 cat >>conftest.$ac_ext <<_ACEOF
13371 /* end confdefs.h. */
13372 #include <sys/types.h>
13373 #include <sys/time.h>
13374 #include <time.h>
13375
13376 int
13377 main ()
13378 {
13379 if ((struct tm *) 0)
13380 return 0;
13381 ;
13382 return 0;
13383 }
13384 _ACEOF
13385 rm -f conftest.$ac_objext
13386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13387 (eval $ac_compile) 2>conftest.er1
13388 ac_status=$?
13389 grep -v '^ *+' conftest.er1 >conftest.err
13390 rm -f conftest.er1
13391 cat conftest.err >&5
13392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13393 (exit $ac_status); } &&
13394 { ac_try='test -z "$ac_c_werror_flag"
13395 || test ! -s conftest.err'
13396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13397 (eval $ac_try) 2>&5
13398 ac_status=$?
13399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400 (exit $ac_status); }; } &&
13401 { ac_try='test -s conftest.$ac_objext'
13402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13403 (eval $ac_try) 2>&5
13404 ac_status=$?
13405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13406 (exit $ac_status); }; }; then
13407 ac_cv_header_time=yes
13408 else
13409 echo "$as_me: failed program was:" >&5
13410 sed 's/^/| /' conftest.$ac_ext >&5
13411
13412 ac_cv_header_time=no
13413 fi
13414 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13415 fi
13416 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
13417 echo "${ECHO_T}$ac_cv_header_time" >&6
13418 if test $ac_cv_header_time = yes; then
13419
13420 cat >>confdefs.h <<\_ACEOF
13421 #define TIME_WITH_SYS_TIME 1
13422 _ACEOF
13423
13424 fi
13425
13426
13427
13428
13429
13430 for ac_header in unistd.h semaphore.h sys/loadavg.h sys/time.h
13431 do
13432 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13433 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13434 echo "$as_me:$LINENO: checking for $ac_header" >&5
13435 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13436 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13437 echo $ECHO_N "(cached) $ECHO_C" >&6
13438 fi
13439 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13440 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13441 else
13442 # Is the header compilable?
13443 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13444 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13445 cat >conftest.$ac_ext <<_ACEOF
13446 /* confdefs.h. */
13447 _ACEOF
13448 cat confdefs.h >>conftest.$ac_ext
13449 cat >>conftest.$ac_ext <<_ACEOF
13450 /* end confdefs.h. */
13451 $ac_includes_default
13452 #include <$ac_header>
13453 _ACEOF
13454 rm -f conftest.$ac_objext
13455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13456 (eval $ac_compile) 2>conftest.er1
13457 ac_status=$?
13458 grep -v '^ *+' conftest.er1 >conftest.err
13459 rm -f conftest.er1
13460 cat conftest.err >&5
13461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13462 (exit $ac_status); } &&
13463 { ac_try='test -z "$ac_c_werror_flag"
13464 || test ! -s conftest.err'
13465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13466 (eval $ac_try) 2>&5
13467 ac_status=$?
13468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13469 (exit $ac_status); }; } &&
13470 { ac_try='test -s conftest.$ac_objext'
13471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13472 (eval $ac_try) 2>&5
13473 ac_status=$?
13474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13475 (exit $ac_status); }; }; then
13476 ac_header_compiler=yes
13477 else
13478 echo "$as_me: failed program was:" >&5
13479 sed 's/^/| /' conftest.$ac_ext >&5
13480
13481 ac_header_compiler=no
13482 fi
13483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13484 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13485 echo "${ECHO_T}$ac_header_compiler" >&6
13486
13487 # Is the header present?
13488 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13489 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13490 cat >conftest.$ac_ext <<_ACEOF
13491 /* confdefs.h. */
13492 _ACEOF
13493 cat confdefs.h >>conftest.$ac_ext
13494 cat >>conftest.$ac_ext <<_ACEOF
13495 /* end confdefs.h. */
13496 #include <$ac_header>
13497 _ACEOF
13498 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13499 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13500 ac_status=$?
13501 grep -v '^ *+' conftest.er1 >conftest.err
13502 rm -f conftest.er1
13503 cat conftest.err >&5
13504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13505 (exit $ac_status); } >/dev/null; then
13506 if test -s conftest.err; then
13507 ac_cpp_err=$ac_c_preproc_warn_flag
13508 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13509 else
13510 ac_cpp_err=
13511 fi
13512 else
13513 ac_cpp_err=yes
13514 fi
13515 if test -z "$ac_cpp_err"; then
13516 ac_header_preproc=yes
13517 else
13518 echo "$as_me: failed program was:" >&5
13519 sed 's/^/| /' conftest.$ac_ext >&5
13520
13521 ac_header_preproc=no
13522 fi
13523 rm -f conftest.err conftest.$ac_ext
13524 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13525 echo "${ECHO_T}$ac_header_preproc" >&6
13526
13527 # So? What about this header?
13528 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13529 yes:no: )
13530 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13531 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13532 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13533 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13534 ac_header_preproc=yes
13535 ;;
13536 no:yes:* )
13537 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13538 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13539 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13540 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13541 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13542 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13543 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13544 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13545 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13546 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13547 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13548 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13549 (
13550 cat <<\_ASBOX
13551 ## ----------------------------------------------------- ##
13552 ## Report this to the GNU OpenMP Runtime Library lists. ##
13553 ## ----------------------------------------------------- ##
13554 _ASBOX
13555 ) |
13556 sed "s/^/$as_me: WARNING: /" >&2
13557 ;;
13558 esac
13559 echo "$as_me:$LINENO: checking for $ac_header" >&5
13560 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13561 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13562 echo $ECHO_N "(cached) $ECHO_C" >&6
13563 else
13564 eval "$as_ac_Header=\$ac_header_preproc"
13565 fi
13566 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13567 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13568
13569 fi
13570 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13571 cat >>confdefs.h <<_ACEOF
13572 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13573 _ACEOF
13574
13575 fi
13576
13577 done
13578
13579
13580
13581
13582 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
13583
13584 acx_cv_header_stdint=stddef.h
13585 acx_cv_header_stdint_kind="(already complete)"
13586 for i in stdint.h $inttype_headers; do
13587 unset ac_cv_type_uintptr_t
13588 unset ac_cv_type_uintmax_t
13589 unset ac_cv_type_int_least32_t
13590 unset ac_cv_type_int_fast32_t
13591 unset ac_cv_type_uint64_t
13592 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
13593 echo "$as_me:$LINENO: checking for uintmax_t" >&5
13594 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
13595 if test "${ac_cv_type_uintmax_t+set}" = set; then
13596 echo $ECHO_N "(cached) $ECHO_C" >&6
13597 else
13598 cat >conftest.$ac_ext <<_ACEOF
13599 /* confdefs.h. */
13600 _ACEOF
13601 cat confdefs.h >>conftest.$ac_ext
13602 cat >>conftest.$ac_ext <<_ACEOF
13603 /* end confdefs.h. */
13604 #include <sys/types.h>
13605 #include <$i>
13606
13607 int
13608 main ()
13609 {
13610 if ((uintmax_t *) 0)
13611 return 0;
13612 if (sizeof (uintmax_t))
13613 return 0;
13614 ;
13615 return 0;
13616 }
13617 _ACEOF
13618 rm -f conftest.$ac_objext
13619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13620 (eval $ac_compile) 2>conftest.er1
13621 ac_status=$?
13622 grep -v '^ *+' conftest.er1 >conftest.err
13623 rm -f conftest.er1
13624 cat conftest.err >&5
13625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13626 (exit $ac_status); } &&
13627 { ac_try='test -z "$ac_c_werror_flag"
13628 || test ! -s conftest.err'
13629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13630 (eval $ac_try) 2>&5
13631 ac_status=$?
13632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13633 (exit $ac_status); }; } &&
13634 { ac_try='test -s conftest.$ac_objext'
13635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13636 (eval $ac_try) 2>&5
13637 ac_status=$?
13638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13639 (exit $ac_status); }; }; then
13640 ac_cv_type_uintmax_t=yes
13641 else
13642 echo "$as_me: failed program was:" >&5
13643 sed 's/^/| /' conftest.$ac_ext >&5
13644
13645 ac_cv_type_uintmax_t=no
13646 fi
13647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13648 fi
13649 echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
13650 echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
13651 if test $ac_cv_type_uintmax_t = yes; then
13652 acx_cv_header_stdint=$i
13653 else
13654 continue
13655 fi
13656
13657 echo "$as_me:$LINENO: checking for uintptr_t" >&5
13658 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
13659 if test "${ac_cv_type_uintptr_t+set}" = set; then
13660 echo $ECHO_N "(cached) $ECHO_C" >&6
13661 else
13662 cat >conftest.$ac_ext <<_ACEOF
13663 /* confdefs.h. */
13664 _ACEOF
13665 cat confdefs.h >>conftest.$ac_ext
13666 cat >>conftest.$ac_ext <<_ACEOF
13667 /* end confdefs.h. */
13668 #include <sys/types.h>
13669 #include <$i>
13670
13671 int
13672 main ()
13673 {
13674 if ((uintptr_t *) 0)
13675 return 0;
13676 if (sizeof (uintptr_t))
13677 return 0;
13678 ;
13679 return 0;
13680 }
13681 _ACEOF
13682 rm -f conftest.$ac_objext
13683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13684 (eval $ac_compile) 2>conftest.er1
13685 ac_status=$?
13686 grep -v '^ *+' conftest.er1 >conftest.err
13687 rm -f conftest.er1
13688 cat conftest.err >&5
13689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13690 (exit $ac_status); } &&
13691 { ac_try='test -z "$ac_c_werror_flag"
13692 || test ! -s conftest.err'
13693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13694 (eval $ac_try) 2>&5
13695 ac_status=$?
13696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13697 (exit $ac_status); }; } &&
13698 { ac_try='test -s conftest.$ac_objext'
13699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13700 (eval $ac_try) 2>&5
13701 ac_status=$?
13702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13703 (exit $ac_status); }; }; then
13704 ac_cv_type_uintptr_t=yes
13705 else
13706 echo "$as_me: failed program was:" >&5
13707 sed 's/^/| /' conftest.$ac_ext >&5
13708
13709 ac_cv_type_uintptr_t=no
13710 fi
13711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13712 fi
13713 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
13714 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
13715 if test $ac_cv_type_uintptr_t = yes; then
13716 :
13717 else
13718 acx_cv_header_stdint_kind="(mostly complete)"
13719 fi
13720
13721 echo "$as_me:$LINENO: checking for int_least32_t" >&5
13722 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
13723 if test "${ac_cv_type_int_least32_t+set}" = set; then
13724 echo $ECHO_N "(cached) $ECHO_C" >&6
13725 else
13726 cat >conftest.$ac_ext <<_ACEOF
13727 /* confdefs.h. */
13728 _ACEOF
13729 cat confdefs.h >>conftest.$ac_ext
13730 cat >>conftest.$ac_ext <<_ACEOF
13731 /* end confdefs.h. */
13732 #include <sys/types.h>
13733 #include <$i>
13734
13735 int
13736 main ()
13737 {
13738 if ((int_least32_t *) 0)
13739 return 0;
13740 if (sizeof (int_least32_t))
13741 return 0;
13742 ;
13743 return 0;
13744 }
13745 _ACEOF
13746 rm -f conftest.$ac_objext
13747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13748 (eval $ac_compile) 2>conftest.er1
13749 ac_status=$?
13750 grep -v '^ *+' conftest.er1 >conftest.err
13751 rm -f conftest.er1
13752 cat conftest.err >&5
13753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13754 (exit $ac_status); } &&
13755 { ac_try='test -z "$ac_c_werror_flag"
13756 || test ! -s conftest.err'
13757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13758 (eval $ac_try) 2>&5
13759 ac_status=$?
13760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13761 (exit $ac_status); }; } &&
13762 { ac_try='test -s conftest.$ac_objext'
13763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13764 (eval $ac_try) 2>&5
13765 ac_status=$?
13766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13767 (exit $ac_status); }; }; then
13768 ac_cv_type_int_least32_t=yes
13769 else
13770 echo "$as_me: failed program was:" >&5
13771 sed 's/^/| /' conftest.$ac_ext >&5
13772
13773 ac_cv_type_int_least32_t=no
13774 fi
13775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13776 fi
13777 echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
13778 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
13779 if test $ac_cv_type_int_least32_t = yes; then
13780 :
13781 else
13782 acx_cv_header_stdint_kind="(mostly complete)"
13783 fi
13784
13785 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
13786 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
13787 if test "${ac_cv_type_int_fast32_t+set}" = set; then
13788 echo $ECHO_N "(cached) $ECHO_C" >&6
13789 else
13790 cat >conftest.$ac_ext <<_ACEOF
13791 /* confdefs.h. */
13792 _ACEOF
13793 cat confdefs.h >>conftest.$ac_ext
13794 cat >>conftest.$ac_ext <<_ACEOF
13795 /* end confdefs.h. */
13796 #include <sys/types.h>
13797 #include <$i>
13798
13799 int
13800 main ()
13801 {
13802 if ((int_fast32_t *) 0)
13803 return 0;
13804 if (sizeof (int_fast32_t))
13805 return 0;
13806 ;
13807 return 0;
13808 }
13809 _ACEOF
13810 rm -f conftest.$ac_objext
13811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13812 (eval $ac_compile) 2>conftest.er1
13813 ac_status=$?
13814 grep -v '^ *+' conftest.er1 >conftest.err
13815 rm -f conftest.er1
13816 cat conftest.err >&5
13817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818 (exit $ac_status); } &&
13819 { ac_try='test -z "$ac_c_werror_flag"
13820 || test ! -s conftest.err'
13821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13822 (eval $ac_try) 2>&5
13823 ac_status=$?
13824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13825 (exit $ac_status); }; } &&
13826 { ac_try='test -s conftest.$ac_objext'
13827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13828 (eval $ac_try) 2>&5
13829 ac_status=$?
13830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13831 (exit $ac_status); }; }; then
13832 ac_cv_type_int_fast32_t=yes
13833 else
13834 echo "$as_me: failed program was:" >&5
13835 sed 's/^/| /' conftest.$ac_ext >&5
13836
13837 ac_cv_type_int_fast32_t=no
13838 fi
13839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13840 fi
13841 echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
13842 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
13843 if test $ac_cv_type_int_fast32_t = yes; then
13844 :
13845 else
13846 acx_cv_header_stdint_kind="(mostly complete)"
13847 fi
13848
13849 echo "$as_me:$LINENO: checking for uint64_t" >&5
13850 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
13851 if test "${ac_cv_type_uint64_t+set}" = set; then
13852 echo $ECHO_N "(cached) $ECHO_C" >&6
13853 else
13854 cat >conftest.$ac_ext <<_ACEOF
13855 /* confdefs.h. */
13856 _ACEOF
13857 cat confdefs.h >>conftest.$ac_ext
13858 cat >>conftest.$ac_ext <<_ACEOF
13859 /* end confdefs.h. */
13860 #include <sys/types.h>
13861 #include <$i>
13862
13863 int
13864 main ()
13865 {
13866 if ((uint64_t *) 0)
13867 return 0;
13868 if (sizeof (uint64_t))
13869 return 0;
13870 ;
13871 return 0;
13872 }
13873 _ACEOF
13874 rm -f conftest.$ac_objext
13875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13876 (eval $ac_compile) 2>conftest.er1
13877 ac_status=$?
13878 grep -v '^ *+' conftest.er1 >conftest.err
13879 rm -f conftest.er1
13880 cat conftest.err >&5
13881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13882 (exit $ac_status); } &&
13883 { ac_try='test -z "$ac_c_werror_flag"
13884 || test ! -s conftest.err'
13885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13886 (eval $ac_try) 2>&5
13887 ac_status=$?
13888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13889 (exit $ac_status); }; } &&
13890 { ac_try='test -s conftest.$ac_objext'
13891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13892 (eval $ac_try) 2>&5
13893 ac_status=$?
13894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13895 (exit $ac_status); }; }; then
13896 ac_cv_type_uint64_t=yes
13897 else
13898 echo "$as_me: failed program was:" >&5
13899 sed 's/^/| /' conftest.$ac_ext >&5
13900
13901 ac_cv_type_uint64_t=no
13902 fi
13903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13904 fi
13905 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13906 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
13907 if test $ac_cv_type_uint64_t = yes; then
13908 :
13909 else
13910 acx_cv_header_stdint_kind="(lacks uint64_t)"
13911 fi
13912
13913 break
13914 done
13915 if test "$acx_cv_header_stdint" = stddef.h; then
13916 acx_cv_header_stdint_kind="(lacks uintmax_t)"
13917 for i in stdint.h $inttype_headers; do
13918 unset ac_cv_type_uintptr_t
13919 unset ac_cv_type_uint32_t
13920 unset ac_cv_type_uint64_t
13921 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
13922 echo "$as_me:$LINENO: checking for uint32_t" >&5
13923 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
13924 if test "${ac_cv_type_uint32_t+set}" = set; then
13925 echo $ECHO_N "(cached) $ECHO_C" >&6
13926 else
13927 cat >conftest.$ac_ext <<_ACEOF
13928 /* confdefs.h. */
13929 _ACEOF
13930 cat confdefs.h >>conftest.$ac_ext
13931 cat >>conftest.$ac_ext <<_ACEOF
13932 /* end confdefs.h. */
13933 #include <sys/types.h>
13934 #include <$i>
13935
13936 int
13937 main ()
13938 {
13939 if ((uint32_t *) 0)
13940 return 0;
13941 if (sizeof (uint32_t))
13942 return 0;
13943 ;
13944 return 0;
13945 }
13946 _ACEOF
13947 rm -f conftest.$ac_objext
13948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13949 (eval $ac_compile) 2>conftest.er1
13950 ac_status=$?
13951 grep -v '^ *+' conftest.er1 >conftest.err
13952 rm -f conftest.er1
13953 cat conftest.err >&5
13954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13955 (exit $ac_status); } &&
13956 { ac_try='test -z "$ac_c_werror_flag"
13957 || test ! -s conftest.err'
13958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13959 (eval $ac_try) 2>&5
13960 ac_status=$?
13961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13962 (exit $ac_status); }; } &&
13963 { ac_try='test -s conftest.$ac_objext'
13964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13965 (eval $ac_try) 2>&5
13966 ac_status=$?
13967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13968 (exit $ac_status); }; }; then
13969 ac_cv_type_uint32_t=yes
13970 else
13971 echo "$as_me: failed program was:" >&5
13972 sed 's/^/| /' conftest.$ac_ext >&5
13973
13974 ac_cv_type_uint32_t=no
13975 fi
13976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13977 fi
13978 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
13979 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
13980 if test $ac_cv_type_uint32_t = yes; then
13981 acx_cv_header_stdint=$i
13982 else
13983 continue
13984 fi
13985
13986 echo "$as_me:$LINENO: checking for uint64_t" >&5
13987 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
13988 if test "${ac_cv_type_uint64_t+set}" = set; then
13989 echo $ECHO_N "(cached) $ECHO_C" >&6
13990 else
13991 cat >conftest.$ac_ext <<_ACEOF
13992 /* confdefs.h. */
13993 _ACEOF
13994 cat confdefs.h >>conftest.$ac_ext
13995 cat >>conftest.$ac_ext <<_ACEOF
13996 /* end confdefs.h. */
13997 #include <sys/types.h>
13998 #include <$i>
13999
14000 int
14001 main ()
14002 {
14003 if ((uint64_t *) 0)
14004 return 0;
14005 if (sizeof (uint64_t))
14006 return 0;
14007 ;
14008 return 0;
14009 }
14010 _ACEOF
14011 rm -f conftest.$ac_objext
14012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14013 (eval $ac_compile) 2>conftest.er1
14014 ac_status=$?
14015 grep -v '^ *+' conftest.er1 >conftest.err
14016 rm -f conftest.er1
14017 cat conftest.err >&5
14018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14019 (exit $ac_status); } &&
14020 { ac_try='test -z "$ac_c_werror_flag"
14021 || test ! -s conftest.err'
14022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14023 (eval $ac_try) 2>&5
14024 ac_status=$?
14025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026 (exit $ac_status); }; } &&
14027 { ac_try='test -s conftest.$ac_objext'
14028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14029 (eval $ac_try) 2>&5
14030 ac_status=$?
14031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14032 (exit $ac_status); }; }; then
14033 ac_cv_type_uint64_t=yes
14034 else
14035 echo "$as_me: failed program was:" >&5
14036 sed 's/^/| /' conftest.$ac_ext >&5
14037
14038 ac_cv_type_uint64_t=no
14039 fi
14040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14041 fi
14042 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
14043 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
14044
14045 echo "$as_me:$LINENO: checking for uintptr_t" >&5
14046 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
14047 if test "${ac_cv_type_uintptr_t+set}" = set; then
14048 echo $ECHO_N "(cached) $ECHO_C" >&6
14049 else
14050 cat >conftest.$ac_ext <<_ACEOF
14051 /* confdefs.h. */
14052 _ACEOF
14053 cat confdefs.h >>conftest.$ac_ext
14054 cat >>conftest.$ac_ext <<_ACEOF
14055 /* end confdefs.h. */
14056 #include <sys/types.h>
14057 #include <$i>
14058
14059 int
14060 main ()
14061 {
14062 if ((uintptr_t *) 0)
14063 return 0;
14064 if (sizeof (uintptr_t))
14065 return 0;
14066 ;
14067 return 0;
14068 }
14069 _ACEOF
14070 rm -f conftest.$ac_objext
14071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14072 (eval $ac_compile) 2>conftest.er1
14073 ac_status=$?
14074 grep -v '^ *+' conftest.er1 >conftest.err
14075 rm -f conftest.er1
14076 cat conftest.err >&5
14077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14078 (exit $ac_status); } &&
14079 { ac_try='test -z "$ac_c_werror_flag"
14080 || test ! -s conftest.err'
14081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14082 (eval $ac_try) 2>&5
14083 ac_status=$?
14084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14085 (exit $ac_status); }; } &&
14086 { ac_try='test -s conftest.$ac_objext'
14087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14088 (eval $ac_try) 2>&5
14089 ac_status=$?
14090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14091 (exit $ac_status); }; }; then
14092 ac_cv_type_uintptr_t=yes
14093 else
14094 echo "$as_me: failed program was:" >&5
14095 sed 's/^/| /' conftest.$ac_ext >&5
14096
14097 ac_cv_type_uintptr_t=no
14098 fi
14099 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14100 fi
14101 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
14102 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
14103
14104 break
14105 done
14106 fi
14107 if test "$acx_cv_header_stdint" = stddef.h; then
14108 acx_cv_header_stdint_kind="(u_intXX_t style)"
14109 for i in sys/types.h $inttype_headers; do
14110 unset ac_cv_type_u_int32_t
14111 unset ac_cv_type_u_int64_t
14112 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
14113 echo "$as_me:$LINENO: checking for u_int32_t" >&5
14114 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
14115 if test "${ac_cv_type_u_int32_t+set}" = set; then
14116 echo $ECHO_N "(cached) $ECHO_C" >&6
14117 else
14118 cat >conftest.$ac_ext <<_ACEOF
14119 /* confdefs.h. */
14120 _ACEOF
14121 cat confdefs.h >>conftest.$ac_ext
14122 cat >>conftest.$ac_ext <<_ACEOF
14123 /* end confdefs.h. */
14124 #include <sys/types.h>
14125 #include <$i>
14126
14127 int
14128 main ()
14129 {
14130 if ((u_int32_t *) 0)
14131 return 0;
14132 if (sizeof (u_int32_t))
14133 return 0;
14134 ;
14135 return 0;
14136 }
14137 _ACEOF
14138 rm -f conftest.$ac_objext
14139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14140 (eval $ac_compile) 2>conftest.er1
14141 ac_status=$?
14142 grep -v '^ *+' conftest.er1 >conftest.err
14143 rm -f conftest.er1
14144 cat conftest.err >&5
14145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14146 (exit $ac_status); } &&
14147 { ac_try='test -z "$ac_c_werror_flag"
14148 || test ! -s conftest.err'
14149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14150 (eval $ac_try) 2>&5
14151 ac_status=$?
14152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14153 (exit $ac_status); }; } &&
14154 { ac_try='test -s conftest.$ac_objext'
14155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14156 (eval $ac_try) 2>&5
14157 ac_status=$?
14158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14159 (exit $ac_status); }; }; then
14160 ac_cv_type_u_int32_t=yes
14161 else
14162 echo "$as_me: failed program was:" >&5
14163 sed 's/^/| /' conftest.$ac_ext >&5
14164
14165 ac_cv_type_u_int32_t=no
14166 fi
14167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14168 fi
14169 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
14170 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
14171 if test $ac_cv_type_u_int32_t = yes; then
14172 acx_cv_header_stdint=$i
14173 else
14174 continue
14175 fi
14176
14177 echo "$as_me:$LINENO: checking for u_int64_t" >&5
14178 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
14179 if test "${ac_cv_type_u_int64_t+set}" = set; then
14180 echo $ECHO_N "(cached) $ECHO_C" >&6
14181 else
14182 cat >conftest.$ac_ext <<_ACEOF
14183 /* confdefs.h. */
14184 _ACEOF
14185 cat confdefs.h >>conftest.$ac_ext
14186 cat >>conftest.$ac_ext <<_ACEOF
14187 /* end confdefs.h. */
14188 #include <sys/types.h>
14189 #include <$i>
14190
14191 int
14192 main ()
14193 {
14194 if ((u_int64_t *) 0)
14195 return 0;
14196 if (sizeof (u_int64_t))
14197 return 0;
14198 ;
14199 return 0;
14200 }
14201 _ACEOF
14202 rm -f conftest.$ac_objext
14203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14204 (eval $ac_compile) 2>conftest.er1
14205 ac_status=$?
14206 grep -v '^ *+' conftest.er1 >conftest.err
14207 rm -f conftest.er1
14208 cat conftest.err >&5
14209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14210 (exit $ac_status); } &&
14211 { ac_try='test -z "$ac_c_werror_flag"
14212 || test ! -s conftest.err'
14213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14214 (eval $ac_try) 2>&5
14215 ac_status=$?
14216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14217 (exit $ac_status); }; } &&
14218 { ac_try='test -s conftest.$ac_objext'
14219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14220 (eval $ac_try) 2>&5
14221 ac_status=$?
14222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14223 (exit $ac_status); }; }; then
14224 ac_cv_type_u_int64_t=yes
14225 else
14226 echo "$as_me: failed program was:" >&5
14227 sed 's/^/| /' conftest.$ac_ext >&5
14228
14229 ac_cv_type_u_int64_t=no
14230 fi
14231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14232 fi
14233 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
14234 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
14235
14236 break
14237 done
14238 fi
14239 if test "$acx_cv_header_stdint" = stddef.h; then
14240 acx_cv_header_stdint_kind="(using manual detection)"
14241 fi
14242
14243 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
14244 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
14245 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
14246 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
14247 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
14248
14249 # ----------------- Summarize what we found so far
14250
14251 echo "$as_me:$LINENO: checking what to include in gstdint.h" >&5
14252 echo $ECHO_N "checking what to include in gstdint.h... $ECHO_C" >&6
14253
14254 case `$as_basename gstdint.h ||
14255 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
14256 Xgstdint.h : 'X\(//\)$' \| \
14257 Xgstdint.h : 'X\(/\)$' \| \
14258 . : '\(.\)' 2>/dev/null ||
14259 echo X/gstdint.h |
14260 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14261 /^X\/\(\/\/\)$/{ s//\1/; q; }
14262 /^X\/\(\/\).*/{ s//\1/; q; }
14263 s/.*/./; q'` in
14264 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
14265 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14266 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
14267 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14268 *) ;;
14269 esac
14270
14271 echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
14272 echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
14273
14274 # ----------------- done included file, check C basic types --------
14275
14276 # Lacking an uintptr_t? Test size of void *
14277 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
14278 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
14279 echo $ECHO_N "checking for void *... $ECHO_C" >&6
14280 if test "${ac_cv_type_void_p+set}" = set; then
14281 echo $ECHO_N "(cached) $ECHO_C" >&6
14282 else
14283 cat >conftest.$ac_ext <<_ACEOF
14284 /* confdefs.h. */
14285 _ACEOF
14286 cat confdefs.h >>conftest.$ac_ext
14287 cat >>conftest.$ac_ext <<_ACEOF
14288 /* end confdefs.h. */
14289 $ac_includes_default
14290 int
14291 main ()
14292 {
14293 if ((void * *) 0)
14294 return 0;
14295 if (sizeof (void *))
14296 return 0;
14297 ;
14298 return 0;
14299 }
14300 _ACEOF
14301 rm -f conftest.$ac_objext
14302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14303 (eval $ac_compile) 2>conftest.er1
14304 ac_status=$?
14305 grep -v '^ *+' conftest.er1 >conftest.err
14306 rm -f conftest.er1
14307 cat conftest.err >&5
14308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14309 (exit $ac_status); } &&
14310 { ac_try='test -z "$ac_c_werror_flag"
14311 || test ! -s conftest.err'
14312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14313 (eval $ac_try) 2>&5
14314 ac_status=$?
14315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14316 (exit $ac_status); }; } &&
14317 { ac_try='test -s conftest.$ac_objext'
14318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14319 (eval $ac_try) 2>&5
14320 ac_status=$?
14321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14322 (exit $ac_status); }; }; then
14323 ac_cv_type_void_p=yes
14324 else
14325 echo "$as_me: failed program was:" >&5
14326 sed 's/^/| /' conftest.$ac_ext >&5
14327
14328 ac_cv_type_void_p=no
14329 fi
14330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14331 fi
14332 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14333 echo "${ECHO_T}$ac_cv_type_void_p" >&6
14334
14335 echo "$as_me:$LINENO: checking size of void *" >&5
14336 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14337 if test "${ac_cv_sizeof_void_p+set}" = set; then
14338 echo $ECHO_N "(cached) $ECHO_C" >&6
14339 else
14340 if test "$ac_cv_type_void_p" = yes; then
14341 # The cast to unsigned long works around a bug in the HP C Compiler
14342 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14343 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14344 # This bug is HP SR number 8606223364.
14345 if test "$cross_compiling" = yes; then
14346 # Depending upon the size, compute the lo and hi bounds.
14347 cat >conftest.$ac_ext <<_ACEOF
14348 /* confdefs.h. */
14349 _ACEOF
14350 cat confdefs.h >>conftest.$ac_ext
14351 cat >>conftest.$ac_ext <<_ACEOF
14352 /* end confdefs.h. */
14353 $ac_includes_default
14354 int
14355 main ()
14356 {
14357 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14358 test_array [0] = 0
14359
14360 ;
14361 return 0;
14362 }
14363 _ACEOF
14364 rm -f conftest.$ac_objext
14365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14366 (eval $ac_compile) 2>conftest.er1
14367 ac_status=$?
14368 grep -v '^ *+' conftest.er1 >conftest.err
14369 rm -f conftest.er1
14370 cat conftest.err >&5
14371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14372 (exit $ac_status); } &&
14373 { ac_try='test -z "$ac_c_werror_flag"
14374 || test ! -s conftest.err'
14375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14376 (eval $ac_try) 2>&5
14377 ac_status=$?
14378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14379 (exit $ac_status); }; } &&
14380 { ac_try='test -s conftest.$ac_objext'
14381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14382 (eval $ac_try) 2>&5
14383 ac_status=$?
14384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14385 (exit $ac_status); }; }; then
14386 ac_lo=0 ac_mid=0
14387 while :; do
14388 cat >conftest.$ac_ext <<_ACEOF
14389 /* confdefs.h. */
14390 _ACEOF
14391 cat confdefs.h >>conftest.$ac_ext
14392 cat >>conftest.$ac_ext <<_ACEOF
14393 /* end confdefs.h. */
14394 $ac_includes_default
14395 int
14396 main ()
14397 {
14398 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14399 test_array [0] = 0
14400
14401 ;
14402 return 0;
14403 }
14404 _ACEOF
14405 rm -f conftest.$ac_objext
14406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14407 (eval $ac_compile) 2>conftest.er1
14408 ac_status=$?
14409 grep -v '^ *+' conftest.er1 >conftest.err
14410 rm -f conftest.er1
14411 cat conftest.err >&5
14412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14413 (exit $ac_status); } &&
14414 { ac_try='test -z "$ac_c_werror_flag"
14415 || test ! -s conftest.err'
14416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14417 (eval $ac_try) 2>&5
14418 ac_status=$?
14419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14420 (exit $ac_status); }; } &&
14421 { ac_try='test -s conftest.$ac_objext'
14422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14423 (eval $ac_try) 2>&5
14424 ac_status=$?
14425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14426 (exit $ac_status); }; }; then
14427 ac_hi=$ac_mid; break
14428 else
14429 echo "$as_me: failed program was:" >&5
14430 sed 's/^/| /' conftest.$ac_ext >&5
14431
14432 ac_lo=`expr $ac_mid + 1`
14433 if test $ac_lo -le $ac_mid; then
14434 ac_lo= ac_hi=
14435 break
14436 fi
14437 ac_mid=`expr 2 '*' $ac_mid + 1`
14438 fi
14439 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14440 done
14441 else
14442 echo "$as_me: failed program was:" >&5
14443 sed 's/^/| /' conftest.$ac_ext >&5
14444
14445 cat >conftest.$ac_ext <<_ACEOF
14446 /* confdefs.h. */
14447 _ACEOF
14448 cat confdefs.h >>conftest.$ac_ext
14449 cat >>conftest.$ac_ext <<_ACEOF
14450 /* end confdefs.h. */
14451 $ac_includes_default
14452 int
14453 main ()
14454 {
14455 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
14456 test_array [0] = 0
14457
14458 ;
14459 return 0;
14460 }
14461 _ACEOF
14462 rm -f conftest.$ac_objext
14463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14464 (eval $ac_compile) 2>conftest.er1
14465 ac_status=$?
14466 grep -v '^ *+' conftest.er1 >conftest.err
14467 rm -f conftest.er1
14468 cat conftest.err >&5
14469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14470 (exit $ac_status); } &&
14471 { ac_try='test -z "$ac_c_werror_flag"
14472 || test ! -s conftest.err'
14473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14474 (eval $ac_try) 2>&5
14475 ac_status=$?
14476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14477 (exit $ac_status); }; } &&
14478 { ac_try='test -s conftest.$ac_objext'
14479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14480 (eval $ac_try) 2>&5
14481 ac_status=$?
14482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14483 (exit $ac_status); }; }; then
14484 ac_hi=-1 ac_mid=-1
14485 while :; do
14486 cat >conftest.$ac_ext <<_ACEOF
14487 /* confdefs.h. */
14488 _ACEOF
14489 cat confdefs.h >>conftest.$ac_ext
14490 cat >>conftest.$ac_ext <<_ACEOF
14491 /* end confdefs.h. */
14492 $ac_includes_default
14493 int
14494 main ()
14495 {
14496 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
14497 test_array [0] = 0
14498
14499 ;
14500 return 0;
14501 }
14502 _ACEOF
14503 rm -f conftest.$ac_objext
14504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14505 (eval $ac_compile) 2>conftest.er1
14506 ac_status=$?
14507 grep -v '^ *+' conftest.er1 >conftest.err
14508 rm -f conftest.er1
14509 cat conftest.err >&5
14510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14511 (exit $ac_status); } &&
14512 { ac_try='test -z "$ac_c_werror_flag"
14513 || test ! -s conftest.err'
14514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14515 (eval $ac_try) 2>&5
14516 ac_status=$?
14517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14518 (exit $ac_status); }; } &&
14519 { ac_try='test -s conftest.$ac_objext'
14520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14521 (eval $ac_try) 2>&5
14522 ac_status=$?
14523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14524 (exit $ac_status); }; }; then
14525 ac_lo=$ac_mid; break
14526 else
14527 echo "$as_me: failed program was:" >&5
14528 sed 's/^/| /' conftest.$ac_ext >&5
14529
14530 ac_hi=`expr '(' $ac_mid ')' - 1`
14531 if test $ac_mid -le $ac_hi; then
14532 ac_lo= ac_hi=
14533 break
14534 fi
14535 ac_mid=`expr 2 '*' $ac_mid`
14536 fi
14537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14538 done
14539 else
14540 echo "$as_me: failed program was:" >&5
14541 sed 's/^/| /' conftest.$ac_ext >&5
14542
14543 ac_lo= ac_hi=
14544 fi
14545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14546 fi
14547 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14548 # Binary search between lo and hi bounds.
14549 while test "x$ac_lo" != "x$ac_hi"; do
14550 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14551 cat >conftest.$ac_ext <<_ACEOF
14552 /* confdefs.h. */
14553 _ACEOF
14554 cat confdefs.h >>conftest.$ac_ext
14555 cat >>conftest.$ac_ext <<_ACEOF
14556 /* end confdefs.h. */
14557 $ac_includes_default
14558 int
14559 main ()
14560 {
14561 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14562 test_array [0] = 0
14563
14564 ;
14565 return 0;
14566 }
14567 _ACEOF
14568 rm -f conftest.$ac_objext
14569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14570 (eval $ac_compile) 2>conftest.er1
14571 ac_status=$?
14572 grep -v '^ *+' conftest.er1 >conftest.err
14573 rm -f conftest.er1
14574 cat conftest.err >&5
14575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14576 (exit $ac_status); } &&
14577 { ac_try='test -z "$ac_c_werror_flag"
14578 || test ! -s conftest.err'
14579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14580 (eval $ac_try) 2>&5
14581 ac_status=$?
14582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14583 (exit $ac_status); }; } &&
14584 { ac_try='test -s conftest.$ac_objext'
14585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14586 (eval $ac_try) 2>&5
14587 ac_status=$?
14588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14589 (exit $ac_status); }; }; then
14590 ac_hi=$ac_mid
14591 else
14592 echo "$as_me: failed program was:" >&5
14593 sed 's/^/| /' conftest.$ac_ext >&5
14594
14595 ac_lo=`expr '(' $ac_mid ')' + 1`
14596 fi
14597 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14598 done
14599 case $ac_lo in
14600 ?*) ac_cv_sizeof_void_p=$ac_lo;;
14601 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14602 See \`config.log' for more details." >&5
14603 echo "$as_me: error: cannot compute sizeof (void *), 77
14604 See \`config.log' for more details." >&2;}
14605 { (exit 1); exit 1; }; } ;;
14606 esac
14607 else
14608 if test "$cross_compiling" = yes; then
14609 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14610 See \`config.log' for more details." >&5
14611 echo "$as_me: error: cannot run test program while cross compiling
14612 See \`config.log' for more details." >&2;}
14613 { (exit 1); exit 1; }; }
14614 else
14615 cat >conftest.$ac_ext <<_ACEOF
14616 /* confdefs.h. */
14617 _ACEOF
14618 cat confdefs.h >>conftest.$ac_ext
14619 cat >>conftest.$ac_ext <<_ACEOF
14620 /* end confdefs.h. */
14621 $ac_includes_default
14622 long longval () { return (long) (sizeof (void *)); }
14623 unsigned long ulongval () { return (long) (sizeof (void *)); }
14624 #include <stdio.h>
14625 #include <stdlib.h>
14626 int
14627 main ()
14628 {
14629
14630 FILE *f = fopen ("conftest.val", "w");
14631 if (! f)
14632 exit (1);
14633 if (((long) (sizeof (void *))) < 0)
14634 {
14635 long i = longval ();
14636 if (i != ((long) (sizeof (void *))))
14637 exit (1);
14638 fprintf (f, "%ld\n", i);
14639 }
14640 else
14641 {
14642 unsigned long i = ulongval ();
14643 if (i != ((long) (sizeof (void *))))
14644 exit (1);
14645 fprintf (f, "%lu\n", i);
14646 }
14647 exit (ferror (f) || fclose (f) != 0);
14648
14649 ;
14650 return 0;
14651 }
14652 _ACEOF
14653 rm -f conftest$ac_exeext
14654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14655 (eval $ac_link) 2>&5
14656 ac_status=$?
14657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14660 (eval $ac_try) 2>&5
14661 ac_status=$?
14662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14663 (exit $ac_status); }; }; then
14664 ac_cv_sizeof_void_p=`cat conftest.val`
14665 else
14666 echo "$as_me: program exited with status $ac_status" >&5
14667 echo "$as_me: failed program was:" >&5
14668 sed 's/^/| /' conftest.$ac_ext >&5
14669
14670 ( exit $ac_status )
14671 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14672 See \`config.log' for more details." >&5
14673 echo "$as_me: error: cannot compute sizeof (void *), 77
14674 See \`config.log' for more details." >&2;}
14675 { (exit 1); exit 1; }; }
14676 fi
14677 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14678 fi
14679 fi
14680 rm -f conftest.val
14681 else
14682 ac_cv_sizeof_void_p=0
14683 fi
14684 fi
14685 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14686 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
14687 cat >>confdefs.h <<_ACEOF
14688 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14689 _ACEOF
14690
14691 ;;
14692 esac
14693
14694 # Lacking an uint64_t? Test size of long
14695 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
14696 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
14697 echo $ECHO_N "checking for long... $ECHO_C" >&6
14698 if test "${ac_cv_type_long+set}" = set; then
14699 echo $ECHO_N "(cached) $ECHO_C" >&6
14700 else
14701 cat >conftest.$ac_ext <<_ACEOF
14702 /* confdefs.h. */
14703 _ACEOF
14704 cat confdefs.h >>conftest.$ac_ext
14705 cat >>conftest.$ac_ext <<_ACEOF
14706 /* end confdefs.h. */
14707 $ac_includes_default
14708 int
14709 main ()
14710 {
14711 if ((long *) 0)
14712 return 0;
14713 if (sizeof (long))
14714 return 0;
14715 ;
14716 return 0;
14717 }
14718 _ACEOF
14719 rm -f conftest.$ac_objext
14720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14721 (eval $ac_compile) 2>conftest.er1
14722 ac_status=$?
14723 grep -v '^ *+' conftest.er1 >conftest.err
14724 rm -f conftest.er1
14725 cat conftest.err >&5
14726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14727 (exit $ac_status); } &&
14728 { ac_try='test -z "$ac_c_werror_flag"
14729 || test ! -s conftest.err'
14730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14731 (eval $ac_try) 2>&5
14732 ac_status=$?
14733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14734 (exit $ac_status); }; } &&
14735 { ac_try='test -s conftest.$ac_objext'
14736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14737 (eval $ac_try) 2>&5
14738 ac_status=$?
14739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14740 (exit $ac_status); }; }; then
14741 ac_cv_type_long=yes
14742 else
14743 echo "$as_me: failed program was:" >&5
14744 sed 's/^/| /' conftest.$ac_ext >&5
14745
14746 ac_cv_type_long=no
14747 fi
14748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14749 fi
14750 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
14751 echo "${ECHO_T}$ac_cv_type_long" >&6
14752
14753 echo "$as_me:$LINENO: checking size of long" >&5
14754 echo $ECHO_N "checking size of long... $ECHO_C" >&6
14755 if test "${ac_cv_sizeof_long+set}" = set; then
14756 echo $ECHO_N "(cached) $ECHO_C" >&6
14757 else
14758 if test "$ac_cv_type_long" = yes; then
14759 # The cast to unsigned long works around a bug in the HP C Compiler
14760 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14761 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14762 # This bug is HP SR number 8606223364.
14763 if test "$cross_compiling" = yes; then
14764 # Depending upon the size, compute the lo and hi bounds.
14765 cat >conftest.$ac_ext <<_ACEOF
14766 /* confdefs.h. */
14767 _ACEOF
14768 cat confdefs.h >>conftest.$ac_ext
14769 cat >>conftest.$ac_ext <<_ACEOF
14770 /* end confdefs.h. */
14771 $ac_includes_default
14772 int
14773 main ()
14774 {
14775 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
14776 test_array [0] = 0
14777
14778 ;
14779 return 0;
14780 }
14781 _ACEOF
14782 rm -f conftest.$ac_objext
14783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14784 (eval $ac_compile) 2>conftest.er1
14785 ac_status=$?
14786 grep -v '^ *+' conftest.er1 >conftest.err
14787 rm -f conftest.er1
14788 cat conftest.err >&5
14789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14790 (exit $ac_status); } &&
14791 { ac_try='test -z "$ac_c_werror_flag"
14792 || test ! -s conftest.err'
14793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14794 (eval $ac_try) 2>&5
14795 ac_status=$?
14796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14797 (exit $ac_status); }; } &&
14798 { ac_try='test -s conftest.$ac_objext'
14799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14800 (eval $ac_try) 2>&5
14801 ac_status=$?
14802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803 (exit $ac_status); }; }; then
14804 ac_lo=0 ac_mid=0
14805 while :; do
14806 cat >conftest.$ac_ext <<_ACEOF
14807 /* confdefs.h. */
14808 _ACEOF
14809 cat confdefs.h >>conftest.$ac_ext
14810 cat >>conftest.$ac_ext <<_ACEOF
14811 /* end confdefs.h. */
14812 $ac_includes_default
14813 int
14814 main ()
14815 {
14816 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
14817 test_array [0] = 0
14818
14819 ;
14820 return 0;
14821 }
14822 _ACEOF
14823 rm -f conftest.$ac_objext
14824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14825 (eval $ac_compile) 2>conftest.er1
14826 ac_status=$?
14827 grep -v '^ *+' conftest.er1 >conftest.err
14828 rm -f conftest.er1
14829 cat conftest.err >&5
14830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14831 (exit $ac_status); } &&
14832 { ac_try='test -z "$ac_c_werror_flag"
14833 || test ! -s conftest.err'
14834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14835 (eval $ac_try) 2>&5
14836 ac_status=$?
14837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14838 (exit $ac_status); }; } &&
14839 { ac_try='test -s conftest.$ac_objext'
14840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14841 (eval $ac_try) 2>&5
14842 ac_status=$?
14843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14844 (exit $ac_status); }; }; then
14845 ac_hi=$ac_mid; break
14846 else
14847 echo "$as_me: failed program was:" >&5
14848 sed 's/^/| /' conftest.$ac_ext >&5
14849
14850 ac_lo=`expr $ac_mid + 1`
14851 if test $ac_lo -le $ac_mid; then
14852 ac_lo= ac_hi=
14853 break
14854 fi
14855 ac_mid=`expr 2 '*' $ac_mid + 1`
14856 fi
14857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14858 done
14859 else
14860 echo "$as_me: failed program was:" >&5
14861 sed 's/^/| /' conftest.$ac_ext >&5
14862
14863 cat >conftest.$ac_ext <<_ACEOF
14864 /* confdefs.h. */
14865 _ACEOF
14866 cat confdefs.h >>conftest.$ac_ext
14867 cat >>conftest.$ac_ext <<_ACEOF
14868 /* end confdefs.h. */
14869 $ac_includes_default
14870 int
14871 main ()
14872 {
14873 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
14874 test_array [0] = 0
14875
14876 ;
14877 return 0;
14878 }
14879 _ACEOF
14880 rm -f conftest.$ac_objext
14881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14882 (eval $ac_compile) 2>conftest.er1
14883 ac_status=$?
14884 grep -v '^ *+' conftest.er1 >conftest.err
14885 rm -f conftest.er1
14886 cat conftest.err >&5
14887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14888 (exit $ac_status); } &&
14889 { ac_try='test -z "$ac_c_werror_flag"
14890 || test ! -s conftest.err'
14891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14892 (eval $ac_try) 2>&5
14893 ac_status=$?
14894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14895 (exit $ac_status); }; } &&
14896 { ac_try='test -s conftest.$ac_objext'
14897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14898 (eval $ac_try) 2>&5
14899 ac_status=$?
14900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14901 (exit $ac_status); }; }; then
14902 ac_hi=-1 ac_mid=-1
14903 while :; do
14904 cat >conftest.$ac_ext <<_ACEOF
14905 /* confdefs.h. */
14906 _ACEOF
14907 cat confdefs.h >>conftest.$ac_ext
14908 cat >>conftest.$ac_ext <<_ACEOF
14909 /* end confdefs.h. */
14910 $ac_includes_default
14911 int
14912 main ()
14913 {
14914 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
14915 test_array [0] = 0
14916
14917 ;
14918 return 0;
14919 }
14920 _ACEOF
14921 rm -f conftest.$ac_objext
14922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14923 (eval $ac_compile) 2>conftest.er1
14924 ac_status=$?
14925 grep -v '^ *+' conftest.er1 >conftest.err
14926 rm -f conftest.er1
14927 cat conftest.err >&5
14928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14929 (exit $ac_status); } &&
14930 { ac_try='test -z "$ac_c_werror_flag"
14931 || test ! -s conftest.err'
14932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14933 (eval $ac_try) 2>&5
14934 ac_status=$?
14935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14936 (exit $ac_status); }; } &&
14937 { ac_try='test -s conftest.$ac_objext'
14938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14939 (eval $ac_try) 2>&5
14940 ac_status=$?
14941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14942 (exit $ac_status); }; }; then
14943 ac_lo=$ac_mid; break
14944 else
14945 echo "$as_me: failed program was:" >&5
14946 sed 's/^/| /' conftest.$ac_ext >&5
14947
14948 ac_hi=`expr '(' $ac_mid ')' - 1`
14949 if test $ac_mid -le $ac_hi; then
14950 ac_lo= ac_hi=
14951 break
14952 fi
14953 ac_mid=`expr 2 '*' $ac_mid`
14954 fi
14955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14956 done
14957 else
14958 echo "$as_me: failed program was:" >&5
14959 sed 's/^/| /' conftest.$ac_ext >&5
14960
14961 ac_lo= ac_hi=
14962 fi
14963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14964 fi
14965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14966 # Binary search between lo and hi bounds.
14967 while test "x$ac_lo" != "x$ac_hi"; do
14968 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14969 cat >conftest.$ac_ext <<_ACEOF
14970 /* confdefs.h. */
14971 _ACEOF
14972 cat confdefs.h >>conftest.$ac_ext
14973 cat >>conftest.$ac_ext <<_ACEOF
14974 /* end confdefs.h. */
14975 $ac_includes_default
14976 int
14977 main ()
14978 {
14979 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
14980 test_array [0] = 0
14981
14982 ;
14983 return 0;
14984 }
14985 _ACEOF
14986 rm -f conftest.$ac_objext
14987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14988 (eval $ac_compile) 2>conftest.er1
14989 ac_status=$?
14990 grep -v '^ *+' conftest.er1 >conftest.err
14991 rm -f conftest.er1
14992 cat conftest.err >&5
14993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14994 (exit $ac_status); } &&
14995 { ac_try='test -z "$ac_c_werror_flag"
14996 || test ! -s conftest.err'
14997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14998 (eval $ac_try) 2>&5
14999 ac_status=$?
15000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15001 (exit $ac_status); }; } &&
15002 { ac_try='test -s conftest.$ac_objext'
15003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15004 (eval $ac_try) 2>&5
15005 ac_status=$?
15006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15007 (exit $ac_status); }; }; then
15008 ac_hi=$ac_mid
15009 else
15010 echo "$as_me: failed program was:" >&5
15011 sed 's/^/| /' conftest.$ac_ext >&5
15012
15013 ac_lo=`expr '(' $ac_mid ')' + 1`
15014 fi
15015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15016 done
15017 case $ac_lo in
15018 ?*) ac_cv_sizeof_long=$ac_lo;;
15019 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15020 See \`config.log' for more details." >&5
15021 echo "$as_me: error: cannot compute sizeof (long), 77
15022 See \`config.log' for more details." >&2;}
15023 { (exit 1); exit 1; }; } ;;
15024 esac
15025 else
15026 if test "$cross_compiling" = yes; then
15027 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15028 See \`config.log' for more details." >&5
15029 echo "$as_me: error: cannot run test program while cross compiling
15030 See \`config.log' for more details." >&2;}
15031 { (exit 1); exit 1; }; }
15032 else
15033 cat >conftest.$ac_ext <<_ACEOF
15034 /* confdefs.h. */
15035 _ACEOF
15036 cat confdefs.h >>conftest.$ac_ext
15037 cat >>conftest.$ac_ext <<_ACEOF
15038 /* end confdefs.h. */
15039 $ac_includes_default
15040 long longval () { return (long) (sizeof (long)); }
15041 unsigned long ulongval () { return (long) (sizeof (long)); }
15042 #include <stdio.h>
15043 #include <stdlib.h>
15044 int
15045 main ()
15046 {
15047
15048 FILE *f = fopen ("conftest.val", "w");
15049 if (! f)
15050 exit (1);
15051 if (((long) (sizeof (long))) < 0)
15052 {
15053 long i = longval ();
15054 if (i != ((long) (sizeof (long))))
15055 exit (1);
15056 fprintf (f, "%ld\n", i);
15057 }
15058 else
15059 {
15060 unsigned long i = ulongval ();
15061 if (i != ((long) (sizeof (long))))
15062 exit (1);
15063 fprintf (f, "%lu\n", i);
15064 }
15065 exit (ferror (f) || fclose (f) != 0);
15066
15067 ;
15068 return 0;
15069 }
15070 _ACEOF
15071 rm -f conftest$ac_exeext
15072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15073 (eval $ac_link) 2>&5
15074 ac_status=$?
15075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15076 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15078 (eval $ac_try) 2>&5
15079 ac_status=$?
15080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15081 (exit $ac_status); }; }; then
15082 ac_cv_sizeof_long=`cat conftest.val`
15083 else
15084 echo "$as_me: program exited with status $ac_status" >&5
15085 echo "$as_me: failed program was:" >&5
15086 sed 's/^/| /' conftest.$ac_ext >&5
15087
15088 ( exit $ac_status )
15089 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15090 See \`config.log' for more details." >&5
15091 echo "$as_me: error: cannot compute sizeof (long), 77
15092 See \`config.log' for more details." >&2;}
15093 { (exit 1); exit 1; }; }
15094 fi
15095 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15096 fi
15097 fi
15098 rm -f conftest.val
15099 else
15100 ac_cv_sizeof_long=0
15101 fi
15102 fi
15103 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
15104 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
15105 cat >>confdefs.h <<_ACEOF
15106 #define SIZEOF_LONG $ac_cv_sizeof_long
15107 _ACEOF
15108
15109 ;;
15110 esac
15111
15112 if test $acx_cv_header_stdint = stddef.h; then
15113 # Lacking a good header? Test size of everything and deduce all types.
15114 echo "$as_me:$LINENO: checking for int" >&5
15115 echo $ECHO_N "checking for int... $ECHO_C" >&6
15116 if test "${ac_cv_type_int+set}" = set; then
15117 echo $ECHO_N "(cached) $ECHO_C" >&6
15118 else
15119 cat >conftest.$ac_ext <<_ACEOF
15120 /* confdefs.h. */
15121 _ACEOF
15122 cat confdefs.h >>conftest.$ac_ext
15123 cat >>conftest.$ac_ext <<_ACEOF
15124 /* end confdefs.h. */
15125 $ac_includes_default
15126 int
15127 main ()
15128 {
15129 if ((int *) 0)
15130 return 0;
15131 if (sizeof (int))
15132 return 0;
15133 ;
15134 return 0;
15135 }
15136 _ACEOF
15137 rm -f conftest.$ac_objext
15138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15139 (eval $ac_compile) 2>conftest.er1
15140 ac_status=$?
15141 grep -v '^ *+' conftest.er1 >conftest.err
15142 rm -f conftest.er1
15143 cat conftest.err >&5
15144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15145 (exit $ac_status); } &&
15146 { ac_try='test -z "$ac_c_werror_flag"
15147 || test ! -s conftest.err'
15148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15149 (eval $ac_try) 2>&5
15150 ac_status=$?
15151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15152 (exit $ac_status); }; } &&
15153 { ac_try='test -s conftest.$ac_objext'
15154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15155 (eval $ac_try) 2>&5
15156 ac_status=$?
15157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15158 (exit $ac_status); }; }; then
15159 ac_cv_type_int=yes
15160 else
15161 echo "$as_me: failed program was:" >&5
15162 sed 's/^/| /' conftest.$ac_ext >&5
15163
15164 ac_cv_type_int=no
15165 fi
15166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15167 fi
15168 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15169 echo "${ECHO_T}$ac_cv_type_int" >&6
15170
15171 echo "$as_me:$LINENO: checking size of int" >&5
15172 echo $ECHO_N "checking size of int... $ECHO_C" >&6
15173 if test "${ac_cv_sizeof_int+set}" = set; then
15174 echo $ECHO_N "(cached) $ECHO_C" >&6
15175 else
15176 if test "$ac_cv_type_int" = yes; then
15177 # The cast to unsigned long works around a bug in the HP C Compiler
15178 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15179 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15180 # This bug is HP SR number 8606223364.
15181 if test "$cross_compiling" = yes; then
15182 # Depending upon the size, compute the lo and hi bounds.
15183 cat >conftest.$ac_ext <<_ACEOF
15184 /* confdefs.h. */
15185 _ACEOF
15186 cat confdefs.h >>conftest.$ac_ext
15187 cat >>conftest.$ac_ext <<_ACEOF
15188 /* end confdefs.h. */
15189 $ac_includes_default
15190 int
15191 main ()
15192 {
15193 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15194 test_array [0] = 0
15195
15196 ;
15197 return 0;
15198 }
15199 _ACEOF
15200 rm -f conftest.$ac_objext
15201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15202 (eval $ac_compile) 2>conftest.er1
15203 ac_status=$?
15204 grep -v '^ *+' conftest.er1 >conftest.err
15205 rm -f conftest.er1
15206 cat conftest.err >&5
15207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15208 (exit $ac_status); } &&
15209 { ac_try='test -z "$ac_c_werror_flag"
15210 || test ! -s conftest.err'
15211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15212 (eval $ac_try) 2>&5
15213 ac_status=$?
15214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15215 (exit $ac_status); }; } &&
15216 { ac_try='test -s conftest.$ac_objext'
15217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15218 (eval $ac_try) 2>&5
15219 ac_status=$?
15220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15221 (exit $ac_status); }; }; then
15222 ac_lo=0 ac_mid=0
15223 while :; do
15224 cat >conftest.$ac_ext <<_ACEOF
15225 /* confdefs.h. */
15226 _ACEOF
15227 cat confdefs.h >>conftest.$ac_ext
15228 cat >>conftest.$ac_ext <<_ACEOF
15229 /* end confdefs.h. */
15230 $ac_includes_default
15231 int
15232 main ()
15233 {
15234 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15235 test_array [0] = 0
15236
15237 ;
15238 return 0;
15239 }
15240 _ACEOF
15241 rm -f conftest.$ac_objext
15242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15243 (eval $ac_compile) 2>conftest.er1
15244 ac_status=$?
15245 grep -v '^ *+' conftest.er1 >conftest.err
15246 rm -f conftest.er1
15247 cat conftest.err >&5
15248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15249 (exit $ac_status); } &&
15250 { ac_try='test -z "$ac_c_werror_flag"
15251 || test ! -s conftest.err'
15252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15253 (eval $ac_try) 2>&5
15254 ac_status=$?
15255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15256 (exit $ac_status); }; } &&
15257 { ac_try='test -s conftest.$ac_objext'
15258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15259 (eval $ac_try) 2>&5
15260 ac_status=$?
15261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262 (exit $ac_status); }; }; then
15263 ac_hi=$ac_mid; break
15264 else
15265 echo "$as_me: failed program was:" >&5
15266 sed 's/^/| /' conftest.$ac_ext >&5
15267
15268 ac_lo=`expr $ac_mid + 1`
15269 if test $ac_lo -le $ac_mid; then
15270 ac_lo= ac_hi=
15271 break
15272 fi
15273 ac_mid=`expr 2 '*' $ac_mid + 1`
15274 fi
15275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15276 done
15277 else
15278 echo "$as_me: failed program was:" >&5
15279 sed 's/^/| /' conftest.$ac_ext >&5
15280
15281 cat >conftest.$ac_ext <<_ACEOF
15282 /* confdefs.h. */
15283 _ACEOF
15284 cat confdefs.h >>conftest.$ac_ext
15285 cat >>conftest.$ac_ext <<_ACEOF
15286 /* end confdefs.h. */
15287 $ac_includes_default
15288 int
15289 main ()
15290 {
15291 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15292 test_array [0] = 0
15293
15294 ;
15295 return 0;
15296 }
15297 _ACEOF
15298 rm -f conftest.$ac_objext
15299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15300 (eval $ac_compile) 2>conftest.er1
15301 ac_status=$?
15302 grep -v '^ *+' conftest.er1 >conftest.err
15303 rm -f conftest.er1
15304 cat conftest.err >&5
15305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15306 (exit $ac_status); } &&
15307 { ac_try='test -z "$ac_c_werror_flag"
15308 || test ! -s conftest.err'
15309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15310 (eval $ac_try) 2>&5
15311 ac_status=$?
15312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15313 (exit $ac_status); }; } &&
15314 { ac_try='test -s conftest.$ac_objext'
15315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15316 (eval $ac_try) 2>&5
15317 ac_status=$?
15318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15319 (exit $ac_status); }; }; then
15320 ac_hi=-1 ac_mid=-1
15321 while :; do
15322 cat >conftest.$ac_ext <<_ACEOF
15323 /* confdefs.h. */
15324 _ACEOF
15325 cat confdefs.h >>conftest.$ac_ext
15326 cat >>conftest.$ac_ext <<_ACEOF
15327 /* end confdefs.h. */
15328 $ac_includes_default
15329 int
15330 main ()
15331 {
15332 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15333 test_array [0] = 0
15334
15335 ;
15336 return 0;
15337 }
15338 _ACEOF
15339 rm -f conftest.$ac_objext
15340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15341 (eval $ac_compile) 2>conftest.er1
15342 ac_status=$?
15343 grep -v '^ *+' conftest.er1 >conftest.err
15344 rm -f conftest.er1
15345 cat conftest.err >&5
15346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15347 (exit $ac_status); } &&
15348 { ac_try='test -z "$ac_c_werror_flag"
15349 || test ! -s conftest.err'
15350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15351 (eval $ac_try) 2>&5
15352 ac_status=$?
15353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15354 (exit $ac_status); }; } &&
15355 { ac_try='test -s conftest.$ac_objext'
15356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15357 (eval $ac_try) 2>&5
15358 ac_status=$?
15359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15360 (exit $ac_status); }; }; then
15361 ac_lo=$ac_mid; break
15362 else
15363 echo "$as_me: failed program was:" >&5
15364 sed 's/^/| /' conftest.$ac_ext >&5
15365
15366 ac_hi=`expr '(' $ac_mid ')' - 1`
15367 if test $ac_mid -le $ac_hi; then
15368 ac_lo= ac_hi=
15369 break
15370 fi
15371 ac_mid=`expr 2 '*' $ac_mid`
15372 fi
15373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15374 done
15375 else
15376 echo "$as_me: failed program was:" >&5
15377 sed 's/^/| /' conftest.$ac_ext >&5
15378
15379 ac_lo= ac_hi=
15380 fi
15381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15382 fi
15383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15384 # Binary search between lo and hi bounds.
15385 while test "x$ac_lo" != "x$ac_hi"; do
15386 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15387 cat >conftest.$ac_ext <<_ACEOF
15388 /* confdefs.h. */
15389 _ACEOF
15390 cat confdefs.h >>conftest.$ac_ext
15391 cat >>conftest.$ac_ext <<_ACEOF
15392 /* end confdefs.h. */
15393 $ac_includes_default
15394 int
15395 main ()
15396 {
15397 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15398 test_array [0] = 0
15399
15400 ;
15401 return 0;
15402 }
15403 _ACEOF
15404 rm -f conftest.$ac_objext
15405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15406 (eval $ac_compile) 2>conftest.er1
15407 ac_status=$?
15408 grep -v '^ *+' conftest.er1 >conftest.err
15409 rm -f conftest.er1
15410 cat conftest.err >&5
15411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15412 (exit $ac_status); } &&
15413 { ac_try='test -z "$ac_c_werror_flag"
15414 || test ! -s conftest.err'
15415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15416 (eval $ac_try) 2>&5
15417 ac_status=$?
15418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15419 (exit $ac_status); }; } &&
15420 { ac_try='test -s conftest.$ac_objext'
15421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15422 (eval $ac_try) 2>&5
15423 ac_status=$?
15424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15425 (exit $ac_status); }; }; then
15426 ac_hi=$ac_mid
15427 else
15428 echo "$as_me: failed program was:" >&5
15429 sed 's/^/| /' conftest.$ac_ext >&5
15430
15431 ac_lo=`expr '(' $ac_mid ')' + 1`
15432 fi
15433 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15434 done
15435 case $ac_lo in
15436 ?*) ac_cv_sizeof_int=$ac_lo;;
15437 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15438 See \`config.log' for more details." >&5
15439 echo "$as_me: error: cannot compute sizeof (int), 77
15440 See \`config.log' for more details." >&2;}
15441 { (exit 1); exit 1; }; } ;;
15442 esac
15443 else
15444 if test "$cross_compiling" = yes; then
15445 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15446 See \`config.log' for more details." >&5
15447 echo "$as_me: error: cannot run test program while cross compiling
15448 See \`config.log' for more details." >&2;}
15449 { (exit 1); exit 1; }; }
15450 else
15451 cat >conftest.$ac_ext <<_ACEOF
15452 /* confdefs.h. */
15453 _ACEOF
15454 cat confdefs.h >>conftest.$ac_ext
15455 cat >>conftest.$ac_ext <<_ACEOF
15456 /* end confdefs.h. */
15457 $ac_includes_default
15458 long longval () { return (long) (sizeof (int)); }
15459 unsigned long ulongval () { return (long) (sizeof (int)); }
15460 #include <stdio.h>
15461 #include <stdlib.h>
15462 int
15463 main ()
15464 {
15465
15466 FILE *f = fopen ("conftest.val", "w");
15467 if (! f)
15468 exit (1);
15469 if (((long) (sizeof (int))) < 0)
15470 {
15471 long i = longval ();
15472 if (i != ((long) (sizeof (int))))
15473 exit (1);
15474 fprintf (f, "%ld\n", i);
15475 }
15476 else
15477 {
15478 unsigned long i = ulongval ();
15479 if (i != ((long) (sizeof (int))))
15480 exit (1);
15481 fprintf (f, "%lu\n", i);
15482 }
15483 exit (ferror (f) || fclose (f) != 0);
15484
15485 ;
15486 return 0;
15487 }
15488 _ACEOF
15489 rm -f conftest$ac_exeext
15490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15491 (eval $ac_link) 2>&5
15492 ac_status=$?
15493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15494 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15496 (eval $ac_try) 2>&5
15497 ac_status=$?
15498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499 (exit $ac_status); }; }; then
15500 ac_cv_sizeof_int=`cat conftest.val`
15501 else
15502 echo "$as_me: program exited with status $ac_status" >&5
15503 echo "$as_me: failed program was:" >&5
15504 sed 's/^/| /' conftest.$ac_ext >&5
15505
15506 ( exit $ac_status )
15507 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15508 See \`config.log' for more details." >&5
15509 echo "$as_me: error: cannot compute sizeof (int), 77
15510 See \`config.log' for more details." >&2;}
15511 { (exit 1); exit 1; }; }
15512 fi
15513 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15514 fi
15515 fi
15516 rm -f conftest.val
15517 else
15518 ac_cv_sizeof_int=0
15519 fi
15520 fi
15521 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15522 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15523 cat >>confdefs.h <<_ACEOF
15524 #define SIZEOF_INT $ac_cv_sizeof_int
15525 _ACEOF
15526
15527
15528 echo "$as_me:$LINENO: checking for short" >&5
15529 echo $ECHO_N "checking for short... $ECHO_C" >&6
15530 if test "${ac_cv_type_short+set}" = set; then
15531 echo $ECHO_N "(cached) $ECHO_C" >&6
15532 else
15533 cat >conftest.$ac_ext <<_ACEOF
15534 /* confdefs.h. */
15535 _ACEOF
15536 cat confdefs.h >>conftest.$ac_ext
15537 cat >>conftest.$ac_ext <<_ACEOF
15538 /* end confdefs.h. */
15539 $ac_includes_default
15540 int
15541 main ()
15542 {
15543 if ((short *) 0)
15544 return 0;
15545 if (sizeof (short))
15546 return 0;
15547 ;
15548 return 0;
15549 }
15550 _ACEOF
15551 rm -f conftest.$ac_objext
15552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15553 (eval $ac_compile) 2>conftest.er1
15554 ac_status=$?
15555 grep -v '^ *+' conftest.er1 >conftest.err
15556 rm -f conftest.er1
15557 cat conftest.err >&5
15558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15559 (exit $ac_status); } &&
15560 { ac_try='test -z "$ac_c_werror_flag"
15561 || test ! -s conftest.err'
15562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15563 (eval $ac_try) 2>&5
15564 ac_status=$?
15565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15566 (exit $ac_status); }; } &&
15567 { ac_try='test -s conftest.$ac_objext'
15568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15569 (eval $ac_try) 2>&5
15570 ac_status=$?
15571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15572 (exit $ac_status); }; }; then
15573 ac_cv_type_short=yes
15574 else
15575 echo "$as_me: failed program was:" >&5
15576 sed 's/^/| /' conftest.$ac_ext >&5
15577
15578 ac_cv_type_short=no
15579 fi
15580 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15581 fi
15582 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
15583 echo "${ECHO_T}$ac_cv_type_short" >&6
15584
15585 echo "$as_me:$LINENO: checking size of short" >&5
15586 echo $ECHO_N "checking size of short... $ECHO_C" >&6
15587 if test "${ac_cv_sizeof_short+set}" = set; then
15588 echo $ECHO_N "(cached) $ECHO_C" >&6
15589 else
15590 if test "$ac_cv_type_short" = yes; then
15591 # The cast to unsigned long works around a bug in the HP C Compiler
15592 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15593 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15594 # This bug is HP SR number 8606223364.
15595 if test "$cross_compiling" = yes; then
15596 # Depending upon the size, compute the lo and hi bounds.
15597 cat >conftest.$ac_ext <<_ACEOF
15598 /* confdefs.h. */
15599 _ACEOF
15600 cat confdefs.h >>conftest.$ac_ext
15601 cat >>conftest.$ac_ext <<_ACEOF
15602 /* end confdefs.h. */
15603 $ac_includes_default
15604 int
15605 main ()
15606 {
15607 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
15608 test_array [0] = 0
15609
15610 ;
15611 return 0;
15612 }
15613 _ACEOF
15614 rm -f conftest.$ac_objext
15615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15616 (eval $ac_compile) 2>conftest.er1
15617 ac_status=$?
15618 grep -v '^ *+' conftest.er1 >conftest.err
15619 rm -f conftest.er1
15620 cat conftest.err >&5
15621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15622 (exit $ac_status); } &&
15623 { ac_try='test -z "$ac_c_werror_flag"
15624 || test ! -s conftest.err'
15625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15626 (eval $ac_try) 2>&5
15627 ac_status=$?
15628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15629 (exit $ac_status); }; } &&
15630 { ac_try='test -s conftest.$ac_objext'
15631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15632 (eval $ac_try) 2>&5
15633 ac_status=$?
15634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15635 (exit $ac_status); }; }; then
15636 ac_lo=0 ac_mid=0
15637 while :; do
15638 cat >conftest.$ac_ext <<_ACEOF
15639 /* confdefs.h. */
15640 _ACEOF
15641 cat confdefs.h >>conftest.$ac_ext
15642 cat >>conftest.$ac_ext <<_ACEOF
15643 /* end confdefs.h. */
15644 $ac_includes_default
15645 int
15646 main ()
15647 {
15648 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15649 test_array [0] = 0
15650
15651 ;
15652 return 0;
15653 }
15654 _ACEOF
15655 rm -f conftest.$ac_objext
15656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15657 (eval $ac_compile) 2>conftest.er1
15658 ac_status=$?
15659 grep -v '^ *+' conftest.er1 >conftest.err
15660 rm -f conftest.er1
15661 cat conftest.err >&5
15662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15663 (exit $ac_status); } &&
15664 { ac_try='test -z "$ac_c_werror_flag"
15665 || test ! -s conftest.err'
15666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15667 (eval $ac_try) 2>&5
15668 ac_status=$?
15669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15670 (exit $ac_status); }; } &&
15671 { ac_try='test -s conftest.$ac_objext'
15672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15673 (eval $ac_try) 2>&5
15674 ac_status=$?
15675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15676 (exit $ac_status); }; }; then
15677 ac_hi=$ac_mid; break
15678 else
15679 echo "$as_me: failed program was:" >&5
15680 sed 's/^/| /' conftest.$ac_ext >&5
15681
15682 ac_lo=`expr $ac_mid + 1`
15683 if test $ac_lo -le $ac_mid; then
15684 ac_lo= ac_hi=
15685 break
15686 fi
15687 ac_mid=`expr 2 '*' $ac_mid + 1`
15688 fi
15689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15690 done
15691 else
15692 echo "$as_me: failed program was:" >&5
15693 sed 's/^/| /' conftest.$ac_ext >&5
15694
15695 cat >conftest.$ac_ext <<_ACEOF
15696 /* confdefs.h. */
15697 _ACEOF
15698 cat confdefs.h >>conftest.$ac_ext
15699 cat >>conftest.$ac_ext <<_ACEOF
15700 /* end confdefs.h. */
15701 $ac_includes_default
15702 int
15703 main ()
15704 {
15705 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
15706 test_array [0] = 0
15707
15708 ;
15709 return 0;
15710 }
15711 _ACEOF
15712 rm -f conftest.$ac_objext
15713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15714 (eval $ac_compile) 2>conftest.er1
15715 ac_status=$?
15716 grep -v '^ *+' conftest.er1 >conftest.err
15717 rm -f conftest.er1
15718 cat conftest.err >&5
15719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15720 (exit $ac_status); } &&
15721 { ac_try='test -z "$ac_c_werror_flag"
15722 || test ! -s conftest.err'
15723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15724 (eval $ac_try) 2>&5
15725 ac_status=$?
15726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15727 (exit $ac_status); }; } &&
15728 { ac_try='test -s conftest.$ac_objext'
15729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15730 (eval $ac_try) 2>&5
15731 ac_status=$?
15732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15733 (exit $ac_status); }; }; then
15734 ac_hi=-1 ac_mid=-1
15735 while :; do
15736 cat >conftest.$ac_ext <<_ACEOF
15737 /* confdefs.h. */
15738 _ACEOF
15739 cat confdefs.h >>conftest.$ac_ext
15740 cat >>conftest.$ac_ext <<_ACEOF
15741 /* end confdefs.h. */
15742 $ac_includes_default
15743 int
15744 main ()
15745 {
15746 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
15747 test_array [0] = 0
15748
15749 ;
15750 return 0;
15751 }
15752 _ACEOF
15753 rm -f conftest.$ac_objext
15754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15755 (eval $ac_compile) 2>conftest.er1
15756 ac_status=$?
15757 grep -v '^ *+' conftest.er1 >conftest.err
15758 rm -f conftest.er1
15759 cat conftest.err >&5
15760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15761 (exit $ac_status); } &&
15762 { ac_try='test -z "$ac_c_werror_flag"
15763 || test ! -s conftest.err'
15764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15765 (eval $ac_try) 2>&5
15766 ac_status=$?
15767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15768 (exit $ac_status); }; } &&
15769 { ac_try='test -s conftest.$ac_objext'
15770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15771 (eval $ac_try) 2>&5
15772 ac_status=$?
15773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15774 (exit $ac_status); }; }; then
15775 ac_lo=$ac_mid; break
15776 else
15777 echo "$as_me: failed program was:" >&5
15778 sed 's/^/| /' conftest.$ac_ext >&5
15779
15780 ac_hi=`expr '(' $ac_mid ')' - 1`
15781 if test $ac_mid -le $ac_hi; then
15782 ac_lo= ac_hi=
15783 break
15784 fi
15785 ac_mid=`expr 2 '*' $ac_mid`
15786 fi
15787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15788 done
15789 else
15790 echo "$as_me: failed program was:" >&5
15791 sed 's/^/| /' conftest.$ac_ext >&5
15792
15793 ac_lo= ac_hi=
15794 fi
15795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15796 fi
15797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15798 # Binary search between lo and hi bounds.
15799 while test "x$ac_lo" != "x$ac_hi"; do
15800 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15801 cat >conftest.$ac_ext <<_ACEOF
15802 /* confdefs.h. */
15803 _ACEOF
15804 cat confdefs.h >>conftest.$ac_ext
15805 cat >>conftest.$ac_ext <<_ACEOF
15806 /* end confdefs.h. */
15807 $ac_includes_default
15808 int
15809 main ()
15810 {
15811 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15812 test_array [0] = 0
15813
15814 ;
15815 return 0;
15816 }
15817 _ACEOF
15818 rm -f conftest.$ac_objext
15819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15820 (eval $ac_compile) 2>conftest.er1
15821 ac_status=$?
15822 grep -v '^ *+' conftest.er1 >conftest.err
15823 rm -f conftest.er1
15824 cat conftest.err >&5
15825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15826 (exit $ac_status); } &&
15827 { ac_try='test -z "$ac_c_werror_flag"
15828 || test ! -s conftest.err'
15829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15830 (eval $ac_try) 2>&5
15831 ac_status=$?
15832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15833 (exit $ac_status); }; } &&
15834 { ac_try='test -s conftest.$ac_objext'
15835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15836 (eval $ac_try) 2>&5
15837 ac_status=$?
15838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15839 (exit $ac_status); }; }; then
15840 ac_hi=$ac_mid
15841 else
15842 echo "$as_me: failed program was:" >&5
15843 sed 's/^/| /' conftest.$ac_ext >&5
15844
15845 ac_lo=`expr '(' $ac_mid ')' + 1`
15846 fi
15847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15848 done
15849 case $ac_lo in
15850 ?*) ac_cv_sizeof_short=$ac_lo;;
15851 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15852 See \`config.log' for more details." >&5
15853 echo "$as_me: error: cannot compute sizeof (short), 77
15854 See \`config.log' for more details." >&2;}
15855 { (exit 1); exit 1; }; } ;;
15856 esac
15857 else
15858 if test "$cross_compiling" = yes; then
15859 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15860 See \`config.log' for more details." >&5
15861 echo "$as_me: error: cannot run test program while cross compiling
15862 See \`config.log' for more details." >&2;}
15863 { (exit 1); exit 1; }; }
15864 else
15865 cat >conftest.$ac_ext <<_ACEOF
15866 /* confdefs.h. */
15867 _ACEOF
15868 cat confdefs.h >>conftest.$ac_ext
15869 cat >>conftest.$ac_ext <<_ACEOF
15870 /* end confdefs.h. */
15871 $ac_includes_default
15872 long longval () { return (long) (sizeof (short)); }
15873 unsigned long ulongval () { return (long) (sizeof (short)); }
15874 #include <stdio.h>
15875 #include <stdlib.h>
15876 int
15877 main ()
15878 {
15879
15880 FILE *f = fopen ("conftest.val", "w");
15881 if (! f)
15882 exit (1);
15883 if (((long) (sizeof (short))) < 0)
15884 {
15885 long i = longval ();
15886 if (i != ((long) (sizeof (short))))
15887 exit (1);
15888 fprintf (f, "%ld\n", i);
15889 }
15890 else
15891 {
15892 unsigned long i = ulongval ();
15893 if (i != ((long) (sizeof (short))))
15894 exit (1);
15895 fprintf (f, "%lu\n", i);
15896 }
15897 exit (ferror (f) || fclose (f) != 0);
15898
15899 ;
15900 return 0;
15901 }
15902 _ACEOF
15903 rm -f conftest$ac_exeext
15904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15905 (eval $ac_link) 2>&5
15906 ac_status=$?
15907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15908 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15910 (eval $ac_try) 2>&5
15911 ac_status=$?
15912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15913 (exit $ac_status); }; }; then
15914 ac_cv_sizeof_short=`cat conftest.val`
15915 else
15916 echo "$as_me: program exited with status $ac_status" >&5
15917 echo "$as_me: failed program was:" >&5
15918 sed 's/^/| /' conftest.$ac_ext >&5
15919
15920 ( exit $ac_status )
15921 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15922 See \`config.log' for more details." >&5
15923 echo "$as_me: error: cannot compute sizeof (short), 77
15924 See \`config.log' for more details." >&2;}
15925 { (exit 1); exit 1; }; }
15926 fi
15927 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15928 fi
15929 fi
15930 rm -f conftest.val
15931 else
15932 ac_cv_sizeof_short=0
15933 fi
15934 fi
15935 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
15936 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
15937 cat >>confdefs.h <<_ACEOF
15938 #define SIZEOF_SHORT $ac_cv_sizeof_short
15939 _ACEOF
15940
15941
15942 echo "$as_me:$LINENO: checking for char" >&5
15943 echo $ECHO_N "checking for char... $ECHO_C" >&6
15944 if test "${ac_cv_type_char+set}" = set; then
15945 echo $ECHO_N "(cached) $ECHO_C" >&6
15946 else
15947 cat >conftest.$ac_ext <<_ACEOF
15948 /* confdefs.h. */
15949 _ACEOF
15950 cat confdefs.h >>conftest.$ac_ext
15951 cat >>conftest.$ac_ext <<_ACEOF
15952 /* end confdefs.h. */
15953 $ac_includes_default
15954 int
15955 main ()
15956 {
15957 if ((char *) 0)
15958 return 0;
15959 if (sizeof (char))
15960 return 0;
15961 ;
15962 return 0;
15963 }
15964 _ACEOF
15965 rm -f conftest.$ac_objext
15966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15967 (eval $ac_compile) 2>conftest.er1
15968 ac_status=$?
15969 grep -v '^ *+' conftest.er1 >conftest.err
15970 rm -f conftest.er1
15971 cat conftest.err >&5
15972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15973 (exit $ac_status); } &&
15974 { ac_try='test -z "$ac_c_werror_flag"
15975 || test ! -s conftest.err'
15976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15977 (eval $ac_try) 2>&5
15978 ac_status=$?
15979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15980 (exit $ac_status); }; } &&
15981 { ac_try='test -s conftest.$ac_objext'
15982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15983 (eval $ac_try) 2>&5
15984 ac_status=$?
15985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15986 (exit $ac_status); }; }; then
15987 ac_cv_type_char=yes
15988 else
15989 echo "$as_me: failed program was:" >&5
15990 sed 's/^/| /' conftest.$ac_ext >&5
15991
15992 ac_cv_type_char=no
15993 fi
15994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15995 fi
15996 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
15997 echo "${ECHO_T}$ac_cv_type_char" >&6
15998
15999 echo "$as_me:$LINENO: checking size of char" >&5
16000 echo $ECHO_N "checking size of char... $ECHO_C" >&6
16001 if test "${ac_cv_sizeof_char+set}" = set; then
16002 echo $ECHO_N "(cached) $ECHO_C" >&6
16003 else
16004 if test "$ac_cv_type_char" = yes; then
16005 # The cast to unsigned long works around a bug in the HP C Compiler
16006 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16007 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16008 # This bug is HP SR number 8606223364.
16009 if test "$cross_compiling" = yes; then
16010 # Depending upon the size, compute the lo and hi bounds.
16011 cat >conftest.$ac_ext <<_ACEOF
16012 /* confdefs.h. */
16013 _ACEOF
16014 cat confdefs.h >>conftest.$ac_ext
16015 cat >>conftest.$ac_ext <<_ACEOF
16016 /* end confdefs.h. */
16017 $ac_includes_default
16018 int
16019 main ()
16020 {
16021 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
16022 test_array [0] = 0
16023
16024 ;
16025 return 0;
16026 }
16027 _ACEOF
16028 rm -f conftest.$ac_objext
16029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16030 (eval $ac_compile) 2>conftest.er1
16031 ac_status=$?
16032 grep -v '^ *+' conftest.er1 >conftest.err
16033 rm -f conftest.er1
16034 cat conftest.err >&5
16035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16036 (exit $ac_status); } &&
16037 { ac_try='test -z "$ac_c_werror_flag"
16038 || test ! -s conftest.err'
16039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16040 (eval $ac_try) 2>&5
16041 ac_status=$?
16042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16043 (exit $ac_status); }; } &&
16044 { ac_try='test -s conftest.$ac_objext'
16045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16046 (eval $ac_try) 2>&5
16047 ac_status=$?
16048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16049 (exit $ac_status); }; }; then
16050 ac_lo=0 ac_mid=0
16051 while :; do
16052 cat >conftest.$ac_ext <<_ACEOF
16053 /* confdefs.h. */
16054 _ACEOF
16055 cat confdefs.h >>conftest.$ac_ext
16056 cat >>conftest.$ac_ext <<_ACEOF
16057 /* end confdefs.h. */
16058 $ac_includes_default
16059 int
16060 main ()
16061 {
16062 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16063 test_array [0] = 0
16064
16065 ;
16066 return 0;
16067 }
16068 _ACEOF
16069 rm -f conftest.$ac_objext
16070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16071 (eval $ac_compile) 2>conftest.er1
16072 ac_status=$?
16073 grep -v '^ *+' conftest.er1 >conftest.err
16074 rm -f conftest.er1
16075 cat conftest.err >&5
16076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16077 (exit $ac_status); } &&
16078 { ac_try='test -z "$ac_c_werror_flag"
16079 || test ! -s conftest.err'
16080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16081 (eval $ac_try) 2>&5
16082 ac_status=$?
16083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16084 (exit $ac_status); }; } &&
16085 { ac_try='test -s conftest.$ac_objext'
16086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16087 (eval $ac_try) 2>&5
16088 ac_status=$?
16089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16090 (exit $ac_status); }; }; then
16091 ac_hi=$ac_mid; break
16092 else
16093 echo "$as_me: failed program was:" >&5
16094 sed 's/^/| /' conftest.$ac_ext >&5
16095
16096 ac_lo=`expr $ac_mid + 1`
16097 if test $ac_lo -le $ac_mid; then
16098 ac_lo= ac_hi=
16099 break
16100 fi
16101 ac_mid=`expr 2 '*' $ac_mid + 1`
16102 fi
16103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16104 done
16105 else
16106 echo "$as_me: failed program was:" >&5
16107 sed 's/^/| /' conftest.$ac_ext >&5
16108
16109 cat >conftest.$ac_ext <<_ACEOF
16110 /* confdefs.h. */
16111 _ACEOF
16112 cat confdefs.h >>conftest.$ac_ext
16113 cat >>conftest.$ac_ext <<_ACEOF
16114 /* end confdefs.h. */
16115 $ac_includes_default
16116 int
16117 main ()
16118 {
16119 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
16120 test_array [0] = 0
16121
16122 ;
16123 return 0;
16124 }
16125 _ACEOF
16126 rm -f conftest.$ac_objext
16127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16128 (eval $ac_compile) 2>conftest.er1
16129 ac_status=$?
16130 grep -v '^ *+' conftest.er1 >conftest.err
16131 rm -f conftest.er1
16132 cat conftest.err >&5
16133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16134 (exit $ac_status); } &&
16135 { ac_try='test -z "$ac_c_werror_flag"
16136 || test ! -s conftest.err'
16137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16138 (eval $ac_try) 2>&5
16139 ac_status=$?
16140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16141 (exit $ac_status); }; } &&
16142 { ac_try='test -s conftest.$ac_objext'
16143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16144 (eval $ac_try) 2>&5
16145 ac_status=$?
16146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16147 (exit $ac_status); }; }; then
16148 ac_hi=-1 ac_mid=-1
16149 while :; do
16150 cat >conftest.$ac_ext <<_ACEOF
16151 /* confdefs.h. */
16152 _ACEOF
16153 cat confdefs.h >>conftest.$ac_ext
16154 cat >>conftest.$ac_ext <<_ACEOF
16155 /* end confdefs.h. */
16156 $ac_includes_default
16157 int
16158 main ()
16159 {
16160 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
16161 test_array [0] = 0
16162
16163 ;
16164 return 0;
16165 }
16166 _ACEOF
16167 rm -f conftest.$ac_objext
16168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16169 (eval $ac_compile) 2>conftest.er1
16170 ac_status=$?
16171 grep -v '^ *+' conftest.er1 >conftest.err
16172 rm -f conftest.er1
16173 cat conftest.err >&5
16174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16175 (exit $ac_status); } &&
16176 { ac_try='test -z "$ac_c_werror_flag"
16177 || test ! -s conftest.err'
16178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16179 (eval $ac_try) 2>&5
16180 ac_status=$?
16181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16182 (exit $ac_status); }; } &&
16183 { ac_try='test -s conftest.$ac_objext'
16184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16185 (eval $ac_try) 2>&5
16186 ac_status=$?
16187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16188 (exit $ac_status); }; }; then
16189 ac_lo=$ac_mid; break
16190 else
16191 echo "$as_me: failed program was:" >&5
16192 sed 's/^/| /' conftest.$ac_ext >&5
16193
16194 ac_hi=`expr '(' $ac_mid ')' - 1`
16195 if test $ac_mid -le $ac_hi; then
16196 ac_lo= ac_hi=
16197 break
16198 fi
16199 ac_mid=`expr 2 '*' $ac_mid`
16200 fi
16201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16202 done
16203 else
16204 echo "$as_me: failed program was:" >&5
16205 sed 's/^/| /' conftest.$ac_ext >&5
16206
16207 ac_lo= ac_hi=
16208 fi
16209 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16210 fi
16211 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16212 # Binary search between lo and hi bounds.
16213 while test "x$ac_lo" != "x$ac_hi"; do
16214 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16215 cat >conftest.$ac_ext <<_ACEOF
16216 /* confdefs.h. */
16217 _ACEOF
16218 cat confdefs.h >>conftest.$ac_ext
16219 cat >>conftest.$ac_ext <<_ACEOF
16220 /* end confdefs.h. */
16221 $ac_includes_default
16222 int
16223 main ()
16224 {
16225 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16226 test_array [0] = 0
16227
16228 ;
16229 return 0;
16230 }
16231 _ACEOF
16232 rm -f conftest.$ac_objext
16233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16234 (eval $ac_compile) 2>conftest.er1
16235 ac_status=$?
16236 grep -v '^ *+' conftest.er1 >conftest.err
16237 rm -f conftest.er1
16238 cat conftest.err >&5
16239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16240 (exit $ac_status); } &&
16241 { ac_try='test -z "$ac_c_werror_flag"
16242 || test ! -s conftest.err'
16243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16244 (eval $ac_try) 2>&5
16245 ac_status=$?
16246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16247 (exit $ac_status); }; } &&
16248 { ac_try='test -s conftest.$ac_objext'
16249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16250 (eval $ac_try) 2>&5
16251 ac_status=$?
16252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16253 (exit $ac_status); }; }; then
16254 ac_hi=$ac_mid
16255 else
16256 echo "$as_me: failed program was:" >&5
16257 sed 's/^/| /' conftest.$ac_ext >&5
16258
16259 ac_lo=`expr '(' $ac_mid ')' + 1`
16260 fi
16261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16262 done
16263 case $ac_lo in
16264 ?*) ac_cv_sizeof_char=$ac_lo;;
16265 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16266 See \`config.log' for more details." >&5
16267 echo "$as_me: error: cannot compute sizeof (char), 77
16268 See \`config.log' for more details." >&2;}
16269 { (exit 1); exit 1; }; } ;;
16270 esac
16271 else
16272 if test "$cross_compiling" = yes; then
16273 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16274 See \`config.log' for more details." >&5
16275 echo "$as_me: error: cannot run test program while cross compiling
16276 See \`config.log' for more details." >&2;}
16277 { (exit 1); exit 1; }; }
16278 else
16279 cat >conftest.$ac_ext <<_ACEOF
16280 /* confdefs.h. */
16281 _ACEOF
16282 cat confdefs.h >>conftest.$ac_ext
16283 cat >>conftest.$ac_ext <<_ACEOF
16284 /* end confdefs.h. */
16285 $ac_includes_default
16286 long longval () { return (long) (sizeof (char)); }
16287 unsigned long ulongval () { return (long) (sizeof (char)); }
16288 #include <stdio.h>
16289 #include <stdlib.h>
16290 int
16291 main ()
16292 {
16293
16294 FILE *f = fopen ("conftest.val", "w");
16295 if (! f)
16296 exit (1);
16297 if (((long) (sizeof (char))) < 0)
16298 {
16299 long i = longval ();
16300 if (i != ((long) (sizeof (char))))
16301 exit (1);
16302 fprintf (f, "%ld\n", i);
16303 }
16304 else
16305 {
16306 unsigned long i = ulongval ();
16307 if (i != ((long) (sizeof (char))))
16308 exit (1);
16309 fprintf (f, "%lu\n", i);
16310 }
16311 exit (ferror (f) || fclose (f) != 0);
16312
16313 ;
16314 return 0;
16315 }
16316 _ACEOF
16317 rm -f conftest$ac_exeext
16318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16319 (eval $ac_link) 2>&5
16320 ac_status=$?
16321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16322 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16324 (eval $ac_try) 2>&5
16325 ac_status=$?
16326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16327 (exit $ac_status); }; }; then
16328 ac_cv_sizeof_char=`cat conftest.val`
16329 else
16330 echo "$as_me: program exited with status $ac_status" >&5
16331 echo "$as_me: failed program was:" >&5
16332 sed 's/^/| /' conftest.$ac_ext >&5
16333
16334 ( exit $ac_status )
16335 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16336 See \`config.log' for more details." >&5
16337 echo "$as_me: error: cannot compute sizeof (char), 77
16338 See \`config.log' for more details." >&2;}
16339 { (exit 1); exit 1; }; }
16340 fi
16341 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16342 fi
16343 fi
16344 rm -f conftest.val
16345 else
16346 ac_cv_sizeof_char=0
16347 fi
16348 fi
16349 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
16350 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
16351 cat >>confdefs.h <<_ACEOF
16352 #define SIZEOF_CHAR $ac_cv_sizeof_char
16353 _ACEOF
16354
16355
16356
16357 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
16358 echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
16359 case "$ac_cv_sizeof_char" in
16360 1) acx_cv_type_int8_t=char ;;
16361 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
16362 echo "$as_me: error: no 8-bit type" >&2;}
16363 { (exit please report a bug); exit please report a bug; }; }
16364 esac
16365 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
16366 echo "${ECHO_T}$acx_cv_type_int8_t" >&6
16367
16368 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
16369 echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
16370 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
16371 2:*) acx_cv_type_int16_t=int ;;
16372 *:2) acx_cv_type_int16_t=short ;;
16373 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
16374 echo "$as_me: error: no 16-bit type" >&2;}
16375 { (exit please report a bug); exit please report a bug; }; }
16376 esac
16377 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
16378 echo "${ECHO_T}$acx_cv_type_int16_t" >&6
16379
16380 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
16381 echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
16382 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16383 4:*) acx_cv_type_int32_t=int ;;
16384 *:4) acx_cv_type_int32_t=long ;;
16385 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
16386 echo "$as_me: error: no 32-bit type" >&2;}
16387 { (exit please report a bug); exit please report a bug; }; }
16388 esac
16389 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
16390 echo "${ECHO_T}$acx_cv_type_int32_t" >&6
16391 fi
16392
16393 # These tests are here to make the output prettier
16394
16395 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
16396 case "$ac_cv_sizeof_long" in
16397 8) acx_cv_type_int64_t=long ;;
16398 esac
16399 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
16400 echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
16401 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
16402 echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
16403 fi
16404
16405 # Now we can use the above types
16406
16407 if test "$ac_cv_type_uintptr_t" != yes; then
16408 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
16409 echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
16410 case $ac_cv_sizeof_void_p in
16411 2) acx_cv_type_intptr_t=int16_t ;;
16412 4) acx_cv_type_intptr_t=int32_t ;;
16413 8) acx_cv_type_intptr_t=int64_t ;;
16414 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
16415 echo "$as_me: error: no equivalent for intptr_t" >&2;}
16416 { (exit please report a bug); exit please report a bug; }; }
16417 esac
16418 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
16419 echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
16420 fi
16421
16422 # ----------------- done all checks, emit header -------------
16423 ac_config_commands="$ac_config_commands gstdint.h"
16424
16425
16426
16427
16428 # Check to see if -pthread or -lpthread is needed. Prefer the former.
16429 # In case the pthread.h system header is not found, this test will fail.
16430 XPCFLAGS=""
16431 CFLAGS="$CFLAGS -pthread"
16432 cat >conftest.$ac_ext <<_ACEOF
16433 /* confdefs.h. */
16434 _ACEOF
16435 cat confdefs.h >>conftest.$ac_ext
16436 cat >>conftest.$ac_ext <<_ACEOF
16437 /* end confdefs.h. */
16438 #include <pthread.h>
16439 void *g(void *d) { return NULL; }
16440 int
16441 main ()
16442 {
16443 pthread_t t; pthread_create(&t,NULL,g,NULL);
16444 ;
16445 return 0;
16446 }
16447 _ACEOF
16448 rm -f conftest.$ac_objext conftest$ac_exeext
16449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16450 (eval $ac_link) 2>conftest.er1
16451 ac_status=$?
16452 grep -v '^ *+' conftest.er1 >conftest.err
16453 rm -f conftest.er1
16454 cat conftest.err >&5
16455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16456 (exit $ac_status); } &&
16457 { ac_try='test -z "$ac_c_werror_flag"
16458 || test ! -s conftest.err'
16459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16460 (eval $ac_try) 2>&5
16461 ac_status=$?
16462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16463 (exit $ac_status); }; } &&
16464 { ac_try='test -s conftest$ac_exeext'
16465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16466 (eval $ac_try) 2>&5
16467 ac_status=$?
16468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16469 (exit $ac_status); }; }; then
16470 XPCFLAGS=" -Wc,-pthread"
16471 else
16472 echo "$as_me: failed program was:" >&5
16473 sed 's/^/| /' conftest.$ac_ext >&5
16474
16475 CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
16476 cat >conftest.$ac_ext <<_ACEOF
16477 /* confdefs.h. */
16478 _ACEOF
16479 cat confdefs.h >>conftest.$ac_ext
16480 cat >>conftest.$ac_ext <<_ACEOF
16481 /* end confdefs.h. */
16482 #include <pthread.h>
16483 void *g(void *d) { return NULL; }
16484 int
16485 main ()
16486 {
16487 pthread_t t; pthread_create(&t,NULL,g,NULL);
16488 ;
16489 return 0;
16490 }
16491 _ACEOF
16492 rm -f conftest.$ac_objext conftest$ac_exeext
16493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16494 (eval $ac_link) 2>conftest.er1
16495 ac_status=$?
16496 grep -v '^ *+' conftest.er1 >conftest.err
16497 rm -f conftest.er1
16498 cat conftest.err >&5
16499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16500 (exit $ac_status); } &&
16501 { ac_try='test -z "$ac_c_werror_flag"
16502 || test ! -s conftest.err'
16503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16504 (eval $ac_try) 2>&5
16505 ac_status=$?
16506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16507 (exit $ac_status); }; } &&
16508 { ac_try='test -s conftest$ac_exeext'
16509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16510 (eval $ac_try) 2>&5
16511 ac_status=$?
16512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16513 (exit $ac_status); }; }; then
16514 :
16515 else
16516 echo "$as_me: failed program was:" >&5
16517 sed 's/^/| /' conftest.$ac_ext >&5
16518
16519 { { echo "$as_me:$LINENO: error: Pthreads are required to build libgomp" >&5
16520 echo "$as_me: error: Pthreads are required to build libgomp" >&2;}
16521 { (exit 1); exit 1; }; }
16522 fi
16523 rm -f conftest.err conftest.$ac_objext \
16524 conftest$ac_exeext conftest.$ac_ext
16525 fi
16526 rm -f conftest.err conftest.$ac_objext \
16527 conftest$ac_exeext conftest.$ac_ext
16528
16529 # Check for functions needed.
16530
16531
16532 for ac_func in getloadavg clock_gettime
16533 do
16534 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16535 echo "$as_me:$LINENO: checking for $ac_func" >&5
16536 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16537 if eval "test \"\${$as_ac_var+set}\" = set"; then
16538 echo $ECHO_N "(cached) $ECHO_C" >&6
16539 else
16540 cat >conftest.$ac_ext <<_ACEOF
16541 /* confdefs.h. */
16542 _ACEOF
16543 cat confdefs.h >>conftest.$ac_ext
16544 cat >>conftest.$ac_ext <<_ACEOF
16545 /* end confdefs.h. */
16546 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16547 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16548 #define $ac_func innocuous_$ac_func
16549
16550 /* System header to define __stub macros and hopefully few prototypes,
16551 which can conflict with char $ac_func (); below.
16552 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16553 <limits.h> exists even on freestanding compilers. */
16554
16555 #ifdef __STDC__
16556 # include <limits.h>
16557 #else
16558 # include <assert.h>
16559 #endif
16560
16561 #undef $ac_func
16562
16563 /* Override any gcc2 internal prototype to avoid an error. */
16564 #ifdef __cplusplus
16565 extern "C"
16566 {
16567 #endif
16568 /* We use char because int might match the return type of a gcc2
16569 builtin and then its argument prototype would still apply. */
16570 char $ac_func ();
16571 /* The GNU C library defines this for functions which it implements
16572 to always fail with ENOSYS. Some functions are actually named
16573 something starting with __ and the normal name is an alias. */
16574 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16575 choke me
16576 #else
16577 char (*f) () = $ac_func;
16578 #endif
16579 #ifdef __cplusplus
16580 }
16581 #endif
16582
16583 int
16584 main ()
16585 {
16586 return f != $ac_func;
16587 ;
16588 return 0;
16589 }
16590 _ACEOF
16591 rm -f conftest.$ac_objext conftest$ac_exeext
16592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16593 (eval $ac_link) 2>conftest.er1
16594 ac_status=$?
16595 grep -v '^ *+' conftest.er1 >conftest.err
16596 rm -f conftest.er1
16597 cat conftest.err >&5
16598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16599 (exit $ac_status); } &&
16600 { ac_try='test -z "$ac_c_werror_flag"
16601 || test ! -s conftest.err'
16602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16603 (eval $ac_try) 2>&5
16604 ac_status=$?
16605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16606 (exit $ac_status); }; } &&
16607 { ac_try='test -s conftest$ac_exeext'
16608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16609 (eval $ac_try) 2>&5
16610 ac_status=$?
16611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16612 (exit $ac_status); }; }; then
16613 eval "$as_ac_var=yes"
16614 else
16615 echo "$as_me: failed program was:" >&5
16616 sed 's/^/| /' conftest.$ac_ext >&5
16617
16618 eval "$as_ac_var=no"
16619 fi
16620 rm -f conftest.err conftest.$ac_objext \
16621 conftest$ac_exeext conftest.$ac_ext
16622 fi
16623 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16624 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16625 if test `eval echo '${'$as_ac_var'}'` = yes; then
16626 cat >>confdefs.h <<_ACEOF
16627 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16628 _ACEOF
16629
16630 fi
16631 done
16632
16633
16634 # Check for broken semaphore implementation on darwin.
16635 # sem_init returns: sem_init error: Function not implemented.
16636 case "$host" in
16637 *-darwin*)
16638
16639 cat >>confdefs.h <<\_ACEOF
16640 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
16641 _ACEOF
16642
16643 ;;
16644 esac
16645
16646 # Check whether --enable-linux-futex or --disable-linux-futex was given.
16647 if test "${enable_linux_futex+set}" = set; then
16648 enableval="$enable_linux_futex"
16649
16650 case "$enableval" in
16651 yes|no|default) ;;
16652 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable linux-futex" >&5
16653 echo "$as_me: error: Unknown argument to enable/disable linux-futex" >&2;}
16654 { (exit 1); exit 1; }; } ;;
16655 esac
16656
16657 else
16658 enable_linux_futex=default
16659 fi;
16660
16661 case "$target" in
16662 *-linux*)
16663 case "$enable_linux_futex" in
16664 default)
16665 # If headers don't have gettid/futex syscalls definition, then
16666 # default to no, otherwise there will be compile time failures.
16667 # Otherwise, default to yes. If we don't detect we are
16668 # compiled/linked against NPTL and not cross-compiling, check
16669 # if programs are run by default against NPTL and if not, issue
16670 # a warning.
16671 enable_linux_futex=no
16672 cat >conftest.$ac_ext <<_ACEOF
16673 /* confdefs.h. */
16674 _ACEOF
16675 cat confdefs.h >>conftest.$ac_ext
16676 cat >>conftest.$ac_ext <<_ACEOF
16677 /* end confdefs.h. */
16678 #include <sys/syscall.h>
16679 int lk;
16680 int
16681 main ()
16682 {
16683 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
16684 ;
16685 return 0;
16686 }
16687 _ACEOF
16688 rm -f conftest.$ac_objext conftest$ac_exeext
16689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16690 (eval $ac_link) 2>conftest.er1
16691 ac_status=$?
16692 grep -v '^ *+' conftest.er1 >conftest.err
16693 rm -f conftest.er1
16694 cat conftest.err >&5
16695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16696 (exit $ac_status); } &&
16697 { ac_try='test -z "$ac_c_werror_flag"
16698 || test ! -s conftest.err'
16699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16700 (eval $ac_try) 2>&5
16701 ac_status=$?
16702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16703 (exit $ac_status); }; } &&
16704 { ac_try='test -s conftest$ac_exeext'
16705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16706 (eval $ac_try) 2>&5
16707 ac_status=$?
16708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16709 (exit $ac_status); }; }; then
16710 save_LIBS="$LIBS"
16711 LIBS="-lpthread $LIBS"
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 :; else
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 LIBS="$save_LIBS"
16772 else
16773 echo "$as_me: failed program was:" >&5
16774 sed 's/^/| /' conftest.$ac_ext >&5
16775
16776 fi
16777 rm -f conftest.err conftest.$ac_objext \
16778 conftest$ac_exeext conftest.$ac_ext
16779 ;;
16780 yes)
16781 cat >conftest.$ac_ext <<_ACEOF
16782 /* confdefs.h. */
16783 _ACEOF
16784 cat confdefs.h >>conftest.$ac_ext
16785 cat >>conftest.$ac_ext <<_ACEOF
16786 /* end confdefs.h. */
16787 #include <sys/syscall.h>
16788 int lk;
16789 int
16790 main ()
16791 {
16792 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
16793 ;
16794 return 0;
16795 }
16796 _ACEOF
16797 rm -f conftest.$ac_objext conftest$ac_exeext
16798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16799 (eval $ac_link) 2>conftest.er1
16800 ac_status=$?
16801 grep -v '^ *+' conftest.er1 >conftest.err
16802 rm -f conftest.er1
16803 cat conftest.err >&5
16804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16805 (exit $ac_status); } &&
16806 { ac_try='test -z "$ac_c_werror_flag"
16807 || test ! -s conftest.err'
16808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16809 (eval $ac_try) 2>&5
16810 ac_status=$?
16811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16812 (exit $ac_status); }; } &&
16813 { ac_try='test -s conftest$ac_exeext'
16814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16815 (eval $ac_try) 2>&5
16816 ac_status=$?
16817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16818 (exit $ac_status); }; }; then
16819 :
16820 else
16821 echo "$as_me: failed program was:" >&5
16822 sed 's/^/| /' conftest.$ac_ext >&5
16823
16824 { { echo "$as_me:$LINENO: error: SYS_gettid and SYS_futex required for --enable-linux-futex" >&5
16825 echo "$as_me: error: SYS_gettid and SYS_futex required for --enable-linux-futex" >&2;}
16826 { (exit 1); exit 1; }; }
16827 fi
16828 rm -f conftest.err conftest.$ac_objext \
16829 conftest$ac_exeext conftest.$ac_ext
16830 ;;
16831 esac
16832 ;;
16833 *)
16834 enable_linux_futex=no
16835 ;;
16836 esac
16837 if test x$enable_linux_futex = xyes; then
16838 :
16839 fi
16840
16841
16842 # Check for pthread_{,attr_}[sg]etaffinity_np.
16843 cat >conftest.$ac_ext <<_ACEOF
16844 /* confdefs.h. */
16845 _ACEOF
16846 cat confdefs.h >>conftest.$ac_ext
16847 cat >>conftest.$ac_ext <<_ACEOF
16848 /* end confdefs.h. */
16849 #define _GNU_SOURCE
16850 #include <pthread.h>
16851 int
16852 main ()
16853 {
16854 cpu_set_t cpuset;
16855 pthread_attr_t attr;
16856 pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
16857 if (CPU_ISSET (0, &cpuset))
16858 CPU_SET (1, &cpuset);
16859 else
16860 CPU_ZERO (&cpuset);
16861 pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
16862 pthread_attr_init (&attr);
16863 pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
16864 pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
16865 ;
16866 return 0;
16867 }
16868 _ACEOF
16869 rm -f conftest.$ac_objext conftest$ac_exeext
16870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16871 (eval $ac_link) 2>conftest.er1
16872 ac_status=$?
16873 grep -v '^ *+' conftest.er1 >conftest.err
16874 rm -f conftest.er1
16875 cat conftest.err >&5
16876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16877 (exit $ac_status); } &&
16878 { ac_try='test -z "$ac_c_werror_flag"
16879 || test ! -s conftest.err'
16880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16881 (eval $ac_try) 2>&5
16882 ac_status=$?
16883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16884 (exit $ac_status); }; } &&
16885 { ac_try='test -s conftest$ac_exeext'
16886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16887 (eval $ac_try) 2>&5
16888 ac_status=$?
16889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16890 (exit $ac_status); }; }; then
16891
16892 cat >>confdefs.h <<\_ACEOF
16893 #define HAVE_PTHREAD_AFFINITY_NP 1
16894 _ACEOF
16895
16896 else
16897 echo "$as_me: failed program was:" >&5
16898 sed 's/^/| /' conftest.$ac_ext >&5
16899
16900 fi
16901 rm -f conftest.err conftest.$ac_objext \
16902 conftest$ac_exeext conftest.$ac_ext
16903
16904 # At least for glibc, clock_gettime is in librt. But don't pull that
16905 # in if it still doesn't give us the function we want.
16906 if test $ac_cv_func_clock_gettime = no; then
16907 echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
16908 echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
16909 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
16910 echo $ECHO_N "(cached) $ECHO_C" >&6
16911 else
16912 ac_check_lib_save_LIBS=$LIBS
16913 LIBS="-lrt $LIBS"
16914 cat >conftest.$ac_ext <<_ACEOF
16915 /* confdefs.h. */
16916 _ACEOF
16917 cat confdefs.h >>conftest.$ac_ext
16918 cat >>conftest.$ac_ext <<_ACEOF
16919 /* end confdefs.h. */
16920
16921 /* Override any gcc2 internal prototype to avoid an error. */
16922 #ifdef __cplusplus
16923 extern "C"
16924 #endif
16925 /* We use char because int might match the return type of a gcc2
16926 builtin and then its argument prototype would still apply. */
16927 char clock_gettime ();
16928 int
16929 main ()
16930 {
16931 clock_gettime ();
16932 ;
16933 return 0;
16934 }
16935 _ACEOF
16936 rm -f conftest.$ac_objext conftest$ac_exeext
16937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16938 (eval $ac_link) 2>conftest.er1
16939 ac_status=$?
16940 grep -v '^ *+' conftest.er1 >conftest.err
16941 rm -f conftest.er1
16942 cat conftest.err >&5
16943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16944 (exit $ac_status); } &&
16945 { ac_try='test -z "$ac_c_werror_flag"
16946 || test ! -s conftest.err'
16947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16948 (eval $ac_try) 2>&5
16949 ac_status=$?
16950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16951 (exit $ac_status); }; } &&
16952 { ac_try='test -s conftest$ac_exeext'
16953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16954 (eval $ac_try) 2>&5
16955 ac_status=$?
16956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16957 (exit $ac_status); }; }; then
16958 ac_cv_lib_rt_clock_gettime=yes
16959 else
16960 echo "$as_me: failed program was:" >&5
16961 sed 's/^/| /' conftest.$ac_ext >&5
16962
16963 ac_cv_lib_rt_clock_gettime=no
16964 fi
16965 rm -f conftest.err conftest.$ac_objext \
16966 conftest$ac_exeext conftest.$ac_ext
16967 LIBS=$ac_check_lib_save_LIBS
16968 fi
16969 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
16970 echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
16971 if test $ac_cv_lib_rt_clock_gettime = yes; then
16972 LIBS="-lrt $LIBS"
16973
16974 cat >>confdefs.h <<\_ACEOF
16975 #define HAVE_CLOCK_GETTIME 1
16976 _ACEOF
16977
16978 fi
16979
16980 fi
16981
16982 # See if we support thread-local storage.
16983
16984 # Check whether --enable-tls or --disable-tls was given.
16985 if test "${enable_tls+set}" = set; then
16986 enableval="$enable_tls"
16987
16988 case "$enableval" in
16989 yes|no) ;;
16990 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
16991 echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
16992 { (exit 1); exit 1; }; } ;;
16993 esac
16994
16995 else
16996 enable_tls=yes
16997 fi;
16998
16999 echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
17000 echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
17001 if test "${gcc_cv_have_tls+set}" = set; then
17002 echo $ECHO_N "(cached) $ECHO_C" >&6
17003 else
17004
17005 if test "$cross_compiling" = yes; then
17006 cat >conftest.$ac_ext <<_ACEOF
17007 __thread int a; int b; int main() { return a = b; }
17008 _ACEOF
17009 rm -f conftest.$ac_objext conftest$ac_exeext
17010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17011 (eval $ac_link) 2>conftest.er1
17012 ac_status=$?
17013 grep -v '^ *+' conftest.er1 >conftest.err
17014 rm -f conftest.er1
17015 cat conftest.err >&5
17016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17017 (exit $ac_status); } &&
17018 { ac_try='test -z "$ac_c_werror_flag"
17019 || test ! -s conftest.err'
17020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17021 (eval $ac_try) 2>&5
17022 ac_status=$?
17023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024 (exit $ac_status); }; } &&
17025 { ac_try='test -s conftest$ac_exeext'
17026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17027 (eval $ac_try) 2>&5
17028 ac_status=$?
17029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17030 (exit $ac_status); }; }; then
17031 gcc_cv_have_tls=yes
17032 else
17033 echo "$as_me: failed program was:" >&5
17034 sed 's/^/| /' conftest.$ac_ext >&5
17035
17036 gcc_cv_have_tls=no
17037 fi
17038 rm -f conftest.err conftest.$ac_objext \
17039 conftest$ac_exeext conftest.$ac_ext
17040
17041
17042 else
17043 cat >conftest.$ac_ext <<_ACEOF
17044 __thread int a; int b; int main() { return a = b; }
17045 _ACEOF
17046 rm -f conftest$ac_exeext
17047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17048 (eval $ac_link) 2>&5
17049 ac_status=$?
17050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17051 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17053 (eval $ac_try) 2>&5
17054 ac_status=$?
17055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17056 (exit $ac_status); }; }; then
17057 chktls_save_LDFLAGS="$LDFLAGS"
17058 LDFLAGS="-static $LDFLAGS"
17059 cat >conftest.$ac_ext <<_ACEOF
17060 int main() { return 0; }
17061 _ACEOF
17062 rm -f conftest.$ac_objext conftest$ac_exeext
17063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17064 (eval $ac_link) 2>conftest.er1
17065 ac_status=$?
17066 grep -v '^ *+' conftest.er1 >conftest.err
17067 rm -f conftest.er1
17068 cat conftest.err >&5
17069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17070 (exit $ac_status); } &&
17071 { ac_try='test -z "$ac_c_werror_flag"
17072 || test ! -s conftest.err'
17073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17074 (eval $ac_try) 2>&5
17075 ac_status=$?
17076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17077 (exit $ac_status); }; } &&
17078 { ac_try='test -s conftest$ac_exeext'
17079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17080 (eval $ac_try) 2>&5
17081 ac_status=$?
17082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17083 (exit $ac_status); }; }; then
17084 if test "$cross_compiling" = yes; then
17085 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17086 See \`config.log' for more details." >&5
17087 echo "$as_me: error: cannot run test program while cross compiling
17088 See \`config.log' for more details." >&2;}
17089 { (exit 1); exit 1; }; }
17090 else
17091 cat >conftest.$ac_ext <<_ACEOF
17092 __thread int a; int b; int main() { return a = b; }
17093 _ACEOF
17094 rm -f conftest$ac_exeext
17095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17096 (eval $ac_link) 2>&5
17097 ac_status=$?
17098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17099 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17101 (eval $ac_try) 2>&5
17102 ac_status=$?
17103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104 (exit $ac_status); }; }; then
17105 gcc_cv_have_tls=yes
17106 else
17107 echo "$as_me: program exited with status $ac_status" >&5
17108 echo "$as_me: failed program was:" >&5
17109 sed 's/^/| /' conftest.$ac_ext >&5
17110
17111 ( exit $ac_status )
17112 gcc_cv_have_tls=no
17113 fi
17114 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17115 fi
17116 else
17117 echo "$as_me: failed program was:" >&5
17118 sed 's/^/| /' conftest.$ac_ext >&5
17119
17120 gcc_cv_have_tls=yes
17121 fi
17122 rm -f conftest.err conftest.$ac_objext \
17123 conftest$ac_exeext conftest.$ac_ext
17124 LDFLAGS="$chktls_save_LDFLAGS"
17125 if test $gcc_cv_have_tls = yes; then
17126 chktls_save_CFLAGS="$CFLAGS"
17127 thread_CFLAGS=failed
17128 for flag in '' '-pthread' '-lpthread'; do
17129 CFLAGS="$flag $chktls_save_CFLAGS"
17130 cat >conftest.$ac_ext <<_ACEOF
17131 /* confdefs.h. */
17132 _ACEOF
17133 cat confdefs.h >>conftest.$ac_ext
17134 cat >>conftest.$ac_ext <<_ACEOF
17135 /* end confdefs.h. */
17136 #include <pthread.h>
17137 void *g(void *d) { return NULL; }
17138 int
17139 main ()
17140 {
17141 pthread_t t; pthread_create(&t,NULL,g,NULL);
17142 ;
17143 return 0;
17144 }
17145 _ACEOF
17146 rm -f conftest.$ac_objext conftest$ac_exeext
17147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17148 (eval $ac_link) 2>conftest.er1
17149 ac_status=$?
17150 grep -v '^ *+' conftest.er1 >conftest.err
17151 rm -f conftest.er1
17152 cat conftest.err >&5
17153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17154 (exit $ac_status); } &&
17155 { ac_try='test -z "$ac_c_werror_flag"
17156 || test ! -s conftest.err'
17157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17158 (eval $ac_try) 2>&5
17159 ac_status=$?
17160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17161 (exit $ac_status); }; } &&
17162 { ac_try='test -s conftest$ac_exeext'
17163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17164 (eval $ac_try) 2>&5
17165 ac_status=$?
17166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17167 (exit $ac_status); }; }; then
17168 thread_CFLAGS="$flag"
17169 else
17170 echo "$as_me: failed program was:" >&5
17171 sed 's/^/| /' conftest.$ac_ext >&5
17172
17173 fi
17174 rm -f conftest.err conftest.$ac_objext \
17175 conftest$ac_exeext conftest.$ac_ext
17176 if test "X$thread_CFLAGS" != Xfailed; then
17177 break
17178 fi
17179 done
17180 CFLAGS="$chktls_save_CFLAGS"
17181 if test "X$thread_CFLAGS" != Xfailed; then
17182 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
17183 if test "$cross_compiling" = yes; then
17184 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17185 See \`config.log' for more details." >&5
17186 echo "$as_me: error: cannot run test program while cross compiling
17187 See \`config.log' for more details." >&2;}
17188 { (exit 1); exit 1; }; }
17189 else
17190 cat >conftest.$ac_ext <<_ACEOF
17191 /* confdefs.h. */
17192 _ACEOF
17193 cat confdefs.h >>conftest.$ac_ext
17194 cat >>conftest.$ac_ext <<_ACEOF
17195 /* end confdefs.h. */
17196 #include <pthread.h>
17197 __thread int a;
17198 static int *a_in_other_thread;
17199 static void *
17200 thread_func (void *arg)
17201 {
17202 a_in_other_thread = &a;
17203 return (void *)0;
17204 }
17205 int
17206 main ()
17207 {
17208 pthread_t thread;
17209 void *thread_retval;
17210 int *a_in_main_thread;
17211 if (pthread_create (&thread, (pthread_attr_t *)0,
17212 thread_func, (void *)0))
17213 return 0;
17214 a_in_main_thread = &a;
17215 if (pthread_join (thread, &thread_retval))
17216 return 0;
17217 return (a_in_other_thread == a_in_main_thread);
17218 ;
17219 return 0;
17220 }
17221 _ACEOF
17222 rm -f conftest$ac_exeext
17223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17224 (eval $ac_link) 2>&5
17225 ac_status=$?
17226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17227 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17229 (eval $ac_try) 2>&5
17230 ac_status=$?
17231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17232 (exit $ac_status); }; }; then
17233 gcc_cv_have_tls=yes
17234 else
17235 echo "$as_me: program exited with status $ac_status" >&5
17236 echo "$as_me: failed program was:" >&5
17237 sed 's/^/| /' conftest.$ac_ext >&5
17238
17239 ( exit $ac_status )
17240 gcc_cv_have_tls=no
17241 fi
17242 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17243 fi
17244 CFLAGS="$chktls_save_CFLAGS"
17245 fi
17246 fi
17247 else
17248 echo "$as_me: program exited with status $ac_status" >&5
17249 echo "$as_me: failed program was:" >&5
17250 sed 's/^/| /' conftest.$ac_ext >&5
17251
17252 ( exit $ac_status )
17253 gcc_cv_have_tls=no
17254 fi
17255 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17256 fi
17257 fi
17258 echo "$as_me:$LINENO: result: $gcc_cv_have_tls" >&5
17259 echo "${ECHO_T}$gcc_cv_have_tls" >&6
17260 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
17261
17262 cat >>confdefs.h <<\_ACEOF
17263 #define HAVE_TLS 1
17264 _ACEOF
17265
17266 fi
17267
17268 # See what sort of export controls are availible.
17269
17270 echo "$as_me:$LINENO: checking whether the target supports hidden visibility" >&5
17271 echo $ECHO_N "checking whether the target supports hidden visibility... $ECHO_C" >&6
17272 if test "${have_attribute_visibility+set}" = set; then
17273 echo $ECHO_N "(cached) $ECHO_C" >&6
17274 else
17275
17276 save_CFLAGS="$CFLAGS"
17277 CFLAGS="$CFLAGS -Werror"
17278 cat >conftest.$ac_ext <<_ACEOF
17279 /* confdefs.h. */
17280 _ACEOF
17281 cat confdefs.h >>conftest.$ac_ext
17282 cat >>conftest.$ac_ext <<_ACEOF
17283 /* end confdefs.h. */
17284 void __attribute__((visibility("hidden"))) foo(void) { }
17285 int
17286 main ()
17287 {
17288
17289 ;
17290 return 0;
17291 }
17292 _ACEOF
17293 rm -f conftest.$ac_objext
17294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17295 (eval $ac_compile) 2>conftest.er1
17296 ac_status=$?
17297 grep -v '^ *+' conftest.er1 >conftest.err
17298 rm -f conftest.er1
17299 cat conftest.err >&5
17300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17301 (exit $ac_status); } &&
17302 { ac_try='test -z "$ac_c_werror_flag"
17303 || test ! -s conftest.err'
17304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17305 (eval $ac_try) 2>&5
17306 ac_status=$?
17307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17308 (exit $ac_status); }; } &&
17309 { ac_try='test -s conftest.$ac_objext'
17310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17311 (eval $ac_try) 2>&5
17312 ac_status=$?
17313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17314 (exit $ac_status); }; }; then
17315 have_attribute_visibility=yes
17316 else
17317 echo "$as_me: failed program was:" >&5
17318 sed 's/^/| /' conftest.$ac_ext >&5
17319
17320 have_attribute_visibility=no
17321 fi
17322 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17323 CFLAGS="$save_CFLAGS"
17324 fi
17325 echo "$as_me:$LINENO: result: $have_attribute_visibility" >&5
17326 echo "${ECHO_T}$have_attribute_visibility" >&6
17327 if test $have_attribute_visibility = yes; then
17328
17329 cat >>confdefs.h <<\_ACEOF
17330 #define HAVE_ATTRIBUTE_VISIBILITY 1
17331 _ACEOF
17332
17333 fi
17334
17335 echo "$as_me:$LINENO: checking whether the target supports dllexport" >&5
17336 echo $ECHO_N "checking whether the target supports dllexport... $ECHO_C" >&6
17337 if test "${have_attribute_dllexport+set}" = set; then
17338 echo $ECHO_N "(cached) $ECHO_C" >&6
17339 else
17340
17341 save_CFLAGS="$CFLAGS"
17342 CFLAGS="$CFLAGS -Werror"
17343 cat >conftest.$ac_ext <<_ACEOF
17344 /* confdefs.h. */
17345 _ACEOF
17346 cat confdefs.h >>conftest.$ac_ext
17347 cat >>conftest.$ac_ext <<_ACEOF
17348 /* end confdefs.h. */
17349 void __attribute__((dllexport)) foo(void) { }
17350 int
17351 main ()
17352 {
17353
17354 ;
17355 return 0;
17356 }
17357 _ACEOF
17358 rm -f conftest.$ac_objext
17359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17360 (eval $ac_compile) 2>conftest.er1
17361 ac_status=$?
17362 grep -v '^ *+' conftest.er1 >conftest.err
17363 rm -f conftest.er1
17364 cat conftest.err >&5
17365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17366 (exit $ac_status); } &&
17367 { ac_try='test -z "$ac_c_werror_flag"
17368 || test ! -s conftest.err'
17369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17370 (eval $ac_try) 2>&5
17371 ac_status=$?
17372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17373 (exit $ac_status); }; } &&
17374 { ac_try='test -s conftest.$ac_objext'
17375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17376 (eval $ac_try) 2>&5
17377 ac_status=$?
17378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17379 (exit $ac_status); }; }; then
17380 have_attribute_dllexport=yes
17381 else
17382 echo "$as_me: failed program was:" >&5
17383 sed 's/^/| /' conftest.$ac_ext >&5
17384
17385 have_attribute_dllexport=no
17386 fi
17387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17388 CFLAGS="$save_CFLAGS"
17389 fi
17390 echo "$as_me:$LINENO: result: $have_attribute_dllexport" >&5
17391 echo "${ECHO_T}$have_attribute_dllexport" >&6
17392 if test $have_attribute_dllexport = yes; then
17393
17394 cat >>confdefs.h <<\_ACEOF
17395 #define HAVE_ATTRIBUTE_DLLEXPORT 1
17396 _ACEOF
17397
17398 fi
17399
17400 echo "$as_me:$LINENO: checking whether the target supports symbol aliases" >&5
17401 echo $ECHO_N "checking whether the target supports symbol aliases... $ECHO_C" >&6
17402 if test "${have_attribute_alias+set}" = set; then
17403 echo $ECHO_N "(cached) $ECHO_C" >&6
17404 else
17405
17406 cat >conftest.$ac_ext <<_ACEOF
17407 /* confdefs.h. */
17408 _ACEOF
17409 cat confdefs.h >>conftest.$ac_ext
17410 cat >>conftest.$ac_ext <<_ACEOF
17411 /* end confdefs.h. */
17412
17413 void foo(void) { }
17414 extern void bar(void) __attribute__((alias("foo")));
17415 int
17416 main ()
17417 {
17418 bar();
17419 ;
17420 return 0;
17421 }
17422 _ACEOF
17423 rm -f conftest.$ac_objext conftest$ac_exeext
17424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17425 (eval $ac_link) 2>conftest.er1
17426 ac_status=$?
17427 grep -v '^ *+' conftest.er1 >conftest.err
17428 rm -f conftest.er1
17429 cat conftest.err >&5
17430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17431 (exit $ac_status); } &&
17432 { ac_try='test -z "$ac_c_werror_flag"
17433 || test ! -s conftest.err'
17434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17435 (eval $ac_try) 2>&5
17436 ac_status=$?
17437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17438 (exit $ac_status); }; } &&
17439 { ac_try='test -s conftest$ac_exeext'
17440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17441 (eval $ac_try) 2>&5
17442 ac_status=$?
17443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17444 (exit $ac_status); }; }; then
17445 have_attribute_alias=yes
17446 else
17447 echo "$as_me: failed program was:" >&5
17448 sed 's/^/| /' conftest.$ac_ext >&5
17449
17450 have_attribute_alias=no
17451 fi
17452 rm -f conftest.err conftest.$ac_objext \
17453 conftest$ac_exeext conftest.$ac_ext
17454 fi
17455 echo "$as_me:$LINENO: result: $have_attribute_alias" >&5
17456 echo "${ECHO_T}$have_attribute_alias" >&6
17457 if test $have_attribute_alias = yes; then
17458
17459 cat >>confdefs.h <<\_ACEOF
17460 #define HAVE_ATTRIBUTE_ALIAS 1
17461 _ACEOF
17462
17463 fi
17464
17465
17466 # Check whether --with-gnu-ld or --without-gnu-ld was given.
17467 if test "${with_gnu_ld+set}" = set; then
17468 withval="$with_gnu_ld"
17469 test "$withval" = no || with_gnu_ld=yes
17470 else
17471 with_gnu_ld=no
17472 fi;
17473 ac_prog=ld
17474 if test "$GCC" = yes; then
17475 # Check if gcc -print-prog-name=ld gives a path.
17476 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
17477 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
17478 case $host in
17479 *-*-mingw*)
17480 # gcc leaves a trailing carriage return which upsets mingw
17481 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17482 *)
17483 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17484 esac
17485 case $ac_prog in
17486 # Accept absolute paths.
17487 [\\/]* | ?:[\\/]*)
17488 re_direlt='/[^/][^/]*/\.\./'
17489 # Canonicalize the pathname of ld
17490 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17491 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17492 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17493 done
17494 test -z "$LD" && LD="$ac_prog"
17495 ;;
17496 "")
17497 # If it fails, then pretend we aren't using GCC.
17498 ac_prog=ld
17499 ;;
17500 *)
17501 # If it is relative, then search for the first ld in PATH.
17502 with_gnu_ld=unknown
17503 ;;
17504 esac
17505 elif test "$with_gnu_ld" = yes; then
17506 echo "$as_me:$LINENO: checking for GNU ld" >&5
17507 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
17508 else
17509 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
17510 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
17511 fi
17512 if test "${lt_cv_path_LD+set}" = set; then
17513 echo $ECHO_N "(cached) $ECHO_C" >&6
17514 else
17515 if test -z "$LD"; then
17516 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17517 for ac_dir in $PATH; do
17518 IFS="$lt_save_ifs"
17519 test -z "$ac_dir" && ac_dir=.
17520 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17521 lt_cv_path_LD="$ac_dir/$ac_prog"
17522 # Check to see if the program is GNU ld. I'd rather use --version,
17523 # but apparently some variants of GNU ld only accept -v.
17524 # Break only if it was the GNU/non-GNU ld that we prefer.
17525 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17526 *GNU* | *'with BFD'*)
17527 test "$with_gnu_ld" != no && break
17528 ;;
17529 *)
17530 test "$with_gnu_ld" != yes && break
17531 ;;
17532 esac
17533 fi
17534 done
17535 IFS="$lt_save_ifs"
17536 else
17537 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17538 fi
17539 fi
17540
17541 LD="$lt_cv_path_LD"
17542 if test -n "$LD"; then
17543 echo "$as_me:$LINENO: result: $LD" >&5
17544 echo "${ECHO_T}$LD" >&6
17545 else
17546 echo "$as_me:$LINENO: result: no" >&5
17547 echo "${ECHO_T}no" >&6
17548 fi
17549 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
17550 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
17551 { (exit 1); exit 1; }; }
17552 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
17553 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
17554 if test "${lt_cv_prog_gnu_ld+set}" = set; then
17555 echo $ECHO_N "(cached) $ECHO_C" >&6
17556 else
17557 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17558 case `$LD -v 2>&1 </dev/null` in
17559 *GNU* | *'with BFD'*)
17560 lt_cv_prog_gnu_ld=yes
17561 ;;
17562 *)
17563 lt_cv_prog_gnu_ld=no
17564 ;;
17565 esac
17566 fi
17567 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
17568 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
17569 with_gnu_ld=$lt_cv_prog_gnu_ld
17570
17571
17572
17573
17574
17575
17576
17577 # If we're not using GNU ld, then there's no point in even trying these
17578 # tests. Check for that first. We should have already tested for gld
17579 # by now (in libtool), but require it now just to be safe...
17580 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
17581 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
17582
17583
17584
17585 # The name set by libtool depends on the version of libtool. Shame on us
17586 # for depending on an impl detail, but c'est la vie. Older versions used
17587 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
17588 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
17589 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
17590 # set (hence we're using an older libtool), then set it.
17591 if test x${with_gnu_ld+set} != xset; then
17592 if test x${ac_cv_prog_gnu_ld+set} != xset; then
17593 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
17594 with_gnu_ld=no
17595 else
17596 with_gnu_ld=$ac_cv_prog_gnu_ld
17597 fi
17598 fi
17599
17600 # Start by getting the version number. I think the libtool test already
17601 # does some of this, but throws away the result.
17602
17603 ldver=`$LD --version 2>/dev/null | head -1 | \
17604 sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
17605
17606 libgomp_gnu_ld_version=`echo $ldver | \
17607 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
17608
17609 # Set --gc-sections.
17610 if test "$with_gnu_ld" = "notbroken"; then
17611 # GNU ld it is! Joy and bunny rabbits!
17612
17613 # All these tests are for C++; save the language and the compiler flags.
17614 # Need to do this so that g++ won't try to link in libstdc++
17615 ac_test_CFLAGS="${CFLAGS+set}"
17616 ac_save_CFLAGS="$CFLAGS"
17617 CFLAGS='-x c++ -Wl,--gc-sections'
17618
17619 # Check for -Wl,--gc-sections
17620 # XXX This test is broken at the moment, as symbols required for linking
17621 # are now in libsupc++ (not built yet). In addition, this test has
17622 # cored on solaris in the past. In addition, --gc-sections doesn't
17623 # really work at the moment (keeps on discarding used sections, first
17624 # .eh_frame and now some of the glibc sections for iconv).
17625 # Bzzzzt. Thanks for playing, maybe next time.
17626 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
17627 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
17628 if test "$cross_compiling" = yes; then
17629 ac_sectionLDflags=yes
17630 else
17631 cat >conftest.$ac_ext <<_ACEOF
17632 /* confdefs.h. */
17633 _ACEOF
17634 cat confdefs.h >>conftest.$ac_ext
17635 cat >>conftest.$ac_ext <<_ACEOF
17636 /* end confdefs.h. */
17637
17638 int main(void)
17639 {
17640 try { throw 1; }
17641 catch (...) { };
17642 return 0;
17643 }
17644
17645 _ACEOF
17646 rm -f conftest$ac_exeext
17647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17648 (eval $ac_link) 2>&5
17649 ac_status=$?
17650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17651 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17653 (eval $ac_try) 2>&5
17654 ac_status=$?
17655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17656 (exit $ac_status); }; }; then
17657 ac_sectionLDflags=yes
17658 else
17659 echo "$as_me: program exited with status $ac_status" >&5
17660 echo "$as_me: failed program was:" >&5
17661 sed 's/^/| /' conftest.$ac_ext >&5
17662
17663 ( exit $ac_status )
17664 ac_sectionLDflags=no
17665 fi
17666 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17667 fi
17668 if test "$ac_test_CFLAGS" = set; then
17669 CFLAGS="$ac_save_CFLAGS"
17670 else
17671 # this is the suspicious part
17672 CFLAGS=''
17673 fi
17674 if test "$ac_sectionLDflags" = "yes"; then
17675 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
17676 fi
17677 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
17678 echo "${ECHO_T}$ac_sectionLDflags" >&6
17679 fi
17680
17681 # Set linker optimization flags.
17682 if test x"$with_gnu_ld" = x"yes"; then
17683 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
17684 fi
17685
17686
17687
17688
17689
17690
17691 # Check whether --enable-symvers or --disable-symvers was given.
17692 if test "${enable_symvers+set}" = set; then
17693 enableval="$enable_symvers"
17694
17695 case "$enableval" in
17696 yes|no|gnu) ;;
17697 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable symvers" >&5
17698 echo "$as_me: error: Unknown argument to enable/disable symvers" >&2;}
17699 { (exit 1); exit 1; }; } ;;
17700 esac
17701
17702 else
17703 enable_symvers=yes
17704 fi;
17705
17706
17707 # If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
17708 # don't know enough about $LD to do tricks...
17709
17710 # FIXME The following test is too strict, in theory.
17711 if test $enable_shared = no ||
17712 test "x$LD" = x ||
17713 test x$libgomp_gnu_ld_version = x; then
17714 enable_symvers=no
17715 fi
17716
17717 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
17718 if test $enable_symvers != no; then
17719 echo "$as_me:$LINENO: checking for shared libgcc" >&5
17720 echo $ECHO_N "checking for shared libgcc... $ECHO_C" >&6
17721 ac_save_CFLAGS="$CFLAGS"
17722 CFLAGS=' -lgcc_s'
17723 cat >conftest.$ac_ext <<_ACEOF
17724 /* confdefs.h. */
17725 _ACEOF
17726 cat confdefs.h >>conftest.$ac_ext
17727 cat >>conftest.$ac_ext <<_ACEOF
17728 /* end confdefs.h. */
17729
17730 int
17731 main ()
17732 {
17733 return 0;
17734 ;
17735 return 0;
17736 }
17737 _ACEOF
17738 rm -f conftest.$ac_objext conftest$ac_exeext
17739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17740 (eval $ac_link) 2>conftest.er1
17741 ac_status=$?
17742 grep -v '^ *+' conftest.er1 >conftest.err
17743 rm -f conftest.er1
17744 cat conftest.err >&5
17745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17746 (exit $ac_status); } &&
17747 { ac_try='test -z "$ac_c_werror_flag"
17748 || test ! -s conftest.err'
17749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17750 (eval $ac_try) 2>&5
17751 ac_status=$?
17752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17753 (exit $ac_status); }; } &&
17754 { ac_try='test -s conftest$ac_exeext'
17755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17756 (eval $ac_try) 2>&5
17757 ac_status=$?
17758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17759 (exit $ac_status); }; }; then
17760 libgomp_shared_libgcc=yes
17761 else
17762 echo "$as_me: failed program was:" >&5
17763 sed 's/^/| /' conftest.$ac_ext >&5
17764
17765 libgomp_shared_libgcc=no
17766 fi
17767 rm -f conftest.err conftest.$ac_objext \
17768 conftest$ac_exeext conftest.$ac_ext
17769 CFLAGS="$ac_save_CFLAGS"
17770 if test $libgomp_shared_libgcc = no; then
17771 cat > conftest.c <<EOF
17772 int main (void) { return 0; }
17773 EOF
17774 libgomp_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
17775 -shared -shared-libgcc -o conftest.so \
17776 conftest.c -v 2>&1 >/dev/null \
17777 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
17778 rm -f conftest.c conftest.so
17779 if test x${libgomp_libgcc_s_suffix+set} = xset; then
17780 CFLAGS=" -lgcc_s$libgomp_libgcc_s_suffix"
17781 cat >conftest.$ac_ext <<_ACEOF
17782 /* confdefs.h. */
17783 _ACEOF
17784 cat confdefs.h >>conftest.$ac_ext
17785 cat >>conftest.$ac_ext <<_ACEOF
17786 /* end confdefs.h. */
17787
17788 int
17789 main ()
17790 {
17791 return 0;
17792 ;
17793 return 0;
17794 }
17795 _ACEOF
17796 rm -f conftest.$ac_objext conftest$ac_exeext
17797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17798 (eval $ac_link) 2>conftest.er1
17799 ac_status=$?
17800 grep -v '^ *+' conftest.er1 >conftest.err
17801 rm -f conftest.er1
17802 cat conftest.err >&5
17803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17804 (exit $ac_status); } &&
17805 { ac_try='test -z "$ac_c_werror_flag"
17806 || test ! -s conftest.err'
17807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17808 (eval $ac_try) 2>&5
17809 ac_status=$?
17810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17811 (exit $ac_status); }; } &&
17812 { ac_try='test -s conftest$ac_exeext'
17813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17814 (eval $ac_try) 2>&5
17815 ac_status=$?
17816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17817 (exit $ac_status); }; }; then
17818 libgomp_shared_libgcc=yes
17819 else
17820 echo "$as_me: failed program was:" >&5
17821 sed 's/^/| /' conftest.$ac_ext >&5
17822
17823 fi
17824 rm -f conftest.err conftest.$ac_objext \
17825 conftest$ac_exeext conftest.$ac_ext
17826 CFLAGS="$ac_save_CFLAGS"
17827 fi
17828 fi
17829 echo "$as_me:$LINENO: result: $libgomp_shared_libgcc" >&5
17830 echo "${ECHO_T}$libgomp_shared_libgcc" >&6
17831 fi
17832
17833 # For GNU ld, we need at least this version. The format is described in
17834 # LIBGOMP_CHECK_LINKER_FEATURES above.
17835 libgomp_min_gnu_ld_version=21400
17836 # XXXXXXXXXXX libgomp_gnu_ld_version=21390
17837
17838 # Check to see if unspecified "yes" value can win, given results above.
17839 # Change "yes" into either "no" or a style name.
17840 if test $enable_symvers = yes; then
17841 if test $with_gnu_ld = yes &&
17842 test $libgomp_shared_libgcc = yes;
17843 then
17844 if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
17845 enable_symvers=gnu
17846 else
17847 # The right tools, the right setup, but too old. Fallbacks?
17848 { echo "$as_me:$LINENO: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
17849 echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
17850 { echo "$as_me:$LINENO: WARNING: === full symbol versioning support in this release of GCC." >&5
17851 echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
17852 { echo "$as_me:$LINENO: WARNING: === You would need to upgrade your binutils to version" >&5
17853 echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
17854 { echo "$as_me:$LINENO: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
17855 echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
17856 if test $libgomp_gnu_ld_version -ge 21200 ; then
17857 # Globbing fix is present, proper block support is not.
17858 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
17859 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17860 enable_symvers=no
17861 else
17862 # 2.11 or older.
17863 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
17864 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17865 enable_symvers=no
17866 fi
17867 fi
17868 else
17869 # just fail for now
17870 { echo "$as_me:$LINENO: WARNING: === You have requested some kind of symbol versioning, but" >&5
17871 echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
17872 { echo "$as_me:$LINENO: WARNING: === either you are not using a supported linker, or you are" >&5
17873 echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
17874 { echo "$as_me:$LINENO: WARNING: === not building a shared libgcc_s (which is required)." >&5
17875 echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
17876 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
17877 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17878 enable_symvers=no
17879 fi
17880 fi
17881
17882
17883
17884 if test $enable_symvers != no; then
17885 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE=
17886 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='#'
17887 else
17888 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#'
17889 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE=
17890 fi
17891
17892 { echo "$as_me:$LINENO: versioning on shared library symbols is $enable_symvers" >&5
17893 echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
17894
17895
17896 # Get target configury.
17897 . ${srcdir}/configure.tgt
17898 CFLAGS="$save_CFLAGS $XCFLAGS"
17899
17900 # Check for __sync_val_compare_and_swap, but only after the target has
17901 # had a chance to set XCFLAGS.
17902
17903 echo "$as_me:$LINENO: checking whether the target supports __sync_*_compare_and_swap" >&5
17904 echo $ECHO_N "checking whether the target supports __sync_*_compare_and_swap... $ECHO_C" >&6
17905 if test "${have_sync_builtins+set}" = set; then
17906 echo $ECHO_N "(cached) $ECHO_C" >&6
17907 else
17908
17909 cat >conftest.$ac_ext <<_ACEOF
17910 /* confdefs.h. */
17911 _ACEOF
17912 cat confdefs.h >>conftest.$ac_ext
17913 cat >>conftest.$ac_ext <<_ACEOF
17914 /* end confdefs.h. */
17915
17916 int
17917 main ()
17918 {
17919 int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
17920 ;
17921 return 0;
17922 }
17923 _ACEOF
17924 rm -f conftest.$ac_objext conftest$ac_exeext
17925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17926 (eval $ac_link) 2>conftest.er1
17927 ac_status=$?
17928 grep -v '^ *+' conftest.er1 >conftest.err
17929 rm -f conftest.er1
17930 cat conftest.err >&5
17931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17932 (exit $ac_status); } &&
17933 { ac_try='test -z "$ac_c_werror_flag"
17934 || test ! -s conftest.err'
17935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17936 (eval $ac_try) 2>&5
17937 ac_status=$?
17938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17939 (exit $ac_status); }; } &&
17940 { ac_try='test -s conftest$ac_exeext'
17941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17942 (eval $ac_try) 2>&5
17943 ac_status=$?
17944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17945 (exit $ac_status); }; }; then
17946 have_sync_builtins=yes
17947 else
17948 echo "$as_me: failed program was:" >&5
17949 sed 's/^/| /' conftest.$ac_ext >&5
17950
17951 have_sync_builtins=no
17952 fi
17953 rm -f conftest.err conftest.$ac_objext \
17954 conftest$ac_exeext conftest.$ac_ext
17955 fi
17956 echo "$as_me:$LINENO: result: $have_sync_builtins" >&5
17957 echo "${ECHO_T}$have_sync_builtins" >&6
17958 if test $have_sync_builtins = yes; then
17959
17960 cat >>confdefs.h <<\_ACEOF
17961 #define HAVE_SYNC_BUILTINS 1
17962 _ACEOF
17963
17964 fi
17965
17966 XCFLAGS="$XCFLAGS$XPCFLAGS"
17967
17968
17969
17970
17971
17972 # Cleanup and exit.
17973 CFLAGS="$save_CFLAGS"
17974 cat >confcache <<\_ACEOF
17975 # This file is a shell script that caches the results of configure
17976 # tests run on this system so they can be shared between configure
17977 # scripts and configure runs, see configure's option --config-cache.
17978 # It is not useful on other systems. If it contains results you don't
17979 # want to keep, you may remove or edit it.
17980 #
17981 # config.status only pays attention to the cache file if you give it
17982 # the --recheck option to rerun configure.
17983 #
17984 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17985 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17986 # following values.
17987
17988 _ACEOF
17989
17990 # The following way of writing the cache mishandles newlines in values,
17991 # but we know of no workaround that is simple, portable, and efficient.
17992 # So, don't put newlines in cache variables' values.
17993 # Ultrix sh set writes to stderr and can't be redirected directly,
17994 # and sets the high bit in the cache file unless we assign to the vars.
17995 {
17996 (set) 2>&1 |
17997 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17998 *ac_space=\ *)
17999 # `set' does not quote correctly, so add quotes (double-quote
18000 # substitution turns \\\\ into \\, and sed turns \\ into \).
18001 sed -n \
18002 "s/'/'\\\\''/g;
18003 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18004 ;;
18005 *)
18006 # `set' quotes correctly as required by POSIX, so do not add quotes.
18007 sed -n \
18008 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18009 ;;
18010 esac;
18011 } |
18012 sed '
18013 t clear
18014 : clear
18015 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18016 t end
18017 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18018 : end' >>confcache
18019 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18020 if test -w $cache_file; then
18021 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18022 cat confcache >$cache_file
18023 else
18024 echo "not updating unwritable cache $cache_file"
18025 fi
18026 fi
18027 rm -f confcache
18028
18029 if test ${multilib} = yes; then
18030 multilib_arg="--enable-multilib"
18031 else
18032 multilib_arg=
18033 fi
18034
18035 # Set up the set of libraries that we need to link against for libgomp.
18036 # Note that the GOMP_SELF_SPEC in gcc.c will force -pthread for -fopenmp,
18037 # which will force linkage against -lpthread (or equivalent for the system).
18038 # That's not 100% ideal, but about the best we can do easily.
18039 if test $enable_shared = yes; then
18040 link_gomp="-lgomp %{static: $LIBS}"
18041 else
18042 link_gomp="-lgomp $LIBS"
18043 fi
18044
18045
18046
18047
18048 if test "$ac_cv_fc_compiler_gnu" = yes; then
18049 USE_FORTRAN_TRUE=
18050 USE_FORTRAN_FALSE='#'
18051 else
18052 USE_FORTRAN_TRUE='#'
18053 USE_FORTRAN_FALSE=
18054 fi
18055
18056
18057 # ??? 2006-01-24: Paulo committed to asking autoconf folk to document
18058 # and export AC_COMPUTE_INT. If that happens, then we'll need to remove
18059 # the underscore here and update the PREREQ. If it doesn't, then we'll
18060 # need to copy this macro to our acinclude.m4.
18061 save_CFLAGS="$CFLAGS"
18062 for i in $config_path; do
18063 if test -f $srcdir/config/$i/omp-lock.h; then
18064 CFLAGS="$CFLAGS -include $srcdir/config/$i/omp-lock.h"
18065 break
18066 fi
18067 done
18068
18069 if test "$cross_compiling" = yes; then
18070 # Depending upon the size, compute the lo and hi bounds.
18071 cat >conftest.$ac_ext <<_ACEOF
18072 /* confdefs.h. */
18073 _ACEOF
18074 cat confdefs.h >>conftest.$ac_ext
18075 cat >>conftest.$ac_ext <<_ACEOF
18076 /* end confdefs.h. */
18077
18078 int
18079 main ()
18080 {
18081 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) >= 0)];
18082 test_array [0] = 0
18083
18084 ;
18085 return 0;
18086 }
18087 _ACEOF
18088 rm -f conftest.$ac_objext
18089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18090 (eval $ac_compile) 2>conftest.er1
18091 ac_status=$?
18092 grep -v '^ *+' conftest.er1 >conftest.err
18093 rm -f conftest.er1
18094 cat conftest.err >&5
18095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18096 (exit $ac_status); } &&
18097 { ac_try='test -z "$ac_c_werror_flag"
18098 || test ! -s conftest.err'
18099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18100 (eval $ac_try) 2>&5
18101 ac_status=$?
18102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18103 (exit $ac_status); }; } &&
18104 { ac_try='test -s conftest.$ac_objext'
18105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18106 (eval $ac_try) 2>&5
18107 ac_status=$?
18108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18109 (exit $ac_status); }; }; then
18110 ac_lo=0 ac_mid=0
18111 while :; do
18112 cat >conftest.$ac_ext <<_ACEOF
18113 /* confdefs.h. */
18114 _ACEOF
18115 cat confdefs.h >>conftest.$ac_ext
18116 cat >>conftest.$ac_ext <<_ACEOF
18117 /* end confdefs.h. */
18118
18119 int
18120 main ()
18121 {
18122 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) <= $ac_mid)];
18123 test_array [0] = 0
18124
18125 ;
18126 return 0;
18127 }
18128 _ACEOF
18129 rm -f conftest.$ac_objext
18130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18131 (eval $ac_compile) 2>conftest.er1
18132 ac_status=$?
18133 grep -v '^ *+' conftest.er1 >conftest.err
18134 rm -f conftest.er1
18135 cat conftest.err >&5
18136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18137 (exit $ac_status); } &&
18138 { ac_try='test -z "$ac_c_werror_flag"
18139 || test ! -s conftest.err'
18140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18141 (eval $ac_try) 2>&5
18142 ac_status=$?
18143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18144 (exit $ac_status); }; } &&
18145 { ac_try='test -s conftest.$ac_objext'
18146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18147 (eval $ac_try) 2>&5
18148 ac_status=$?
18149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18150 (exit $ac_status); }; }; then
18151 ac_hi=$ac_mid; break
18152 else
18153 echo "$as_me: failed program was:" >&5
18154 sed 's/^/| /' conftest.$ac_ext >&5
18155
18156 ac_lo=`expr $ac_mid + 1`
18157 if test $ac_lo -le $ac_mid; then
18158 ac_lo= ac_hi=
18159 break
18160 fi
18161 ac_mid=`expr 2 '*' $ac_mid + 1`
18162 fi
18163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18164 done
18165 else
18166 echo "$as_me: failed program was:" >&5
18167 sed 's/^/| /' conftest.$ac_ext >&5
18168
18169 cat >conftest.$ac_ext <<_ACEOF
18170 /* confdefs.h. */
18171 _ACEOF
18172 cat confdefs.h >>conftest.$ac_ext
18173 cat >>conftest.$ac_ext <<_ACEOF
18174 /* end confdefs.h. */
18175
18176 int
18177 main ()
18178 {
18179 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) < 0)];
18180 test_array [0] = 0
18181
18182 ;
18183 return 0;
18184 }
18185 _ACEOF
18186 rm -f conftest.$ac_objext
18187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18188 (eval $ac_compile) 2>conftest.er1
18189 ac_status=$?
18190 grep -v '^ *+' conftest.er1 >conftest.err
18191 rm -f conftest.er1
18192 cat conftest.err >&5
18193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18194 (exit $ac_status); } &&
18195 { ac_try='test -z "$ac_c_werror_flag"
18196 || test ! -s conftest.err'
18197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18198 (eval $ac_try) 2>&5
18199 ac_status=$?
18200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18201 (exit $ac_status); }; } &&
18202 { ac_try='test -s conftest.$ac_objext'
18203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18204 (eval $ac_try) 2>&5
18205 ac_status=$?
18206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18207 (exit $ac_status); }; }; then
18208 ac_hi=-1 ac_mid=-1
18209 while :; do
18210 cat >conftest.$ac_ext <<_ACEOF
18211 /* confdefs.h. */
18212 _ACEOF
18213 cat confdefs.h >>conftest.$ac_ext
18214 cat >>conftest.$ac_ext <<_ACEOF
18215 /* end confdefs.h. */
18216
18217 int
18218 main ()
18219 {
18220 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) >= $ac_mid)];
18221 test_array [0] = 0
18222
18223 ;
18224 return 0;
18225 }
18226 _ACEOF
18227 rm -f conftest.$ac_objext
18228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18229 (eval $ac_compile) 2>conftest.er1
18230 ac_status=$?
18231 grep -v '^ *+' conftest.er1 >conftest.err
18232 rm -f conftest.er1
18233 cat conftest.err >&5
18234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18235 (exit $ac_status); } &&
18236 { ac_try='test -z "$ac_c_werror_flag"
18237 || test ! -s conftest.err'
18238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18239 (eval $ac_try) 2>&5
18240 ac_status=$?
18241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18242 (exit $ac_status); }; } &&
18243 { ac_try='test -s conftest.$ac_objext'
18244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18245 (eval $ac_try) 2>&5
18246 ac_status=$?
18247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18248 (exit $ac_status); }; }; then
18249 ac_lo=$ac_mid; break
18250 else
18251 echo "$as_me: failed program was:" >&5
18252 sed 's/^/| /' conftest.$ac_ext >&5
18253
18254 ac_hi=`expr '(' $ac_mid ')' - 1`
18255 if test $ac_mid -le $ac_hi; then
18256 ac_lo= ac_hi=
18257 break
18258 fi
18259 ac_mid=`expr 2 '*' $ac_mid`
18260 fi
18261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18262 done
18263 else
18264 echo "$as_me: failed program was:" >&5
18265 sed 's/^/| /' conftest.$ac_ext >&5
18266
18267 ac_lo= ac_hi=
18268 fi
18269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18270 fi
18271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18272 # Binary search between lo and hi bounds.
18273 while test "x$ac_lo" != "x$ac_hi"; do
18274 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18275 cat >conftest.$ac_ext <<_ACEOF
18276 /* confdefs.h. */
18277 _ACEOF
18278 cat confdefs.h >>conftest.$ac_ext
18279 cat >>conftest.$ac_ext <<_ACEOF
18280 /* end confdefs.h. */
18281
18282 int
18283 main ()
18284 {
18285 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) <= $ac_mid)];
18286 test_array [0] = 0
18287
18288 ;
18289 return 0;
18290 }
18291 _ACEOF
18292 rm -f conftest.$ac_objext
18293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18294 (eval $ac_compile) 2>conftest.er1
18295 ac_status=$?
18296 grep -v '^ *+' conftest.er1 >conftest.err
18297 rm -f conftest.er1
18298 cat conftest.err >&5
18299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18300 (exit $ac_status); } &&
18301 { ac_try='test -z "$ac_c_werror_flag"
18302 || test ! -s conftest.err'
18303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18304 (eval $ac_try) 2>&5
18305 ac_status=$?
18306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18307 (exit $ac_status); }; } &&
18308 { ac_try='test -s conftest.$ac_objext'
18309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18310 (eval $ac_try) 2>&5
18311 ac_status=$?
18312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18313 (exit $ac_status); }; }; then
18314 ac_hi=$ac_mid
18315 else
18316 echo "$as_me: failed program was:" >&5
18317 sed 's/^/| /' conftest.$ac_ext >&5
18318
18319 ac_lo=`expr '(' $ac_mid ')' + 1`
18320 fi
18321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18322 done
18323 case $ac_lo in
18324 ?*) OMP_LOCK_SIZE=$ac_lo;;
18325 '') { { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_t)" >&5
18326 echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_t)" >&2;}
18327 { (exit 1); exit 1; }; } ;;
18328 esac
18329 else
18330 if test "$cross_compiling" = yes; then
18331 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18332 See \`config.log' for more details." >&5
18333 echo "$as_me: error: cannot run test program while cross compiling
18334 See \`config.log' for more details." >&2;}
18335 { (exit 1); exit 1; }; }
18336 else
18337 cat >conftest.$ac_ext <<_ACEOF
18338 /* confdefs.h. */
18339 _ACEOF
18340 cat confdefs.h >>conftest.$ac_ext
18341 cat >>conftest.$ac_ext <<_ACEOF
18342 /* end confdefs.h. */
18343
18344 long longval () { return sizeof (omp_lock_t); }
18345 unsigned long ulongval () { return sizeof (omp_lock_t); }
18346 #include <stdio.h>
18347 #include <stdlib.h>
18348 int
18349 main ()
18350 {
18351
18352 FILE *f = fopen ("conftest.val", "w");
18353 if (! f)
18354 exit (1);
18355 if ((sizeof (omp_lock_t)) < 0)
18356 {
18357 long i = longval ();
18358 if (i != (sizeof (omp_lock_t)))
18359 exit (1);
18360 fprintf (f, "%ld\n", i);
18361 }
18362 else
18363 {
18364 unsigned long i = ulongval ();
18365 if (i != (sizeof (omp_lock_t)))
18366 exit (1);
18367 fprintf (f, "%lu\n", i);
18368 }
18369 exit (ferror (f) || fclose (f) != 0);
18370
18371 ;
18372 return 0;
18373 }
18374 _ACEOF
18375 rm -f conftest$ac_exeext
18376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18377 (eval $ac_link) 2>&5
18378 ac_status=$?
18379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18380 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18382 (eval $ac_try) 2>&5
18383 ac_status=$?
18384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18385 (exit $ac_status); }; }; then
18386 OMP_LOCK_SIZE=`cat conftest.val`
18387 else
18388 echo "$as_me: program exited with status $ac_status" >&5
18389 echo "$as_me: failed program was:" >&5
18390 sed 's/^/| /' conftest.$ac_ext >&5
18391
18392 ( exit $ac_status )
18393 { { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_t)" >&5
18394 echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_t)" >&2;}
18395 { (exit 1); exit 1; }; }
18396 fi
18397 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18398 fi
18399 fi
18400 rm -f conftest.val
18401 if test "$cross_compiling" = yes; then
18402 # Depending upon the size, compute the lo and hi bounds.
18403 cat >conftest.$ac_ext <<_ACEOF
18404 /* confdefs.h. */
18405 _ACEOF
18406 cat confdefs.h >>conftest.$ac_ext
18407 cat >>conftest.$ac_ext <<_ACEOF
18408 /* end confdefs.h. */
18409
18410 int
18411 main ()
18412 {
18413 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) >= 0)];
18414 test_array [0] = 0
18415
18416 ;
18417 return 0;
18418 }
18419 _ACEOF
18420 rm -f conftest.$ac_objext
18421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18422 (eval $ac_compile) 2>conftest.er1
18423 ac_status=$?
18424 grep -v '^ *+' conftest.er1 >conftest.err
18425 rm -f conftest.er1
18426 cat conftest.err >&5
18427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18428 (exit $ac_status); } &&
18429 { ac_try='test -z "$ac_c_werror_flag"
18430 || test ! -s conftest.err'
18431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18432 (eval $ac_try) 2>&5
18433 ac_status=$?
18434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18435 (exit $ac_status); }; } &&
18436 { ac_try='test -s conftest.$ac_objext'
18437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18438 (eval $ac_try) 2>&5
18439 ac_status=$?
18440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18441 (exit $ac_status); }; }; then
18442 ac_lo=0 ac_mid=0
18443 while :; do
18444 cat >conftest.$ac_ext <<_ACEOF
18445 /* confdefs.h. */
18446 _ACEOF
18447 cat confdefs.h >>conftest.$ac_ext
18448 cat >>conftest.$ac_ext <<_ACEOF
18449 /* end confdefs.h. */
18450
18451 int
18452 main ()
18453 {
18454 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) <= $ac_mid)];
18455 test_array [0] = 0
18456
18457 ;
18458 return 0;
18459 }
18460 _ACEOF
18461 rm -f conftest.$ac_objext
18462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18463 (eval $ac_compile) 2>conftest.er1
18464 ac_status=$?
18465 grep -v '^ *+' conftest.er1 >conftest.err
18466 rm -f conftest.er1
18467 cat conftest.err >&5
18468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18469 (exit $ac_status); } &&
18470 { ac_try='test -z "$ac_c_werror_flag"
18471 || test ! -s conftest.err'
18472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18473 (eval $ac_try) 2>&5
18474 ac_status=$?
18475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18476 (exit $ac_status); }; } &&
18477 { ac_try='test -s conftest.$ac_objext'
18478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18479 (eval $ac_try) 2>&5
18480 ac_status=$?
18481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18482 (exit $ac_status); }; }; then
18483 ac_hi=$ac_mid; break
18484 else
18485 echo "$as_me: failed program was:" >&5
18486 sed 's/^/| /' conftest.$ac_ext >&5
18487
18488 ac_lo=`expr $ac_mid + 1`
18489 if test $ac_lo -le $ac_mid; then
18490 ac_lo= ac_hi=
18491 break
18492 fi
18493 ac_mid=`expr 2 '*' $ac_mid + 1`
18494 fi
18495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18496 done
18497 else
18498 echo "$as_me: failed program was:" >&5
18499 sed 's/^/| /' conftest.$ac_ext >&5
18500
18501 cat >conftest.$ac_ext <<_ACEOF
18502 /* confdefs.h. */
18503 _ACEOF
18504 cat confdefs.h >>conftest.$ac_ext
18505 cat >>conftest.$ac_ext <<_ACEOF
18506 /* end confdefs.h. */
18507
18508 int
18509 main ()
18510 {
18511 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) < 0)];
18512 test_array [0] = 0
18513
18514 ;
18515 return 0;
18516 }
18517 _ACEOF
18518 rm -f conftest.$ac_objext
18519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18520 (eval $ac_compile) 2>conftest.er1
18521 ac_status=$?
18522 grep -v '^ *+' conftest.er1 >conftest.err
18523 rm -f conftest.er1
18524 cat conftest.err >&5
18525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18526 (exit $ac_status); } &&
18527 { ac_try='test -z "$ac_c_werror_flag"
18528 || test ! -s conftest.err'
18529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18530 (eval $ac_try) 2>&5
18531 ac_status=$?
18532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18533 (exit $ac_status); }; } &&
18534 { ac_try='test -s conftest.$ac_objext'
18535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18536 (eval $ac_try) 2>&5
18537 ac_status=$?
18538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18539 (exit $ac_status); }; }; then
18540 ac_hi=-1 ac_mid=-1
18541 while :; do
18542 cat >conftest.$ac_ext <<_ACEOF
18543 /* confdefs.h. */
18544 _ACEOF
18545 cat confdefs.h >>conftest.$ac_ext
18546 cat >>conftest.$ac_ext <<_ACEOF
18547 /* end confdefs.h. */
18548
18549 int
18550 main ()
18551 {
18552 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) >= $ac_mid)];
18553 test_array [0] = 0
18554
18555 ;
18556 return 0;
18557 }
18558 _ACEOF
18559 rm -f conftest.$ac_objext
18560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18561 (eval $ac_compile) 2>conftest.er1
18562 ac_status=$?
18563 grep -v '^ *+' conftest.er1 >conftest.err
18564 rm -f conftest.er1
18565 cat conftest.err >&5
18566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18567 (exit $ac_status); } &&
18568 { ac_try='test -z "$ac_c_werror_flag"
18569 || test ! -s conftest.err'
18570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18571 (eval $ac_try) 2>&5
18572 ac_status=$?
18573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18574 (exit $ac_status); }; } &&
18575 { ac_try='test -s conftest.$ac_objext'
18576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18577 (eval $ac_try) 2>&5
18578 ac_status=$?
18579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18580 (exit $ac_status); }; }; then
18581 ac_lo=$ac_mid; break
18582 else
18583 echo "$as_me: failed program was:" >&5
18584 sed 's/^/| /' conftest.$ac_ext >&5
18585
18586 ac_hi=`expr '(' $ac_mid ')' - 1`
18587 if test $ac_mid -le $ac_hi; then
18588 ac_lo= ac_hi=
18589 break
18590 fi
18591 ac_mid=`expr 2 '*' $ac_mid`
18592 fi
18593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18594 done
18595 else
18596 echo "$as_me: failed program was:" >&5
18597 sed 's/^/| /' conftest.$ac_ext >&5
18598
18599 ac_lo= ac_hi=
18600 fi
18601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18602 fi
18603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18604 # Binary search between lo and hi bounds.
18605 while test "x$ac_lo" != "x$ac_hi"; do
18606 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18607 cat >conftest.$ac_ext <<_ACEOF
18608 /* confdefs.h. */
18609 _ACEOF
18610 cat confdefs.h >>conftest.$ac_ext
18611 cat >>conftest.$ac_ext <<_ACEOF
18612 /* end confdefs.h. */
18613
18614 int
18615 main ()
18616 {
18617 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) <= $ac_mid)];
18618 test_array [0] = 0
18619
18620 ;
18621 return 0;
18622 }
18623 _ACEOF
18624 rm -f conftest.$ac_objext
18625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18626 (eval $ac_compile) 2>conftest.er1
18627 ac_status=$?
18628 grep -v '^ *+' conftest.er1 >conftest.err
18629 rm -f conftest.er1
18630 cat conftest.err >&5
18631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18632 (exit $ac_status); } &&
18633 { ac_try='test -z "$ac_c_werror_flag"
18634 || test ! -s conftest.err'
18635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18636 (eval $ac_try) 2>&5
18637 ac_status=$?
18638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18639 (exit $ac_status); }; } &&
18640 { ac_try='test -s conftest.$ac_objext'
18641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18642 (eval $ac_try) 2>&5
18643 ac_status=$?
18644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18645 (exit $ac_status); }; }; then
18646 ac_hi=$ac_mid
18647 else
18648 echo "$as_me: failed program was:" >&5
18649 sed 's/^/| /' conftest.$ac_ext >&5
18650
18651 ac_lo=`expr '(' $ac_mid ')' + 1`
18652 fi
18653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18654 done
18655 case $ac_lo in
18656 ?*) OMP_LOCK_ALIGN=$ac_lo;;
18657 '') ;;
18658 esac
18659 else
18660 if test "$cross_compiling" = yes; then
18661 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18662 See \`config.log' for more details." >&5
18663 echo "$as_me: error: cannot run test program while cross compiling
18664 See \`config.log' for more details." >&2;}
18665 { (exit 1); exit 1; }; }
18666 else
18667 cat >conftest.$ac_ext <<_ACEOF
18668 /* confdefs.h. */
18669 _ACEOF
18670 cat confdefs.h >>conftest.$ac_ext
18671 cat >>conftest.$ac_ext <<_ACEOF
18672 /* end confdefs.h. */
18673
18674 long longval () { return __alignof (omp_lock_t); }
18675 unsigned long ulongval () { return __alignof (omp_lock_t); }
18676 #include <stdio.h>
18677 #include <stdlib.h>
18678 int
18679 main ()
18680 {
18681
18682 FILE *f = fopen ("conftest.val", "w");
18683 if (! f)
18684 exit (1);
18685 if ((__alignof (omp_lock_t)) < 0)
18686 {
18687 long i = longval ();
18688 if (i != (__alignof (omp_lock_t)))
18689 exit (1);
18690 fprintf (f, "%ld\n", i);
18691 }
18692 else
18693 {
18694 unsigned long i = ulongval ();
18695 if (i != (__alignof (omp_lock_t)))
18696 exit (1);
18697 fprintf (f, "%lu\n", i);
18698 }
18699 exit (ferror (f) || fclose (f) != 0);
18700
18701 ;
18702 return 0;
18703 }
18704 _ACEOF
18705 rm -f conftest$ac_exeext
18706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18707 (eval $ac_link) 2>&5
18708 ac_status=$?
18709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18710 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18712 (eval $ac_try) 2>&5
18713 ac_status=$?
18714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18715 (exit $ac_status); }; }; then
18716 OMP_LOCK_ALIGN=`cat conftest.val`
18717 else
18718 echo "$as_me: program exited with status $ac_status" >&5
18719 echo "$as_me: failed program was:" >&5
18720 sed 's/^/| /' conftest.$ac_ext >&5
18721
18722 fi
18723 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18724 fi
18725 fi
18726 rm -f conftest.val
18727 if test "$cross_compiling" = yes; then
18728 # Depending upon the size, compute the lo and hi bounds.
18729 cat >conftest.$ac_ext <<_ACEOF
18730 /* confdefs.h. */
18731 _ACEOF
18732 cat confdefs.h >>conftest.$ac_ext
18733 cat >>conftest.$ac_ext <<_ACEOF
18734 /* end confdefs.h. */
18735
18736 int
18737 main ()
18738 {
18739 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) >= 0)];
18740 test_array [0] = 0
18741
18742 ;
18743 return 0;
18744 }
18745 _ACEOF
18746 rm -f conftest.$ac_objext
18747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18748 (eval $ac_compile) 2>conftest.er1
18749 ac_status=$?
18750 grep -v '^ *+' conftest.er1 >conftest.err
18751 rm -f conftest.er1
18752 cat conftest.err >&5
18753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18754 (exit $ac_status); } &&
18755 { ac_try='test -z "$ac_c_werror_flag"
18756 || test ! -s conftest.err'
18757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18758 (eval $ac_try) 2>&5
18759 ac_status=$?
18760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18761 (exit $ac_status); }; } &&
18762 { ac_try='test -s conftest.$ac_objext'
18763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18764 (eval $ac_try) 2>&5
18765 ac_status=$?
18766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18767 (exit $ac_status); }; }; then
18768 ac_lo=0 ac_mid=0
18769 while :; do
18770 cat >conftest.$ac_ext <<_ACEOF
18771 /* confdefs.h. */
18772 _ACEOF
18773 cat confdefs.h >>conftest.$ac_ext
18774 cat >>conftest.$ac_ext <<_ACEOF
18775 /* end confdefs.h. */
18776
18777 int
18778 main ()
18779 {
18780 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) <= $ac_mid)];
18781 test_array [0] = 0
18782
18783 ;
18784 return 0;
18785 }
18786 _ACEOF
18787 rm -f conftest.$ac_objext
18788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18789 (eval $ac_compile) 2>conftest.er1
18790 ac_status=$?
18791 grep -v '^ *+' conftest.er1 >conftest.err
18792 rm -f conftest.er1
18793 cat conftest.err >&5
18794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18795 (exit $ac_status); } &&
18796 { ac_try='test -z "$ac_c_werror_flag"
18797 || test ! -s conftest.err'
18798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18799 (eval $ac_try) 2>&5
18800 ac_status=$?
18801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18802 (exit $ac_status); }; } &&
18803 { ac_try='test -s conftest.$ac_objext'
18804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18805 (eval $ac_try) 2>&5
18806 ac_status=$?
18807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18808 (exit $ac_status); }; }; then
18809 ac_hi=$ac_mid; break
18810 else
18811 echo "$as_me: failed program was:" >&5
18812 sed 's/^/| /' conftest.$ac_ext >&5
18813
18814 ac_lo=`expr $ac_mid + 1`
18815 if test $ac_lo -le $ac_mid; then
18816 ac_lo= ac_hi=
18817 break
18818 fi
18819 ac_mid=`expr 2 '*' $ac_mid + 1`
18820 fi
18821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18822 done
18823 else
18824 echo "$as_me: failed program was:" >&5
18825 sed 's/^/| /' conftest.$ac_ext >&5
18826
18827 cat >conftest.$ac_ext <<_ACEOF
18828 /* confdefs.h. */
18829 _ACEOF
18830 cat confdefs.h >>conftest.$ac_ext
18831 cat >>conftest.$ac_ext <<_ACEOF
18832 /* end confdefs.h. */
18833
18834 int
18835 main ()
18836 {
18837 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) < 0)];
18838 test_array [0] = 0
18839
18840 ;
18841 return 0;
18842 }
18843 _ACEOF
18844 rm -f conftest.$ac_objext
18845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18846 (eval $ac_compile) 2>conftest.er1
18847 ac_status=$?
18848 grep -v '^ *+' conftest.er1 >conftest.err
18849 rm -f conftest.er1
18850 cat conftest.err >&5
18851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18852 (exit $ac_status); } &&
18853 { ac_try='test -z "$ac_c_werror_flag"
18854 || test ! -s conftest.err'
18855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18856 (eval $ac_try) 2>&5
18857 ac_status=$?
18858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18859 (exit $ac_status); }; } &&
18860 { ac_try='test -s conftest.$ac_objext'
18861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18862 (eval $ac_try) 2>&5
18863 ac_status=$?
18864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18865 (exit $ac_status); }; }; then
18866 ac_hi=-1 ac_mid=-1
18867 while :; do
18868 cat >conftest.$ac_ext <<_ACEOF
18869 /* confdefs.h. */
18870 _ACEOF
18871 cat confdefs.h >>conftest.$ac_ext
18872 cat >>conftest.$ac_ext <<_ACEOF
18873 /* end confdefs.h. */
18874
18875 int
18876 main ()
18877 {
18878 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) >= $ac_mid)];
18879 test_array [0] = 0
18880
18881 ;
18882 return 0;
18883 }
18884 _ACEOF
18885 rm -f conftest.$ac_objext
18886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18887 (eval $ac_compile) 2>conftest.er1
18888 ac_status=$?
18889 grep -v '^ *+' conftest.er1 >conftest.err
18890 rm -f conftest.er1
18891 cat conftest.err >&5
18892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18893 (exit $ac_status); } &&
18894 { ac_try='test -z "$ac_c_werror_flag"
18895 || test ! -s conftest.err'
18896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18897 (eval $ac_try) 2>&5
18898 ac_status=$?
18899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18900 (exit $ac_status); }; } &&
18901 { ac_try='test -s conftest.$ac_objext'
18902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18903 (eval $ac_try) 2>&5
18904 ac_status=$?
18905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18906 (exit $ac_status); }; }; then
18907 ac_lo=$ac_mid; break
18908 else
18909 echo "$as_me: failed program was:" >&5
18910 sed 's/^/| /' conftest.$ac_ext >&5
18911
18912 ac_hi=`expr '(' $ac_mid ')' - 1`
18913 if test $ac_mid -le $ac_hi; then
18914 ac_lo= ac_hi=
18915 break
18916 fi
18917 ac_mid=`expr 2 '*' $ac_mid`
18918 fi
18919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18920 done
18921 else
18922 echo "$as_me: failed program was:" >&5
18923 sed 's/^/| /' conftest.$ac_ext >&5
18924
18925 ac_lo= ac_hi=
18926 fi
18927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18928 fi
18929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18930 # Binary search between lo and hi bounds.
18931 while test "x$ac_lo" != "x$ac_hi"; do
18932 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18933 cat >conftest.$ac_ext <<_ACEOF
18934 /* confdefs.h. */
18935 _ACEOF
18936 cat confdefs.h >>conftest.$ac_ext
18937 cat >>conftest.$ac_ext <<_ACEOF
18938 /* end confdefs.h. */
18939
18940 int
18941 main ()
18942 {
18943 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) <= $ac_mid)];
18944 test_array [0] = 0
18945
18946 ;
18947 return 0;
18948 }
18949 _ACEOF
18950 rm -f conftest.$ac_objext
18951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18952 (eval $ac_compile) 2>conftest.er1
18953 ac_status=$?
18954 grep -v '^ *+' conftest.er1 >conftest.err
18955 rm -f conftest.er1
18956 cat conftest.err >&5
18957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18958 (exit $ac_status); } &&
18959 { ac_try='test -z "$ac_c_werror_flag"
18960 || test ! -s conftest.err'
18961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18962 (eval $ac_try) 2>&5
18963 ac_status=$?
18964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18965 (exit $ac_status); }; } &&
18966 { ac_try='test -s conftest.$ac_objext'
18967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18968 (eval $ac_try) 2>&5
18969 ac_status=$?
18970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18971 (exit $ac_status); }; }; then
18972 ac_hi=$ac_mid
18973 else
18974 echo "$as_me: failed program was:" >&5
18975 sed 's/^/| /' conftest.$ac_ext >&5
18976
18977 ac_lo=`expr '(' $ac_mid ')' + 1`
18978 fi
18979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18980 done
18981 case $ac_lo in
18982 ?*) OMP_NEST_LOCK_SIZE=$ac_lo;;
18983 '') ;;
18984 esac
18985 else
18986 if test "$cross_compiling" = yes; then
18987 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18988 See \`config.log' for more details." >&5
18989 echo "$as_me: error: cannot run test program while cross compiling
18990 See \`config.log' for more details." >&2;}
18991 { (exit 1); exit 1; }; }
18992 else
18993 cat >conftest.$ac_ext <<_ACEOF
18994 /* confdefs.h. */
18995 _ACEOF
18996 cat confdefs.h >>conftest.$ac_ext
18997 cat >>conftest.$ac_ext <<_ACEOF
18998 /* end confdefs.h. */
18999
19000 long longval () { return sizeof (omp_nest_lock_t); }
19001 unsigned long ulongval () { return sizeof (omp_nest_lock_t); }
19002 #include <stdio.h>
19003 #include <stdlib.h>
19004 int
19005 main ()
19006 {
19007
19008 FILE *f = fopen ("conftest.val", "w");
19009 if (! f)
19010 exit (1);
19011 if ((sizeof (omp_nest_lock_t)) < 0)
19012 {
19013 long i = longval ();
19014 if (i != (sizeof (omp_nest_lock_t)))
19015 exit (1);
19016 fprintf (f, "%ld\n", i);
19017 }
19018 else
19019 {
19020 unsigned long i = ulongval ();
19021 if (i != (sizeof (omp_nest_lock_t)))
19022 exit (1);
19023 fprintf (f, "%lu\n", i);
19024 }
19025 exit (ferror (f) || fclose (f) != 0);
19026
19027 ;
19028 return 0;
19029 }
19030 _ACEOF
19031 rm -f conftest$ac_exeext
19032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19033 (eval $ac_link) 2>&5
19034 ac_status=$?
19035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19036 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19038 (eval $ac_try) 2>&5
19039 ac_status=$?
19040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19041 (exit $ac_status); }; }; then
19042 OMP_NEST_LOCK_SIZE=`cat conftest.val`
19043 else
19044 echo "$as_me: program exited with status $ac_status" >&5
19045 echo "$as_me: failed program was:" >&5
19046 sed 's/^/| /' conftest.$ac_ext >&5
19047
19048 fi
19049 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19050 fi
19051 fi
19052 rm -f conftest.val
19053 if test "$cross_compiling" = yes; then
19054 # Depending upon the size, compute the lo and hi bounds.
19055 cat >conftest.$ac_ext <<_ACEOF
19056 /* confdefs.h. */
19057 _ACEOF
19058 cat confdefs.h >>conftest.$ac_ext
19059 cat >>conftest.$ac_ext <<_ACEOF
19060 /* end confdefs.h. */
19061
19062 int
19063 main ()
19064 {
19065 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) >= 0)];
19066 test_array [0] = 0
19067
19068 ;
19069 return 0;
19070 }
19071 _ACEOF
19072 rm -f conftest.$ac_objext
19073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19074 (eval $ac_compile) 2>conftest.er1
19075 ac_status=$?
19076 grep -v '^ *+' conftest.er1 >conftest.err
19077 rm -f conftest.er1
19078 cat conftest.err >&5
19079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19080 (exit $ac_status); } &&
19081 { ac_try='test -z "$ac_c_werror_flag"
19082 || test ! -s conftest.err'
19083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19084 (eval $ac_try) 2>&5
19085 ac_status=$?
19086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19087 (exit $ac_status); }; } &&
19088 { ac_try='test -s conftest.$ac_objext'
19089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19090 (eval $ac_try) 2>&5
19091 ac_status=$?
19092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19093 (exit $ac_status); }; }; then
19094 ac_lo=0 ac_mid=0
19095 while :; do
19096 cat >conftest.$ac_ext <<_ACEOF
19097 /* confdefs.h. */
19098 _ACEOF
19099 cat confdefs.h >>conftest.$ac_ext
19100 cat >>conftest.$ac_ext <<_ACEOF
19101 /* end confdefs.h. */
19102
19103 int
19104 main ()
19105 {
19106 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) <= $ac_mid)];
19107 test_array [0] = 0
19108
19109 ;
19110 return 0;
19111 }
19112 _ACEOF
19113 rm -f conftest.$ac_objext
19114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19115 (eval $ac_compile) 2>conftest.er1
19116 ac_status=$?
19117 grep -v '^ *+' conftest.er1 >conftest.err
19118 rm -f conftest.er1
19119 cat conftest.err >&5
19120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19121 (exit $ac_status); } &&
19122 { ac_try='test -z "$ac_c_werror_flag"
19123 || test ! -s conftest.err'
19124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19125 (eval $ac_try) 2>&5
19126 ac_status=$?
19127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19128 (exit $ac_status); }; } &&
19129 { ac_try='test -s conftest.$ac_objext'
19130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19131 (eval $ac_try) 2>&5
19132 ac_status=$?
19133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19134 (exit $ac_status); }; }; then
19135 ac_hi=$ac_mid; break
19136 else
19137 echo "$as_me: failed program was:" >&5
19138 sed 's/^/| /' conftest.$ac_ext >&5
19139
19140 ac_lo=`expr $ac_mid + 1`
19141 if test $ac_lo -le $ac_mid; then
19142 ac_lo= ac_hi=
19143 break
19144 fi
19145 ac_mid=`expr 2 '*' $ac_mid + 1`
19146 fi
19147 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19148 done
19149 else
19150 echo "$as_me: failed program was:" >&5
19151 sed 's/^/| /' conftest.$ac_ext >&5
19152
19153 cat >conftest.$ac_ext <<_ACEOF
19154 /* confdefs.h. */
19155 _ACEOF
19156 cat confdefs.h >>conftest.$ac_ext
19157 cat >>conftest.$ac_ext <<_ACEOF
19158 /* end confdefs.h. */
19159
19160 int
19161 main ()
19162 {
19163 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) < 0)];
19164 test_array [0] = 0
19165
19166 ;
19167 return 0;
19168 }
19169 _ACEOF
19170 rm -f conftest.$ac_objext
19171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19172 (eval $ac_compile) 2>conftest.er1
19173 ac_status=$?
19174 grep -v '^ *+' conftest.er1 >conftest.err
19175 rm -f conftest.er1
19176 cat conftest.err >&5
19177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19178 (exit $ac_status); } &&
19179 { ac_try='test -z "$ac_c_werror_flag"
19180 || test ! -s conftest.err'
19181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19182 (eval $ac_try) 2>&5
19183 ac_status=$?
19184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19185 (exit $ac_status); }; } &&
19186 { ac_try='test -s conftest.$ac_objext'
19187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19188 (eval $ac_try) 2>&5
19189 ac_status=$?
19190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19191 (exit $ac_status); }; }; then
19192 ac_hi=-1 ac_mid=-1
19193 while :; do
19194 cat >conftest.$ac_ext <<_ACEOF
19195 /* confdefs.h. */
19196 _ACEOF
19197 cat confdefs.h >>conftest.$ac_ext
19198 cat >>conftest.$ac_ext <<_ACEOF
19199 /* end confdefs.h. */
19200
19201 int
19202 main ()
19203 {
19204 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) >= $ac_mid)];
19205 test_array [0] = 0
19206
19207 ;
19208 return 0;
19209 }
19210 _ACEOF
19211 rm -f conftest.$ac_objext
19212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19213 (eval $ac_compile) 2>conftest.er1
19214 ac_status=$?
19215 grep -v '^ *+' conftest.er1 >conftest.err
19216 rm -f conftest.er1
19217 cat conftest.err >&5
19218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19219 (exit $ac_status); } &&
19220 { ac_try='test -z "$ac_c_werror_flag"
19221 || test ! -s conftest.err'
19222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19223 (eval $ac_try) 2>&5
19224 ac_status=$?
19225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19226 (exit $ac_status); }; } &&
19227 { ac_try='test -s conftest.$ac_objext'
19228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19229 (eval $ac_try) 2>&5
19230 ac_status=$?
19231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19232 (exit $ac_status); }; }; then
19233 ac_lo=$ac_mid; break
19234 else
19235 echo "$as_me: failed program was:" >&5
19236 sed 's/^/| /' conftest.$ac_ext >&5
19237
19238 ac_hi=`expr '(' $ac_mid ')' - 1`
19239 if test $ac_mid -le $ac_hi; then
19240 ac_lo= ac_hi=
19241 break
19242 fi
19243 ac_mid=`expr 2 '*' $ac_mid`
19244 fi
19245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19246 done
19247 else
19248 echo "$as_me: failed program was:" >&5
19249 sed 's/^/| /' conftest.$ac_ext >&5
19250
19251 ac_lo= ac_hi=
19252 fi
19253 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19254 fi
19255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19256 # Binary search between lo and hi bounds.
19257 while test "x$ac_lo" != "x$ac_hi"; do
19258 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19259 cat >conftest.$ac_ext <<_ACEOF
19260 /* confdefs.h. */
19261 _ACEOF
19262 cat confdefs.h >>conftest.$ac_ext
19263 cat >>conftest.$ac_ext <<_ACEOF
19264 /* end confdefs.h. */
19265
19266 int
19267 main ()
19268 {
19269 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) <= $ac_mid)];
19270 test_array [0] = 0
19271
19272 ;
19273 return 0;
19274 }
19275 _ACEOF
19276 rm -f conftest.$ac_objext
19277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19278 (eval $ac_compile) 2>conftest.er1
19279 ac_status=$?
19280 grep -v '^ *+' conftest.er1 >conftest.err
19281 rm -f conftest.er1
19282 cat conftest.err >&5
19283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19284 (exit $ac_status); } &&
19285 { ac_try='test -z "$ac_c_werror_flag"
19286 || test ! -s conftest.err'
19287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19288 (eval $ac_try) 2>&5
19289 ac_status=$?
19290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19291 (exit $ac_status); }; } &&
19292 { ac_try='test -s conftest.$ac_objext'
19293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19294 (eval $ac_try) 2>&5
19295 ac_status=$?
19296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19297 (exit $ac_status); }; }; then
19298 ac_hi=$ac_mid
19299 else
19300 echo "$as_me: failed program was:" >&5
19301 sed 's/^/| /' conftest.$ac_ext >&5
19302
19303 ac_lo=`expr '(' $ac_mid ')' + 1`
19304 fi
19305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19306 done
19307 case $ac_lo in
19308 ?*) OMP_NEST_LOCK_ALIGN=$ac_lo;;
19309 '') ;;
19310 esac
19311 else
19312 if test "$cross_compiling" = yes; then
19313 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19314 See \`config.log' for more details." >&5
19315 echo "$as_me: error: cannot run test program while cross compiling
19316 See \`config.log' for more details." >&2;}
19317 { (exit 1); exit 1; }; }
19318 else
19319 cat >conftest.$ac_ext <<_ACEOF
19320 /* confdefs.h. */
19321 _ACEOF
19322 cat confdefs.h >>conftest.$ac_ext
19323 cat >>conftest.$ac_ext <<_ACEOF
19324 /* end confdefs.h. */
19325
19326 long longval () { return __alignof (omp_nest_lock_t); }
19327 unsigned long ulongval () { return __alignof (omp_nest_lock_t); }
19328 #include <stdio.h>
19329 #include <stdlib.h>
19330 int
19331 main ()
19332 {
19333
19334 FILE *f = fopen ("conftest.val", "w");
19335 if (! f)
19336 exit (1);
19337 if ((__alignof (omp_nest_lock_t)) < 0)
19338 {
19339 long i = longval ();
19340 if (i != (__alignof (omp_nest_lock_t)))
19341 exit (1);
19342 fprintf (f, "%ld\n", i);
19343 }
19344 else
19345 {
19346 unsigned long i = ulongval ();
19347 if (i != (__alignof (omp_nest_lock_t)))
19348 exit (1);
19349 fprintf (f, "%lu\n", i);
19350 }
19351 exit (ferror (f) || fclose (f) != 0);
19352
19353 ;
19354 return 0;
19355 }
19356 _ACEOF
19357 rm -f conftest$ac_exeext
19358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19359 (eval $ac_link) 2>&5
19360 ac_status=$?
19361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19362 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19364 (eval $ac_try) 2>&5
19365 ac_status=$?
19366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19367 (exit $ac_status); }; }; then
19368 OMP_NEST_LOCK_ALIGN=`cat conftest.val`
19369 else
19370 echo "$as_me: program exited with status $ac_status" >&5
19371 echo "$as_me: failed program was:" >&5
19372 sed 's/^/| /' conftest.$ac_ext >&5
19373
19374 fi
19375 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19376 fi
19377 fi
19378 rm -f conftest.val
19379
19380 # If the lock fits in an integer, then arrange for Fortran to use that
19381 # integer. If it doesn't, then arrange for Fortran to use a pointer.
19382 # Except that we don't have a way at present to multi-lib the installed
19383 # Fortran modules, so we assume 8 bytes for pointers, regardless of the
19384 # actual target.
19385 OMP_LOCK_KIND=$OMP_LOCK_SIZE
19386 OMP_NEST_LOCK_KIND=$OMP_NEST_LOCK_SIZE
19387 if test $OMP_LOCK_SIZE -gt 8 || test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
19388 OMP_LOCK_KIND=8
19389 fi
19390 if test $OMP_NEST_LOCK_SIZE -gt 8 || test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
19391 OMP_NEST_LOCK_KIND=8
19392 fi
19393
19394
19395
19396
19397
19398
19399
19400 CFLAGS="$save_CFLAGS"
19401
19402 ac_config_files="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
19403
19404 ac_config_files="$ac_config_files Makefile testsuite/Makefile libgomp.spec"
19405
19406 cat >confcache <<\_ACEOF
19407 # This file is a shell script that caches the results of configure
19408 # tests run on this system so they can be shared between configure
19409 # scripts and configure runs, see configure's option --config-cache.
19410 # It is not useful on other systems. If it contains results you don't
19411 # want to keep, you may remove or edit it.
19412 #
19413 # config.status only pays attention to the cache file if you give it
19414 # the --recheck option to rerun configure.
19415 #
19416 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19417 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19418 # following values.
19419
19420 _ACEOF
19421
19422 # The following way of writing the cache mishandles newlines in values,
19423 # but we know of no workaround that is simple, portable, and efficient.
19424 # So, don't put newlines in cache variables' values.
19425 # Ultrix sh set writes to stderr and can't be redirected directly,
19426 # and sets the high bit in the cache file unless we assign to the vars.
19427 {
19428 (set) 2>&1 |
19429 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19430 *ac_space=\ *)
19431 # `set' does not quote correctly, so add quotes (double-quote
19432 # substitution turns \\\\ into \\, and sed turns \\ into \).
19433 sed -n \
19434 "s/'/'\\\\''/g;
19435 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19436 ;;
19437 *)
19438 # `set' quotes correctly as required by POSIX, so do not add quotes.
19439 sed -n \
19440 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19441 ;;
19442 esac;
19443 } |
19444 sed '
19445 t clear
19446 : clear
19447 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19448 t end
19449 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19450 : end' >>confcache
19451 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19452 if test -w $cache_file; then
19453 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19454 cat confcache >$cache_file
19455 else
19456 echo "not updating unwritable cache $cache_file"
19457 fi
19458 fi
19459 rm -f confcache
19460
19461 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19462 # Let make expand exec_prefix.
19463 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19464
19465 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19466 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19467 # trailing colons and then remove the whole line if VPATH becomes empty
19468 # (actually we leave an empty line to preserve line numbers).
19469 if test "x$srcdir" = x.; then
19470 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19471 s/:*\$(srcdir):*/:/;
19472 s/:*\${srcdir}:*/:/;
19473 s/:*@srcdir@:*/:/;
19474 s/^\([^=]*=[ ]*\):*/\1/;
19475 s/:*$//;
19476 s/^[^=]*=[ ]*$//;
19477 }'
19478 fi
19479
19480 DEFS=-DHAVE_CONFIG_H
19481
19482 ac_libobjs=
19483 ac_ltlibobjs=
19484 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19485 # 1. Remove the extension, and $U if already installed.
19486 ac_i=`echo "$ac_i" |
19487 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19488 # 2. Add them.
19489 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19490 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19491 done
19492 LIBOBJS=$ac_libobjs
19493
19494 LTLIBOBJS=$ac_ltlibobjs
19495
19496
19497 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
19498 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC\" was never defined.
19499 Usually this means the macro was only invoked conditionally." >&5
19500 echo "$as_me: error: conditional \"GENINSRC\" was never defined.
19501 Usually this means the macro was only invoked conditionally." >&2;}
19502 { (exit 1); exit 1; }; }
19503 fi
19504 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19505 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19506 Usually this means the macro was only invoked conditionally." >&5
19507 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19508 Usually this means the macro was only invoked conditionally." >&2;}
19509 { (exit 1); exit 1; }; }
19510 fi
19511 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19512 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19513 Usually this means the macro was only invoked conditionally." >&5
19514 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19515 Usually this means the macro was only invoked conditionally." >&2;}
19516 { (exit 1); exit 1; }; }
19517 fi
19518 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
19519 { { echo "$as_me:$LINENO: error: conditional \"BUILD_INFO\" was never defined.
19520 Usually this means the macro was only invoked conditionally." >&5
19521 echo "$as_me: error: conditional \"BUILD_INFO\" was never defined.
19522 Usually this means the macro was only invoked conditionally." >&2;}
19523 { (exit 1); exit 1; }; }
19524 fi
19525 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19526 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
19527 Usually this means the macro was only invoked conditionally." >&5
19528 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
19529 Usually this means the macro was only invoked conditionally." >&2;}
19530 { (exit 1); exit 1; }; }
19531 fi
19532 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
19533 { { echo "$as_me:$LINENO: error: conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
19534 Usually this means the macro was only invoked conditionally." >&5
19535 echo "$as_me: error: conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
19536 Usually this means the macro was only invoked conditionally." >&2;}
19537 { (exit 1); exit 1; }; }
19538 fi
19539 if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
19540 { { echo "$as_me:$LINENO: error: conditional \"USE_FORTRAN\" was never defined.
19541 Usually this means the macro was only invoked conditionally." >&5
19542 echo "$as_me: error: conditional \"USE_FORTRAN\" was never defined.
19543 Usually this means the macro was only invoked conditionally." >&2;}
19544 { (exit 1); exit 1; }; }
19545 fi
19546
19547 : ${CONFIG_STATUS=./config.status}
19548 ac_clean_files_save=$ac_clean_files
19549 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19550 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19551 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19552 cat >$CONFIG_STATUS <<_ACEOF
19553 #! $SHELL
19554 # Generated by $as_me.
19555 # Run this file to recreate the current configuration.
19556 # Compiler output produced by configure, useful for debugging
19557 # configure, is in config.log if it exists.
19558
19559 debug=false
19560 ac_cs_recheck=false
19561 ac_cs_silent=false
19562 SHELL=\${CONFIG_SHELL-$SHELL}
19563 _ACEOF
19564
19565 cat >>$CONFIG_STATUS <<\_ACEOF
19566 ## --------------------- ##
19567 ## M4sh Initialization. ##
19568 ## --------------------- ##
19569
19570 # Be Bourne compatible
19571 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19572 emulate sh
19573 NULLCMD=:
19574 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19575 # is contrary to our usage. Disable this feature.
19576 alias -g '${1+"$@"}'='"$@"'
19577 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19578 set -o posix
19579 fi
19580 DUALCASE=1; export DUALCASE # for MKS sh
19581
19582 # Support unset when possible.
19583 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19584 as_unset=unset
19585 else
19586 as_unset=false
19587 fi
19588
19589
19590 # Work around bugs in pre-3.0 UWIN ksh.
19591 $as_unset ENV MAIL MAILPATH
19592 PS1='$ '
19593 PS2='> '
19594 PS4='+ '
19595
19596 # NLS nuisances.
19597 for as_var in \
19598 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19599 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19600 LC_TELEPHONE LC_TIME
19601 do
19602 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19603 eval $as_var=C; export $as_var
19604 else
19605 $as_unset $as_var
19606 fi
19607 done
19608
19609 # Required to use basename.
19610 if expr a : '\(a\)' >/dev/null 2>&1; then
19611 as_expr=expr
19612 else
19613 as_expr=false
19614 fi
19615
19616 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19617 as_basename=basename
19618 else
19619 as_basename=false
19620 fi
19621
19622
19623 # Name of the executable.
19624 as_me=`$as_basename "$0" ||
19625 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19626 X"$0" : 'X\(//\)$' \| \
19627 X"$0" : 'X\(/\)$' \| \
19628 . : '\(.\)' 2>/dev/null ||
19629 echo X/"$0" |
19630 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19631 /^X\/\(\/\/\)$/{ s//\1/; q; }
19632 /^X\/\(\/\).*/{ s//\1/; q; }
19633 s/.*/./; q'`
19634
19635
19636 # PATH needs CR, and LINENO needs CR and PATH.
19637 # Avoid depending upon Character Ranges.
19638 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19639 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19640 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19641 as_cr_digits='0123456789'
19642 as_cr_alnum=$as_cr_Letters$as_cr_digits
19643
19644 # The user is always right.
19645 if test "${PATH_SEPARATOR+set}" != set; then
19646 echo "#! /bin/sh" >conf$$.sh
19647 echo "exit 0" >>conf$$.sh
19648 chmod +x conf$$.sh
19649 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19650 PATH_SEPARATOR=';'
19651 else
19652 PATH_SEPARATOR=:
19653 fi
19654 rm -f conf$$.sh
19655 fi
19656
19657
19658 as_lineno_1=$LINENO
19659 as_lineno_2=$LINENO
19660 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19661 test "x$as_lineno_1" != "x$as_lineno_2" &&
19662 test "x$as_lineno_3" = "x$as_lineno_2" || {
19663 # Find who we are. Look in the path if we contain no path at all
19664 # relative or not.
19665 case $0 in
19666 *[\\/]* ) as_myself=$0 ;;
19667 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19668 for as_dir in $PATH
19669 do
19670 IFS=$as_save_IFS
19671 test -z "$as_dir" && as_dir=.
19672 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19673 done
19674
19675 ;;
19676 esac
19677 # We did not find ourselves, most probably we were run as `sh COMMAND'
19678 # in which case we are not to be found in the path.
19679 if test "x$as_myself" = x; then
19680 as_myself=$0
19681 fi
19682 if test ! -f "$as_myself"; then
19683 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19684 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19685 { (exit 1); exit 1; }; }
19686 fi
19687 case $CONFIG_SHELL in
19688 '')
19689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19690 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19691 do
19692 IFS=$as_save_IFS
19693 test -z "$as_dir" && as_dir=.
19694 for as_base in sh bash ksh sh5; do
19695 case $as_dir in
19696 /*)
19697 if ("$as_dir/$as_base" -c '
19698 as_lineno_1=$LINENO
19699 as_lineno_2=$LINENO
19700 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19701 test "x$as_lineno_1" != "x$as_lineno_2" &&
19702 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19703 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19704 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19705 CONFIG_SHELL=$as_dir/$as_base
19706 export CONFIG_SHELL
19707 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19708 fi;;
19709 esac
19710 done
19711 done
19712 ;;
19713 esac
19714
19715 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19716 # uniformly replaced by the line number. The first 'sed' inserts a
19717 # line-number line before each line; the second 'sed' does the real
19718 # work. The second script uses 'N' to pair each line-number line
19719 # with the numbered line, and appends trailing '-' during
19720 # substitution so that $LINENO is not a special case at line end.
19721 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19722 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19723 sed '=' <$as_myself |
19724 sed '
19725 N
19726 s,$,-,
19727 : loop
19728 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19729 t loop
19730 s,-$,,
19731 s,^['$as_cr_digits']*\n,,
19732 ' >$as_me.lineno &&
19733 chmod +x $as_me.lineno ||
19734 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19735 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19736 { (exit 1); exit 1; }; }
19737
19738 # Don't try to exec as it changes $[0], causing all sort of problems
19739 # (the dirname of $[0] is not the place where we might find the
19740 # original and so on. Autoconf is especially sensible to this).
19741 . ./$as_me.lineno
19742 # Exit status is that of the last command.
19743 exit
19744 }
19745
19746
19747 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19748 *c*,-n*) ECHO_N= ECHO_C='
19749 ' ECHO_T=' ' ;;
19750 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19751 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19752 esac
19753
19754 if expr a : '\(a\)' >/dev/null 2>&1; then
19755 as_expr=expr
19756 else
19757 as_expr=false
19758 fi
19759
19760 rm -f conf$$ conf$$.exe conf$$.file
19761 echo >conf$$.file
19762 if ln -s conf$$.file conf$$ 2>/dev/null; then
19763 # We could just check for DJGPP; but this test a) works b) is more generic
19764 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19765 if test -f conf$$.exe; then
19766 # Don't use ln at all; we don't have any links
19767 as_ln_s='cp -p'
19768 else
19769 as_ln_s='ln -s'
19770 fi
19771 elif ln conf$$.file conf$$ 2>/dev/null; then
19772 as_ln_s=ln
19773 else
19774 as_ln_s='cp -p'
19775 fi
19776 rm -f conf$$ conf$$.exe conf$$.file
19777
19778 if mkdir -p . 2>/dev/null; then
19779 as_mkdir_p=:
19780 else
19781 test -d ./-p && rmdir ./-p
19782 as_mkdir_p=false
19783 fi
19784
19785 as_executable_p="test -f"
19786
19787 # Sed expression to map a string onto a valid CPP name.
19788 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19789
19790 # Sed expression to map a string onto a valid variable name.
19791 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19792
19793
19794 # IFS
19795 # We need space, tab and new line, in precisely that order.
19796 as_nl='
19797 '
19798 IFS=" $as_nl"
19799
19800 # CDPATH.
19801 $as_unset CDPATH
19802
19803 exec 6>&1
19804
19805 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19806 # report actual input values of CONFIG_FILES etc. instead of their
19807 # values after options handling. Logging --version etc. is OK.
19808 exec 5>>config.log
19809 {
19810 echo
19811 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19812 ## Running $as_me. ##
19813 _ASBOX
19814 } >&5
19815 cat >&5 <<_CSEOF
19816
19817 This file was extended by GNU OpenMP Runtime Library $as_me 1.0, which was
19818 generated by GNU Autoconf 2.59. Invocation command line was
19819
19820 CONFIG_FILES = $CONFIG_FILES
19821 CONFIG_HEADERS = $CONFIG_HEADERS
19822 CONFIG_LINKS = $CONFIG_LINKS
19823 CONFIG_COMMANDS = $CONFIG_COMMANDS
19824 $ $0 $@
19825
19826 _CSEOF
19827 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19828 echo >&5
19829 _ACEOF
19830
19831 # Files that config.status was made for.
19832 if test -n "$ac_config_files"; then
19833 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19834 fi
19835
19836 if test -n "$ac_config_headers"; then
19837 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19838 fi
19839
19840 if test -n "$ac_config_links"; then
19841 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19842 fi
19843
19844 if test -n "$ac_config_commands"; then
19845 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19846 fi
19847
19848 cat >>$CONFIG_STATUS <<\_ACEOF
19849
19850 ac_cs_usage="\
19851 \`$as_me' instantiates files from templates according to the
19852 current configuration.
19853
19854 Usage: $0 [OPTIONS] [FILE]...
19855
19856 -h, --help print this help, then exit
19857 -V, --version print version number, then exit
19858 -q, --quiet do not print progress messages
19859 -d, --debug don't remove temporary files
19860 --recheck update $as_me by reconfiguring in the same conditions
19861 --file=FILE[:TEMPLATE]
19862 instantiate the configuration file FILE
19863 --header=FILE[:TEMPLATE]
19864 instantiate the configuration header FILE
19865
19866 Configuration files:
19867 $config_files
19868
19869 Configuration headers:
19870 $config_headers
19871
19872 Configuration commands:
19873 $config_commands
19874
19875 Report bugs to <bug-autoconf@gnu.org>."
19876 _ACEOF
19877
19878 cat >>$CONFIG_STATUS <<_ACEOF
19879 ac_cs_version="\\
19880 GNU OpenMP Runtime Library config.status 1.0
19881 configured by $0, generated by GNU Autoconf 2.59,
19882 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19883
19884 Copyright (C) 2003 Free Software Foundation, Inc.
19885 This config.status script is free software; the Free Software Foundation
19886 gives unlimited permission to copy, distribute and modify it."
19887 srcdir=$srcdir
19888 INSTALL="$INSTALL"
19889 _ACEOF
19890
19891 cat >>$CONFIG_STATUS <<\_ACEOF
19892 # If no file are specified by the user, then we need to provide default
19893 # value. By we need to know if files were specified by the user.
19894 ac_need_defaults=:
19895 while test $# != 0
19896 do
19897 case $1 in
19898 --*=*)
19899 ac_option=`expr "x$1" : 'x\([^=]*\)='`
19900 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19901 ac_shift=:
19902 ;;
19903 -*)
19904 ac_option=$1
19905 ac_optarg=$2
19906 ac_shift=shift
19907 ;;
19908 *) # This is not an option, so the user has probably given explicit
19909 # arguments.
19910 ac_option=$1
19911 ac_need_defaults=false;;
19912 esac
19913
19914 case $ac_option in
19915 # Handling of the options.
19916 _ACEOF
19917 cat >>$CONFIG_STATUS <<\_ACEOF
19918 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19919 ac_cs_recheck=: ;;
19920 --version | --vers* | -V )
19921 echo "$ac_cs_version"; exit 0 ;;
19922 --he | --h)
19923 # Conflict between --help and --header
19924 { { echo "$as_me:$LINENO: error: ambiguous option: $1
19925 Try \`$0 --help' for more information." >&5
19926 echo "$as_me: error: ambiguous option: $1
19927 Try \`$0 --help' for more information." >&2;}
19928 { (exit 1); exit 1; }; };;
19929 --help | --hel | -h )
19930 echo "$ac_cs_usage"; exit 0 ;;
19931 --debug | --d* | -d )
19932 debug=: ;;
19933 --file | --fil | --fi | --f )
19934 $ac_shift
19935 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19936 ac_need_defaults=false;;
19937 --header | --heade | --head | --hea )
19938 $ac_shift
19939 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19940 ac_need_defaults=false;;
19941 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19942 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19943 ac_cs_silent=: ;;
19944
19945 # This is an error.
19946 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19947 Try \`$0 --help' for more information." >&5
19948 echo "$as_me: error: unrecognized option: $1
19949 Try \`$0 --help' for more information." >&2;}
19950 { (exit 1); exit 1; }; } ;;
19951
19952 *) ac_config_targets="$ac_config_targets $1" ;;
19953
19954 esac
19955 shift
19956 done
19957
19958 ac_configure_extra_args=
19959
19960 if $ac_cs_silent; then
19961 exec 6>/dev/null
19962 ac_configure_extra_args="$ac_configure_extra_args --silent"
19963 fi
19964
19965 _ACEOF
19966 cat >>$CONFIG_STATUS <<_ACEOF
19967 if \$ac_cs_recheck; then
19968 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19969 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19970 fi
19971
19972 _ACEOF
19973
19974 cat >>$CONFIG_STATUS <<_ACEOF
19975 #
19976 # INIT-COMMANDS section.
19977 #
19978
19979
19980 srcdir="$srcdir"
19981 host="$host"
19982 target="$target"
19983 with_multisubdir="$with_multisubdir"
19984 with_multisrctop="$with_multisrctop"
19985 with_target_subdir="$with_target_subdir"
19986 ac_configure_args="${multilib_arg} ${ac_configure_args}"
19987 multi_basedir="$multi_basedir"
19988 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
19989 CC="$CC"
19990 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19991
19992
19993 # The HP-UX ksh and POSIX shell print the target directory to stdout
19994 # if CDPATH is set.
19995 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19996
19997 sed_quote_subst='$sed_quote_subst'
19998 double_quote_subst='$double_quote_subst'
19999 delay_variable_subst='$delay_variable_subst'
20000 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
20001 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
20002 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
20003 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
20004 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
20005 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
20006 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
20007 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
20008 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
20009 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
20010 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
20011 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
20012 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
20013 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
20014 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
20015 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
20016 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
20017 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
20018 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
20019 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
20020 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
20021 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
20022 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
20023 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
20024 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
20025 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
20026 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
20027 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20028 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
20029 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
20030 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
20031 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20032 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
20033 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
20034 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20035 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20036 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20037 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
20038 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20039 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
20040 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
20041 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
20042 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
20043 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"`'
20044 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
20045 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
20046 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
20047 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
20048 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
20049 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
20050 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
20051 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
20052 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
20053 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
20054 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
20055 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20056 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20057 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
20058 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
20059 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20060 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20061 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
20062 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20063 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20064 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20065 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20066 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20067 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20068 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
20069 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20070 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20071 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20072 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
20073 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
20074 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
20075 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
20076 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
20077 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20078 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
20079 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
20080 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
20081 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
20082 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
20083 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20084 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20085 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20086 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20087 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
20088 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
20089 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
20090 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
20091 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
20092 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20093 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20094 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
20095 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20096 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
20097 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20098 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20099 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20100 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20101 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
20102 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
20103 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20104 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20105 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
20106 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
20107 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
20108 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
20109 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
20110 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
20111 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
20112 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
20113 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
20114 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
20115 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
20116 LD_FC='`$ECHO "X$LD_FC" | $Xsed -e "$delay_single_quote_subst"`'
20117 old_archive_cmds_FC='`$ECHO "X$old_archive_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20118 compiler_FC='`$ECHO "X$compiler_FC" | $Xsed -e "$delay_single_quote_subst"`'
20119 GCC_FC='`$ECHO "X$GCC_FC" | $Xsed -e "$delay_single_quote_subst"`'
20120 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "X$lt_prog_compiler_no_builtin_flag_FC" | $Xsed -e "$delay_single_quote_subst"`'
20121 lt_prog_compiler_wl_FC='`$ECHO "X$lt_prog_compiler_wl_FC" | $Xsed -e "$delay_single_quote_subst"`'
20122 lt_prog_compiler_pic_FC='`$ECHO "X$lt_prog_compiler_pic_FC" | $Xsed -e "$delay_single_quote_subst"`'
20123 lt_prog_compiler_static_FC='`$ECHO "X$lt_prog_compiler_static_FC" | $Xsed -e "$delay_single_quote_subst"`'
20124 lt_cv_prog_compiler_c_o_FC='`$ECHO "X$lt_cv_prog_compiler_c_o_FC" | $Xsed -e "$delay_single_quote_subst"`'
20125 archive_cmds_need_lc_FC='`$ECHO "X$archive_cmds_need_lc_FC" | $Xsed -e "$delay_single_quote_subst"`'
20126 enable_shared_with_static_runtimes_FC='`$ECHO "X$enable_shared_with_static_runtimes_FC" | $Xsed -e "$delay_single_quote_subst"`'
20127 export_dynamic_flag_spec_FC='`$ECHO "X$export_dynamic_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
20128 whole_archive_flag_spec_FC='`$ECHO "X$whole_archive_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
20129 compiler_needs_object_FC='`$ECHO "X$compiler_needs_object_FC" | $Xsed -e "$delay_single_quote_subst"`'
20130 old_archive_from_new_cmds_FC='`$ECHO "X$old_archive_from_new_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20131 old_archive_from_expsyms_cmds_FC='`$ECHO "X$old_archive_from_expsyms_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20132 archive_cmds_FC='`$ECHO "X$archive_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20133 archive_expsym_cmds_FC='`$ECHO "X$archive_expsym_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20134 module_cmds_FC='`$ECHO "X$module_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20135 module_expsym_cmds_FC='`$ECHO "X$module_expsym_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20136 with_gnu_ld_FC='`$ECHO "X$with_gnu_ld_FC" | $Xsed -e "$delay_single_quote_subst"`'
20137 allow_undefined_flag_FC='`$ECHO "X$allow_undefined_flag_FC" | $Xsed -e "$delay_single_quote_subst"`'
20138 no_undefined_flag_FC='`$ECHO "X$no_undefined_flag_FC" | $Xsed -e "$delay_single_quote_subst"`'
20139 hardcode_libdir_flag_spec_FC='`$ECHO "X$hardcode_libdir_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
20140 hardcode_libdir_flag_spec_ld_FC='`$ECHO "X$hardcode_libdir_flag_spec_ld_FC" | $Xsed -e "$delay_single_quote_subst"`'
20141 hardcode_libdir_separator_FC='`$ECHO "X$hardcode_libdir_separator_FC" | $Xsed -e "$delay_single_quote_subst"`'
20142 hardcode_direct_FC='`$ECHO "X$hardcode_direct_FC" | $Xsed -e "$delay_single_quote_subst"`'
20143 hardcode_direct_absolute_FC='`$ECHO "X$hardcode_direct_absolute_FC" | $Xsed -e "$delay_single_quote_subst"`'
20144 hardcode_minus_L_FC='`$ECHO "X$hardcode_minus_L_FC" | $Xsed -e "$delay_single_quote_subst"`'
20145 hardcode_shlibpath_var_FC='`$ECHO "X$hardcode_shlibpath_var_FC" | $Xsed -e "$delay_single_quote_subst"`'
20146 hardcode_automatic_FC='`$ECHO "X$hardcode_automatic_FC" | $Xsed -e "$delay_single_quote_subst"`'
20147 inherit_rpath_FC='`$ECHO "X$inherit_rpath_FC" | $Xsed -e "$delay_single_quote_subst"`'
20148 link_all_deplibs_FC='`$ECHO "X$link_all_deplibs_FC" | $Xsed -e "$delay_single_quote_subst"`'
20149 fix_srcfile_path_FC='`$ECHO "X$fix_srcfile_path_FC" | $Xsed -e "$delay_single_quote_subst"`'
20150 always_export_symbols_FC='`$ECHO "X$always_export_symbols_FC" | $Xsed -e "$delay_single_quote_subst"`'
20151 export_symbols_cmds_FC='`$ECHO "X$export_symbols_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20152 exclude_expsyms_FC='`$ECHO "X$exclude_expsyms_FC" | $Xsed -e "$delay_single_quote_subst"`'
20153 include_expsyms_FC='`$ECHO "X$include_expsyms_FC" | $Xsed -e "$delay_single_quote_subst"`'
20154 prelink_cmds_FC='`$ECHO "X$prelink_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
20155 file_list_spec_FC='`$ECHO "X$file_list_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
20156 hardcode_action_FC='`$ECHO "X$hardcode_action_FC" | $Xsed -e "$delay_single_quote_subst"`'
20157 predep_objects_FC='`$ECHO "X$predep_objects_FC" | $Xsed -e "$delay_single_quote_subst"`'
20158 postdep_objects_FC='`$ECHO "X$postdep_objects_FC" | $Xsed -e "$delay_single_quote_subst"`'
20159 predeps_FC='`$ECHO "X$predeps_FC" | $Xsed -e "$delay_single_quote_subst"`'
20160 postdeps_FC='`$ECHO "X$postdeps_FC" | $Xsed -e "$delay_single_quote_subst"`'
20161 compiler_lib_search_path_FC='`$ECHO "X$compiler_lib_search_path_FC" | $Xsed -e "$delay_single_quote_subst"`'
20162
20163 LTCC='$LTCC'
20164 LTCFLAGS='$LTCFLAGS'
20165 compiler='$compiler_DEFAULT'
20166
20167 # Quote evaled strings.
20168 for var in SED \
20169 GREP \
20170 EGREP \
20171 FGREP \
20172 LD \
20173 NM \
20174 LN_S \
20175 lt_SP2NL \
20176 lt_NL2SP \
20177 reload_flag \
20178 deplibs_check_method \
20179 file_magic_cmd \
20180 AR \
20181 AR_FLAGS \
20182 STRIP \
20183 RANLIB \
20184 CC \
20185 CFLAGS \
20186 compiler \
20187 lt_cv_sys_global_symbol_pipe \
20188 lt_cv_sys_global_symbol_to_cdecl \
20189 lt_cv_sys_global_symbol_to_c_name_address \
20190 SHELL \
20191 ECHO \
20192 lt_prog_compiler_no_builtin_flag \
20193 lt_prog_compiler_wl \
20194 lt_prog_compiler_pic \
20195 lt_prog_compiler_static \
20196 lt_cv_prog_compiler_c_o \
20197 need_locks \
20198 shrext_cmds \
20199 export_dynamic_flag_spec \
20200 whole_archive_flag_spec \
20201 compiler_needs_object \
20202 with_gnu_ld \
20203 allow_undefined_flag \
20204 no_undefined_flag \
20205 hardcode_libdir_flag_spec \
20206 hardcode_libdir_flag_spec_ld \
20207 hardcode_libdir_separator \
20208 fix_srcfile_path \
20209 exclude_expsyms \
20210 include_expsyms \
20211 file_list_spec \
20212 variables_saved_for_relink \
20213 libname_spec \
20214 library_names_spec \
20215 soname_spec \
20216 finish_eval \
20217 old_striplib \
20218 striplib \
20219 predep_objects \
20220 postdep_objects \
20221 predeps \
20222 postdeps \
20223 compiler_lib_search_path \
20224 LD_FC \
20225 compiler_FC \
20226 lt_prog_compiler_no_builtin_flag_FC \
20227 lt_prog_compiler_wl_FC \
20228 lt_prog_compiler_pic_FC \
20229 lt_prog_compiler_static_FC \
20230 lt_cv_prog_compiler_c_o_FC \
20231 export_dynamic_flag_spec_FC \
20232 whole_archive_flag_spec_FC \
20233 compiler_needs_object_FC \
20234 with_gnu_ld_FC \
20235 allow_undefined_flag_FC \
20236 no_undefined_flag_FC \
20237 hardcode_libdir_flag_spec_FC \
20238 hardcode_libdir_flag_spec_ld_FC \
20239 hardcode_libdir_separator_FC \
20240 fix_srcfile_path_FC \
20241 exclude_expsyms_FC \
20242 include_expsyms_FC \
20243 file_list_spec_FC \
20244 predep_objects_FC \
20245 postdep_objects_FC \
20246 predeps_FC \
20247 postdeps_FC \
20248 compiler_lib_search_path_FC; do
20249 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20250 *[\\\\\\\`\\"\\\$]*)
20251 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20252 ;;
20253 *)
20254 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20255 ;;
20256 esac
20257 done
20258
20259 # Double-quote double-evaled strings.
20260 for var in reload_cmds \
20261 old_postinstall_cmds \
20262 old_postuninstall_cmds \
20263 old_archive_cmds \
20264 extract_expsyms_cmds \
20265 old_archive_from_new_cmds \
20266 old_archive_from_expsyms_cmds \
20267 archive_cmds \
20268 archive_expsym_cmds \
20269 module_cmds \
20270 module_expsym_cmds \
20271 export_symbols_cmds \
20272 prelink_cmds \
20273 postinstall_cmds \
20274 postuninstall_cmds \
20275 finish_cmds \
20276 sys_lib_search_path_spec \
20277 sys_lib_dlsearch_path_spec \
20278 old_archive_cmds_FC \
20279 old_archive_from_new_cmds_FC \
20280 old_archive_from_expsyms_cmds_FC \
20281 archive_cmds_FC \
20282 archive_expsym_cmds_FC \
20283 module_cmds_FC \
20284 module_expsym_cmds_FC \
20285 export_symbols_cmds_FC \
20286 prelink_cmds_FC; do
20287 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20288 *[\\\\\\\`\\"\\\$]*)
20289 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20290 ;;
20291 *)
20292 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20293 ;;
20294 esac
20295 done
20296
20297 # Fix-up fallback echo if it was mangled by the above quoting rules.
20298 case \$lt_ECHO in
20299 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
20300 ;;
20301 esac
20302
20303 ac_aux_dir='$ac_aux_dir'
20304 xsi_shell='$xsi_shell'
20305 lt_shell_append='$lt_shell_append'
20306
20307 # See if we are running on zsh, and set the options which allow our
20308 # commands through without removal of \ escapes INIT.
20309 if test -n "\${ZSH_VERSION+set}" ; then
20310 setopt NO_GLOB_SUBST
20311 fi
20312
20313
20314 PACKAGE='$PACKAGE'
20315 VERSION='$VERSION'
20316 TIMESTAMP='$TIMESTAMP'
20317 RM='$RM'
20318 ofile='$ofile'
20319
20320
20321
20322
20323
20324
20325 GCC="$GCC"
20326 CC="$CC"
20327 acx_cv_header_stdint="$acx_cv_header_stdint"
20328 acx_cv_type_int8_t="$acx_cv_type_int8_t"
20329 acx_cv_type_int16_t="$acx_cv_type_int16_t"
20330 acx_cv_type_int32_t="$acx_cv_type_int32_t"
20331 acx_cv_type_int64_t="$acx_cv_type_int64_t"
20332 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
20333 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
20334 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
20335 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
20336 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
20337 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
20338 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
20339 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
20340 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
20341
20342
20343 _ACEOF
20344
20345
20346
20347 cat >>$CONFIG_STATUS <<\_ACEOF
20348 for ac_config_target in $ac_config_targets
20349 do
20350 case "$ac_config_target" in
20351 # Handling of arguments.
20352 "omp.h" ) CONFIG_FILES="$CONFIG_FILES omp.h" ;;
20353 "omp_lib.h" ) CONFIG_FILES="$CONFIG_FILES omp_lib.h" ;;
20354 "omp_lib.f90" ) CONFIG_FILES="$CONFIG_FILES omp_lib.f90" ;;
20355 "libgomp_f.h" ) CONFIG_FILES="$CONFIG_FILES libgomp_f.h" ;;
20356 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20357 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
20358 "libgomp.spec" ) CONFIG_FILES="$CONFIG_FILES libgomp.spec" ;;
20359 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
20360 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20361 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20362 "gstdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
20363 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20364 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20365 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20366 { (exit 1); exit 1; }; };;
20367 esac
20368 done
20369
20370 # If the user did not use the arguments to specify the items to instantiate,
20371 # then the envvar interface is used. Set only those that are not.
20372 # We use the long form for the default assignment because of an extremely
20373 # bizarre bug on SunOS 4.1.3.
20374 if $ac_need_defaults; then
20375 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20376 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20377 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20378 fi
20379
20380 # Have a temporary directory for convenience. Make it in the build tree
20381 # simply because there is no reason to put it here, and in addition,
20382 # creating and moving files from /tmp can sometimes cause problems.
20383 # Create a temporary directory, and hook for its removal unless debugging.
20384 $debug ||
20385 {
20386 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20387 trap '{ (exit 1); exit 1; }' 1 2 13 15
20388 }
20389
20390 # Create a (secure) tmp directory for tmp files.
20391
20392 {
20393 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20394 test -n "$tmp" && test -d "$tmp"
20395 } ||
20396 {
20397 tmp=./confstat$$-$RANDOM
20398 (umask 077 && mkdir $tmp)
20399 } ||
20400 {
20401 echo "$me: cannot create a temporary directory in ." >&2
20402 { (exit 1); exit 1; }
20403 }
20404
20405 _ACEOF
20406
20407 cat >>$CONFIG_STATUS <<_ACEOF
20408
20409 #
20410 # CONFIG_FILES section.
20411 #
20412
20413 # No need to generate the scripts if there are no CONFIG_FILES.
20414 # This happens for instance when ./config.status config.h
20415 if test -n "\$CONFIG_FILES"; then
20416 # Protect against being on the right side of a sed subst in config.status.
20417 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20418 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20419 s,@SHELL@,$SHELL,;t t
20420 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20421 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20422 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20423 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20424 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20425 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20426 s,@exec_prefix@,$exec_prefix,;t t
20427 s,@prefix@,$prefix,;t t
20428 s,@program_transform_name@,$program_transform_name,;t t
20429 s,@bindir@,$bindir,;t t
20430 s,@sbindir@,$sbindir,;t t
20431 s,@libexecdir@,$libexecdir,;t t
20432 s,@datadir@,$datadir,;t t
20433 s,@sysconfdir@,$sysconfdir,;t t
20434 s,@sharedstatedir@,$sharedstatedir,;t t
20435 s,@localstatedir@,$localstatedir,;t t
20436 s,@libdir@,$libdir,;t t
20437 s,@includedir@,$includedir,;t t
20438 s,@oldincludedir@,$oldincludedir,;t t
20439 s,@infodir@,$infodir,;t t
20440 s,@mandir@,$mandir,;t t
20441 s,@build_alias@,$build_alias,;t t
20442 s,@host_alias@,$host_alias,;t t
20443 s,@target_alias@,$target_alias,;t t
20444 s,@DEFS@,$DEFS,;t t
20445 s,@ECHO_C@,$ECHO_C,;t t
20446 s,@ECHO_N@,$ECHO_N,;t t
20447 s,@ECHO_T@,$ECHO_T,;t t
20448 s,@LIBS@,$LIBS,;t t
20449 s,@GENINSRC_TRUE@,$GENINSRC_TRUE,;t t
20450 s,@GENINSRC_FALSE@,$GENINSRC_FALSE,;t t
20451 s,@build@,$build,;t t
20452 s,@build_cpu@,$build_cpu,;t t
20453 s,@build_vendor@,$build_vendor,;t t
20454 s,@build_os@,$build_os,;t t
20455 s,@host@,$host,;t t
20456 s,@host_cpu@,$host_cpu,;t t
20457 s,@host_vendor@,$host_vendor,;t t
20458 s,@host_os@,$host_os,;t t
20459 s,@target@,$target,;t t
20460 s,@target_cpu@,$target_cpu,;t t
20461 s,@target_vendor@,$target_vendor,;t t
20462 s,@target_os@,$target_os,;t t
20463 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20464 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20465 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20466 s,@CYGPATH_W@,$CYGPATH_W,;t t
20467 s,@PACKAGE@,$PACKAGE,;t t
20468 s,@VERSION@,$VERSION,;t t
20469 s,@ACLOCAL@,$ACLOCAL,;t t
20470 s,@AUTOCONF@,$AUTOCONF,;t t
20471 s,@AUTOMAKE@,$AUTOMAKE,;t t
20472 s,@AUTOHEADER@,$AUTOHEADER,;t t
20473 s,@MAKEINFO@,$MAKEINFO,;t t
20474 s,@install_sh@,$install_sh,;t t
20475 s,@STRIP@,$STRIP,;t t
20476 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20477 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20478 s,@mkdir_p@,$mkdir_p,;t t
20479 s,@AWK@,$AWK,;t t
20480 s,@SET_MAKE@,$SET_MAKE,;t t
20481 s,@am__leading_dot@,$am__leading_dot,;t t
20482 s,@AMTAR@,$AMTAR,;t t
20483 s,@am__tar@,$am__tar,;t t
20484 s,@am__untar@,$am__untar,;t t
20485 s,@multi_basedir@,$multi_basedir,;t t
20486 s,@toolexecdir@,$toolexecdir,;t t
20487 s,@toolexeclibdir@,$toolexeclibdir,;t t
20488 s,@CC@,$CC,;t t
20489 s,@ac_ct_CC@,$ac_ct_CC,;t t
20490 s,@EXEEXT@,$EXEEXT,;t t
20491 s,@OBJEXT@,$OBJEXT,;t t
20492 s,@DEPDIR@,$DEPDIR,;t t
20493 s,@am__include@,$am__include,;t t
20494 s,@am__quote@,$am__quote,;t t
20495 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20496 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20497 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20498 s,@CCDEPMODE@,$CCDEPMODE,;t t
20499 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20500 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20501 s,@CFLAGS@,$CFLAGS,;t t
20502 s,@AR@,$AR,;t t
20503 s,@ac_ct_AR@,$ac_ct_AR,;t t
20504 s,@RANLIB@,$RANLIB,;t t
20505 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20506 s,@PERL@,$PERL,;t t
20507 s,@BUILD_INFO_TRUE@,$BUILD_INFO_TRUE,;t t
20508 s,@BUILD_INFO_FALSE@,$BUILD_INFO_FALSE,;t t
20509 s,@LIBTOOL@,$LIBTOOL,;t t
20510 s,@SED@,$SED,;t t
20511 s,@EGREP@,$EGREP,;t t
20512 s,@FGREP@,$FGREP,;t t
20513 s,@GREP@,$GREP,;t t
20514 s,@LD@,$LD,;t t
20515 s,@DUMPBIN@,$DUMPBIN,;t t
20516 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
20517 s,@NM@,$NM,;t t
20518 s,@LN_S@,$LN_S,;t t
20519 s,@lt_ECHO@,$lt_ECHO,;t t
20520 s,@CPP@,$CPP,;t t
20521 s,@CPPFLAGS@,$CPPFLAGS,;t t
20522 s,@enable_shared@,$enable_shared,;t t
20523 s,@enable_static@,$enable_static,;t t
20524 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
20525 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
20526 s,@MAINT@,$MAINT,;t t
20527 s,@FC@,$FC,;t t
20528 s,@FCFLAGS@,$FCFLAGS,;t t
20529 s,@LDFLAGS@,$LDFLAGS,;t t
20530 s,@ac_ct_FC@,$ac_ct_FC,;t t
20531 s,@libtool_VERSION@,$libtool_VERSION,;t t
20532 s,@SECTION_LDFLAGS@,$SECTION_LDFLAGS,;t t
20533 s,@OPT_LDFLAGS@,$OPT_LDFLAGS,;t t
20534 s,@LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE@,$LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE,;t t
20535 s,@LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE@,$LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE,;t t
20536 s,@config_path@,$config_path,;t t
20537 s,@XCFLAGS@,$XCFLAGS,;t t
20538 s,@XLDFLAGS@,$XLDFLAGS,;t t
20539 s,@link_gomp@,$link_gomp,;t t
20540 s,@USE_FORTRAN_TRUE@,$USE_FORTRAN_TRUE,;t t
20541 s,@USE_FORTRAN_FALSE@,$USE_FORTRAN_FALSE,;t t
20542 s,@OMP_LOCK_SIZE@,$OMP_LOCK_SIZE,;t t
20543 s,@OMP_LOCK_ALIGN@,$OMP_LOCK_ALIGN,;t t
20544 s,@OMP_NEST_LOCK_SIZE@,$OMP_NEST_LOCK_SIZE,;t t
20545 s,@OMP_NEST_LOCK_ALIGN@,$OMP_NEST_LOCK_ALIGN,;t t
20546 s,@OMP_LOCK_KIND@,$OMP_LOCK_KIND,;t t
20547 s,@OMP_NEST_LOCK_KIND@,$OMP_NEST_LOCK_KIND,;t t
20548 s,@LIBOBJS@,$LIBOBJS,;t t
20549 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20550 CEOF
20551
20552 _ACEOF
20553
20554 cat >>$CONFIG_STATUS <<\_ACEOF
20555 # Split the substitutions into bite-sized pieces for seds with
20556 # small command number limits, like on Digital OSF/1 and HP-UX.
20557 ac_max_sed_lines=48
20558 ac_sed_frag=1 # Number of current file.
20559 ac_beg=1 # First line for current file.
20560 ac_end=$ac_max_sed_lines # Line after last line for current file.
20561 ac_more_lines=:
20562 ac_sed_cmds=
20563 while $ac_more_lines; do
20564 if test $ac_beg -gt 1; then
20565 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20566 else
20567 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20568 fi
20569 if test ! -s $tmp/subs.frag; then
20570 ac_more_lines=false
20571 else
20572 # The purpose of the label and of the branching condition is to
20573 # speed up the sed processing (if there are no `@' at all, there
20574 # is no need to browse any of the substitutions).
20575 # These are the two extra sed commands mentioned above.
20576 (echo ':t
20577 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20578 if test -z "$ac_sed_cmds"; then
20579 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20580 else
20581 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20582 fi
20583 ac_sed_frag=`expr $ac_sed_frag + 1`
20584 ac_beg=$ac_end
20585 ac_end=`expr $ac_end + $ac_max_sed_lines`
20586 fi
20587 done
20588 if test -z "$ac_sed_cmds"; then
20589 ac_sed_cmds=cat
20590 fi
20591 fi # test -n "$CONFIG_FILES"
20592
20593 _ACEOF
20594 cat >>$CONFIG_STATUS <<\_ACEOF
20595 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20596 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20597 case $ac_file in
20598 - | *:- | *:-:* ) # input from stdin
20599 cat >$tmp/stdin
20600 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20601 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20602 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20603 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20604 * ) ac_file_in=$ac_file.in ;;
20605 esac
20606
20607 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20608 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20609 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20610 X"$ac_file" : 'X\(//\)[^/]' \| \
20611 X"$ac_file" : 'X\(//\)$' \| \
20612 X"$ac_file" : 'X\(/\)' \| \
20613 . : '\(.\)' 2>/dev/null ||
20614 echo X"$ac_file" |
20615 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20616 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20617 /^X\(\/\/\)$/{ s//\1/; q; }
20618 /^X\(\/\).*/{ s//\1/; q; }
20619 s/.*/./; q'`
20620 { if $as_mkdir_p; then
20621 mkdir -p "$ac_dir"
20622 else
20623 as_dir="$ac_dir"
20624 as_dirs=
20625 while test ! -d "$as_dir"; do
20626 as_dirs="$as_dir $as_dirs"
20627 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20628 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20629 X"$as_dir" : 'X\(//\)[^/]' \| \
20630 X"$as_dir" : 'X\(//\)$' \| \
20631 X"$as_dir" : 'X\(/\)' \| \
20632 . : '\(.\)' 2>/dev/null ||
20633 echo X"$as_dir" |
20634 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20635 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20636 /^X\(\/\/\)$/{ s//\1/; q; }
20637 /^X\(\/\).*/{ s//\1/; q; }
20638 s/.*/./; q'`
20639 done
20640 test ! -n "$as_dirs" || mkdir $as_dirs
20641 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20642 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20643 { (exit 1); exit 1; }; }; }
20644
20645 ac_builddir=.
20646
20647 if test "$ac_dir" != .; then
20648 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20649 # A "../" for each directory in $ac_dir_suffix.
20650 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20651 else
20652 ac_dir_suffix= ac_top_builddir=
20653 fi
20654
20655 case $srcdir in
20656 .) # No --srcdir option. We are building in place.
20657 ac_srcdir=.
20658 if test -z "$ac_top_builddir"; then
20659 ac_top_srcdir=.
20660 else
20661 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20662 fi ;;
20663 [\\/]* | ?:[\\/]* ) # Absolute path.
20664 ac_srcdir=$srcdir$ac_dir_suffix;
20665 ac_top_srcdir=$srcdir ;;
20666 *) # Relative path.
20667 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20668 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20669 esac
20670
20671 # Do not use `cd foo && pwd` to compute absolute paths, because
20672 # the directories may not exist.
20673 case `pwd` in
20674 .) ac_abs_builddir="$ac_dir";;
20675 *)
20676 case "$ac_dir" in
20677 .) ac_abs_builddir=`pwd`;;
20678 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20679 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20680 esac;;
20681 esac
20682 case $ac_abs_builddir in
20683 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20684 *)
20685 case ${ac_top_builddir}. in
20686 .) ac_abs_top_builddir=$ac_abs_builddir;;
20687 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20688 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20689 esac;;
20690 esac
20691 case $ac_abs_builddir in
20692 .) ac_abs_srcdir=$ac_srcdir;;
20693 *)
20694 case $ac_srcdir in
20695 .) ac_abs_srcdir=$ac_abs_builddir;;
20696 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20697 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20698 esac;;
20699 esac
20700 case $ac_abs_builddir in
20701 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20702 *)
20703 case $ac_top_srcdir in
20704 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20705 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20706 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20707 esac;;
20708 esac
20709
20710
20711 case $INSTALL in
20712 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20713 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20714 esac
20715
20716 if test x"$ac_file" != x-; then
20717 { echo "$as_me:$LINENO: creating $ac_file" >&5
20718 echo "$as_me: creating $ac_file" >&6;}
20719 rm -f "$ac_file"
20720 fi
20721 # Let's still pretend it is `configure' which instantiates (i.e., don't
20722 # use $as_me), people would be surprised to read:
20723 # /* config.h. Generated by config.status. */
20724 if test x"$ac_file" = x-; then
20725 configure_input=
20726 else
20727 configure_input="$ac_file. "
20728 fi
20729 configure_input=$configure_input"Generated from `echo $ac_file_in |
20730 sed 's,.*/,,'` by configure."
20731
20732 # First look for the input files in the build tree, otherwise in the
20733 # src tree.
20734 ac_file_inputs=`IFS=:
20735 for f in $ac_file_in; do
20736 case $f in
20737 -) echo $tmp/stdin ;;
20738 [\\/$]*)
20739 # Absolute (can't be DOS-style, as IFS=:)
20740 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20741 echo "$as_me: error: cannot find input file: $f" >&2;}
20742 { (exit 1); exit 1; }; }
20743 echo "$f";;
20744 *) # Relative
20745 if test -f "$f"; then
20746 # Build tree
20747 echo "$f"
20748 elif test -f "$srcdir/$f"; then
20749 # Source tree
20750 echo "$srcdir/$f"
20751 else
20752 # /dev/null tree
20753 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20754 echo "$as_me: error: cannot find input file: $f" >&2;}
20755 { (exit 1); exit 1; }; }
20756 fi;;
20757 esac
20758 done` || { (exit 1); exit 1; }
20759 _ACEOF
20760 cat >>$CONFIG_STATUS <<_ACEOF
20761 sed "$ac_vpsub
20762 $extrasub
20763 _ACEOF
20764 cat >>$CONFIG_STATUS <<\_ACEOF
20765 :t
20766 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20767 s,@configure_input@,$configure_input,;t t
20768 s,@srcdir@,$ac_srcdir,;t t
20769 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20770 s,@top_srcdir@,$ac_top_srcdir,;t t
20771 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20772 s,@builddir@,$ac_builddir,;t t
20773 s,@abs_builddir@,$ac_abs_builddir,;t t
20774 s,@top_builddir@,$ac_top_builddir,;t t
20775 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20776 s,@INSTALL@,$ac_INSTALL,;t t
20777 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20778 rm -f $tmp/stdin
20779 if test x"$ac_file" != x-; then
20780 mv $tmp/out $ac_file
20781 else
20782 cat $tmp/out
20783 rm -f $tmp/out
20784 fi
20785
20786 done
20787 _ACEOF
20788 cat >>$CONFIG_STATUS <<\_ACEOF
20789
20790 #
20791 # CONFIG_HEADER section.
20792 #
20793
20794 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20795 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20796 #
20797 # ac_d sets the value in "#define NAME VALUE" lines.
20798 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20799 ac_dB='[ ].*$,\1#\2'
20800 ac_dC=' '
20801 ac_dD=',;t'
20802 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20803 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20804 ac_uB='$,\1#\2define\3'
20805 ac_uC=' '
20806 ac_uD=',;t'
20807
20808 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20809 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20810 case $ac_file in
20811 - | *:- | *:-:* ) # input from stdin
20812 cat >$tmp/stdin
20813 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20814 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20815 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20816 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20817 * ) ac_file_in=$ac_file.in ;;
20818 esac
20819
20820 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20821 echo "$as_me: creating $ac_file" >&6;}
20822
20823 # First look for the input files in the build tree, otherwise in the
20824 # src tree.
20825 ac_file_inputs=`IFS=:
20826 for f in $ac_file_in; do
20827 case $f in
20828 -) echo $tmp/stdin ;;
20829 [\\/$]*)
20830 # Absolute (can't be DOS-style, as IFS=:)
20831 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20832 echo "$as_me: error: cannot find input file: $f" >&2;}
20833 { (exit 1); exit 1; }; }
20834 # Do quote $f, to prevent DOS paths from being IFS'd.
20835 echo "$f";;
20836 *) # Relative
20837 if test -f "$f"; then
20838 # Build tree
20839 echo "$f"
20840 elif test -f "$srcdir/$f"; then
20841 # Source tree
20842 echo "$srcdir/$f"
20843 else
20844 # /dev/null tree
20845 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20846 echo "$as_me: error: cannot find input file: $f" >&2;}
20847 { (exit 1); exit 1; }; }
20848 fi;;
20849 esac
20850 done` || { (exit 1); exit 1; }
20851 # Remove the trailing spaces.
20852 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20853
20854 _ACEOF
20855
20856 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20857 # `conftest.undefs', that substitutes the proper values into
20858 # config.h.in to produce config.h. The first handles `#define'
20859 # templates, and the second `#undef' templates.
20860 # And first: Protect against being on the right side of a sed subst in
20861 # config.status. Protect against being in an unquoted here document
20862 # in config.status.
20863 rm -f conftest.defines conftest.undefs
20864 # Using a here document instead of a string reduces the quoting nightmare.
20865 # Putting comments in sed scripts is not portable.
20866 #
20867 # `end' is used to avoid that the second main sed command (meant for
20868 # 0-ary CPP macros) applies to n-ary macro definitions.
20869 # See the Autoconf documentation for `clear'.
20870 cat >confdef2sed.sed <<\_ACEOF
20871 s/[\\&,]/\\&/g
20872 s,[\\$`],\\&,g
20873 t clear
20874 : clear
20875 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20876 t end
20877 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20878 : end
20879 _ACEOF
20880 # If some macros were called several times there might be several times
20881 # the same #defines, which is useless. Nevertheless, we may not want to
20882 # sort them, since we want the *last* AC-DEFINE to be honored.
20883 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20884 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20885 rm -f confdef2sed.sed
20886
20887 # This sed command replaces #undef with comments. This is necessary, for
20888 # example, in the case of _POSIX_SOURCE, which is predefined and required
20889 # on some systems where configure will not decide to define it.
20890 cat >>conftest.undefs <<\_ACEOF
20891 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20892 _ACEOF
20893
20894 # Break up conftest.defines because some shells have a limit on the size
20895 # of here documents, and old seds have small limits too (100 cmds).
20896 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20897 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20898 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20899 echo ' :' >>$CONFIG_STATUS
20900 rm -f conftest.tail
20901 while grep . conftest.defines >/dev/null
20902 do
20903 # Write a limited-size here document to $tmp/defines.sed.
20904 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20905 # Speed up: don't consider the non `#define' lines.
20906 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20907 # Work around the forget-to-reset-the-flag bug.
20908 echo 't clr' >>$CONFIG_STATUS
20909 echo ': clr' >>$CONFIG_STATUS
20910 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20911 echo 'CEOF
20912 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20913 rm -f $tmp/in
20914 mv $tmp/out $tmp/in
20915 ' >>$CONFIG_STATUS
20916 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20917 rm -f conftest.defines
20918 mv conftest.tail conftest.defines
20919 done
20920 rm -f conftest.defines
20921 echo ' fi # grep' >>$CONFIG_STATUS
20922 echo >>$CONFIG_STATUS
20923
20924 # Break up conftest.undefs because some shells have a limit on the size
20925 # of here documents, and old seds have small limits too (100 cmds).
20926 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20927 rm -f conftest.tail
20928 while grep . conftest.undefs >/dev/null
20929 do
20930 # Write a limited-size here document to $tmp/undefs.sed.
20931 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20932 # Speed up: don't consider the non `#undef'
20933 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20934 # Work around the forget-to-reset-the-flag bug.
20935 echo 't clr' >>$CONFIG_STATUS
20936 echo ': clr' >>$CONFIG_STATUS
20937 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20938 echo 'CEOF
20939 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20940 rm -f $tmp/in
20941 mv $tmp/out $tmp/in
20942 ' >>$CONFIG_STATUS
20943 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20944 rm -f conftest.undefs
20945 mv conftest.tail conftest.undefs
20946 done
20947 rm -f conftest.undefs
20948
20949 cat >>$CONFIG_STATUS <<\_ACEOF
20950 # Let's still pretend it is `configure' which instantiates (i.e., don't
20951 # use $as_me), people would be surprised to read:
20952 # /* config.h. Generated by config.status. */
20953 if test x"$ac_file" = x-; then
20954 echo "/* Generated by configure. */" >$tmp/config.h
20955 else
20956 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20957 fi
20958 cat $tmp/in >>$tmp/config.h
20959 rm -f $tmp/in
20960 if test x"$ac_file" != x-; then
20961 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20962 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20963 echo "$as_me: $ac_file is unchanged" >&6;}
20964 else
20965 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20966 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20967 X"$ac_file" : 'X\(//\)[^/]' \| \
20968 X"$ac_file" : 'X\(//\)$' \| \
20969 X"$ac_file" : 'X\(/\)' \| \
20970 . : '\(.\)' 2>/dev/null ||
20971 echo X"$ac_file" |
20972 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20973 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20974 /^X\(\/\/\)$/{ s//\1/; q; }
20975 /^X\(\/\).*/{ s//\1/; q; }
20976 s/.*/./; q'`
20977 { if $as_mkdir_p; then
20978 mkdir -p "$ac_dir"
20979 else
20980 as_dir="$ac_dir"
20981 as_dirs=
20982 while test ! -d "$as_dir"; do
20983 as_dirs="$as_dir $as_dirs"
20984 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20985 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20986 X"$as_dir" : 'X\(//\)[^/]' \| \
20987 X"$as_dir" : 'X\(//\)$' \| \
20988 X"$as_dir" : 'X\(/\)' \| \
20989 . : '\(.\)' 2>/dev/null ||
20990 echo X"$as_dir" |
20991 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20992 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20993 /^X\(\/\/\)$/{ s//\1/; q; }
20994 /^X\(\/\).*/{ s//\1/; q; }
20995 s/.*/./; q'`
20996 done
20997 test ! -n "$as_dirs" || mkdir $as_dirs
20998 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20999 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21000 { (exit 1); exit 1; }; }; }
21001
21002 rm -f $ac_file
21003 mv $tmp/config.h $ac_file
21004 fi
21005 else
21006 cat $tmp/config.h
21007 rm -f $tmp/config.h
21008 fi
21009 # Compute $ac_file's index in $config_headers.
21010 _am_stamp_count=1
21011 for _am_header in $config_headers :; do
21012 case $_am_header in
21013 $ac_file | $ac_file:* )
21014 break ;;
21015 * )
21016 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21017 esac
21018 done
21019 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21020 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21021 X$ac_file : 'X\(//\)[^/]' \| \
21022 X$ac_file : 'X\(//\)$' \| \
21023 X$ac_file : 'X\(/\)' \| \
21024 . : '\(.\)' 2>/dev/null ||
21025 echo X$ac_file |
21026 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21027 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21028 /^X\(\/\/\)$/{ s//\1/; q; }
21029 /^X\(\/\).*/{ s//\1/; q; }
21030 s/.*/./; q'`/stamp-h$_am_stamp_count
21031 done
21032 _ACEOF
21033 cat >>$CONFIG_STATUS <<\_ACEOF
21034
21035 #
21036 # CONFIG_COMMANDS section.
21037 #
21038 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21039 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21040 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21041 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21042 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21043 X"$ac_dest" : 'X\(//\)[^/]' \| \
21044 X"$ac_dest" : 'X\(//\)$' \| \
21045 X"$ac_dest" : 'X\(/\)' \| \
21046 . : '\(.\)' 2>/dev/null ||
21047 echo X"$ac_dest" |
21048 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21049 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21050 /^X\(\/\/\)$/{ s//\1/; q; }
21051 /^X\(\/\).*/{ s//\1/; q; }
21052 s/.*/./; q'`
21053 { if $as_mkdir_p; then
21054 mkdir -p "$ac_dir"
21055 else
21056 as_dir="$ac_dir"
21057 as_dirs=
21058 while test ! -d "$as_dir"; do
21059 as_dirs="$as_dir $as_dirs"
21060 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21061 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21062 X"$as_dir" : 'X\(//\)[^/]' \| \
21063 X"$as_dir" : 'X\(//\)$' \| \
21064 X"$as_dir" : 'X\(/\)' \| \
21065 . : '\(.\)' 2>/dev/null ||
21066 echo X"$as_dir" |
21067 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21068 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21069 /^X\(\/\/\)$/{ s//\1/; q; }
21070 /^X\(\/\).*/{ s//\1/; q; }
21071 s/.*/./; q'`
21072 done
21073 test ! -n "$as_dirs" || mkdir $as_dirs
21074 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21075 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21076 { (exit 1); exit 1; }; }; }
21077
21078 ac_builddir=.
21079
21080 if test "$ac_dir" != .; then
21081 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21082 # A "../" for each directory in $ac_dir_suffix.
21083 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21084 else
21085 ac_dir_suffix= ac_top_builddir=
21086 fi
21087
21088 case $srcdir in
21089 .) # No --srcdir option. We are building in place.
21090 ac_srcdir=.
21091 if test -z "$ac_top_builddir"; then
21092 ac_top_srcdir=.
21093 else
21094 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21095 fi ;;
21096 [\\/]* | ?:[\\/]* ) # Absolute path.
21097 ac_srcdir=$srcdir$ac_dir_suffix;
21098 ac_top_srcdir=$srcdir ;;
21099 *) # Relative path.
21100 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21101 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21102 esac
21103
21104 # Do not use `cd foo && pwd` to compute absolute paths, because
21105 # the directories may not exist.
21106 case `pwd` in
21107 .) ac_abs_builddir="$ac_dir";;
21108 *)
21109 case "$ac_dir" in
21110 .) ac_abs_builddir=`pwd`;;
21111 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21112 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21113 esac;;
21114 esac
21115 case $ac_abs_builddir in
21116 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21117 *)
21118 case ${ac_top_builddir}. in
21119 .) ac_abs_top_builddir=$ac_abs_builddir;;
21120 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21121 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21122 esac;;
21123 esac
21124 case $ac_abs_builddir in
21125 .) ac_abs_srcdir=$ac_srcdir;;
21126 *)
21127 case $ac_srcdir in
21128 .) ac_abs_srcdir=$ac_abs_builddir;;
21129 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21130 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21131 esac;;
21132 esac
21133 case $ac_abs_builddir in
21134 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21135 *)
21136 case $ac_top_srcdir in
21137 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21138 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21139 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21140 esac;;
21141 esac
21142
21143
21144 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21145 echo "$as_me: executing $ac_dest commands" >&6;}
21146 case $ac_dest in
21147 default-1 )
21148 # Only add multilib support code if we just rebuilt the top-level
21149 # Makefile.
21150 case " $CONFIG_FILES " in
21151 *" Makefile "*)
21152 ac_file=Makefile . ${multi_basedir}/config-ml.in
21153 ;;
21154 esac ;;
21155 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21156 # Strip MF so we end up with the name of the file.
21157 mf=`echo "$mf" | sed -e 's/:.*$//'`
21158 # Check whether this is an Automake generated Makefile or not.
21159 # We used to match only the files named `Makefile.in', but
21160 # some people rename them; so instead we look at the file content.
21161 # Grep'ing the first line is not enough: some people post-process
21162 # each Makefile.in and add a new line on top of each file to say so.
21163 # So let's grep whole file.
21164 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21165 dirpart=`(dirname "$mf") 2>/dev/null ||
21166 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21167 X"$mf" : 'X\(//\)[^/]' \| \
21168 X"$mf" : 'X\(//\)$' \| \
21169 X"$mf" : 'X\(/\)' \| \
21170 . : '\(.\)' 2>/dev/null ||
21171 echo X"$mf" |
21172 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21173 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21174 /^X\(\/\/\)$/{ s//\1/; q; }
21175 /^X\(\/\).*/{ s//\1/; q; }
21176 s/.*/./; q'`
21177 else
21178 continue
21179 fi
21180 # Extract the definition of DEPDIR, am__include, and am__quote
21181 # from the Makefile without running `make'.
21182 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21183 test -z "$DEPDIR" && continue
21184 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21185 test -z "am__include" && continue
21186 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21187 # When using ansi2knr, U may be empty or an underscore; expand it
21188 U=`sed -n 's/^U = //p' < "$mf"`
21189 # Find all dependency output files, they are included files with
21190 # $(DEPDIR) in their names. We invoke sed twice because it is the
21191 # simplest approach to changing $(DEPDIR) to its actual value in the
21192 # expansion.
21193 for file in `sed -n "
21194 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21195 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21196 # Make sure the directory exists.
21197 test -f "$dirpart/$file" && continue
21198 fdir=`(dirname "$file") 2>/dev/null ||
21199 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21200 X"$file" : 'X\(//\)[^/]' \| \
21201 X"$file" : 'X\(//\)$' \| \
21202 X"$file" : 'X\(/\)' \| \
21203 . : '\(.\)' 2>/dev/null ||
21204 echo X"$file" |
21205 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21206 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21207 /^X\(\/\/\)$/{ s//\1/; q; }
21208 /^X\(\/\).*/{ s//\1/; q; }
21209 s/.*/./; q'`
21210 { if $as_mkdir_p; then
21211 mkdir -p $dirpart/$fdir
21212 else
21213 as_dir=$dirpart/$fdir
21214 as_dirs=
21215 while test ! -d "$as_dir"; do
21216 as_dirs="$as_dir $as_dirs"
21217 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21218 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21219 X"$as_dir" : 'X\(//\)[^/]' \| \
21220 X"$as_dir" : 'X\(//\)$' \| \
21221 X"$as_dir" : 'X\(/\)' \| \
21222 . : '\(.\)' 2>/dev/null ||
21223 echo X"$as_dir" |
21224 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21225 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21226 /^X\(\/\/\)$/{ s//\1/; q; }
21227 /^X\(\/\).*/{ s//\1/; q; }
21228 s/.*/./; q'`
21229 done
21230 test ! -n "$as_dirs" || mkdir $as_dirs
21231 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21232 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21233 { (exit 1); exit 1; }; }; }
21234
21235 # echo "creating $dirpart/$file"
21236 echo '# dummy' > "$dirpart/$file"
21237 done
21238 done
21239 ;;
21240 libtool )
21241
21242 # See if we are running on zsh, and set the options which allow our
21243 # commands through without removal of \ escapes.
21244 if test -n "${ZSH_VERSION+set}" ; then
21245 setopt NO_GLOB_SUBST
21246 fi
21247
21248 cfgfile="${ofile}T"
21249 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21250 $RM "$cfgfile"
21251
21252 cat <<_LT_EOF >> "$cfgfile"
21253 #! $SHELL
21254
21255 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21256 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
21257 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21258 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21259 #
21260 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21261 # 2006, 2007 Free Software Foundation, Inc.
21262 #
21263 # This file is part of GNU Libtool:
21264 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
21265 #
21266 # This program is free software; you can redistribute it and/or modify
21267 # it under the terms of the GNU General Public License as published by
21268 # the Free Software Foundation; either version 2 of the License, or
21269 # (at your option) any later version.
21270 #
21271 # This program is distributed in the hope that it will be useful, but
21272 # WITHOUT ANY WARRANTY; without even the implied warranty of
21273 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21274 # General Public License for more details.
21275 #
21276 # You should have received a copy of the GNU General Public License
21277 # along with this program; if not, a copy can be downloaded from
21278 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
21279 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
21280 # MA 02110-1301, USA.
21281 #
21282 # As a special exception to the GNU General Public License, if you
21283 # distribute this file as part of a program that contains a
21284 # configuration script generated by Autoconf, you may include it under
21285 # the same distribution terms that you use for the rest of that program.
21286
21287
21288 # The names of the tagged configurations supported by this script.
21289 available_tags="FC "
21290
21291 # ### BEGIN LIBTOOL CONFIG
21292
21293 # Which release of libtool.m4 was used?
21294 macro_version=$macro_version
21295 macro_revision=$macro_revision
21296
21297 # Whether or not to build shared libraries.
21298 build_libtool_libs=$enable_shared
21299
21300 # Whether or not to build static libraries.
21301 build_old_libs=$enable_static
21302
21303 # What type of objects to build.
21304 pic_mode=$pic_mode
21305
21306 # Whether or not to optimize for fast installation.
21307 fast_install=$enable_fast_install
21308
21309 # The host system.
21310 host_alias=$host_alias
21311 host=$host
21312 host_os=$host_os
21313
21314 # The build system.
21315 build_alias=$build_alias
21316 build=$build
21317 build_os=$build_os
21318
21319 # A sed program that does not truncate output.
21320 SED=$lt_SED
21321
21322 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21323 Xsed="\$SED -e 1s/^X//"
21324
21325 # A grep program that handles long lines.
21326 GREP=$lt_GREP
21327
21328 # An ERE matcher.
21329 EGREP=$lt_EGREP
21330
21331 # A literal string matcher.
21332 FGREP=$lt_FGREP
21333
21334 # A BSD- or MS-compatible name lister.
21335 NM=$lt_NM
21336
21337 # Whether we need soft or hard links.
21338 LN_S=$lt_LN_S
21339
21340 # What is the maximum length of a command?
21341 max_cmd_len=$max_cmd_len
21342
21343 # Object file suffix (normally "o").
21344 objext=$ac_objext
21345
21346 # Executable file suffix (normally "").
21347 exeext=$exeext
21348
21349 # whether the shell understands "unset".
21350 lt_unset=$lt_unset
21351
21352 # turn spaces into newlines.
21353 SP2NL=$lt_lt_SP2NL
21354
21355 # turn newlines into spaces.
21356 NL2SP=$lt_lt_NL2SP
21357
21358 # How to create reloadable object files.
21359 reload_flag=$lt_reload_flag
21360 reload_cmds=$lt_reload_cmds
21361
21362 # Method to check whether dependent libraries are shared objects.
21363 deplibs_check_method=$lt_deplibs_check_method
21364
21365 # Command to use when deplibs_check_method == "file_magic".
21366 file_magic_cmd=$lt_file_magic_cmd
21367
21368 # The archiver.
21369 AR=$lt_AR
21370 AR_FLAGS=$lt_AR_FLAGS
21371
21372 # A symbol stripping program.
21373 STRIP=$lt_STRIP
21374
21375 # Commands used to install an old-style archive.
21376 RANLIB=$lt_RANLIB
21377 old_postinstall_cmds=$lt_old_postinstall_cmds
21378 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21379
21380 # A C compiler.
21381 LTCC=$lt_CC
21382
21383 # LTCC compiler flags.
21384 LTCFLAGS=$lt_CFLAGS
21385
21386 # Take the output of nm and produce a listing of raw symbols and C names.
21387 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21388
21389 # Transform the output of nm in a proper C declaration.
21390 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21391
21392 # Transform the output of nm in a C name address pair.
21393 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21394
21395 # The name of the directory that contains temporary libtool files.
21396 objdir=$objdir
21397
21398 # Shell to use when invoking shell scripts.
21399 SHELL=$lt_SHELL
21400
21401 # An echo program that does not interpret backslashes.
21402 ECHO=$lt_ECHO
21403
21404 # Used to examine libraries when file_magic_cmd begins with "file".
21405 MAGIC_CMD=$MAGIC_CMD
21406
21407 # Must we lock files when doing compilation?
21408 need_locks=$lt_need_locks
21409
21410 # Old archive suffix (normally "a").
21411 libext=$libext
21412
21413 # Shared library suffix (normally ".so").
21414 shrext_cmds=$lt_shrext_cmds
21415
21416 # The commands to extract the exported symbol list from a shared archive.
21417 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21418
21419 # Variables whose values should be saved in libtool wrapper scripts and
21420 # restored at link time.
21421 variables_saved_for_relink=$lt_variables_saved_for_relink
21422
21423 # Do we need the "lib" prefix for modules?
21424 need_lib_prefix=$need_lib_prefix
21425
21426 # Do we need a version for libraries?
21427 need_version=$need_version
21428
21429 # Library versioning type.
21430 version_type=$version_type
21431
21432 # Shared library runtime path variable.
21433 runpath_var=$runpath_var
21434
21435 # Shared library path variable.
21436 shlibpath_var=$shlibpath_var
21437
21438 # Is shlibpath searched before the hard-coded library search path?
21439 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21440
21441 # Format of library name prefix.
21442 libname_spec=$lt_libname_spec
21443
21444 # List of archive names. First name is the real one, the rest are links.
21445 # The last name is the one that the linker finds with -lNAME
21446 library_names_spec=$lt_library_names_spec
21447
21448 # The coded name of the library, if different from the real name.
21449 soname_spec=$lt_soname_spec
21450
21451 # Command to use after installation of a shared archive.
21452 postinstall_cmds=$lt_postinstall_cmds
21453
21454 # Command to use after uninstallation of a shared archive.
21455 postuninstall_cmds=$lt_postuninstall_cmds
21456
21457 # Commands used to finish a libtool library installation in a directory.
21458 finish_cmds=$lt_finish_cmds
21459
21460 # As "finish_cmds", except a single script fragment to be evaled but
21461 # not shown.
21462 finish_eval=$lt_finish_eval
21463
21464 # Whether we should hardcode library paths into libraries.
21465 hardcode_into_libs=$hardcode_into_libs
21466
21467 # Compile-time system search path for libraries.
21468 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21469
21470 # Run-time system search path for libraries.
21471 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21472
21473 # Whether dlopen is supported.
21474 dlopen_support=$enable_dlopen
21475
21476 # Whether dlopen of programs is supported.
21477 dlopen_self=$enable_dlopen_self
21478
21479 # Whether dlopen of statically linked programs is supported.
21480 dlopen_self_static=$enable_dlopen_self_static
21481
21482 # Commands to strip libraries.
21483 old_striplib=$lt_old_striplib
21484 striplib=$lt_striplib
21485
21486
21487 # The linker used to build libraries.
21488 LD=$lt_LD
21489
21490 # Commands used to build an old-style archive.
21491 old_archive_cmds=$lt_old_archive_cmds
21492
21493 # A language specific compiler.
21494 CC=$lt_compiler
21495
21496 # Is the compiler the GNU compiler?
21497 with_gcc=$GCC
21498
21499 # Compiler flag to turn off builtin functions.
21500 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21501
21502 # How to pass a linker flag through the compiler.
21503 wl=$lt_lt_prog_compiler_wl
21504
21505 # Additional compiler flags for building library objects.
21506 pic_flag=$lt_lt_prog_compiler_pic
21507
21508 # Compiler flag to prevent dynamic linking.
21509 link_static_flag=$lt_lt_prog_compiler_static
21510
21511 # Does compiler simultaneously support -c and -o options?
21512 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21513
21514 # Whether or not to add -lc for building shared libraries.
21515 build_libtool_need_lc=$archive_cmds_need_lc
21516
21517 # Whether or not to disallow shared libs when runtime libs are static.
21518 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21519
21520 # Compiler flag to allow reflexive dlopens.
21521 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21522
21523 # Compiler flag to generate shared objects directly from archives.
21524 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21525
21526 # Whether the compiler copes with passing no objects directly.
21527 compiler_needs_object=$lt_compiler_needs_object
21528
21529 # Create an old-style archive from a shared archive.
21530 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21531
21532 # Create a temporary old-style archive to link instead of a shared archive.
21533 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21534
21535 # Commands used to build a shared archive.
21536 archive_cmds=$lt_archive_cmds
21537 archive_expsym_cmds=$lt_archive_expsym_cmds
21538
21539 # Commands used to build a loadable module if different from building
21540 # a shared archive.
21541 module_cmds=$lt_module_cmds
21542 module_expsym_cmds=$lt_module_expsym_cmds
21543
21544 # Whether we are building with GNU ld or not.
21545 with_gnu_ld=$lt_with_gnu_ld
21546
21547 # Flag that allows shared libraries with undefined symbols to be built.
21548 allow_undefined_flag=$lt_allow_undefined_flag
21549
21550 # Flag that enforces no undefined symbols.
21551 no_undefined_flag=$lt_no_undefined_flag
21552
21553 # Flag to hardcode \$libdir into a binary during linking.
21554 # This must work even if \$libdir does not exist
21555 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21556
21557 # If ld is used when linking, flag to hardcode \$libdir into a binary
21558 # during linking. This must work even if \$libdir does not exist.
21559 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
21560
21561 # Whether we need a single "-rpath" flag with a separated argument.
21562 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21563
21564 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21565 # DIR into the resulting binary.
21566 hardcode_direct=$hardcode_direct
21567
21568 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21569 # DIR into the resulting binary and the resulting library dependency is
21570 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21571 # library is relocated.
21572 hardcode_direct_absolute=$hardcode_direct_absolute
21573
21574 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21575 # into the resulting binary.
21576 hardcode_minus_L=$hardcode_minus_L
21577
21578 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21579 # into the resulting binary.
21580 hardcode_shlibpath_var=$hardcode_shlibpath_var
21581
21582 # Set to "yes" if building a shared library automatically hardcodes DIR
21583 # into the library and all subsequent libraries and executables linked
21584 # against it.
21585 hardcode_automatic=$hardcode_automatic
21586
21587 # Set to yes if linker adds runtime paths of dependent libraries
21588 # to runtime path list.
21589 inherit_rpath=$inherit_rpath
21590
21591 # Whether libtool must link a program against all its dependency libraries.
21592 link_all_deplibs=$link_all_deplibs
21593
21594 # Fix the shell variable \$srcfile for the compiler.
21595 fix_srcfile_path=$lt_fix_srcfile_path
21596
21597 # Set to "yes" if exported symbols are required.
21598 always_export_symbols=$always_export_symbols
21599
21600 # The commands to list exported symbols.
21601 export_symbols_cmds=$lt_export_symbols_cmds
21602
21603 # Symbols that should not be listed in the preloaded symbols.
21604 exclude_expsyms=$lt_exclude_expsyms
21605
21606 # Symbols that must always be exported.
21607 include_expsyms=$lt_include_expsyms
21608
21609 # Commands necessary for linking programs (against libraries) with templates.
21610 prelink_cmds=$lt_prelink_cmds
21611
21612 # Specify filename containing input files.
21613 file_list_spec=$lt_file_list_spec
21614
21615 # How to hardcode a shared library path into an executable.
21616 hardcode_action=$hardcode_action
21617
21618 # Dependencies to place before and after the objects being linked to
21619 # create a shared library.
21620 predep_objects=$lt_predep_objects
21621 postdep_objects=$lt_postdep_objects
21622 predeps=$lt_predeps
21623 postdeps=$lt_postdeps
21624
21625 # The library search path used internally by the compiler when linking
21626 # a shared library.
21627 compiler_lib_search_path=$lt_compiler_lib_search_path
21628
21629 # ### END LIBTOOL CONFIG
21630
21631 _LT_EOF
21632
21633 case $host_os in
21634 aix3*)
21635 cat <<\_LT_EOF >> "$cfgfile"
21636 # AIX sometimes has problems with the GCC collect2 program. For some
21637 # reason, if we set the COLLECT_NAMES environment variable, the problems
21638 # vanish in a puff of smoke.
21639 if test "X${COLLECT_NAMES+set}" != Xset; then
21640 COLLECT_NAMES=
21641 export COLLECT_NAMES
21642 fi
21643 _LT_EOF
21644 ;;
21645 esac
21646
21647
21648 ltmain="$ac_aux_dir/ltmain.sh"
21649
21650
21651 # We use sed instead of cat because bash on DJGPP gets confused if
21652 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21653 # text mode, it properly converts lines to CR/LF. This bash problem
21654 # is reportedly fixed, but why not run on old versions too?
21655 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
21656 || (rm -f "$cfgfile"; exit 1)
21657
21658 case $xsi_shell in
21659 yes)
21660 cat << \_LT_EOF >> "$cfgfile"
21661 # func_dirname file append nondir_replacement
21662 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
21663 # otherwise set result to NONDIR_REPLACEMENT.
21664 func_dirname ()
21665 {
21666 case ${1} in
21667 */*) func_dirname_result="${1%/*}${2}" ;;
21668 * ) func_dirname_result="${3}" ;;
21669 esac
21670 }
21671
21672 # func_basename file
21673 func_basename ()
21674 {
21675 func_basename_result="${1##*/}"
21676 }
21677
21678 # func_stripname prefix suffix name
21679 # strip PREFIX and SUFFIX off of NAME.
21680 # PREFIX and SUFFIX must not contain globbing or regex special
21681 # characters, hashes, percent signs, but SUFFIX may contain a leading
21682 # dot (in which case that matches only a dot).
21683 func_stripname ()
21684 {
21685 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
21686 # positional parameters, so assign one to ordinary parameter first.
21687 func_stripname_result=${3}
21688 func_stripname_result=${func_stripname_result#"${1}"}
21689 func_stripname_result=${func_stripname_result%"${2}"}
21690 }
21691
21692 # func_opt_split
21693 func_opt_split ()
21694 {
21695 func_opt_split_opt=${1%%=*}
21696 func_opt_split_arg=${1#*=}
21697 }
21698
21699 # func_lo2o object
21700 func_lo2o ()
21701 {
21702 case ${1} in
21703 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
21704 *) func_lo2o_result=${1} ;;
21705 esac
21706 }
21707 _LT_EOF
21708 ;;
21709 *) # Bourne compatible functions.
21710 cat << \_LT_EOF >> "$cfgfile"
21711 # func_dirname file append nondir_replacement
21712 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
21713 # otherwise set result to NONDIR_REPLACEMENT.
21714 func_dirname ()
21715 {
21716 # Extract subdirectory from the argument.
21717 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
21718 if test "X$func_dirname_result" = "X${1}"; then
21719 func_dirname_result="${3}"
21720 else
21721 func_dirname_result="$func_dirname_result${2}"
21722 fi
21723 }
21724
21725 # func_basename file
21726 func_basename ()
21727 {
21728 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
21729 }
21730
21731 # func_stripname prefix suffix name
21732 # strip PREFIX and SUFFIX off of NAME.
21733 # PREFIX and SUFFIX must not contain globbing or regex special
21734 # characters, hashes, percent signs, but SUFFIX may contain a leading
21735 # dot (in which case that matches only a dot).
21736 # func_strip_suffix prefix name
21737 func_stripname ()
21738 {
21739 case ${2} in
21740 .*) func_stripname_result=`$ECHO "X${3}" \
21741 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
21742 *) func_stripname_result=`$ECHO "X${3}" \
21743 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
21744 esac
21745 }
21746
21747 # sed scripts:
21748 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
21749 my_sed_long_arg='1s/^-[^=]*=//'
21750
21751 # func_opt_split
21752 func_opt_split ()
21753 {
21754 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
21755 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
21756 }
21757
21758 # func_lo2o object
21759 func_lo2o ()
21760 {
21761 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
21762 }
21763 _LT_EOF
21764 esac
21765
21766 case $lt_shell_append in
21767 yes)
21768 cat << \_LT_EOF >> "$cfgfile"
21769
21770 # func_append var value
21771 # Append VALUE to the end of shell variable VAR.
21772 func_append ()
21773 {
21774 eval "$1+=\$2"
21775 }
21776 _LT_EOF
21777 ;;
21778 *)
21779 cat << \_LT_EOF >> "$cfgfile"
21780
21781 # func_append var value
21782 # Append VALUE to the end of shell variable VAR.
21783 func_append ()
21784 {
21785 eval "$1=\$$1\$2"
21786 }
21787 _LT_EOF
21788 ;;
21789 esac
21790
21791
21792 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
21793 || (rm -f "$cfgfile"; exit 1)
21794
21795 mv -f "$cfgfile" "$ofile" ||
21796 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21797 chmod +x "$ofile"
21798
21799
21800 cat <<_LT_EOF >> "$ofile"
21801
21802 # ### BEGIN LIBTOOL TAG CONFIG: FC
21803
21804 # The linker used to build libraries.
21805 LD=$lt_LD_FC
21806
21807 # Commands used to build an old-style archive.
21808 old_archive_cmds=$lt_old_archive_cmds_FC
21809
21810 # A language specific compiler.
21811 CC=$lt_compiler_FC
21812
21813 # Is the compiler the GNU compiler?
21814 with_gcc=$GCC_FC
21815
21816 # Compiler flag to turn off builtin functions.
21817 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
21818
21819 # How to pass a linker flag through the compiler.
21820 wl=$lt_lt_prog_compiler_wl_FC
21821
21822 # Additional compiler flags for building library objects.
21823 pic_flag=$lt_lt_prog_compiler_pic_FC
21824
21825 # Compiler flag to prevent dynamic linking.
21826 link_static_flag=$lt_lt_prog_compiler_static_FC
21827
21828 # Does compiler simultaneously support -c and -o options?
21829 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
21830
21831 # Whether or not to add -lc for building shared libraries.
21832 build_libtool_need_lc=$archive_cmds_need_lc_FC
21833
21834 # Whether or not to disallow shared libs when runtime libs are static.
21835 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
21836
21837 # Compiler flag to allow reflexive dlopens.
21838 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
21839
21840 # Compiler flag to generate shared objects directly from archives.
21841 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
21842
21843 # Whether the compiler copes with passing no objects directly.
21844 compiler_needs_object=$lt_compiler_needs_object_FC
21845
21846 # Create an old-style archive from a shared archive.
21847 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
21848
21849 # Create a temporary old-style archive to link instead of a shared archive.
21850 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
21851
21852 # Commands used to build a shared archive.
21853 archive_cmds=$lt_archive_cmds_FC
21854 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
21855
21856 # Commands used to build a loadable module if different from building
21857 # a shared archive.
21858 module_cmds=$lt_module_cmds_FC
21859 module_expsym_cmds=$lt_module_expsym_cmds_FC
21860
21861 # Whether we are building with GNU ld or not.
21862 with_gnu_ld=$lt_with_gnu_ld_FC
21863
21864 # Flag that allows shared libraries with undefined symbols to be built.
21865 allow_undefined_flag=$lt_allow_undefined_flag_FC
21866
21867 # Flag that enforces no undefined symbols.
21868 no_undefined_flag=$lt_no_undefined_flag_FC
21869
21870 # Flag to hardcode \$libdir into a binary during linking.
21871 # This must work even if \$libdir does not exist
21872 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
21873
21874 # If ld is used when linking, flag to hardcode \$libdir into a binary
21875 # during linking. This must work even if \$libdir does not exist.
21876 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
21877
21878 # Whether we need a single "-rpath" flag with a separated argument.
21879 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
21880
21881 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21882 # DIR into the resulting binary.
21883 hardcode_direct=$hardcode_direct_FC
21884
21885 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21886 # DIR into the resulting binary and the resulting library dependency is
21887 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21888 # library is relocated.
21889 hardcode_direct_absolute=$hardcode_direct_absolute_FC
21890
21891 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21892 # into the resulting binary.
21893 hardcode_minus_L=$hardcode_minus_L_FC
21894
21895 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21896 # into the resulting binary.
21897 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
21898
21899 # Set to "yes" if building a shared library automatically hardcodes DIR
21900 # into the library and all subsequent libraries and executables linked
21901 # against it.
21902 hardcode_automatic=$hardcode_automatic_FC
21903
21904 # Set to yes if linker adds runtime paths of dependent libraries
21905 # to runtime path list.
21906 inherit_rpath=$inherit_rpath_FC
21907
21908 # Whether libtool must link a program against all its dependency libraries.
21909 link_all_deplibs=$link_all_deplibs_FC
21910
21911 # Fix the shell variable \$srcfile for the compiler.
21912 fix_srcfile_path=$lt_fix_srcfile_path_FC
21913
21914 # Set to "yes" if exported symbols are required.
21915 always_export_symbols=$always_export_symbols_FC
21916
21917 # The commands to list exported symbols.
21918 export_symbols_cmds=$lt_export_symbols_cmds_FC
21919
21920 # Symbols that should not be listed in the preloaded symbols.
21921 exclude_expsyms=$lt_exclude_expsyms_FC
21922
21923 # Symbols that must always be exported.
21924 include_expsyms=$lt_include_expsyms_FC
21925
21926 # Commands necessary for linking programs (against libraries) with templates.
21927 prelink_cmds=$lt_prelink_cmds_FC
21928
21929 # Specify filename containing input files.
21930 file_list_spec=$lt_file_list_spec_FC
21931
21932 # How to hardcode a shared library path into an executable.
21933 hardcode_action=$hardcode_action_FC
21934
21935 # Dependencies to place before and after the objects being linked to
21936 # create a shared library.
21937 predep_objects=$lt_predep_objects_FC
21938 postdep_objects=$lt_postdep_objects_FC
21939 predeps=$lt_predeps_FC
21940 postdeps=$lt_postdeps_FC
21941
21942 # The library search path used internally by the compiler when linking
21943 # a shared library.
21944 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
21945
21946 # ### END LIBTOOL TAG CONFIG: FC
21947 _LT_EOF
21948
21949 ;;
21950 gstdint.h )
21951 if test "$GCC" = yes; then
21952 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
21953 else
21954 echo "/* generated for $CC */" > tmp-stdint.h
21955 fi
21956
21957 sed 's/^ *//' >> tmp-stdint.h <<EOF
21958
21959 #ifndef GCC_GENERATED_STDINT_H
21960 #define GCC_GENERATED_STDINT_H 1
21961
21962 #include <sys/types.h>
21963 EOF
21964
21965 if test "$acx_cv_header_stdint" != stdint.h; then
21966 echo "#include <stddef.h>" >> tmp-stdint.h
21967 fi
21968 if test "$acx_cv_header_stdint" != stddef.h; then
21969 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
21970 fi
21971
21972 sed 's/^ *//' >> tmp-stdint.h <<EOF
21973 /* glibc uses these symbols as guards to prevent redefinitions. */
21974 #ifdef __int8_t_defined
21975 #define _INT8_T
21976 #define _INT16_T
21977 #define _INT32_T
21978 #endif
21979 #ifdef __uint32_t_defined
21980 #define _UINT32_T
21981 #endif
21982
21983 EOF
21984
21985 # ----------------- done header, emit basic int types -------------
21986 if test "$acx_cv_header_stdint" = stddef.h; then
21987 sed 's/^ *//' >> tmp-stdint.h <<EOF
21988
21989 #ifndef _UINT8_T
21990 #define _UINT8_T
21991 #ifndef __uint8_t_defined
21992 #define __uint8_t_defined
21993 typedef unsigned $acx_cv_type_int8_t uint8_t;
21994 #endif
21995 #endif
21996
21997 #ifndef _UINT16_T
21998 #define _UINT16_T
21999 #ifndef __uint16_t_defined
22000 #define __uint16_t_defined
22001 typedef unsigned $acx_cv_type_int16_t uint16_t;
22002 #endif
22003 #endif
22004
22005 #ifndef _UINT32_T
22006 #define _UINT32_T
22007 #ifndef __uint32_t_defined
22008 #define __uint32_t_defined
22009 typedef unsigned $acx_cv_type_int32_t uint32_t;
22010 #endif
22011 #endif
22012
22013 #ifndef _INT8_T
22014 #define _INT8_T
22015 #ifndef __int8_t_defined
22016 #define __int8_t_defined
22017 typedef $acx_cv_type_int8_t int8_t;
22018 #endif
22019 #endif
22020
22021 #ifndef _INT16_T
22022 #define _INT16_T
22023 #ifndef __int16_t_defined
22024 #define __int16_t_defined
22025 typedef $acx_cv_type_int16_t int16_t;
22026 #endif
22027 #endif
22028
22029 #ifndef _INT32_T
22030 #define _INT32_T
22031 #ifndef __int32_t_defined
22032 #define __int32_t_defined
22033 typedef $acx_cv_type_int32_t int32_t;
22034 #endif
22035 #endif
22036 EOF
22037 elif test "$ac_cv_type_u_int32_t" = yes; then
22038 sed 's/^ *//' >> tmp-stdint.h <<EOF
22039
22040 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
22041 #ifndef _INT8_T
22042 #define _INT8_T
22043 #endif
22044 #ifndef _INT16_T
22045 #define _INT16_T
22046 #endif
22047 #ifndef _INT32_T
22048 #define _INT32_T
22049 #endif
22050
22051 #ifndef _UINT8_T
22052 #define _UINT8_T
22053 #ifndef __uint8_t_defined
22054 #define __uint8_t_defined
22055 typedef u_int8_t uint8_t;
22056 #endif
22057 #endif
22058
22059 #ifndef _UINT16_T
22060 #define _UINT16_T
22061 #ifndef __uint16_t_defined
22062 #define __uint16_t_defined
22063 typedef u_int16_t uint16_t;
22064 #endif
22065 #endif
22066
22067 #ifndef _UINT32_T
22068 #define _UINT32_T
22069 #ifndef __uint32_t_defined
22070 #define __uint32_t_defined
22071 typedef u_int32_t uint32_t;
22072 #endif
22073 #endif
22074 EOF
22075 else
22076 sed 's/^ *//' >> tmp-stdint.h <<EOF
22077
22078 /* Some systems have guard macros to prevent redefinitions, define them. */
22079 #ifndef _INT8_T
22080 #define _INT8_T
22081 #endif
22082 #ifndef _INT16_T
22083 #define _INT16_T
22084 #endif
22085 #ifndef _INT32_T
22086 #define _INT32_T
22087 #endif
22088 #ifndef _UINT8_T
22089 #define _UINT8_T
22090 #endif
22091 #ifndef _UINT16_T
22092 #define _UINT16_T
22093 #endif
22094 #ifndef _UINT32_T
22095 #define _UINT32_T
22096 #endif
22097 EOF
22098 fi
22099
22100 # ------------- done basic int types, emit int64_t types ------------
22101 if test "$ac_cv_type_uint64_t" = yes; then
22102 sed 's/^ *//' >> tmp-stdint.h <<EOF
22103
22104 /* system headers have good uint64_t and int64_t */
22105 #ifndef _INT64_T
22106 #define _INT64_T
22107 #endif
22108 #ifndef _UINT64_T
22109 #define _UINT64_T
22110 #endif
22111 EOF
22112 elif test "$ac_cv_type_u_int64_t" = yes; then
22113 sed 's/^ *//' >> tmp-stdint.h <<EOF
22114
22115 /* system headers have an u_int64_t (and int64_t) */
22116 #ifndef _INT64_T
22117 #define _INT64_T
22118 #endif
22119 #ifndef _UINT64_T
22120 #define _UINT64_T
22121 #ifndef __uint64_t_defined
22122 #define __uint64_t_defined
22123 typedef u_int64_t uint64_t;
22124 #endif
22125 #endif
22126 EOF
22127 elif test -n "$acx_cv_type_int64_t"; then
22128 sed 's/^ *//' >> tmp-stdint.h <<EOF
22129
22130 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
22131 #ifndef _INT64_T
22132 #define _INT64_T
22133 typedef $acx_cv_type_int64_t int64_t;
22134 #endif
22135 #ifndef _UINT64_T
22136 #define _UINT64_T
22137 #ifndef __uint64_t_defined
22138 #define __uint64_t_defined
22139 typedef unsigned $acx_cv_type_int64_t uint64_t;
22140 #endif
22141 #endif
22142 EOF
22143 else
22144 sed 's/^ *//' >> tmp-stdint.h <<EOF
22145
22146 /* some common heuristics for int64_t, using compiler-specific tests */
22147 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
22148 #ifndef _INT64_T
22149 #define _INT64_T
22150 #ifndef __int64_t_defined
22151 typedef long long int64_t;
22152 #endif
22153 #endif
22154 #ifndef _UINT64_T
22155 #define _UINT64_T
22156 typedef unsigned long long uint64_t;
22157 #endif
22158
22159 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
22160 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
22161 does not implement __extension__. But that compiler doesn't define
22162 __GNUC_MINOR__. */
22163 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
22164 # define __extension__
22165 # endif
22166
22167 # ifndef _INT64_T
22168 # define _INT64_T
22169 __extension__ typedef long long int64_t;
22170 # endif
22171 # ifndef _UINT64_T
22172 # define _UINT64_T
22173 __extension__ typedef unsigned long long uint64_t;
22174 # endif
22175
22176 #elif !defined __STRICT_ANSI__
22177 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
22178
22179 # ifndef _INT64_T
22180 # define _INT64_T
22181 typedef __int64 int64_t;
22182 # endif
22183 # ifndef _UINT64_T
22184 # define _UINT64_T
22185 typedef unsigned __int64 uint64_t;
22186 # endif
22187 # endif /* compiler */
22188
22189 #endif /* ANSI version */
22190 EOF
22191 fi
22192
22193 # ------------- done int64_t types, emit intptr types ------------
22194 if test "$ac_cv_type_uintptr_t" != yes; then
22195 sed 's/^ *//' >> tmp-stdint.h <<EOF
22196
22197 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
22198 #ifndef __uintptr_t_defined
22199 typedef u$acx_cv_type_intptr_t uintptr_t;
22200 #endif
22201 #ifndef __intptr_t_defined
22202 typedef $acx_cv_type_intptr_t intptr_t;
22203 #endif
22204 EOF
22205 fi
22206
22207 # ------------- done intptr types, emit int_least types ------------
22208 if test "$ac_cv_type_int_least32_t" != yes; then
22209 sed 's/^ *//' >> tmp-stdint.h <<EOF
22210
22211 /* Define int_least types */
22212 typedef int8_t int_least8_t;
22213 typedef int16_t int_least16_t;
22214 typedef int32_t int_least32_t;
22215 #ifdef _INT64_T
22216 typedef int64_t int_least64_t;
22217 #endif
22218
22219 typedef uint8_t uint_least8_t;
22220 typedef uint16_t uint_least16_t;
22221 typedef uint32_t uint_least32_t;
22222 #ifdef _UINT64_T
22223 typedef uint64_t uint_least64_t;
22224 #endif
22225 EOF
22226 fi
22227
22228 # ------------- done intptr types, emit int_fast types ------------
22229 if test "$ac_cv_type_int_fast32_t" != yes; then
22230 sed 's/^ *//' >> tmp-stdint.h <<EOF
22231
22232 /* Define int_fast types. short is often slow */
22233 typedef int8_t int_fast8_t;
22234 typedef int int_fast16_t;
22235 typedef int32_t int_fast32_t;
22236 #ifdef _INT64_T
22237 typedef int64_t int_fast64_t;
22238 #endif
22239
22240 typedef uint8_t uint_fast8_t;
22241 typedef unsigned int uint_fast16_t;
22242 typedef uint32_t uint_fast32_t;
22243 #ifdef _UINT64_T
22244 typedef uint64_t uint_fast64_t;
22245 #endif
22246 EOF
22247 fi
22248
22249 if test "$ac_cv_type_uintmax_t" != yes; then
22250 sed 's/^ *//' >> tmp-stdint.h <<EOF
22251
22252 /* Define intmax based on what we found */
22253 #ifdef _INT64_T
22254 typedef int64_t intmax_t;
22255 #else
22256 typedef long intmax_t;
22257 #endif
22258 #ifdef _UINT64_T
22259 typedef uint64_t uintmax_t;
22260 #else
22261 typedef unsigned long uintmax_t;
22262 #endif
22263 EOF
22264 fi
22265
22266 sed 's/^ *//' >> tmp-stdint.h <<EOF
22267
22268 #endif /* GCC_GENERATED_STDINT_H */
22269 EOF
22270
22271 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
22272 rm -f tmp-stdint.h
22273 else
22274 mv -f tmp-stdint.h gstdint.h
22275 fi
22276
22277 ;;
22278 esac
22279 done
22280 _ACEOF
22281
22282 cat >>$CONFIG_STATUS <<\_ACEOF
22283
22284 { (exit 0); exit 0; }
22285 _ACEOF
22286 chmod +x $CONFIG_STATUS
22287 ac_clean_files=$ac_clean_files_save
22288
22289
22290 # configure is writing to config.log, and then calls config.status.
22291 # config.status does its own redirection, appending to config.log.
22292 # Unfortunately, on DOS this fails, as config.log is still kept open
22293 # by configure, so config.status won't be able to write to it; its
22294 # output is simply discarded. So we exec the FD to /dev/null,
22295 # effectively closing config.log, so it can be properly (re)opened and
22296 # appended to by config.status. When coming back to configure, we
22297 # need to make the FD available again.
22298 if test "$no_create" != yes; then
22299 ac_cs_success=:
22300 ac_config_status_args=
22301 test "$silent" = yes &&
22302 ac_config_status_args="$ac_config_status_args --quiet"
22303 exec 5>/dev/null
22304 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22305 exec 5>>config.log
22306 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22307 # would make configure fail if this is the last instruction.
22308 $ac_cs_success || { (exit 1); exit 1; }
22309 fi
22310