]> git.ipfire.org Git - thirdparty/gcc.git/blob - libgomp/configure
b4fc9d3cc72f762afc8f2f2ad40312e8ec4f187f
[thirdparty/gcc.git] / libgomp / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for GNU Offloading and Multi Processing Runtime Library 1.0.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
100
101 ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148 esac
149 fi
150 "
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165 exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172
173 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
174 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
175 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 PATH=/empty FPATH=/empty; export PATH FPATH
178 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
179 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
180 test \$(( 1 + 1 )) = 2 || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
185 fi
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192 do
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
197 /*)
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
206 fi
207 fi
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
217
218
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228 fi
229
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
241 fi
242 exit 1
243 fi
244 fi
245 fi
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
251
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
259 {
260 { eval $1=; unset $1;}
261 }
262 as_unset=as_fn_unset
263
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
268 {
269 return $1
270 } # as_fn_set_status
271
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
276 {
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
281
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
286 {
287
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)$/{
314 s//\1/
315 q
316 }
317 /^X\(\/\).*/{
318 s//\1/
319 q
320 }
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
337 {
338 eval $1+=\$2
339 }'
340 else
341 as_fn_append ()
342 {
343 eval $1=\$$1\$2
344 }
345 fi # as_fn_append
346
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
354 {
355 as_val=$(( $* ))
356 }'
357 else
358 as_fn_arith ()
359 {
360 as_val=`expr "$@" || test $? -eq 1`
361 }
362 fi # as_fn_arith
363
364
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
371 {
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376 fi
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
380
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
386 fi
387
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
392 fi
393
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
398 fi
399
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
407 q
408 }
409 /^X\/\(\/\/\)$/{
410 s//\1/
411 q
412 }
413 /^X\/\(\/\).*/{
414 s//\1/
415 q
416 }
417 s/.*/./; q'`
418
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
441 N
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
456 }
457
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
467 *)
468 ECHO_N='-n';;
469 esac
470
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
477 fi
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
491 fi
492 else
493 as_ln_s='cp -p'
494 fi
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
497
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
503 fi
504
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
512 fi
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
524 '
525 fi
526 as_executable_p=$as_test_x
527
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537 exec 7<&0 </dev/null 6>&1
538
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544 #
545 # Initializations.
546 #
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
555
556 # Identity of this package.
557 PACKAGE_NAME='GNU Offloading and Multi Processing Runtime Library'
558 PACKAGE_TARNAME='libgomp'
559 PACKAGE_VERSION='1.0'
560 PACKAGE_STRING='GNU Offloading and Multi Processing Runtime Library 1.0'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL='http://www.gnu.org/software/libgomp/'
563
564 # Factoring default headers for most tests.
565 ac_includes_default="\
566 #include <stdio.h>
567 #ifdef HAVE_SYS_TYPES_H
568 # include <sys/types.h>
569 #endif
570 #ifdef HAVE_SYS_STAT_H
571 # include <sys/stat.h>
572 #endif
573 #ifdef STDC_HEADERS
574 # include <stdlib.h>
575 # include <stddef.h>
576 #else
577 # ifdef HAVE_STDLIB_H
578 # include <stdlib.h>
579 # endif
580 #endif
581 #ifdef HAVE_STRING_H
582 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
583 # include <memory.h>
584 # endif
585 # include <string.h>
586 #endif
587 #ifdef HAVE_STRINGS_H
588 # include <strings.h>
589 #endif
590 #ifdef HAVE_INTTYPES_H
591 # include <inttypes.h>
592 #endif
593 #ifdef HAVE_STDINT_H
594 # include <stdint.h>
595 #endif
596 #ifdef HAVE_UNISTD_H
597 # include <unistd.h>
598 #endif"
599
600 ac_header_list=
601 ac_func_list=
602 ac_subst_vars='am__EXEEXT_FALSE
603 am__EXEEXT_TRUE
604 LTLIBOBJS
605 LIBOBJS
606 get_gcc_base_ver
607 OMP_NEST_LOCK_25_KIND
608 OMP_LOCK_25_KIND
609 OMP_NEST_LOCK_25_ALIGN
610 OMP_NEST_LOCK_25_SIZE
611 OMP_LOCK_25_ALIGN
612 OMP_LOCK_25_SIZE
613 OMP_NEST_LOCK_KIND
614 OMP_LOCK_KIND
615 OMP_NEST_LOCK_ALIGN
616 OMP_NEST_LOCK_SIZE
617 OMP_LOCK_ALIGN
618 OMP_LOCK_SIZE
619 USE_FORTRAN_FALSE
620 USE_FORTRAN_TRUE
621 link_gomp
622 XLDFLAGS
623 XCFLAGS
624 config_path
625 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE
626 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE
627 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE
628 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE
629 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE
630 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE
631 OPT_LDFLAGS
632 SECTION_LDFLAGS
633 PLUGIN_HSA_FALSE
634 PLUGIN_HSA_TRUE
635 PLUGIN_NVPTX_FALSE
636 PLUGIN_NVPTX_TRUE
637 offload_additional_lib_paths
638 offload_additional_options
639 PLUGIN_HSA_LIBS
640 PLUGIN_HSA_LDFLAGS
641 PLUGIN_HSA_CPPFLAGS
642 PLUGIN_HSA
643 HSA_RUNTIME_LIB
644 HSA_RUNTIME_INCLUDE
645 PLUGIN_NVPTX_LIBS
646 PLUGIN_NVPTX_LDFLAGS
647 PLUGIN_NVPTX_CPPFLAGS
648 PLUGIN_NVPTX
649 CUDA_DRIVER_LIB
650 CUDA_DRIVER_INCLUDE
651 offload_targets
652 libtool_VERSION
653 ac_ct_FC
654 FCFLAGS
655 FC
656 MAINT
657 MAINTAINER_MODE_FALSE
658 MAINTAINER_MODE_TRUE
659 enable_static
660 enable_shared
661 lt_host_flags
662 CPP
663 OTOOL64
664 OTOOL
665 LIPO
666 NMEDIT
667 DSYMUTIL
668 OBJDUMP
669 LN_S
670 NM
671 ac_ct_DUMPBIN
672 DUMPBIN
673 LD
674 FGREP
675 EGREP
676 GREP
677 SED
678 LIBTOOL
679 BUILD_INFO_FALSE
680 BUILD_INFO_TRUE
681 PERL
682 RANLIB
683 AR
684 am__fastdepCC_FALSE
685 am__fastdepCC_TRUE
686 CCDEPMODE
687 am__nodep
688 AMDEPBACKSLASH
689 AMDEP_FALSE
690 AMDEP_TRUE
691 am__quote
692 am__include
693 DEPDIR
694 OBJEXT
695 EXEEXT
696 ac_ct_CC
697 CPPFLAGS
698 LDFLAGS
699 CFLAGS
700 CC
701 toolexeclibdir
702 toolexecdir
703 multi_basedir
704 am__untar
705 am__tar
706 AMTAR
707 am__leading_dot
708 SET_MAKE
709 AWK
710 mkdir_p
711 MKDIR_P
712 INSTALL_STRIP_PROGRAM
713 STRIP
714 install_sh
715 MAKEINFO
716 AUTOHEADER
717 AUTOMAKE
718 AUTOCONF
719 ACLOCAL
720 VERSION
721 PACKAGE
722 CYGPATH_W
723 am__isrc
724 INSTALL_DATA
725 INSTALL_SCRIPT
726 INSTALL_PROGRAM
727 target_os
728 target_vendor
729 target_cpu
730 target
731 host_os
732 host_vendor
733 host_cpu
734 host
735 build_os
736 build_vendor
737 build_cpu
738 build
739 GENINSRC_FALSE
740 GENINSRC_TRUE
741 target_alias
742 host_alias
743 build_alias
744 LIBS
745 ECHO_T
746 ECHO_N
747 ECHO_C
748 DEFS
749 mandir
750 localedir
751 libdir
752 psdir
753 pdfdir
754 dvidir
755 htmldir
756 infodir
757 docdir
758 oldincludedir
759 includedir
760 localstatedir
761 sharedstatedir
762 sysconfdir
763 datadir
764 datarootdir
765 libexecdir
766 sbindir
767 bindir
768 program_transform_name
769 prefix
770 exec_prefix
771 PACKAGE_URL
772 PACKAGE_BUGREPORT
773 PACKAGE_STRING
774 PACKAGE_VERSION
775 PACKAGE_TARNAME
776 PACKAGE_NAME
777 PATH_SEPARATOR
778 SHELL'
779 ac_subst_files=''
780 ac_user_opts='
781 enable_option_checking
782 enable_version_specific_runtime_libs
783 enable_generated_files_in_srcdir
784 enable_multilib
785 enable_dependency_tracking
786 enable_shared
787 enable_static
788 with_pic
789 enable_fast_install
790 with_gnu_ld
791 enable_libtool_lock
792 enable_maintainer_mode
793 with_cuda_driver
794 with_cuda_driver_include
795 with_cuda_driver_lib
796 with_hsa_runtime
797 with_hsa_runtime_include
798 with_hsa_runtime_lib
799 enable_linux_futex
800 enable_tls
801 enable_symvers
802 enable_cet
803 with_gcc_major_version_only
804 '
805 ac_precious_vars='build_alias
806 host_alias
807 target_alias
808 CPP
809 CPPFLAGS
810 FC
811 FCFLAGS
812 LDFLAGS
813 LIBS'
814
815
816 # Initialize some variables set by options.
817 ac_init_help=
818 ac_init_version=false
819 ac_unrecognized_opts=
820 ac_unrecognized_sep=
821 # The variables have the same names as the options, with
822 # dashes changed to underlines.
823 cache_file=/dev/null
824 exec_prefix=NONE
825 no_create=
826 no_recursion=
827 prefix=NONE
828 program_prefix=NONE
829 program_suffix=NONE
830 program_transform_name=s,x,x,
831 silent=
832 site=
833 srcdir=
834 verbose=
835 x_includes=NONE
836 x_libraries=NONE
837
838 # Installation directory options.
839 # These are left unexpanded so users can "make install exec_prefix=/foo"
840 # and all the variables that are supposed to be based on exec_prefix
841 # by default will actually change.
842 # Use braces instead of parens because sh, perl, etc. also accept them.
843 # (The list follows the same order as the GNU Coding Standards.)
844 bindir='${exec_prefix}/bin'
845 sbindir='${exec_prefix}/sbin'
846 libexecdir='${exec_prefix}/libexec'
847 datarootdir='${prefix}/share'
848 datadir='${datarootdir}'
849 sysconfdir='${prefix}/etc'
850 sharedstatedir='${prefix}/com'
851 localstatedir='${prefix}/var'
852 includedir='${prefix}/include'
853 oldincludedir='/usr/include'
854 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
855 infodir='${datarootdir}/info'
856 htmldir='${docdir}'
857 dvidir='${docdir}'
858 pdfdir='${docdir}'
859 psdir='${docdir}'
860 libdir='${exec_prefix}/lib'
861 localedir='${datarootdir}/locale'
862 mandir='${datarootdir}/man'
863
864 ac_prev=
865 ac_dashdash=
866 for ac_option
867 do
868 # If the previous option needs an argument, assign it.
869 if test -n "$ac_prev"; then
870 eval $ac_prev=\$ac_option
871 ac_prev=
872 continue
873 fi
874
875 case $ac_option in
876 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
877 *) ac_optarg=yes ;;
878 esac
879
880 # Accept the important Cygnus configure options, so we can diagnose typos.
881
882 case $ac_dashdash$ac_option in
883 --)
884 ac_dashdash=yes ;;
885
886 -bindir | --bindir | --bindi | --bind | --bin | --bi)
887 ac_prev=bindir ;;
888 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
889 bindir=$ac_optarg ;;
890
891 -build | --build | --buil | --bui | --bu)
892 ac_prev=build_alias ;;
893 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
894 build_alias=$ac_optarg ;;
895
896 -cache-file | --cache-file | --cache-fil | --cache-fi \
897 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
898 ac_prev=cache_file ;;
899 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
900 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
901 cache_file=$ac_optarg ;;
902
903 --config-cache | -C)
904 cache_file=config.cache ;;
905
906 -datadir | --datadir | --datadi | --datad)
907 ac_prev=datadir ;;
908 -datadir=* | --datadir=* | --datadi=* | --datad=*)
909 datadir=$ac_optarg ;;
910
911 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
912 | --dataroo | --dataro | --datar)
913 ac_prev=datarootdir ;;
914 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
915 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
916 datarootdir=$ac_optarg ;;
917
918 -disable-* | --disable-*)
919 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
920 # Reject names that are not valid shell variable names.
921 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
922 as_fn_error "invalid feature name: $ac_useropt"
923 ac_useropt_orig=$ac_useropt
924 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
925 case $ac_user_opts in
926 *"
927 "enable_$ac_useropt"
928 "*) ;;
929 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
930 ac_unrecognized_sep=', ';;
931 esac
932 eval enable_$ac_useropt=no ;;
933
934 -docdir | --docdir | --docdi | --doc | --do)
935 ac_prev=docdir ;;
936 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
937 docdir=$ac_optarg ;;
938
939 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
940 ac_prev=dvidir ;;
941 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
942 dvidir=$ac_optarg ;;
943
944 -enable-* | --enable-*)
945 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
946 # Reject names that are not valid shell variable names.
947 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
948 as_fn_error "invalid feature name: $ac_useropt"
949 ac_useropt_orig=$ac_useropt
950 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
951 case $ac_user_opts in
952 *"
953 "enable_$ac_useropt"
954 "*) ;;
955 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
956 ac_unrecognized_sep=', ';;
957 esac
958 eval enable_$ac_useropt=\$ac_optarg ;;
959
960 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
961 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
962 | --exec | --exe | --ex)
963 ac_prev=exec_prefix ;;
964 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
965 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
966 | --exec=* | --exe=* | --ex=*)
967 exec_prefix=$ac_optarg ;;
968
969 -gas | --gas | --ga | --g)
970 # Obsolete; use --with-gas.
971 with_gas=yes ;;
972
973 -help | --help | --hel | --he | -h)
974 ac_init_help=long ;;
975 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
976 ac_init_help=recursive ;;
977 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
978 ac_init_help=short ;;
979
980 -host | --host | --hos | --ho)
981 ac_prev=host_alias ;;
982 -host=* | --host=* | --hos=* | --ho=*)
983 host_alias=$ac_optarg ;;
984
985 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
986 ac_prev=htmldir ;;
987 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
988 | --ht=*)
989 htmldir=$ac_optarg ;;
990
991 -includedir | --includedir | --includedi | --included | --include \
992 | --includ | --inclu | --incl | --inc)
993 ac_prev=includedir ;;
994 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
995 | --includ=* | --inclu=* | --incl=* | --inc=*)
996 includedir=$ac_optarg ;;
997
998 -infodir | --infodir | --infodi | --infod | --info | --inf)
999 ac_prev=infodir ;;
1000 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1001 infodir=$ac_optarg ;;
1002
1003 -libdir | --libdir | --libdi | --libd)
1004 ac_prev=libdir ;;
1005 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1006 libdir=$ac_optarg ;;
1007
1008 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1009 | --libexe | --libex | --libe)
1010 ac_prev=libexecdir ;;
1011 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1012 | --libexe=* | --libex=* | --libe=*)
1013 libexecdir=$ac_optarg ;;
1014
1015 -localedir | --localedir | --localedi | --localed | --locale)
1016 ac_prev=localedir ;;
1017 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1018 localedir=$ac_optarg ;;
1019
1020 -localstatedir | --localstatedir | --localstatedi | --localstated \
1021 | --localstate | --localstat | --localsta | --localst | --locals)
1022 ac_prev=localstatedir ;;
1023 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1024 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1025 localstatedir=$ac_optarg ;;
1026
1027 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1028 ac_prev=mandir ;;
1029 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1030 mandir=$ac_optarg ;;
1031
1032 -nfp | --nfp | --nf)
1033 # Obsolete; use --without-fp.
1034 with_fp=no ;;
1035
1036 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1037 | --no-cr | --no-c | -n)
1038 no_create=yes ;;
1039
1040 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1041 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1042 no_recursion=yes ;;
1043
1044 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1045 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1046 | --oldin | --oldi | --old | --ol | --o)
1047 ac_prev=oldincludedir ;;
1048 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1049 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1050 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1051 oldincludedir=$ac_optarg ;;
1052
1053 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1054 ac_prev=prefix ;;
1055 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1056 prefix=$ac_optarg ;;
1057
1058 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1059 | --program-pre | --program-pr | --program-p)
1060 ac_prev=program_prefix ;;
1061 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1062 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1063 program_prefix=$ac_optarg ;;
1064
1065 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1066 | --program-suf | --program-su | --program-s)
1067 ac_prev=program_suffix ;;
1068 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1069 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1070 program_suffix=$ac_optarg ;;
1071
1072 -program-transform-name | --program-transform-name \
1073 | --program-transform-nam | --program-transform-na \
1074 | --program-transform-n | --program-transform- \
1075 | --program-transform | --program-transfor \
1076 | --program-transfo | --program-transf \
1077 | --program-trans | --program-tran \
1078 | --progr-tra | --program-tr | --program-t)
1079 ac_prev=program_transform_name ;;
1080 -program-transform-name=* | --program-transform-name=* \
1081 | --program-transform-nam=* | --program-transform-na=* \
1082 | --program-transform-n=* | --program-transform-=* \
1083 | --program-transform=* | --program-transfor=* \
1084 | --program-transfo=* | --program-transf=* \
1085 | --program-trans=* | --program-tran=* \
1086 | --progr-tra=* | --program-tr=* | --program-t=*)
1087 program_transform_name=$ac_optarg ;;
1088
1089 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1090 ac_prev=pdfdir ;;
1091 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1092 pdfdir=$ac_optarg ;;
1093
1094 -psdir | --psdir | --psdi | --psd | --ps)
1095 ac_prev=psdir ;;
1096 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1097 psdir=$ac_optarg ;;
1098
1099 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1100 | -silent | --silent | --silen | --sile | --sil)
1101 silent=yes ;;
1102
1103 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1104 ac_prev=sbindir ;;
1105 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1106 | --sbi=* | --sb=*)
1107 sbindir=$ac_optarg ;;
1108
1109 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1110 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1111 | --sharedst | --shareds | --shared | --share | --shar \
1112 | --sha | --sh)
1113 ac_prev=sharedstatedir ;;
1114 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1115 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1116 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1117 | --sha=* | --sh=*)
1118 sharedstatedir=$ac_optarg ;;
1119
1120 -site | --site | --sit)
1121 ac_prev=site ;;
1122 -site=* | --site=* | --sit=*)
1123 site=$ac_optarg ;;
1124
1125 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1126 ac_prev=srcdir ;;
1127 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1128 srcdir=$ac_optarg ;;
1129
1130 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1131 | --syscon | --sysco | --sysc | --sys | --sy)
1132 ac_prev=sysconfdir ;;
1133 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1134 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1135 sysconfdir=$ac_optarg ;;
1136
1137 -target | --target | --targe | --targ | --tar | --ta | --t)
1138 ac_prev=target_alias ;;
1139 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1140 target_alias=$ac_optarg ;;
1141
1142 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1143 verbose=yes ;;
1144
1145 -version | --version | --versio | --versi | --vers | -V)
1146 ac_init_version=: ;;
1147
1148 -with-* | --with-*)
1149 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1150 # Reject names that are not valid shell variable names.
1151 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1152 as_fn_error "invalid package name: $ac_useropt"
1153 ac_useropt_orig=$ac_useropt
1154 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1155 case $ac_user_opts in
1156 *"
1157 "with_$ac_useropt"
1158 "*) ;;
1159 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1160 ac_unrecognized_sep=', ';;
1161 esac
1162 eval with_$ac_useropt=\$ac_optarg ;;
1163
1164 -without-* | --without-*)
1165 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1166 # Reject names that are not valid shell variable names.
1167 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1168 as_fn_error "invalid package name: $ac_useropt"
1169 ac_useropt_orig=$ac_useropt
1170 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1171 case $ac_user_opts in
1172 *"
1173 "with_$ac_useropt"
1174 "*) ;;
1175 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1176 ac_unrecognized_sep=', ';;
1177 esac
1178 eval with_$ac_useropt=no ;;
1179
1180 --x)
1181 # Obsolete; use --with-x.
1182 with_x=yes ;;
1183
1184 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1185 | --x-incl | --x-inc | --x-in | --x-i)
1186 ac_prev=x_includes ;;
1187 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1188 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1189 x_includes=$ac_optarg ;;
1190
1191 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1192 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1193 ac_prev=x_libraries ;;
1194 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1195 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1196 x_libraries=$ac_optarg ;;
1197
1198 -*) as_fn_error "unrecognized option: \`$ac_option'
1199 Try \`$0 --help' for more information."
1200 ;;
1201
1202 *=*)
1203 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1204 # Reject names that are not valid shell variable names.
1205 case $ac_envvar in #(
1206 '' | [0-9]* | *[!_$as_cr_alnum]* )
1207 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1208 esac
1209 eval $ac_envvar=\$ac_optarg
1210 export $ac_envvar ;;
1211
1212 *)
1213 # FIXME: should be removed in autoconf 3.0.
1214 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1215 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1216 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1217 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1218 ;;
1219
1220 esac
1221 done
1222
1223 if test -n "$ac_prev"; then
1224 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1225 as_fn_error "missing argument to $ac_option"
1226 fi
1227
1228 if test -n "$ac_unrecognized_opts"; then
1229 case $enable_option_checking in
1230 no) ;;
1231 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1232 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1233 esac
1234 fi
1235
1236 # Check all directory arguments for consistency.
1237 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1238 datadir sysconfdir sharedstatedir localstatedir includedir \
1239 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1240 libdir localedir mandir
1241 do
1242 eval ac_val=\$$ac_var
1243 # Remove trailing slashes.
1244 case $ac_val in
1245 */ )
1246 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1247 eval $ac_var=\$ac_val;;
1248 esac
1249 # Be sure to have absolute directory names.
1250 case $ac_val in
1251 [\\/$]* | ?:[\\/]* ) continue;;
1252 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1253 esac
1254 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1255 done
1256
1257 # There might be people who depend on the old broken behavior: `$host'
1258 # used to hold the argument of --host etc.
1259 # FIXME: To remove some day.
1260 build=$build_alias
1261 host=$host_alias
1262 target=$target_alias
1263
1264 # FIXME: To remove some day.
1265 if test "x$host_alias" != x; then
1266 if test "x$build_alias" = x; then
1267 cross_compiling=maybe
1268 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1269 If a cross compiler is detected then cross compile mode will be used." >&2
1270 elif test "x$build_alias" != "x$host_alias"; then
1271 cross_compiling=yes
1272 fi
1273 fi
1274
1275 ac_tool_prefix=
1276 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1277
1278 test "$silent" = yes && exec 6>/dev/null
1279
1280
1281 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1282 ac_ls_di=`ls -di .` &&
1283 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1284 as_fn_error "working directory cannot be determined"
1285 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1286 as_fn_error "pwd does not report name of working directory"
1287
1288
1289 # Find the source files, if location was not specified.
1290 if test -z "$srcdir"; then
1291 ac_srcdir_defaulted=yes
1292 # Try the directory containing this script, then the parent directory.
1293 ac_confdir=`$as_dirname -- "$as_myself" ||
1294 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1295 X"$as_myself" : 'X\(//\)[^/]' \| \
1296 X"$as_myself" : 'X\(//\)$' \| \
1297 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1298 $as_echo X"$as_myself" |
1299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1300 s//\1/
1301 q
1302 }
1303 /^X\(\/\/\)[^/].*/{
1304 s//\1/
1305 q
1306 }
1307 /^X\(\/\/\)$/{
1308 s//\1/
1309 q
1310 }
1311 /^X\(\/\).*/{
1312 s//\1/
1313 q
1314 }
1315 s/.*/./; q'`
1316 srcdir=$ac_confdir
1317 if test ! -r "$srcdir/$ac_unique_file"; then
1318 srcdir=..
1319 fi
1320 else
1321 ac_srcdir_defaulted=no
1322 fi
1323 if test ! -r "$srcdir/$ac_unique_file"; then
1324 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1325 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1326 fi
1327 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1328 ac_abs_confdir=`(
1329 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1330 pwd)`
1331 # When building in place, set srcdir=.
1332 if test "$ac_abs_confdir" = "$ac_pwd"; then
1333 srcdir=.
1334 fi
1335 # Remove unnecessary trailing slashes from srcdir.
1336 # Double slashes in file names in object file debugging info
1337 # mess up M-x gdb in Emacs.
1338 case $srcdir in
1339 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1340 esac
1341 for ac_var in $ac_precious_vars; do
1342 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1343 eval ac_env_${ac_var}_value=\$${ac_var}
1344 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1345 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1346 done
1347
1348 #
1349 # Report the --help message.
1350 #
1351 if test "$ac_init_help" = "long"; then
1352 # Omit some internal or obsolete options to make the list less imposing.
1353 # This message is too long to be a string in the A/UX 3.1 sh.
1354 cat <<_ACEOF
1355 \`configure' configures GNU Offloading and Multi Processing Runtime Library 1.0 to adapt to many kinds of systems.
1356
1357 Usage: $0 [OPTION]... [VAR=VALUE]...
1358
1359 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1360 VAR=VALUE. See below for descriptions of some of the useful variables.
1361
1362 Defaults for the options are specified in brackets.
1363
1364 Configuration:
1365 -h, --help display this help and exit
1366 --help=short display options specific to this package
1367 --help=recursive display the short help of all the included packages
1368 -V, --version display version information and exit
1369 -q, --quiet, --silent do not print \`checking...' messages
1370 --cache-file=FILE cache test results in FILE [disabled]
1371 -C, --config-cache alias for \`--cache-file=config.cache'
1372 -n, --no-create do not create output files
1373 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1374
1375 Installation directories:
1376 --prefix=PREFIX install architecture-independent files in PREFIX
1377 [$ac_default_prefix]
1378 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1379 [PREFIX]
1380
1381 By default, \`make install' will install all the files in
1382 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1383 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1384 for instance \`--prefix=\$HOME'.
1385
1386 For better control, use the options below.
1387
1388 Fine tuning of the installation directories:
1389 --bindir=DIR user executables [EPREFIX/bin]
1390 --sbindir=DIR system admin executables [EPREFIX/sbin]
1391 --libexecdir=DIR program executables [EPREFIX/libexec]
1392 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1393 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1394 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1395 --libdir=DIR object code libraries [EPREFIX/lib]
1396 --includedir=DIR C header files [PREFIX/include]
1397 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1398 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1399 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1400 --infodir=DIR info documentation [DATAROOTDIR/info]
1401 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1402 --mandir=DIR man documentation [DATAROOTDIR/man]
1403 --docdir=DIR documentation root [DATAROOTDIR/doc/libgomp]
1404 --htmldir=DIR html documentation [DOCDIR]
1405 --dvidir=DIR dvi documentation [DOCDIR]
1406 --pdfdir=DIR pdf documentation [DOCDIR]
1407 --psdir=DIR ps documentation [DOCDIR]
1408 _ACEOF
1409
1410 cat <<\_ACEOF
1411
1412 Program names:
1413 --program-prefix=PREFIX prepend PREFIX to installed program names
1414 --program-suffix=SUFFIX append SUFFIX to installed program names
1415 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1416
1417 System types:
1418 --build=BUILD configure for building on BUILD [guessed]
1419 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1420 --target=TARGET configure for building compilers for TARGET [HOST]
1421 _ACEOF
1422 fi
1423
1424 if test -n "$ac_init_help"; then
1425 case $ac_init_help in
1426 short | recursive ) echo "Configuration of GNU Offloading and Multi Processing Runtime Library 1.0:";;
1427 esac
1428 cat <<\_ACEOF
1429
1430 Optional Features:
1431 --disable-option-checking ignore unrecognized --enable/--with options
1432 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1433 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1434 --enable-version-specific-runtime-libs
1435 Specify that runtime libraries should be installed
1436 in a compiler-specific directory [default=no]
1437 --enable-generated-files-in-srcdir
1438 put copies of generated files in source dir intended
1439 for creating source tarballs for users without
1440 texinfo bison or flex. [default=no]
1441 --enable-multilib build many library versions (default)
1442 --disable-dependency-tracking speeds up one-time build
1443 --enable-dependency-tracking do not reject slow dependency extractors
1444 --enable-shared[=PKGS] build shared libraries [default=yes]
1445 --enable-static[=PKGS] build static libraries [default=yes]
1446 --enable-fast-install[=PKGS]
1447 optimize for fast installation [default=yes]
1448 --disable-libtool-lock avoid locking (might break parallel builds)
1449 --enable-maintainer-mode enable make rules and dependencies not useful
1450 (and sometimes confusing) to the casual installer
1451 --enable-linux-futex use the Linux futex system call [default=default]
1452 --enable-tls Use thread-local storage [default=yes]
1453 --enable-symvers=STYLE enables symbol versioning of the shared library
1454 [default=yes]
1455 --enable-cet enable Intel CET in target libraries [default=no]
1456
1457 Optional Packages:
1458 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1459 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1460 --with-pic try to use only PIC/non-PIC objects [default=use
1461 both]
1462 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1463 --with-cuda-driver=PATH specify prefix directory for installed CUDA driver
1464 package. Equivalent to
1465 --with-cuda-driver-include=PATH/include plus
1466 --with-cuda-driver-lib=PATH/lib
1467 --with-cuda-driver-include=PATH
1468 specify directory for installed CUDA driver include
1469 files
1470 --with-cuda-driver-lib=PATH
1471 specify directory for the installed CUDA driver
1472 library
1473 --with-hsa-runtime=PATH specify prefix directory for installed HSA run-time
1474 package. Equivalent to
1475 --with-hsa-runtime-include=PATH/include plus
1476 --with-hsa-runtime-lib=PATH/lib
1477 --with-hsa-runtime-include=PATH
1478 specify directory for installed HSA run-time include
1479 files
1480 --with-hsa-runtime-lib=PATH
1481 specify directory for the installed HSA run-time
1482 library
1483 --with-gcc-major-version-only
1484 use only GCC major number in filesystem paths
1485
1486 Some influential environment variables:
1487 CC C compiler command
1488 CFLAGS C compiler flags
1489 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1490 nonstandard directory <lib dir>
1491 LIBS libraries to pass to the linker, e.g. -l<library>
1492 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1493 you have headers in a nonstandard directory <include dir>
1494 CPP C preprocessor
1495 FC Fortran compiler command
1496 FCFLAGS Fortran compiler flags
1497
1498 Use these variables to override the choices made by `configure' or to help
1499 it to find libraries and programs with nonstandard names/locations.
1500
1501 Report bugs to the package provider.
1502 GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
1503 General help using GNU software: <http://www.gnu.org/gethelp/>.
1504 _ACEOF
1505 ac_status=$?
1506 fi
1507
1508 if test "$ac_init_help" = "recursive"; then
1509 # If there are subdirs, report their specific --help.
1510 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1511 test -d "$ac_dir" ||
1512 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1513 continue
1514 ac_builddir=.
1515
1516 case "$ac_dir" in
1517 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1518 *)
1519 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1520 # A ".." for each directory in $ac_dir_suffix.
1521 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1522 case $ac_top_builddir_sub in
1523 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1524 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1525 esac ;;
1526 esac
1527 ac_abs_top_builddir=$ac_pwd
1528 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1529 # for backward compatibility:
1530 ac_top_builddir=$ac_top_build_prefix
1531
1532 case $srcdir in
1533 .) # We are building in place.
1534 ac_srcdir=.
1535 ac_top_srcdir=$ac_top_builddir_sub
1536 ac_abs_top_srcdir=$ac_pwd ;;
1537 [\\/]* | ?:[\\/]* ) # Absolute name.
1538 ac_srcdir=$srcdir$ac_dir_suffix;
1539 ac_top_srcdir=$srcdir
1540 ac_abs_top_srcdir=$srcdir ;;
1541 *) # Relative name.
1542 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1543 ac_top_srcdir=$ac_top_build_prefix$srcdir
1544 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1545 esac
1546 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1547
1548 cd "$ac_dir" || { ac_status=$?; continue; }
1549 # Check for guested configure.
1550 if test -f "$ac_srcdir/configure.gnu"; then
1551 echo &&
1552 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1553 elif test -f "$ac_srcdir/configure"; then
1554 echo &&
1555 $SHELL "$ac_srcdir/configure" --help=recursive
1556 else
1557 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1558 fi || ac_status=$?
1559 cd "$ac_pwd" || { ac_status=$?; break; }
1560 done
1561 fi
1562
1563 test -n "$ac_init_help" && exit $ac_status
1564 if $ac_init_version; then
1565 cat <<\_ACEOF
1566 GNU Offloading and Multi Processing Runtime Library configure 1.0
1567 generated by GNU Autoconf 2.64
1568
1569 Copyright (C) 2009 Free Software Foundation, Inc.
1570 This configure script is free software; the Free Software Foundation
1571 gives unlimited permission to copy, distribute and modify it.
1572 _ACEOF
1573 exit
1574 fi
1575
1576 ## ------------------------ ##
1577 ## Autoconf initialization. ##
1578 ## ------------------------ ##
1579
1580 # ac_fn_c_try_compile LINENO
1581 # --------------------------
1582 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1583 ac_fn_c_try_compile ()
1584 {
1585 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1586 rm -f conftest.$ac_objext
1587 if { { ac_try="$ac_compile"
1588 case "(($ac_try" in
1589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1590 *) ac_try_echo=$ac_try;;
1591 esac
1592 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1593 $as_echo "$ac_try_echo"; } >&5
1594 (eval "$ac_compile") 2>conftest.err
1595 ac_status=$?
1596 if test -s conftest.err; then
1597 grep -v '^ *+' conftest.err >conftest.er1
1598 cat conftest.er1 >&5
1599 mv -f conftest.er1 conftest.err
1600 fi
1601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1602 test $ac_status = 0; } && {
1603 test -z "$ac_c_werror_flag" ||
1604 test ! -s conftest.err
1605 } && test -s conftest.$ac_objext; then :
1606 ac_retval=0
1607 else
1608 $as_echo "$as_me: failed program was:" >&5
1609 sed 's/^/| /' conftest.$ac_ext >&5
1610
1611 ac_retval=1
1612 fi
1613 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1614 return $ac_retval
1615
1616 } # ac_fn_c_try_compile
1617
1618 # ac_fn_c_try_link LINENO
1619 # -----------------------
1620 # Try to link conftest.$ac_ext, and return whether this succeeded.
1621 ac_fn_c_try_link ()
1622 {
1623 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1624 rm -f conftest.$ac_objext conftest$ac_exeext
1625 if { { ac_try="$ac_link"
1626 case "(($ac_try" in
1627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1628 *) ac_try_echo=$ac_try;;
1629 esac
1630 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1631 $as_echo "$ac_try_echo"; } >&5
1632 (eval "$ac_link") 2>conftest.err
1633 ac_status=$?
1634 if test -s conftest.err; then
1635 grep -v '^ *+' conftest.err >conftest.er1
1636 cat conftest.er1 >&5
1637 mv -f conftest.er1 conftest.err
1638 fi
1639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1640 test $ac_status = 0; } && {
1641 test -z "$ac_c_werror_flag" ||
1642 test ! -s conftest.err
1643 } && test -s conftest$ac_exeext && {
1644 test "$cross_compiling" = yes ||
1645 $as_test_x conftest$ac_exeext
1646 }; then :
1647 ac_retval=0
1648 else
1649 $as_echo "$as_me: failed program was:" >&5
1650 sed 's/^/| /' conftest.$ac_ext >&5
1651
1652 ac_retval=1
1653 fi
1654 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1655 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1656 # interfere with the next link command; also delete a directory that is
1657 # left behind by Apple's compiler. We do this before executing the actions.
1658 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1659 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1660 return $ac_retval
1661
1662 } # ac_fn_c_try_link
1663
1664 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1665 # -------------------------------------------------------
1666 # Tests whether HEADER exists and can be compiled using the include files in
1667 # INCLUDES, setting the cache variable VAR accordingly.
1668 ac_fn_c_check_header_compile ()
1669 {
1670 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1672 $as_echo_n "checking for $2... " >&6; }
1673 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1674 $as_echo_n "(cached) " >&6
1675 else
1676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1677 /* end confdefs.h. */
1678 $4
1679 #include <$2>
1680 _ACEOF
1681 if ac_fn_c_try_compile "$LINENO"; then :
1682 eval "$3=yes"
1683 else
1684 eval "$3=no"
1685 fi
1686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1687 fi
1688 eval ac_res=\$$3
1689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1690 $as_echo "$ac_res" >&6; }
1691 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1692
1693 } # ac_fn_c_check_header_compile
1694
1695 # ac_fn_c_try_cpp LINENO
1696 # ----------------------
1697 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1698 ac_fn_c_try_cpp ()
1699 {
1700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701 if { { ac_try="$ac_cpp conftest.$ac_ext"
1702 case "(($ac_try" in
1703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1704 *) ac_try_echo=$ac_try;;
1705 esac
1706 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1707 $as_echo "$ac_try_echo"; } >&5
1708 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1709 ac_status=$?
1710 if test -s conftest.err; then
1711 grep -v '^ *+' conftest.err >conftest.er1
1712 cat conftest.er1 >&5
1713 mv -f conftest.er1 conftest.err
1714 fi
1715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1716 test $ac_status = 0; } >/dev/null && {
1717 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1718 test ! -s conftest.err
1719 }; then :
1720 ac_retval=0
1721 else
1722 $as_echo "$as_me: failed program was:" >&5
1723 sed 's/^/| /' conftest.$ac_ext >&5
1724
1725 ac_retval=1
1726 fi
1727 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1728 return $ac_retval
1729
1730 } # ac_fn_c_try_cpp
1731
1732 # ac_fn_c_try_run LINENO
1733 # ----------------------
1734 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1735 # that executables *can* be run.
1736 ac_fn_c_try_run ()
1737 {
1738 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739 if { { ac_try="$ac_link"
1740 case "(($ac_try" in
1741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1742 *) ac_try_echo=$ac_try;;
1743 esac
1744 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1745 $as_echo "$ac_try_echo"; } >&5
1746 (eval "$ac_link") 2>&5
1747 ac_status=$?
1748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1749 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1750 { { case "(($ac_try" in
1751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1752 *) ac_try_echo=$ac_try;;
1753 esac
1754 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1755 $as_echo "$ac_try_echo"; } >&5
1756 (eval "$ac_try") 2>&5
1757 ac_status=$?
1758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1759 test $ac_status = 0; }; }; then :
1760 ac_retval=0
1761 else
1762 $as_echo "$as_me: program exited with status $ac_status" >&5
1763 $as_echo "$as_me: failed program was:" >&5
1764 sed 's/^/| /' conftest.$ac_ext >&5
1765
1766 ac_retval=$ac_status
1767 fi
1768 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1769 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1770 return $ac_retval
1771
1772 } # ac_fn_c_try_run
1773
1774 # ac_fn_c_check_func LINENO FUNC VAR
1775 # ----------------------------------
1776 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1777 ac_fn_c_check_func ()
1778 {
1779 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1781 $as_echo_n "checking for $2... " >&6; }
1782 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1783 $as_echo_n "(cached) " >&6
1784 else
1785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1786 /* end confdefs.h. */
1787 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1788 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1789 #define $2 innocuous_$2
1790
1791 /* System header to define __stub macros and hopefully few prototypes,
1792 which can conflict with char $2 (); below.
1793 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1794 <limits.h> exists even on freestanding compilers. */
1795
1796 #ifdef __STDC__
1797 # include <limits.h>
1798 #else
1799 # include <assert.h>
1800 #endif
1801
1802 #undef $2
1803
1804 /* Override any GCC internal prototype to avoid an error.
1805 Use char because int might match the return type of a GCC
1806 builtin and then its argument prototype would still apply. */
1807 #ifdef __cplusplus
1808 extern "C"
1809 #endif
1810 char $2 ();
1811 /* The GNU C library defines this for functions which it implements
1812 to always fail with ENOSYS. Some functions are actually named
1813 something starting with __ and the normal name is an alias. */
1814 #if defined __stub_$2 || defined __stub___$2
1815 choke me
1816 #endif
1817
1818 int
1819 main ()
1820 {
1821 return $2 ();
1822 ;
1823 return 0;
1824 }
1825 _ACEOF
1826 if ac_fn_c_try_link "$LINENO"; then :
1827 eval "$3=yes"
1828 else
1829 eval "$3=no"
1830 fi
1831 rm -f core conftest.err conftest.$ac_objext \
1832 conftest$ac_exeext conftest.$ac_ext
1833 fi
1834 eval ac_res=\$$3
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1836 $as_echo "$ac_res" >&6; }
1837 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1838
1839 } # ac_fn_c_check_func
1840
1841 # ac_fn_fc_try_compile LINENO
1842 # ---------------------------
1843 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1844 ac_fn_fc_try_compile ()
1845 {
1846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847 rm -f conftest.$ac_objext
1848 if { { ac_try="$ac_compile"
1849 case "(($ac_try" in
1850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1851 *) ac_try_echo=$ac_try;;
1852 esac
1853 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1854 $as_echo "$ac_try_echo"; } >&5
1855 (eval "$ac_compile") 2>conftest.err
1856 ac_status=$?
1857 if test -s conftest.err; then
1858 grep -v '^ *+' conftest.err >conftest.er1
1859 cat conftest.er1 >&5
1860 mv -f conftest.er1 conftest.err
1861 fi
1862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1863 test $ac_status = 0; } && {
1864 test -z "$ac_fc_werror_flag" ||
1865 test ! -s conftest.err
1866 } && test -s conftest.$ac_objext; then :
1867 ac_retval=0
1868 else
1869 $as_echo "$as_me: failed program was:" >&5
1870 sed 's/^/| /' conftest.$ac_ext >&5
1871
1872 ac_retval=1
1873 fi
1874 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1875 return $ac_retval
1876
1877 } # ac_fn_fc_try_compile
1878
1879 # ac_fn_fc_try_link LINENO
1880 # ------------------------
1881 # Try to link conftest.$ac_ext, and return whether this succeeded.
1882 ac_fn_fc_try_link ()
1883 {
1884 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1885 rm -f conftest.$ac_objext conftest$ac_exeext
1886 if { { ac_try="$ac_link"
1887 case "(($ac_try" in
1888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1889 *) ac_try_echo=$ac_try;;
1890 esac
1891 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1892 $as_echo "$ac_try_echo"; } >&5
1893 (eval "$ac_link") 2>conftest.err
1894 ac_status=$?
1895 if test -s conftest.err; then
1896 grep -v '^ *+' conftest.err >conftest.er1
1897 cat conftest.er1 >&5
1898 mv -f conftest.er1 conftest.err
1899 fi
1900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1901 test $ac_status = 0; } && {
1902 test -z "$ac_fc_werror_flag" ||
1903 test ! -s conftest.err
1904 } && test -s conftest$ac_exeext && {
1905 test "$cross_compiling" = yes ||
1906 $as_test_x conftest$ac_exeext
1907 }; then :
1908 ac_retval=0
1909 else
1910 $as_echo "$as_me: failed program was:" >&5
1911 sed 's/^/| /' conftest.$ac_ext >&5
1912
1913 ac_retval=1
1914 fi
1915 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1916 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1917 # interfere with the next link command; also delete a directory that is
1918 # left behind by Apple's compiler. We do this before executing the actions.
1919 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1920 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1921 return $ac_retval
1922
1923 } # ac_fn_fc_try_link
1924
1925 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1926 # -------------------------------------------------------
1927 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1928 # the include files in INCLUDES and setting the cache variable VAR
1929 # accordingly.
1930 ac_fn_c_check_header_mongrel ()
1931 {
1932 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1933 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1935 $as_echo_n "checking for $2... " >&6; }
1936 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1937 $as_echo_n "(cached) " >&6
1938 fi
1939 eval ac_res=\$$3
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1941 $as_echo "$ac_res" >&6; }
1942 else
1943 # Is the header compilable?
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1945 $as_echo_n "checking $2 usability... " >&6; }
1946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1947 /* end confdefs.h. */
1948 $4
1949 #include <$2>
1950 _ACEOF
1951 if ac_fn_c_try_compile "$LINENO"; then :
1952 ac_header_compiler=yes
1953 else
1954 ac_header_compiler=no
1955 fi
1956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1958 $as_echo "$ac_header_compiler" >&6; }
1959
1960 # Is the header present?
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1962 $as_echo_n "checking $2 presence... " >&6; }
1963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1964 /* end confdefs.h. */
1965 #include <$2>
1966 _ACEOF
1967 if ac_fn_c_try_cpp "$LINENO"; then :
1968 ac_header_preproc=yes
1969 else
1970 ac_header_preproc=no
1971 fi
1972 rm -f conftest.err conftest.$ac_ext
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1974 $as_echo "$ac_header_preproc" >&6; }
1975
1976 # So? What about this header?
1977 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1978 yes:no: )
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1980 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1982 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1983 ;;
1984 no:yes:* )
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1986 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1988 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1990 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1992 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1994 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1995 ;;
1996 esac
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1998 $as_echo_n "checking for $2... " >&6; }
1999 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2000 $as_echo_n "(cached) " >&6
2001 else
2002 eval "$3=\$ac_header_compiler"
2003 fi
2004 eval ac_res=\$$3
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2006 $as_echo "$ac_res" >&6; }
2007 fi
2008 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2009
2010 } # ac_fn_c_check_header_mongrel
2011
2012 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2013 # -------------------------------------------
2014 # Tests whether TYPE exists after having included INCLUDES, setting cache
2015 # variable VAR accordingly.
2016 ac_fn_c_check_type ()
2017 {
2018 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2020 $as_echo_n "checking for $2... " >&6; }
2021 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2022 $as_echo_n "(cached) " >&6
2023 else
2024 eval "$3=no"
2025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2026 /* end confdefs.h. */
2027 $4
2028 int
2029 main ()
2030 {
2031 if (sizeof ($2))
2032 return 0;
2033 ;
2034 return 0;
2035 }
2036 _ACEOF
2037 if ac_fn_c_try_compile "$LINENO"; then :
2038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2039 /* end confdefs.h. */
2040 $4
2041 int
2042 main ()
2043 {
2044 if (sizeof (($2)))
2045 return 0;
2046 ;
2047 return 0;
2048 }
2049 _ACEOF
2050 if ac_fn_c_try_compile "$LINENO"; then :
2051
2052 else
2053 eval "$3=yes"
2054 fi
2055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2056 fi
2057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2058 fi
2059 eval ac_res=\$$3
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2061 $as_echo "$ac_res" >&6; }
2062 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2063
2064 } # ac_fn_c_check_type
2065
2066 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2067 # --------------------------------------------
2068 # Tries to find the compile-time value of EXPR in a program that includes
2069 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2070 # computed
2071 ac_fn_c_compute_int ()
2072 {
2073 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2074 if test "$cross_compiling" = yes; then
2075 # Depending upon the size, compute the lo and hi bounds.
2076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2077 /* end confdefs.h. */
2078 $4
2079 int
2080 main ()
2081 {
2082 static int test_array [1 - 2 * !(($2) >= 0)];
2083 test_array [0] = 0
2084
2085 ;
2086 return 0;
2087 }
2088 _ACEOF
2089 if ac_fn_c_try_compile "$LINENO"; then :
2090 ac_lo=0 ac_mid=0
2091 while :; do
2092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2093 /* end confdefs.h. */
2094 $4
2095 int
2096 main ()
2097 {
2098 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2099 test_array [0] = 0
2100
2101 ;
2102 return 0;
2103 }
2104 _ACEOF
2105 if ac_fn_c_try_compile "$LINENO"; then :
2106 ac_hi=$ac_mid; break
2107 else
2108 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2109 if test $ac_lo -le $ac_mid; then
2110 ac_lo= ac_hi=
2111 break
2112 fi
2113 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2114 fi
2115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2116 done
2117 else
2118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2119 /* end confdefs.h. */
2120 $4
2121 int
2122 main ()
2123 {
2124 static int test_array [1 - 2 * !(($2) < 0)];
2125 test_array [0] = 0
2126
2127 ;
2128 return 0;
2129 }
2130 _ACEOF
2131 if ac_fn_c_try_compile "$LINENO"; then :
2132 ac_hi=-1 ac_mid=-1
2133 while :; do
2134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2135 /* end confdefs.h. */
2136 $4
2137 int
2138 main ()
2139 {
2140 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2141 test_array [0] = 0
2142
2143 ;
2144 return 0;
2145 }
2146 _ACEOF
2147 if ac_fn_c_try_compile "$LINENO"; then :
2148 ac_lo=$ac_mid; break
2149 else
2150 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2151 if test $ac_mid -le $ac_hi; then
2152 ac_lo= ac_hi=
2153 break
2154 fi
2155 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2156 fi
2157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2158 done
2159 else
2160 ac_lo= ac_hi=
2161 fi
2162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2163 fi
2164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2165 # Binary search between lo and hi bounds.
2166 while test "x$ac_lo" != "x$ac_hi"; do
2167 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2169 /* end confdefs.h. */
2170 $4
2171 int
2172 main ()
2173 {
2174 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2175 test_array [0] = 0
2176
2177 ;
2178 return 0;
2179 }
2180 _ACEOF
2181 if ac_fn_c_try_compile "$LINENO"; then :
2182 ac_hi=$ac_mid
2183 else
2184 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2185 fi
2186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2187 done
2188 case $ac_lo in #((
2189 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2190 '') ac_retval=1 ;;
2191 esac
2192 else
2193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2194 /* end confdefs.h. */
2195 $4
2196 static long int longval () { return $2; }
2197 static unsigned long int ulongval () { return $2; }
2198 #include <stdio.h>
2199 #include <stdlib.h>
2200 int
2201 main ()
2202 {
2203
2204 FILE *f = fopen ("conftest.val", "w");
2205 if (! f)
2206 return 1;
2207 if (($2) < 0)
2208 {
2209 long int i = longval ();
2210 if (i != ($2))
2211 return 1;
2212 fprintf (f, "%ld", i);
2213 }
2214 else
2215 {
2216 unsigned long int i = ulongval ();
2217 if (i != ($2))
2218 return 1;
2219 fprintf (f, "%lu", i);
2220 }
2221 /* Do not output a trailing newline, as this causes \r\n confusion
2222 on some platforms. */
2223 return ferror (f) || fclose (f) != 0;
2224
2225 ;
2226 return 0;
2227 }
2228 _ACEOF
2229 if ac_fn_c_try_run "$LINENO"; then :
2230 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2231 else
2232 ac_retval=1
2233 fi
2234 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2235 conftest.$ac_objext conftest.beam conftest.$ac_ext
2236 rm -f conftest.val
2237
2238 fi
2239 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2240 return $ac_retval
2241
2242 } # ac_fn_c_compute_int
2243 cat >config.log <<_ACEOF
2244 This file contains any messages produced by compilers while
2245 running configure, to aid debugging if configure makes a mistake.
2246
2247 It was created by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was
2248 generated by GNU Autoconf 2.64. Invocation command line was
2249
2250 $ $0 $@
2251
2252 _ACEOF
2253 exec 5>>config.log
2254 {
2255 cat <<_ASUNAME
2256 ## --------- ##
2257 ## Platform. ##
2258 ## --------- ##
2259
2260 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2261 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2262 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2263 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2264 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2265
2266 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2267 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2268
2269 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2270 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2271 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2272 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2273 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2274 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2275 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2276
2277 _ASUNAME
2278
2279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2280 for as_dir in $PATH
2281 do
2282 IFS=$as_save_IFS
2283 test -z "$as_dir" && as_dir=.
2284 $as_echo "PATH: $as_dir"
2285 done
2286 IFS=$as_save_IFS
2287
2288 } >&5
2289
2290 cat >&5 <<_ACEOF
2291
2292
2293 ## ----------- ##
2294 ## Core tests. ##
2295 ## ----------- ##
2296
2297 _ACEOF
2298
2299
2300 # Keep a trace of the command line.
2301 # Strip out --no-create and --no-recursion so they do not pile up.
2302 # Strip out --silent because we don't want to record it for future runs.
2303 # Also quote any args containing shell meta-characters.
2304 # Make two passes to allow for proper duplicate-argument suppression.
2305 ac_configure_args=
2306 ac_configure_args0=
2307 ac_configure_args1=
2308 ac_must_keep_next=false
2309 for ac_pass in 1 2
2310 do
2311 for ac_arg
2312 do
2313 case $ac_arg in
2314 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2315 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2316 | -silent | --silent | --silen | --sile | --sil)
2317 continue ;;
2318 *\'*)
2319 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2320 esac
2321 case $ac_pass in
2322 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2323 2)
2324 as_fn_append ac_configure_args1 " '$ac_arg'"
2325 if test $ac_must_keep_next = true; then
2326 ac_must_keep_next=false # Got value, back to normal.
2327 else
2328 case $ac_arg in
2329 *=* | --config-cache | -C | -disable-* | --disable-* \
2330 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2331 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2332 | -with-* | --with-* | -without-* | --without-* | --x)
2333 case "$ac_configure_args0 " in
2334 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2335 esac
2336 ;;
2337 -* ) ac_must_keep_next=true ;;
2338 esac
2339 fi
2340 as_fn_append ac_configure_args " '$ac_arg'"
2341 ;;
2342 esac
2343 done
2344 done
2345 { ac_configure_args0=; unset ac_configure_args0;}
2346 { ac_configure_args1=; unset ac_configure_args1;}
2347
2348 # When interrupted or exit'd, cleanup temporary files, and complete
2349 # config.log. We remove comments because anyway the quotes in there
2350 # would cause problems or look ugly.
2351 # WARNING: Use '\'' to represent an apostrophe within the trap.
2352 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2353 trap 'exit_status=$?
2354 # Save into config.log some information that might help in debugging.
2355 {
2356 echo
2357
2358 cat <<\_ASBOX
2359 ## ---------------- ##
2360 ## Cache variables. ##
2361 ## ---------------- ##
2362 _ASBOX
2363 echo
2364 # The following way of writing the cache mishandles newlines in values,
2365 (
2366 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2367 eval ac_val=\$$ac_var
2368 case $ac_val in #(
2369 *${as_nl}*)
2370 case $ac_var in #(
2371 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2372 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2373 esac
2374 case $ac_var in #(
2375 _ | IFS | as_nl) ;; #(
2376 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2377 *) { eval $ac_var=; unset $ac_var;} ;;
2378 esac ;;
2379 esac
2380 done
2381 (set) 2>&1 |
2382 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2383 *${as_nl}ac_space=\ *)
2384 sed -n \
2385 "s/'\''/'\''\\\\'\'''\''/g;
2386 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2387 ;; #(
2388 *)
2389 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2390 ;;
2391 esac |
2392 sort
2393 )
2394 echo
2395
2396 cat <<\_ASBOX
2397 ## ----------------- ##
2398 ## Output variables. ##
2399 ## ----------------- ##
2400 _ASBOX
2401 echo
2402 for ac_var in $ac_subst_vars
2403 do
2404 eval ac_val=\$$ac_var
2405 case $ac_val in
2406 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2407 esac
2408 $as_echo "$ac_var='\''$ac_val'\''"
2409 done | sort
2410 echo
2411
2412 if test -n "$ac_subst_files"; then
2413 cat <<\_ASBOX
2414 ## ------------------- ##
2415 ## File substitutions. ##
2416 ## ------------------- ##
2417 _ASBOX
2418 echo
2419 for ac_var in $ac_subst_files
2420 do
2421 eval ac_val=\$$ac_var
2422 case $ac_val in
2423 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2424 esac
2425 $as_echo "$ac_var='\''$ac_val'\''"
2426 done | sort
2427 echo
2428 fi
2429
2430 if test -s confdefs.h; then
2431 cat <<\_ASBOX
2432 ## ----------- ##
2433 ## confdefs.h. ##
2434 ## ----------- ##
2435 _ASBOX
2436 echo
2437 cat confdefs.h
2438 echo
2439 fi
2440 test "$ac_signal" != 0 &&
2441 $as_echo "$as_me: caught signal $ac_signal"
2442 $as_echo "$as_me: exit $exit_status"
2443 } >&5
2444 rm -f core *.core core.conftest.* &&
2445 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2446 exit $exit_status
2447 ' 0
2448 for ac_signal in 1 2 13 15; do
2449 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2450 done
2451 ac_signal=0
2452
2453 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2454 rm -f -r conftest* confdefs.h
2455
2456 $as_echo "/* confdefs.h */" > confdefs.h
2457
2458 # Predefined preprocessor variables.
2459
2460 cat >>confdefs.h <<_ACEOF
2461 #define PACKAGE_NAME "$PACKAGE_NAME"
2462 _ACEOF
2463
2464 cat >>confdefs.h <<_ACEOF
2465 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2466 _ACEOF
2467
2468 cat >>confdefs.h <<_ACEOF
2469 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2470 _ACEOF
2471
2472 cat >>confdefs.h <<_ACEOF
2473 #define PACKAGE_STRING "$PACKAGE_STRING"
2474 _ACEOF
2475
2476 cat >>confdefs.h <<_ACEOF
2477 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2478 _ACEOF
2479
2480 cat >>confdefs.h <<_ACEOF
2481 #define PACKAGE_URL "$PACKAGE_URL"
2482 _ACEOF
2483
2484
2485 # Let the site file select an alternate cache file if it wants to.
2486 # Prefer an explicitly selected file to automatically selected ones.
2487 ac_site_file1=NONE
2488 ac_site_file2=NONE
2489 if test -n "$CONFIG_SITE"; then
2490 ac_site_file1=$CONFIG_SITE
2491 elif test "x$prefix" != xNONE; then
2492 ac_site_file1=$prefix/share/config.site
2493 ac_site_file2=$prefix/etc/config.site
2494 else
2495 ac_site_file1=$ac_default_prefix/share/config.site
2496 ac_site_file2=$ac_default_prefix/etc/config.site
2497 fi
2498 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2499 do
2500 test "x$ac_site_file" = xNONE && continue
2501 if test -r "$ac_site_file"; then
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2503 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2504 sed 's/^/| /' "$ac_site_file" >&5
2505 . "$ac_site_file"
2506 fi
2507 done
2508
2509 if test -r "$cache_file"; then
2510 # Some versions of bash will fail to source /dev/null (special
2511 # files actually), so we avoid doing that.
2512 if test -f "$cache_file"; then
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2514 $as_echo "$as_me: loading cache $cache_file" >&6;}
2515 case $cache_file in
2516 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2517 *) . "./$cache_file";;
2518 esac
2519 fi
2520 else
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2522 $as_echo "$as_me: creating cache $cache_file" >&6;}
2523 >$cache_file
2524 fi
2525
2526 as_fn_append ac_header_list " unistd.h"
2527 as_fn_append ac_func_list " secure_getenv"
2528 as_fn_append ac_func_list " __secure_getenv"
2529 as_fn_append ac_func_list " getuid"
2530 as_fn_append ac_func_list " geteuid"
2531 as_fn_append ac_func_list " getgid"
2532 as_fn_append ac_func_list " getegid"
2533 # Check that the precious variables saved in the cache have kept the same
2534 # value.
2535 ac_cache_corrupted=false
2536 for ac_var in $ac_precious_vars; do
2537 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2538 eval ac_new_set=\$ac_env_${ac_var}_set
2539 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2540 eval ac_new_val=\$ac_env_${ac_var}_value
2541 case $ac_old_set,$ac_new_set in
2542 set,)
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2544 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2545 ac_cache_corrupted=: ;;
2546 ,set)
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2548 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2549 ac_cache_corrupted=: ;;
2550 ,);;
2551 *)
2552 if test "x$ac_old_val" != "x$ac_new_val"; then
2553 # differences in whitespace do not lead to failure.
2554 ac_old_val_w=`echo x $ac_old_val`
2555 ac_new_val_w=`echo x $ac_new_val`
2556 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2558 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2559 ac_cache_corrupted=:
2560 else
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2562 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2563 eval $ac_var=\$ac_old_val
2564 fi
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2566 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2568 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2569 fi;;
2570 esac
2571 # Pass precious variables to config.status.
2572 if test "$ac_new_set" = set; then
2573 case $ac_new_val in
2574 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2575 *) ac_arg=$ac_var=$ac_new_val ;;
2576 esac
2577 case " $ac_configure_args " in
2578 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2579 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2580 esac
2581 fi
2582 done
2583 if $ac_cache_corrupted; then
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2585 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2587 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2588 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2589 fi
2590 ## -------------------- ##
2591 ## Main body of script. ##
2592 ## -------------------- ##
2593
2594 ac_ext=c
2595 ac_cpp='$CPP $CPPFLAGS'
2596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2599
2600
2601
2602
2603
2604 ac_config_headers="$ac_config_headers config.h"
2605
2606
2607 # -------
2608 # Options
2609 # -------
2610
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2612 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2613 # Check whether --enable-version-specific-runtime-libs was given.
2614 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2615 enableval=$enable_version_specific_runtime_libs;
2616 case "$enableval" in
2617 yes|no) ;;
2618 *) as_fn_error "Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
2619 esac
2620
2621 else
2622 enable_version_specific_runtime_libs=no
2623 fi
2624
2625
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
2627 $as_echo "$enable_version_specific_runtime_libs" >&6; }
2628
2629 # We would like our source tree to be readonly. However when releases or
2630 # pre-releases are generated, the flex/bison generated files as well as the
2631 # various formats of manuals need to be included along with the rest of the
2632 # sources. Therefore we have --enable-generated-files-in-srcdir to do
2633 # just that.
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
2635 $as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
2636 # Check whether --enable-generated-files-in-srcdir was given.
2637 if test "${enable_generated_files_in_srcdir+set}" = set; then :
2638 enableval=$enable_generated_files_in_srcdir;
2639 case "$enableval" in
2640 yes|no) ;;
2641 *) as_fn_error "Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
2642 esac
2643
2644 else
2645 enable_generated_files_in_srcdir=no
2646 fi
2647
2648
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
2650 $as_echo "$enable_generated_files_in_srcdir" >&6; }
2651 if test "$enable_generated_files_in_srcdir" = yes; then
2652 GENINSRC_TRUE=
2653 GENINSRC_FALSE='#'
2654 else
2655 GENINSRC_TRUE='#'
2656 GENINSRC_FALSE=
2657 fi
2658
2659
2660
2661 # -------
2662 # -------
2663
2664 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2665 #
2666 # You will slowly go insane if you do not grok the following fact: when
2667 # building this library, the top-level /target/ becomes the library's /host/.
2668 #
2669 # configure then causes --target to default to --host, exactly like any
2670 # other package using autoconf. Therefore, 'target' and 'host' will
2671 # always be the same. This makes sense both for native and cross compilers
2672 # just think about it for a little while. :-)
2673 #
2674 # Also, if this library is being configured as part of a cross compiler, the
2675 # top-level configure script will pass the "real" host as $with_cross_host.
2676 #
2677 # Do not delete or change the following two lines. For why, see
2678 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2679 ac_aux_dir=
2680 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2681 for ac_t in install-sh install.sh shtool; do
2682 if test -f "$ac_dir/$ac_t"; then
2683 ac_aux_dir=$ac_dir
2684 ac_install_sh="$ac_aux_dir/$ac_t -c"
2685 break 2
2686 fi
2687 done
2688 done
2689 if test -z "$ac_aux_dir"; then
2690 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2691 fi
2692
2693 # These three variables are undocumented and unsupported,
2694 # and are intended to be withdrawn in a future Autoconf release.
2695 # They can cause serious problems if a builder's source tree is in a directory
2696 # whose full name contains unusual characters.
2697 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2698 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2699 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2700
2701
2702 # Make sure we can run config.sub.
2703 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2704 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2705
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2707 $as_echo_n "checking build system type... " >&6; }
2708 if test "${ac_cv_build+set}" = set; then :
2709 $as_echo_n "(cached) " >&6
2710 else
2711 ac_build_alias=$build_alias
2712 test "x$ac_build_alias" = x &&
2713 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2714 test "x$ac_build_alias" = x &&
2715 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2716 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2717 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2718
2719 fi
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2721 $as_echo "$ac_cv_build" >&6; }
2722 case $ac_cv_build in
2723 *-*-*) ;;
2724 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2725 esac
2726 build=$ac_cv_build
2727 ac_save_IFS=$IFS; IFS='-'
2728 set x $ac_cv_build
2729 shift
2730 build_cpu=$1
2731 build_vendor=$2
2732 shift; shift
2733 # Remember, the first character of IFS is used to create $*,
2734 # except with old shells:
2735 build_os=$*
2736 IFS=$ac_save_IFS
2737 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2738
2739
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2741 $as_echo_n "checking host system type... " >&6; }
2742 if test "${ac_cv_host+set}" = set; then :
2743 $as_echo_n "(cached) " >&6
2744 else
2745 if test "x$host_alias" = x; then
2746 ac_cv_host=$ac_cv_build
2747 else
2748 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2749 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2750 fi
2751
2752 fi
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2754 $as_echo "$ac_cv_host" >&6; }
2755 case $ac_cv_host in
2756 *-*-*) ;;
2757 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2758 esac
2759 host=$ac_cv_host
2760 ac_save_IFS=$IFS; IFS='-'
2761 set x $ac_cv_host
2762 shift
2763 host_cpu=$1
2764 host_vendor=$2
2765 shift; shift
2766 # Remember, the first character of IFS is used to create $*,
2767 # except with old shells:
2768 host_os=$*
2769 IFS=$ac_save_IFS
2770 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2771
2772
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2774 $as_echo_n "checking target system type... " >&6; }
2775 if test "${ac_cv_target+set}" = set; then :
2776 $as_echo_n "(cached) " >&6
2777 else
2778 if test "x$target_alias" = x; then
2779 ac_cv_target=$ac_cv_host
2780 else
2781 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2782 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2783 fi
2784
2785 fi
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2787 $as_echo "$ac_cv_target" >&6; }
2788 case $ac_cv_target in
2789 *-*-*) ;;
2790 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2791 esac
2792 target=$ac_cv_target
2793 ac_save_IFS=$IFS; IFS='-'
2794 set x $ac_cv_target
2795 shift
2796 target_cpu=$1
2797 target_vendor=$2
2798 shift; shift
2799 # Remember, the first character of IFS is used to create $*,
2800 # except with old shells:
2801 target_os=$*
2802 IFS=$ac_save_IFS
2803 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2804
2805
2806 # The aliases save the names the user supplied, while $host etc.
2807 # will get canonicalized.
2808 test -n "$target_alias" &&
2809 test "$program_prefix$program_suffix$program_transform_name" = \
2810 NONENONEs,x,x, &&
2811 program_prefix=${target_alias}-
2812
2813 target_alias=${target_alias-$host_alias}
2814
2815 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2816 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2817 # 1.9.0: minimum required version
2818 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2819 # of other PACKAGE_* variables will, however, and there's nothing
2820 # we can do about that; they come from AC_INIT).
2821 # foreign: we don't follow the normal rules for GNU packages (no COPYING
2822 # file in the top srcdir, etc, etc), so stop complaining.
2823 # no-dist: we don't want 'dist' and related rules.
2824 # -Wall: turns on all automake warnings...
2825 # -Wno-portability: ...except this one, since GNU make is required.
2826 # -Wno-override: ... and this one, since we do want this in testsuite.
2827 am__api_version='1.11'
2828
2829 # Find a good install program. We prefer a C program (faster),
2830 # so one script is as good as another. But avoid the broken or
2831 # incompatible versions:
2832 # SysV /etc/install, /usr/sbin/install
2833 # SunOS /usr/etc/install
2834 # IRIX /sbin/install
2835 # AIX /bin/install
2836 # AmigaOS /C/install, which installs bootblocks on floppy discs
2837 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2838 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2839 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2840 # OS/2's system install, which has a completely different semantic
2841 # ./install, which can be erroneously created by make from ./install.sh.
2842 # Reject install programs that cannot install multiple files.
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2844 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2845 if test -z "$INSTALL"; then
2846 if test "${ac_cv_path_install+set}" = set; then :
2847 $as_echo_n "(cached) " >&6
2848 else
2849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2850 for as_dir in $PATH
2851 do
2852 IFS=$as_save_IFS
2853 test -z "$as_dir" && as_dir=.
2854 # Account for people who put trailing slashes in PATH elements.
2855 case $as_dir/ in #((
2856 ./ | .// | /[cC]/* | \
2857 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2858 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2859 /usr/ucb/* ) ;;
2860 *)
2861 # OSF1 and SCO ODT 3.0 have their own names for install.
2862 # Don't use installbsd from OSF since it installs stuff as root
2863 # by default.
2864 for ac_prog in ginstall scoinst install; do
2865 for ac_exec_ext in '' $ac_executable_extensions; do
2866 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2867 if test $ac_prog = install &&
2868 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2869 # AIX install. It has an incompatible calling convention.
2870 :
2871 elif test $ac_prog = install &&
2872 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2873 # program-specific install script used by HP pwplus--don't use.
2874 :
2875 else
2876 rm -rf conftest.one conftest.two conftest.dir
2877 echo one > conftest.one
2878 echo two > conftest.two
2879 mkdir conftest.dir
2880 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2881 test -s conftest.one && test -s conftest.two &&
2882 test -s conftest.dir/conftest.one &&
2883 test -s conftest.dir/conftest.two
2884 then
2885 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2886 break 3
2887 fi
2888 fi
2889 fi
2890 done
2891 done
2892 ;;
2893 esac
2894
2895 done
2896 IFS=$as_save_IFS
2897
2898 rm -rf conftest.one conftest.two conftest.dir
2899
2900 fi
2901 if test "${ac_cv_path_install+set}" = set; then
2902 INSTALL=$ac_cv_path_install
2903 else
2904 # As a last resort, use the slow shell script. Don't cache a
2905 # value for INSTALL within a source directory, because that will
2906 # break other packages using the cache if that directory is
2907 # removed, or if the value is a relative name.
2908 INSTALL=$ac_install_sh
2909 fi
2910 fi
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2912 $as_echo "$INSTALL" >&6; }
2913
2914 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2915 # It thinks the first close brace ends the variable substitution.
2916 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2917
2918 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2919
2920 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2921
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2923 $as_echo_n "checking whether build environment is sane... " >&6; }
2924 # Just in case
2925 sleep 1
2926 echo timestamp > conftest.file
2927 # Reject unsafe characters in $srcdir or the absolute working directory
2928 # name. Accept space and tab only in the latter.
2929 am_lf='
2930 '
2931 case `pwd` in
2932 *[\\\"\#\$\&\'\`$am_lf]*)
2933 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2934 esac
2935 case $srcdir in
2936 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2937 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2938 esac
2939
2940 # Do `set' in a subshell so we don't clobber the current shell's
2941 # arguments. Must try -L first in case configure is actually a
2942 # symlink; some systems play weird games with the mod time of symlinks
2943 # (eg FreeBSD returns the mod time of the symlink's containing
2944 # directory).
2945 if (
2946 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2947 if test "$*" = "X"; then
2948 # -L didn't work.
2949 set X `ls -t "$srcdir/configure" conftest.file`
2950 fi
2951 rm -f conftest.file
2952 if test "$*" != "X $srcdir/configure conftest.file" \
2953 && test "$*" != "X conftest.file $srcdir/configure"; then
2954
2955 # If neither matched, then we have a broken ls. This can happen
2956 # if, for instance, CONFIG_SHELL is bash and it inherits a
2957 # broken ls alias from the environment. This has actually
2958 # happened. Such a system could not be considered "sane".
2959 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2960 alias in your environment" "$LINENO" 5
2961 fi
2962
2963 test "$2" = conftest.file
2964 )
2965 then
2966 # Ok.
2967 :
2968 else
2969 as_fn_error "newly created file is older than distributed files!
2970 Check your system clock" "$LINENO" 5
2971 fi
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2973 $as_echo "yes" >&6; }
2974 test "$program_prefix" != NONE &&
2975 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2976 # Use a double $ so make ignores it.
2977 test "$program_suffix" != NONE &&
2978 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2979 # Double any \ or $.
2980 # By default was `s,x,x', remove it if useless.
2981 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2982 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2983
2984 # expand $ac_aux_dir to an absolute path
2985 am_aux_dir=`cd $ac_aux_dir && pwd`
2986
2987 if test x"${MISSING+set}" != xset; then
2988 case $am_aux_dir in
2989 *\ * | *\ *)
2990 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2991 *)
2992 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2993 esac
2994 fi
2995 # Use eval to expand $SHELL
2996 if eval "$MISSING --run true"; then
2997 am_missing_run="$MISSING --run "
2998 else
2999 am_missing_run=
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3001 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3002 fi
3003
3004 if test x"${install_sh}" != xset; then
3005 case $am_aux_dir in
3006 *\ * | *\ *)
3007 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3008 *)
3009 install_sh="\${SHELL} $am_aux_dir/install-sh"
3010 esac
3011 fi
3012
3013 # Installed binaries are usually stripped using `strip' when the user
3014 # run `make install-strip'. However `strip' might not be the right
3015 # tool to use in cross-compilation environments, therefore Automake
3016 # will honor the `STRIP' environment variable to overrule this program.
3017 if test "$cross_compiling" != no; then
3018 if test -n "$ac_tool_prefix"; then
3019 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3020 set dummy ${ac_tool_prefix}strip; ac_word=$2
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3022 $as_echo_n "checking for $ac_word... " >&6; }
3023 if test "${ac_cv_prog_STRIP+set}" = set; then :
3024 $as_echo_n "(cached) " >&6
3025 else
3026 if test -n "$STRIP"; then
3027 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3028 else
3029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3030 for as_dir in $PATH
3031 do
3032 IFS=$as_save_IFS
3033 test -z "$as_dir" && as_dir=.
3034 for ac_exec_ext in '' $ac_executable_extensions; do
3035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3036 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3038 break 2
3039 fi
3040 done
3041 done
3042 IFS=$as_save_IFS
3043
3044 fi
3045 fi
3046 STRIP=$ac_cv_prog_STRIP
3047 if test -n "$STRIP"; then
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3049 $as_echo "$STRIP" >&6; }
3050 else
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3052 $as_echo "no" >&6; }
3053 fi
3054
3055
3056 fi
3057 if test -z "$ac_cv_prog_STRIP"; then
3058 ac_ct_STRIP=$STRIP
3059 # Extract the first word of "strip", so it can be a program name with args.
3060 set dummy strip; ac_word=$2
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3062 $as_echo_n "checking for $ac_word... " >&6; }
3063 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3064 $as_echo_n "(cached) " >&6
3065 else
3066 if test -n "$ac_ct_STRIP"; then
3067 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3068 else
3069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3070 for as_dir in $PATH
3071 do
3072 IFS=$as_save_IFS
3073 test -z "$as_dir" && as_dir=.
3074 for ac_exec_ext in '' $ac_executable_extensions; do
3075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3076 ac_cv_prog_ac_ct_STRIP="strip"
3077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3078 break 2
3079 fi
3080 done
3081 done
3082 IFS=$as_save_IFS
3083
3084 fi
3085 fi
3086 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3087 if test -n "$ac_ct_STRIP"; then
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3089 $as_echo "$ac_ct_STRIP" >&6; }
3090 else
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3092 $as_echo "no" >&6; }
3093 fi
3094
3095 if test "x$ac_ct_STRIP" = x; then
3096 STRIP=":"
3097 else
3098 case $cross_compiling:$ac_tool_warned in
3099 yes:)
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3101 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3102 ac_tool_warned=yes ;;
3103 esac
3104 STRIP=$ac_ct_STRIP
3105 fi
3106 else
3107 STRIP="$ac_cv_prog_STRIP"
3108 fi
3109
3110 fi
3111 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3112
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3114 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3115 if test -z "$MKDIR_P"; then
3116 if test "${ac_cv_path_mkdir+set}" = set; then :
3117 $as_echo_n "(cached) " >&6
3118 else
3119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3120 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3121 do
3122 IFS=$as_save_IFS
3123 test -z "$as_dir" && as_dir=.
3124 for ac_prog in mkdir gmkdir; do
3125 for ac_exec_ext in '' $ac_executable_extensions; do
3126 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3127 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3128 'mkdir (GNU coreutils) '* | \
3129 'mkdir (coreutils) '* | \
3130 'mkdir (fileutils) '4.1*)
3131 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3132 break 3;;
3133 esac
3134 done
3135 done
3136 done
3137 IFS=$as_save_IFS
3138
3139 fi
3140
3141 if test "${ac_cv_path_mkdir+set}" = set; then
3142 MKDIR_P="$ac_cv_path_mkdir -p"
3143 else
3144 # As a last resort, use the slow shell script. Don't cache a
3145 # value for MKDIR_P within a source directory, because that will
3146 # break other packages using the cache if that directory is
3147 # removed, or if the value is a relative name.
3148 test -d ./--version && rmdir ./--version
3149 MKDIR_P="$ac_install_sh -d"
3150 fi
3151 fi
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3153 $as_echo "$MKDIR_P" >&6; }
3154
3155 mkdir_p="$MKDIR_P"
3156 case $mkdir_p in
3157 [\\/$]* | ?:[\\/]*) ;;
3158 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3159 esac
3160
3161 for ac_prog in gawk mawk nawk awk
3162 do
3163 # Extract the first word of "$ac_prog", so it can be a program name with args.
3164 set dummy $ac_prog; ac_word=$2
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3166 $as_echo_n "checking for $ac_word... " >&6; }
3167 if test "${ac_cv_prog_AWK+set}" = set; then :
3168 $as_echo_n "(cached) " >&6
3169 else
3170 if test -n "$AWK"; then
3171 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3172 else
3173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3174 for as_dir in $PATH
3175 do
3176 IFS=$as_save_IFS
3177 test -z "$as_dir" && as_dir=.
3178 for ac_exec_ext in '' $ac_executable_extensions; do
3179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3180 ac_cv_prog_AWK="$ac_prog"
3181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3182 break 2
3183 fi
3184 done
3185 done
3186 IFS=$as_save_IFS
3187
3188 fi
3189 fi
3190 AWK=$ac_cv_prog_AWK
3191 if test -n "$AWK"; then
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3193 $as_echo "$AWK" >&6; }
3194 else
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3196 $as_echo "no" >&6; }
3197 fi
3198
3199
3200 test -n "$AWK" && break
3201 done
3202
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3204 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3205 set x ${MAKE-make}
3206 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3207 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3208 $as_echo_n "(cached) " >&6
3209 else
3210 cat >conftest.make <<\_ACEOF
3211 SHELL = /bin/sh
3212 all:
3213 @echo '@@@%%%=$(MAKE)=@@@%%%'
3214 _ACEOF
3215 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3216 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3217 *@@@%%%=?*=@@@%%%*)
3218 eval ac_cv_prog_make_${ac_make}_set=yes;;
3219 *)
3220 eval ac_cv_prog_make_${ac_make}_set=no;;
3221 esac
3222 rm -f conftest.make
3223 fi
3224 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3226 $as_echo "yes" >&6; }
3227 SET_MAKE=
3228 else
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3230 $as_echo "no" >&6; }
3231 SET_MAKE="MAKE=${MAKE-make}"
3232 fi
3233
3234 rm -rf .tst 2>/dev/null
3235 mkdir .tst 2>/dev/null
3236 if test -d .tst; then
3237 am__leading_dot=.
3238 else
3239 am__leading_dot=_
3240 fi
3241 rmdir .tst 2>/dev/null
3242
3243 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3244 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3245 # is not polluted with repeated "-I."
3246 am__isrc=' -I$(srcdir)'
3247 # test to see if srcdir already configured
3248 if test -f $srcdir/config.status; then
3249 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3250 fi
3251 fi
3252
3253 # test whether we have cygpath
3254 if test -z "$CYGPATH_W"; then
3255 if (cygpath --version) >/dev/null 2>/dev/null; then
3256 CYGPATH_W='cygpath -w'
3257 else
3258 CYGPATH_W=echo
3259 fi
3260 fi
3261
3262
3263 # Define the identity of the package.
3264 PACKAGE='libgomp'
3265 VERSION='1.0'
3266
3267
3268 cat >>confdefs.h <<_ACEOF
3269 #define PACKAGE "$PACKAGE"
3270 _ACEOF
3271
3272
3273 cat >>confdefs.h <<_ACEOF
3274 #define VERSION "$VERSION"
3275 _ACEOF
3276
3277 # Some tools Automake needs.
3278
3279 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3280
3281
3282 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3283
3284
3285 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3286
3287
3288 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3289
3290
3291 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3292
3293 # We need awk for the "check" target. The system "awk" is bad on
3294 # some platforms.
3295 # Always define AMTAR for backward compatibility. Yes, it's still used
3296 # in the wild :-( We should find a proper way to deprecate it ...
3297 AMTAR='$${TAR-tar}'
3298
3299 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3300
3301
3302
3303
3304
3305 # Default to --enable-multilib
3306 # Check whether --enable-multilib was given.
3307 if test "${enable_multilib+set}" = set; then :
3308 enableval=$enable_multilib; case "$enableval" in
3309 yes) multilib=yes ;;
3310 no) multilib=no ;;
3311 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3312 esac
3313 else
3314 multilib=yes
3315 fi
3316
3317
3318 # We may get other options which we leave undocumented:
3319 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3320 # See config-ml.in if you want the gory details.
3321
3322 if test "$srcdir" = "."; then
3323 if test "$with_target_subdir" != "."; then
3324 multi_basedir="$srcdir/$with_multisrctop../.."
3325 else
3326 multi_basedir="$srcdir/$with_multisrctop.."
3327 fi
3328 else
3329 multi_basedir="$srcdir/.."
3330 fi
3331
3332
3333 # Even if the default multilib is not a cross compilation,
3334 # it may be that some of the other multilibs are.
3335 if test $cross_compiling = no && test $multilib = yes \
3336 && test "x${with_multisubdir}" != x ; then
3337 cross_compiling=maybe
3338 fi
3339
3340 ac_config_commands="$ac_config_commands default-1"
3341
3342
3343 # Calculate toolexeclibdir
3344 # Also toolexecdir, though it's only used in toolexeclibdir
3345 case ${enable_version_specific_runtime_libs} in
3346 yes)
3347 # Need the gcc compiler version to know where to install libraries
3348 # and header files if --enable-version-specific-runtime-libs option
3349 # is selected.
3350 toolexecdir='$(libdir)/gcc/$(target_alias)'
3351 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3352 ;;
3353 no)
3354 if test -n "$with_cross_host" &&
3355 test x"$with_cross_host" != x"no"; then
3356 # Install a library built with a cross compiler in tooldir, not libdir.
3357 toolexecdir='$(exec_prefix)/$(target_alias)'
3358 toolexeclibdir='$(toolexecdir)/lib'
3359 else
3360 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
3361 toolexeclibdir='$(libdir)'
3362 fi
3363 multi_os_directory=`$CC -print-multi-os-directory`
3364 case $multi_os_directory in
3365 .) ;; # Avoid trailing /.
3366 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
3367 esac
3368 ;;
3369 esac
3370
3371
3372
3373 # Check the compiler.
3374 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3375 # We must force CC to /not/ be precious variables; otherwise
3376 # the wrong, non-multilib-adjusted value will be used in multilibs.
3377 # As a side effect, we have to subst CFLAGS ourselves.
3378
3379
3380
3381 ac_ext=c
3382 ac_cpp='$CPP $CPPFLAGS'
3383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3386 if test -n "$ac_tool_prefix"; then
3387 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3388 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3390 $as_echo_n "checking for $ac_word... " >&6; }
3391 if test "${ac_cv_prog_CC+set}" = set; then :
3392 $as_echo_n "(cached) " >&6
3393 else
3394 if test -n "$CC"; then
3395 ac_cv_prog_CC="$CC" # Let the user override the test.
3396 else
3397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3398 for as_dir in $PATH
3399 do
3400 IFS=$as_save_IFS
3401 test -z "$as_dir" && as_dir=.
3402 for ac_exec_ext in '' $ac_executable_extensions; do
3403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3404 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3406 break 2
3407 fi
3408 done
3409 done
3410 IFS=$as_save_IFS
3411
3412 fi
3413 fi
3414 CC=$ac_cv_prog_CC
3415 if test -n "$CC"; then
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3417 $as_echo "$CC" >&6; }
3418 else
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3420 $as_echo "no" >&6; }
3421 fi
3422
3423
3424 fi
3425 if test -z "$ac_cv_prog_CC"; then
3426 ac_ct_CC=$CC
3427 # Extract the first word of "gcc", so it can be a program name with args.
3428 set dummy gcc; ac_word=$2
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3430 $as_echo_n "checking for $ac_word... " >&6; }
3431 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3432 $as_echo_n "(cached) " >&6
3433 else
3434 if test -n "$ac_ct_CC"; then
3435 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3436 else
3437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3438 for as_dir in $PATH
3439 do
3440 IFS=$as_save_IFS
3441 test -z "$as_dir" && as_dir=.
3442 for ac_exec_ext in '' $ac_executable_extensions; do
3443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3444 ac_cv_prog_ac_ct_CC="gcc"
3445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3446 break 2
3447 fi
3448 done
3449 done
3450 IFS=$as_save_IFS
3451
3452 fi
3453 fi
3454 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3455 if test -n "$ac_ct_CC"; then
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3457 $as_echo "$ac_ct_CC" >&6; }
3458 else
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3460 $as_echo "no" >&6; }
3461 fi
3462
3463 if test "x$ac_ct_CC" = x; then
3464 CC=""
3465 else
3466 case $cross_compiling:$ac_tool_warned in
3467 yes:)
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3469 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3470 ac_tool_warned=yes ;;
3471 esac
3472 CC=$ac_ct_CC
3473 fi
3474 else
3475 CC="$ac_cv_prog_CC"
3476 fi
3477
3478 if test -z "$CC"; then
3479 if test -n "$ac_tool_prefix"; then
3480 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3481 set dummy ${ac_tool_prefix}cc; ac_word=$2
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3483 $as_echo_n "checking for $ac_word... " >&6; }
3484 if test "${ac_cv_prog_CC+set}" = set; then :
3485 $as_echo_n "(cached) " >&6
3486 else
3487 if test -n "$CC"; then
3488 ac_cv_prog_CC="$CC" # Let the user override the test.
3489 else
3490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3491 for as_dir in $PATH
3492 do
3493 IFS=$as_save_IFS
3494 test -z "$as_dir" && as_dir=.
3495 for ac_exec_ext in '' $ac_executable_extensions; do
3496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3497 ac_cv_prog_CC="${ac_tool_prefix}cc"
3498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3499 break 2
3500 fi
3501 done
3502 done
3503 IFS=$as_save_IFS
3504
3505 fi
3506 fi
3507 CC=$ac_cv_prog_CC
3508 if test -n "$CC"; then
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3510 $as_echo "$CC" >&6; }
3511 else
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3513 $as_echo "no" >&6; }
3514 fi
3515
3516
3517 fi
3518 fi
3519 if test -z "$CC"; then
3520 # Extract the first word of "cc", so it can be a program name with args.
3521 set dummy cc; ac_word=$2
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3523 $as_echo_n "checking for $ac_word... " >&6; }
3524 if test "${ac_cv_prog_CC+set}" = set; then :
3525 $as_echo_n "(cached) " >&6
3526 else
3527 if test -n "$CC"; then
3528 ac_cv_prog_CC="$CC" # Let the user override the test.
3529 else
3530 ac_prog_rejected=no
3531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3532 for as_dir in $PATH
3533 do
3534 IFS=$as_save_IFS
3535 test -z "$as_dir" && as_dir=.
3536 for ac_exec_ext in '' $ac_executable_extensions; do
3537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3538 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3539 ac_prog_rejected=yes
3540 continue
3541 fi
3542 ac_cv_prog_CC="cc"
3543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3544 break 2
3545 fi
3546 done
3547 done
3548 IFS=$as_save_IFS
3549
3550 if test $ac_prog_rejected = yes; then
3551 # We found a bogon in the path, so make sure we never use it.
3552 set dummy $ac_cv_prog_CC
3553 shift
3554 if test $# != 0; then
3555 # We chose a different compiler from the bogus one.
3556 # However, it has the same basename, so the bogon will be chosen
3557 # first if we set CC to just the basename; use the full file name.
3558 shift
3559 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3560 fi
3561 fi
3562 fi
3563 fi
3564 CC=$ac_cv_prog_CC
3565 if test -n "$CC"; then
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3567 $as_echo "$CC" >&6; }
3568 else
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3570 $as_echo "no" >&6; }
3571 fi
3572
3573
3574 fi
3575 if test -z "$CC"; then
3576 if test -n "$ac_tool_prefix"; then
3577 for ac_prog in cl.exe
3578 do
3579 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3580 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3582 $as_echo_n "checking for $ac_word... " >&6; }
3583 if test "${ac_cv_prog_CC+set}" = set; then :
3584 $as_echo_n "(cached) " >&6
3585 else
3586 if test -n "$CC"; then
3587 ac_cv_prog_CC="$CC" # Let the user override the test.
3588 else
3589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3590 for as_dir in $PATH
3591 do
3592 IFS=$as_save_IFS
3593 test -z "$as_dir" && as_dir=.
3594 for ac_exec_ext in '' $ac_executable_extensions; do
3595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3596 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3598 break 2
3599 fi
3600 done
3601 done
3602 IFS=$as_save_IFS
3603
3604 fi
3605 fi
3606 CC=$ac_cv_prog_CC
3607 if test -n "$CC"; then
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3609 $as_echo "$CC" >&6; }
3610 else
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3612 $as_echo "no" >&6; }
3613 fi
3614
3615
3616 test -n "$CC" && break
3617 done
3618 fi
3619 if test -z "$CC"; then
3620 ac_ct_CC=$CC
3621 for ac_prog in cl.exe
3622 do
3623 # Extract the first word of "$ac_prog", so it can be a program name with args.
3624 set dummy $ac_prog; ac_word=$2
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3626 $as_echo_n "checking for $ac_word... " >&6; }
3627 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3628 $as_echo_n "(cached) " >&6
3629 else
3630 if test -n "$ac_ct_CC"; then
3631 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3632 else
3633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3634 for as_dir in $PATH
3635 do
3636 IFS=$as_save_IFS
3637 test -z "$as_dir" && as_dir=.
3638 for ac_exec_ext in '' $ac_executable_extensions; do
3639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3640 ac_cv_prog_ac_ct_CC="$ac_prog"
3641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3642 break 2
3643 fi
3644 done
3645 done
3646 IFS=$as_save_IFS
3647
3648 fi
3649 fi
3650 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3651 if test -n "$ac_ct_CC"; then
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3653 $as_echo "$ac_ct_CC" >&6; }
3654 else
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3656 $as_echo "no" >&6; }
3657 fi
3658
3659
3660 test -n "$ac_ct_CC" && break
3661 done
3662
3663 if test "x$ac_ct_CC" = x; then
3664 CC=""
3665 else
3666 case $cross_compiling:$ac_tool_warned in
3667 yes:)
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3669 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3670 ac_tool_warned=yes ;;
3671 esac
3672 CC=$ac_ct_CC
3673 fi
3674 fi
3675
3676 fi
3677
3678
3679 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3680 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3681 as_fn_error "no acceptable C compiler found in \$PATH
3682 See \`config.log' for more details." "$LINENO" 5; }
3683
3684 # Provide some information about the compiler.
3685 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3686 set X $ac_compile
3687 ac_compiler=$2
3688 for ac_option in --version -v -V -qversion; do
3689 { { ac_try="$ac_compiler $ac_option >&5"
3690 case "(($ac_try" in
3691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3692 *) ac_try_echo=$ac_try;;
3693 esac
3694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3695 $as_echo "$ac_try_echo"; } >&5
3696 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3697 ac_status=$?
3698 if test -s conftest.err; then
3699 sed '10a\
3700 ... rest of stderr output deleted ...
3701 10q' conftest.err >conftest.er1
3702 cat conftest.er1 >&5
3703 rm -f conftest.er1 conftest.err
3704 fi
3705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3706 test $ac_status = 0; }
3707 done
3708
3709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3710 /* end confdefs.h. */
3711
3712 int
3713 main ()
3714 {
3715
3716 ;
3717 return 0;
3718 }
3719 _ACEOF
3720 ac_clean_files_save=$ac_clean_files
3721 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3722 # Try to create an executable without -o first, disregard a.out.
3723 # It will help us diagnose broken compilers, and finding out an intuition
3724 # of exeext.
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3726 $as_echo_n "checking for C compiler default output file name... " >&6; }
3727 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3728
3729 # The possible output files:
3730 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3731
3732 ac_rmfiles=
3733 for ac_file in $ac_files
3734 do
3735 case $ac_file in
3736 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3737 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3738 esac
3739 done
3740 rm -f $ac_rmfiles
3741
3742 if { { ac_try="$ac_link_default"
3743 case "(($ac_try" in
3744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3745 *) ac_try_echo=$ac_try;;
3746 esac
3747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3748 $as_echo "$ac_try_echo"; } >&5
3749 (eval "$ac_link_default") 2>&5
3750 ac_status=$?
3751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3752 test $ac_status = 0; }; then :
3753 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3754 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3755 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3756 # so that the user can short-circuit this test for compilers unknown to
3757 # Autoconf.
3758 for ac_file in $ac_files ''
3759 do
3760 test -f "$ac_file" || continue
3761 case $ac_file in
3762 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3763 ;;
3764 [ab].out )
3765 # We found the default executable, but exeext='' is most
3766 # certainly right.
3767 break;;
3768 *.* )
3769 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3770 then :; else
3771 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3772 fi
3773 # We set ac_cv_exeext here because the later test for it is not
3774 # safe: cross compilers may not add the suffix if given an `-o'
3775 # argument, so we may need to know it at that point already.
3776 # Even if this section looks crufty: it has the advantage of
3777 # actually working.
3778 break;;
3779 * )
3780 break;;
3781 esac
3782 done
3783 test "$ac_cv_exeext" = no && ac_cv_exeext=
3784
3785 else
3786 ac_file=''
3787 fi
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3789 $as_echo "$ac_file" >&6; }
3790 if test -z "$ac_file"; then :
3791 $as_echo "$as_me: failed program was:" >&5
3792 sed 's/^/| /' conftest.$ac_ext >&5
3793
3794 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3795 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3796 { as_fn_set_status 77
3797 as_fn_error "C compiler cannot create executables
3798 See \`config.log' for more details." "$LINENO" 5; }; }
3799 fi
3800 ac_exeext=$ac_cv_exeext
3801
3802 # Check that the compiler produces executables we can run. If not, either
3803 # the compiler is broken, or we cross compile.
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3805 $as_echo_n "checking whether the C compiler works... " >&6; }
3806 # If not cross compiling, check that we can run a simple program.
3807 if test "$cross_compiling" != yes; then
3808 if { ac_try='./$ac_file'
3809 { { case "(($ac_try" in
3810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3811 *) ac_try_echo=$ac_try;;
3812 esac
3813 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3814 $as_echo "$ac_try_echo"; } >&5
3815 (eval "$ac_try") 2>&5
3816 ac_status=$?
3817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3818 test $ac_status = 0; }; }; then
3819 cross_compiling=no
3820 else
3821 if test "$cross_compiling" = maybe; then
3822 cross_compiling=yes
3823 else
3824 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3825 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3826 as_fn_error "cannot run C compiled programs.
3827 If you meant to cross compile, use \`--host'.
3828 See \`config.log' for more details." "$LINENO" 5; }
3829 fi
3830 fi
3831 fi
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3833 $as_echo "yes" >&6; }
3834
3835 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3836 ac_clean_files=$ac_clean_files_save
3837 # Check that the compiler produces executables we can run. If not, either
3838 # the compiler is broken, or we cross compile.
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3840 $as_echo_n "checking whether we are cross compiling... " >&6; }
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3842 $as_echo "$cross_compiling" >&6; }
3843
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3845 $as_echo_n "checking for suffix of executables... " >&6; }
3846 if { { ac_try="$ac_link"
3847 case "(($ac_try" in
3848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3849 *) ac_try_echo=$ac_try;;
3850 esac
3851 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3852 $as_echo "$ac_try_echo"; } >&5
3853 (eval "$ac_link") 2>&5
3854 ac_status=$?
3855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3856 test $ac_status = 0; }; then :
3857 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3858 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3859 # work properly (i.e., refer to `conftest.exe'), while it won't with
3860 # `rm'.
3861 for ac_file in conftest.exe conftest conftest.*; do
3862 test -f "$ac_file" || continue
3863 case $ac_file in
3864 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3865 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3866 break;;
3867 * ) break;;
3868 esac
3869 done
3870 else
3871 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3872 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3873 as_fn_error "cannot compute suffix of executables: cannot compile and link
3874 See \`config.log' for more details." "$LINENO" 5; }
3875 fi
3876 rm -f conftest$ac_cv_exeext
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3878 $as_echo "$ac_cv_exeext" >&6; }
3879
3880 rm -f conftest.$ac_ext
3881 EXEEXT=$ac_cv_exeext
3882 ac_exeext=$EXEEXT
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3884 $as_echo_n "checking for suffix of object files... " >&6; }
3885 if test "${ac_cv_objext+set}" = set; then :
3886 $as_echo_n "(cached) " >&6
3887 else
3888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3889 /* end confdefs.h. */
3890
3891 int
3892 main ()
3893 {
3894
3895 ;
3896 return 0;
3897 }
3898 _ACEOF
3899 rm -f conftest.o conftest.obj
3900 if { { ac_try="$ac_compile"
3901 case "(($ac_try" in
3902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3903 *) ac_try_echo=$ac_try;;
3904 esac
3905 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3906 $as_echo "$ac_try_echo"; } >&5
3907 (eval "$ac_compile") 2>&5
3908 ac_status=$?
3909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3910 test $ac_status = 0; }; then :
3911 for ac_file in conftest.o conftest.obj conftest.*; do
3912 test -f "$ac_file" || continue;
3913 case $ac_file in
3914 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3915 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3916 break;;
3917 esac
3918 done
3919 else
3920 $as_echo "$as_me: failed program was:" >&5
3921 sed 's/^/| /' conftest.$ac_ext >&5
3922
3923 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3924 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3925 as_fn_error "cannot compute suffix of object files: cannot compile
3926 See \`config.log' for more details." "$LINENO" 5; }
3927 fi
3928 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3929 fi
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3931 $as_echo "$ac_cv_objext" >&6; }
3932 OBJEXT=$ac_cv_objext
3933 ac_objext=$OBJEXT
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3935 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3936 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3937 $as_echo_n "(cached) " >&6
3938 else
3939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3940 /* end confdefs.h. */
3941
3942 int
3943 main ()
3944 {
3945 #ifndef __GNUC__
3946 choke me
3947 #endif
3948
3949 ;
3950 return 0;
3951 }
3952 _ACEOF
3953 if ac_fn_c_try_compile "$LINENO"; then :
3954 ac_compiler_gnu=yes
3955 else
3956 ac_compiler_gnu=no
3957 fi
3958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3959 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3960
3961 fi
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3963 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3964 if test $ac_compiler_gnu = yes; then
3965 GCC=yes
3966 else
3967 GCC=
3968 fi
3969 ac_test_CFLAGS=${CFLAGS+set}
3970 ac_save_CFLAGS=$CFLAGS
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3972 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3973 if test "${ac_cv_prog_cc_g+set}" = set; then :
3974 $as_echo_n "(cached) " >&6
3975 else
3976 ac_save_c_werror_flag=$ac_c_werror_flag
3977 ac_c_werror_flag=yes
3978 ac_cv_prog_cc_g=no
3979 CFLAGS="-g"
3980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3981 /* end confdefs.h. */
3982
3983 int
3984 main ()
3985 {
3986
3987 ;
3988 return 0;
3989 }
3990 _ACEOF
3991 if ac_fn_c_try_compile "$LINENO"; then :
3992 ac_cv_prog_cc_g=yes
3993 else
3994 CFLAGS=""
3995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3996 /* end confdefs.h. */
3997
3998 int
3999 main ()
4000 {
4001
4002 ;
4003 return 0;
4004 }
4005 _ACEOF
4006 if ac_fn_c_try_compile "$LINENO"; then :
4007
4008 else
4009 ac_c_werror_flag=$ac_save_c_werror_flag
4010 CFLAGS="-g"
4011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4012 /* end confdefs.h. */
4013
4014 int
4015 main ()
4016 {
4017
4018 ;
4019 return 0;
4020 }
4021 _ACEOF
4022 if ac_fn_c_try_compile "$LINENO"; then :
4023 ac_cv_prog_cc_g=yes
4024 fi
4025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4026 fi
4027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4028 fi
4029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4030 ac_c_werror_flag=$ac_save_c_werror_flag
4031 fi
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4033 $as_echo "$ac_cv_prog_cc_g" >&6; }
4034 if test "$ac_test_CFLAGS" = set; then
4035 CFLAGS=$ac_save_CFLAGS
4036 elif test $ac_cv_prog_cc_g = yes; then
4037 if test "$GCC" = yes; then
4038 CFLAGS="-g -O2"
4039 else
4040 CFLAGS="-g"
4041 fi
4042 else
4043 if test "$GCC" = yes; then
4044 CFLAGS="-O2"
4045 else
4046 CFLAGS=
4047 fi
4048 fi
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4050 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4051 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4052 $as_echo_n "(cached) " >&6
4053 else
4054 ac_cv_prog_cc_c89=no
4055 ac_save_CC=$CC
4056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4057 /* end confdefs.h. */
4058 #include <stdarg.h>
4059 #include <stdio.h>
4060 #include <sys/types.h>
4061 #include <sys/stat.h>
4062 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4063 struct buf { int x; };
4064 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4065 static char *e (p, i)
4066 char **p;
4067 int i;
4068 {
4069 return p[i];
4070 }
4071 static char *f (char * (*g) (char **, int), char **p, ...)
4072 {
4073 char *s;
4074 va_list v;
4075 va_start (v,p);
4076 s = g (p, va_arg (v,int));
4077 va_end (v);
4078 return s;
4079 }
4080
4081 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4082 function prototypes and stuff, but not '\xHH' hex character constants.
4083 These don't provoke an error unfortunately, instead are silently treated
4084 as 'x'. The following induces an error, until -std is added to get
4085 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4086 array size at least. It's necessary to write '\x00'==0 to get something
4087 that's true only with -std. */
4088 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4089
4090 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4091 inside strings and character constants. */
4092 #define FOO(x) 'x'
4093 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4094
4095 int test (int i, double x);
4096 struct s1 {int (*f) (int a);};
4097 struct s2 {int (*f) (double a);};
4098 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4099 int argc;
4100 char **argv;
4101 int
4102 main ()
4103 {
4104 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4105 ;
4106 return 0;
4107 }
4108 _ACEOF
4109 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4110 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4111 do
4112 CC="$ac_save_CC $ac_arg"
4113 if ac_fn_c_try_compile "$LINENO"; then :
4114 ac_cv_prog_cc_c89=$ac_arg
4115 fi
4116 rm -f core conftest.err conftest.$ac_objext
4117 test "x$ac_cv_prog_cc_c89" != "xno" && break
4118 done
4119 rm -f conftest.$ac_ext
4120 CC=$ac_save_CC
4121
4122 fi
4123 # AC_CACHE_VAL
4124 case "x$ac_cv_prog_cc_c89" in
4125 x)
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4127 $as_echo "none needed" >&6; } ;;
4128 xno)
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4130 $as_echo "unsupported" >&6; } ;;
4131 *)
4132 CC="$CC $ac_cv_prog_cc_c89"
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4134 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4135 esac
4136 if test "x$ac_cv_prog_cc_c89" != xno; then :
4137
4138 fi
4139
4140 ac_ext=c
4141 ac_cpp='$CPP $CPPFLAGS'
4142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4145 DEPDIR="${am__leading_dot}deps"
4146
4147 ac_config_commands="$ac_config_commands depfiles"
4148
4149
4150 am_make=${MAKE-make}
4151 cat > confinc << 'END'
4152 am__doit:
4153 @echo this is the am__doit target
4154 .PHONY: am__doit
4155 END
4156 # If we don't find an include directive, just comment out the code.
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4158 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4159 am__include="#"
4160 am__quote=
4161 _am_result=none
4162 # First try GNU make style include.
4163 echo "include confinc" > confmf
4164 # Ignore all kinds of additional output from `make'.
4165 case `$am_make -s -f confmf 2> /dev/null` in #(
4166 *the\ am__doit\ target*)
4167 am__include=include
4168 am__quote=
4169 _am_result=GNU
4170 ;;
4171 esac
4172 # Now try BSD make style include.
4173 if test "$am__include" = "#"; then
4174 echo '.include "confinc"' > confmf
4175 case `$am_make -s -f confmf 2> /dev/null` in #(
4176 *the\ am__doit\ target*)
4177 am__include=.include
4178 am__quote="\""
4179 _am_result=BSD
4180 ;;
4181 esac
4182 fi
4183
4184
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4186 $as_echo "$_am_result" >&6; }
4187 rm -f confinc confmf
4188
4189 # Check whether --enable-dependency-tracking was given.
4190 if test "${enable_dependency_tracking+set}" = set; then :
4191 enableval=$enable_dependency_tracking;
4192 fi
4193
4194 if test "x$enable_dependency_tracking" != xno; then
4195 am_depcomp="$ac_aux_dir/depcomp"
4196 AMDEPBACKSLASH='\'
4197 am__nodep='_no'
4198 fi
4199 if test "x$enable_dependency_tracking" != xno; then
4200 AMDEP_TRUE=
4201 AMDEP_FALSE='#'
4202 else
4203 AMDEP_TRUE='#'
4204 AMDEP_FALSE=
4205 fi
4206
4207
4208
4209 depcc="$CC" am_compiler_list=
4210
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4212 $as_echo_n "checking dependency style of $depcc... " >&6; }
4213 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4214 $as_echo_n "(cached) " >&6
4215 else
4216 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4217 # We make a subdir and do the tests there. Otherwise we can end up
4218 # making bogus files that we don't know about and never remove. For
4219 # instance it was reported that on HP-UX the gcc test will end up
4220 # making a dummy file named `D' -- because `-MD' means `put the output
4221 # in D'.
4222 rm -rf conftest.dir
4223 mkdir conftest.dir
4224 # Copy depcomp to subdir because otherwise we won't find it if we're
4225 # using a relative directory.
4226 cp "$am_depcomp" conftest.dir
4227 cd conftest.dir
4228 # We will build objects and dependencies in a subdirectory because
4229 # it helps to detect inapplicable dependency modes. For instance
4230 # both Tru64's cc and ICC support -MD to output dependencies as a
4231 # side effect of compilation, but ICC will put the dependencies in
4232 # the current directory while Tru64 will put them in the object
4233 # directory.
4234 mkdir sub
4235
4236 am_cv_CC_dependencies_compiler_type=none
4237 if test "$am_compiler_list" = ""; then
4238 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4239 fi
4240 am__universal=false
4241 case " $depcc " in #(
4242 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4243 esac
4244
4245 for depmode in $am_compiler_list; do
4246 # Setup a source with many dependencies, because some compilers
4247 # like to wrap large dependency lists on column 80 (with \), and
4248 # we should not choose a depcomp mode which is confused by this.
4249 #
4250 # We need to recreate these files for each test, as the compiler may
4251 # overwrite some of them when testing with obscure command lines.
4252 # This happens at least with the AIX C compiler.
4253 : > sub/conftest.c
4254 for i in 1 2 3 4 5 6; do
4255 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4256 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4257 # Solaris 8's {/usr,}/bin/sh.
4258 touch sub/conftst$i.h
4259 done
4260 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4261
4262 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4263 # mode. It turns out that the SunPro C++ compiler does not properly
4264 # handle `-M -o', and we need to detect this. Also, some Intel
4265 # versions had trouble with output in subdirs
4266 am__obj=sub/conftest.${OBJEXT-o}
4267 am__minus_obj="-o $am__obj"
4268 case $depmode in
4269 gcc)
4270 # This depmode causes a compiler race in universal mode.
4271 test "$am__universal" = false || continue
4272 ;;
4273 nosideeffect)
4274 # after this tag, mechanisms are not by side-effect, so they'll
4275 # only be used when explicitly requested
4276 if test "x$enable_dependency_tracking" = xyes; then
4277 continue
4278 else
4279 break
4280 fi
4281 ;;
4282 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4283 # This compiler won't grok `-c -o', but also, the minuso test has
4284 # not run yet. These depmodes are late enough in the game, and
4285 # so weak that their functioning should not be impacted.
4286 am__obj=conftest.${OBJEXT-o}
4287 am__minus_obj=
4288 ;;
4289 none) break ;;
4290 esac
4291 if depmode=$depmode \
4292 source=sub/conftest.c object=$am__obj \
4293 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4294 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4295 >/dev/null 2>conftest.err &&
4296 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4297 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4298 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4299 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4300 # icc doesn't choke on unknown options, it will just issue warnings
4301 # or remarks (even with -Werror). So we grep stderr for any message
4302 # that says an option was ignored or not supported.
4303 # When given -MP, icc 7.0 and 7.1 complain thusly:
4304 # icc: Command line warning: ignoring option '-M'; no argument required
4305 # The diagnosis changed in icc 8.0:
4306 # icc: Command line remark: option '-MP' not supported
4307 if (grep 'ignoring option' conftest.err ||
4308 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4309 am_cv_CC_dependencies_compiler_type=$depmode
4310 break
4311 fi
4312 fi
4313 done
4314
4315 cd ..
4316 rm -rf conftest.dir
4317 else
4318 am_cv_CC_dependencies_compiler_type=none
4319 fi
4320
4321 fi
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4323 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4324 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4325
4326 if
4327 test "x$enable_dependency_tracking" != xno \
4328 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4329 am__fastdepCC_TRUE=
4330 am__fastdepCC_FALSE='#'
4331 else
4332 am__fastdepCC_TRUE='#'
4333 am__fastdepCC_FALSE=
4334 fi
4335
4336
4337
4338
4339
4340
4341 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
4342 # in XCFLAGS. But we need them in CFLAGS during configury. So put them
4343 # in both places for now and restore CFLAGS at the end of config.
4344 save_CFLAGS="$CFLAGS"
4345
4346 # Add -Wall -Werror if we are using GCC.
4347 if test "x$GCC" = "xyes"; then
4348 XCFLAGS="$XCFLAGS -Wall -Werror"
4349 fi
4350
4351 # Find other programs we need.
4352 if test -n "$ac_tool_prefix"; then
4353 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4354 set dummy ${ac_tool_prefix}ar; ac_word=$2
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4356 $as_echo_n "checking for $ac_word... " >&6; }
4357 if test "${ac_cv_prog_AR+set}" = set; then :
4358 $as_echo_n "(cached) " >&6
4359 else
4360 if test -n "$AR"; then
4361 ac_cv_prog_AR="$AR" # Let the user override the test.
4362 else
4363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4364 for as_dir in $PATH
4365 do
4366 IFS=$as_save_IFS
4367 test -z "$as_dir" && as_dir=.
4368 for ac_exec_ext in '' $ac_executable_extensions; do
4369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4370 ac_cv_prog_AR="${ac_tool_prefix}ar"
4371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4372 break 2
4373 fi
4374 done
4375 done
4376 IFS=$as_save_IFS
4377
4378 fi
4379 fi
4380 AR=$ac_cv_prog_AR
4381 if test -n "$AR"; then
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4383 $as_echo "$AR" >&6; }
4384 else
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4386 $as_echo "no" >&6; }
4387 fi
4388
4389
4390 fi
4391 if test -z "$ac_cv_prog_AR"; then
4392 ac_ct_AR=$AR
4393 # Extract the first word of "ar", so it can be a program name with args.
4394 set dummy ar; ac_word=$2
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4396 $as_echo_n "checking for $ac_word... " >&6; }
4397 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4398 $as_echo_n "(cached) " >&6
4399 else
4400 if test -n "$ac_ct_AR"; then
4401 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4402 else
4403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4404 for as_dir in $PATH
4405 do
4406 IFS=$as_save_IFS
4407 test -z "$as_dir" && as_dir=.
4408 for ac_exec_ext in '' $ac_executable_extensions; do
4409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4410 ac_cv_prog_ac_ct_AR="ar"
4411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4412 break 2
4413 fi
4414 done
4415 done
4416 IFS=$as_save_IFS
4417
4418 fi
4419 fi
4420 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4421 if test -n "$ac_ct_AR"; then
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4423 $as_echo "$ac_ct_AR" >&6; }
4424 else
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4426 $as_echo "no" >&6; }
4427 fi
4428
4429 if test "x$ac_ct_AR" = x; then
4430 AR=""
4431 else
4432 case $cross_compiling:$ac_tool_warned in
4433 yes:)
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4435 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4436 ac_tool_warned=yes ;;
4437 esac
4438 AR=$ac_ct_AR
4439 fi
4440 else
4441 AR="$ac_cv_prog_AR"
4442 fi
4443
4444 if test -n "$ac_tool_prefix"; then
4445 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4446 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4448 $as_echo_n "checking for $ac_word... " >&6; }
4449 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4450 $as_echo_n "(cached) " >&6
4451 else
4452 if test -n "$RANLIB"; then
4453 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4454 else
4455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4456 for as_dir in $PATH
4457 do
4458 IFS=$as_save_IFS
4459 test -z "$as_dir" && as_dir=.
4460 for ac_exec_ext in '' $ac_executable_extensions; do
4461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4462 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4464 break 2
4465 fi
4466 done
4467 done
4468 IFS=$as_save_IFS
4469
4470 fi
4471 fi
4472 RANLIB=$ac_cv_prog_RANLIB
4473 if test -n "$RANLIB"; then
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4475 $as_echo "$RANLIB" >&6; }
4476 else
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4478 $as_echo "no" >&6; }
4479 fi
4480
4481
4482 fi
4483 if test -z "$ac_cv_prog_RANLIB"; then
4484 ac_ct_RANLIB=$RANLIB
4485 # Extract the first word of "ranlib", so it can be a program name with args.
4486 set dummy ranlib; ac_word=$2
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4488 $as_echo_n "checking for $ac_word... " >&6; }
4489 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4490 $as_echo_n "(cached) " >&6
4491 else
4492 if test -n "$ac_ct_RANLIB"; then
4493 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4494 else
4495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4496 for as_dir in $PATH
4497 do
4498 IFS=$as_save_IFS
4499 test -z "$as_dir" && as_dir=.
4500 for ac_exec_ext in '' $ac_executable_extensions; do
4501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4502 ac_cv_prog_ac_ct_RANLIB="ranlib"
4503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4504 break 2
4505 fi
4506 done
4507 done
4508 IFS=$as_save_IFS
4509
4510 fi
4511 fi
4512 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4513 if test -n "$ac_ct_RANLIB"; then
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4515 $as_echo "$ac_ct_RANLIB" >&6; }
4516 else
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4518 $as_echo "no" >&6; }
4519 fi
4520
4521 if test "x$ac_ct_RANLIB" = x; then
4522 RANLIB="ranlib-not-found-in-path-error"
4523 else
4524 case $cross_compiling:$ac_tool_warned in
4525 yes:)
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4527 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4528 ac_tool_warned=yes ;;
4529 esac
4530 RANLIB=$ac_ct_RANLIB
4531 fi
4532 else
4533 RANLIB="$ac_cv_prog_RANLIB"
4534 fi
4535
4536 # Extract the first word of "perl", so it can be a program name with args.
4537 set dummy perl; ac_word=$2
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4539 $as_echo_n "checking for $ac_word... " >&6; }
4540 if test "${ac_cv_path_PERL+set}" = set; then :
4541 $as_echo_n "(cached) " >&6
4542 else
4543 case $PERL in
4544 [\\/]* | ?:[\\/]*)
4545 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4546 ;;
4547 *)
4548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4549 for as_dir in $PATH
4550 do
4551 IFS=$as_save_IFS
4552 test -z "$as_dir" && as_dir=.
4553 for ac_exec_ext in '' $ac_executable_extensions; do
4554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4555 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4557 break 2
4558 fi
4559 done
4560 done
4561 IFS=$as_save_IFS
4562
4563 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
4564 ;;
4565 esac
4566 fi
4567 PERL=$ac_cv_path_PERL
4568 if test -n "$PERL"; then
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4570 $as_echo "$PERL" >&6; }
4571 else
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4573 $as_echo "no" >&6; }
4574 fi
4575
4576
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4578 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4579 set x ${MAKE-make}
4580 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4581 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4582 $as_echo_n "(cached) " >&6
4583 else
4584 cat >conftest.make <<\_ACEOF
4585 SHELL = /bin/sh
4586 all:
4587 @echo '@@@%%%=$(MAKE)=@@@%%%'
4588 _ACEOF
4589 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4590 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4591 *@@@%%%=?*=@@@%%%*)
4592 eval ac_cv_prog_make_${ac_make}_set=yes;;
4593 *)
4594 eval ac_cv_prog_make_${ac_make}_set=no;;
4595 esac
4596 rm -f conftest.make
4597 fi
4598 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4600 $as_echo "yes" >&6; }
4601 SET_MAKE=
4602 else
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4604 $as_echo "no" >&6; }
4605 SET_MAKE="MAKE=${MAKE-make}"
4606 fi
4607
4608
4609
4610 # See if makeinfo has been installed and is modern enough
4611 # that we can use it.
4612
4613 # Extract the first word of "makeinfo", so it can be a program name with args.
4614 set dummy makeinfo; ac_word=$2
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4616 $as_echo_n "checking for $ac_word... " >&6; }
4617 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
4618 $as_echo_n "(cached) " >&6
4619 else
4620 if test -n "$MAKEINFO"; then
4621 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4622 else
4623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4624 for as_dir in $PATH
4625 do
4626 IFS=$as_save_IFS
4627 test -z "$as_dir" && as_dir=.
4628 for ac_exec_ext in '' $ac_executable_extensions; do
4629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4630 ac_cv_prog_MAKEINFO="makeinfo"
4631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4632 break 2
4633 fi
4634 done
4635 done
4636 IFS=$as_save_IFS
4637
4638 fi
4639 fi
4640 MAKEINFO=$ac_cv_prog_MAKEINFO
4641 if test -n "$MAKEINFO"; then
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
4643 $as_echo "$MAKEINFO" >&6; }
4644 else
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4646 $as_echo "no" >&6; }
4647 fi
4648
4649
4650 if test -n "$MAKEINFO"; then
4651 # Found it, now check the version.
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
4653 $as_echo_n "checking for modern makeinfo... " >&6; }
4654 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
4655 $as_echo_n "(cached) " >&6
4656 else
4657 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
4658 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4659
4660 case $ac_prog_version in
4661 '') gcc_cv_prog_makeinfo_modern=no;;
4662 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
4663 *) gcc_cv_prog_makeinfo_modern=no;;
4664 esac
4665
4666 fi
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
4668 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
4669 else
4670 gcc_cv_prog_makeinfo_modern=no
4671 fi
4672 if test $gcc_cv_prog_makeinfo_modern = no; then
4673 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
4674 fi
4675
4676 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
4677 BUILD_INFO_TRUE=
4678 BUILD_INFO_FALSE='#'
4679 else
4680 BUILD_INFO_TRUE='#'
4681 BUILD_INFO_FALSE=
4682 fi
4683
4684
4685
4686 # Configure libtool
4687 case `pwd` in
4688 *\ * | *\ *)
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4690 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4691 esac
4692
4693
4694
4695 macro_version='2.2.7a'
4696 macro_revision='1.3134'
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710 ltmain="$ac_aux_dir/ltmain.sh"
4711
4712 # Backslashify metacharacters that are still active within
4713 # double-quoted strings.
4714 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4715
4716 # Same as above, but do not quote variable references.
4717 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4718
4719 # Sed substitution to delay expansion of an escaped shell variable in a
4720 # double_quote_subst'ed string.
4721 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4722
4723 # Sed substitution to delay expansion of an escaped single quote.
4724 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4725
4726 # Sed substitution to avoid accidental globbing in evaled expressions
4727 no_glob_subst='s/\*/\\\*/g'
4728
4729 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4730 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4731 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4732
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4734 $as_echo_n "checking how to print strings... " >&6; }
4735 # Test print first, because it will be a builtin if present.
4736 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4737 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4738 ECHO='print -r --'
4739 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4740 ECHO='printf %s\n'
4741 else
4742 # Use this function as a fallback that always works.
4743 func_fallback_echo ()
4744 {
4745 eval 'cat <<_LTECHO_EOF
4746 $1
4747 _LTECHO_EOF'
4748 }
4749 ECHO='func_fallback_echo'
4750 fi
4751
4752 # func_echo_all arg...
4753 # Invoke $ECHO with all args, space-separated.
4754 func_echo_all ()
4755 {
4756 $ECHO ""
4757 }
4758
4759 case "$ECHO" in
4760 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4761 $as_echo "printf" >&6; } ;;
4762 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4763 $as_echo "print -r" >&6; } ;;
4764 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4765 $as_echo "cat" >&6; } ;;
4766 esac
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4782 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4783 if test "${ac_cv_path_SED+set}" = set; then :
4784 $as_echo_n "(cached) " >&6
4785 else
4786 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4787 for ac_i in 1 2 3 4 5 6 7; do
4788 ac_script="$ac_script$as_nl$ac_script"
4789 done
4790 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4791 { ac_script=; unset ac_script;}
4792 if test -z "$SED"; then
4793 ac_path_SED_found=false
4794 # Loop through the user's path and test for each of PROGNAME-LIST
4795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4796 for as_dir in $PATH
4797 do
4798 IFS=$as_save_IFS
4799 test -z "$as_dir" && as_dir=.
4800 for ac_prog in sed gsed; do
4801 for ac_exec_ext in '' $ac_executable_extensions; do
4802 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4803 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4804 # Check for GNU ac_path_SED and select it if it is found.
4805 # Check for GNU $ac_path_SED
4806 case `"$ac_path_SED" --version 2>&1` in
4807 *GNU*)
4808 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4809 *)
4810 ac_count=0
4811 $as_echo_n 0123456789 >"conftest.in"
4812 while :
4813 do
4814 cat "conftest.in" "conftest.in" >"conftest.tmp"
4815 mv "conftest.tmp" "conftest.in"
4816 cp "conftest.in" "conftest.nl"
4817 $as_echo '' >> "conftest.nl"
4818 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4819 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4820 as_fn_arith $ac_count + 1 && ac_count=$as_val
4821 if test $ac_count -gt ${ac_path_SED_max-0}; then
4822 # Best one so far, save it but keep looking for a better one
4823 ac_cv_path_SED="$ac_path_SED"
4824 ac_path_SED_max=$ac_count
4825 fi
4826 # 10*(2^10) chars as input seems more than enough
4827 test $ac_count -gt 10 && break
4828 done
4829 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4830 esac
4831
4832 $ac_path_SED_found && break 3
4833 done
4834 done
4835 done
4836 IFS=$as_save_IFS
4837 if test -z "$ac_cv_path_SED"; then
4838 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4839 fi
4840 else
4841 ac_cv_path_SED=$SED
4842 fi
4843
4844 fi
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4846 $as_echo "$ac_cv_path_SED" >&6; }
4847 SED="$ac_cv_path_SED"
4848 rm -f conftest.sed
4849
4850 test -z "$SED" && SED=sed
4851 Xsed="$SED -e 1s/^X//"
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4864 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4865 if test "${ac_cv_path_GREP+set}" = set; then :
4866 $as_echo_n "(cached) " >&6
4867 else
4868 if test -z "$GREP"; then
4869 ac_path_GREP_found=false
4870 # Loop through the user's path and test for each of PROGNAME-LIST
4871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4872 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4873 do
4874 IFS=$as_save_IFS
4875 test -z "$as_dir" && as_dir=.
4876 for ac_prog in grep ggrep; do
4877 for ac_exec_ext in '' $ac_executable_extensions; do
4878 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4879 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4880 # Check for GNU ac_path_GREP and select it if it is found.
4881 # Check for GNU $ac_path_GREP
4882 case `"$ac_path_GREP" --version 2>&1` in
4883 *GNU*)
4884 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4885 *)
4886 ac_count=0
4887 $as_echo_n 0123456789 >"conftest.in"
4888 while :
4889 do
4890 cat "conftest.in" "conftest.in" >"conftest.tmp"
4891 mv "conftest.tmp" "conftest.in"
4892 cp "conftest.in" "conftest.nl"
4893 $as_echo 'GREP' >> "conftest.nl"
4894 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4895 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4896 as_fn_arith $ac_count + 1 && ac_count=$as_val
4897 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4898 # Best one so far, save it but keep looking for a better one
4899 ac_cv_path_GREP="$ac_path_GREP"
4900 ac_path_GREP_max=$ac_count
4901 fi
4902 # 10*(2^10) chars as input seems more than enough
4903 test $ac_count -gt 10 && break
4904 done
4905 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4906 esac
4907
4908 $ac_path_GREP_found && break 3
4909 done
4910 done
4911 done
4912 IFS=$as_save_IFS
4913 if test -z "$ac_cv_path_GREP"; then
4914 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4915 fi
4916 else
4917 ac_cv_path_GREP=$GREP
4918 fi
4919
4920 fi
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4922 $as_echo "$ac_cv_path_GREP" >&6; }
4923 GREP="$ac_cv_path_GREP"
4924
4925
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4927 $as_echo_n "checking for egrep... " >&6; }
4928 if test "${ac_cv_path_EGREP+set}" = set; then :
4929 $as_echo_n "(cached) " >&6
4930 else
4931 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4932 then ac_cv_path_EGREP="$GREP -E"
4933 else
4934 if test -z "$EGREP"; then
4935 ac_path_EGREP_found=false
4936 # Loop through the user's path and test for each of PROGNAME-LIST
4937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4938 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4939 do
4940 IFS=$as_save_IFS
4941 test -z "$as_dir" && as_dir=.
4942 for ac_prog in egrep; do
4943 for ac_exec_ext in '' $ac_executable_extensions; do
4944 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4945 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4946 # Check for GNU ac_path_EGREP and select it if it is found.
4947 # Check for GNU $ac_path_EGREP
4948 case `"$ac_path_EGREP" --version 2>&1` in
4949 *GNU*)
4950 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4951 *)
4952 ac_count=0
4953 $as_echo_n 0123456789 >"conftest.in"
4954 while :
4955 do
4956 cat "conftest.in" "conftest.in" >"conftest.tmp"
4957 mv "conftest.tmp" "conftest.in"
4958 cp "conftest.in" "conftest.nl"
4959 $as_echo 'EGREP' >> "conftest.nl"
4960 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4961 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4962 as_fn_arith $ac_count + 1 && ac_count=$as_val
4963 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4964 # Best one so far, save it but keep looking for a better one
4965 ac_cv_path_EGREP="$ac_path_EGREP"
4966 ac_path_EGREP_max=$ac_count
4967 fi
4968 # 10*(2^10) chars as input seems more than enough
4969 test $ac_count -gt 10 && break
4970 done
4971 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4972 esac
4973
4974 $ac_path_EGREP_found && break 3
4975 done
4976 done
4977 done
4978 IFS=$as_save_IFS
4979 if test -z "$ac_cv_path_EGREP"; then
4980 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4981 fi
4982 else
4983 ac_cv_path_EGREP=$EGREP
4984 fi
4985
4986 fi
4987 fi
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4989 $as_echo "$ac_cv_path_EGREP" >&6; }
4990 EGREP="$ac_cv_path_EGREP"
4991
4992
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4994 $as_echo_n "checking for fgrep... " >&6; }
4995 if test "${ac_cv_path_FGREP+set}" = set; then :
4996 $as_echo_n "(cached) " >&6
4997 else
4998 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4999 then ac_cv_path_FGREP="$GREP -F"
5000 else
5001 if test -z "$FGREP"; then
5002 ac_path_FGREP_found=false
5003 # Loop through the user's path and test for each of PROGNAME-LIST
5004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5005 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5006 do
5007 IFS=$as_save_IFS
5008 test -z "$as_dir" && as_dir=.
5009 for ac_prog in fgrep; do
5010 for ac_exec_ext in '' $ac_executable_extensions; do
5011 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5012 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5013 # Check for GNU ac_path_FGREP and select it if it is found.
5014 # Check for GNU $ac_path_FGREP
5015 case `"$ac_path_FGREP" --version 2>&1` in
5016 *GNU*)
5017 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5018 *)
5019 ac_count=0
5020 $as_echo_n 0123456789 >"conftest.in"
5021 while :
5022 do
5023 cat "conftest.in" "conftest.in" >"conftest.tmp"
5024 mv "conftest.tmp" "conftest.in"
5025 cp "conftest.in" "conftest.nl"
5026 $as_echo 'FGREP' >> "conftest.nl"
5027 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5028 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5029 as_fn_arith $ac_count + 1 && ac_count=$as_val
5030 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5031 # Best one so far, save it but keep looking for a better one
5032 ac_cv_path_FGREP="$ac_path_FGREP"
5033 ac_path_FGREP_max=$ac_count
5034 fi
5035 # 10*(2^10) chars as input seems more than enough
5036 test $ac_count -gt 10 && break
5037 done
5038 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5039 esac
5040
5041 $ac_path_FGREP_found && break 3
5042 done
5043 done
5044 done
5045 IFS=$as_save_IFS
5046 if test -z "$ac_cv_path_FGREP"; then
5047 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5048 fi
5049 else
5050 ac_cv_path_FGREP=$FGREP
5051 fi
5052
5053 fi
5054 fi
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5056 $as_echo "$ac_cv_path_FGREP" >&6; }
5057 FGREP="$ac_cv_path_FGREP"
5058
5059
5060 test -z "$GREP" && GREP=grep
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080 # Check whether --with-gnu-ld was given.
5081 if test "${with_gnu_ld+set}" = set; then :
5082 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5083 else
5084 with_gnu_ld=no
5085 fi
5086
5087 ac_prog=ld
5088 if test "$GCC" = yes; then
5089 # Check if gcc -print-prog-name=ld gives a path.
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5091 $as_echo_n "checking for ld used by $CC... " >&6; }
5092 case $host in
5093 *-*-mingw*)
5094 # gcc leaves a trailing carriage return which upsets mingw
5095 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5096 *)
5097 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5098 esac
5099 case $ac_prog in
5100 # Accept absolute paths.
5101 [\\/]* | ?:[\\/]*)
5102 re_direlt='/[^/][^/]*/\.\./'
5103 # Canonicalize the pathname of ld
5104 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5105 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5106 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5107 done
5108 test -z "$LD" && LD="$ac_prog"
5109 ;;
5110 "")
5111 # If it fails, then pretend we aren't using GCC.
5112 ac_prog=ld
5113 ;;
5114 *)
5115 # If it is relative, then search for the first ld in PATH.
5116 with_gnu_ld=unknown
5117 ;;
5118 esac
5119 elif test "$with_gnu_ld" = yes; then
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5121 $as_echo_n "checking for GNU ld... " >&6; }
5122 else
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5124 $as_echo_n "checking for non-GNU ld... " >&6; }
5125 fi
5126 if test "${lt_cv_path_LD+set}" = set; then :
5127 $as_echo_n "(cached) " >&6
5128 else
5129 if test -z "$LD"; then
5130 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5131 for ac_dir in $PATH; do
5132 IFS="$lt_save_ifs"
5133 test -z "$ac_dir" && ac_dir=.
5134 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5135 lt_cv_path_LD="$ac_dir/$ac_prog"
5136 # Check to see if the program is GNU ld. I'd rather use --version,
5137 # but apparently some variants of GNU ld only accept -v.
5138 # Break only if it was the GNU/non-GNU ld that we prefer.
5139 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5140 *GNU* | *'with BFD'*)
5141 test "$with_gnu_ld" != no && break
5142 ;;
5143 *)
5144 test "$with_gnu_ld" != yes && break
5145 ;;
5146 esac
5147 fi
5148 done
5149 IFS="$lt_save_ifs"
5150 else
5151 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5152 fi
5153 fi
5154
5155 LD="$lt_cv_path_LD"
5156 if test -n "$LD"; then
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5158 $as_echo "$LD" >&6; }
5159 else
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5161 $as_echo "no" >&6; }
5162 fi
5163 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5165 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5166 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5167 $as_echo_n "(cached) " >&6
5168 else
5169 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5170 case `$LD -v 2>&1 </dev/null` in
5171 *GNU* | *'with BFD'*)
5172 lt_cv_prog_gnu_ld=yes
5173 ;;
5174 *)
5175 lt_cv_prog_gnu_ld=no
5176 ;;
5177 esac
5178 fi
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5180 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5181 with_gnu_ld=$lt_cv_prog_gnu_ld
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5192 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5193 if test "${lt_cv_path_NM+set}" = set; then :
5194 $as_echo_n "(cached) " >&6
5195 else
5196 if test -n "$NM"; then
5197 # Let the user override the test.
5198 lt_cv_path_NM="$NM"
5199 else
5200 lt_nm_to_check="${ac_tool_prefix}nm"
5201 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5202 lt_nm_to_check="$lt_nm_to_check nm"
5203 fi
5204 for lt_tmp_nm in $lt_nm_to_check; do
5205 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5206 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5207 IFS="$lt_save_ifs"
5208 test -z "$ac_dir" && ac_dir=.
5209 tmp_nm="$ac_dir/$lt_tmp_nm"
5210 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5211 # Check to see if the nm accepts a BSD-compat flag.
5212 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5213 # nm: unknown option "B" ignored
5214 # Tru64's nm complains that /dev/null is an invalid object file
5215 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5216 */dev/null* | *'Invalid file or object type'*)
5217 lt_cv_path_NM="$tmp_nm -B"
5218 break
5219 ;;
5220 *)
5221 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5222 */dev/null*)
5223 lt_cv_path_NM="$tmp_nm -p"
5224 break
5225 ;;
5226 *)
5227 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5228 continue # so that we can try to find one that supports BSD flags
5229 ;;
5230 esac
5231 ;;
5232 esac
5233 fi
5234 done
5235 IFS="$lt_save_ifs"
5236 done
5237 : ${lt_cv_path_NM=no}
5238 fi
5239 fi
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5241 $as_echo "$lt_cv_path_NM" >&6; }
5242 if test "$lt_cv_path_NM" != "no"; then
5243 NM="$lt_cv_path_NM"
5244 else
5245 # Didn't find any BSD compatible name lister, look for dumpbin.
5246 if test -n "$DUMPBIN"; then :
5247 # Let the user override the test.
5248 else
5249 if test -n "$ac_tool_prefix"; then
5250 for ac_prog in dumpbin "link -dump"
5251 do
5252 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5253 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5255 $as_echo_n "checking for $ac_word... " >&6; }
5256 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5257 $as_echo_n "(cached) " >&6
5258 else
5259 if test -n "$DUMPBIN"; then
5260 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5261 else
5262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5263 for as_dir in $PATH
5264 do
5265 IFS=$as_save_IFS
5266 test -z "$as_dir" && as_dir=.
5267 for ac_exec_ext in '' $ac_executable_extensions; do
5268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5269 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5271 break 2
5272 fi
5273 done
5274 done
5275 IFS=$as_save_IFS
5276
5277 fi
5278 fi
5279 DUMPBIN=$ac_cv_prog_DUMPBIN
5280 if test -n "$DUMPBIN"; then
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5282 $as_echo "$DUMPBIN" >&6; }
5283 else
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5285 $as_echo "no" >&6; }
5286 fi
5287
5288
5289 test -n "$DUMPBIN" && break
5290 done
5291 fi
5292 if test -z "$DUMPBIN"; then
5293 ac_ct_DUMPBIN=$DUMPBIN
5294 for ac_prog in dumpbin "link -dump"
5295 do
5296 # Extract the first word of "$ac_prog", so it can be a program name with args.
5297 set dummy $ac_prog; ac_word=$2
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5299 $as_echo_n "checking for $ac_word... " >&6; }
5300 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5301 $as_echo_n "(cached) " >&6
5302 else
5303 if test -n "$ac_ct_DUMPBIN"; then
5304 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5305 else
5306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5307 for as_dir in $PATH
5308 do
5309 IFS=$as_save_IFS
5310 test -z "$as_dir" && as_dir=.
5311 for ac_exec_ext in '' $ac_executable_extensions; do
5312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5313 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5315 break 2
5316 fi
5317 done
5318 done
5319 IFS=$as_save_IFS
5320
5321 fi
5322 fi
5323 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5324 if test -n "$ac_ct_DUMPBIN"; then
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5326 $as_echo "$ac_ct_DUMPBIN" >&6; }
5327 else
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5329 $as_echo "no" >&6; }
5330 fi
5331
5332
5333 test -n "$ac_ct_DUMPBIN" && break
5334 done
5335
5336 if test "x$ac_ct_DUMPBIN" = x; then
5337 DUMPBIN=":"
5338 else
5339 case $cross_compiling:$ac_tool_warned in
5340 yes:)
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5342 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5343 ac_tool_warned=yes ;;
5344 esac
5345 DUMPBIN=$ac_ct_DUMPBIN
5346 fi
5347 fi
5348
5349 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5350 *COFF*)
5351 DUMPBIN="$DUMPBIN -symbols"
5352 ;;
5353 *)
5354 DUMPBIN=:
5355 ;;
5356 esac
5357 fi
5358
5359 if test "$DUMPBIN" != ":"; then
5360 NM="$DUMPBIN"
5361 fi
5362 fi
5363 test -z "$NM" && NM=nm
5364
5365
5366
5367
5368
5369
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5371 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5372 if test "${lt_cv_nm_interface+set}" = set; then :
5373 $as_echo_n "(cached) " >&6
5374 else
5375 lt_cv_nm_interface="BSD nm"
5376 echo "int some_variable = 0;" > conftest.$ac_ext
5377 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5378 (eval "$ac_compile" 2>conftest.err)
5379 cat conftest.err >&5
5380 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5381 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5382 cat conftest.err >&5
5383 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5384 cat conftest.out >&5
5385 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5386 lt_cv_nm_interface="MS dumpbin"
5387 fi
5388 rm -f conftest*
5389 fi
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5391 $as_echo "$lt_cv_nm_interface" >&6; }
5392
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5394 $as_echo_n "checking whether ln -s works... " >&6; }
5395 LN_S=$as_ln_s
5396 if test "$LN_S" = "ln -s"; then
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5398 $as_echo "yes" >&6; }
5399 else
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5401 $as_echo "no, using $LN_S" >&6; }
5402 fi
5403
5404 # find the maximum length of command line arguments
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5406 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5407 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5408 $as_echo_n "(cached) " >&6
5409 else
5410 i=0
5411 teststring="ABCD"
5412
5413 case $build_os in
5414 msdosdjgpp*)
5415 # On DJGPP, this test can blow up pretty badly due to problems in libc
5416 # (any single argument exceeding 2000 bytes causes a buffer overrun
5417 # during glob expansion). Even if it were fixed, the result of this
5418 # check would be larger than it should be.
5419 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5420 ;;
5421
5422 gnu*)
5423 # Under GNU Hurd, this test is not required because there is
5424 # no limit to the length of command line arguments.
5425 # Libtool will interpret -1 as no limit whatsoever
5426 lt_cv_sys_max_cmd_len=-1;
5427 ;;
5428
5429 cygwin* | mingw* | cegcc*)
5430 # On Win9x/ME, this test blows up -- it succeeds, but takes
5431 # about 5 minutes as the teststring grows exponentially.
5432 # Worse, since 9x/ME are not pre-emptively multitasking,
5433 # you end up with a "frozen" computer, even though with patience
5434 # the test eventually succeeds (with a max line length of 256k).
5435 # Instead, let's just punt: use the minimum linelength reported by
5436 # all of the supported platforms: 8192 (on NT/2K/XP).
5437 lt_cv_sys_max_cmd_len=8192;
5438 ;;
5439
5440 mint*)
5441 # On MiNT this can take a long time and run out of memory.
5442 lt_cv_sys_max_cmd_len=8192;
5443 ;;
5444
5445 amigaos*)
5446 # On AmigaOS with pdksh, this test takes hours, literally.
5447 # So we just punt and use a minimum line length of 8192.
5448 lt_cv_sys_max_cmd_len=8192;
5449 ;;
5450
5451 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5452 # This has been around since 386BSD, at least. Likely further.
5453 if test -x /sbin/sysctl; then
5454 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5455 elif test -x /usr/sbin/sysctl; then
5456 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5457 else
5458 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5459 fi
5460 # And add a safety zone
5461 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5462 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5463 ;;
5464
5465 interix*)
5466 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5467 lt_cv_sys_max_cmd_len=196608
5468 ;;
5469
5470 osf*)
5471 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5472 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5473 # nice to cause kernel panics so lets avoid the loop below.
5474 # First set a reasonable default.
5475 lt_cv_sys_max_cmd_len=16384
5476 #
5477 if test -x /sbin/sysconfig; then
5478 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5479 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5480 esac
5481 fi
5482 ;;
5483 sco3.2v5*)
5484 lt_cv_sys_max_cmd_len=102400
5485 ;;
5486 sysv5* | sco5v6* | sysv4.2uw2*)
5487 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5488 if test -n "$kargmax"; then
5489 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5490 else
5491 lt_cv_sys_max_cmd_len=32768
5492 fi
5493 ;;
5494 *)
5495 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5496 if test -n "$lt_cv_sys_max_cmd_len"; then
5497 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5498 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5499 else
5500 # Make teststring a little bigger before we do anything with it.
5501 # a 1K string should be a reasonable start.
5502 for i in 1 2 3 4 5 6 7 8 ; do
5503 teststring=$teststring$teststring
5504 done
5505 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5506 # If test is not a shell built-in, we'll probably end up computing a
5507 # maximum length that is only half of the actual maximum length, but
5508 # we can't tell.
5509 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5510 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5511 test $i != 17 # 1/2 MB should be enough
5512 do
5513 i=`expr $i + 1`
5514 teststring=$teststring$teststring
5515 done
5516 # Only check the string length outside the loop.
5517 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5518 teststring=
5519 # Add a significant safety factor because C++ compilers can tack on
5520 # massive amounts of additional arguments before passing them to the
5521 # linker. It appears as though 1/2 is a usable value.
5522 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5523 fi
5524 ;;
5525 esac
5526
5527 fi
5528
5529 if test -n $lt_cv_sys_max_cmd_len ; then
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5531 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5532 else
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5534 $as_echo "none" >&6; }
5535 fi
5536 max_cmd_len=$lt_cv_sys_max_cmd_len
5537
5538
5539
5540
5541
5542
5543 : ${CP="cp -f"}
5544 : ${MV="mv -f"}
5545 : ${RM="rm -f"}
5546
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5548 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5549 # Try some XSI features
5550 xsi_shell=no
5551 ( _lt_dummy="a/b/c"
5552 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5553 = c,a/b,, \
5554 && eval 'test $(( 1 + 1 )) -eq 2 \
5555 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5556 && xsi_shell=yes
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5558 $as_echo "$xsi_shell" >&6; }
5559
5560
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5562 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5563 lt_shell_append=no
5564 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5565 >/dev/null 2>&1 \
5566 && lt_shell_append=yes
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5568 $as_echo "$lt_shell_append" >&6; }
5569
5570
5571 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5572 lt_unset=unset
5573 else
5574 lt_unset=false
5575 fi
5576
5577
5578
5579
5580
5581 # test EBCDIC or ASCII
5582 case `echo X|tr X '\101'` in
5583 A) # ASCII based system
5584 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5585 lt_SP2NL='tr \040 \012'
5586 lt_NL2SP='tr \015\012 \040\040'
5587 ;;
5588 *) # EBCDIC based system
5589 lt_SP2NL='tr \100 \n'
5590 lt_NL2SP='tr \r\n \100\100'
5591 ;;
5592 esac
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5603 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5604 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5605 $as_echo_n "(cached) " >&6
5606 else
5607 lt_cv_ld_reload_flag='-r'
5608 fi
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5610 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5611 reload_flag=$lt_cv_ld_reload_flag
5612 case $reload_flag in
5613 "" | " "*) ;;
5614 *) reload_flag=" $reload_flag" ;;
5615 esac
5616 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5617 case $host_os in
5618 darwin*)
5619 if test "$GCC" = yes; then
5620 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5621 else
5622 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5623 fi
5624 ;;
5625 esac
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635 if test -n "$ac_tool_prefix"; then
5636 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5637 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5639 $as_echo_n "checking for $ac_word... " >&6; }
5640 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5641 $as_echo_n "(cached) " >&6
5642 else
5643 if test -n "$OBJDUMP"; then
5644 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5645 else
5646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5647 for as_dir in $PATH
5648 do
5649 IFS=$as_save_IFS
5650 test -z "$as_dir" && as_dir=.
5651 for ac_exec_ext in '' $ac_executable_extensions; do
5652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5653 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5655 break 2
5656 fi
5657 done
5658 done
5659 IFS=$as_save_IFS
5660
5661 fi
5662 fi
5663 OBJDUMP=$ac_cv_prog_OBJDUMP
5664 if test -n "$OBJDUMP"; then
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5666 $as_echo "$OBJDUMP" >&6; }
5667 else
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5669 $as_echo "no" >&6; }
5670 fi
5671
5672
5673 fi
5674 if test -z "$ac_cv_prog_OBJDUMP"; then
5675 ac_ct_OBJDUMP=$OBJDUMP
5676 # Extract the first word of "objdump", so it can be a program name with args.
5677 set dummy objdump; ac_word=$2
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5679 $as_echo_n "checking for $ac_word... " >&6; }
5680 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5681 $as_echo_n "(cached) " >&6
5682 else
5683 if test -n "$ac_ct_OBJDUMP"; then
5684 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5685 else
5686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5687 for as_dir in $PATH
5688 do
5689 IFS=$as_save_IFS
5690 test -z "$as_dir" && as_dir=.
5691 for ac_exec_ext in '' $ac_executable_extensions; do
5692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5693 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5695 break 2
5696 fi
5697 done
5698 done
5699 IFS=$as_save_IFS
5700
5701 fi
5702 fi
5703 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5704 if test -n "$ac_ct_OBJDUMP"; then
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5706 $as_echo "$ac_ct_OBJDUMP" >&6; }
5707 else
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5709 $as_echo "no" >&6; }
5710 fi
5711
5712 if test "x$ac_ct_OBJDUMP" = x; then
5713 OBJDUMP="false"
5714 else
5715 case $cross_compiling:$ac_tool_warned in
5716 yes:)
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5718 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5719 ac_tool_warned=yes ;;
5720 esac
5721 OBJDUMP=$ac_ct_OBJDUMP
5722 fi
5723 else
5724 OBJDUMP="$ac_cv_prog_OBJDUMP"
5725 fi
5726
5727 test -z "$OBJDUMP" && OBJDUMP=objdump
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5738 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5739 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5740 $as_echo_n "(cached) " >&6
5741 else
5742 lt_cv_file_magic_cmd='$MAGIC_CMD'
5743 lt_cv_file_magic_test_file=
5744 lt_cv_deplibs_check_method='unknown'
5745 # Need to set the preceding variable on all platforms that support
5746 # interlibrary dependencies.
5747 # 'none' -- dependencies not supported.
5748 # `unknown' -- same as none, but documents that we really don't know.
5749 # 'pass_all' -- all dependencies passed with no checks.
5750 # 'test_compile' -- check by making test program.
5751 # 'file_magic [[regex]]' -- check by looking for files in library path
5752 # which responds to the $file_magic_cmd with a given extended regex.
5753 # If you have `file' or equivalent on your system and you're not sure
5754 # whether `pass_all' will *always* work, you probably want this one.
5755
5756 case $host_os in
5757 aix[4-9]*)
5758 lt_cv_deplibs_check_method=pass_all
5759 ;;
5760
5761 beos*)
5762 lt_cv_deplibs_check_method=pass_all
5763 ;;
5764
5765 bsdi[45]*)
5766 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5767 lt_cv_file_magic_cmd='/usr/bin/file -L'
5768 lt_cv_file_magic_test_file=/shlib/libc.so
5769 ;;
5770
5771 cygwin*)
5772 # func_win32_libid is a shell function defined in ltmain.sh
5773 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5774 lt_cv_file_magic_cmd='func_win32_libid'
5775 ;;
5776
5777 mingw* | pw32*)
5778 # Base MSYS/MinGW do not provide the 'file' command needed by
5779 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5780 # unless we find 'file', for example because we are cross-compiling.
5781 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5782 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5783 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5784 lt_cv_file_magic_cmd='func_win32_libid'
5785 else
5786 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5787 lt_cv_file_magic_cmd='$OBJDUMP -f'
5788 fi
5789 ;;
5790
5791 cegcc*)
5792 # use the weaker test based on 'objdump'. See mingw*.
5793 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5794 lt_cv_file_magic_cmd='$OBJDUMP -f'
5795 ;;
5796
5797 darwin* | rhapsody*)
5798 lt_cv_deplibs_check_method=pass_all
5799 ;;
5800
5801 freebsd* | dragonfly*)
5802 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5803 case $host_cpu in
5804 i*86 )
5805 # Not sure whether the presence of OpenBSD here was a mistake.
5806 # Let's accept both of them until this is cleared up.
5807 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5808 lt_cv_file_magic_cmd=/usr/bin/file
5809 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5810 ;;
5811 esac
5812 else
5813 lt_cv_deplibs_check_method=pass_all
5814 fi
5815 ;;
5816
5817 gnu*)
5818 lt_cv_deplibs_check_method=pass_all
5819 ;;
5820
5821 haiku*)
5822 lt_cv_deplibs_check_method=pass_all
5823 ;;
5824
5825 hpux10.20* | hpux11*)
5826 lt_cv_file_magic_cmd=/usr/bin/file
5827 case $host_cpu in
5828 ia64*)
5829 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5830 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5831 ;;
5832 hppa*64*)
5833 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5834 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5835 ;;
5836 *)
5837 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5838 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5839 ;;
5840 esac
5841 ;;
5842
5843 interix[3-9]*)
5844 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5845 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5846 ;;
5847
5848 irix5* | irix6* | nonstopux*)
5849 case $LD in
5850 *-32|*"-32 ") libmagic=32-bit;;
5851 *-n32|*"-n32 ") libmagic=N32;;
5852 *-64|*"-64 ") libmagic=64-bit;;
5853 *) libmagic=never-match;;
5854 esac
5855 lt_cv_deplibs_check_method=pass_all
5856 ;;
5857
5858 # This must be Linux ELF.
5859 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5860 lt_cv_deplibs_check_method=pass_all
5861 ;;
5862
5863 netbsd*)
5864 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5865 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5866 else
5867 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5868 fi
5869 ;;
5870
5871 newos6*)
5872 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5873 lt_cv_file_magic_cmd=/usr/bin/file
5874 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5875 ;;
5876
5877 *nto* | *qnx*)
5878 lt_cv_deplibs_check_method=pass_all
5879 ;;
5880
5881 openbsd*)
5882 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5883 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5884 else
5885 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5886 fi
5887 ;;
5888
5889 osf3* | osf4* | osf5*)
5890 lt_cv_deplibs_check_method=pass_all
5891 ;;
5892
5893 rdos*)
5894 lt_cv_deplibs_check_method=pass_all
5895 ;;
5896
5897 solaris*)
5898 lt_cv_deplibs_check_method=pass_all
5899 ;;
5900
5901 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5902 lt_cv_deplibs_check_method=pass_all
5903 ;;
5904
5905 sysv4 | sysv4.3*)
5906 case $host_vendor in
5907 motorola)
5908 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]'
5909 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5910 ;;
5911 ncr)
5912 lt_cv_deplibs_check_method=pass_all
5913 ;;
5914 sequent)
5915 lt_cv_file_magic_cmd='/bin/file'
5916 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5917 ;;
5918 sni)
5919 lt_cv_file_magic_cmd='/bin/file'
5920 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5921 lt_cv_file_magic_test_file=/lib/libc.so
5922 ;;
5923 siemens)
5924 lt_cv_deplibs_check_method=pass_all
5925 ;;
5926 pc)
5927 lt_cv_deplibs_check_method=pass_all
5928 ;;
5929 esac
5930 ;;
5931
5932 tpf*)
5933 lt_cv_deplibs_check_method=pass_all
5934 ;;
5935 esac
5936
5937 fi
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5939 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5940 file_magic_cmd=$lt_cv_file_magic_cmd
5941 deplibs_check_method=$lt_cv_deplibs_check_method
5942 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955 if test -n "$ac_tool_prefix"; then
5956 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5957 set dummy ${ac_tool_prefix}ar; ac_word=$2
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5959 $as_echo_n "checking for $ac_word... " >&6; }
5960 if test "${ac_cv_prog_AR+set}" = set; then :
5961 $as_echo_n "(cached) " >&6
5962 else
5963 if test -n "$AR"; then
5964 ac_cv_prog_AR="$AR" # Let the user override the test.
5965 else
5966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5967 for as_dir in $PATH
5968 do
5969 IFS=$as_save_IFS
5970 test -z "$as_dir" && as_dir=.
5971 for ac_exec_ext in '' $ac_executable_extensions; do
5972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5973 ac_cv_prog_AR="${ac_tool_prefix}ar"
5974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5975 break 2
5976 fi
5977 done
5978 done
5979 IFS=$as_save_IFS
5980
5981 fi
5982 fi
5983 AR=$ac_cv_prog_AR
5984 if test -n "$AR"; then
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5986 $as_echo "$AR" >&6; }
5987 else
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5989 $as_echo "no" >&6; }
5990 fi
5991
5992
5993 fi
5994 if test -z "$ac_cv_prog_AR"; then
5995 ac_ct_AR=$AR
5996 # Extract the first word of "ar", so it can be a program name with args.
5997 set dummy ar; ac_word=$2
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5999 $as_echo_n "checking for $ac_word... " >&6; }
6000 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6001 $as_echo_n "(cached) " >&6
6002 else
6003 if test -n "$ac_ct_AR"; then
6004 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6005 else
6006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6007 for as_dir in $PATH
6008 do
6009 IFS=$as_save_IFS
6010 test -z "$as_dir" && as_dir=.
6011 for ac_exec_ext in '' $ac_executable_extensions; do
6012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6013 ac_cv_prog_ac_ct_AR="ar"
6014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6015 break 2
6016 fi
6017 done
6018 done
6019 IFS=$as_save_IFS
6020
6021 fi
6022 fi
6023 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6024 if test -n "$ac_ct_AR"; then
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6026 $as_echo "$ac_ct_AR" >&6; }
6027 else
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6029 $as_echo "no" >&6; }
6030 fi
6031
6032 if test "x$ac_ct_AR" = x; then
6033 AR="false"
6034 else
6035 case $cross_compiling:$ac_tool_warned in
6036 yes:)
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6038 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6039 ac_tool_warned=yes ;;
6040 esac
6041 AR=$ac_ct_AR
6042 fi
6043 else
6044 AR="$ac_cv_prog_AR"
6045 fi
6046
6047 test -z "$AR" && AR=ar
6048 test -z "$AR_FLAGS" && AR_FLAGS=cru
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060 if test -n "$ac_tool_prefix"; then
6061 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6062 set dummy ${ac_tool_prefix}strip; ac_word=$2
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6064 $as_echo_n "checking for $ac_word... " >&6; }
6065 if test "${ac_cv_prog_STRIP+set}" = set; then :
6066 $as_echo_n "(cached) " >&6
6067 else
6068 if test -n "$STRIP"; then
6069 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6070 else
6071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6072 for as_dir in $PATH
6073 do
6074 IFS=$as_save_IFS
6075 test -z "$as_dir" && as_dir=.
6076 for ac_exec_ext in '' $ac_executable_extensions; do
6077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6078 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6080 break 2
6081 fi
6082 done
6083 done
6084 IFS=$as_save_IFS
6085
6086 fi
6087 fi
6088 STRIP=$ac_cv_prog_STRIP
6089 if test -n "$STRIP"; then
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6091 $as_echo "$STRIP" >&6; }
6092 else
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6094 $as_echo "no" >&6; }
6095 fi
6096
6097
6098 fi
6099 if test -z "$ac_cv_prog_STRIP"; then
6100 ac_ct_STRIP=$STRIP
6101 # Extract the first word of "strip", so it can be a program name with args.
6102 set dummy strip; ac_word=$2
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6104 $as_echo_n "checking for $ac_word... " >&6; }
6105 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6106 $as_echo_n "(cached) " >&6
6107 else
6108 if test -n "$ac_ct_STRIP"; then
6109 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6110 else
6111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6112 for as_dir in $PATH
6113 do
6114 IFS=$as_save_IFS
6115 test -z "$as_dir" && as_dir=.
6116 for ac_exec_ext in '' $ac_executable_extensions; do
6117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6118 ac_cv_prog_ac_ct_STRIP="strip"
6119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6120 break 2
6121 fi
6122 done
6123 done
6124 IFS=$as_save_IFS
6125
6126 fi
6127 fi
6128 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6129 if test -n "$ac_ct_STRIP"; then
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6131 $as_echo "$ac_ct_STRIP" >&6; }
6132 else
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6134 $as_echo "no" >&6; }
6135 fi
6136
6137 if test "x$ac_ct_STRIP" = x; then
6138 STRIP=":"
6139 else
6140 case $cross_compiling:$ac_tool_warned in
6141 yes:)
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6143 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6144 ac_tool_warned=yes ;;
6145 esac
6146 STRIP=$ac_ct_STRIP
6147 fi
6148 else
6149 STRIP="$ac_cv_prog_STRIP"
6150 fi
6151
6152 test -z "$STRIP" && STRIP=:
6153
6154
6155
6156
6157
6158
6159 if test -n "$ac_tool_prefix"; then
6160 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6161 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6163 $as_echo_n "checking for $ac_word... " >&6; }
6164 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6165 $as_echo_n "(cached) " >&6
6166 else
6167 if test -n "$RANLIB"; then
6168 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6169 else
6170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6171 for as_dir in $PATH
6172 do
6173 IFS=$as_save_IFS
6174 test -z "$as_dir" && as_dir=.
6175 for ac_exec_ext in '' $ac_executable_extensions; do
6176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6177 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6179 break 2
6180 fi
6181 done
6182 done
6183 IFS=$as_save_IFS
6184
6185 fi
6186 fi
6187 RANLIB=$ac_cv_prog_RANLIB
6188 if test -n "$RANLIB"; then
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6190 $as_echo "$RANLIB" >&6; }
6191 else
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6193 $as_echo "no" >&6; }
6194 fi
6195
6196
6197 fi
6198 if test -z "$ac_cv_prog_RANLIB"; then
6199 ac_ct_RANLIB=$RANLIB
6200 # Extract the first word of "ranlib", so it can be a program name with args.
6201 set dummy ranlib; ac_word=$2
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6203 $as_echo_n "checking for $ac_word... " >&6; }
6204 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6205 $as_echo_n "(cached) " >&6
6206 else
6207 if test -n "$ac_ct_RANLIB"; then
6208 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6209 else
6210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6211 for as_dir in $PATH
6212 do
6213 IFS=$as_save_IFS
6214 test -z "$as_dir" && as_dir=.
6215 for ac_exec_ext in '' $ac_executable_extensions; do
6216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6217 ac_cv_prog_ac_ct_RANLIB="ranlib"
6218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6219 break 2
6220 fi
6221 done
6222 done
6223 IFS=$as_save_IFS
6224
6225 fi
6226 fi
6227 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6228 if test -n "$ac_ct_RANLIB"; then
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6230 $as_echo "$ac_ct_RANLIB" >&6; }
6231 else
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6233 $as_echo "no" >&6; }
6234 fi
6235
6236 if test "x$ac_ct_RANLIB" = x; then
6237 RANLIB=":"
6238 else
6239 case $cross_compiling:$ac_tool_warned in
6240 yes:)
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6242 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6243 ac_tool_warned=yes ;;
6244 esac
6245 RANLIB=$ac_ct_RANLIB
6246 fi
6247 else
6248 RANLIB="$ac_cv_prog_RANLIB"
6249 fi
6250
6251 test -z "$RANLIB" && RANLIB=:
6252
6253
6254
6255
6256
6257
6258 # Determine commands to create old-style static archives.
6259 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6260 old_postinstall_cmds='chmod 644 $oldlib'
6261 old_postuninstall_cmds=
6262
6263 if test -n "$RANLIB"; then
6264 case $host_os in
6265 openbsd*)
6266 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6267 ;;
6268 *)
6269 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6270 ;;
6271 esac
6272 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6273 fi
6274
6275 case $host_os in
6276 darwin*)
6277 lock_old_archive_extraction=yes ;;
6278 *)
6279 lock_old_archive_extraction=no ;;
6280 esac
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320 # If no C compiler was specified, use CC.
6321 LTCC=${LTCC-"$CC"}
6322
6323 # If no C compiler flags were specified, use CFLAGS.
6324 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6325
6326 # Allow CC to be a program name with arguments.
6327 compiler=$CC
6328
6329
6330 # Check for command to grab the raw symbol name followed by C symbol from nm.
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6332 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6333 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6334 $as_echo_n "(cached) " >&6
6335 else
6336
6337 # These are sane defaults that work on at least a few old systems.
6338 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6339
6340 # Character class describing NM global symbol codes.
6341 symcode='[BCDEGRST]'
6342
6343 # Regexp to match symbols that can be accessed directly from C.
6344 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6345
6346 # Define system-specific variables.
6347 case $host_os in
6348 aix*)
6349 symcode='[BCDT]'
6350 ;;
6351 cygwin* | mingw* | pw32* | cegcc*)
6352 symcode='[ABCDGISTW]'
6353 ;;
6354 hpux*)
6355 if test "$host_cpu" = ia64; then
6356 symcode='[ABCDEGRST]'
6357 fi
6358 ;;
6359 irix* | nonstopux*)
6360 symcode='[BCDEGRST]'
6361 ;;
6362 osf*)
6363 symcode='[BCDEGQRST]'
6364 ;;
6365 solaris*)
6366 symcode='[BDRT]'
6367 ;;
6368 sco3.2v5*)
6369 symcode='[DT]'
6370 ;;
6371 sysv4.2uw2*)
6372 symcode='[DT]'
6373 ;;
6374 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6375 symcode='[ABDT]'
6376 ;;
6377 sysv4)
6378 symcode='[DFNSTU]'
6379 ;;
6380 esac
6381
6382 # If we're using GNU nm, then use its standard symbol codes.
6383 case `$NM -V 2>&1` in
6384 *GNU* | *'with BFD'*)
6385 symcode='[ABCDGIRSTW]' ;;
6386 esac
6387
6388 # Transform an extracted symbol line into a proper C declaration.
6389 # Some systems (esp. on ia64) link data and code symbols differently,
6390 # so use this general approach.
6391 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6392
6393 # Transform an extracted symbol line into symbol name and symbol address
6394 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6395 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6396
6397 # Handle CRLF in mingw tool chain
6398 opt_cr=
6399 case $build_os in
6400 mingw*)
6401 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6402 ;;
6403 esac
6404
6405 # Try without a prefix underscore, then with it.
6406 for ac_symprfx in "" "_"; do
6407
6408 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6409 symxfrm="\\1 $ac_symprfx\\2 \\2"
6410
6411 # Write the raw and C identifiers.
6412 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6413 # Fake it for dumpbin and say T for any non-static function
6414 # and D for any global variable.
6415 # Also find C++ and __fastcall symbols from MSVC++,
6416 # which start with @ or ?.
6417 lt_cv_sys_global_symbol_pipe="$AWK '"\
6418 " {last_section=section; section=\$ 3};"\
6419 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6420 " \$ 0!~/External *\|/{next};"\
6421 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6422 " {if(hide[section]) next};"\
6423 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6424 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6425 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6426 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6427 " ' prfx=^$ac_symprfx"
6428 else
6429 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6430 fi
6431
6432 # Check to see that the pipe works correctly.
6433 pipe_works=no
6434
6435 rm -f conftest*
6436 cat > conftest.$ac_ext <<_LT_EOF
6437 #ifdef __cplusplus
6438 extern "C" {
6439 #endif
6440 char nm_test_var;
6441 void nm_test_func(void);
6442 void nm_test_func(void){}
6443 #ifdef __cplusplus
6444 }
6445 #endif
6446 int main(){nm_test_var='a';nm_test_func();return(0);}
6447 _LT_EOF
6448
6449 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6450 (eval $ac_compile) 2>&5
6451 ac_status=$?
6452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6453 test $ac_status = 0; }; then
6454 # Now try to grab the symbols.
6455 nlist=conftest.nm
6456 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6457 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6458 ac_status=$?
6459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6460 test $ac_status = 0; } && test -s "$nlist"; then
6461 # Try sorting and uniquifying the output.
6462 if sort "$nlist" | uniq > "$nlist"T; then
6463 mv -f "$nlist"T "$nlist"
6464 else
6465 rm -f "$nlist"T
6466 fi
6467
6468 # Make sure that we snagged all the symbols we need.
6469 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6470 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6471 cat <<_LT_EOF > conftest.$ac_ext
6472 #ifdef __cplusplus
6473 extern "C" {
6474 #endif
6475
6476 _LT_EOF
6477 # Now generate the symbol file.
6478 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6479
6480 cat <<_LT_EOF >> conftest.$ac_ext
6481
6482 /* The mapping between symbol names and symbols. */
6483 const struct {
6484 const char *name;
6485 void *address;
6486 }
6487 lt__PROGRAM__LTX_preloaded_symbols[] =
6488 {
6489 { "@PROGRAM@", (void *) 0 },
6490 _LT_EOF
6491 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6492 cat <<\_LT_EOF >> conftest.$ac_ext
6493 {0, (void *) 0}
6494 };
6495
6496 /* This works around a problem in FreeBSD linker */
6497 #ifdef FREEBSD_WORKAROUND
6498 static const void *lt_preloaded_setup() {
6499 return lt__PROGRAM__LTX_preloaded_symbols;
6500 }
6501 #endif
6502
6503 #ifdef __cplusplus
6504 }
6505 #endif
6506 _LT_EOF
6507 # Now try linking the two files.
6508 mv conftest.$ac_objext conftstm.$ac_objext
6509 lt_save_LIBS="$LIBS"
6510 lt_save_CFLAGS="$CFLAGS"
6511 LIBS="conftstm.$ac_objext"
6512 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6513 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6514 (eval $ac_link) 2>&5
6515 ac_status=$?
6516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6517 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6518 pipe_works=yes
6519 fi
6520 LIBS="$lt_save_LIBS"
6521 CFLAGS="$lt_save_CFLAGS"
6522 else
6523 echo "cannot find nm_test_func in $nlist" >&5
6524 fi
6525 else
6526 echo "cannot find nm_test_var in $nlist" >&5
6527 fi
6528 else
6529 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6530 fi
6531 else
6532 echo "$progname: failed program was:" >&5
6533 cat conftest.$ac_ext >&5
6534 fi
6535 rm -rf conftest* conftst*
6536
6537 # Do not use the global_symbol_pipe unless it works.
6538 if test "$pipe_works" = yes; then
6539 break
6540 else
6541 lt_cv_sys_global_symbol_pipe=
6542 fi
6543 done
6544
6545 fi
6546
6547 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6548 lt_cv_sys_global_symbol_to_cdecl=
6549 fi
6550 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6552 $as_echo "failed" >&6; }
6553 else
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6555 $as_echo "ok" >&6; }
6556 fi
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580 # Check whether --enable-libtool-lock was given.
6581 if test "${enable_libtool_lock+set}" = set; then :
6582 enableval=$enable_libtool_lock;
6583 fi
6584
6585 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6586
6587 # Some flags need to be propagated to the compiler or linker for good
6588 # libtool support.
6589 case $host in
6590 ia64-*-hpux*)
6591 # Find out which ABI we are using.
6592 echo 'int i;' > conftest.$ac_ext
6593 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6594 (eval $ac_compile) 2>&5
6595 ac_status=$?
6596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6597 test $ac_status = 0; }; then
6598 case `/usr/bin/file conftest.$ac_objext` in
6599 *ELF-32*)
6600 HPUX_IA64_MODE="32"
6601 ;;
6602 *ELF-64*)
6603 HPUX_IA64_MODE="64"
6604 ;;
6605 esac
6606 fi
6607 rm -rf conftest*
6608 ;;
6609 *-*-irix6*)
6610 # Find out which ABI we are using.
6611 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6612 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6613 (eval $ac_compile) 2>&5
6614 ac_status=$?
6615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6616 test $ac_status = 0; }; then
6617 if test "$lt_cv_prog_gnu_ld" = yes; then
6618 case `/usr/bin/file conftest.$ac_objext` in
6619 *32-bit*)
6620 LD="${LD-ld} -melf32bsmip"
6621 ;;
6622 *N32*)
6623 LD="${LD-ld} -melf32bmipn32"
6624 ;;
6625 *64-bit*)
6626 LD="${LD-ld} -melf64bmip"
6627 ;;
6628 esac
6629 else
6630 case `/usr/bin/file conftest.$ac_objext` in
6631 *32-bit*)
6632 LD="${LD-ld} -32"
6633 ;;
6634 *N32*)
6635 LD="${LD-ld} -n32"
6636 ;;
6637 *64-bit*)
6638 LD="${LD-ld} -64"
6639 ;;
6640 esac
6641 fi
6642 fi
6643 rm -rf conftest*
6644 ;;
6645
6646 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6647 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6648 # Find out which ABI we are using.
6649 echo 'int i;' > conftest.$ac_ext
6650 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6651 (eval $ac_compile) 2>&5
6652 ac_status=$?
6653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6654 test $ac_status = 0; }; then
6655 case `/usr/bin/file conftest.o` in
6656 *32-bit*)
6657 case $host in
6658 x86_64-*kfreebsd*-gnu)
6659 LD="${LD-ld} -m elf_i386_fbsd"
6660 ;;
6661 x86_64-*linux*)
6662 case `/usr/bin/file conftest.o` in
6663 *x86-64*)
6664 LD="${LD-ld} -m elf32_x86_64"
6665 ;;
6666 *)
6667 LD="${LD-ld} -m elf_i386"
6668 ;;
6669 esac
6670 ;;
6671 powerpc64le-*linux*)
6672 LD="${LD-ld} -m elf32lppclinux"
6673 ;;
6674 powerpc64-*linux*)
6675 LD="${LD-ld} -m elf32ppclinux"
6676 ;;
6677 s390x-*linux*)
6678 LD="${LD-ld} -m elf_s390"
6679 ;;
6680 sparc64-*linux*)
6681 LD="${LD-ld} -m elf32_sparc"
6682 ;;
6683 esac
6684 ;;
6685 *64-bit*)
6686 case $host in
6687 x86_64-*kfreebsd*-gnu)
6688 LD="${LD-ld} -m elf_x86_64_fbsd"
6689 ;;
6690 x86_64-*linux*)
6691 LD="${LD-ld} -m elf_x86_64"
6692 ;;
6693 powerpcle-*linux*)
6694 LD="${LD-ld} -m elf64lppc"
6695 ;;
6696 powerpc-*linux*)
6697 LD="${LD-ld} -m elf64ppc"
6698 ;;
6699 s390*-*linux*|s390*-*tpf*)
6700 LD="${LD-ld} -m elf64_s390"
6701 ;;
6702 sparc*-*linux*)
6703 LD="${LD-ld} -m elf64_sparc"
6704 ;;
6705 esac
6706 ;;
6707 esac
6708 fi
6709 rm -rf conftest*
6710 ;;
6711
6712 *-*-sco3.2v5*)
6713 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6714 SAVE_CFLAGS="$CFLAGS"
6715 CFLAGS="$CFLAGS -belf"
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6717 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6718 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6719 $as_echo_n "(cached) " >&6
6720 else
6721 ac_ext=c
6722 ac_cpp='$CPP $CPPFLAGS'
6723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6726
6727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6728 /* end confdefs.h. */
6729
6730 int
6731 main ()
6732 {
6733
6734 ;
6735 return 0;
6736 }
6737 _ACEOF
6738 if ac_fn_c_try_link "$LINENO"; then :
6739 lt_cv_cc_needs_belf=yes
6740 else
6741 lt_cv_cc_needs_belf=no
6742 fi
6743 rm -f core conftest.err conftest.$ac_objext \
6744 conftest$ac_exeext conftest.$ac_ext
6745 ac_ext=c
6746 ac_cpp='$CPP $CPPFLAGS'
6747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6750
6751 fi
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6753 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6754 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6755 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6756 CFLAGS="$SAVE_CFLAGS"
6757 fi
6758 ;;
6759 sparc*-*solaris*)
6760 # Find out which ABI we are using.
6761 echo 'int i;' > conftest.$ac_ext
6762 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6763 (eval $ac_compile) 2>&5
6764 ac_status=$?
6765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6766 test $ac_status = 0; }; then
6767 case `/usr/bin/file conftest.o` in
6768 *64-bit*)
6769 case $lt_cv_prog_gnu_ld in
6770 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6771 *)
6772 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6773 LD="${LD-ld} -64"
6774 fi
6775 ;;
6776 esac
6777 ;;
6778 esac
6779 fi
6780 rm -rf conftest*
6781 ;;
6782 esac
6783
6784 need_locks="$enable_libtool_lock"
6785
6786
6787 case $host_os in
6788 rhapsody* | darwin*)
6789 if test -n "$ac_tool_prefix"; then
6790 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6791 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6793 $as_echo_n "checking for $ac_word... " >&6; }
6794 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6795 $as_echo_n "(cached) " >&6
6796 else
6797 if test -n "$DSYMUTIL"; then
6798 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6799 else
6800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6801 for as_dir in $PATH
6802 do
6803 IFS=$as_save_IFS
6804 test -z "$as_dir" && as_dir=.
6805 for ac_exec_ext in '' $ac_executable_extensions; do
6806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6807 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6809 break 2
6810 fi
6811 done
6812 done
6813 IFS=$as_save_IFS
6814
6815 fi
6816 fi
6817 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6818 if test -n "$DSYMUTIL"; then
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6820 $as_echo "$DSYMUTIL" >&6; }
6821 else
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6823 $as_echo "no" >&6; }
6824 fi
6825
6826
6827 fi
6828 if test -z "$ac_cv_prog_DSYMUTIL"; then
6829 ac_ct_DSYMUTIL=$DSYMUTIL
6830 # Extract the first word of "dsymutil", so it can be a program name with args.
6831 set dummy dsymutil; ac_word=$2
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6833 $as_echo_n "checking for $ac_word... " >&6; }
6834 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6835 $as_echo_n "(cached) " >&6
6836 else
6837 if test -n "$ac_ct_DSYMUTIL"; then
6838 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6839 else
6840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6841 for as_dir in $PATH
6842 do
6843 IFS=$as_save_IFS
6844 test -z "$as_dir" && as_dir=.
6845 for ac_exec_ext in '' $ac_executable_extensions; do
6846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6847 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6849 break 2
6850 fi
6851 done
6852 done
6853 IFS=$as_save_IFS
6854
6855 fi
6856 fi
6857 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6858 if test -n "$ac_ct_DSYMUTIL"; then
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6860 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6861 else
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6863 $as_echo "no" >&6; }
6864 fi
6865
6866 if test "x$ac_ct_DSYMUTIL" = x; then
6867 DSYMUTIL=":"
6868 else
6869 case $cross_compiling:$ac_tool_warned in
6870 yes:)
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6872 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6873 ac_tool_warned=yes ;;
6874 esac
6875 DSYMUTIL=$ac_ct_DSYMUTIL
6876 fi
6877 else
6878 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6879 fi
6880
6881 if test -n "$ac_tool_prefix"; then
6882 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6883 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6885 $as_echo_n "checking for $ac_word... " >&6; }
6886 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6887 $as_echo_n "(cached) " >&6
6888 else
6889 if test -n "$NMEDIT"; then
6890 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6891 else
6892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6893 for as_dir in $PATH
6894 do
6895 IFS=$as_save_IFS
6896 test -z "$as_dir" && as_dir=.
6897 for ac_exec_ext in '' $ac_executable_extensions; do
6898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6899 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6901 break 2
6902 fi
6903 done
6904 done
6905 IFS=$as_save_IFS
6906
6907 fi
6908 fi
6909 NMEDIT=$ac_cv_prog_NMEDIT
6910 if test -n "$NMEDIT"; then
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6912 $as_echo "$NMEDIT" >&6; }
6913 else
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6915 $as_echo "no" >&6; }
6916 fi
6917
6918
6919 fi
6920 if test -z "$ac_cv_prog_NMEDIT"; then
6921 ac_ct_NMEDIT=$NMEDIT
6922 # Extract the first word of "nmedit", so it can be a program name with args.
6923 set dummy nmedit; ac_word=$2
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6925 $as_echo_n "checking for $ac_word... " >&6; }
6926 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6927 $as_echo_n "(cached) " >&6
6928 else
6929 if test -n "$ac_ct_NMEDIT"; then
6930 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6931 else
6932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6933 for as_dir in $PATH
6934 do
6935 IFS=$as_save_IFS
6936 test -z "$as_dir" && as_dir=.
6937 for ac_exec_ext in '' $ac_executable_extensions; do
6938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6939 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6941 break 2
6942 fi
6943 done
6944 done
6945 IFS=$as_save_IFS
6946
6947 fi
6948 fi
6949 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6950 if test -n "$ac_ct_NMEDIT"; then
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6952 $as_echo "$ac_ct_NMEDIT" >&6; }
6953 else
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6955 $as_echo "no" >&6; }
6956 fi
6957
6958 if test "x$ac_ct_NMEDIT" = x; then
6959 NMEDIT=":"
6960 else
6961 case $cross_compiling:$ac_tool_warned in
6962 yes:)
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6964 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6965 ac_tool_warned=yes ;;
6966 esac
6967 NMEDIT=$ac_ct_NMEDIT
6968 fi
6969 else
6970 NMEDIT="$ac_cv_prog_NMEDIT"
6971 fi
6972
6973 if test -n "$ac_tool_prefix"; then
6974 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6975 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6977 $as_echo_n "checking for $ac_word... " >&6; }
6978 if test "${ac_cv_prog_LIPO+set}" = set; then :
6979 $as_echo_n "(cached) " >&6
6980 else
6981 if test -n "$LIPO"; then
6982 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6983 else
6984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6985 for as_dir in $PATH
6986 do
6987 IFS=$as_save_IFS
6988 test -z "$as_dir" && as_dir=.
6989 for ac_exec_ext in '' $ac_executable_extensions; do
6990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6991 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6993 break 2
6994 fi
6995 done
6996 done
6997 IFS=$as_save_IFS
6998
6999 fi
7000 fi
7001 LIPO=$ac_cv_prog_LIPO
7002 if test -n "$LIPO"; then
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7004 $as_echo "$LIPO" >&6; }
7005 else
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7007 $as_echo "no" >&6; }
7008 fi
7009
7010
7011 fi
7012 if test -z "$ac_cv_prog_LIPO"; then
7013 ac_ct_LIPO=$LIPO
7014 # Extract the first word of "lipo", so it can be a program name with args.
7015 set dummy lipo; ac_word=$2
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7017 $as_echo_n "checking for $ac_word... " >&6; }
7018 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7019 $as_echo_n "(cached) " >&6
7020 else
7021 if test -n "$ac_ct_LIPO"; then
7022 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7023 else
7024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7025 for as_dir in $PATH
7026 do
7027 IFS=$as_save_IFS
7028 test -z "$as_dir" && as_dir=.
7029 for ac_exec_ext in '' $ac_executable_extensions; do
7030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7031 ac_cv_prog_ac_ct_LIPO="lipo"
7032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7033 break 2
7034 fi
7035 done
7036 done
7037 IFS=$as_save_IFS
7038
7039 fi
7040 fi
7041 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7042 if test -n "$ac_ct_LIPO"; then
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7044 $as_echo "$ac_ct_LIPO" >&6; }
7045 else
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7047 $as_echo "no" >&6; }
7048 fi
7049
7050 if test "x$ac_ct_LIPO" = x; then
7051 LIPO=":"
7052 else
7053 case $cross_compiling:$ac_tool_warned in
7054 yes:)
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7056 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7057 ac_tool_warned=yes ;;
7058 esac
7059 LIPO=$ac_ct_LIPO
7060 fi
7061 else
7062 LIPO="$ac_cv_prog_LIPO"
7063 fi
7064
7065 if test -n "$ac_tool_prefix"; then
7066 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7067 set dummy ${ac_tool_prefix}otool; ac_word=$2
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7069 $as_echo_n "checking for $ac_word... " >&6; }
7070 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7071 $as_echo_n "(cached) " >&6
7072 else
7073 if test -n "$OTOOL"; then
7074 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7075 else
7076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7077 for as_dir in $PATH
7078 do
7079 IFS=$as_save_IFS
7080 test -z "$as_dir" && as_dir=.
7081 for ac_exec_ext in '' $ac_executable_extensions; do
7082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7083 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7085 break 2
7086 fi
7087 done
7088 done
7089 IFS=$as_save_IFS
7090
7091 fi
7092 fi
7093 OTOOL=$ac_cv_prog_OTOOL
7094 if test -n "$OTOOL"; then
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7096 $as_echo "$OTOOL" >&6; }
7097 else
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7099 $as_echo "no" >&6; }
7100 fi
7101
7102
7103 fi
7104 if test -z "$ac_cv_prog_OTOOL"; then
7105 ac_ct_OTOOL=$OTOOL
7106 # Extract the first word of "otool", so it can be a program name with args.
7107 set dummy otool; ac_word=$2
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7109 $as_echo_n "checking for $ac_word... " >&6; }
7110 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7111 $as_echo_n "(cached) " >&6
7112 else
7113 if test -n "$ac_ct_OTOOL"; then
7114 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7115 else
7116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7117 for as_dir in $PATH
7118 do
7119 IFS=$as_save_IFS
7120 test -z "$as_dir" && as_dir=.
7121 for ac_exec_ext in '' $ac_executable_extensions; do
7122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7123 ac_cv_prog_ac_ct_OTOOL="otool"
7124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7125 break 2
7126 fi
7127 done
7128 done
7129 IFS=$as_save_IFS
7130
7131 fi
7132 fi
7133 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7134 if test -n "$ac_ct_OTOOL"; then
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7136 $as_echo "$ac_ct_OTOOL" >&6; }
7137 else
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7139 $as_echo "no" >&6; }
7140 fi
7141
7142 if test "x$ac_ct_OTOOL" = x; then
7143 OTOOL=":"
7144 else
7145 case $cross_compiling:$ac_tool_warned in
7146 yes:)
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7148 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7149 ac_tool_warned=yes ;;
7150 esac
7151 OTOOL=$ac_ct_OTOOL
7152 fi
7153 else
7154 OTOOL="$ac_cv_prog_OTOOL"
7155 fi
7156
7157 if test -n "$ac_tool_prefix"; then
7158 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7159 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7161 $as_echo_n "checking for $ac_word... " >&6; }
7162 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7163 $as_echo_n "(cached) " >&6
7164 else
7165 if test -n "$OTOOL64"; then
7166 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7167 else
7168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7169 for as_dir in $PATH
7170 do
7171 IFS=$as_save_IFS
7172 test -z "$as_dir" && as_dir=.
7173 for ac_exec_ext in '' $ac_executable_extensions; do
7174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7175 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7177 break 2
7178 fi
7179 done
7180 done
7181 IFS=$as_save_IFS
7182
7183 fi
7184 fi
7185 OTOOL64=$ac_cv_prog_OTOOL64
7186 if test -n "$OTOOL64"; then
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7188 $as_echo "$OTOOL64" >&6; }
7189 else
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7191 $as_echo "no" >&6; }
7192 fi
7193
7194
7195 fi
7196 if test -z "$ac_cv_prog_OTOOL64"; then
7197 ac_ct_OTOOL64=$OTOOL64
7198 # Extract the first word of "otool64", so it can be a program name with args.
7199 set dummy otool64; ac_word=$2
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7201 $as_echo_n "checking for $ac_word... " >&6; }
7202 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7203 $as_echo_n "(cached) " >&6
7204 else
7205 if test -n "$ac_ct_OTOOL64"; then
7206 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7207 else
7208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7209 for as_dir in $PATH
7210 do
7211 IFS=$as_save_IFS
7212 test -z "$as_dir" && as_dir=.
7213 for ac_exec_ext in '' $ac_executable_extensions; do
7214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7215 ac_cv_prog_ac_ct_OTOOL64="otool64"
7216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7217 break 2
7218 fi
7219 done
7220 done
7221 IFS=$as_save_IFS
7222
7223 fi
7224 fi
7225 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7226 if test -n "$ac_ct_OTOOL64"; then
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7228 $as_echo "$ac_ct_OTOOL64" >&6; }
7229 else
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7231 $as_echo "no" >&6; }
7232 fi
7233
7234 if test "x$ac_ct_OTOOL64" = x; then
7235 OTOOL64=":"
7236 else
7237 case $cross_compiling:$ac_tool_warned in
7238 yes:)
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7240 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7241 ac_tool_warned=yes ;;
7242 esac
7243 OTOOL64=$ac_ct_OTOOL64
7244 fi
7245 else
7246 OTOOL64="$ac_cv_prog_OTOOL64"
7247 fi
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7276 $as_echo_n "checking for -single_module linker flag... " >&6; }
7277 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7278 $as_echo_n "(cached) " >&6
7279 else
7280 lt_cv_apple_cc_single_mod=no
7281 if test -z "${LT_MULTI_MODULE}"; then
7282 # By default we will add the -single_module flag. You can override
7283 # by either setting the environment variable LT_MULTI_MODULE
7284 # non-empty at configure time, or by adding -multi_module to the
7285 # link flags.
7286 rm -rf libconftest.dylib*
7287 echo "int foo(void){return 1;}" > conftest.c
7288 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7289 -dynamiclib -Wl,-single_module conftest.c" >&5
7290 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7291 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7292 _lt_result=$?
7293 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7294 lt_cv_apple_cc_single_mod=yes
7295 else
7296 cat conftest.err >&5
7297 fi
7298 rm -rf libconftest.dylib*
7299 rm -f conftest.*
7300 fi
7301 fi
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7303 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7305 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7306 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7307 $as_echo_n "(cached) " >&6
7308 else
7309 lt_cv_ld_exported_symbols_list=no
7310 save_LDFLAGS=$LDFLAGS
7311 echo "_main" > conftest.sym
7312 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7314 /* end confdefs.h. */
7315
7316 int
7317 main ()
7318 {
7319
7320 ;
7321 return 0;
7322 }
7323 _ACEOF
7324 if ac_fn_c_try_link "$LINENO"; then :
7325 lt_cv_ld_exported_symbols_list=yes
7326 else
7327 lt_cv_ld_exported_symbols_list=no
7328 fi
7329 rm -f core conftest.err conftest.$ac_objext \
7330 conftest$ac_exeext conftest.$ac_ext
7331 LDFLAGS="$save_LDFLAGS"
7332
7333 fi
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7335 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7337 $as_echo_n "checking for -force_load linker flag... " >&6; }
7338 if test "${lt_cv_ld_force_load+set}" = set; then :
7339 $as_echo_n "(cached) " >&6
7340 else
7341 lt_cv_ld_force_load=no
7342 cat > conftest.c << _LT_EOF
7343 int forced_loaded() { return 2;}
7344 _LT_EOF
7345 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7346 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7347 echo "$AR cru libconftest.a conftest.o" >&5
7348 $AR cru libconftest.a conftest.o 2>&5
7349 cat > conftest.c << _LT_EOF
7350 int main() { return 0;}
7351 _LT_EOF
7352 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7353 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7354 _lt_result=$?
7355 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7356 lt_cv_ld_force_load=yes
7357 else
7358 cat conftest.err >&5
7359 fi
7360 rm -f conftest.err libconftest.a conftest conftest.c
7361 rm -rf conftest.dSYM
7362
7363 fi
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7365 $as_echo "$lt_cv_ld_force_load" >&6; }
7366 case $host_os in
7367 rhapsody* | darwin1.[012])
7368 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7369 darwin1.*)
7370 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7371 darwin*) # darwin 5.x on
7372 # if running on 10.5 or later, the deployment target defaults
7373 # to the OS version, if on x86, and 10.4, the deployment
7374 # target defaults to 10.4. Don't you love it?
7375 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7376 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7377 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7378 10.[012][,.]*)
7379 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7380 10.*)
7381 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7382 esac
7383 ;;
7384 esac
7385 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7386 _lt_dar_single_mod='$single_module'
7387 fi
7388 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7389 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7390 else
7391 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7392 fi
7393 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7394 _lt_dsymutil='~$DSYMUTIL $lib || :'
7395 else
7396 _lt_dsymutil=
7397 fi
7398 ;;
7399 esac
7400
7401 ac_ext=c
7402 ac_cpp='$CPP $CPPFLAGS'
7403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7407 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7408 # On Suns, sometimes $CPP names a directory.
7409 if test -n "$CPP" && test -d "$CPP"; then
7410 CPP=
7411 fi
7412 if test -z "$CPP"; then
7413 if test "${ac_cv_prog_CPP+set}" = set; then :
7414 $as_echo_n "(cached) " >&6
7415 else
7416 # Double quotes because CPP needs to be expanded
7417 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7418 do
7419 ac_preproc_ok=false
7420 for ac_c_preproc_warn_flag in '' yes
7421 do
7422 # Use a header file that comes with gcc, so configuring glibc
7423 # with a fresh cross-compiler works.
7424 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7425 # <limits.h> exists even on freestanding compilers.
7426 # On the NeXT, cc -E runs the code through the compiler's parser,
7427 # not just through cpp. "Syntax error" is here to catch this case.
7428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7429 /* end confdefs.h. */
7430 #ifdef __STDC__
7431 # include <limits.h>
7432 #else
7433 # include <assert.h>
7434 #endif
7435 Syntax error
7436 _ACEOF
7437 if ac_fn_c_try_cpp "$LINENO"; then :
7438
7439 else
7440 # Broken: fails on valid input.
7441 continue
7442 fi
7443 rm -f conftest.err conftest.$ac_ext
7444
7445 # OK, works on sane cases. Now check whether nonexistent headers
7446 # can be detected and how.
7447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7448 /* end confdefs.h. */
7449 #include <ac_nonexistent.h>
7450 _ACEOF
7451 if ac_fn_c_try_cpp "$LINENO"; then :
7452 # Broken: success on invalid input.
7453 continue
7454 else
7455 # Passes both tests.
7456 ac_preproc_ok=:
7457 break
7458 fi
7459 rm -f conftest.err conftest.$ac_ext
7460
7461 done
7462 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7463 rm -f conftest.err conftest.$ac_ext
7464 if $ac_preproc_ok; then :
7465 break
7466 fi
7467
7468 done
7469 ac_cv_prog_CPP=$CPP
7470
7471 fi
7472 CPP=$ac_cv_prog_CPP
7473 else
7474 ac_cv_prog_CPP=$CPP
7475 fi
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7477 $as_echo "$CPP" >&6; }
7478 ac_preproc_ok=false
7479 for ac_c_preproc_warn_flag in '' yes
7480 do
7481 # Use a header file that comes with gcc, so configuring glibc
7482 # with a fresh cross-compiler works.
7483 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7484 # <limits.h> exists even on freestanding compilers.
7485 # On the NeXT, cc -E runs the code through the compiler's parser,
7486 # not just through cpp. "Syntax error" is here to catch this case.
7487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7488 /* end confdefs.h. */
7489 #ifdef __STDC__
7490 # include <limits.h>
7491 #else
7492 # include <assert.h>
7493 #endif
7494 Syntax error
7495 _ACEOF
7496 if ac_fn_c_try_cpp "$LINENO"; then :
7497
7498 else
7499 # Broken: fails on valid input.
7500 continue
7501 fi
7502 rm -f conftest.err conftest.$ac_ext
7503
7504 # OK, works on sane cases. Now check whether nonexistent headers
7505 # can be detected and how.
7506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7507 /* end confdefs.h. */
7508 #include <ac_nonexistent.h>
7509 _ACEOF
7510 if ac_fn_c_try_cpp "$LINENO"; then :
7511 # Broken: success on invalid input.
7512 continue
7513 else
7514 # Passes both tests.
7515 ac_preproc_ok=:
7516 break
7517 fi
7518 rm -f conftest.err conftest.$ac_ext
7519
7520 done
7521 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7522 rm -f conftest.err conftest.$ac_ext
7523 if $ac_preproc_ok; then :
7524
7525 else
7526 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7527 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7528 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7529 See \`config.log' for more details." "$LINENO" 5; }
7530 fi
7531
7532 ac_ext=c
7533 ac_cpp='$CPP $CPPFLAGS'
7534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7537
7538
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7540 $as_echo_n "checking for ANSI C header files... " >&6; }
7541 if test "${ac_cv_header_stdc+set}" = set; then :
7542 $as_echo_n "(cached) " >&6
7543 else
7544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7545 /* end confdefs.h. */
7546 #include <stdlib.h>
7547 #include <stdarg.h>
7548 #include <string.h>
7549 #include <float.h>
7550
7551 int
7552 main ()
7553 {
7554
7555 ;
7556 return 0;
7557 }
7558 _ACEOF
7559 if ac_fn_c_try_compile "$LINENO"; then :
7560 ac_cv_header_stdc=yes
7561 else
7562 ac_cv_header_stdc=no
7563 fi
7564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7565
7566 if test $ac_cv_header_stdc = yes; then
7567 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7569 /* end confdefs.h. */
7570 #include <string.h>
7571
7572 _ACEOF
7573 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7574 $EGREP "memchr" >/dev/null 2>&1; then :
7575
7576 else
7577 ac_cv_header_stdc=no
7578 fi
7579 rm -f conftest*
7580
7581 fi
7582
7583 if test $ac_cv_header_stdc = yes; then
7584 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7586 /* end confdefs.h. */
7587 #include <stdlib.h>
7588
7589 _ACEOF
7590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7591 $EGREP "free" >/dev/null 2>&1; then :
7592
7593 else
7594 ac_cv_header_stdc=no
7595 fi
7596 rm -f conftest*
7597
7598 fi
7599
7600 if test $ac_cv_header_stdc = yes; then
7601 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7602 if test "$cross_compiling" = yes; then :
7603 :
7604 else
7605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7606 /* end confdefs.h. */
7607 #include <ctype.h>
7608 #include <stdlib.h>
7609 #if ((' ' & 0x0FF) == 0x020)
7610 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7611 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7612 #else
7613 # define ISLOWER(c) \
7614 (('a' <= (c) && (c) <= 'i') \
7615 || ('j' <= (c) && (c) <= 'r') \
7616 || ('s' <= (c) && (c) <= 'z'))
7617 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7618 #endif
7619
7620 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7621 int
7622 main ()
7623 {
7624 int i;
7625 for (i = 0; i < 256; i++)
7626 if (XOR (islower (i), ISLOWER (i))
7627 || toupper (i) != TOUPPER (i))
7628 return 2;
7629 return 0;
7630 }
7631 _ACEOF
7632 if ac_fn_c_try_run "$LINENO"; then :
7633
7634 else
7635 ac_cv_header_stdc=no
7636 fi
7637 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7638 conftest.$ac_objext conftest.beam conftest.$ac_ext
7639 fi
7640
7641 fi
7642 fi
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7644 $as_echo "$ac_cv_header_stdc" >&6; }
7645 if test $ac_cv_header_stdc = yes; then
7646
7647 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7648
7649 fi
7650
7651 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7652 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7653 inttypes.h stdint.h unistd.h
7654 do :
7655 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7656 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7657 "
7658 eval as_val=\$$as_ac_Header
7659 if test "x$as_val" = x""yes; then :
7660 cat >>confdefs.h <<_ACEOF
7661 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7662 _ACEOF
7663
7664 fi
7665
7666 done
7667
7668
7669 for ac_header in dlfcn.h
7670 do :
7671 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7672 "
7673 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7674 cat >>confdefs.h <<_ACEOF
7675 #define HAVE_DLFCN_H 1
7676 _ACEOF
7677
7678 fi
7679
7680 done
7681
7682
7683
7684
7685
7686 # Set options
7687
7688
7689
7690 enable_dlopen=no
7691
7692
7693 enable_win32_dll=no
7694
7695
7696 # Check whether --enable-shared was given.
7697 if test "${enable_shared+set}" = set; then :
7698 enableval=$enable_shared; p=${PACKAGE-default}
7699 case $enableval in
7700 yes) enable_shared=yes ;;
7701 no) enable_shared=no ;;
7702 *)
7703 enable_shared=no
7704 # Look at the argument we got. We use all the common list separators.
7705 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7706 for pkg in $enableval; do
7707 IFS="$lt_save_ifs"
7708 if test "X$pkg" = "X$p"; then
7709 enable_shared=yes
7710 fi
7711 done
7712 IFS="$lt_save_ifs"
7713 ;;
7714 esac
7715 else
7716 enable_shared=yes
7717 fi
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727 # Check whether --enable-static was given.
7728 if test "${enable_static+set}" = set; then :
7729 enableval=$enable_static; p=${PACKAGE-default}
7730 case $enableval in
7731 yes) enable_static=yes ;;
7732 no) enable_static=no ;;
7733 *)
7734 enable_static=no
7735 # Look at the argument we got. We use all the common list separators.
7736 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7737 for pkg in $enableval; do
7738 IFS="$lt_save_ifs"
7739 if test "X$pkg" = "X$p"; then
7740 enable_static=yes
7741 fi
7742 done
7743 IFS="$lt_save_ifs"
7744 ;;
7745 esac
7746 else
7747 enable_static=yes
7748 fi
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759 # Check whether --with-pic was given.
7760 if test "${with_pic+set}" = set; then :
7761 withval=$with_pic; pic_mode="$withval"
7762 else
7763 pic_mode=default
7764 fi
7765
7766
7767 test -z "$pic_mode" && pic_mode=default
7768
7769
7770
7771
7772
7773
7774
7775 # Check whether --enable-fast-install was given.
7776 if test "${enable_fast_install+set}" = set; then :
7777 enableval=$enable_fast_install; p=${PACKAGE-default}
7778 case $enableval in
7779 yes) enable_fast_install=yes ;;
7780 no) enable_fast_install=no ;;
7781 *)
7782 enable_fast_install=no
7783 # Look at the argument we got. We use all the common list separators.
7784 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7785 for pkg in $enableval; do
7786 IFS="$lt_save_ifs"
7787 if test "X$pkg" = "X$p"; then
7788 enable_fast_install=yes
7789 fi
7790 done
7791 IFS="$lt_save_ifs"
7792 ;;
7793 esac
7794 else
7795 enable_fast_install=yes
7796 fi
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808 # This can be used to rebuild libtool when needed
7809 LIBTOOL_DEPS="$ltmain"
7810
7811 # Always use our own libtool.
7812 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839 test -z "$LN_S" && LN_S="ln -s"
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854 if test -n "${ZSH_VERSION+set}" ; then
7855 setopt NO_GLOB_SUBST
7856 fi
7857
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7859 $as_echo_n "checking for objdir... " >&6; }
7860 if test "${lt_cv_objdir+set}" = set; then :
7861 $as_echo_n "(cached) " >&6
7862 else
7863 rm -f .libs 2>/dev/null
7864 mkdir .libs 2>/dev/null
7865 if test -d .libs; then
7866 lt_cv_objdir=.libs
7867 else
7868 # MS-DOS does not allow filenames that begin with a dot.
7869 lt_cv_objdir=_libs
7870 fi
7871 rmdir .libs 2>/dev/null
7872 fi
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7874 $as_echo "$lt_cv_objdir" >&6; }
7875 objdir=$lt_cv_objdir
7876
7877
7878
7879
7880
7881 cat >>confdefs.h <<_ACEOF
7882 #define LT_OBJDIR "$lt_cv_objdir/"
7883 _ACEOF
7884
7885
7886
7887
7888 case $host_os in
7889 aix3*)
7890 # AIX sometimes has problems with the GCC collect2 program. For some
7891 # reason, if we set the COLLECT_NAMES environment variable, the problems
7892 # vanish in a puff of smoke.
7893 if test "X${COLLECT_NAMES+set}" != Xset; then
7894 COLLECT_NAMES=
7895 export COLLECT_NAMES
7896 fi
7897 ;;
7898 esac
7899
7900 # Global variables:
7901 ofile=libtool
7902 can_build_shared=yes
7903
7904 # All known linkers require a `.a' archive for static linking (except MSVC,
7905 # which needs '.lib').
7906 libext=a
7907
7908 with_gnu_ld="$lt_cv_prog_gnu_ld"
7909
7910 old_CC="$CC"
7911 old_CFLAGS="$CFLAGS"
7912
7913 # Set sane defaults for various variables
7914 test -z "$CC" && CC=cc
7915 test -z "$LTCC" && LTCC=$CC
7916 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7917 test -z "$LD" && LD=ld
7918 test -z "$ac_objext" && ac_objext=o
7919
7920 for cc_temp in $compiler""; do
7921 case $cc_temp in
7922 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7923 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7924 \-*) ;;
7925 *) break;;
7926 esac
7927 done
7928 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7929
7930
7931 # Only perform the check for file, if the check method requires it
7932 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7933 case $deplibs_check_method in
7934 file_magic*)
7935 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7937 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7938 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7939 $as_echo_n "(cached) " >&6
7940 else
7941 case $MAGIC_CMD in
7942 [\\/*] | ?:[\\/]*)
7943 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7944 ;;
7945 *)
7946 lt_save_MAGIC_CMD="$MAGIC_CMD"
7947 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7948 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7949 for ac_dir in $ac_dummy; do
7950 IFS="$lt_save_ifs"
7951 test -z "$ac_dir" && ac_dir=.
7952 if test -f $ac_dir/${ac_tool_prefix}file; then
7953 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7954 if test -n "$file_magic_test_file"; then
7955 case $deplibs_check_method in
7956 "file_magic "*)
7957 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7958 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7959 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7960 $EGREP "$file_magic_regex" > /dev/null; then
7961 :
7962 else
7963 cat <<_LT_EOF 1>&2
7964
7965 *** Warning: the command libtool uses to detect shared libraries,
7966 *** $file_magic_cmd, produces output that libtool cannot recognize.
7967 *** The result is that libtool may fail to recognize shared libraries
7968 *** as such. This will affect the creation of libtool libraries that
7969 *** depend on shared libraries, but programs linked with such libtool
7970 *** libraries will work regardless of this problem. Nevertheless, you
7971 *** may want to report the problem to your system manager and/or to
7972 *** bug-libtool@gnu.org
7973
7974 _LT_EOF
7975 fi ;;
7976 esac
7977 fi
7978 break
7979 fi
7980 done
7981 IFS="$lt_save_ifs"
7982 MAGIC_CMD="$lt_save_MAGIC_CMD"
7983 ;;
7984 esac
7985 fi
7986
7987 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7988 if test -n "$MAGIC_CMD"; then
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7990 $as_echo "$MAGIC_CMD" >&6; }
7991 else
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7993 $as_echo "no" >&6; }
7994 fi
7995
7996
7997
7998
7999
8000 if test -z "$lt_cv_path_MAGIC_CMD"; then
8001 if test -n "$ac_tool_prefix"; then
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8003 $as_echo_n "checking for file... " >&6; }
8004 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8005 $as_echo_n "(cached) " >&6
8006 else
8007 case $MAGIC_CMD in
8008 [\\/*] | ?:[\\/]*)
8009 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8010 ;;
8011 *)
8012 lt_save_MAGIC_CMD="$MAGIC_CMD"
8013 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8014 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8015 for ac_dir in $ac_dummy; do
8016 IFS="$lt_save_ifs"
8017 test -z "$ac_dir" && ac_dir=.
8018 if test -f $ac_dir/file; then
8019 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8020 if test -n "$file_magic_test_file"; then
8021 case $deplibs_check_method in
8022 "file_magic "*)
8023 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8024 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8025 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8026 $EGREP "$file_magic_regex" > /dev/null; then
8027 :
8028 else
8029 cat <<_LT_EOF 1>&2
8030
8031 *** Warning: the command libtool uses to detect shared libraries,
8032 *** $file_magic_cmd, produces output that libtool cannot recognize.
8033 *** The result is that libtool may fail to recognize shared libraries
8034 *** as such. This will affect the creation of libtool libraries that
8035 *** depend on shared libraries, but programs linked with such libtool
8036 *** libraries will work regardless of this problem. Nevertheless, you
8037 *** may want to report the problem to your system manager and/or to
8038 *** bug-libtool@gnu.org
8039
8040 _LT_EOF
8041 fi ;;
8042 esac
8043 fi
8044 break
8045 fi
8046 done
8047 IFS="$lt_save_ifs"
8048 MAGIC_CMD="$lt_save_MAGIC_CMD"
8049 ;;
8050 esac
8051 fi
8052
8053 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8054 if test -n "$MAGIC_CMD"; then
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8056 $as_echo "$MAGIC_CMD" >&6; }
8057 else
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8059 $as_echo "no" >&6; }
8060 fi
8061
8062
8063 else
8064 MAGIC_CMD=:
8065 fi
8066 fi
8067
8068 fi
8069 ;;
8070 esac
8071
8072 # Use C for the default configuration in the libtool script
8073
8074 lt_save_CC="$CC"
8075 ac_ext=c
8076 ac_cpp='$CPP $CPPFLAGS'
8077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8080
8081
8082 # Source file extension for C test sources.
8083 ac_ext=c
8084
8085 # Object file extension for compiled C test sources.
8086 objext=o
8087 objext=$objext
8088
8089 # Code to be used in simple compile tests
8090 lt_simple_compile_test_code="int some_variable = 0;"
8091
8092 # Code to be used in simple link tests
8093 lt_simple_link_test_code='int main(){return(0);}'
8094
8095
8096
8097
8098
8099
8100
8101 # If no C compiler was specified, use CC.
8102 LTCC=${LTCC-"$CC"}
8103
8104 # If no C compiler flags were specified, use CFLAGS.
8105 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8106
8107 # Allow CC to be a program name with arguments.
8108 compiler=$CC
8109
8110 # Save the default compiler, since it gets overwritten when the other
8111 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8112 compiler_DEFAULT=$CC
8113
8114 # save warnings/boilerplate of simple test code
8115 ac_outfile=conftest.$ac_objext
8116 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8117 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8118 _lt_compiler_boilerplate=`cat conftest.err`
8119 $RM conftest*
8120
8121 ac_outfile=conftest.$ac_objext
8122 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8123 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8124 _lt_linker_boilerplate=`cat conftest.err`
8125 $RM -r conftest*
8126
8127
8128 ## CAVEAT EMPTOR:
8129 ## There is no encapsulation within the following macros, do not change
8130 ## the running order or otherwise move them around unless you know exactly
8131 ## what you are doing...
8132 if test -n "$compiler"; then
8133
8134 lt_prog_compiler_no_builtin_flag=
8135
8136 if test "$GCC" = yes; then
8137 case $cc_basename in
8138 nvcc*)
8139 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8140 *)
8141 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8142 esac
8143
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8145 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8146 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8147 $as_echo_n "(cached) " >&6
8148 else
8149 lt_cv_prog_compiler_rtti_exceptions=no
8150 ac_outfile=conftest.$ac_objext
8151 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8152 lt_compiler_flag="-fno-rtti -fno-exceptions"
8153 # Insert the option either (1) after the last *FLAGS variable, or
8154 # (2) before a word containing "conftest.", or (3) at the end.
8155 # Note that $ac_compile itself does not contain backslashes and begins
8156 # with a dollar sign (not a hyphen), so the echo should work correctly.
8157 # The option is referenced via a variable to avoid confusing sed.
8158 lt_compile=`echo "$ac_compile" | $SED \
8159 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8160 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8161 -e 's:$: $lt_compiler_flag:'`
8162 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8163 (eval "$lt_compile" 2>conftest.err)
8164 ac_status=$?
8165 cat conftest.err >&5
8166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8167 if (exit $ac_status) && test -s "$ac_outfile"; then
8168 # The compiler can only warn and ignore the option if not recognized
8169 # So say no if there are warnings other than the usual output.
8170 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8171 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8172 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8173 lt_cv_prog_compiler_rtti_exceptions=yes
8174 fi
8175 fi
8176 $RM conftest*
8177
8178 fi
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8180 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8181
8182 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8183 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8184 else
8185 :
8186 fi
8187
8188 fi
8189
8190
8191
8192
8193
8194
8195 lt_prog_compiler_wl=
8196 lt_prog_compiler_pic=
8197 lt_prog_compiler_static=
8198
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8200 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8201
8202 if test "$GCC" = yes; then
8203 lt_prog_compiler_wl='-Wl,'
8204 lt_prog_compiler_static='-static'
8205
8206 case $host_os in
8207 aix*)
8208 # All AIX code is PIC.
8209 if test "$host_cpu" = ia64; then
8210 # AIX 5 now supports IA64 processor
8211 lt_prog_compiler_static='-Bstatic'
8212 fi
8213 lt_prog_compiler_pic='-fPIC'
8214 ;;
8215
8216 amigaos*)
8217 case $host_cpu in
8218 powerpc)
8219 # see comment about AmigaOS4 .so support
8220 lt_prog_compiler_pic='-fPIC'
8221 ;;
8222 m68k)
8223 # FIXME: we need at least 68020 code to build shared libraries, but
8224 # adding the `-m68020' flag to GCC prevents building anything better,
8225 # like `-m68040'.
8226 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8227 ;;
8228 esac
8229 ;;
8230
8231 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8232 # PIC is the default for these OSes.
8233 ;;
8234
8235 mingw* | cygwin* | pw32* | os2* | cegcc*)
8236 # This hack is so that the source file can tell whether it is being
8237 # built for inclusion in a dll (and should export symbols for example).
8238 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8239 # (--disable-auto-import) libraries
8240 lt_prog_compiler_pic='-DDLL_EXPORT'
8241 ;;
8242
8243 darwin* | rhapsody*)
8244 # PIC is the default on this platform
8245 # Common symbols not allowed in MH_DYLIB files
8246 lt_prog_compiler_pic='-fno-common'
8247 ;;
8248
8249 haiku*)
8250 # PIC is the default for Haiku.
8251 # The "-static" flag exists, but is broken.
8252 lt_prog_compiler_static=
8253 ;;
8254
8255 hpux*)
8256 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8257 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8258 # sets the default TLS model and affects inlining.
8259 case $host_cpu in
8260 hppa*64*)
8261 # +Z the default
8262 ;;
8263 *)
8264 lt_prog_compiler_pic='-fPIC'
8265 ;;
8266 esac
8267 ;;
8268
8269 interix[3-9]*)
8270 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8271 # Instead, we relocate shared libraries at runtime.
8272 ;;
8273
8274 msdosdjgpp*)
8275 # Just because we use GCC doesn't mean we suddenly get shared libraries
8276 # on systems that don't support them.
8277 lt_prog_compiler_can_build_shared=no
8278 enable_shared=no
8279 ;;
8280
8281 *nto* | *qnx*)
8282 # QNX uses GNU C++, but need to define -shared option too, otherwise
8283 # it will coredump.
8284 lt_prog_compiler_pic='-fPIC -shared'
8285 ;;
8286
8287 sysv4*MP*)
8288 if test -d /usr/nec; then
8289 lt_prog_compiler_pic=-Kconform_pic
8290 fi
8291 ;;
8292
8293 *)
8294 lt_prog_compiler_pic='-fPIC'
8295 ;;
8296 esac
8297
8298 case $cc_basename in
8299 nvcc*) # Cuda Compiler Driver 2.2
8300 lt_prog_compiler_wl='-Xlinker '
8301 lt_prog_compiler_pic='-Xcompiler -fPIC'
8302 ;;
8303 esac
8304 else
8305 # PORTME Check for flag to pass linker flags through the system compiler.
8306 case $host_os in
8307 aix*)
8308 lt_prog_compiler_wl='-Wl,'
8309 if test "$host_cpu" = ia64; then
8310 # AIX 5 now supports IA64 processor
8311 lt_prog_compiler_static='-Bstatic'
8312 else
8313 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8314 fi
8315 ;;
8316
8317 mingw* | cygwin* | pw32* | os2* | cegcc*)
8318 # This hack is so that the source file can tell whether it is being
8319 # built for inclusion in a dll (and should export symbols for example).
8320 lt_prog_compiler_pic='-DDLL_EXPORT'
8321 ;;
8322
8323 hpux9* | hpux10* | hpux11*)
8324 lt_prog_compiler_wl='-Wl,'
8325 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8326 # not for PA HP-UX.
8327 case $host_cpu in
8328 hppa*64*|ia64*)
8329 # +Z the default
8330 ;;
8331 *)
8332 lt_prog_compiler_pic='+Z'
8333 ;;
8334 esac
8335 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8336 lt_prog_compiler_static='${wl}-a ${wl}archive'
8337 ;;
8338
8339 irix5* | irix6* | nonstopux*)
8340 lt_prog_compiler_wl='-Wl,'
8341 # PIC (with -KPIC) is the default.
8342 lt_prog_compiler_static='-non_shared'
8343 ;;
8344
8345 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8346 case $cc_basename in
8347 # old Intel for x86_64 which still supported -KPIC.
8348 ecc*)
8349 lt_prog_compiler_wl='-Wl,'
8350 lt_prog_compiler_pic='-KPIC'
8351 lt_prog_compiler_static='-static'
8352 ;;
8353 # icc used to be incompatible with GCC.
8354 # ICC 10 doesn't accept -KPIC any more.
8355 icc* | ifort*)
8356 lt_prog_compiler_wl='-Wl,'
8357 lt_prog_compiler_pic='-fPIC'
8358 lt_prog_compiler_static='-static'
8359 ;;
8360 # Lahey Fortran 8.1.
8361 lf95*)
8362 lt_prog_compiler_wl='-Wl,'
8363 lt_prog_compiler_pic='--shared'
8364 lt_prog_compiler_static='--static'
8365 ;;
8366 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8367 # Portland Group compilers (*not* the Pentium gcc compiler,
8368 # which looks to be a dead project)
8369 lt_prog_compiler_wl='-Wl,'
8370 lt_prog_compiler_pic='-fpic'
8371 lt_prog_compiler_static='-Bstatic'
8372 ;;
8373 ccc*)
8374 lt_prog_compiler_wl='-Wl,'
8375 # All Alpha code is PIC.
8376 lt_prog_compiler_static='-non_shared'
8377 ;;
8378 xl* | bgxl* | bgf* | mpixl*)
8379 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8380 lt_prog_compiler_wl='-Wl,'
8381 lt_prog_compiler_pic='-qpic'
8382 lt_prog_compiler_static='-qstaticlink'
8383 ;;
8384 *)
8385 case `$CC -V 2>&1 | sed 5q` in
8386 *Sun\ F* | *Sun*Fortran*)
8387 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8388 lt_prog_compiler_pic='-KPIC'
8389 lt_prog_compiler_static='-Bstatic'
8390 lt_prog_compiler_wl=''
8391 ;;
8392 *Sun\ C*)
8393 # Sun C 5.9
8394 lt_prog_compiler_pic='-KPIC'
8395 lt_prog_compiler_static='-Bstatic'
8396 lt_prog_compiler_wl='-Wl,'
8397 ;;
8398 esac
8399 ;;
8400 esac
8401 ;;
8402
8403 newsos6)
8404 lt_prog_compiler_pic='-KPIC'
8405 lt_prog_compiler_static='-Bstatic'
8406 ;;
8407
8408 *nto* | *qnx*)
8409 # QNX uses GNU C++, but need to define -shared option too, otherwise
8410 # it will coredump.
8411 lt_prog_compiler_pic='-fPIC -shared'
8412 ;;
8413
8414 osf3* | osf4* | osf5*)
8415 lt_prog_compiler_wl='-Wl,'
8416 # All OSF/1 code is PIC.
8417 lt_prog_compiler_static='-non_shared'
8418 ;;
8419
8420 rdos*)
8421 lt_prog_compiler_static='-non_shared'
8422 ;;
8423
8424 solaris*)
8425 lt_prog_compiler_pic='-KPIC'
8426 lt_prog_compiler_static='-Bstatic'
8427 case $cc_basename in
8428 f77* | f90* | f95*)
8429 lt_prog_compiler_wl='-Qoption ld ';;
8430 *)
8431 lt_prog_compiler_wl='-Wl,';;
8432 esac
8433 ;;
8434
8435 sunos4*)
8436 lt_prog_compiler_wl='-Qoption ld '
8437 lt_prog_compiler_pic='-PIC'
8438 lt_prog_compiler_static='-Bstatic'
8439 ;;
8440
8441 sysv4 | sysv4.2uw2* | sysv4.3*)
8442 lt_prog_compiler_wl='-Wl,'
8443 lt_prog_compiler_pic='-KPIC'
8444 lt_prog_compiler_static='-Bstatic'
8445 ;;
8446
8447 sysv4*MP*)
8448 if test -d /usr/nec ;then
8449 lt_prog_compiler_pic='-Kconform_pic'
8450 lt_prog_compiler_static='-Bstatic'
8451 fi
8452 ;;
8453
8454 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8455 lt_prog_compiler_wl='-Wl,'
8456 lt_prog_compiler_pic='-KPIC'
8457 lt_prog_compiler_static='-Bstatic'
8458 ;;
8459
8460 unicos*)
8461 lt_prog_compiler_wl='-Wl,'
8462 lt_prog_compiler_can_build_shared=no
8463 ;;
8464
8465 uts4*)
8466 lt_prog_compiler_pic='-pic'
8467 lt_prog_compiler_static='-Bstatic'
8468 ;;
8469
8470 *)
8471 lt_prog_compiler_can_build_shared=no
8472 ;;
8473 esac
8474 fi
8475
8476 case $host_os in
8477 # For platforms which do not support PIC, -DPIC is meaningless:
8478 *djgpp*)
8479 lt_prog_compiler_pic=
8480 ;;
8481 *)
8482 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8483 ;;
8484 esac
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8486 $as_echo "$lt_prog_compiler_pic" >&6; }
8487
8488
8489
8490
8491
8492
8493 #
8494 # Check to make sure the PIC flag actually works.
8495 #
8496 if test -n "$lt_prog_compiler_pic"; then
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8498 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8499 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8500 $as_echo_n "(cached) " >&6
8501 else
8502 lt_cv_prog_compiler_pic_works=no
8503 ac_outfile=conftest.$ac_objext
8504 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8505 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8506 # Insert the option either (1) after the last *FLAGS variable, or
8507 # (2) before a word containing "conftest.", or (3) at the end.
8508 # Note that $ac_compile itself does not contain backslashes and begins
8509 # with a dollar sign (not a hyphen), so the echo should work correctly.
8510 # The option is referenced via a variable to avoid confusing sed.
8511 lt_compile=`echo "$ac_compile" | $SED \
8512 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8513 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8514 -e 's:$: $lt_compiler_flag:'`
8515 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8516 (eval "$lt_compile" 2>conftest.err)
8517 ac_status=$?
8518 cat conftest.err >&5
8519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8520 if (exit $ac_status) && test -s "$ac_outfile"; then
8521 # The compiler can only warn and ignore the option if not recognized
8522 # So say no if there are warnings other than the usual output.
8523 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8524 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8525 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8526 lt_cv_prog_compiler_pic_works=yes
8527 fi
8528 fi
8529 $RM conftest*
8530
8531 fi
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8533 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8534
8535 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8536 case $lt_prog_compiler_pic in
8537 "" | " "*) ;;
8538 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8539 esac
8540 else
8541 lt_prog_compiler_pic=
8542 lt_prog_compiler_can_build_shared=no
8543 fi
8544
8545 fi
8546
8547
8548
8549
8550
8551
8552 #
8553 # Check to make sure the static flag actually works.
8554 #
8555 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8557 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8558 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8559 $as_echo_n "(cached) " >&6
8560 else
8561 lt_cv_prog_compiler_static_works=no
8562 save_LDFLAGS="$LDFLAGS"
8563 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8564 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8565 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8566 # The linker can only warn and ignore the option if not recognized
8567 # So say no if there are warnings
8568 if test -s conftest.err; then
8569 # Append any errors to the config.log.
8570 cat conftest.err 1>&5
8571 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8572 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8573 if diff conftest.exp conftest.er2 >/dev/null; then
8574 lt_cv_prog_compiler_static_works=yes
8575 fi
8576 else
8577 lt_cv_prog_compiler_static_works=yes
8578 fi
8579 fi
8580 $RM -r conftest*
8581 LDFLAGS="$save_LDFLAGS"
8582
8583 fi
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8585 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8586
8587 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8588 :
8589 else
8590 lt_prog_compiler_static=
8591 fi
8592
8593
8594
8595
8596
8597
8598
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8600 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8601 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8602 $as_echo_n "(cached) " >&6
8603 else
8604 lt_cv_prog_compiler_c_o=no
8605 $RM -r conftest 2>/dev/null
8606 mkdir conftest
8607 cd conftest
8608 mkdir out
8609 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8610
8611 lt_compiler_flag="-o out/conftest2.$ac_objext"
8612 # Insert the option either (1) after the last *FLAGS variable, or
8613 # (2) before a word containing "conftest.", or (3) at the end.
8614 # Note that $ac_compile itself does not contain backslashes and begins
8615 # with a dollar sign (not a hyphen), so the echo should work correctly.
8616 lt_compile=`echo "$ac_compile" | $SED \
8617 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8618 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8619 -e 's:$: $lt_compiler_flag:'`
8620 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8621 (eval "$lt_compile" 2>out/conftest.err)
8622 ac_status=$?
8623 cat out/conftest.err >&5
8624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8625 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8626 then
8627 # The compiler can only warn and ignore the option if not recognized
8628 # So say no if there are warnings
8629 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8630 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8631 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8632 lt_cv_prog_compiler_c_o=yes
8633 fi
8634 fi
8635 chmod u+w . 2>&5
8636 $RM conftest*
8637 # SGI C++ compiler will create directory out/ii_files/ for
8638 # template instantiation
8639 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8640 $RM out/* && rmdir out
8641 cd ..
8642 $RM -r conftest
8643 $RM conftest*
8644
8645 fi
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8647 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8648
8649
8650
8651
8652
8653
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8655 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8656 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8657 $as_echo_n "(cached) " >&6
8658 else
8659 lt_cv_prog_compiler_c_o=no
8660 $RM -r conftest 2>/dev/null
8661 mkdir conftest
8662 cd conftest
8663 mkdir out
8664 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8665
8666 lt_compiler_flag="-o out/conftest2.$ac_objext"
8667 # Insert the option either (1) after the last *FLAGS variable, or
8668 # (2) before a word containing "conftest.", or (3) at the end.
8669 # Note that $ac_compile itself does not contain backslashes and begins
8670 # with a dollar sign (not a hyphen), so the echo should work correctly.
8671 lt_compile=`echo "$ac_compile" | $SED \
8672 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8673 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8674 -e 's:$: $lt_compiler_flag:'`
8675 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8676 (eval "$lt_compile" 2>out/conftest.err)
8677 ac_status=$?
8678 cat out/conftest.err >&5
8679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8681 then
8682 # The compiler can only warn and ignore the option if not recognized
8683 # So say no if there are warnings
8684 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8685 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8686 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8687 lt_cv_prog_compiler_c_o=yes
8688 fi
8689 fi
8690 chmod u+w . 2>&5
8691 $RM conftest*
8692 # SGI C++ compiler will create directory out/ii_files/ for
8693 # template instantiation
8694 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8695 $RM out/* && rmdir out
8696 cd ..
8697 $RM -r conftest
8698 $RM conftest*
8699
8700 fi
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8702 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8703
8704
8705
8706
8707 hard_links="nottested"
8708 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8709 # do not overwrite the value of need_locks provided by the user
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8711 $as_echo_n "checking if we can lock with hard links... " >&6; }
8712 hard_links=yes
8713 $RM conftest*
8714 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8715 touch conftest.a
8716 ln conftest.a conftest.b 2>&5 || hard_links=no
8717 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8719 $as_echo "$hard_links" >&6; }
8720 if test "$hard_links" = no; then
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8722 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8723 need_locks=warn
8724 fi
8725 else
8726 need_locks=no
8727 fi
8728
8729
8730
8731
8732
8733
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8735 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8736
8737 runpath_var=
8738 allow_undefined_flag=
8739 always_export_symbols=no
8740 archive_cmds=
8741 archive_expsym_cmds=
8742 compiler_needs_object=no
8743 enable_shared_with_static_runtimes=no
8744 export_dynamic_flag_spec=
8745 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8746 hardcode_automatic=no
8747 hardcode_direct=no
8748 hardcode_direct_absolute=no
8749 hardcode_libdir_flag_spec=
8750 hardcode_libdir_flag_spec_ld=
8751 hardcode_libdir_separator=
8752 hardcode_minus_L=no
8753 hardcode_shlibpath_var=unsupported
8754 inherit_rpath=no
8755 link_all_deplibs=unknown
8756 module_cmds=
8757 module_expsym_cmds=
8758 old_archive_from_new_cmds=
8759 old_archive_from_expsyms_cmds=
8760 thread_safe_flag_spec=
8761 whole_archive_flag_spec=
8762 # include_expsyms should be a list of space-separated symbols to be *always*
8763 # included in the symbol list
8764 include_expsyms=
8765 # exclude_expsyms can be an extended regexp of symbols to exclude
8766 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8767 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8768 # as well as any symbol that contains `d'.
8769 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8770 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8771 # platforms (ab)use it in PIC code, but their linkers get confused if
8772 # the symbol is explicitly referenced. Since portable code cannot
8773 # rely on this symbol name, it's probably fine to never include it in
8774 # preloaded symbol tables.
8775 # Exclude shared library initialization/finalization symbols.
8776 extract_expsyms_cmds=
8777
8778 case $host_os in
8779 cygwin* | mingw* | pw32* | cegcc*)
8780 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8781 # When not using gcc, we currently assume that we are using
8782 # Microsoft Visual C++.
8783 if test "$GCC" != yes; then
8784 with_gnu_ld=no
8785 fi
8786 ;;
8787 interix*)
8788 # we just hope/assume this is gcc and not c89 (= MSVC++)
8789 with_gnu_ld=yes
8790 ;;
8791 openbsd*)
8792 with_gnu_ld=no
8793 ;;
8794 esac
8795
8796 ld_shlibs=yes
8797
8798 # On some targets, GNU ld is compatible enough with the native linker
8799 # that we're better off using the native interface for both.
8800 lt_use_gnu_ld_interface=no
8801 if test "$with_gnu_ld" = yes; then
8802 case $host_os in
8803 aix*)
8804 # The AIX port of GNU ld has always aspired to compatibility
8805 # with the native linker. However, as the warning in the GNU ld
8806 # block says, versions before 2.19.5* couldn't really create working
8807 # shared libraries, regardless of the interface used.
8808 case `$LD -v 2>&1` in
8809 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8810 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8811 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8812 *)
8813 lt_use_gnu_ld_interface=yes
8814 ;;
8815 esac
8816 ;;
8817 *)
8818 lt_use_gnu_ld_interface=yes
8819 ;;
8820 esac
8821 fi
8822
8823 if test "$lt_use_gnu_ld_interface" = yes; then
8824 # If archive_cmds runs LD, not CC, wlarc should be empty
8825 wlarc='${wl}'
8826
8827 # Set some defaults for GNU ld with shared library support. These
8828 # are reset later if shared libraries are not supported. Putting them
8829 # here allows them to be overridden if necessary.
8830 runpath_var=LD_RUN_PATH
8831 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8832 export_dynamic_flag_spec='${wl}--export-dynamic'
8833 # ancient GNU ld didn't support --whole-archive et. al.
8834 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8835 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8836 else
8837 whole_archive_flag_spec=
8838 fi
8839 supports_anon_versioning=no
8840 case `$LD -v 2>&1` in
8841 *GNU\ gold*) supports_anon_versioning=yes ;;
8842 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8843 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8844 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8845 *\ 2.11.*) ;; # other 2.11 versions
8846 *) supports_anon_versioning=yes ;;
8847 esac
8848
8849 # See if GNU ld supports shared libraries.
8850 case $host_os in
8851 aix[3-9]*)
8852 # On AIX/PPC, the GNU linker is very broken
8853 if test "$host_cpu" != ia64; then
8854 ld_shlibs=no
8855 cat <<_LT_EOF 1>&2
8856
8857 *** Warning: the GNU linker, at least up to release 2.19, is reported
8858 *** to be unable to reliably create shared libraries on AIX.
8859 *** Therefore, libtool is disabling shared libraries support. If you
8860 *** really care for shared libraries, you may want to install binutils
8861 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8862 *** You will then need to restart the configuration process.
8863
8864 _LT_EOF
8865 fi
8866 ;;
8867
8868 amigaos*)
8869 case $host_cpu in
8870 powerpc)
8871 # see comment about AmigaOS4 .so support
8872 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8873 archive_expsym_cmds=''
8874 ;;
8875 m68k)
8876 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)'
8877 hardcode_libdir_flag_spec='-L$libdir'
8878 hardcode_minus_L=yes
8879 ;;
8880 esac
8881 ;;
8882
8883 beos*)
8884 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8885 allow_undefined_flag=unsupported
8886 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8887 # support --undefined. This deserves some investigation. FIXME
8888 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8889 else
8890 ld_shlibs=no
8891 fi
8892 ;;
8893
8894 cygwin* | mingw* | pw32* | cegcc*)
8895 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8896 # as there is no search path for DLLs.
8897 hardcode_libdir_flag_spec='-L$libdir'
8898 export_dynamic_flag_spec='${wl}--export-all-symbols'
8899 allow_undefined_flag=unsupported
8900 always_export_symbols=no
8901 enable_shared_with_static_runtimes=yes
8902 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8903
8904 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8905 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8906 # If the export-symbols file already is a .def file (1st line
8907 # is EXPORTS), use it as is; otherwise, prepend...
8908 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8909 cp $export_symbols $output_objdir/$soname.def;
8910 else
8911 echo EXPORTS > $output_objdir/$soname.def;
8912 cat $export_symbols >> $output_objdir/$soname.def;
8913 fi~
8914 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8915 else
8916 ld_shlibs=no
8917 fi
8918 ;;
8919
8920 haiku*)
8921 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8922 link_all_deplibs=yes
8923 ;;
8924
8925 interix[3-9]*)
8926 hardcode_direct=no
8927 hardcode_shlibpath_var=no
8928 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8929 export_dynamic_flag_spec='${wl}-E'
8930 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8931 # Instead, shared libraries are loaded at an image base (0x10000000 by
8932 # default) and relocated if they conflict, which is a slow very memory
8933 # consuming and fragmenting process. To avoid this, we pick a random,
8934 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8935 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8936 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8937 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'
8938 ;;
8939
8940 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8941 tmp_diet=no
8942 if test "$host_os" = linux-dietlibc; then
8943 case $cc_basename in
8944 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8945 esac
8946 fi
8947 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8948 && test "$tmp_diet" = no
8949 then
8950 tmp_addflag=' $pic_flag'
8951 tmp_sharedflag='-shared'
8952 case $cc_basename,$host_cpu in
8953 pgcc*) # Portland Group C compiler
8954 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8955 tmp_addflag=' $pic_flag'
8956 ;;
8957 pgf77* | pgf90* | pgf95* | pgfortran*)
8958 # Portland Group f77 and f90 compilers
8959 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8960 tmp_addflag=' $pic_flag -Mnomain' ;;
8961 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8962 tmp_addflag=' -i_dynamic' ;;
8963 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8964 tmp_addflag=' -i_dynamic -nofor_main' ;;
8965 ifc* | ifort*) # Intel Fortran compiler
8966 tmp_addflag=' -nofor_main' ;;
8967 lf95*) # Lahey Fortran 8.1
8968 whole_archive_flag_spec=
8969 tmp_sharedflag='--shared' ;;
8970 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8971 tmp_sharedflag='-qmkshrobj'
8972 tmp_addflag= ;;
8973 nvcc*) # Cuda Compiler Driver 2.2
8974 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8975 compiler_needs_object=yes
8976 ;;
8977 esac
8978 case `$CC -V 2>&1 | sed 5q` in
8979 *Sun\ C*) # Sun C 5.9
8980 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8981 compiler_needs_object=yes
8982 tmp_sharedflag='-G' ;;
8983 *Sun\ F*) # Sun Fortran 8.3
8984 tmp_sharedflag='-G' ;;
8985 esac
8986 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8987
8988 if test "x$supports_anon_versioning" = xyes; then
8989 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8990 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8991 echo "local: *; };" >> $output_objdir/$libname.ver~
8992 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8993 fi
8994
8995 case $cc_basename in
8996 xlf* | bgf* | bgxlf* | mpixlf*)
8997 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8998 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8999 hardcode_libdir_flag_spec=
9000 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9001 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9002 if test "x$supports_anon_versioning" = xyes; then
9003 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9004 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9005 echo "local: *; };" >> $output_objdir/$libname.ver~
9006 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9007 fi
9008 ;;
9009 esac
9010 else
9011 ld_shlibs=no
9012 fi
9013 ;;
9014
9015 netbsd*)
9016 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9017 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9018 wlarc=
9019 else
9020 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9021 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9022 fi
9023 ;;
9024
9025 solaris*)
9026 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9027 ld_shlibs=no
9028 cat <<_LT_EOF 1>&2
9029
9030 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9031 *** create shared libraries on Solaris systems. Therefore, libtool
9032 *** is disabling shared libraries support. We urge you to upgrade GNU
9033 *** binutils to release 2.9.1 or newer. Another option is to modify
9034 *** your PATH or compiler configuration so that the native linker is
9035 *** used, and then restart.
9036
9037 _LT_EOF
9038 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9039 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9040 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9041 else
9042 ld_shlibs=no
9043 fi
9044 ;;
9045
9046 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9047 case `$LD -v 2>&1` in
9048 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9049 ld_shlibs=no
9050 cat <<_LT_EOF 1>&2
9051
9052 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9053 *** reliably create shared libraries on SCO systems. Therefore, libtool
9054 *** is disabling shared libraries support. We urge you to upgrade GNU
9055 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9056 *** your PATH or compiler configuration so that the native linker is
9057 *** used, and then restart.
9058
9059 _LT_EOF
9060 ;;
9061 *)
9062 # For security reasons, it is highly recommended that you always
9063 # use absolute paths for naming shared libraries, and exclude the
9064 # DT_RUNPATH tag from executables and libraries. But doing so
9065 # requires that you compile everything twice, which is a pain.
9066 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9067 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9068 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9069 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9070 else
9071 ld_shlibs=no
9072 fi
9073 ;;
9074 esac
9075 ;;
9076
9077 sunos4*)
9078 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9079 wlarc=
9080 hardcode_direct=yes
9081 hardcode_shlibpath_var=no
9082 ;;
9083
9084 *)
9085 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9086 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9087 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9088 else
9089 ld_shlibs=no
9090 fi
9091 ;;
9092 esac
9093
9094 if test "$ld_shlibs" = no; then
9095 runpath_var=
9096 hardcode_libdir_flag_spec=
9097 export_dynamic_flag_spec=
9098 whole_archive_flag_spec=
9099 fi
9100 else
9101 # PORTME fill in a description of your system's linker (not GNU ld)
9102 case $host_os in
9103 aix3*)
9104 allow_undefined_flag=unsupported
9105 always_export_symbols=yes
9106 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'
9107 # Note: this linker hardcodes the directories in LIBPATH if there
9108 # are no directories specified by -L.
9109 hardcode_minus_L=yes
9110 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9111 # Neither direct hardcoding nor static linking is supported with a
9112 # broken collect2.
9113 hardcode_direct=unsupported
9114 fi
9115 ;;
9116
9117 aix[4-9]*)
9118 if test "$host_cpu" = ia64; then
9119 # On IA64, the linker does run time linking by default, so we don't
9120 # have to do anything special.
9121 aix_use_runtimelinking=no
9122 exp_sym_flag='-Bexport'
9123 no_entry_flag=""
9124 else
9125 # If we're using GNU nm, then we don't want the "-C" option.
9126 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9127 # Also, AIX nm treats weak defined symbols like other global
9128 # defined symbols, whereas GNU nm marks them as "W".
9129 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9130 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9131 else
9132 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9133 fi
9134 aix_use_runtimelinking=no
9135
9136 # Test if we are trying to use run time linking or normal
9137 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9138 # need to do runtime linking.
9139 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9140 for ld_flag in $LDFLAGS; do
9141 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9142 aix_use_runtimelinking=yes
9143 break
9144 fi
9145 done
9146 ;;
9147 esac
9148
9149 exp_sym_flag='-bexport'
9150 no_entry_flag='-bnoentry'
9151 fi
9152
9153 # When large executables or shared objects are built, AIX ld can
9154 # have problems creating the table of contents. If linking a library
9155 # or program results in "error TOC overflow" add -mminimal-toc to
9156 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9157 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9158
9159 archive_cmds=''
9160 hardcode_direct=yes
9161 hardcode_direct_absolute=yes
9162 hardcode_libdir_separator=':'
9163 link_all_deplibs=yes
9164 file_list_spec='${wl}-f,'
9165
9166 if test "$GCC" = yes; then
9167 case $host_os in aix4.[012]|aix4.[012].*)
9168 # We only want to do this on AIX 4.2 and lower, the check
9169 # below for broken collect2 doesn't work under 4.3+
9170 collect2name=`${CC} -print-prog-name=collect2`
9171 if test -f "$collect2name" &&
9172 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9173 then
9174 # We have reworked collect2
9175 :
9176 else
9177 # We have old collect2
9178 hardcode_direct=unsupported
9179 # It fails to find uninstalled libraries when the uninstalled
9180 # path is not listed in the libpath. Setting hardcode_minus_L
9181 # to unsupported forces relinking
9182 hardcode_minus_L=yes
9183 hardcode_libdir_flag_spec='-L$libdir'
9184 hardcode_libdir_separator=
9185 fi
9186 ;;
9187 esac
9188 shared_flag='-shared'
9189 if test "$aix_use_runtimelinking" = yes; then
9190 shared_flag="$shared_flag "'${wl}-G'
9191 fi
9192 else
9193 # not using gcc
9194 if test "$host_cpu" = ia64; then
9195 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9196 # chokes on -Wl,-G. The following line is correct:
9197 shared_flag='-G'
9198 else
9199 if test "$aix_use_runtimelinking" = yes; then
9200 shared_flag='${wl}-G'
9201 else
9202 shared_flag='${wl}-bM:SRE'
9203 fi
9204 fi
9205 fi
9206
9207 export_dynamic_flag_spec='${wl}-bexpall'
9208 # It seems that -bexpall does not export symbols beginning with
9209 # underscore (_), so it is better to generate a list of symbols to export.
9210 always_export_symbols=yes
9211 if test "$aix_use_runtimelinking" = yes; then
9212 # Warning - without using the other runtime loading flags (-brtl),
9213 # -berok will link without error, but may produce a broken library.
9214 allow_undefined_flag='-berok'
9215 # Determine the default libpath from the value encoded in an
9216 # empty executable.
9217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9218 /* end confdefs.h. */
9219
9220 int
9221 main ()
9222 {
9223
9224 ;
9225 return 0;
9226 }
9227 _ACEOF
9228 if ac_fn_c_try_link "$LINENO"; then :
9229
9230 lt_aix_libpath_sed='
9231 /Import File Strings/,/^$/ {
9232 /^0/ {
9233 s/^0 *\(.*\)$/\1/
9234 p
9235 }
9236 }'
9237 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9238 # Check for a 64-bit object if we didn't find anything.
9239 if test -z "$aix_libpath"; then
9240 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9241 fi
9242 fi
9243 rm -f core conftest.err conftest.$ac_objext \
9244 conftest$ac_exeext conftest.$ac_ext
9245 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9246
9247 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9248 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9249 else
9250 if test "$host_cpu" = ia64; then
9251 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9252 allow_undefined_flag="-z nodefs"
9253 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"
9254 else
9255 # Determine the default libpath from the value encoded in an
9256 # empty executable.
9257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9258 /* end confdefs.h. */
9259
9260 int
9261 main ()
9262 {
9263
9264 ;
9265 return 0;
9266 }
9267 _ACEOF
9268 if ac_fn_c_try_link "$LINENO"; then :
9269
9270 lt_aix_libpath_sed='
9271 /Import File Strings/,/^$/ {
9272 /^0/ {
9273 s/^0 *\(.*\)$/\1/
9274 p
9275 }
9276 }'
9277 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9278 # Check for a 64-bit object if we didn't find anything.
9279 if test -z "$aix_libpath"; then
9280 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9281 fi
9282 fi
9283 rm -f core conftest.err conftest.$ac_objext \
9284 conftest$ac_exeext conftest.$ac_ext
9285 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9286
9287 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9288 # Warning - without using the other run time loading flags,
9289 # -berok will link without error, but may produce a broken library.
9290 no_undefined_flag=' ${wl}-bernotok'
9291 allow_undefined_flag=' ${wl}-berok'
9292 if test "$with_gnu_ld" = yes; then
9293 # We only use this code for GNU lds that support --whole-archive.
9294 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9295 else
9296 # Exported symbols can be pulled into shared objects from archives
9297 whole_archive_flag_spec='$convenience'
9298 fi
9299 archive_cmds_need_lc=yes
9300 # This is similar to how AIX traditionally builds its shared libraries.
9301 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'
9302 fi
9303 fi
9304 ;;
9305
9306 amigaos*)
9307 case $host_cpu in
9308 powerpc)
9309 # see comment about AmigaOS4 .so support
9310 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9311 archive_expsym_cmds=''
9312 ;;
9313 m68k)
9314 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)'
9315 hardcode_libdir_flag_spec='-L$libdir'
9316 hardcode_minus_L=yes
9317 ;;
9318 esac
9319 ;;
9320
9321 bsdi[45]*)
9322 export_dynamic_flag_spec=-rdynamic
9323 ;;
9324
9325 cygwin* | mingw* | pw32* | cegcc*)
9326 # When not using gcc, we currently assume that we are using
9327 # Microsoft Visual C++.
9328 # hardcode_libdir_flag_spec is actually meaningless, as there is
9329 # no search path for DLLs.
9330 hardcode_libdir_flag_spec=' '
9331 allow_undefined_flag=unsupported
9332 # Tell ltmain to make .lib files, not .a files.
9333 libext=lib
9334 # Tell ltmain to make .dll files, not .so files.
9335 shrext_cmds=".dll"
9336 # FIXME: Setting linknames here is a bad hack.
9337 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9338 # The linker will automatically build a .lib file if we build a DLL.
9339 old_archive_from_new_cmds='true'
9340 # FIXME: Should let the user specify the lib program.
9341 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9342 fix_srcfile_path='`cygpath -w "$srcfile"`'
9343 enable_shared_with_static_runtimes=yes
9344 ;;
9345
9346 darwin* | rhapsody*)
9347
9348
9349 archive_cmds_need_lc=no
9350 hardcode_direct=no
9351 hardcode_automatic=yes
9352 hardcode_shlibpath_var=unsupported
9353 if test "$lt_cv_ld_force_load" = "yes"; then
9354 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9355 else
9356 whole_archive_flag_spec=''
9357 fi
9358 link_all_deplibs=yes
9359 allow_undefined_flag="$_lt_dar_allow_undefined"
9360 case $cc_basename in
9361 ifort*) _lt_dar_can_shared=yes ;;
9362 *) _lt_dar_can_shared=$GCC ;;
9363 esac
9364 if test "$_lt_dar_can_shared" = "yes"; then
9365 output_verbose_link_cmd=func_echo_all
9366 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9367 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9368 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 ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9369 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9370
9371 else
9372 ld_shlibs=no
9373 fi
9374
9375 ;;
9376
9377 dgux*)
9378 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9379 hardcode_libdir_flag_spec='-L$libdir'
9380 hardcode_shlibpath_var=no
9381 ;;
9382
9383 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9384 # support. Future versions do this automatically, but an explicit c++rt0.o
9385 # does not break anything, and helps significantly (at the cost of a little
9386 # extra space).
9387 freebsd2.2*)
9388 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9389 hardcode_libdir_flag_spec='-R$libdir'
9390 hardcode_direct=yes
9391 hardcode_shlibpath_var=no
9392 ;;
9393
9394 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9395 freebsd2.*)
9396 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9397 hardcode_direct=yes
9398 hardcode_minus_L=yes
9399 hardcode_shlibpath_var=no
9400 ;;
9401
9402 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9403 freebsd* | dragonfly*)
9404 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9405 hardcode_libdir_flag_spec='-R$libdir'
9406 hardcode_direct=yes
9407 hardcode_shlibpath_var=no
9408 ;;
9409
9410 hpux9*)
9411 if test "$GCC" = yes; then
9412 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'
9413 else
9414 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'
9415 fi
9416 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9417 hardcode_libdir_separator=:
9418 hardcode_direct=yes
9419
9420 # hardcode_minus_L: Not really in the search PATH,
9421 # but as the default location of the library.
9422 hardcode_minus_L=yes
9423 export_dynamic_flag_spec='${wl}-E'
9424 ;;
9425
9426 hpux10*)
9427 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9428 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9429 else
9430 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9431 fi
9432 if test "$with_gnu_ld" = no; then
9433 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9434 hardcode_libdir_flag_spec_ld='+b $libdir'
9435 hardcode_libdir_separator=:
9436 hardcode_direct=yes
9437 hardcode_direct_absolute=yes
9438 export_dynamic_flag_spec='${wl}-E'
9439 # hardcode_minus_L: Not really in the search PATH,
9440 # but as the default location of the library.
9441 hardcode_minus_L=yes
9442 fi
9443 ;;
9444
9445 hpux11*)
9446 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9447 case $host_cpu in
9448 hppa*64*)
9449 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9450 ;;
9451 ia64*)
9452 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9453 ;;
9454 *)
9455 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9456 ;;
9457 esac
9458 else
9459 case $host_cpu in
9460 hppa*64*)
9461 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9462 ;;
9463 ia64*)
9464 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9465 ;;
9466 *)
9467
9468 # Older versions of the 11.00 compiler do not understand -b yet
9469 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9471 $as_echo_n "checking if $CC understands -b... " >&6; }
9472 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9473 $as_echo_n "(cached) " >&6
9474 else
9475 lt_cv_prog_compiler__b=no
9476 save_LDFLAGS="$LDFLAGS"
9477 LDFLAGS="$LDFLAGS -b"
9478 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9479 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9480 # The linker can only warn and ignore the option if not recognized
9481 # So say no if there are warnings
9482 if test -s conftest.err; then
9483 # Append any errors to the config.log.
9484 cat conftest.err 1>&5
9485 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9486 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9487 if diff conftest.exp conftest.er2 >/dev/null; then
9488 lt_cv_prog_compiler__b=yes
9489 fi
9490 else
9491 lt_cv_prog_compiler__b=yes
9492 fi
9493 fi
9494 $RM -r conftest*
9495 LDFLAGS="$save_LDFLAGS"
9496
9497 fi
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9499 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9500
9501 if test x"$lt_cv_prog_compiler__b" = xyes; then
9502 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9503 else
9504 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9505 fi
9506
9507 ;;
9508 esac
9509 fi
9510 if test "$with_gnu_ld" = no; then
9511 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9512 hardcode_libdir_separator=:
9513
9514 case $host_cpu in
9515 hppa*64*|ia64*)
9516 hardcode_direct=no
9517 hardcode_shlibpath_var=no
9518 ;;
9519 *)
9520 hardcode_direct=yes
9521 hardcode_direct_absolute=yes
9522 export_dynamic_flag_spec='${wl}-E'
9523
9524 # hardcode_minus_L: Not really in the search PATH,
9525 # but as the default location of the library.
9526 hardcode_minus_L=yes
9527 ;;
9528 esac
9529 fi
9530 ;;
9531
9532 irix5* | irix6* | nonstopux*)
9533 if test "$GCC" = yes; then
9534 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9535 # Try to use the -exported_symbol ld option, if it does not
9536 # work, assume that -exports_file does not work either and
9537 # implicitly export all symbols.
9538 save_LDFLAGS="$LDFLAGS"
9539 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9541 /* end confdefs.h. */
9542 int foo(void) {}
9543 _ACEOF
9544 if ac_fn_c_try_link "$LINENO"; then :
9545 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9546
9547 fi
9548 rm -f core conftest.err conftest.$ac_objext \
9549 conftest$ac_exeext conftest.$ac_ext
9550 LDFLAGS="$save_LDFLAGS"
9551 else
9552 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9553 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9554 fi
9555 archive_cmds_need_lc='no'
9556 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9557 hardcode_libdir_separator=:
9558 inherit_rpath=yes
9559 link_all_deplibs=yes
9560 ;;
9561
9562 netbsd*)
9563 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9564 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9565 else
9566 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9567 fi
9568 hardcode_libdir_flag_spec='-R$libdir'
9569 hardcode_direct=yes
9570 hardcode_shlibpath_var=no
9571 ;;
9572
9573 newsos6)
9574 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9575 hardcode_direct=yes
9576 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9577 hardcode_libdir_separator=:
9578 hardcode_shlibpath_var=no
9579 ;;
9580
9581 *nto* | *qnx*)
9582 ;;
9583
9584 openbsd*)
9585 if test -f /usr/libexec/ld.so; then
9586 hardcode_direct=yes
9587 hardcode_shlibpath_var=no
9588 hardcode_direct_absolute=yes
9589 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9590 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9591 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9592 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9593 export_dynamic_flag_spec='${wl}-E'
9594 else
9595 case $host_os in
9596 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9597 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9598 hardcode_libdir_flag_spec='-R$libdir'
9599 ;;
9600 *)
9601 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9602 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9603 ;;
9604 esac
9605 fi
9606 else
9607 ld_shlibs=no
9608 fi
9609 ;;
9610
9611 os2*)
9612 hardcode_libdir_flag_spec='-L$libdir'
9613 hardcode_minus_L=yes
9614 allow_undefined_flag=unsupported
9615 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'
9616 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9617 ;;
9618
9619 osf3*)
9620 if test "$GCC" = yes; then
9621 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9622 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9623 else
9624 allow_undefined_flag=' -expect_unresolved \*'
9625 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9626 fi
9627 archive_cmds_need_lc='no'
9628 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9629 hardcode_libdir_separator=:
9630 ;;
9631
9632 osf4* | osf5*) # as osf3* with the addition of -msym flag
9633 if test "$GCC" = yes; then
9634 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9635 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9636 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9637 else
9638 allow_undefined_flag=' -expect_unresolved \*'
9639 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9640 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~
9641 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9642
9643 # Both c and cxx compiler support -rpath directly
9644 hardcode_libdir_flag_spec='-rpath $libdir'
9645 fi
9646 archive_cmds_need_lc='no'
9647 hardcode_libdir_separator=:
9648 ;;
9649
9650 solaris*)
9651 no_undefined_flag=' -z defs'
9652 if test "$GCC" = yes; then
9653 wlarc='${wl}'
9654 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9655 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9656 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9657 else
9658 case `$CC -V 2>&1` in
9659 *"Compilers 5.0"*)
9660 wlarc=''
9661 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9662 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9663 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9664 ;;
9665 *)
9666 wlarc='${wl}'
9667 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9668 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9669 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9670 ;;
9671 esac
9672 fi
9673 hardcode_libdir_flag_spec='-R$libdir'
9674 hardcode_shlibpath_var=no
9675 case $host_os in
9676 solaris2.[0-5] | solaris2.[0-5].*) ;;
9677 *)
9678 # The compiler driver will combine and reorder linker options,
9679 # but understands `-z linker_flag'. GCC discards it without `$wl',
9680 # but is careful enough not to reorder.
9681 # Supported since Solaris 2.6 (maybe 2.5.1?)
9682 if test "$GCC" = yes; then
9683 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9684 else
9685 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9686 fi
9687 ;;
9688 esac
9689 link_all_deplibs=yes
9690 ;;
9691
9692 sunos4*)
9693 if test "x$host_vendor" = xsequent; then
9694 # Use $CC to link under sequent, because it throws in some extra .o
9695 # files that make .init and .fini sections work.
9696 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9697 else
9698 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9699 fi
9700 hardcode_libdir_flag_spec='-L$libdir'
9701 hardcode_direct=yes
9702 hardcode_minus_L=yes
9703 hardcode_shlibpath_var=no
9704 ;;
9705
9706 sysv4)
9707 case $host_vendor in
9708 sni)
9709 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9710 hardcode_direct=yes # is this really true???
9711 ;;
9712 siemens)
9713 ## LD is ld it makes a PLAMLIB
9714 ## CC just makes a GrossModule.
9715 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9716 reload_cmds='$CC -r -o $output$reload_objs'
9717 hardcode_direct=no
9718 ;;
9719 motorola)
9720 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9721 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9722 ;;
9723 esac
9724 runpath_var='LD_RUN_PATH'
9725 hardcode_shlibpath_var=no
9726 ;;
9727
9728 sysv4.3*)
9729 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9730 hardcode_shlibpath_var=no
9731 export_dynamic_flag_spec='-Bexport'
9732 ;;
9733
9734 sysv4*MP*)
9735 if test -d /usr/nec; then
9736 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9737 hardcode_shlibpath_var=no
9738 runpath_var=LD_RUN_PATH
9739 hardcode_runpath_var=yes
9740 ld_shlibs=yes
9741 fi
9742 ;;
9743
9744 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9745 no_undefined_flag='${wl}-z,text'
9746 archive_cmds_need_lc=no
9747 hardcode_shlibpath_var=no
9748 runpath_var='LD_RUN_PATH'
9749
9750 if test "$GCC" = yes; then
9751 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9752 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9753 else
9754 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9755 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9756 fi
9757 ;;
9758
9759 sysv5* | sco3.2v5* | sco5v6*)
9760 # Note: We can NOT use -z defs as we might desire, because we do not
9761 # link with -lc, and that would cause any symbols used from libc to
9762 # always be unresolved, which means just about no library would
9763 # ever link correctly. If we're not using GNU ld we use -z text
9764 # though, which does catch some bad symbols but isn't as heavy-handed
9765 # as -z defs.
9766 no_undefined_flag='${wl}-z,text'
9767 allow_undefined_flag='${wl}-z,nodefs'
9768 archive_cmds_need_lc=no
9769 hardcode_shlibpath_var=no
9770 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9771 hardcode_libdir_separator=':'
9772 link_all_deplibs=yes
9773 export_dynamic_flag_spec='${wl}-Bexport'
9774 runpath_var='LD_RUN_PATH'
9775
9776 if test "$GCC" = yes; then
9777 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9778 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9779 else
9780 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9781 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9782 fi
9783 ;;
9784
9785 uts4*)
9786 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9787 hardcode_libdir_flag_spec='-L$libdir'
9788 hardcode_shlibpath_var=no
9789 ;;
9790
9791 *)
9792 ld_shlibs=no
9793 ;;
9794 esac
9795
9796 if test x$host_vendor = xsni; then
9797 case $host in
9798 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9799 export_dynamic_flag_spec='${wl}-Blargedynsym'
9800 ;;
9801 esac
9802 fi
9803 fi
9804
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9806 $as_echo "$ld_shlibs" >&6; }
9807 test "$ld_shlibs" = no && can_build_shared=no
9808
9809 with_gnu_ld=$with_gnu_ld
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825 #
9826 # Do we need to explicitly link libc?
9827 #
9828 case "x$archive_cmds_need_lc" in
9829 x|xyes)
9830 # Assume -lc should be added
9831 archive_cmds_need_lc=yes
9832
9833 if test "$enable_shared" = yes && test "$GCC" = yes; then
9834 case $archive_cmds in
9835 *'~'*)
9836 # FIXME: we may have to deal with multi-command sequences.
9837 ;;
9838 '$CC '*)
9839 # Test whether the compiler implicitly links with -lc since on some
9840 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9841 # to ld, don't add -lc before -lgcc.
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9843 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9844 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9845 $as_echo_n "(cached) " >&6
9846 else
9847 $RM conftest*
9848 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9849
9850 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9851 (eval $ac_compile) 2>&5
9852 ac_status=$?
9853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9854 test $ac_status = 0; } 2>conftest.err; then
9855 soname=conftest
9856 lib=conftest
9857 libobjs=conftest.$ac_objext
9858 deplibs=
9859 wl=$lt_prog_compiler_wl
9860 pic_flag=$lt_prog_compiler_pic
9861 compiler_flags=-v
9862 linker_flags=-v
9863 verstring=
9864 output_objdir=.
9865 libname=conftest
9866 lt_save_allow_undefined_flag=$allow_undefined_flag
9867 allow_undefined_flag=
9868 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9869 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9870 ac_status=$?
9871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9872 test $ac_status = 0; }
9873 then
9874 lt_cv_archive_cmds_need_lc=no
9875 else
9876 lt_cv_archive_cmds_need_lc=yes
9877 fi
9878 allow_undefined_flag=$lt_save_allow_undefined_flag
9879 else
9880 cat conftest.err 1>&5
9881 fi
9882 $RM conftest*
9883
9884 fi
9885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9886 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9887 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9888 ;;
9889 esac
9890 fi
9891 ;;
9892 esac
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10051 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10052
10053 if test "$GCC" = yes; then
10054 case $host_os in
10055 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10056 *) lt_awk_arg="/^libraries:/" ;;
10057 esac
10058 case $host_os in
10059 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10060 *) lt_sed_strip_eq="s,=/,/,g" ;;
10061 esac
10062 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10063 case $lt_search_path_spec in
10064 *\;*)
10065 # if the path contains ";" then we assume it to be the separator
10066 # otherwise default to the standard path separator (i.e. ":") - it is
10067 # assumed that no part of a normal pathname contains ";" but that should
10068 # okay in the real world where ";" in dirpaths is itself problematic.
10069 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10070 ;;
10071 *)
10072 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10073 ;;
10074 esac
10075 # Ok, now we have the path, separated by spaces, we can step through it
10076 # and add multilib dir if necessary.
10077 lt_tmp_lt_search_path_spec=
10078 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10079 for lt_sys_path in $lt_search_path_spec; do
10080 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10081 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10082 else
10083 test -d "$lt_sys_path" && \
10084 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10085 fi
10086 done
10087 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10088 BEGIN {RS=" "; FS="/|\n";} {
10089 lt_foo="";
10090 lt_count=0;
10091 for (lt_i = NF; lt_i > 0; lt_i--) {
10092 if ($lt_i != "" && $lt_i != ".") {
10093 if ($lt_i == "..") {
10094 lt_count++;
10095 } else {
10096 if (lt_count == 0) {
10097 lt_foo="/" $lt_i lt_foo;
10098 } else {
10099 lt_count--;
10100 }
10101 }
10102 }
10103 }
10104 if (lt_foo != "") { lt_freq[lt_foo]++; }
10105 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10106 }'`
10107 # AWK program above erroneously prepends '/' to C:/dos/paths
10108 # for these hosts.
10109 case $host_os in
10110 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10111 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10112 esac
10113 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10114 else
10115 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10116 fi
10117 library_names_spec=
10118 libname_spec='lib$name'
10119 soname_spec=
10120 shrext_cmds=".so"
10121 postinstall_cmds=
10122 postuninstall_cmds=
10123 finish_cmds=
10124 finish_eval=
10125 shlibpath_var=
10126 shlibpath_overrides_runpath=unknown
10127 version_type=none
10128 dynamic_linker="$host_os ld.so"
10129 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10130 need_lib_prefix=unknown
10131 hardcode_into_libs=no
10132
10133 # when you set need_version to no, make sure it does not cause -set_version
10134 # flags to be left without arguments
10135 need_version=unknown
10136
10137 case $host_os in
10138 aix3*)
10139 version_type=linux
10140 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10141 shlibpath_var=LIBPATH
10142
10143 # AIX 3 has no versioning support, so we append a major version to the name.
10144 soname_spec='${libname}${release}${shared_ext}$major'
10145 ;;
10146
10147 aix[4-9]*)
10148 version_type=linux
10149 need_lib_prefix=no
10150 need_version=no
10151 hardcode_into_libs=yes
10152 if test "$host_cpu" = ia64; then
10153 # AIX 5 supports IA64
10154 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10155 shlibpath_var=LD_LIBRARY_PATH
10156 else
10157 # With GCC up to 2.95.x, collect2 would create an import file
10158 # for dependence libraries. The import file would start with
10159 # the line `#! .'. This would cause the generated library to
10160 # depend on `.', always an invalid library. This was fixed in
10161 # development snapshots of GCC prior to 3.0.
10162 case $host_os in
10163 aix4 | aix4.[01] | aix4.[01].*)
10164 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10165 echo ' yes '
10166 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10167 :
10168 else
10169 can_build_shared=no
10170 fi
10171 ;;
10172 esac
10173 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10174 # soname into executable. Probably we can add versioning support to
10175 # collect2, so additional links can be useful in future.
10176 if test "$aix_use_runtimelinking" = yes; then
10177 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10178 # instead of lib<name>.a to let people know that these are not
10179 # typical AIX shared libraries.
10180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10181 else
10182 # We preserve .a as extension for shared libraries through AIX4.2
10183 # and later when we are not doing run time linking.
10184 library_names_spec='${libname}${release}.a $libname.a'
10185 soname_spec='${libname}${release}${shared_ext}$major'
10186 fi
10187 shlibpath_var=LIBPATH
10188 fi
10189 ;;
10190
10191 amigaos*)
10192 case $host_cpu in
10193 powerpc)
10194 # Since July 2007 AmigaOS4 officially supports .so libraries.
10195 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10197 ;;
10198 m68k)
10199 library_names_spec='$libname.ixlibrary $libname.a'
10200 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10201 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
10202 ;;
10203 esac
10204 ;;
10205
10206 beos*)
10207 library_names_spec='${libname}${shared_ext}'
10208 dynamic_linker="$host_os ld.so"
10209 shlibpath_var=LIBRARY_PATH
10210 ;;
10211
10212 bsdi[45]*)
10213 version_type=linux
10214 need_version=no
10215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10216 soname_spec='${libname}${release}${shared_ext}$major'
10217 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10218 shlibpath_var=LD_LIBRARY_PATH
10219 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10220 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10221 # the default ld.so.conf also contains /usr/contrib/lib and
10222 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10223 # libtool to hard-code these into programs
10224 ;;
10225
10226 cygwin* | mingw* | pw32* | cegcc*)
10227 version_type=windows
10228 shrext_cmds=".dll"
10229 need_version=no
10230 need_lib_prefix=no
10231
10232 case $GCC,$host_os in
10233 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10234 library_names_spec='$libname.dll.a'
10235 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10236 postinstall_cmds='base_file=`basename \${file}`~
10237 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10238 dldir=$destdir/`dirname \$dlpath`~
10239 test -d \$dldir || mkdir -p \$dldir~
10240 $install_prog $dir/$dlname \$dldir/$dlname~
10241 chmod a+x \$dldir/$dlname~
10242 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10243 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10244 fi'
10245 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10246 dlpath=$dir/\$dldll~
10247 $RM \$dlpath'
10248 shlibpath_overrides_runpath=yes
10249
10250 case $host_os in
10251 cygwin*)
10252 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10253 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10254
10255 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10256 ;;
10257 mingw* | cegcc*)
10258 # MinGW DLLs use traditional 'lib' prefix
10259 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10260 ;;
10261 pw32*)
10262 # pw32 DLLs use 'pw' prefix rather than 'lib'
10263 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10264 ;;
10265 esac
10266 ;;
10267
10268 *)
10269 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10270 ;;
10271 esac
10272 dynamic_linker='Win32 ld.exe'
10273 # FIXME: first we should search . and the directory the executable is in
10274 shlibpath_var=PATH
10275 ;;
10276
10277 darwin* | rhapsody*)
10278 dynamic_linker="$host_os dyld"
10279 version_type=darwin
10280 need_lib_prefix=no
10281 need_version=no
10282 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10283 soname_spec='${libname}${release}${major}$shared_ext'
10284 shlibpath_overrides_runpath=yes
10285 shlibpath_var=DYLD_LIBRARY_PATH
10286 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10287
10288 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10289 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10290 ;;
10291
10292 dgux*)
10293 version_type=linux
10294 need_lib_prefix=no
10295 need_version=no
10296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10297 soname_spec='${libname}${release}${shared_ext}$major'
10298 shlibpath_var=LD_LIBRARY_PATH
10299 ;;
10300
10301 freebsd* | dragonfly*)
10302 # DragonFly does not have aout. When/if they implement a new
10303 # versioning mechanism, adjust this.
10304 if test -x /usr/bin/objformat; then
10305 objformat=`/usr/bin/objformat`
10306 else
10307 case $host_os in
10308 freebsd[23].*) objformat=aout ;;
10309 *) objformat=elf ;;
10310 esac
10311 fi
10312 version_type=freebsd-$objformat
10313 case $version_type in
10314 freebsd-elf*)
10315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10316 need_version=no
10317 need_lib_prefix=no
10318 ;;
10319 freebsd-*)
10320 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10321 need_version=yes
10322 ;;
10323 esac
10324 shlibpath_var=LD_LIBRARY_PATH
10325 case $host_os in
10326 freebsd2.*)
10327 shlibpath_overrides_runpath=yes
10328 ;;
10329 freebsd3.[01]* | freebsdelf3.[01]*)
10330 shlibpath_overrides_runpath=yes
10331 hardcode_into_libs=yes
10332 ;;
10333 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10334 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10335 shlibpath_overrides_runpath=no
10336 hardcode_into_libs=yes
10337 ;;
10338 *) # from 4.6 on, and DragonFly
10339 shlibpath_overrides_runpath=yes
10340 hardcode_into_libs=yes
10341 ;;
10342 esac
10343 ;;
10344
10345 gnu*)
10346 version_type=linux
10347 need_lib_prefix=no
10348 need_version=no
10349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10350 soname_spec='${libname}${release}${shared_ext}$major'
10351 shlibpath_var=LD_LIBRARY_PATH
10352 hardcode_into_libs=yes
10353 ;;
10354
10355 haiku*)
10356 version_type=linux
10357 need_lib_prefix=no
10358 need_version=no
10359 dynamic_linker="$host_os runtime_loader"
10360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10361 soname_spec='${libname}${release}${shared_ext}$major'
10362 shlibpath_var=LIBRARY_PATH
10363 shlibpath_overrides_runpath=yes
10364 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10365 hardcode_into_libs=yes
10366 ;;
10367
10368 hpux9* | hpux10* | hpux11*)
10369 # Give a soname corresponding to the major version so that dld.sl refuses to
10370 # link against other versions.
10371 version_type=sunos
10372 need_lib_prefix=no
10373 need_version=no
10374 case $host_cpu in
10375 ia64*)
10376 shrext_cmds='.so'
10377 hardcode_into_libs=yes
10378 dynamic_linker="$host_os dld.so"
10379 shlibpath_var=LD_LIBRARY_PATH
10380 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10382 soname_spec='${libname}${release}${shared_ext}$major'
10383 if test "X$HPUX_IA64_MODE" = X32; then
10384 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10385 else
10386 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10387 fi
10388 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10389 ;;
10390 hppa*64*)
10391 shrext_cmds='.sl'
10392 hardcode_into_libs=yes
10393 dynamic_linker="$host_os dld.sl"
10394 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10395 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10397 soname_spec='${libname}${release}${shared_ext}$major'
10398 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10399 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10400 ;;
10401 *)
10402 shrext_cmds='.sl'
10403 dynamic_linker="$host_os dld.sl"
10404 shlibpath_var=SHLIB_PATH
10405 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10407 soname_spec='${libname}${release}${shared_ext}$major'
10408 ;;
10409 esac
10410 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10411 postinstall_cmds='chmod 555 $lib'
10412 # or fails outright, so override atomically:
10413 install_override_mode=555
10414 ;;
10415
10416 interix[3-9]*)
10417 version_type=linux
10418 need_lib_prefix=no
10419 need_version=no
10420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10421 soname_spec='${libname}${release}${shared_ext}$major'
10422 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10423 shlibpath_var=LD_LIBRARY_PATH
10424 shlibpath_overrides_runpath=no
10425 hardcode_into_libs=yes
10426 ;;
10427
10428 irix5* | irix6* | nonstopux*)
10429 case $host_os in
10430 nonstopux*) version_type=nonstopux ;;
10431 *)
10432 if test "$lt_cv_prog_gnu_ld" = yes; then
10433 version_type=linux
10434 else
10435 version_type=irix
10436 fi ;;
10437 esac
10438 need_lib_prefix=no
10439 need_version=no
10440 soname_spec='${libname}${release}${shared_ext}$major'
10441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10442 case $host_os in
10443 irix5* | nonstopux*)
10444 libsuff= shlibsuff=
10445 ;;
10446 *)
10447 case $LD in # libtool.m4 will add one of these switches to LD
10448 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10449 libsuff= shlibsuff= libmagic=32-bit;;
10450 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10451 libsuff=32 shlibsuff=N32 libmagic=N32;;
10452 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10453 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10454 *) libsuff= shlibsuff= libmagic=never-match;;
10455 esac
10456 ;;
10457 esac
10458 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10459 shlibpath_overrides_runpath=no
10460 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10461 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10462 hardcode_into_libs=yes
10463 ;;
10464
10465 # No shared lib support for Linux oldld, aout, or coff.
10466 linux*oldld* | linux*aout* | linux*coff*)
10467 dynamic_linker=no
10468 ;;
10469
10470 # This must be Linux ELF.
10471 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10472 version_type=linux
10473 need_lib_prefix=no
10474 need_version=no
10475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10476 soname_spec='${libname}${release}${shared_ext}$major'
10477 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10478 shlibpath_var=LD_LIBRARY_PATH
10479 shlibpath_overrides_runpath=no
10480
10481 # Some binutils ld are patched to set DT_RUNPATH
10482 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10483 $as_echo_n "(cached) " >&6
10484 else
10485 lt_cv_shlibpath_overrides_runpath=no
10486 save_LDFLAGS=$LDFLAGS
10487 save_libdir=$libdir
10488 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10489 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10491 /* end confdefs.h. */
10492
10493 int
10494 main ()
10495 {
10496
10497 ;
10498 return 0;
10499 }
10500 _ACEOF
10501 if ac_fn_c_try_link "$LINENO"; then :
10502 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10503 lt_cv_shlibpath_overrides_runpath=yes
10504 fi
10505 fi
10506 rm -f core conftest.err conftest.$ac_objext \
10507 conftest$ac_exeext conftest.$ac_ext
10508 LDFLAGS=$save_LDFLAGS
10509 libdir=$save_libdir
10510
10511 fi
10512
10513 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10514
10515 # This implies no fast_install, which is unacceptable.
10516 # Some rework will be needed to allow for fast_install
10517 # before this can be enabled.
10518 hardcode_into_libs=yes
10519
10520 # Append ld.so.conf contents to the search path
10521 if test -f /etc/ld.so.conf; then
10522 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/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10523 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10524 fi
10525
10526 # We used to test for /lib/ld.so.1 and disable shared libraries on
10527 # powerpc, because MkLinux only supported shared libraries with the
10528 # GNU dynamic linker. Since this was broken with cross compilers,
10529 # most powerpc-linux boxes support dynamic linking these days and
10530 # people can always --disable-shared, the test was removed, and we
10531 # assume the GNU/Linux dynamic linker is in use.
10532 dynamic_linker='GNU/Linux ld.so'
10533 ;;
10534
10535 netbsd*)
10536 version_type=sunos
10537 need_lib_prefix=no
10538 need_version=no
10539 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10541 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10542 dynamic_linker='NetBSD (a.out) ld.so'
10543 else
10544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10545 soname_spec='${libname}${release}${shared_ext}$major'
10546 dynamic_linker='NetBSD ld.elf_so'
10547 fi
10548 shlibpath_var=LD_LIBRARY_PATH
10549 shlibpath_overrides_runpath=yes
10550 hardcode_into_libs=yes
10551 ;;
10552
10553 newsos6)
10554 version_type=linux
10555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10556 shlibpath_var=LD_LIBRARY_PATH
10557 shlibpath_overrides_runpath=yes
10558 ;;
10559
10560 *nto* | *qnx*)
10561 version_type=qnx
10562 need_lib_prefix=no
10563 need_version=no
10564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10565 soname_spec='${libname}${release}${shared_ext}$major'
10566 shlibpath_var=LD_LIBRARY_PATH
10567 shlibpath_overrides_runpath=no
10568 hardcode_into_libs=yes
10569 dynamic_linker='ldqnx.so'
10570 ;;
10571
10572 openbsd*)
10573 version_type=sunos
10574 sys_lib_dlsearch_path_spec="/usr/lib"
10575 need_lib_prefix=no
10576 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10577 case $host_os in
10578 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10579 *) need_version=no ;;
10580 esac
10581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10582 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10583 shlibpath_var=LD_LIBRARY_PATH
10584 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10585 case $host_os in
10586 openbsd2.[89] | openbsd2.[89].*)
10587 shlibpath_overrides_runpath=no
10588 ;;
10589 *)
10590 shlibpath_overrides_runpath=yes
10591 ;;
10592 esac
10593 else
10594 shlibpath_overrides_runpath=yes
10595 fi
10596 ;;
10597
10598 os2*)
10599 libname_spec='$name'
10600 shrext_cmds=".dll"
10601 need_lib_prefix=no
10602 library_names_spec='$libname${shared_ext} $libname.a'
10603 dynamic_linker='OS/2 ld.exe'
10604 shlibpath_var=LIBPATH
10605 ;;
10606
10607 osf3* | osf4* | osf5*)
10608 version_type=osf
10609 need_lib_prefix=no
10610 need_version=no
10611 soname_spec='${libname}${release}${shared_ext}$major'
10612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10613 shlibpath_var=LD_LIBRARY_PATH
10614 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10615 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10616 ;;
10617
10618 rdos*)
10619 dynamic_linker=no
10620 ;;
10621
10622 solaris*)
10623 version_type=linux
10624 need_lib_prefix=no
10625 need_version=no
10626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10627 soname_spec='${libname}${release}${shared_ext}$major'
10628 shlibpath_var=LD_LIBRARY_PATH
10629 shlibpath_overrides_runpath=yes
10630 hardcode_into_libs=yes
10631 # ldd complains unless libraries are executable
10632 postinstall_cmds='chmod +x $lib'
10633 ;;
10634
10635 sunos4*)
10636 version_type=sunos
10637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10638 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10639 shlibpath_var=LD_LIBRARY_PATH
10640 shlibpath_overrides_runpath=yes
10641 if test "$with_gnu_ld" = yes; then
10642 need_lib_prefix=no
10643 fi
10644 need_version=yes
10645 ;;
10646
10647 sysv4 | sysv4.3*)
10648 version_type=linux
10649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10650 soname_spec='${libname}${release}${shared_ext}$major'
10651 shlibpath_var=LD_LIBRARY_PATH
10652 case $host_vendor in
10653 sni)
10654 shlibpath_overrides_runpath=no
10655 need_lib_prefix=no
10656 runpath_var=LD_RUN_PATH
10657 ;;
10658 siemens)
10659 need_lib_prefix=no
10660 ;;
10661 motorola)
10662 need_lib_prefix=no
10663 need_version=no
10664 shlibpath_overrides_runpath=no
10665 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10666 ;;
10667 esac
10668 ;;
10669
10670 sysv4*MP*)
10671 if test -d /usr/nec ;then
10672 version_type=linux
10673 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10674 soname_spec='$libname${shared_ext}.$major'
10675 shlibpath_var=LD_LIBRARY_PATH
10676 fi
10677 ;;
10678
10679 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10680 version_type=freebsd-elf
10681 need_lib_prefix=no
10682 need_version=no
10683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10684 soname_spec='${libname}${release}${shared_ext}$major'
10685 shlibpath_var=LD_LIBRARY_PATH
10686 shlibpath_overrides_runpath=yes
10687 hardcode_into_libs=yes
10688 if test "$with_gnu_ld" = yes; then
10689 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10690 else
10691 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10692 case $host_os in
10693 sco3.2v5*)
10694 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10695 ;;
10696 esac
10697 fi
10698 sys_lib_dlsearch_path_spec='/usr/lib'
10699 ;;
10700
10701 tpf*)
10702 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10703 version_type=linux
10704 need_lib_prefix=no
10705 need_version=no
10706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10707 shlibpath_var=LD_LIBRARY_PATH
10708 shlibpath_overrides_runpath=no
10709 hardcode_into_libs=yes
10710 ;;
10711
10712 uts4*)
10713 version_type=linux
10714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10715 soname_spec='${libname}${release}${shared_ext}$major'
10716 shlibpath_var=LD_LIBRARY_PATH
10717 ;;
10718
10719 *)
10720 dynamic_linker=no
10721 ;;
10722 esac
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10724 $as_echo "$dynamic_linker" >&6; }
10725 test "$dynamic_linker" = no && can_build_shared=no
10726
10727 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10728 if test "$GCC" = yes; then
10729 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10730 fi
10731
10732 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10733 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10734 fi
10735 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10736 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10737 fi
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
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
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10831 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10832 hardcode_action=
10833 if test -n "$hardcode_libdir_flag_spec" ||
10834 test -n "$runpath_var" ||
10835 test "X$hardcode_automatic" = "Xyes" ; then
10836
10837 # We can hardcode non-existent directories.
10838 if test "$hardcode_direct" != no &&
10839 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10840 # have to relink, otherwise we might link with an installed library
10841 # when we should be linking with a yet-to-be-installed one
10842 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10843 test "$hardcode_minus_L" != no; then
10844 # Linking always hardcodes the temporary library directory.
10845 hardcode_action=relink
10846 else
10847 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10848 hardcode_action=immediate
10849 fi
10850 else
10851 # We cannot hardcode anything, or else we can only hardcode existing
10852 # directories.
10853 hardcode_action=unsupported
10854 fi
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10856 $as_echo "$hardcode_action" >&6; }
10857
10858 if test "$hardcode_action" = relink ||
10859 test "$inherit_rpath" = yes; then
10860 # Fast installation is not supported
10861 enable_fast_install=no
10862 elif test "$shlibpath_overrides_runpath" = yes ||
10863 test "$enable_shared" = no; then
10864 # Fast installation is not necessary
10865 enable_fast_install=needless
10866 fi
10867
10868
10869
10870
10871
10872
10873 if test "x$enable_dlopen" != xyes; then
10874 enable_dlopen=unknown
10875 enable_dlopen_self=unknown
10876 enable_dlopen_self_static=unknown
10877 else
10878 lt_cv_dlopen=no
10879 lt_cv_dlopen_libs=
10880
10881 case $host_os in
10882 beos*)
10883 lt_cv_dlopen="load_add_on"
10884 lt_cv_dlopen_libs=
10885 lt_cv_dlopen_self=yes
10886 ;;
10887
10888 mingw* | pw32* | cegcc*)
10889 lt_cv_dlopen="LoadLibrary"
10890 lt_cv_dlopen_libs=
10891 ;;
10892
10893 cygwin*)
10894 lt_cv_dlopen="dlopen"
10895 lt_cv_dlopen_libs=
10896 ;;
10897
10898 darwin*)
10899 # if libdl is installed we need to link against it
10900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10901 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10902 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10903 $as_echo_n "(cached) " >&6
10904 else
10905 ac_check_lib_save_LIBS=$LIBS
10906 LIBS="-ldl $LIBS"
10907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10908 /* end confdefs.h. */
10909
10910 /* Override any GCC internal prototype to avoid an error.
10911 Use char because int might match the return type of a GCC
10912 builtin and then its argument prototype would still apply. */
10913 #ifdef __cplusplus
10914 extern "C"
10915 #endif
10916 char dlopen ();
10917 int
10918 main ()
10919 {
10920 return dlopen ();
10921 ;
10922 return 0;
10923 }
10924 _ACEOF
10925 if ac_fn_c_try_link "$LINENO"; then :
10926 ac_cv_lib_dl_dlopen=yes
10927 else
10928 ac_cv_lib_dl_dlopen=no
10929 fi
10930 rm -f core conftest.err conftest.$ac_objext \
10931 conftest$ac_exeext conftest.$ac_ext
10932 LIBS=$ac_check_lib_save_LIBS
10933 fi
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10935 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10936 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10937 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10938 else
10939
10940 lt_cv_dlopen="dyld"
10941 lt_cv_dlopen_libs=
10942 lt_cv_dlopen_self=yes
10943
10944 fi
10945
10946 ;;
10947
10948 *)
10949 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10950 if test "x$ac_cv_func_shl_load" = x""yes; then :
10951 lt_cv_dlopen="shl_load"
10952 else
10953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10954 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10955 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10956 $as_echo_n "(cached) " >&6
10957 else
10958 ac_check_lib_save_LIBS=$LIBS
10959 LIBS="-ldld $LIBS"
10960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10961 /* end confdefs.h. */
10962
10963 /* Override any GCC internal prototype to avoid an error.
10964 Use char because int might match the return type of a GCC
10965 builtin and then its argument prototype would still apply. */
10966 #ifdef __cplusplus
10967 extern "C"
10968 #endif
10969 char shl_load ();
10970 int
10971 main ()
10972 {
10973 return shl_load ();
10974 ;
10975 return 0;
10976 }
10977 _ACEOF
10978 if ac_fn_c_try_link "$LINENO"; then :
10979 ac_cv_lib_dld_shl_load=yes
10980 else
10981 ac_cv_lib_dld_shl_load=no
10982 fi
10983 rm -f core conftest.err conftest.$ac_objext \
10984 conftest$ac_exeext conftest.$ac_ext
10985 LIBS=$ac_check_lib_save_LIBS
10986 fi
10987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10988 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10989 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10990 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10991 else
10992 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10993 if test "x$ac_cv_func_dlopen" = x""yes; then :
10994 lt_cv_dlopen="dlopen"
10995 else
10996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10997 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10998 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10999 $as_echo_n "(cached) " >&6
11000 else
11001 ac_check_lib_save_LIBS=$LIBS
11002 LIBS="-ldl $LIBS"
11003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11004 /* end confdefs.h. */
11005
11006 /* Override any GCC internal prototype to avoid an error.
11007 Use char because int might match the return type of a GCC
11008 builtin and then its argument prototype would still apply. */
11009 #ifdef __cplusplus
11010 extern "C"
11011 #endif
11012 char dlopen ();
11013 int
11014 main ()
11015 {
11016 return dlopen ();
11017 ;
11018 return 0;
11019 }
11020 _ACEOF
11021 if ac_fn_c_try_link "$LINENO"; then :
11022 ac_cv_lib_dl_dlopen=yes
11023 else
11024 ac_cv_lib_dl_dlopen=no
11025 fi
11026 rm -f core conftest.err conftest.$ac_objext \
11027 conftest$ac_exeext conftest.$ac_ext
11028 LIBS=$ac_check_lib_save_LIBS
11029 fi
11030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11031 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11032 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11033 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11034 else
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11036 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11037 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11038 $as_echo_n "(cached) " >&6
11039 else
11040 ac_check_lib_save_LIBS=$LIBS
11041 LIBS="-lsvld $LIBS"
11042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11043 /* end confdefs.h. */
11044
11045 /* Override any GCC internal prototype to avoid an error.
11046 Use char because int might match the return type of a GCC
11047 builtin and then its argument prototype would still apply. */
11048 #ifdef __cplusplus
11049 extern "C"
11050 #endif
11051 char dlopen ();
11052 int
11053 main ()
11054 {
11055 return dlopen ();
11056 ;
11057 return 0;
11058 }
11059 _ACEOF
11060 if ac_fn_c_try_link "$LINENO"; then :
11061 ac_cv_lib_svld_dlopen=yes
11062 else
11063 ac_cv_lib_svld_dlopen=no
11064 fi
11065 rm -f core conftest.err conftest.$ac_objext \
11066 conftest$ac_exeext conftest.$ac_ext
11067 LIBS=$ac_check_lib_save_LIBS
11068 fi
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11070 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11071 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11072 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11073 else
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11075 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11076 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11077 $as_echo_n "(cached) " >&6
11078 else
11079 ac_check_lib_save_LIBS=$LIBS
11080 LIBS="-ldld $LIBS"
11081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11082 /* end confdefs.h. */
11083
11084 /* Override any GCC internal prototype to avoid an error.
11085 Use char because int might match the return type of a GCC
11086 builtin and then its argument prototype would still apply. */
11087 #ifdef __cplusplus
11088 extern "C"
11089 #endif
11090 char dld_link ();
11091 int
11092 main ()
11093 {
11094 return dld_link ();
11095 ;
11096 return 0;
11097 }
11098 _ACEOF
11099 if ac_fn_c_try_link "$LINENO"; then :
11100 ac_cv_lib_dld_dld_link=yes
11101 else
11102 ac_cv_lib_dld_dld_link=no
11103 fi
11104 rm -f core conftest.err conftest.$ac_objext \
11105 conftest$ac_exeext conftest.$ac_ext
11106 LIBS=$ac_check_lib_save_LIBS
11107 fi
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11109 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11110 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11111 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11112 fi
11113
11114
11115 fi
11116
11117
11118 fi
11119
11120
11121 fi
11122
11123
11124 fi
11125
11126
11127 fi
11128
11129 ;;
11130 esac
11131
11132 if test "x$lt_cv_dlopen" != xno; then
11133 enable_dlopen=yes
11134 else
11135 enable_dlopen=no
11136 fi
11137
11138 case $lt_cv_dlopen in
11139 dlopen)
11140 save_CPPFLAGS="$CPPFLAGS"
11141 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11142
11143 save_LDFLAGS="$LDFLAGS"
11144 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11145
11146 save_LIBS="$LIBS"
11147 LIBS="$lt_cv_dlopen_libs $LIBS"
11148
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11150 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11151 if test "${lt_cv_dlopen_self+set}" = set; then :
11152 $as_echo_n "(cached) " >&6
11153 else
11154 if test "$cross_compiling" = yes; then :
11155 lt_cv_dlopen_self=cross
11156 else
11157 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11158 lt_status=$lt_dlunknown
11159 cat > conftest.$ac_ext <<_LT_EOF
11160 #line 11160 "configure"
11161 #include "confdefs.h"
11162
11163 #if HAVE_DLFCN_H
11164 #include <dlfcn.h>
11165 #endif
11166
11167 #include <stdio.h>
11168
11169 #ifdef RTLD_GLOBAL
11170 # define LT_DLGLOBAL RTLD_GLOBAL
11171 #else
11172 # ifdef DL_GLOBAL
11173 # define LT_DLGLOBAL DL_GLOBAL
11174 # else
11175 # define LT_DLGLOBAL 0
11176 # endif
11177 #endif
11178
11179 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11180 find out it does not work in some platform. */
11181 #ifndef LT_DLLAZY_OR_NOW
11182 # ifdef RTLD_LAZY
11183 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11184 # else
11185 # ifdef DL_LAZY
11186 # define LT_DLLAZY_OR_NOW DL_LAZY
11187 # else
11188 # ifdef RTLD_NOW
11189 # define LT_DLLAZY_OR_NOW RTLD_NOW
11190 # else
11191 # ifdef DL_NOW
11192 # define LT_DLLAZY_OR_NOW DL_NOW
11193 # else
11194 # define LT_DLLAZY_OR_NOW 0
11195 # endif
11196 # endif
11197 # endif
11198 # endif
11199 #endif
11200
11201 /* When -fvisbility=hidden is used, assume the code has been annotated
11202 correspondingly for the symbols needed. */
11203 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11204 void fnord () __attribute__((visibility("default")));
11205 #endif
11206
11207 void fnord () { int i=42; }
11208 int main ()
11209 {
11210 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11211 int status = $lt_dlunknown;
11212
11213 if (self)
11214 {
11215 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11216 else
11217 {
11218 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11219 else puts (dlerror ());
11220 }
11221 /* dlclose (self); */
11222 }
11223 else
11224 puts (dlerror ());
11225
11226 return status;
11227 }
11228 _LT_EOF
11229 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11230 (eval $ac_link) 2>&5
11231 ac_status=$?
11232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11233 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11234 (./conftest; exit; ) >&5 2>/dev/null
11235 lt_status=$?
11236 case x$lt_status in
11237 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11238 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11239 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11240 esac
11241 else :
11242 # compilation failed
11243 lt_cv_dlopen_self=no
11244 fi
11245 fi
11246 rm -fr conftest*
11247
11248
11249 fi
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11251 $as_echo "$lt_cv_dlopen_self" >&6; }
11252
11253 if test "x$lt_cv_dlopen_self" = xyes; then
11254 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11256 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11257 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11258 $as_echo_n "(cached) " >&6
11259 else
11260 if test "$cross_compiling" = yes; then :
11261 lt_cv_dlopen_self_static=cross
11262 else
11263 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11264 lt_status=$lt_dlunknown
11265 cat > conftest.$ac_ext <<_LT_EOF
11266 #line 11266 "configure"
11267 #include "confdefs.h"
11268
11269 #if HAVE_DLFCN_H
11270 #include <dlfcn.h>
11271 #endif
11272
11273 #include <stdio.h>
11274
11275 #ifdef RTLD_GLOBAL
11276 # define LT_DLGLOBAL RTLD_GLOBAL
11277 #else
11278 # ifdef DL_GLOBAL
11279 # define LT_DLGLOBAL DL_GLOBAL
11280 # else
11281 # define LT_DLGLOBAL 0
11282 # endif
11283 #endif
11284
11285 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11286 find out it does not work in some platform. */
11287 #ifndef LT_DLLAZY_OR_NOW
11288 # ifdef RTLD_LAZY
11289 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11290 # else
11291 # ifdef DL_LAZY
11292 # define LT_DLLAZY_OR_NOW DL_LAZY
11293 # else
11294 # ifdef RTLD_NOW
11295 # define LT_DLLAZY_OR_NOW RTLD_NOW
11296 # else
11297 # ifdef DL_NOW
11298 # define LT_DLLAZY_OR_NOW DL_NOW
11299 # else
11300 # define LT_DLLAZY_OR_NOW 0
11301 # endif
11302 # endif
11303 # endif
11304 # endif
11305 #endif
11306
11307 /* When -fvisbility=hidden is used, assume the code has been annotated
11308 correspondingly for the symbols needed. */
11309 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11310 void fnord () __attribute__((visibility("default")));
11311 #endif
11312
11313 void fnord () { int i=42; }
11314 int main ()
11315 {
11316 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11317 int status = $lt_dlunknown;
11318
11319 if (self)
11320 {
11321 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11322 else
11323 {
11324 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11325 else puts (dlerror ());
11326 }
11327 /* dlclose (self); */
11328 }
11329 else
11330 puts (dlerror ());
11331
11332 return status;
11333 }
11334 _LT_EOF
11335 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11336 (eval $ac_link) 2>&5
11337 ac_status=$?
11338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11339 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11340 (./conftest; exit; ) >&5 2>/dev/null
11341 lt_status=$?
11342 case x$lt_status in
11343 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11344 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11345 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11346 esac
11347 else :
11348 # compilation failed
11349 lt_cv_dlopen_self_static=no
11350 fi
11351 fi
11352 rm -fr conftest*
11353
11354
11355 fi
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11357 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11358 fi
11359
11360 CPPFLAGS="$save_CPPFLAGS"
11361 LDFLAGS="$save_LDFLAGS"
11362 LIBS="$save_LIBS"
11363 ;;
11364 esac
11365
11366 case $lt_cv_dlopen_self in
11367 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11368 *) enable_dlopen_self=unknown ;;
11369 esac
11370
11371 case $lt_cv_dlopen_self_static in
11372 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11373 *) enable_dlopen_self_static=unknown ;;
11374 esac
11375 fi
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393 striplib=
11394 old_striplib=
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11396 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11397 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11398 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11399 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11401 $as_echo "yes" >&6; }
11402 else
11403 # FIXME - insert some real tests, host_os isn't really good enough
11404 case $host_os in
11405 darwin*)
11406 if test -n "$STRIP" ; then
11407 striplib="$STRIP -x"
11408 old_striplib="$STRIP -S"
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11410 $as_echo "yes" >&6; }
11411 else
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11413 $as_echo "no" >&6; }
11414 fi
11415 ;;
11416 *)
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11418 $as_echo "no" >&6; }
11419 ;;
11420 esac
11421 fi
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434 # Report which library types will actually be built
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11436 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11438 $as_echo "$can_build_shared" >&6; }
11439
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11441 $as_echo_n "checking whether to build shared libraries... " >&6; }
11442 test "$can_build_shared" = "no" && enable_shared=no
11443
11444 # On AIX, shared libraries and static libraries use the same namespace, and
11445 # are all built from PIC.
11446 case $host_os in
11447 aix3*)
11448 test "$enable_shared" = yes && enable_static=no
11449 if test -n "$RANLIB"; then
11450 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11451 postinstall_cmds='$RANLIB $lib'
11452 fi
11453 ;;
11454
11455 aix[4-9]*)
11456 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11457 test "$enable_shared" = yes && enable_static=no
11458 fi
11459 ;;
11460 esac
11461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11462 $as_echo "$enable_shared" >&6; }
11463
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11465 $as_echo_n "checking whether to build static libraries... " >&6; }
11466 # Make sure either enable_shared or enable_static is yes.
11467 test "$enable_shared" = yes || enable_static=yes
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11469 $as_echo "$enable_static" >&6; }
11470
11471
11472
11473
11474 fi
11475 ac_ext=c
11476 ac_cpp='$CPP $CPPFLAGS'
11477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11480
11481 CC="$lt_save_CC"
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495 ac_config_commands="$ac_config_commands libtool"
11496
11497
11498
11499
11500 # Only expand once:
11501
11502
11503
11504
11505
11506 case $host in
11507 *-cygwin* | *-mingw*)
11508 # 'host' will be top-level target in the case of a target lib,
11509 # we must compare to with_cross_host to decide if this is a native
11510 # or cross-compiler and select where to install dlls appropriately.
11511 if test -n "$with_cross_host" &&
11512 test x"$with_cross_host" != x"no"; then
11513 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
11514 else
11515 lt_host_flags='-no-undefined -bindir "$(bindir)"';
11516 fi
11517 ;;
11518 *)
11519 lt_host_flags=
11520 ;;
11521 esac
11522
11523
11524
11525
11526
11527
11528
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11530 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11531 # Check whether --enable-maintainer-mode was given.
11532 if test "${enable_maintainer_mode+set}" = set; then :
11533 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11534 else
11535 USE_MAINTAINER_MODE=no
11536 fi
11537
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11539 $as_echo "$USE_MAINTAINER_MODE" >&6; }
11540 if test $USE_MAINTAINER_MODE = yes; then
11541 MAINTAINER_MODE_TRUE=
11542 MAINTAINER_MODE_FALSE='#'
11543 else
11544 MAINTAINER_MODE_TRUE='#'
11545 MAINTAINER_MODE_FALSE=
11546 fi
11547
11548 MAINT=$MAINTAINER_MODE_TRUE
11549
11550
11551
11552 # Create a spec file, so that compile/link tests don't fail
11553 test -f libgfortran.spec || touch libgfortran.spec
11554 FCFLAGS="$FCFLAGS -L."
11555
11556 # We need gfortran to compile parts of the library
11557 # We can't use AC_PROG_FC because it expects a fully working gfortran.
11558 #AC_PROG_FC(gfortran)
11559 case `echo $GFORTRAN` in
11560 -* | no* )
11561 FC=no ;;
11562 *)
11563 set dummy $GFORTRAN; ac_word=$2
11564 if test -x "$ac_word"; then
11565 FC="$GFORTRAN"
11566 else
11567 FC=no
11568 fi ;;
11569 esac
11570 ac_ext=${ac_fc_srcext-f}
11571 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
11572 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
11573 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
11574 if test -n "$ac_tool_prefix"; then
11575 for ac_prog in gfortran
11576 do
11577 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11578 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11580 $as_echo_n "checking for $ac_word... " >&6; }
11581 if test "${ac_cv_prog_FC+set}" = set; then :
11582 $as_echo_n "(cached) " >&6
11583 else
11584 if test -n "$FC"; then
11585 ac_cv_prog_FC="$FC" # Let the user override the test.
11586 else
11587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11588 for as_dir in $PATH
11589 do
11590 IFS=$as_save_IFS
11591 test -z "$as_dir" && as_dir=.
11592 for ac_exec_ext in '' $ac_executable_extensions; do
11593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11594 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
11595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11596 break 2
11597 fi
11598 done
11599 done
11600 IFS=$as_save_IFS
11601
11602 fi
11603 fi
11604 FC=$ac_cv_prog_FC
11605 if test -n "$FC"; then
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
11607 $as_echo "$FC" >&6; }
11608 else
11609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11610 $as_echo "no" >&6; }
11611 fi
11612
11613
11614 test -n "$FC" && break
11615 done
11616 fi
11617 if test -z "$FC"; then
11618 ac_ct_FC=$FC
11619 for ac_prog in gfortran
11620 do
11621 # Extract the first word of "$ac_prog", so it can be a program name with args.
11622 set dummy $ac_prog; ac_word=$2
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11624 $as_echo_n "checking for $ac_word... " >&6; }
11625 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
11626 $as_echo_n "(cached) " >&6
11627 else
11628 if test -n "$ac_ct_FC"; then
11629 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
11630 else
11631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11632 for as_dir in $PATH
11633 do
11634 IFS=$as_save_IFS
11635 test -z "$as_dir" && as_dir=.
11636 for ac_exec_ext in '' $ac_executable_extensions; do
11637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11638 ac_cv_prog_ac_ct_FC="$ac_prog"
11639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11640 break 2
11641 fi
11642 done
11643 done
11644 IFS=$as_save_IFS
11645
11646 fi
11647 fi
11648 ac_ct_FC=$ac_cv_prog_ac_ct_FC
11649 if test -n "$ac_ct_FC"; then
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
11651 $as_echo "$ac_ct_FC" >&6; }
11652 else
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11654 $as_echo "no" >&6; }
11655 fi
11656
11657
11658 test -n "$ac_ct_FC" && break
11659 done
11660
11661 if test "x$ac_ct_FC" = x; then
11662 FC=""
11663 else
11664 case $cross_compiling:$ac_tool_warned in
11665 yes:)
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11667 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11668 ac_tool_warned=yes ;;
11669 esac
11670 FC=$ac_ct_FC
11671 fi
11672 fi
11673
11674
11675 # Provide some information about the compiler.
11676 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
11677 set X $ac_compile
11678 ac_compiler=$2
11679 for ac_option in --version -v -V -qversion; do
11680 { { ac_try="$ac_compiler $ac_option >&5"
11681 case "(($ac_try" in
11682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11683 *) ac_try_echo=$ac_try;;
11684 esac
11685 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11686 $as_echo "$ac_try_echo"; } >&5
11687 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11688 ac_status=$?
11689 if test -s conftest.err; then
11690 sed '10a\
11691 ... rest of stderr output deleted ...
11692 10q' conftest.err >conftest.er1
11693 cat conftest.er1 >&5
11694 rm -f conftest.er1 conftest.err
11695 fi
11696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11697 test $ac_status = 0; }
11698 done
11699 rm -f a.out
11700
11701 # If we don't use `.F' as extension, the preprocessor is not run on the
11702 # input file. (Note that this only needs to work for GNU compilers.)
11703 ac_save_ext=$ac_ext
11704 ac_ext=F
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
11706 $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
11707 if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
11708 $as_echo_n "(cached) " >&6
11709 else
11710 cat > conftest.$ac_ext <<_ACEOF
11711 program main
11712 #ifndef __GNUC__
11713 choke me
11714 #endif
11715
11716 end
11717 _ACEOF
11718 if ac_fn_fc_try_compile "$LINENO"; then :
11719 ac_compiler_gnu=yes
11720 else
11721 ac_compiler_gnu=no
11722 fi
11723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11724 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
11725
11726 fi
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
11728 $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
11729 ac_ext=$ac_save_ext
11730 ac_test_FCFLAGS=${FCFLAGS+set}
11731 ac_save_FCFLAGS=$FCFLAGS
11732 FCFLAGS=
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
11734 $as_echo_n "checking whether $FC accepts -g... " >&6; }
11735 if test "${ac_cv_prog_fc_g+set}" = set; then :
11736 $as_echo_n "(cached) " >&6
11737 else
11738 FCFLAGS=-g
11739 cat > conftest.$ac_ext <<_ACEOF
11740 program main
11741
11742 end
11743 _ACEOF
11744 if ac_fn_fc_try_compile "$LINENO"; then :
11745 ac_cv_prog_fc_g=yes
11746 else
11747 ac_cv_prog_fc_g=no
11748 fi
11749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11750
11751 fi
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
11753 $as_echo "$ac_cv_prog_fc_g" >&6; }
11754 if test "$ac_test_FCFLAGS" = set; then
11755 FCFLAGS=$ac_save_FCFLAGS
11756 elif test $ac_cv_prog_fc_g = yes; then
11757 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
11758 FCFLAGS="-g -O2"
11759 else
11760 FCFLAGS="-g"
11761 fi
11762 else
11763 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
11764 FCFLAGS="-O2"
11765 else
11766 FCFLAGS=
11767 fi
11768 fi
11769
11770 ac_ext=c
11771 ac_cpp='$CPP $CPPFLAGS'
11772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11775
11776 ac_ext=${ac_fc_srcext-f}
11777 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
11778 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
11779 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
11780
11781
11782 if test -z "$FC" || test "X$FC" = "Xno"; then
11783 _lt_disable_FC=yes
11784 fi
11785
11786 archive_cmds_need_lc_FC=no
11787 allow_undefined_flag_FC=
11788 always_export_symbols_FC=no
11789 archive_expsym_cmds_FC=
11790 export_dynamic_flag_spec_FC=
11791 hardcode_direct_FC=no
11792 hardcode_direct_absolute_FC=no
11793 hardcode_libdir_flag_spec_FC=
11794 hardcode_libdir_flag_spec_ld_FC=
11795 hardcode_libdir_separator_FC=
11796 hardcode_minus_L_FC=no
11797 hardcode_automatic_FC=no
11798 inherit_rpath_FC=no
11799 module_cmds_FC=
11800 module_expsym_cmds_FC=
11801 link_all_deplibs_FC=unknown
11802 old_archive_cmds_FC=$old_archive_cmds
11803 reload_flag_FC=$reload_flag
11804 reload_cmds_FC=$reload_cmds
11805 no_undefined_flag_FC=
11806 whole_archive_flag_spec_FC=
11807 enable_shared_with_static_runtimes_FC=no
11808
11809 # Source file extension for fc test sources.
11810 ac_ext=${ac_fc_srcext-f}
11811
11812 # Object file extension for compiled fc test sources.
11813 objext=o
11814 objext_FC=$objext
11815
11816 # No sense in running all these tests if we already determined that
11817 # the FC compiler isn't working. Some variables (like enable_shared)
11818 # are currently assumed to apply to all compilers on this platform,
11819 # and will be corrupted by setting them based on a non-working compiler.
11820 if test "$_lt_disable_FC" != yes; then
11821 # Code to be used in simple compile tests
11822 lt_simple_compile_test_code="\
11823 subroutine t
11824 return
11825 end
11826 "
11827
11828 # Code to be used in simple link tests
11829 lt_simple_link_test_code="\
11830 program t
11831 end
11832 "
11833
11834 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11835
11836
11837
11838
11839
11840
11841 # If no C compiler was specified, use CC.
11842 LTCC=${LTCC-"$CC"}
11843
11844 # If no C compiler flags were specified, use CFLAGS.
11845 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11846
11847 # Allow CC to be a program name with arguments.
11848 compiler=$CC
11849
11850
11851 # save warnings/boilerplate of simple test code
11852 ac_outfile=conftest.$ac_objext
11853 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11854 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11855 _lt_compiler_boilerplate=`cat conftest.err`
11856 $RM conftest*
11857
11858 ac_outfile=conftest.$ac_objext
11859 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11860 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11861 _lt_linker_boilerplate=`cat conftest.err`
11862 $RM -r conftest*
11863
11864
11865 # Allow CC to be a program name with arguments.
11866 lt_save_CC="$CC"
11867 lt_save_GCC=$GCC
11868 CC=${FC-"f95"}
11869 compiler=$CC
11870 GCC=$ac_cv_fc_compiler_gnu
11871
11872 compiler_FC=$CC
11873 for cc_temp in $compiler""; do
11874 case $cc_temp in
11875 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11876 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11877 \-*) ;;
11878 *) break;;
11879 esac
11880 done
11881 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11882
11883
11884 if test -n "$compiler"; then
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11886 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11888 $as_echo "$can_build_shared" >&6; }
11889
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11891 $as_echo_n "checking whether to build shared libraries... " >&6; }
11892 test "$can_build_shared" = "no" && enable_shared=no
11893
11894 # On AIX, shared libraries and static libraries use the same namespace, and
11895 # are all built from PIC.
11896 case $host_os in
11897 aix3*)
11898 test "$enable_shared" = yes && enable_static=no
11899 if test -n "$RANLIB"; then
11900 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11901 postinstall_cmds='$RANLIB $lib'
11902 fi
11903 ;;
11904 aix[4-9]*)
11905 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11906 test "$enable_shared" = yes && enable_static=no
11907 fi
11908 ;;
11909 esac
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11911 $as_echo "$enable_shared" >&6; }
11912
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11914 $as_echo_n "checking whether to build static libraries... " >&6; }
11915 # Make sure either enable_shared or enable_static is yes.
11916 test "$enable_shared" = yes || enable_static=yes
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11918 $as_echo "$enable_static" >&6; }
11919
11920 GCC_FC="$ac_cv_fc_compiler_gnu"
11921 LD_FC="$LD"
11922
11923 ## CAVEAT EMPTOR:
11924 ## There is no encapsulation within the following macros, do not change
11925 ## the running order or otherwise move them around unless you know exactly
11926 ## what you are doing...
11927 # Dependencies to place before and after the object being linked:
11928 predep_objects_FC=
11929 postdep_objects_FC=
11930 predeps_FC=
11931 postdeps_FC=
11932 compiler_lib_search_path_FC=
11933
11934 cat > conftest.$ac_ext <<_LT_EOF
11935 subroutine foo
11936 implicit none
11937 integer a
11938 a=0
11939 return
11940 end
11941 _LT_EOF
11942
11943 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11944 (eval $ac_compile) 2>&5
11945 ac_status=$?
11946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11947 test $ac_status = 0; }; then
11948 # Parse the compiler output and extract the necessary
11949 # objects, libraries and library flags.
11950
11951 # Sentinel used to keep track of whether or not we are before
11952 # the conftest object file.
11953 pre_test_object_deps_done=no
11954
11955 for p in `eval "$output_verbose_link_cmd"`; do
11956 case $p in
11957
11958 -L* | -R* | -l*)
11959 # Some compilers place space between "-{L,R}" and the path.
11960 # Remove the space.
11961 if test $p = "-L" ||
11962 test $p = "-R"; then
11963 prev=$p
11964 continue
11965 else
11966 prev=
11967 fi
11968
11969 if test "$pre_test_object_deps_done" = no; then
11970 case $p in
11971 -L* | -R*)
11972 # Internal compiler library paths should come after those
11973 # provided the user. The postdeps already come after the
11974 # user supplied libs so there is no need to process them.
11975 if test -z "$compiler_lib_search_path_FC"; then
11976 compiler_lib_search_path_FC="${prev}${p}"
11977 else
11978 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
11979 fi
11980 ;;
11981 # The "-l" case would never come before the object being
11982 # linked, so don't bother handling this case.
11983 esac
11984 else
11985 if test -z "$postdeps_FC"; then
11986 postdeps_FC="${prev}${p}"
11987 else
11988 postdeps_FC="${postdeps_FC} ${prev}${p}"
11989 fi
11990 fi
11991 ;;
11992
11993 *.$objext)
11994 # This assumes that the test object file only shows up
11995 # once in the compiler output.
11996 if test "$p" = "conftest.$objext"; then
11997 pre_test_object_deps_done=yes
11998 continue
11999 fi
12000
12001 if test "$pre_test_object_deps_done" = no; then
12002 if test -z "$predep_objects_FC"; then
12003 predep_objects_FC="$p"
12004 else
12005 predep_objects_FC="$predep_objects_FC $p"
12006 fi
12007 else
12008 if test -z "$postdep_objects_FC"; then
12009 postdep_objects_FC="$p"
12010 else
12011 postdep_objects_FC="$postdep_objects_FC $p"
12012 fi
12013 fi
12014 ;;
12015
12016 *) ;; # Ignore the rest.
12017
12018 esac
12019 done
12020
12021 # Clean up.
12022 rm -f a.out a.exe
12023 else
12024 echo "libtool.m4: error: problem compiling FC test program"
12025 fi
12026
12027 $RM -f confest.$objext
12028
12029 # PORTME: override above test on systems where it is broken
12030
12031
12032 case " $postdeps_FC " in
12033 *" -lc "*) archive_cmds_need_lc_FC=no ;;
12034 esac
12035 compiler_lib_search_dirs_FC=
12036 if test -n "${compiler_lib_search_path_FC}"; then
12037 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12038 fi
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070 lt_prog_compiler_wl_FC=
12071 lt_prog_compiler_pic_FC=
12072 lt_prog_compiler_static_FC=
12073
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12075 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12076
12077 if test "$GCC" = yes; then
12078 lt_prog_compiler_wl_FC='-Wl,'
12079 lt_prog_compiler_static_FC='-static'
12080
12081 case $host_os in
12082 aix*)
12083 # All AIX code is PIC.
12084 if test "$host_cpu" = ia64; then
12085 # AIX 5 now supports IA64 processor
12086 lt_prog_compiler_static_FC='-Bstatic'
12087 fi
12088 lt_prog_compiler_pic_FC='-fPIC'
12089 ;;
12090
12091 amigaos*)
12092 case $host_cpu in
12093 powerpc)
12094 # see comment about AmigaOS4 .so support
12095 lt_prog_compiler_pic_FC='-fPIC'
12096 ;;
12097 m68k)
12098 # FIXME: we need at least 68020 code to build shared libraries, but
12099 # adding the `-m68020' flag to GCC prevents building anything better,
12100 # like `-m68040'.
12101 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
12102 ;;
12103 esac
12104 ;;
12105
12106 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12107 # PIC is the default for these OSes.
12108 ;;
12109
12110 mingw* | cygwin* | pw32* | os2* | cegcc*)
12111 # This hack is so that the source file can tell whether it is being
12112 # built for inclusion in a dll (and should export symbols for example).
12113 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12114 # (--disable-auto-import) libraries
12115 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
12116 ;;
12117
12118 darwin* | rhapsody*)
12119 # PIC is the default on this platform
12120 # Common symbols not allowed in MH_DYLIB files
12121 lt_prog_compiler_pic_FC='-fno-common'
12122 ;;
12123
12124 haiku*)
12125 # PIC is the default for Haiku.
12126 # The "-static" flag exists, but is broken.
12127 lt_prog_compiler_static_FC=
12128 ;;
12129
12130 hpux*)
12131 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12132 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12133 # sets the default TLS model and affects inlining.
12134 case $host_cpu in
12135 hppa*64*)
12136 # +Z the default
12137 ;;
12138 *)
12139 lt_prog_compiler_pic_FC='-fPIC'
12140 ;;
12141 esac
12142 ;;
12143
12144 interix[3-9]*)
12145 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12146 # Instead, we relocate shared libraries at runtime.
12147 ;;
12148
12149 msdosdjgpp*)
12150 # Just because we use GCC doesn't mean we suddenly get shared libraries
12151 # on systems that don't support them.
12152 lt_prog_compiler_can_build_shared_FC=no
12153 enable_shared=no
12154 ;;
12155
12156 *nto* | *qnx*)
12157 # QNX uses GNU C++, but need to define -shared option too, otherwise
12158 # it will coredump.
12159 lt_prog_compiler_pic_FC='-fPIC -shared'
12160 ;;
12161
12162 sysv4*MP*)
12163 if test -d /usr/nec; then
12164 lt_prog_compiler_pic_FC=-Kconform_pic
12165 fi
12166 ;;
12167
12168 *)
12169 lt_prog_compiler_pic_FC='-fPIC'
12170 ;;
12171 esac
12172
12173 case $cc_basename in
12174 nvcc*) # Cuda Compiler Driver 2.2
12175 lt_prog_compiler_wl_FC='-Xlinker '
12176 lt_prog_compiler_pic_FC='-Xcompiler -fPIC'
12177 ;;
12178 esac
12179 else
12180 # PORTME Check for flag to pass linker flags through the system compiler.
12181 case $host_os in
12182 aix*)
12183 lt_prog_compiler_wl_FC='-Wl,'
12184 if test "$host_cpu" = ia64; then
12185 # AIX 5 now supports IA64 processor
12186 lt_prog_compiler_static_FC='-Bstatic'
12187 else
12188 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
12189 fi
12190 ;;
12191
12192 mingw* | cygwin* | pw32* | os2* | cegcc*)
12193 # This hack is so that the source file can tell whether it is being
12194 # built for inclusion in a dll (and should export symbols for example).
12195 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
12196 ;;
12197
12198 hpux9* | hpux10* | hpux11*)
12199 lt_prog_compiler_wl_FC='-Wl,'
12200 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12201 # not for PA HP-UX.
12202 case $host_cpu in
12203 hppa*64*|ia64*)
12204 # +Z the default
12205 ;;
12206 *)
12207 lt_prog_compiler_pic_FC='+Z'
12208 ;;
12209 esac
12210 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12211 lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
12212 ;;
12213
12214 irix5* | irix6* | nonstopux*)
12215 lt_prog_compiler_wl_FC='-Wl,'
12216 # PIC (with -KPIC) is the default.
12217 lt_prog_compiler_static_FC='-non_shared'
12218 ;;
12219
12220 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12221 case $cc_basename in
12222 # old Intel for x86_64 which still supported -KPIC.
12223 ecc*)
12224 lt_prog_compiler_wl_FC='-Wl,'
12225 lt_prog_compiler_pic_FC='-KPIC'
12226 lt_prog_compiler_static_FC='-static'
12227 ;;
12228 # icc used to be incompatible with GCC.
12229 # ICC 10 doesn't accept -KPIC any more.
12230 icc* | ifort*)
12231 lt_prog_compiler_wl_FC='-Wl,'
12232 lt_prog_compiler_pic_FC='-fPIC'
12233 lt_prog_compiler_static_FC='-static'
12234 ;;
12235 # Lahey Fortran 8.1.
12236 lf95*)
12237 lt_prog_compiler_wl_FC='-Wl,'
12238 lt_prog_compiler_pic_FC='--shared'
12239 lt_prog_compiler_static_FC='--static'
12240 ;;
12241 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12242 # Portland Group compilers (*not* the Pentium gcc compiler,
12243 # which looks to be a dead project)
12244 lt_prog_compiler_wl_FC='-Wl,'
12245 lt_prog_compiler_pic_FC='-fpic'
12246 lt_prog_compiler_static_FC='-Bstatic'
12247 ;;
12248 ccc*)
12249 lt_prog_compiler_wl_FC='-Wl,'
12250 # All Alpha code is PIC.
12251 lt_prog_compiler_static_FC='-non_shared'
12252 ;;
12253 xl* | bgxl* | bgf* | mpixl*)
12254 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12255 lt_prog_compiler_wl_FC='-Wl,'
12256 lt_prog_compiler_pic_FC='-qpic'
12257 lt_prog_compiler_static_FC='-qstaticlink'
12258 ;;
12259 *)
12260 case `$CC -V 2>&1 | sed 5q` in
12261 *Sun\ F* | *Sun*Fortran*)
12262 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12263 lt_prog_compiler_pic_FC='-KPIC'
12264 lt_prog_compiler_static_FC='-Bstatic'
12265 lt_prog_compiler_wl_FC=''
12266 ;;
12267 *Sun\ C*)
12268 # Sun C 5.9
12269 lt_prog_compiler_pic_FC='-KPIC'
12270 lt_prog_compiler_static_FC='-Bstatic'
12271 lt_prog_compiler_wl_FC='-Wl,'
12272 ;;
12273 esac
12274 ;;
12275 esac
12276 ;;
12277
12278 newsos6)
12279 lt_prog_compiler_pic_FC='-KPIC'
12280 lt_prog_compiler_static_FC='-Bstatic'
12281 ;;
12282
12283 *nto* | *qnx*)
12284 # QNX uses GNU C++, but need to define -shared option too, otherwise
12285 # it will coredump.
12286 lt_prog_compiler_pic_FC='-fPIC -shared'
12287 ;;
12288
12289 osf3* | osf4* | osf5*)
12290 lt_prog_compiler_wl_FC='-Wl,'
12291 # All OSF/1 code is PIC.
12292 lt_prog_compiler_static_FC='-non_shared'
12293 ;;
12294
12295 rdos*)
12296 lt_prog_compiler_static_FC='-non_shared'
12297 ;;
12298
12299 solaris*)
12300 lt_prog_compiler_pic_FC='-KPIC'
12301 lt_prog_compiler_static_FC='-Bstatic'
12302 case $cc_basename in
12303 f77* | f90* | f95*)
12304 lt_prog_compiler_wl_FC='-Qoption ld ';;
12305 *)
12306 lt_prog_compiler_wl_FC='-Wl,';;
12307 esac
12308 ;;
12309
12310 sunos4*)
12311 lt_prog_compiler_wl_FC='-Qoption ld '
12312 lt_prog_compiler_pic_FC='-PIC'
12313 lt_prog_compiler_static_FC='-Bstatic'
12314 ;;
12315
12316 sysv4 | sysv4.2uw2* | sysv4.3*)
12317 lt_prog_compiler_wl_FC='-Wl,'
12318 lt_prog_compiler_pic_FC='-KPIC'
12319 lt_prog_compiler_static_FC='-Bstatic'
12320 ;;
12321
12322 sysv4*MP*)
12323 if test -d /usr/nec ;then
12324 lt_prog_compiler_pic_FC='-Kconform_pic'
12325 lt_prog_compiler_static_FC='-Bstatic'
12326 fi
12327 ;;
12328
12329 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12330 lt_prog_compiler_wl_FC='-Wl,'
12331 lt_prog_compiler_pic_FC='-KPIC'
12332 lt_prog_compiler_static_FC='-Bstatic'
12333 ;;
12334
12335 unicos*)
12336 lt_prog_compiler_wl_FC='-Wl,'
12337 lt_prog_compiler_can_build_shared_FC=no
12338 ;;
12339
12340 uts4*)
12341 lt_prog_compiler_pic_FC='-pic'
12342 lt_prog_compiler_static_FC='-Bstatic'
12343 ;;
12344
12345 *)
12346 lt_prog_compiler_can_build_shared_FC=no
12347 ;;
12348 esac
12349 fi
12350
12351 case $host_os in
12352 # For platforms which do not support PIC, -DPIC is meaningless:
12353 *djgpp*)
12354 lt_prog_compiler_pic_FC=
12355 ;;
12356 *)
12357 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
12358 ;;
12359 esac
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
12361 $as_echo "$lt_prog_compiler_pic_FC" >&6; }
12362
12363
12364
12365 #
12366 # Check to make sure the PIC flag actually works.
12367 #
12368 if test -n "$lt_prog_compiler_pic_FC"; then
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
12370 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
12371 if test "${lt_cv_prog_compiler_pic_works_FC+set}" = set; then :
12372 $as_echo_n "(cached) " >&6
12373 else
12374 lt_cv_prog_compiler_pic_works_FC=no
12375 ac_outfile=conftest.$ac_objext
12376 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12377 lt_compiler_flag="$lt_prog_compiler_pic_FC"
12378 # Insert the option either (1) after the last *FLAGS variable, or
12379 # (2) before a word containing "conftest.", or (3) at the end.
12380 # Note that $ac_compile itself does not contain backslashes and begins
12381 # with a dollar sign (not a hyphen), so the echo should work correctly.
12382 # The option is referenced via a variable to avoid confusing sed.
12383 lt_compile=`echo "$ac_compile" | $SED \
12384 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12385 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12386 -e 's:$: $lt_compiler_flag:'`
12387 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12388 (eval "$lt_compile" 2>conftest.err)
12389 ac_status=$?
12390 cat conftest.err >&5
12391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12392 if (exit $ac_status) && test -s "$ac_outfile"; then
12393 # The compiler can only warn and ignore the option if not recognized
12394 # So say no if there are warnings other than the usual output.
12395 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12396 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12397 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12398 lt_cv_prog_compiler_pic_works_FC=yes
12399 fi
12400 fi
12401 $RM conftest*
12402
12403 fi
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
12405 $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
12406
12407 if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
12408 case $lt_prog_compiler_pic_FC in
12409 "" | " "*) ;;
12410 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
12411 esac
12412 else
12413 lt_prog_compiler_pic_FC=
12414 lt_prog_compiler_can_build_shared_FC=no
12415 fi
12416
12417 fi
12418
12419
12420
12421 #
12422 # Check to make sure the static flag actually works.
12423 #
12424 wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12426 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12427 if test "${lt_cv_prog_compiler_static_works_FC+set}" = set; then :
12428 $as_echo_n "(cached) " >&6
12429 else
12430 lt_cv_prog_compiler_static_works_FC=no
12431 save_LDFLAGS="$LDFLAGS"
12432 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12433 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12434 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12435 # The linker can only warn and ignore the option if not recognized
12436 # So say no if there are warnings
12437 if test -s conftest.err; then
12438 # Append any errors to the config.log.
12439 cat conftest.err 1>&5
12440 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12441 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12442 if diff conftest.exp conftest.er2 >/dev/null; then
12443 lt_cv_prog_compiler_static_works_FC=yes
12444 fi
12445 else
12446 lt_cv_prog_compiler_static_works_FC=yes
12447 fi
12448 fi
12449 $RM -r conftest*
12450 LDFLAGS="$save_LDFLAGS"
12451
12452 fi
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
12454 $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
12455
12456 if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
12457 :
12458 else
12459 lt_prog_compiler_static_FC=
12460 fi
12461
12462
12463
12464
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12466 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12467 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
12468 $as_echo_n "(cached) " >&6
12469 else
12470 lt_cv_prog_compiler_c_o_FC=no
12471 $RM -r conftest 2>/dev/null
12472 mkdir conftest
12473 cd conftest
12474 mkdir out
12475 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12476
12477 lt_compiler_flag="-o out/conftest2.$ac_objext"
12478 # Insert the option either (1) after the last *FLAGS variable, or
12479 # (2) before a word containing "conftest.", or (3) at the end.
12480 # Note that $ac_compile itself does not contain backslashes and begins
12481 # with a dollar sign (not a hyphen), so the echo should work correctly.
12482 lt_compile=`echo "$ac_compile" | $SED \
12483 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12484 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12485 -e 's:$: $lt_compiler_flag:'`
12486 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12487 (eval "$lt_compile" 2>out/conftest.err)
12488 ac_status=$?
12489 cat out/conftest.err >&5
12490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12491 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12492 then
12493 # The compiler can only warn and ignore the option if not recognized
12494 # So say no if there are warnings
12495 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12496 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12497 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12498 lt_cv_prog_compiler_c_o_FC=yes
12499 fi
12500 fi
12501 chmod u+w . 2>&5
12502 $RM conftest*
12503 # SGI C++ compiler will create directory out/ii_files/ for
12504 # template instantiation
12505 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12506 $RM out/* && rmdir out
12507 cd ..
12508 $RM -r conftest
12509 $RM conftest*
12510
12511 fi
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12513 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12514
12515
12516
12517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12518 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12519 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
12520 $as_echo_n "(cached) " >&6
12521 else
12522 lt_cv_prog_compiler_c_o_FC=no
12523 $RM -r conftest 2>/dev/null
12524 mkdir conftest
12525 cd conftest
12526 mkdir out
12527 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12528
12529 lt_compiler_flag="-o out/conftest2.$ac_objext"
12530 # Insert the option either (1) after the last *FLAGS variable, or
12531 # (2) before a word containing "conftest.", or (3) at the end.
12532 # Note that $ac_compile itself does not contain backslashes and begins
12533 # with a dollar sign (not a hyphen), so the echo should work correctly.
12534 lt_compile=`echo "$ac_compile" | $SED \
12535 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12536 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12537 -e 's:$: $lt_compiler_flag:'`
12538 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12539 (eval "$lt_compile" 2>out/conftest.err)
12540 ac_status=$?
12541 cat out/conftest.err >&5
12542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12544 then
12545 # The compiler can only warn and ignore the option if not recognized
12546 # So say no if there are warnings
12547 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12548 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12549 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12550 lt_cv_prog_compiler_c_o_FC=yes
12551 fi
12552 fi
12553 chmod u+w . 2>&5
12554 $RM conftest*
12555 # SGI C++ compiler will create directory out/ii_files/ for
12556 # template instantiation
12557 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12558 $RM out/* && rmdir out
12559 cd ..
12560 $RM -r conftest
12561 $RM conftest*
12562
12563 fi
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12565 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12566
12567
12568
12569
12570 hard_links="nottested"
12571 if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
12572 # do not overwrite the value of need_locks provided by the user
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12574 $as_echo_n "checking if we can lock with hard links... " >&6; }
12575 hard_links=yes
12576 $RM conftest*
12577 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12578 touch conftest.a
12579 ln conftest.a conftest.b 2>&5 || hard_links=no
12580 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12582 $as_echo "$hard_links" >&6; }
12583 if test "$hard_links" = no; then
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12585 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12586 need_locks=warn
12587 fi
12588 else
12589 need_locks=no
12590 fi
12591
12592
12593
12594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12595 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12596
12597 runpath_var=
12598 allow_undefined_flag_FC=
12599 always_export_symbols_FC=no
12600 archive_cmds_FC=
12601 archive_expsym_cmds_FC=
12602 compiler_needs_object_FC=no
12603 enable_shared_with_static_runtimes_FC=no
12604 export_dynamic_flag_spec_FC=
12605 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12606 hardcode_automatic_FC=no
12607 hardcode_direct_FC=no
12608 hardcode_direct_absolute_FC=no
12609 hardcode_libdir_flag_spec_FC=
12610 hardcode_libdir_flag_spec_ld_FC=
12611 hardcode_libdir_separator_FC=
12612 hardcode_minus_L_FC=no
12613 hardcode_shlibpath_var_FC=unsupported
12614 inherit_rpath_FC=no
12615 link_all_deplibs_FC=unknown
12616 module_cmds_FC=
12617 module_expsym_cmds_FC=
12618 old_archive_from_new_cmds_FC=
12619 old_archive_from_expsyms_cmds_FC=
12620 thread_safe_flag_spec_FC=
12621 whole_archive_flag_spec_FC=
12622 # include_expsyms should be a list of space-separated symbols to be *always*
12623 # included in the symbol list
12624 include_expsyms_FC=
12625 # exclude_expsyms can be an extended regexp of symbols to exclude
12626 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12627 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12628 # as well as any symbol that contains `d'.
12629 exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12630 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12631 # platforms (ab)use it in PIC code, but their linkers get confused if
12632 # the symbol is explicitly referenced. Since portable code cannot
12633 # rely on this symbol name, it's probably fine to never include it in
12634 # preloaded symbol tables.
12635 # Exclude shared library initialization/finalization symbols.
12636 extract_expsyms_cmds=
12637
12638 case $host_os in
12639 cygwin* | mingw* | pw32* | cegcc*)
12640 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12641 # When not using gcc, we currently assume that we are using
12642 # Microsoft Visual C++.
12643 if test "$GCC" != yes; then
12644 with_gnu_ld=no
12645 fi
12646 ;;
12647 interix*)
12648 # we just hope/assume this is gcc and not c89 (= MSVC++)
12649 with_gnu_ld=yes
12650 ;;
12651 openbsd*)
12652 with_gnu_ld=no
12653 ;;
12654 esac
12655
12656 ld_shlibs_FC=yes
12657
12658 # On some targets, GNU ld is compatible enough with the native linker
12659 # that we're better off using the native interface for both.
12660 lt_use_gnu_ld_interface=no
12661 if test "$with_gnu_ld" = yes; then
12662 case $host_os in
12663 aix*)
12664 # The AIX port of GNU ld has always aspired to compatibility
12665 # with the native linker. However, as the warning in the GNU ld
12666 # block says, versions before 2.19.5* couldn't really create working
12667 # shared libraries, regardless of the interface used.
12668 case `$LD -v 2>&1` in
12669 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12670 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12671 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12672 *)
12673 lt_use_gnu_ld_interface=yes
12674 ;;
12675 esac
12676 ;;
12677 *)
12678 lt_use_gnu_ld_interface=yes
12679 ;;
12680 esac
12681 fi
12682
12683 if test "$lt_use_gnu_ld_interface" = yes; then
12684 # If archive_cmds runs LD, not CC, wlarc should be empty
12685 wlarc='${wl}'
12686
12687 # Set some defaults for GNU ld with shared library support. These
12688 # are reset later if shared libraries are not supported. Putting them
12689 # here allows them to be overridden if necessary.
12690 runpath_var=LD_RUN_PATH
12691 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12692 export_dynamic_flag_spec_FC='${wl}--export-dynamic'
12693 # ancient GNU ld didn't support --whole-archive et. al.
12694 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12695 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12696 else
12697 whole_archive_flag_spec_FC=
12698 fi
12699 supports_anon_versioning=no
12700 case `$LD -v 2>&1` in
12701 *GNU\ gold*) supports_anon_versioning=yes ;;
12702 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12703 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12704 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12705 *\ 2.11.*) ;; # other 2.11 versions
12706 *) supports_anon_versioning=yes ;;
12707 esac
12708
12709 # See if GNU ld supports shared libraries.
12710 case $host_os in
12711 aix[3-9]*)
12712 # On AIX/PPC, the GNU linker is very broken
12713 if test "$host_cpu" != ia64; then
12714 ld_shlibs_FC=no
12715 cat <<_LT_EOF 1>&2
12716
12717 *** Warning: the GNU linker, at least up to release 2.19, is reported
12718 *** to be unable to reliably create shared libraries on AIX.
12719 *** Therefore, libtool is disabling shared libraries support. If you
12720 *** really care for shared libraries, you may want to install binutils
12721 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12722 *** You will then need to restart the configuration process.
12723
12724 _LT_EOF
12725 fi
12726 ;;
12727
12728 amigaos*)
12729 case $host_cpu in
12730 powerpc)
12731 # see comment about AmigaOS4 .so support
12732 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12733 archive_expsym_cmds_FC=''
12734 ;;
12735 m68k)
12736 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)'
12737 hardcode_libdir_flag_spec_FC='-L$libdir'
12738 hardcode_minus_L_FC=yes
12739 ;;
12740 esac
12741 ;;
12742
12743 beos*)
12744 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12745 allow_undefined_flag_FC=unsupported
12746 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12747 # support --undefined. This deserves some investigation. FIXME
12748 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12749 else
12750 ld_shlibs_FC=no
12751 fi
12752 ;;
12753
12754 cygwin* | mingw* | pw32* | cegcc*)
12755 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
12756 # as there is no search path for DLLs.
12757 hardcode_libdir_flag_spec_FC='-L$libdir'
12758 export_dynamic_flag_spec_FC='${wl}--export-all-symbols'
12759 allow_undefined_flag_FC=unsupported
12760 always_export_symbols_FC=no
12761 enable_shared_with_static_runtimes_FC=yes
12762 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12763
12764 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12765 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12766 # If the export-symbols file already is a .def file (1st line
12767 # is EXPORTS), use it as is; otherwise, prepend...
12768 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12769 cp $export_symbols $output_objdir/$soname.def;
12770 else
12771 echo EXPORTS > $output_objdir/$soname.def;
12772 cat $export_symbols >> $output_objdir/$soname.def;
12773 fi~
12774 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12775 else
12776 ld_shlibs_FC=no
12777 fi
12778 ;;
12779
12780 haiku*)
12781 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12782 link_all_deplibs_FC=yes
12783 ;;
12784
12785 interix[3-9]*)
12786 hardcode_direct_FC=no
12787 hardcode_shlibpath_var_FC=no
12788 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
12789 export_dynamic_flag_spec_FC='${wl}-E'
12790 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12791 # Instead, shared libraries are loaded at an image base (0x10000000 by
12792 # default) and relocated if they conflict, which is a slow very memory
12793 # consuming and fragmenting process. To avoid this, we pick a random,
12794 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12795 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12796 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'
12797 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'
12798 ;;
12799
12800 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12801 tmp_diet=no
12802 if test "$host_os" = linux-dietlibc; then
12803 case $cc_basename in
12804 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12805 esac
12806 fi
12807 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12808 && test "$tmp_diet" = no
12809 then
12810 tmp_addflag=' $pic_flag'
12811 tmp_sharedflag='-shared'
12812 case $cc_basename,$host_cpu in
12813 pgcc*) # Portland Group C compiler
12814 whole_archive_flag_spec_FC='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12815 tmp_addflag=' $pic_flag'
12816 ;;
12817 pgf77* | pgf90* | pgf95* | pgfortran*)
12818 # Portland Group f77 and f90 compilers
12819 whole_archive_flag_spec_FC='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12820 tmp_addflag=' $pic_flag -Mnomain' ;;
12821 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12822 tmp_addflag=' -i_dynamic' ;;
12823 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12824 tmp_addflag=' -i_dynamic -nofor_main' ;;
12825 ifc* | ifort*) # Intel Fortran compiler
12826 tmp_addflag=' -nofor_main' ;;
12827 lf95*) # Lahey Fortran 8.1
12828 whole_archive_flag_spec_FC=
12829 tmp_sharedflag='--shared' ;;
12830 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12831 tmp_sharedflag='-qmkshrobj'
12832 tmp_addflag= ;;
12833 nvcc*) # Cuda Compiler Driver 2.2
12834 whole_archive_flag_spec_FC='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12835 compiler_needs_object_FC=yes
12836 ;;
12837 esac
12838 case `$CC -V 2>&1 | sed 5q` in
12839 *Sun\ C*) # Sun C 5.9
12840 whole_archive_flag_spec_FC='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12841 compiler_needs_object_FC=yes
12842 tmp_sharedflag='-G' ;;
12843 *Sun\ F*) # Sun Fortran 8.3
12844 tmp_sharedflag='-G' ;;
12845 esac
12846 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12847
12848 if test "x$supports_anon_versioning" = xyes; then
12849 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
12850 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12851 echo "local: *; };" >> $output_objdir/$libname.ver~
12852 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12853 fi
12854
12855 case $cc_basename in
12856 xlf* | bgf* | bgxlf* | mpixlf*)
12857 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12858 whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
12859 hardcode_libdir_flag_spec_FC=
12860 hardcode_libdir_flag_spec_ld_FC='-rpath $libdir'
12861 archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12862 if test "x$supports_anon_versioning" = xyes; then
12863 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
12864 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12865 echo "local: *; };" >> $output_objdir/$libname.ver~
12866 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12867 fi
12868 ;;
12869 esac
12870 else
12871 ld_shlibs_FC=no
12872 fi
12873 ;;
12874
12875 netbsd*)
12876 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12877 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12878 wlarc=
12879 else
12880 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12881 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12882 fi
12883 ;;
12884
12885 solaris*)
12886 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12887 ld_shlibs_FC=no
12888 cat <<_LT_EOF 1>&2
12889
12890 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12891 *** create shared libraries on Solaris systems. Therefore, libtool
12892 *** is disabling shared libraries support. We urge you to upgrade GNU
12893 *** binutils to release 2.9.1 or newer. Another option is to modify
12894 *** your PATH or compiler configuration so that the native linker is
12895 *** used, and then restart.
12896
12897 _LT_EOF
12898 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12899 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12900 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12901 else
12902 ld_shlibs_FC=no
12903 fi
12904 ;;
12905
12906 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12907 case `$LD -v 2>&1` in
12908 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12909 ld_shlibs_FC=no
12910 cat <<_LT_EOF 1>&2
12911
12912 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12913 *** reliably create shared libraries on SCO systems. Therefore, libtool
12914 *** is disabling shared libraries support. We urge you to upgrade GNU
12915 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12916 *** your PATH or compiler configuration so that the native linker is
12917 *** used, and then restart.
12918
12919 _LT_EOF
12920 ;;
12921 *)
12922 # For security reasons, it is highly recommended that you always
12923 # use absolute paths for naming shared libraries, and exclude the
12924 # DT_RUNPATH tag from executables and libraries. But doing so
12925 # requires that you compile everything twice, which is a pain.
12926 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12927 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12928 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12929 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12930 else
12931 ld_shlibs_FC=no
12932 fi
12933 ;;
12934 esac
12935 ;;
12936
12937 sunos4*)
12938 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12939 wlarc=
12940 hardcode_direct_FC=yes
12941 hardcode_shlibpath_var_FC=no
12942 ;;
12943
12944 *)
12945 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12946 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12947 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12948 else
12949 ld_shlibs_FC=no
12950 fi
12951 ;;
12952 esac
12953
12954 if test "$ld_shlibs_FC" = no; then
12955 runpath_var=
12956 hardcode_libdir_flag_spec_FC=
12957 export_dynamic_flag_spec_FC=
12958 whole_archive_flag_spec_FC=
12959 fi
12960 else
12961 # PORTME fill in a description of your system's linker (not GNU ld)
12962 case $host_os in
12963 aix3*)
12964 allow_undefined_flag_FC=unsupported
12965 always_export_symbols_FC=yes
12966 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'
12967 # Note: this linker hardcodes the directories in LIBPATH if there
12968 # are no directories specified by -L.
12969 hardcode_minus_L_FC=yes
12970 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12971 # Neither direct hardcoding nor static linking is supported with a
12972 # broken collect2.
12973 hardcode_direct_FC=unsupported
12974 fi
12975 ;;
12976
12977 aix[4-9]*)
12978 if test "$host_cpu" = ia64; then
12979 # On IA64, the linker does run time linking by default, so we don't
12980 # have to do anything special.
12981 aix_use_runtimelinking=no
12982 exp_sym_flag='-Bexport'
12983 no_entry_flag=""
12984 else
12985 # If we're using GNU nm, then we don't want the "-C" option.
12986 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12987 # Also, AIX nm treats weak defined symbols like other global
12988 # defined symbols, whereas GNU nm marks them as "W".
12989 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12990 export_symbols_cmds_FC='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
12991 else
12992 export_symbols_cmds_FC='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
12993 fi
12994 aix_use_runtimelinking=no
12995
12996 # Test if we are trying to use run time linking or normal
12997 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12998 # need to do runtime linking.
12999 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13000 for ld_flag in $LDFLAGS; do
13001 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13002 aix_use_runtimelinking=yes
13003 break
13004 fi
13005 done
13006 ;;
13007 esac
13008
13009 exp_sym_flag='-bexport'
13010 no_entry_flag='-bnoentry'
13011 fi
13012
13013 # When large executables or shared objects are built, AIX ld can
13014 # have problems creating the table of contents. If linking a library
13015 # or program results in "error TOC overflow" add -mminimal-toc to
13016 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13017 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13018
13019 archive_cmds_FC=''
13020 hardcode_direct_FC=yes
13021 hardcode_direct_absolute_FC=yes
13022 hardcode_libdir_separator_FC=':'
13023 link_all_deplibs_FC=yes
13024 file_list_spec_FC='${wl}-f,'
13025
13026 if test "$GCC" = yes; then
13027 case $host_os in aix4.[012]|aix4.[012].*)
13028 # We only want to do this on AIX 4.2 and lower, the check
13029 # below for broken collect2 doesn't work under 4.3+
13030 collect2name=`${CC} -print-prog-name=collect2`
13031 if test -f "$collect2name" &&
13032 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13033 then
13034 # We have reworked collect2
13035 :
13036 else
13037 # We have old collect2
13038 hardcode_direct_FC=unsupported
13039 # It fails to find uninstalled libraries when the uninstalled
13040 # path is not listed in the libpath. Setting hardcode_minus_L
13041 # to unsupported forces relinking
13042 hardcode_minus_L_FC=yes
13043 hardcode_libdir_flag_spec_FC='-L$libdir'
13044 hardcode_libdir_separator_FC=
13045 fi
13046 ;;
13047 esac
13048 shared_flag='-shared'
13049 if test "$aix_use_runtimelinking" = yes; then
13050 shared_flag="$shared_flag "'${wl}-G'
13051 fi
13052 else
13053 # not using gcc
13054 if test "$host_cpu" = ia64; then
13055 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13056 # chokes on -Wl,-G. The following line is correct:
13057 shared_flag='-G'
13058 else
13059 if test "$aix_use_runtimelinking" = yes; then
13060 shared_flag='${wl}-G'
13061 else
13062 shared_flag='${wl}-bM:SRE'
13063 fi
13064 fi
13065 fi
13066
13067 export_dynamic_flag_spec_FC='${wl}-bexpall'
13068 # It seems that -bexpall does not export symbols beginning with
13069 # underscore (_), so it is better to generate a list of symbols to export.
13070 always_export_symbols_FC=yes
13071 if test "$aix_use_runtimelinking" = yes; then
13072 # Warning - without using the other runtime loading flags (-brtl),
13073 # -berok will link without error, but may produce a broken library.
13074 allow_undefined_flag_FC='-berok'
13075 # Determine the default libpath from the value encoded in an
13076 # empty executable.
13077 cat > conftest.$ac_ext <<_ACEOF
13078 program main
13079
13080 end
13081 _ACEOF
13082 if ac_fn_fc_try_link "$LINENO"; then :
13083
13084 lt_aix_libpath_sed='
13085 /Import File Strings/,/^$/ {
13086 /^0/ {
13087 s/^0 *\(.*\)$/\1/
13088 p
13089 }
13090 }'
13091 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13092 # Check for a 64-bit object if we didn't find anything.
13093 if test -z "$aix_libpath"; then
13094 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13095 fi
13096 fi
13097 rm -f core conftest.err conftest.$ac_objext \
13098 conftest$ac_exeext conftest.$ac_ext
13099 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13100
13101 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
13102 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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13103 else
13104 if test "$host_cpu" = ia64; then
13105 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
13106 allow_undefined_flag_FC="-z nodefs"
13107 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"
13108 else
13109 # Determine the default libpath from the value encoded in an
13110 # empty executable.
13111 cat > conftest.$ac_ext <<_ACEOF
13112 program main
13113
13114 end
13115 _ACEOF
13116 if ac_fn_fc_try_link "$LINENO"; then :
13117
13118 lt_aix_libpath_sed='
13119 /Import File Strings/,/^$/ {
13120 /^0/ {
13121 s/^0 *\(.*\)$/\1/
13122 p
13123 }
13124 }'
13125 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13126 # Check for a 64-bit object if we didn't find anything.
13127 if test -z "$aix_libpath"; then
13128 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13129 fi
13130 fi
13131 rm -f core conftest.err conftest.$ac_objext \
13132 conftest$ac_exeext conftest.$ac_ext
13133 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13134
13135 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
13136 # Warning - without using the other run time loading flags,
13137 # -berok will link without error, but may produce a broken library.
13138 no_undefined_flag_FC=' ${wl}-bernotok'
13139 allow_undefined_flag_FC=' ${wl}-berok'
13140 if test "$with_gnu_ld" = yes; then
13141 # We only use this code for GNU lds that support --whole-archive.
13142 whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13143 else
13144 # Exported symbols can be pulled into shared objects from archives
13145 whole_archive_flag_spec_FC='$convenience'
13146 fi
13147 archive_cmds_need_lc_FC=yes
13148 # This is similar to how AIX traditionally builds its shared libraries.
13149 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'
13150 fi
13151 fi
13152 ;;
13153
13154 amigaos*)
13155 case $host_cpu in
13156 powerpc)
13157 # see comment about AmigaOS4 .so support
13158 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13159 archive_expsym_cmds_FC=''
13160 ;;
13161 m68k)
13162 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)'
13163 hardcode_libdir_flag_spec_FC='-L$libdir'
13164 hardcode_minus_L_FC=yes
13165 ;;
13166 esac
13167 ;;
13168
13169 bsdi[45]*)
13170 export_dynamic_flag_spec_FC=-rdynamic
13171 ;;
13172
13173 cygwin* | mingw* | pw32* | cegcc*)
13174 # When not using gcc, we currently assume that we are using
13175 # Microsoft Visual C++.
13176 # hardcode_libdir_flag_spec is actually meaningless, as there is
13177 # no search path for DLLs.
13178 hardcode_libdir_flag_spec_FC=' '
13179 allow_undefined_flag_FC=unsupported
13180 # Tell ltmain to make .lib files, not .a files.
13181 libext=lib
13182 # Tell ltmain to make .dll files, not .so files.
13183 shrext_cmds=".dll"
13184 # FIXME: Setting linknames here is a bad hack.
13185 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13186 # The linker will automatically build a .lib file if we build a DLL.
13187 old_archive_from_new_cmds_FC='true'
13188 # FIXME: Should let the user specify the lib program.
13189 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
13190 fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
13191 enable_shared_with_static_runtimes_FC=yes
13192 ;;
13193
13194 darwin* | rhapsody*)
13195
13196
13197 archive_cmds_need_lc_FC=no
13198 hardcode_direct_FC=no
13199 hardcode_automatic_FC=yes
13200 hardcode_shlibpath_var_FC=unsupported
13201 if test "$lt_cv_ld_force_load" = "yes"; then
13202 whole_archive_flag_spec_FC='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13203 else
13204 whole_archive_flag_spec_FC=''
13205 fi
13206 link_all_deplibs_FC=yes
13207 allow_undefined_flag_FC="$_lt_dar_allow_undefined"
13208 case $cc_basename in
13209 ifort*) _lt_dar_can_shared=yes ;;
13210 *) _lt_dar_can_shared=$GCC ;;
13211 esac
13212 if test "$_lt_dar_can_shared" = "yes"; then
13213 output_verbose_link_cmd=func_echo_all
13214 archive_cmds_FC="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13215 module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13216 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 ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
13217 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${_lt_dar_export_syms}${_lt_dsymutil}"
13218
13219 else
13220 ld_shlibs_FC=no
13221 fi
13222
13223 ;;
13224
13225 dgux*)
13226 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13227 hardcode_libdir_flag_spec_FC='-L$libdir'
13228 hardcode_shlibpath_var_FC=no
13229 ;;
13230
13231 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13232 # support. Future versions do this automatically, but an explicit c++rt0.o
13233 # does not break anything, and helps significantly (at the cost of a little
13234 # extra space).
13235 freebsd2.2*)
13236 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13237 hardcode_libdir_flag_spec_FC='-R$libdir'
13238 hardcode_direct_FC=yes
13239 hardcode_shlibpath_var_FC=no
13240 ;;
13241
13242 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13243 freebsd2.*)
13244 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13245 hardcode_direct_FC=yes
13246 hardcode_minus_L_FC=yes
13247 hardcode_shlibpath_var_FC=no
13248 ;;
13249
13250 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13251 freebsd* | dragonfly*)
13252 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13253 hardcode_libdir_flag_spec_FC='-R$libdir'
13254 hardcode_direct_FC=yes
13255 hardcode_shlibpath_var_FC=no
13256 ;;
13257
13258 hpux9*)
13259 if test "$GCC" = yes; then
13260 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'
13261 else
13262 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'
13263 fi
13264 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13265 hardcode_libdir_separator_FC=:
13266 hardcode_direct_FC=yes
13267
13268 # hardcode_minus_L: Not really in the search PATH,
13269 # but as the default location of the library.
13270 hardcode_minus_L_FC=yes
13271 export_dynamic_flag_spec_FC='${wl}-E'
13272 ;;
13273
13274 hpux10*)
13275 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13276 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13277 else
13278 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13279 fi
13280 if test "$with_gnu_ld" = no; then
13281 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13282 hardcode_libdir_flag_spec_ld_FC='+b $libdir'
13283 hardcode_libdir_separator_FC=:
13284 hardcode_direct_FC=yes
13285 hardcode_direct_absolute_FC=yes
13286 export_dynamic_flag_spec_FC='${wl}-E'
13287 # hardcode_minus_L: Not really in the search PATH,
13288 # but as the default location of the library.
13289 hardcode_minus_L_FC=yes
13290 fi
13291 ;;
13292
13293 hpux11*)
13294 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13295 case $host_cpu in
13296 hppa*64*)
13297 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13298 ;;
13299 ia64*)
13300 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13301 ;;
13302 *)
13303 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13304 ;;
13305 esac
13306 else
13307 case $host_cpu in
13308 hppa*64*)
13309 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13310 ;;
13311 ia64*)
13312 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13313 ;;
13314 *)
13315 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13316 ;;
13317 esac
13318 fi
13319 if test "$with_gnu_ld" = no; then
13320 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13321 hardcode_libdir_separator_FC=:
13322
13323 case $host_cpu in
13324 hppa*64*|ia64*)
13325 hardcode_direct_FC=no
13326 hardcode_shlibpath_var_FC=no
13327 ;;
13328 *)
13329 hardcode_direct_FC=yes
13330 hardcode_direct_absolute_FC=yes
13331 export_dynamic_flag_spec_FC='${wl}-E'
13332
13333 # hardcode_minus_L: Not really in the search PATH,
13334 # but as the default location of the library.
13335 hardcode_minus_L_FC=yes
13336 ;;
13337 esac
13338 fi
13339 ;;
13340
13341 irix5* | irix6* | nonstopux*)
13342 if test "$GCC" = yes; then
13343 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13344 # Try to use the -exported_symbol ld option, if it does not
13345 # work, assume that -exports_file does not work either and
13346 # implicitly export all symbols.
13347 save_LDFLAGS="$LDFLAGS"
13348 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13349 cat > conftest.$ac_ext <<_ACEOF
13350 int foo(void) {}
13351 _ACEOF
13352 if ac_fn_fc_try_link "$LINENO"; then :
13353 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
13354
13355 fi
13356 rm -f core conftest.err conftest.$ac_objext \
13357 conftest$ac_exeext conftest.$ac_ext
13358 LDFLAGS="$save_LDFLAGS"
13359 else
13360 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13361 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
13362 fi
13363 archive_cmds_need_lc_FC='no'
13364 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13365 hardcode_libdir_separator_FC=:
13366 inherit_rpath_FC=yes
13367 link_all_deplibs_FC=yes
13368 ;;
13369
13370 netbsd*)
13371 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13372 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13373 else
13374 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13375 fi
13376 hardcode_libdir_flag_spec_FC='-R$libdir'
13377 hardcode_direct_FC=yes
13378 hardcode_shlibpath_var_FC=no
13379 ;;
13380
13381 newsos6)
13382 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13383 hardcode_direct_FC=yes
13384 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13385 hardcode_libdir_separator_FC=:
13386 hardcode_shlibpath_var_FC=no
13387 ;;
13388
13389 *nto* | *qnx*)
13390 ;;
13391
13392 openbsd*)
13393 if test -f /usr/libexec/ld.so; then
13394 hardcode_direct_FC=yes
13395 hardcode_shlibpath_var_FC=no
13396 hardcode_direct_absolute_FC=yes
13397 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13398 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13399 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13400 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13401 export_dynamic_flag_spec_FC='${wl}-E'
13402 else
13403 case $host_os in
13404 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13405 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13406 hardcode_libdir_flag_spec_FC='-R$libdir'
13407 ;;
13408 *)
13409 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13410 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13411 ;;
13412 esac
13413 fi
13414 else
13415 ld_shlibs_FC=no
13416 fi
13417 ;;
13418
13419 os2*)
13420 hardcode_libdir_flag_spec_FC='-L$libdir'
13421 hardcode_minus_L_FC=yes
13422 allow_undefined_flag_FC=unsupported
13423 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'
13424 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13425 ;;
13426
13427 osf3*)
13428 if test "$GCC" = yes; then
13429 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
13430 archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13431 else
13432 allow_undefined_flag_FC=' -expect_unresolved \*'
13433 archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13434 fi
13435 archive_cmds_need_lc_FC='no'
13436 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13437 hardcode_libdir_separator_FC=:
13438 ;;
13439
13440 osf4* | osf5*) # as osf3* with the addition of -msym flag
13441 if test "$GCC" = yes; then
13442 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
13443 archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13444 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13445 else
13446 allow_undefined_flag_FC=' -expect_unresolved \*'
13447 archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13448 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~
13449 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
13450
13451 # Both c and cxx compiler support -rpath directly
13452 hardcode_libdir_flag_spec_FC='-rpath $libdir'
13453 fi
13454 archive_cmds_need_lc_FC='no'
13455 hardcode_libdir_separator_FC=:
13456 ;;
13457
13458 solaris*)
13459 no_undefined_flag_FC=' -z defs'
13460 if test "$GCC" = yes; then
13461 wlarc='${wl}'
13462 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13463 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13464 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13465 else
13466 case `$CC -V 2>&1` in
13467 *"Compilers 5.0"*)
13468 wlarc=''
13469 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13470 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13471 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13472 ;;
13473 *)
13474 wlarc='${wl}'
13475 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13476 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13477 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13478 ;;
13479 esac
13480 fi
13481 hardcode_libdir_flag_spec_FC='-R$libdir'
13482 hardcode_shlibpath_var_FC=no
13483 case $host_os in
13484 solaris2.[0-5] | solaris2.[0-5].*) ;;
13485 *)
13486 # The compiler driver will combine and reorder linker options,
13487 # but understands `-z linker_flag'. GCC discards it without `$wl',
13488 # but is careful enough not to reorder.
13489 # Supported since Solaris 2.6 (maybe 2.5.1?)
13490 if test "$GCC" = yes; then
13491 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13492 else
13493 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
13494 fi
13495 ;;
13496 esac
13497 link_all_deplibs_FC=yes
13498 ;;
13499
13500 sunos4*)
13501 if test "x$host_vendor" = xsequent; then
13502 # Use $CC to link under sequent, because it throws in some extra .o
13503 # files that make .init and .fini sections work.
13504 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13505 else
13506 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13507 fi
13508 hardcode_libdir_flag_spec_FC='-L$libdir'
13509 hardcode_direct_FC=yes
13510 hardcode_minus_L_FC=yes
13511 hardcode_shlibpath_var_FC=no
13512 ;;
13513
13514 sysv4)
13515 case $host_vendor in
13516 sni)
13517 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13518 hardcode_direct_FC=yes # is this really true???
13519 ;;
13520 siemens)
13521 ## LD is ld it makes a PLAMLIB
13522 ## CC just makes a GrossModule.
13523 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13524 reload_cmds_FC='$CC -r -o $output$reload_objs'
13525 hardcode_direct_FC=no
13526 ;;
13527 motorola)
13528 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13529 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
13530 ;;
13531 esac
13532 runpath_var='LD_RUN_PATH'
13533 hardcode_shlibpath_var_FC=no
13534 ;;
13535
13536 sysv4.3*)
13537 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13538 hardcode_shlibpath_var_FC=no
13539 export_dynamic_flag_spec_FC='-Bexport'
13540 ;;
13541
13542 sysv4*MP*)
13543 if test -d /usr/nec; then
13544 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13545 hardcode_shlibpath_var_FC=no
13546 runpath_var=LD_RUN_PATH
13547 hardcode_runpath_var=yes
13548 ld_shlibs_FC=yes
13549 fi
13550 ;;
13551
13552 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13553 no_undefined_flag_FC='${wl}-z,text'
13554 archive_cmds_need_lc_FC=no
13555 hardcode_shlibpath_var_FC=no
13556 runpath_var='LD_RUN_PATH'
13557
13558 if test "$GCC" = yes; then
13559 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13560 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13561 else
13562 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13563 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13564 fi
13565 ;;
13566
13567 sysv5* | sco3.2v5* | sco5v6*)
13568 # Note: We can NOT use -z defs as we might desire, because we do not
13569 # link with -lc, and that would cause any symbols used from libc to
13570 # always be unresolved, which means just about no library would
13571 # ever link correctly. If we're not using GNU ld we use -z text
13572 # though, which does catch some bad symbols but isn't as heavy-handed
13573 # as -z defs.
13574 no_undefined_flag_FC='${wl}-z,text'
13575 allow_undefined_flag_FC='${wl}-z,nodefs'
13576 archive_cmds_need_lc_FC=no
13577 hardcode_shlibpath_var_FC=no
13578 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
13579 hardcode_libdir_separator_FC=':'
13580 link_all_deplibs_FC=yes
13581 export_dynamic_flag_spec_FC='${wl}-Bexport'
13582 runpath_var='LD_RUN_PATH'
13583
13584 if test "$GCC" = yes; then
13585 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13586 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13587 else
13588 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13589 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13590 fi
13591 ;;
13592
13593 uts4*)
13594 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13595 hardcode_libdir_flag_spec_FC='-L$libdir'
13596 hardcode_shlibpath_var_FC=no
13597 ;;
13598
13599 *)
13600 ld_shlibs_FC=no
13601 ;;
13602 esac
13603
13604 if test x$host_vendor = xsni; then
13605 case $host in
13606 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13607 export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
13608 ;;
13609 esac
13610 fi
13611 fi
13612
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
13614 $as_echo "$ld_shlibs_FC" >&6; }
13615 test "$ld_shlibs_FC" = no && can_build_shared=no
13616
13617 with_gnu_ld_FC=$with_gnu_ld
13618
13619
13620
13621
13622
13623
13624 #
13625 # Do we need to explicitly link libc?
13626 #
13627 case "x$archive_cmds_need_lc_FC" in
13628 x|xyes)
13629 # Assume -lc should be added
13630 archive_cmds_need_lc_FC=yes
13631
13632 if test "$enable_shared" = yes && test "$GCC" = yes; then
13633 case $archive_cmds_FC in
13634 *'~'*)
13635 # FIXME: we may have to deal with multi-command sequences.
13636 ;;
13637 '$CC '*)
13638 # Test whether the compiler implicitly links with -lc since on some
13639 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13640 # to ld, don't add -lc before -lgcc.
13641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13642 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13643 if test "${lt_cv_archive_cmds_need_lc_FC+set}" = set; then :
13644 $as_echo_n "(cached) " >&6
13645 else
13646 $RM conftest*
13647 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13648
13649 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13650 (eval $ac_compile) 2>&5
13651 ac_status=$?
13652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13653 test $ac_status = 0; } 2>conftest.err; then
13654 soname=conftest
13655 lib=conftest
13656 libobjs=conftest.$ac_objext
13657 deplibs=
13658 wl=$lt_prog_compiler_wl_FC
13659 pic_flag=$lt_prog_compiler_pic_FC
13660 compiler_flags=-v
13661 linker_flags=-v
13662 verstring=
13663 output_objdir=.
13664 libname=conftest
13665 lt_save_allow_undefined_flag=$allow_undefined_flag_FC
13666 allow_undefined_flag_FC=
13667 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13668 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13669 ac_status=$?
13670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13671 test $ac_status = 0; }
13672 then
13673 lt_cv_archive_cmds_need_lc_FC=no
13674 else
13675 lt_cv_archive_cmds_need_lc_FC=yes
13676 fi
13677 allow_undefined_flag_FC=$lt_save_allow_undefined_flag
13678 else
13679 cat conftest.err 1>&5
13680 fi
13681 $RM conftest*
13682
13683 fi
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
13685 $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
13686 archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
13687 ;;
13688 esac
13689 fi
13690 ;;
13691 esac
13692
13693
13694
13695
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753
13754
13755
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13757 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13758
13759 library_names_spec=
13760 libname_spec='lib$name'
13761 soname_spec=
13762 shrext_cmds=".so"
13763 postinstall_cmds=
13764 postuninstall_cmds=
13765 finish_cmds=
13766 finish_eval=
13767 shlibpath_var=
13768 shlibpath_overrides_runpath=unknown
13769 version_type=none
13770 dynamic_linker="$host_os ld.so"
13771 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13772 need_lib_prefix=unknown
13773 hardcode_into_libs=no
13774
13775 # when you set need_version to no, make sure it does not cause -set_version
13776 # flags to be left without arguments
13777 need_version=unknown
13778
13779 case $host_os in
13780 aix3*)
13781 version_type=linux
13782 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13783 shlibpath_var=LIBPATH
13784
13785 # AIX 3 has no versioning support, so we append a major version to the name.
13786 soname_spec='${libname}${release}${shared_ext}$major'
13787 ;;
13788
13789 aix[4-9]*)
13790 version_type=linux
13791 need_lib_prefix=no
13792 need_version=no
13793 hardcode_into_libs=yes
13794 if test "$host_cpu" = ia64; then
13795 # AIX 5 supports IA64
13796 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13797 shlibpath_var=LD_LIBRARY_PATH
13798 else
13799 # With GCC up to 2.95.x, collect2 would create an import file
13800 # for dependence libraries. The import file would start with
13801 # the line `#! .'. This would cause the generated library to
13802 # depend on `.', always an invalid library. This was fixed in
13803 # development snapshots of GCC prior to 3.0.
13804 case $host_os in
13805 aix4 | aix4.[01] | aix4.[01].*)
13806 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13807 echo ' yes '
13808 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13809 :
13810 else
13811 can_build_shared=no
13812 fi
13813 ;;
13814 esac
13815 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13816 # soname into executable. Probably we can add versioning support to
13817 # collect2, so additional links can be useful in future.
13818 if test "$aix_use_runtimelinking" = yes; then
13819 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13820 # instead of lib<name>.a to let people know that these are not
13821 # typical AIX shared libraries.
13822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13823 else
13824 # We preserve .a as extension for shared libraries through AIX4.2
13825 # and later when we are not doing run time linking.
13826 library_names_spec='${libname}${release}.a $libname.a'
13827 soname_spec='${libname}${release}${shared_ext}$major'
13828 fi
13829 shlibpath_var=LIBPATH
13830 fi
13831 ;;
13832
13833 amigaos*)
13834 case $host_cpu in
13835 powerpc)
13836 # Since July 2007 AmigaOS4 officially supports .so libraries.
13837 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13839 ;;
13840 m68k)
13841 library_names_spec='$libname.ixlibrary $libname.a'
13842 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13843 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
13844 ;;
13845 esac
13846 ;;
13847
13848 beos*)
13849 library_names_spec='${libname}${shared_ext}'
13850 dynamic_linker="$host_os ld.so"
13851 shlibpath_var=LIBRARY_PATH
13852 ;;
13853
13854 bsdi[45]*)
13855 version_type=linux
13856 need_version=no
13857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13858 soname_spec='${libname}${release}${shared_ext}$major'
13859 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13860 shlibpath_var=LD_LIBRARY_PATH
13861 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13862 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13863 # the default ld.so.conf also contains /usr/contrib/lib and
13864 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13865 # libtool to hard-code these into programs
13866 ;;
13867
13868 cygwin* | mingw* | pw32* | cegcc*)
13869 version_type=windows
13870 shrext_cmds=".dll"
13871 need_version=no
13872 need_lib_prefix=no
13873
13874 case $GCC,$host_os in
13875 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13876 library_names_spec='$libname.dll.a'
13877 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13878 postinstall_cmds='base_file=`basename \${file}`~
13879 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13880 dldir=$destdir/`dirname \$dlpath`~
13881 test -d \$dldir || mkdir -p \$dldir~
13882 $install_prog $dir/$dlname \$dldir/$dlname~
13883 chmod a+x \$dldir/$dlname~
13884 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13885 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13886 fi'
13887 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13888 dlpath=$dir/\$dldll~
13889 $RM \$dlpath'
13890 shlibpath_overrides_runpath=yes
13891
13892 case $host_os in
13893 cygwin*)
13894 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13895 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13896
13897 ;;
13898 mingw* | cegcc*)
13899 # MinGW DLLs use traditional 'lib' prefix
13900 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13901 ;;
13902 pw32*)
13903 # pw32 DLLs use 'pw' prefix rather than 'lib'
13904 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13905 ;;
13906 esac
13907 ;;
13908
13909 *)
13910 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13911 ;;
13912 esac
13913 dynamic_linker='Win32 ld.exe'
13914 # FIXME: first we should search . and the directory the executable is in
13915 shlibpath_var=PATH
13916 ;;
13917
13918 darwin* | rhapsody*)
13919 dynamic_linker="$host_os dyld"
13920 version_type=darwin
13921 need_lib_prefix=no
13922 need_version=no
13923 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13924 soname_spec='${libname}${release}${major}$shared_ext'
13925 shlibpath_overrides_runpath=yes
13926 shlibpath_var=DYLD_LIBRARY_PATH
13927 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13928
13929 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13930 ;;
13931
13932 dgux*)
13933 version_type=linux
13934 need_lib_prefix=no
13935 need_version=no
13936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13937 soname_spec='${libname}${release}${shared_ext}$major'
13938 shlibpath_var=LD_LIBRARY_PATH
13939 ;;
13940
13941 freebsd* | dragonfly*)
13942 # DragonFly does not have aout. When/if they implement a new
13943 # versioning mechanism, adjust this.
13944 if test -x /usr/bin/objformat; then
13945 objformat=`/usr/bin/objformat`
13946 else
13947 case $host_os in
13948 freebsd[23].*) objformat=aout ;;
13949 *) objformat=elf ;;
13950 esac
13951 fi
13952 version_type=freebsd-$objformat
13953 case $version_type in
13954 freebsd-elf*)
13955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13956 need_version=no
13957 need_lib_prefix=no
13958 ;;
13959 freebsd-*)
13960 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13961 need_version=yes
13962 ;;
13963 esac
13964 shlibpath_var=LD_LIBRARY_PATH
13965 case $host_os in
13966 freebsd2.*)
13967 shlibpath_overrides_runpath=yes
13968 ;;
13969 freebsd3.[01]* | freebsdelf3.[01]*)
13970 shlibpath_overrides_runpath=yes
13971 hardcode_into_libs=yes
13972 ;;
13973 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13974 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13975 shlibpath_overrides_runpath=no
13976 hardcode_into_libs=yes
13977 ;;
13978 *) # from 4.6 on, and DragonFly
13979 shlibpath_overrides_runpath=yes
13980 hardcode_into_libs=yes
13981 ;;
13982 esac
13983 ;;
13984
13985 gnu*)
13986 version_type=linux
13987 need_lib_prefix=no
13988 need_version=no
13989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13990 soname_spec='${libname}${release}${shared_ext}$major'
13991 shlibpath_var=LD_LIBRARY_PATH
13992 hardcode_into_libs=yes
13993 ;;
13994
13995 haiku*)
13996 version_type=linux
13997 need_lib_prefix=no
13998 need_version=no
13999 dynamic_linker="$host_os runtime_loader"
14000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14001 soname_spec='${libname}${release}${shared_ext}$major'
14002 shlibpath_var=LIBRARY_PATH
14003 shlibpath_overrides_runpath=yes
14004 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14005 hardcode_into_libs=yes
14006 ;;
14007
14008 hpux9* | hpux10* | hpux11*)
14009 # Give a soname corresponding to the major version so that dld.sl refuses to
14010 # link against other versions.
14011 version_type=sunos
14012 need_lib_prefix=no
14013 need_version=no
14014 case $host_cpu in
14015 ia64*)
14016 shrext_cmds='.so'
14017 hardcode_into_libs=yes
14018 dynamic_linker="$host_os dld.so"
14019 shlibpath_var=LD_LIBRARY_PATH
14020 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14022 soname_spec='${libname}${release}${shared_ext}$major'
14023 if test "X$HPUX_IA64_MODE" = X32; then
14024 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14025 else
14026 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14027 fi
14028 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14029 ;;
14030 hppa*64*)
14031 shrext_cmds='.sl'
14032 hardcode_into_libs=yes
14033 dynamic_linker="$host_os dld.sl"
14034 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14035 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14037 soname_spec='${libname}${release}${shared_ext}$major'
14038 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14039 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14040 ;;
14041 *)
14042 shrext_cmds='.sl'
14043 dynamic_linker="$host_os dld.sl"
14044 shlibpath_var=SHLIB_PATH
14045 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14047 soname_spec='${libname}${release}${shared_ext}$major'
14048 ;;
14049 esac
14050 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14051 postinstall_cmds='chmod 555 $lib'
14052 # or fails outright, so override atomically:
14053 install_override_mode=555
14054 ;;
14055
14056 interix[3-9]*)
14057 version_type=linux
14058 need_lib_prefix=no
14059 need_version=no
14060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14061 soname_spec='${libname}${release}${shared_ext}$major'
14062 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14063 shlibpath_var=LD_LIBRARY_PATH
14064 shlibpath_overrides_runpath=no
14065 hardcode_into_libs=yes
14066 ;;
14067
14068 irix5* | irix6* | nonstopux*)
14069 case $host_os in
14070 nonstopux*) version_type=nonstopux ;;
14071 *)
14072 if test "$lt_cv_prog_gnu_ld" = yes; then
14073 version_type=linux
14074 else
14075 version_type=irix
14076 fi ;;
14077 esac
14078 need_lib_prefix=no
14079 need_version=no
14080 soname_spec='${libname}${release}${shared_ext}$major'
14081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14082 case $host_os in
14083 irix5* | nonstopux*)
14084 libsuff= shlibsuff=
14085 ;;
14086 *)
14087 case $LD in # libtool.m4 will add one of these switches to LD
14088 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14089 libsuff= shlibsuff= libmagic=32-bit;;
14090 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14091 libsuff=32 shlibsuff=N32 libmagic=N32;;
14092 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14093 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14094 *) libsuff= shlibsuff= libmagic=never-match;;
14095 esac
14096 ;;
14097 esac
14098 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14099 shlibpath_overrides_runpath=no
14100 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14101 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14102 hardcode_into_libs=yes
14103 ;;
14104
14105 # No shared lib support for Linux oldld, aout, or coff.
14106 linux*oldld* | linux*aout* | linux*coff*)
14107 dynamic_linker=no
14108 ;;
14109
14110 # This must be Linux ELF.
14111 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14112 version_type=linux
14113 need_lib_prefix=no
14114 need_version=no
14115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14116 soname_spec='${libname}${release}${shared_ext}$major'
14117 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14118 shlibpath_var=LD_LIBRARY_PATH
14119 shlibpath_overrides_runpath=no
14120
14121 # Some binutils ld are patched to set DT_RUNPATH
14122 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14123 $as_echo_n "(cached) " >&6
14124 else
14125 lt_cv_shlibpath_overrides_runpath=no
14126 save_LDFLAGS=$LDFLAGS
14127 save_libdir=$libdir
14128 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
14129 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
14130 cat > conftest.$ac_ext <<_ACEOF
14131 program main
14132
14133 end
14134 _ACEOF
14135 if ac_fn_fc_try_link "$LINENO"; then :
14136 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14137 lt_cv_shlibpath_overrides_runpath=yes
14138 fi
14139 fi
14140 rm -f core conftest.err conftest.$ac_objext \
14141 conftest$ac_exeext conftest.$ac_ext
14142 LDFLAGS=$save_LDFLAGS
14143 libdir=$save_libdir
14144
14145 fi
14146
14147 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14148
14149 # This implies no fast_install, which is unacceptable.
14150 # Some rework will be needed to allow for fast_install
14151 # before this can be enabled.
14152 hardcode_into_libs=yes
14153
14154 # Append ld.so.conf contents to the search path
14155 if test -f /etc/ld.so.conf; then
14156 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/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
14157 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14158 fi
14159
14160 # We used to test for /lib/ld.so.1 and disable shared libraries on
14161 # powerpc, because MkLinux only supported shared libraries with the
14162 # GNU dynamic linker. Since this was broken with cross compilers,
14163 # most powerpc-linux boxes support dynamic linking these days and
14164 # people can always --disable-shared, the test was removed, and we
14165 # assume the GNU/Linux dynamic linker is in use.
14166 dynamic_linker='GNU/Linux ld.so'
14167 ;;
14168
14169 netbsd*)
14170 version_type=sunos
14171 need_lib_prefix=no
14172 need_version=no
14173 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14175 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14176 dynamic_linker='NetBSD (a.out) ld.so'
14177 else
14178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14179 soname_spec='${libname}${release}${shared_ext}$major'
14180 dynamic_linker='NetBSD ld.elf_so'
14181 fi
14182 shlibpath_var=LD_LIBRARY_PATH
14183 shlibpath_overrides_runpath=yes
14184 hardcode_into_libs=yes
14185 ;;
14186
14187 newsos6)
14188 version_type=linux
14189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14190 shlibpath_var=LD_LIBRARY_PATH
14191 shlibpath_overrides_runpath=yes
14192 ;;
14193
14194 *nto* | *qnx*)
14195 version_type=qnx
14196 need_lib_prefix=no
14197 need_version=no
14198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14199 soname_spec='${libname}${release}${shared_ext}$major'
14200 shlibpath_var=LD_LIBRARY_PATH
14201 shlibpath_overrides_runpath=no
14202 hardcode_into_libs=yes
14203 dynamic_linker='ldqnx.so'
14204 ;;
14205
14206 openbsd*)
14207 version_type=sunos
14208 sys_lib_dlsearch_path_spec="/usr/lib"
14209 need_lib_prefix=no
14210 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14211 case $host_os in
14212 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14213 *) need_version=no ;;
14214 esac
14215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14216 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14217 shlibpath_var=LD_LIBRARY_PATH
14218 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14219 case $host_os in
14220 openbsd2.[89] | openbsd2.[89].*)
14221 shlibpath_overrides_runpath=no
14222 ;;
14223 *)
14224 shlibpath_overrides_runpath=yes
14225 ;;
14226 esac
14227 else
14228 shlibpath_overrides_runpath=yes
14229 fi
14230 ;;
14231
14232 os2*)
14233 libname_spec='$name'
14234 shrext_cmds=".dll"
14235 need_lib_prefix=no
14236 library_names_spec='$libname${shared_ext} $libname.a'
14237 dynamic_linker='OS/2 ld.exe'
14238 shlibpath_var=LIBPATH
14239 ;;
14240
14241 osf3* | osf4* | osf5*)
14242 version_type=osf
14243 need_lib_prefix=no
14244 need_version=no
14245 soname_spec='${libname}${release}${shared_ext}$major'
14246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14247 shlibpath_var=LD_LIBRARY_PATH
14248 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14249 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14250 ;;
14251
14252 rdos*)
14253 dynamic_linker=no
14254 ;;
14255
14256 solaris*)
14257 version_type=linux
14258 need_lib_prefix=no
14259 need_version=no
14260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14261 soname_spec='${libname}${release}${shared_ext}$major'
14262 shlibpath_var=LD_LIBRARY_PATH
14263 shlibpath_overrides_runpath=yes
14264 hardcode_into_libs=yes
14265 # ldd complains unless libraries are executable
14266 postinstall_cmds='chmod +x $lib'
14267 ;;
14268
14269 sunos4*)
14270 version_type=sunos
14271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14272 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14273 shlibpath_var=LD_LIBRARY_PATH
14274 shlibpath_overrides_runpath=yes
14275 if test "$with_gnu_ld" = yes; then
14276 need_lib_prefix=no
14277 fi
14278 need_version=yes
14279 ;;
14280
14281 sysv4 | sysv4.3*)
14282 version_type=linux
14283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14284 soname_spec='${libname}${release}${shared_ext}$major'
14285 shlibpath_var=LD_LIBRARY_PATH
14286 case $host_vendor in
14287 sni)
14288 shlibpath_overrides_runpath=no
14289 need_lib_prefix=no
14290 runpath_var=LD_RUN_PATH
14291 ;;
14292 siemens)
14293 need_lib_prefix=no
14294 ;;
14295 motorola)
14296 need_lib_prefix=no
14297 need_version=no
14298 shlibpath_overrides_runpath=no
14299 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14300 ;;
14301 esac
14302 ;;
14303
14304 sysv4*MP*)
14305 if test -d /usr/nec ;then
14306 version_type=linux
14307 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14308 soname_spec='$libname${shared_ext}.$major'
14309 shlibpath_var=LD_LIBRARY_PATH
14310 fi
14311 ;;
14312
14313 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14314 version_type=freebsd-elf
14315 need_lib_prefix=no
14316 need_version=no
14317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14318 soname_spec='${libname}${release}${shared_ext}$major'
14319 shlibpath_var=LD_LIBRARY_PATH
14320 shlibpath_overrides_runpath=yes
14321 hardcode_into_libs=yes
14322 if test "$with_gnu_ld" = yes; then
14323 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14324 else
14325 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14326 case $host_os in
14327 sco3.2v5*)
14328 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14329 ;;
14330 esac
14331 fi
14332 sys_lib_dlsearch_path_spec='/usr/lib'
14333 ;;
14334
14335 tpf*)
14336 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14337 version_type=linux
14338 need_lib_prefix=no
14339 need_version=no
14340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14341 shlibpath_var=LD_LIBRARY_PATH
14342 shlibpath_overrides_runpath=no
14343 hardcode_into_libs=yes
14344 ;;
14345
14346 uts4*)
14347 version_type=linux
14348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14349 soname_spec='${libname}${release}${shared_ext}$major'
14350 shlibpath_var=LD_LIBRARY_PATH
14351 ;;
14352
14353 *)
14354 dynamic_linker=no
14355 ;;
14356 esac
14357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14358 $as_echo "$dynamic_linker" >&6; }
14359 test "$dynamic_linker" = no && can_build_shared=no
14360
14361 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14362 if test "$GCC" = yes; then
14363 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14364 fi
14365
14366 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14367 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14368 fi
14369 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14370 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14371 fi
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398
14399
14400
14401
14402
14403
14404
14405
14406
14407
14408
14409
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14411 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14412 hardcode_action_FC=
14413 if test -n "$hardcode_libdir_flag_spec_FC" ||
14414 test -n "$runpath_var_FC" ||
14415 test "X$hardcode_automatic_FC" = "Xyes" ; then
14416
14417 # We can hardcode non-existent directories.
14418 if test "$hardcode_direct_FC" != no &&
14419 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14420 # have to relink, otherwise we might link with an installed library
14421 # when we should be linking with a yet-to-be-installed one
14422 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
14423 test "$hardcode_minus_L_FC" != no; then
14424 # Linking always hardcodes the temporary library directory.
14425 hardcode_action_FC=relink
14426 else
14427 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14428 hardcode_action_FC=immediate
14429 fi
14430 else
14431 # We cannot hardcode anything, or else we can only hardcode existing
14432 # directories.
14433 hardcode_action_FC=unsupported
14434 fi
14435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
14436 $as_echo "$hardcode_action_FC" >&6; }
14437
14438 if test "$hardcode_action_FC" = relink ||
14439 test "$inherit_rpath_FC" = yes; then
14440 # Fast installation is not supported
14441 enable_fast_install=no
14442 elif test "$shlibpath_overrides_runpath" = yes ||
14443 test "$enable_shared" = no; then
14444 # Fast installation is not necessary
14445 enable_fast_install=needless
14446 fi
14447
14448
14449
14450
14451
14452
14453
14454 fi # test -n "$compiler"
14455
14456 GCC=$lt_save_GCC
14457 CC="$lt_save_CC"
14458 fi # test "$_lt_disable_FC" != yes
14459
14460 ac_ext=c
14461 ac_cpp='$CPP $CPPFLAGS'
14462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14465
14466
14467 FCFLAGS="$FCFLAGS -Wall -L../libgfortran"
14468
14469 # For libtool versioning info, format is CURRENT:REVISION:AGE
14470 libtool_VERSION=1:0:0
14471
14472
14473 # Check header files.
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14475 $as_echo_n "checking for ANSI C header files... " >&6; }
14476 if test "${ac_cv_header_stdc+set}" = set; then :
14477 $as_echo_n "(cached) " >&6
14478 else
14479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14480 /* end confdefs.h. */
14481 #include <stdlib.h>
14482 #include <stdarg.h>
14483 #include <string.h>
14484 #include <float.h>
14485
14486 int
14487 main ()
14488 {
14489
14490 ;
14491 return 0;
14492 }
14493 _ACEOF
14494 if ac_fn_c_try_compile "$LINENO"; then :
14495 ac_cv_header_stdc=yes
14496 else
14497 ac_cv_header_stdc=no
14498 fi
14499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14500
14501 if test $ac_cv_header_stdc = yes; then
14502 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14504 /* end confdefs.h. */
14505 #include <string.h>
14506
14507 _ACEOF
14508 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14509 $EGREP "memchr" >/dev/null 2>&1; then :
14510
14511 else
14512 ac_cv_header_stdc=no
14513 fi
14514 rm -f conftest*
14515
14516 fi
14517
14518 if test $ac_cv_header_stdc = yes; then
14519 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14521 /* end confdefs.h. */
14522 #include <stdlib.h>
14523
14524 _ACEOF
14525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14526 $EGREP "free" >/dev/null 2>&1; then :
14527
14528 else
14529 ac_cv_header_stdc=no
14530 fi
14531 rm -f conftest*
14532
14533 fi
14534
14535 if test $ac_cv_header_stdc = yes; then
14536 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14537 if test "$cross_compiling" = yes; then :
14538 :
14539 else
14540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14541 /* end confdefs.h. */
14542 #include <ctype.h>
14543 #include <stdlib.h>
14544 #if ((' ' & 0x0FF) == 0x020)
14545 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14546 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14547 #else
14548 # define ISLOWER(c) \
14549 (('a' <= (c) && (c) <= 'i') \
14550 || ('j' <= (c) && (c) <= 'r') \
14551 || ('s' <= (c) && (c) <= 'z'))
14552 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14553 #endif
14554
14555 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14556 int
14557 main ()
14558 {
14559 int i;
14560 for (i = 0; i < 256; i++)
14561 if (XOR (islower (i), ISLOWER (i))
14562 || toupper (i) != TOUPPER (i))
14563 return 2;
14564 return 0;
14565 }
14566 _ACEOF
14567 if ac_fn_c_try_run "$LINENO"; then :
14568
14569 else
14570 ac_cv_header_stdc=no
14571 fi
14572 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14573 conftest.$ac_objext conftest.beam conftest.$ac_ext
14574 fi
14575
14576 fi
14577 fi
14578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14579 $as_echo "$ac_cv_header_stdc" >&6; }
14580 if test $ac_cv_header_stdc = yes; then
14581
14582 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14583
14584 fi
14585
14586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
14587 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14588 if test "${ac_cv_header_time+set}" = set; then :
14589 $as_echo_n "(cached) " >&6
14590 else
14591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14592 /* end confdefs.h. */
14593 #include <sys/types.h>
14594 #include <sys/time.h>
14595 #include <time.h>
14596
14597 int
14598 main ()
14599 {
14600 if ((struct tm *) 0)
14601 return 0;
14602 ;
14603 return 0;
14604 }
14605 _ACEOF
14606 if ac_fn_c_try_compile "$LINENO"; then :
14607 ac_cv_header_time=yes
14608 else
14609 ac_cv_header_time=no
14610 fi
14611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14612 fi
14613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
14614 $as_echo "$ac_cv_header_time" >&6; }
14615 if test $ac_cv_header_time = yes; then
14616
14617 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
14618
14619 fi
14620
14621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
14622 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
14623 if test "${gcc_cv_header_string+set}" = set; then :
14624 $as_echo_n "(cached) " >&6
14625 else
14626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14627 /* end confdefs.h. */
14628 #include <string.h>
14629 #include <strings.h>
14630 int
14631 main ()
14632 {
14633
14634 ;
14635 return 0;
14636 }
14637 _ACEOF
14638 if ac_fn_c_try_compile "$LINENO"; then :
14639 gcc_cv_header_string=yes
14640 else
14641 gcc_cv_header_string=no
14642 fi
14643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14644 fi
14645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
14646 $as_echo "$gcc_cv_header_string" >&6; }
14647 if test $gcc_cv_header_string = yes; then
14648
14649 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
14650
14651 fi
14652
14653 for ac_header in pthread.h unistd.h semaphore.h sys/loadavg.h sys/sysctl.h sys/time.h
14654 do :
14655 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14656 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14657 eval as_val=\$$as_ac_Header
14658 if test "x$as_val" = x""yes; then :
14659 cat >>confdefs.h <<_ACEOF
14660 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14661 _ACEOF
14662
14663 fi
14664
14665 done
14666
14667
14668
14669
14670 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
14671
14672 acx_cv_header_stdint=stddef.h
14673 acx_cv_header_stdint_kind="(already complete)"
14674 for i in stdint.h $inttype_headers; do
14675 unset ac_cv_type_uintptr_t
14676 unset ac_cv_type_uintmax_t
14677 unset ac_cv_type_int_least32_t
14678 unset ac_cv_type_int_fast32_t
14679 unset ac_cv_type_uint64_t
14680 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
14681 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
14682 #include <$i>
14683 "
14684 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
14685 acx_cv_header_stdint=$i
14686 else
14687 continue
14688 fi
14689
14690 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
14691 #include <$i>
14692 "
14693 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
14694
14695 else
14696 acx_cv_header_stdint_kind="(mostly complete)"
14697 fi
14698
14699 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
14700 #include <$i>
14701 "
14702 if test "x$ac_cv_type_int_least32_t" = x""yes; then :
14703
14704 else
14705 acx_cv_header_stdint_kind="(mostly complete)"
14706 fi
14707
14708 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
14709 #include <$i>
14710 "
14711 if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
14712
14713 else
14714 acx_cv_header_stdint_kind="(mostly complete)"
14715 fi
14716
14717 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
14718 #include <$i>
14719 "
14720 if test "x$ac_cv_type_uint64_t" = x""yes; then :
14721
14722 else
14723 acx_cv_header_stdint_kind="(lacks uint64_t)"
14724 fi
14725
14726 break
14727 done
14728 if test "$acx_cv_header_stdint" = stddef.h; then
14729 acx_cv_header_stdint_kind="(lacks uintmax_t)"
14730 for i in stdint.h $inttype_headers; do
14731 unset ac_cv_type_uintptr_t
14732 unset ac_cv_type_uint32_t
14733 unset ac_cv_type_uint64_t
14734 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
14735 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
14736 #include <$i>
14737 "
14738 if test "x$ac_cv_type_uint32_t" = x""yes; then :
14739 acx_cv_header_stdint=$i
14740 else
14741 continue
14742 fi
14743
14744 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
14745 #include <$i>
14746 "
14747 if test "x$ac_cv_type_uint64_t" = x""yes; then :
14748
14749 fi
14750
14751 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
14752 #include <$i>
14753 "
14754 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
14755
14756 fi
14757
14758 break
14759 done
14760 fi
14761 if test "$acx_cv_header_stdint" = stddef.h; then
14762 acx_cv_header_stdint_kind="(u_intXX_t style)"
14763 for i in sys/types.h $inttype_headers; do
14764 unset ac_cv_type_u_int32_t
14765 unset ac_cv_type_u_int64_t
14766 $as_echo_n "looking for u_intXX_t types in $i, " >&6
14767 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
14768 #include <$i>
14769 "
14770 if test "x$ac_cv_type_u_int32_t" = x""yes; then :
14771 acx_cv_header_stdint=$i
14772 else
14773 continue
14774 fi
14775
14776 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
14777 #include <$i>
14778 "
14779 if test "x$ac_cv_type_u_int64_t" = x""yes; then :
14780
14781 fi
14782
14783 break
14784 done
14785 fi
14786 if test "$acx_cv_header_stdint" = stddef.h; then
14787 acx_cv_header_stdint_kind="(using manual detection)"
14788 fi
14789
14790 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
14791 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
14792 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
14793 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
14794 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
14795
14796 # ----------------- Summarize what we found so far
14797
14798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
14799 $as_echo_n "checking what to include in gstdint.h... " >&6; }
14800
14801 case `$as_basename -- gstdint.h ||
14802 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
14803 Xgstdint.h : 'X\(//\)$' \| \
14804 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
14805 $as_echo X/gstdint.h |
14806 sed '/^.*\/\([^/][^/]*\)\/*$/{
14807 s//\1/
14808 q
14809 }
14810 /^X\/\(\/\/\)$/{
14811 s//\1/
14812 q
14813 }
14814 /^X\/\(\/\).*/{
14815 s//\1/
14816 q
14817 }
14818 s/.*/./; q'` in
14819 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
14820 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14821 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
14822 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14823 *) ;;
14824 esac
14825
14826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
14827 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
14828
14829 # ----------------- done included file, check C basic types --------
14830
14831 # Lacking an uintptr_t? Test size of void *
14832 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
14833 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
14834 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14835 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14836 # This bug is HP SR number 8606223364.
14837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
14838 $as_echo_n "checking size of void *... " >&6; }
14839 if test "${ac_cv_sizeof_void_p+set}" = set; then :
14840 $as_echo_n "(cached) " >&6
14841 else
14842 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
14843
14844 else
14845 if test "$ac_cv_type_void_p" = yes; then
14846 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14847 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14848 { as_fn_set_status 77
14849 as_fn_error "cannot compute sizeof (void *)
14850 See \`config.log' for more details." "$LINENO" 5; }; }
14851 else
14852 ac_cv_sizeof_void_p=0
14853 fi
14854 fi
14855
14856 fi
14857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
14858 $as_echo "$ac_cv_sizeof_void_p" >&6; }
14859
14860
14861
14862 cat >>confdefs.h <<_ACEOF
14863 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14864 _ACEOF
14865
14866 ;;
14867 esac
14868
14869 # Lacking an uint64_t? Test size of long
14870 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
14871 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
14872 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14873 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14874 # This bug is HP SR number 8606223364.
14875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
14876 $as_echo_n "checking size of long... " >&6; }
14877 if test "${ac_cv_sizeof_long+set}" = set; then :
14878 $as_echo_n "(cached) " >&6
14879 else
14880 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
14881
14882 else
14883 if test "$ac_cv_type_long" = yes; then
14884 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14885 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14886 { as_fn_set_status 77
14887 as_fn_error "cannot compute sizeof (long)
14888 See \`config.log' for more details." "$LINENO" 5; }; }
14889 else
14890 ac_cv_sizeof_long=0
14891 fi
14892 fi
14893
14894 fi
14895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
14896 $as_echo "$ac_cv_sizeof_long" >&6; }
14897
14898
14899
14900 cat >>confdefs.h <<_ACEOF
14901 #define SIZEOF_LONG $ac_cv_sizeof_long
14902 _ACEOF
14903
14904 ;;
14905 esac
14906
14907 if test $acx_cv_header_stdint = stddef.h; then
14908 # Lacking a good header? Test size of everything and deduce all types.
14909 # The cast to long int works around a bug in the HP C Compiler
14910 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14911 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14912 # This bug is HP SR number 8606223364.
14913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
14914 $as_echo_n "checking size of int... " >&6; }
14915 if test "${ac_cv_sizeof_int+set}" = set; then :
14916 $as_echo_n "(cached) " >&6
14917 else
14918 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
14919
14920 else
14921 if test "$ac_cv_type_int" = yes; then
14922 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14923 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14924 { as_fn_set_status 77
14925 as_fn_error "cannot compute sizeof (int)
14926 See \`config.log' for more details." "$LINENO" 5; }; }
14927 else
14928 ac_cv_sizeof_int=0
14929 fi
14930 fi
14931
14932 fi
14933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
14934 $as_echo "$ac_cv_sizeof_int" >&6; }
14935
14936
14937
14938 cat >>confdefs.h <<_ACEOF
14939 #define SIZEOF_INT $ac_cv_sizeof_int
14940 _ACEOF
14941
14942
14943 # The cast to long int works around a bug in the HP C Compiler
14944 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14945 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14946 # This bug is HP SR number 8606223364.
14947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
14948 $as_echo_n "checking size of short... " >&6; }
14949 if test "${ac_cv_sizeof_short+set}" = set; then :
14950 $as_echo_n "(cached) " >&6
14951 else
14952 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
14953
14954 else
14955 if test "$ac_cv_type_short" = yes; then
14956 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14957 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14958 { as_fn_set_status 77
14959 as_fn_error "cannot compute sizeof (short)
14960 See \`config.log' for more details." "$LINENO" 5; }; }
14961 else
14962 ac_cv_sizeof_short=0
14963 fi
14964 fi
14965
14966 fi
14967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
14968 $as_echo "$ac_cv_sizeof_short" >&6; }
14969
14970
14971
14972 cat >>confdefs.h <<_ACEOF
14973 #define SIZEOF_SHORT $ac_cv_sizeof_short
14974 _ACEOF
14975
14976
14977 # The cast to long int works around a bug in the HP C Compiler
14978 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14979 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14980 # This bug is HP SR number 8606223364.
14981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
14982 $as_echo_n "checking size of char... " >&6; }
14983 if test "${ac_cv_sizeof_char+set}" = set; then :
14984 $as_echo_n "(cached) " >&6
14985 else
14986 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
14987
14988 else
14989 if test "$ac_cv_type_char" = yes; then
14990 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14991 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14992 { as_fn_set_status 77
14993 as_fn_error "cannot compute sizeof (char)
14994 See \`config.log' for more details." "$LINENO" 5; }; }
14995 else
14996 ac_cv_sizeof_char=0
14997 fi
14998 fi
14999
15000 fi
15001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
15002 $as_echo "$ac_cv_sizeof_char" >&6; }
15003
15004
15005
15006 cat >>confdefs.h <<_ACEOF
15007 #define SIZEOF_CHAR $ac_cv_sizeof_char
15008 _ACEOF
15009
15010
15011
15012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
15013 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
15014 case "$ac_cv_sizeof_char" in
15015 1) acx_cv_type_int8_t=char ;;
15016 *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
15017 esac
15018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
15019 $as_echo "$acx_cv_type_int8_t" >&6; }
15020
15021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
15022 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
15023 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
15024 2:*) acx_cv_type_int16_t=int ;;
15025 *:2) acx_cv_type_int16_t=short ;;
15026 *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
15027 esac
15028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
15029 $as_echo "$acx_cv_type_int16_t" >&6; }
15030
15031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
15032 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
15033 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
15034 4:*) acx_cv_type_int32_t=int ;;
15035 *:4) acx_cv_type_int32_t=long ;;
15036 *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
15037 esac
15038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
15039 $as_echo "$acx_cv_type_int32_t" >&6; }
15040 fi
15041
15042 # These tests are here to make the output prettier
15043
15044 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
15045 case "$ac_cv_sizeof_long" in
15046 8) acx_cv_type_int64_t=long ;;
15047 esac
15048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
15049 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
15050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
15051 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
15052 fi
15053
15054 # Now we can use the above types
15055
15056 if test "$ac_cv_type_uintptr_t" != yes; then
15057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
15058 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
15059 case $ac_cv_sizeof_void_p in
15060 2) acx_cv_type_intptr_t=int16_t ;;
15061 4) acx_cv_type_intptr_t=int32_t ;;
15062 8) acx_cv_type_intptr_t=int64_t ;;
15063 *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
15064 esac
15065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
15066 $as_echo "$acx_cv_type_intptr_t" >&6; }
15067 fi
15068
15069 # ----------------- done all checks, emit header -------------
15070 ac_config_commands="$ac_config_commands gstdint.h"
15071
15072
15073
15074
15075 XPCFLAGS=""
15076 case "$host" in
15077 *-*-rtems*)
15078 # RTEMS supports Pthreads, but the library is not available at GCC build time.
15079 ;;
15080 nvptx*-*-*)
15081 # NVPTX does not support Pthreads, has its own code replacement.
15082 libgomp_use_pthreads=no
15083 # NVPTX is an accelerator-only target
15084 libgomp_offloaded_only=yes
15085 ;;
15086 *)
15087 # Check to see if -pthread or -lpthread is needed. Prefer the former.
15088 # In case the pthread.h system header is not found, this test will fail.
15089 CFLAGS="$CFLAGS -pthread"
15090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15091 /* end confdefs.h. */
15092 #include <pthread.h>
15093 void *g(void *d) { return NULL; }
15094 int
15095 main ()
15096 {
15097 pthread_t t; pthread_create(&t,NULL,g,NULL);
15098 ;
15099 return 0;
15100 }
15101 _ACEOF
15102 if ac_fn_c_try_link "$LINENO"; then :
15103 XPCFLAGS=" -Wc,-pthread"
15104 else
15105 CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
15106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15107 /* end confdefs.h. */
15108 #include <pthread.h>
15109 void *g(void *d) { return NULL; }
15110 int
15111 main ()
15112 {
15113 pthread_t t; pthread_create(&t,NULL,g,NULL);
15114 ;
15115 return 0;
15116 }
15117 _ACEOF
15118 if ac_fn_c_try_link "$LINENO"; then :
15119
15120 else
15121 as_fn_error "Pthreads are required to build libgomp" "$LINENO" 5
15122 fi
15123 rm -f core conftest.err conftest.$ac_objext \
15124 conftest$ac_exeext conftest.$ac_ext
15125 fi
15126 rm -f core conftest.err conftest.$ac_objext \
15127 conftest$ac_exeext conftest.$ac_ext
15128 esac
15129
15130 if test x$libgomp_use_pthreads != xno; then
15131
15132 $as_echo "#define LIBGOMP_USE_PTHREADS 1" >>confdefs.h
15133
15134 fi
15135
15136 if test x$libgomp_offloaded_only = xyes; then
15137
15138 $as_echo "#define LIBGOMP_OFFLOADED_ONLY 1" >>confdefs.h
15139
15140 fi
15141
15142 # Plugins for offload execution, configure.ac fragment. -*- mode: autoconf -*-
15143 #
15144 # Copyright (C) 2014-2018 Free Software Foundation, Inc.
15145 #
15146 # Contributed by Mentor Embedded.
15147 #
15148 # This file is part of the GNU Offloading and Multi Processing Library
15149 # (libgomp).
15150 #
15151 # Libgomp is free software; you can redistribute it and/or modify it
15152 # under the terms of the GNU General Public License as published by
15153 # the Free Software Foundation; either version 3, or (at your option)
15154 # any later version.
15155 #
15156 # Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY
15157 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15158 # FOR A PARTICULAR PURPOSE. See the GNU General Public License for
15159 # more details.
15160 #
15161 # Under Section 7 of GPL version 3, you are granted additional
15162 # permissions described in the GCC Runtime Library Exception, version
15163 # 3.1, as published by the Free Software Foundation.
15164 #
15165 # You should have received a copy of the GNU General Public License and
15166 # a copy of the GCC Runtime Library Exception along with this program;
15167 # see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
15168 # <http://www.gnu.org/licenses/>.
15169
15170 offload_targets=
15171
15172 plugin_support=yes
15173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
15174 $as_echo_n "checking for dlsym in -ldl... " >&6; }
15175 if test "${ac_cv_lib_dl_dlsym+set}" = set; then :
15176 $as_echo_n "(cached) " >&6
15177 else
15178 ac_check_lib_save_LIBS=$LIBS
15179 LIBS="-ldl $LIBS"
15180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15181 /* end confdefs.h. */
15182
15183 /* Override any GCC internal prototype to avoid an error.
15184 Use char because int might match the return type of a GCC
15185 builtin and then its argument prototype would still apply. */
15186 #ifdef __cplusplus
15187 extern "C"
15188 #endif
15189 char dlsym ();
15190 int
15191 main ()
15192 {
15193 return dlsym ();
15194 ;
15195 return 0;
15196 }
15197 _ACEOF
15198 if ac_fn_c_try_link "$LINENO"; then :
15199 ac_cv_lib_dl_dlsym=yes
15200 else
15201 ac_cv_lib_dl_dlsym=no
15202 fi
15203 rm -f core conftest.err conftest.$ac_objext \
15204 conftest$ac_exeext conftest.$ac_ext
15205 LIBS=$ac_check_lib_save_LIBS
15206 fi
15207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
15208 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
15209 if test "x$ac_cv_lib_dl_dlsym" = x""yes; then :
15210 cat >>confdefs.h <<_ACEOF
15211 #define HAVE_LIBDL 1
15212 _ACEOF
15213
15214 LIBS="-ldl $LIBS"
15215
15216 else
15217 plugin_support=no
15218 fi
15219
15220 if test x"$plugin_support" = xyes; then
15221
15222 $as_echo "#define PLUGIN_SUPPORT 1" >>confdefs.h
15223
15224 elif test "x${enable_offload_targets-no}" != xno; then
15225 as_fn_error "Can't support offloading without support for plugins" "$LINENO" 5
15226 fi
15227
15228
15229
15230 for ac_header in $ac_header_list
15231 do :
15232 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15233 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15234 "
15235 eval as_val=\$$as_ac_Header
15236 if test "x$as_val" = x""yes; then :
15237 cat >>confdefs.h <<_ACEOF
15238 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15239 _ACEOF
15240
15241 fi
15242
15243 done
15244
15245
15246
15247
15248
15249
15250
15251 for ac_func in $ac_func_list
15252 do :
15253 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15254 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15255 eval as_val=\$$as_ac_var
15256 if test "x$as_val" = x""yes; then :
15257 cat >>confdefs.h <<_ACEOF
15258 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15259 _ACEOF
15260
15261 fi
15262 done
15263
15264
15265
15266
15267
15268
15269
15270
15271
15272
15273
15274
15275
15276
15277
15278
15279 # Look for the CUDA driver package.
15280 CUDA_DRIVER_INCLUDE=
15281 CUDA_DRIVER_LIB=
15282
15283
15284 CUDA_DRIVER_CPPFLAGS=
15285 CUDA_DRIVER_LDFLAGS=
15286
15287 # Check whether --with-cuda-driver was given.
15288 if test "${with_cuda_driver+set}" = set; then :
15289 withval=$with_cuda_driver;
15290 fi
15291
15292
15293 # Check whether --with-cuda-driver-include was given.
15294 if test "${with_cuda_driver_include+set}" = set; then :
15295 withval=$with_cuda_driver_include;
15296 fi
15297
15298
15299 # Check whether --with-cuda-driver-lib was given.
15300 if test "${with_cuda_driver_lib+set}" = set; then :
15301 withval=$with_cuda_driver_lib;
15302 fi
15303
15304 case "x$with_cuda_driver" in
15305 x) ;;
15306 xno)
15307 CUDA_DRIVER_INCLUDE=no
15308 CUDA_DRIVER_LIB=no
15309 ;;
15310 *) CUDA_DRIVER_INCLUDE=$with_cuda_driver/include
15311 CUDA_DRIVER_LIB=$with_cuda_driver/lib
15312 ;;
15313 esac
15314 if test "x$with_cuda_driver_include" != x; then
15315 CUDA_DRIVER_INCLUDE=$with_cuda_driver_include
15316 fi
15317 if test "x$with_cuda_driver_lib" != x; then
15318 CUDA_DRIVER_LIB=$with_cuda_driver_lib
15319 fi
15320 if test "x$CUDA_DRIVER_INCLUDE" != x \
15321 && test "x$CUDA_DRIVER_INCLUDE" != xno; then
15322 CUDA_DRIVER_CPPFLAGS=-I$CUDA_DRIVER_INCLUDE
15323 fi
15324 if test "x$CUDA_DRIVER_LIB" != x \
15325 && test "x$CUDA_DRIVER_LIB" != xno; then
15326 CUDA_DRIVER_LDFLAGS=-L$CUDA_DRIVER_LIB
15327 fi
15328
15329 PLUGIN_NVPTX=0
15330 PLUGIN_NVPTX_CPPFLAGS=
15331 PLUGIN_NVPTX_LDFLAGS=
15332 PLUGIN_NVPTX_LIBS=
15333 PLUGIN_NVPTX_DYNAMIC=0
15334
15335
15336
15337
15338
15339 # Look for HSA run-time, its includes and libraries
15340
15341 HSA_RUNTIME_INCLUDE=
15342 HSA_RUNTIME_LIB=
15343
15344
15345 HSA_RUNTIME_CPPFLAGS=
15346 HSA_RUNTIME_LDFLAGS=
15347
15348
15349 # Check whether --with-hsa-runtime was given.
15350 if test "${with_hsa_runtime+set}" = set; then :
15351 withval=$with_hsa_runtime;
15352 fi
15353
15354
15355 # Check whether --with-hsa-runtime-include was given.
15356 if test "${with_hsa_runtime_include+set}" = set; then :
15357 withval=$with_hsa_runtime_include;
15358 fi
15359
15360
15361 # Check whether --with-hsa-runtime-lib was given.
15362 if test "${with_hsa_runtime_lib+set}" = set; then :
15363 withval=$with_hsa_runtime_lib;
15364 fi
15365
15366 if test "x$with_hsa_runtime" != x; then
15367 HSA_RUNTIME_INCLUDE=$with_hsa_runtime/include
15368 HSA_RUNTIME_LIB=$with_hsa_runtime/lib
15369 fi
15370 if test "x$with_hsa_runtime_include" != x; then
15371 HSA_RUNTIME_INCLUDE=$with_hsa_runtime_include
15372 fi
15373 if test "x$with_hsa_runtime_lib" != x; then
15374 HSA_RUNTIME_LIB=$with_hsa_runtime_lib
15375 fi
15376 if test "x$HSA_RUNTIME_INCLUDE" != x; then
15377 HSA_RUNTIME_CPPFLAGS=-I$HSA_RUNTIME_INCLUDE
15378 fi
15379 if test "x$HSA_RUNTIME_LIB" != x; then
15380 HSA_RUNTIME_LDFLAGS=-L$HSA_RUNTIME_LIB
15381 fi
15382
15383 PLUGIN_HSA=0
15384 PLUGIN_HSA_CPPFLAGS=
15385 PLUGIN_HSA_LDFLAGS=
15386 PLUGIN_HSA_LIBS=
15387
15388
15389
15390
15391
15392 # Get offload targets and path to install tree of offloading compiler.
15393 offload_additional_options=
15394 offload_additional_lib_paths=
15395
15396
15397 if test x"$enable_offload_targets" != x; then
15398 for tgt in `echo $enable_offload_targets | sed -e 's#,# #g'`; do
15399 tgt_dir=`echo $tgt | grep '=' | sed 's/.*=//'`
15400 tgt=`echo $tgt | sed 's/=.*//'`
15401 tgt_name=
15402 case $tgt in
15403 *-intelmic-* | *-intelmicemul-*)
15404 tgt_name=intelmic
15405 ;;
15406 nvptx*)
15407 tgt_name=nvptx
15408 PLUGIN_NVPTX=$tgt
15409 if test "x$CUDA_DRIVER_LIB" != xno \
15410 && test "x$CUDA_DRIVER_LIB" != xno; then
15411 PLUGIN_NVPTX_CPPFLAGS=$CUDA_DRIVER_CPPFLAGS
15412 PLUGIN_NVPTX_LDFLAGS=$CUDA_DRIVER_LDFLAGS
15413 PLUGIN_NVPTX_LIBS='-lcuda'
15414
15415 PLUGIN_NVPTX_save_CPPFLAGS=$CPPFLAGS
15416 CPPFLAGS="$PLUGIN_NVPTX_CPPFLAGS $CPPFLAGS"
15417 PLUGIN_NVPTX_save_LDFLAGS=$LDFLAGS
15418 LDFLAGS="$PLUGIN_NVPTX_LDFLAGS $LDFLAGS"
15419 PLUGIN_NVPTX_save_LIBS=$LIBS
15420 LIBS="$PLUGIN_NVPTX_LIBS $LIBS"
15421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15422 /* end confdefs.h. */
15423 #include "cuda.h"
15424 int
15425 main ()
15426 {
15427 CUresult r = cuCtxPushCurrent (NULL);
15428 ;
15429 return 0;
15430 }
15431 _ACEOF
15432 if ac_fn_c_try_link "$LINENO"; then :
15433 PLUGIN_NVPTX=1
15434 fi
15435 rm -f core conftest.err conftest.$ac_objext \
15436 conftest$ac_exeext conftest.$ac_ext
15437 CPPFLAGS=$PLUGIN_NVPTX_save_CPPFLAGS
15438 LDFLAGS=$PLUGIN_NVPTX_save_LDFLAGS
15439 LIBS=$PLUGIN_NVPTX_save_LIBS
15440 fi
15441 case $PLUGIN_NVPTX in
15442 nvptx*)
15443 if (test "x$CUDA_DRIVER_INCLUDE" = x \
15444 || test "x$CUDA_DRIVER_INCLUDE" = xno) \
15445 && (test "x$CUDA_DRIVER_LIB" = x \
15446 || test "x$CUDA_DRIVER_LIB" = xno); then
15447 PLUGIN_NVPTX=1
15448 PLUGIN_NVPTX_CPPFLAGS='-I$(srcdir)/plugin/cuda'
15449 PLUGIN_NVPTX_LIBS='-ldl'
15450 PLUGIN_NVPTX_DYNAMIC=1
15451 else
15452 PLUGIN_NVPTX=0
15453 as_fn_error "CUDA driver package required for nvptx support" "$LINENO" 5
15454 fi
15455 ;;
15456 esac
15457 ;;
15458 hsa*)
15459 case "${target}" in
15460 x86_64-*-*)
15461 case " ${CC} ${CFLAGS} " in
15462 *" -m32 "*)
15463 PLUGIN_HSA=0
15464 ;;
15465 *)
15466 tgt_name=hsa
15467 PLUGIN_HSA=$tgt
15468 PLUGIN_HSA_CPPFLAGS=$HSA_RUNTIME_CPPFLAGS
15469 PLUGIN_HSA_LDFLAGS="$HSA_RUNTIME_LDFLAGS"
15470 PLUGIN_HSA_LIBS="-ldl"
15471
15472 PLUGIN_HSA_save_CPPFLAGS=$CPPFLAGS
15473 CPPFLAGS="$PLUGIN_HSA_CPPFLAGS $CPPFLAGS"
15474 PLUGIN_HSA_save_LDFLAGS=$LDFLAGS
15475 LDFLAGS="$PLUGIN_HSA_LDFLAGS $LDFLAGS"
15476 PLUGIN_HSA_save_LIBS=$LIBS
15477 LIBS="$PLUGIN_HSA_LIBS $LIBS"
15478
15479 PLUGIN_HSA=1
15480 CPPFLAGS=$PLUGIN_HSA_save_CPPFLAGS
15481 LDFLAGS=$PLUGIN_HSA_save_LDFLAGS
15482 LIBS=$PLUGIN_HSA_save_LIBS
15483 case $PLUGIN_HSA in
15484 hsa*)
15485 HSA_PLUGIN=0
15486 as_fn_error "HSA run-time package required for HSA support" "$LINENO" 5
15487 ;;
15488 esac
15489 ;;
15490 esac
15491 ;;
15492 *-*-*)
15493 PLUGIN_HSA=0
15494 ;;
15495 esac
15496 ;;
15497 *)
15498 as_fn_error "unknown offload target specified" "$LINENO" 5
15499 ;;
15500 esac
15501 if test x"$tgt_name" = x; then
15502 # Don't configure libgomp for this offloading target if we don't build
15503 # the corresponding plugin.
15504 continue
15505 elif test x"$offload_targets" = x; then
15506 offload_targets=$tgt_name
15507 else
15508 offload_targets=$offload_targets,$tgt_name
15509 fi
15510 if test "$tgt_name" = hsa; then
15511 # Offloading compilation is all handled by the target compiler.
15512 :
15513 elif test x"$tgt_dir" != x; then
15514 offload_additional_options="$offload_additional_options -B$tgt_dir/libexec/gcc/\$(target_alias)/\$(gcc_version) -B$tgt_dir/bin"
15515 offload_additional_lib_paths="$offload_additional_lib_paths:$tgt_dir/lib64:$tgt_dir/lib:$tgt_dir/lib32"
15516 else
15517 offload_additional_options="$offload_additional_options -B\$(libexecdir)/gcc/\$(target_alias)/\$(gcc_version) -B\$(bindir)"
15518 offload_additional_lib_paths="$offload_additional_lib_paths:$toolexeclibdir"
15519 fi
15520 done
15521 fi
15522
15523 cat >>confdefs.h <<_ACEOF
15524 #define OFFLOAD_TARGETS "$offload_targets"
15525 _ACEOF
15526
15527 if test $PLUGIN_NVPTX = 1; then
15528 PLUGIN_NVPTX_TRUE=
15529 PLUGIN_NVPTX_FALSE='#'
15530 else
15531 PLUGIN_NVPTX_TRUE='#'
15532 PLUGIN_NVPTX_FALSE=
15533 fi
15534
15535
15536 cat >>confdefs.h <<_ACEOF
15537 #define PLUGIN_NVPTX $PLUGIN_NVPTX
15538 _ACEOF
15539
15540
15541 cat >>confdefs.h <<_ACEOF
15542 #define PLUGIN_NVPTX_DYNAMIC $PLUGIN_NVPTX_DYNAMIC
15543 _ACEOF
15544
15545 if test $PLUGIN_HSA = 1; then
15546 PLUGIN_HSA_TRUE=
15547 PLUGIN_HSA_FALSE='#'
15548 else
15549 PLUGIN_HSA_TRUE='#'
15550 PLUGIN_HSA_FALSE=
15551 fi
15552
15553
15554 cat >>confdefs.h <<_ACEOF
15555 #define PLUGIN_HSA $PLUGIN_HSA
15556 _ACEOF
15557
15558
15559 if test "$HSA_RUNTIME_LIB" != ""; then
15560 HSA_RUNTIME_LIB="$HSA_RUNTIME_LIB/"
15561 fi
15562
15563
15564 cat >>confdefs.h <<_ACEOF
15565 #define HSA_RUNTIME_LIB "$HSA_RUNTIME_LIB"
15566 _ACEOF
15567
15568
15569
15570 # Check for functions needed.
15571 for ac_func in getloadavg clock_gettime strtoull
15572 do :
15573 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15574 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15575 eval as_val=\$$as_ac_var
15576 if test "x$as_val" = x""yes; then :
15577 cat >>confdefs.h <<_ACEOF
15578 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15579 _ACEOF
15580
15581 fi
15582 done
15583
15584
15585 # Check for broken semaphore implementation on darwin.
15586 # sem_init returns: sem_init error: Function not implemented.
15587 case "$host" in
15588 *-darwin*)
15589
15590 $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
15591
15592 ;;
15593 esac
15594
15595 # RTEMS specific checks
15596 case "$host" in
15597 *-*-rtems*)
15598 ac_fn_c_check_type "$LINENO" "struct _Mutex_Control" "ac_cv_type_struct__Mutex_Control" "#include <sys/lock.h>
15599 "
15600 if test "x$ac_cv_type_struct__Mutex_Control" = x""yes; then :
15601
15602 cat >>confdefs.h <<_ACEOF
15603 #define HAVE_STRUCT__MUTEX_CONTROL 1
15604 _ACEOF
15605
15606
15607 fi
15608
15609 ;;
15610 esac
15611
15612 # Check whether --enable-linux-futex was given.
15613 if test "${enable_linux_futex+set}" = set; then :
15614 enableval=$enable_linux_futex;
15615 case "$enableval" in
15616 yes|no|default) ;;
15617 *) as_fn_error "Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;;
15618 esac
15619
15620 else
15621 enable_linux_futex=default
15622 fi
15623
15624
15625 case "$target" in
15626 *-linux*)
15627 case "$enable_linux_futex" in
15628 default)
15629 # If headers don't have gettid/futex syscalls definition, then
15630 # default to no, otherwise there will be compile time failures.
15631 # Otherwise, default to yes. If we don't detect we are
15632 # compiled/linked against NPTL and not cross-compiling, check
15633 # if programs are run by default against NPTL and if not, issue
15634 # a warning.
15635 enable_linux_futex=no
15636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15637 /* end confdefs.h. */
15638 #include <sys/syscall.h>
15639 int lk;
15640 int
15641 main ()
15642 {
15643 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15644 ;
15645 return 0;
15646 }
15647 _ACEOF
15648 if ac_fn_c_try_link "$LINENO"; then :
15649 save_LIBS="$LIBS"
15650 LIBS="-lpthread $LIBS"
15651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15652 /* end confdefs.h. */
15653 #ifndef _GNU_SOURCE
15654 #define _GNU_SOURCE 1
15655 #endif
15656 #include <pthread.h>
15657 pthread_t th; void *status;
15658 int
15659 main ()
15660 {
15661 pthread_tryjoin_np (th, &status);
15662 ;
15663 return 0;
15664 }
15665 _ACEOF
15666 if ac_fn_c_try_link "$LINENO"; then :
15667 enable_linux_futex=yes
15668 else
15669 if test x$cross_compiling = xno; then
15670 if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
15671 | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else
15672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls.
15673 If so, please configure with --disable-linux-futex" >&5
15674 $as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
15675 If so, please configure with --disable-linux-futex" >&2;}
15676 fi
15677 fi
15678 enable_linux_futex=yes
15679 fi
15680 rm -f core conftest.err conftest.$ac_objext \
15681 conftest$ac_exeext conftest.$ac_ext
15682 LIBS="$save_LIBS"
15683 fi
15684 rm -f core conftest.err conftest.$ac_objext \
15685 conftest$ac_exeext conftest.$ac_ext
15686 ;;
15687 yes)
15688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15689 /* end confdefs.h. */
15690 #include <sys/syscall.h>
15691 int lk;
15692 int
15693 main ()
15694 {
15695 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15696 ;
15697 return 0;
15698 }
15699 _ACEOF
15700 if ac_fn_c_try_link "$LINENO"; then :
15701
15702 else
15703 as_fn_error "SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5
15704 fi
15705 rm -f core conftest.err conftest.$ac_objext \
15706 conftest$ac_exeext conftest.$ac_ext
15707 ;;
15708 esac
15709 ;;
15710 *)
15711 enable_linux_futex=no
15712 ;;
15713 esac
15714 if test x$enable_linux_futex = xyes; then
15715 :
15716 fi
15717
15718
15719 # Check for pthread_{,attr_}[sg]etaffinity_np.
15720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15721 /* end confdefs.h. */
15722 #define _GNU_SOURCE
15723 #include <pthread.h>
15724 int
15725 main ()
15726 {
15727 cpu_set_t cpuset;
15728 pthread_attr_t attr;
15729 pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15730 if (CPU_ISSET (0, &cpuset))
15731 CPU_SET (1, &cpuset);
15732 else
15733 CPU_ZERO (&cpuset);
15734 pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15735 pthread_attr_init (&attr);
15736 pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15737 pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15738 ;
15739 return 0;
15740 }
15741 _ACEOF
15742 if ac_fn_c_try_link "$LINENO"; then :
15743
15744 $as_echo "#define HAVE_PTHREAD_AFFINITY_NP 1" >>confdefs.h
15745
15746 fi
15747 rm -f core conftest.err conftest.$ac_objext \
15748 conftest$ac_exeext conftest.$ac_ext
15749
15750 # At least for glibc, clock_gettime is in librt. But don't pull that
15751 # in if it still doesn't give us the function we want.
15752 if test $ac_cv_func_clock_gettime = no; then
15753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
15754 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
15755 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
15756 $as_echo_n "(cached) " >&6
15757 else
15758 ac_check_lib_save_LIBS=$LIBS
15759 LIBS="-lrt $LIBS"
15760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15761 /* end confdefs.h. */
15762
15763 /* Override any GCC internal prototype to avoid an error.
15764 Use char because int might match the return type of a GCC
15765 builtin and then its argument prototype would still apply. */
15766 #ifdef __cplusplus
15767 extern "C"
15768 #endif
15769 char clock_gettime ();
15770 int
15771 main ()
15772 {
15773 return clock_gettime ();
15774 ;
15775 return 0;
15776 }
15777 _ACEOF
15778 if ac_fn_c_try_link "$LINENO"; then :
15779 ac_cv_lib_rt_clock_gettime=yes
15780 else
15781 ac_cv_lib_rt_clock_gettime=no
15782 fi
15783 rm -f core conftest.err conftest.$ac_objext \
15784 conftest$ac_exeext conftest.$ac_ext
15785 LIBS=$ac_check_lib_save_LIBS
15786 fi
15787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
15788 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
15789 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
15790 LIBS="-lrt $LIBS"
15791
15792 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
15793
15794 fi
15795
15796 fi
15797
15798 # See if we support thread-local storage.
15799
15800
15801 # Check whether --enable-tls was given.
15802 if test "${enable_tls+set}" = set; then :
15803 enableval=$enable_tls;
15804 case "$enableval" in
15805 yes|no) ;;
15806 *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
15807 esac
15808
15809 else
15810 enable_tls=yes
15811 fi
15812
15813
15814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
15815 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
15816 if test "${gcc_cv_have_tls+set}" = set; then :
15817 $as_echo_n "(cached) " >&6
15818 else
15819
15820 if test "$cross_compiling" = yes; then :
15821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15822 /* end confdefs.h. */
15823 __thread int a; int b; int main() { return a = b; }
15824 _ACEOF
15825 if ac_fn_c_try_link "$LINENO"; then :
15826 chktls_save_LDFLAGS="$LDFLAGS"
15827 case $host in
15828 *-*-linux*)
15829 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
15830 ;;
15831 esac
15832 chktls_save_CFLAGS="$CFLAGS"
15833 CFLAGS="-fPIC $CFLAGS"
15834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15835 /* end confdefs.h. */
15836 int f() { return 0; }
15837 _ACEOF
15838 if ac_fn_c_try_link "$LINENO"; then :
15839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15840 /* end confdefs.h. */
15841 __thread int a; int b; int f() { return a = b; }
15842 _ACEOF
15843 if ac_fn_c_try_link "$LINENO"; then :
15844 gcc_cv_have_tls=yes
15845 else
15846 gcc_cv_have_tls=no
15847 fi
15848 rm -f core conftest.err conftest.$ac_objext \
15849 conftest$ac_exeext conftest.$ac_ext
15850 else
15851 gcc_cv_have_tls=yes
15852 fi
15853 rm -f core conftest.err conftest.$ac_objext \
15854 conftest$ac_exeext conftest.$ac_ext
15855 CFLAGS="$chktls_save_CFLAGS"
15856 LDFLAGS="$chktls_save_LDFLAGS"
15857 else
15858 gcc_cv_have_tls=no
15859 fi
15860 rm -f core conftest.err conftest.$ac_objext \
15861 conftest$ac_exeext conftest.$ac_ext
15862
15863
15864 else
15865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15866 /* end confdefs.h. */
15867 __thread int a; int b; int main() { return a = b; }
15868 _ACEOF
15869 if ac_fn_c_try_run "$LINENO"; then :
15870 chktls_save_LDFLAGS="$LDFLAGS"
15871 LDFLAGS="-static $LDFLAGS"
15872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15873 /* end confdefs.h. */
15874 int main() { return 0; }
15875 _ACEOF
15876 if ac_fn_c_try_link "$LINENO"; then :
15877 if test "$cross_compiling" = yes; then :
15878 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15879 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15880 as_fn_error "cannot run test program while cross compiling
15881 See \`config.log' for more details." "$LINENO" 5; }
15882 else
15883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15884 /* end confdefs.h. */
15885 __thread int a; int b; int main() { return a = b; }
15886 _ACEOF
15887 if ac_fn_c_try_run "$LINENO"; then :
15888 gcc_cv_have_tls=yes
15889 else
15890 gcc_cv_have_tls=no
15891 fi
15892 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15893 conftest.$ac_objext conftest.beam conftest.$ac_ext
15894 fi
15895
15896 else
15897 gcc_cv_have_tls=yes
15898 fi
15899 rm -f core conftest.err conftest.$ac_objext \
15900 conftest$ac_exeext conftest.$ac_ext
15901 LDFLAGS="$chktls_save_LDFLAGS"
15902 if test $gcc_cv_have_tls = yes; then
15903 chktls_save_CFLAGS="$CFLAGS"
15904 thread_CFLAGS=failed
15905 for flag in '' '-pthread' '-lpthread'; do
15906 CFLAGS="$flag $chktls_save_CFLAGS"
15907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15908 /* end confdefs.h. */
15909 #include <pthread.h>
15910 void *g(void *d) { return NULL; }
15911 int
15912 main ()
15913 {
15914 pthread_t t; pthread_create(&t,NULL,g,NULL);
15915 ;
15916 return 0;
15917 }
15918 _ACEOF
15919 if ac_fn_c_try_link "$LINENO"; then :
15920 thread_CFLAGS="$flag"
15921 fi
15922 rm -f core conftest.err conftest.$ac_objext \
15923 conftest$ac_exeext conftest.$ac_ext
15924 if test "X$thread_CFLAGS" != Xfailed; then
15925 break
15926 fi
15927 done
15928 CFLAGS="$chktls_save_CFLAGS"
15929 if test "X$thread_CFLAGS" != Xfailed; then
15930 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
15931 if test "$cross_compiling" = yes; then :
15932 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15933 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15934 as_fn_error "cannot run test program while cross compiling
15935 See \`config.log' for more details." "$LINENO" 5; }
15936 else
15937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15938 /* end confdefs.h. */
15939 #include <pthread.h>
15940 __thread int a;
15941 static int *volatile a_in_other_thread;
15942 static void *
15943 thread_func (void *arg)
15944 {
15945 a_in_other_thread = &a;
15946 return (void *)0;
15947 }
15948 int
15949 main ()
15950 {
15951 pthread_t thread;
15952 void *thread_retval;
15953 int *volatile a_in_main_thread;
15954 a_in_main_thread = &a;
15955 if (pthread_create (&thread, (pthread_attr_t *)0,
15956 thread_func, (void *)0))
15957 return 0;
15958 if (pthread_join (thread, &thread_retval))
15959 return 0;
15960 return (a_in_other_thread == a_in_main_thread);
15961 ;
15962 return 0;
15963 }
15964 _ACEOF
15965 if ac_fn_c_try_run "$LINENO"; then :
15966 gcc_cv_have_tls=yes
15967 else
15968 gcc_cv_have_tls=no
15969 fi
15970 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15971 conftest.$ac_objext conftest.beam conftest.$ac_ext
15972 fi
15973
15974 CFLAGS="$chktls_save_CFLAGS"
15975 fi
15976 fi
15977 else
15978 gcc_cv_have_tls=no
15979 fi
15980 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15981 conftest.$ac_objext conftest.beam conftest.$ac_ext
15982 fi
15983
15984 fi
15985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
15986 $as_echo "$gcc_cv_have_tls" >&6; }
15987 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
15988
15989 $as_echo "#define HAVE_TLS 1" >>confdefs.h
15990
15991 fi
15992
15993 # See if we have emulated thread-local storage.
15994
15995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the thread-local storage support is from emutls" >&5
15996 $as_echo_n "checking whether the thread-local storage support is from emutls... " >&6; }
15997 if test "${gcc_cv_use_emutls+set}" = set; then :
15998 $as_echo_n "(cached) " >&6
15999 else
16000
16001 gcc_cv_use_emutls=no
16002 echo '__thread int a; int b; int main() { return a = b; }' > conftest.c
16003 if { ac_try='${CC-cc} -Werror -S -o conftest.s conftest.c 1>&5'
16004 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16005 (eval $ac_try) 2>&5
16006 ac_status=$?
16007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16008 test $ac_status = 0; }; }; then
16009 if grep __emutls_get_address conftest.s > /dev/null; then
16010 gcc_cv_use_emutls=yes
16011 fi
16012 fi
16013 rm -f conftest.*
16014
16015 fi
16016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_use_emutls" >&5
16017 $as_echo "$gcc_cv_use_emutls" >&6; }
16018 if test "$gcc_cv_use_emutls" = "yes" ; then
16019
16020 $as_echo "#define USE_EMUTLS 1" >>confdefs.h
16021
16022 fi
16023
16024 # See what sort of export controls are available.
16025
16026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
16027 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
16028 if test "${libgomp_cv_have_attribute_visibility+set}" = set; then :
16029 $as_echo_n "(cached) " >&6
16030 else
16031
16032 save_CFLAGS="$CFLAGS"
16033 CFLAGS="$CFLAGS -Werror"
16034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16035 /* end confdefs.h. */
16036 void __attribute__((visibility("hidden"))) foo(void) { }
16037 int
16038 main ()
16039 {
16040
16041 ;
16042 return 0;
16043 }
16044 _ACEOF
16045 if ac_fn_c_try_compile "$LINENO"; then :
16046 libgomp_cv_have_attribute_visibility=yes
16047 else
16048 libgomp_cv_have_attribute_visibility=no
16049 fi
16050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16051 CFLAGS="$save_CFLAGS"
16052 fi
16053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_visibility" >&5
16054 $as_echo "$libgomp_cv_have_attribute_visibility" >&6; }
16055 if test $libgomp_cv_have_attribute_visibility = yes; then
16056
16057 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
16058
16059 fi
16060
16061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
16062 $as_echo_n "checking whether the target supports dllexport... " >&6; }
16063 if test "${libgomp_cv_have_attribute_dllexport+set}" = set; then :
16064 $as_echo_n "(cached) " >&6
16065 else
16066
16067 save_CFLAGS="$CFLAGS"
16068 CFLAGS="$CFLAGS -Werror"
16069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16070 /* end confdefs.h. */
16071 void __attribute__((dllexport)) foo(void) { }
16072 int
16073 main ()
16074 {
16075
16076 ;
16077 return 0;
16078 }
16079 _ACEOF
16080 if ac_fn_c_try_compile "$LINENO"; then :
16081 libgomp_cv_have_attribute_dllexport=yes
16082 else
16083 libgomp_cv_have_attribute_dllexport=no
16084 fi
16085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16086 CFLAGS="$save_CFLAGS"
16087 fi
16088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_dllexport" >&5
16089 $as_echo "$libgomp_cv_have_attribute_dllexport" >&6; }
16090 if test $libgomp_cv_have_attribute_dllexport = yes; then
16091
16092 $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
16093
16094 fi
16095
16096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
16097 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
16098 if test "${libgomp_cv_have_attribute_alias+set}" = set; then :
16099 $as_echo_n "(cached) " >&6
16100 else
16101
16102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16103 /* end confdefs.h. */
16104
16105 void foo(void) { }
16106 extern void bar(void) __attribute__((alias("foo")));
16107 int
16108 main ()
16109 {
16110 bar();
16111 ;
16112 return 0;
16113 }
16114 _ACEOF
16115 if ac_fn_c_try_link "$LINENO"; then :
16116 libgomp_cv_have_attribute_alias=yes
16117 else
16118 libgomp_cv_have_attribute_alias=no
16119 fi
16120 rm -f core conftest.err conftest.$ac_objext \
16121 conftest$ac_exeext conftest.$ac_ext
16122 fi
16123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_alias" >&5
16124 $as_echo "$libgomp_cv_have_attribute_alias" >&6; }
16125 if test $libgomp_cv_have_attribute_alias = yes; then
16126
16127 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
16128
16129 fi
16130
16131
16132 # Check whether --with-gnu-ld was given.
16133 if test "${with_gnu_ld+set}" = set; then :
16134 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16135 else
16136 with_gnu_ld=no
16137 fi
16138
16139 ac_prog=ld
16140 if test "$GCC" = yes; then
16141 # Check if gcc -print-prog-name=ld gives a path.
16142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16143 $as_echo_n "checking for ld used by $CC... " >&6; }
16144 case $host in
16145 *-*-mingw*)
16146 # gcc leaves a trailing carriage return which upsets mingw
16147 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16148 *)
16149 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16150 esac
16151 case $ac_prog in
16152 # Accept absolute paths.
16153 [\\/]* | ?:[\\/]*)
16154 re_direlt='/[^/][^/]*/\.\./'
16155 # Canonicalize the pathname of ld
16156 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16157 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16158 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16159 done
16160 test -z "$LD" && LD="$ac_prog"
16161 ;;
16162 "")
16163 # If it fails, then pretend we aren't using GCC.
16164 ac_prog=ld
16165 ;;
16166 *)
16167 # If it is relative, then search for the first ld in PATH.
16168 with_gnu_ld=unknown
16169 ;;
16170 esac
16171 elif test "$with_gnu_ld" = yes; then
16172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16173 $as_echo_n "checking for GNU ld... " >&6; }
16174 else
16175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16176 $as_echo_n "checking for non-GNU ld... " >&6; }
16177 fi
16178 if test "${lt_cv_path_LD+set}" = set; then :
16179 $as_echo_n "(cached) " >&6
16180 else
16181 if test -z "$LD"; then
16182 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16183 for ac_dir in $PATH; do
16184 IFS="$lt_save_ifs"
16185 test -z "$ac_dir" && ac_dir=.
16186 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16187 lt_cv_path_LD="$ac_dir/$ac_prog"
16188 # Check to see if the program is GNU ld. I'd rather use --version,
16189 # but apparently some variants of GNU ld only accept -v.
16190 # Break only if it was the GNU/non-GNU ld that we prefer.
16191 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16192 *GNU* | *'with BFD'*)
16193 test "$with_gnu_ld" != no && break
16194 ;;
16195 *)
16196 test "$with_gnu_ld" != yes && break
16197 ;;
16198 esac
16199 fi
16200 done
16201 IFS="$lt_save_ifs"
16202 else
16203 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16204 fi
16205 fi
16206
16207 LD="$lt_cv_path_LD"
16208 if test -n "$LD"; then
16209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16210 $as_echo "$LD" >&6; }
16211 else
16212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16213 $as_echo "no" >&6; }
16214 fi
16215 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
16216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16217 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16218 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
16219 $as_echo_n "(cached) " >&6
16220 else
16221 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16222 case `$LD -v 2>&1 </dev/null` in
16223 *GNU* | *'with BFD'*)
16224 lt_cv_prog_gnu_ld=yes
16225 ;;
16226 *)
16227 lt_cv_prog_gnu_ld=no
16228 ;;
16229 esac
16230 fi
16231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16232 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
16233 with_gnu_ld=$lt_cv_prog_gnu_ld
16234
16235
16236
16237
16238
16239
16240
16241 # If we're not using GNU ld, then there's no point in even trying these
16242 # tests. Check for that first. We should have already tested for gld
16243 # by now (in libtool), but require it now just to be safe...
16244 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
16245 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
16246
16247
16248
16249 # The name set by libtool depends on the version of libtool. Shame on us
16250 # for depending on an impl detail, but c'est la vie. Older versions used
16251 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
16252 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
16253 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
16254 # set (hence we're using an older libtool), then set it.
16255 if test x${with_gnu_ld+set} != xset; then
16256 if test x${ac_cv_prog_gnu_ld+set} != xset; then
16257 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
16258 with_gnu_ld=no
16259 else
16260 with_gnu_ld=$ac_cv_prog_gnu_ld
16261 fi
16262 fi
16263
16264 # Start by getting the version number. I think the libtool test already
16265 # does some of this, but throws away the result.
16266 libgomp_ld_is_gold=no
16267 if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
16268 libgomp_ld_is_gold=yes
16269 fi
16270
16271 ldver=`$LD --version 2>/dev/null |
16272 sed -e 's/GNU gold /GNU ld /;s/GNU ld version /GNU ld /;s/GNU ld ([^)]*) /GNU ld /;s/GNU ld \([0-9.][0-9.]*\).*/\1/; q'`
16273
16274 libgomp_gnu_ld_version=`echo $ldver | \
16275 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
16276
16277 # Set --gc-sections.
16278 if test "$with_gnu_ld" = "notbroken"; then
16279 # GNU ld it is! Joy and bunny rabbits!
16280
16281 # All these tests are for C++; save the language and the compiler flags.
16282 # Need to do this so that g++ won't try to link in libstdc++
16283 ac_test_CFLAGS="${CFLAGS+set}"
16284 ac_save_CFLAGS="$CFLAGS"
16285 CFLAGS='-x c++ -Wl,--gc-sections'
16286
16287 # Check for -Wl,--gc-sections
16288 # XXX This test is broken at the moment, as symbols required for linking
16289 # are now in libsupc++ (not built yet). In addition, this test has
16290 # cored on solaris in the past. In addition, --gc-sections doesn't
16291 # really work at the moment (keeps on discarding used sections, first
16292 # .eh_frame and now some of the glibc sections for iconv).
16293 # Bzzzzt. Thanks for playing, maybe next time.
16294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
16295 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
16296 if test "$cross_compiling" = yes; then :
16297 ac_sectionLDflags=yes
16298 else
16299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16300 /* end confdefs.h. */
16301
16302 int main(void)
16303 {
16304 try { throw 1; }
16305 catch (...) { };
16306 return 0;
16307 }
16308
16309 _ACEOF
16310 if ac_fn_c_try_run "$LINENO"; then :
16311 ac_sectionLDflags=yes
16312 else
16313 ac_sectionLDflags=no
16314 fi
16315 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16316 conftest.$ac_objext conftest.beam conftest.$ac_ext
16317 fi
16318
16319 if test "$ac_test_CFLAGS" = set; then
16320 CFLAGS="$ac_save_CFLAGS"
16321 else
16322 # this is the suspicious part
16323 CFLAGS=''
16324 fi
16325 if test "$ac_sectionLDflags" = "yes"; then
16326 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
16327 fi
16328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
16329 $as_echo "$ac_sectionLDflags" >&6; }
16330 fi
16331
16332 # Set linker optimization flags.
16333 if test x"$with_gnu_ld" = x"yes"; then
16334 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
16335 fi
16336
16337
16338
16339
16340
16341
16342 # Check whether --enable-symvers was given.
16343 if test "${enable_symvers+set}" = set; then :
16344 enableval=$enable_symvers;
16345 case "$enableval" in
16346 yes|no|gnu*|sun) ;;
16347 *) as_fn_error "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
16348 esac
16349
16350 else
16351 enable_symvers=yes
16352 fi
16353
16354
16355
16356 # If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
16357 # don't know enough about $LD to do tricks...
16358
16359
16360 # Turn a 'yes' into a suitable default.
16361 if test x$enable_symvers = xyes ; then
16362 # FIXME The following test is too strict, in theory.
16363 if test $enable_shared = no || test "x$LD" = x; then
16364 enable_symvers=no
16365 else
16366 if test $with_gnu_ld = yes ; then
16367 enable_symvers=gnu
16368 else
16369 case ${target_os} in
16370 # Sun symbol versioning exists since Solaris 2.5.
16371 solaris2.[5-9]* | solaris2.1[0-9]*)
16372 enable_symvers=sun ;;
16373 *)
16374 enable_symvers=no ;;
16375 esac
16376 fi
16377 fi
16378 fi
16379
16380 # Check if 'sun' was requested on non-Solaris 2 platforms.
16381 if test x$enable_symvers = xsun ; then
16382 case ${target_os} in
16383 solaris2*)
16384 # All fine.
16385 ;;
16386 *)
16387 # Unlikely to work.
16388 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
16389 $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
16390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
16391 $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
16392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16393 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16394 enable_symvers=no
16395 ;;
16396 esac
16397 fi
16398
16399 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
16400 if test $enable_symvers != no; then
16401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
16402 $as_echo_n "checking for shared libgcc... " >&6; }
16403 ac_save_CFLAGS="$CFLAGS"
16404 CFLAGS=' -lgcc_s'
16405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16406 /* end confdefs.h. */
16407
16408 int
16409 main ()
16410 {
16411 return 0;
16412 ;
16413 return 0;
16414 }
16415 _ACEOF
16416 if ac_fn_c_try_link "$LINENO"; then :
16417 libgomp_shared_libgcc=yes
16418 else
16419 libgomp_shared_libgcc=no
16420 fi
16421 rm -f core conftest.err conftest.$ac_objext \
16422 conftest$ac_exeext conftest.$ac_ext
16423 CFLAGS="$ac_save_CFLAGS"
16424 if test $libgomp_shared_libgcc = no; then
16425 cat > conftest.c <<EOF
16426 int main (void) { return 0; }
16427 EOF
16428 libgomp_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
16429 -shared -shared-libgcc -o conftest.so \
16430 conftest.c -v 2>&1 >/dev/null \
16431 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
16432 rm -f conftest.c conftest.so
16433 if test x${libgomp_libgcc_s_suffix+set} = xset; then
16434 CFLAGS=" -lgcc_s$libgomp_libgcc_s_suffix"
16435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16436 /* end confdefs.h. */
16437
16438 int
16439 main ()
16440 {
16441 return 0;
16442 ;
16443 return 0;
16444 }
16445 _ACEOF
16446 if ac_fn_c_try_link "$LINENO"; then :
16447 libgomp_shared_libgcc=yes
16448 fi
16449 rm -f core conftest.err conftest.$ac_objext \
16450 conftest$ac_exeext conftest.$ac_ext
16451 CFLAGS="$ac_save_CFLAGS"
16452 fi
16453 fi
16454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_shared_libgcc" >&5
16455 $as_echo "$libgomp_shared_libgcc" >&6; }
16456 fi
16457
16458 # For GNU ld, we need at least this version. The format is described in
16459 # LIBGOMP_CHECK_LINKER_FEATURES above.
16460 libgomp_min_gnu_ld_version=21400
16461 # XXXXXXXXXXX libgomp_gnu_ld_version=21390
16462
16463 # Check to see if unspecified "yes" value can win, given results above.
16464 # Change "yes" into either "no" or a style name.
16465 if test $enable_symvers != no && test $libgomp_shared_libgcc = yes; then
16466 if test $with_gnu_ld = yes; then
16467 if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
16468 enable_symvers=gnu
16469 elif test $libgomp_ld_is_gold = yes ; then
16470 enable_symvers=gnu
16471 else
16472 # The right tools, the right setup, but too old. Fallbacks?
16473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
16474 $as_echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
16475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
16476 $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
16477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
16478 $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
16479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
16480 $as_echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
16481 if test $libgomp_gnu_ld_version -ge 21200 ; then
16482 # Globbing fix is present, proper block support is not.
16483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16484 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16485 enable_symvers=no
16486 else
16487 # 2.11 or older.
16488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16489 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16490 enable_symvers=no
16491 fi
16492 fi
16493 elif test $enable_symvers = sun; then
16494 : All interesting versions of Sun ld support sun style symbol versioning.
16495 else
16496 # just fail for now
16497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
16498 $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
16499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
16500 $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
16501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
16502 $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
16503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16504 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16505 enable_symvers=no
16506 fi
16507 fi
16508
16509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports .symver directive" >&5
16510 $as_echo_n "checking whether the target supports .symver directive... " >&6; }
16511 if test "${libgomp_cv_have_as_symver_directive+set}" = set; then :
16512 $as_echo_n "(cached) " >&6
16513 else
16514
16515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16516 /* end confdefs.h. */
16517 void foo (void); __asm (".symver foo, bar@SYMVER");
16518 int
16519 main ()
16520 {
16521
16522 ;
16523 return 0;
16524 }
16525 _ACEOF
16526 if ac_fn_c_try_compile "$LINENO"; then :
16527 libgomp_cv_have_as_symver_directive=yes
16528 else
16529 libgomp_cv_have_as_symver_directive=no
16530 fi
16531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16532 fi
16533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_as_symver_directive" >&5
16534 $as_echo "$libgomp_cv_have_as_symver_directive" >&6; }
16535 if test $libgomp_cv_have_as_symver_directive = yes; then
16536
16537 $as_echo "#define HAVE_AS_SYMVER_DIRECTIVE 1" >>confdefs.h
16538
16539 fi
16540
16541 if test $enable_symvers != no; then
16542 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE=
16543 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='#'
16544 else
16545 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#'
16546 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE=
16547 fi
16548
16549 if test $enable_symvers = gnu; then
16550 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE=
16551 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE='#'
16552 else
16553 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE='#'
16554 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE=
16555 fi
16556
16557 if test $enable_symvers = sun; then
16558 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE=
16559 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE='#'
16560 else
16561 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE='#'
16562 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE=
16563 fi
16564
16565 { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
16566 $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
16567
16568 if test $enable_symvers != no ; then
16569 case ${target_os} in
16570 # The Solaris 2 runtime linker doesn't support the GNU extension of
16571 # binding the same symbol to different versions
16572 solaris2*)
16573 ;;
16574 # Other platforms with GNU symbol versioning (GNU/Linux, more?) do.
16575 *)
16576
16577 $as_echo "#define HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT 1" >>confdefs.h
16578
16579 ;;
16580 esac
16581 fi
16582
16583
16584 if test $enable_symvers = gnu; then
16585
16586 $as_echo "#define LIBGOMP_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
16587
16588 fi
16589
16590 # Get target configury.
16591 . ${srcdir}/configure.tgt
16592 CFLAGS="$save_CFLAGS $XCFLAGS"
16593
16594 # Check for __sync_val_compare_and_swap, but only after the target has
16595 # had a chance to set XCFLAGS.
16596
16597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
16598 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
16599 if test "${libgomp_cv_have_sync_builtins+set}" = set; then :
16600 $as_echo_n "(cached) " >&6
16601 else
16602
16603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16604 /* end confdefs.h. */
16605
16606 int
16607 main ()
16608 {
16609 int foo; __sync_val_compare_and_swap(&foo, 0, 1);
16610 ;
16611 return 0;
16612 }
16613 _ACEOF
16614 if ac_fn_c_try_link "$LINENO"; then :
16615 libgomp_cv_have_sync_builtins=yes
16616 else
16617 libgomp_cv_have_sync_builtins=no
16618 fi
16619 rm -f core conftest.err conftest.$ac_objext \
16620 conftest$ac_exeext conftest.$ac_ext
16621 fi
16622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_sync_builtins" >&5
16623 $as_echo "$libgomp_cv_have_sync_builtins" >&6; }
16624 if test $libgomp_cv_have_sync_builtins = yes; then
16625
16626 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
16627
16628 fi
16629
16630 XCFLAGS="$XCFLAGS$XPCFLAGS"
16631
16632 # Add CET specific flags if CET is enabled
16633 # Check whether --enable-cet was given.
16634 if test "${enable_cet+set}" = set; then :
16635 enableval=$enable_cet;
16636 case "$enableval" in
16637 yes|no|auto) ;;
16638 *) as_fn_error "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
16639 esac
16640
16641 else
16642 enable_cet=no
16643 fi
16644
16645
16646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
16647 $as_echo_n "checking for CET support... " >&6; }
16648
16649 case "$host" in
16650 i[34567]86-*-linux* | x86_64-*-linux*)
16651 case "$enable_cet" in
16652 auto)
16653 # Check if target supports multi-byte NOPs
16654 # and if assembler supports CET insn.
16655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16656 /* end confdefs.h. */
16657
16658 int
16659 main ()
16660 {
16661
16662 #if !defined(__SSE2__)
16663 #error target does not support multi-byte NOPs
16664 #else
16665 asm ("setssbsy");
16666 #endif
16667
16668 ;
16669 return 0;
16670 }
16671 _ACEOF
16672 if ac_fn_c_try_compile "$LINENO"; then :
16673 enable_cet=yes
16674 else
16675 enable_cet=no
16676 fi
16677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16678 ;;
16679 yes)
16680 # Check if assembler supports CET.
16681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16682 /* end confdefs.h. */
16683
16684 int
16685 main ()
16686 {
16687 asm ("setssbsy");
16688 ;
16689 return 0;
16690 }
16691 _ACEOF
16692 if ac_fn_c_try_compile "$LINENO"; then :
16693
16694 else
16695 as_fn_error "assembler with CET support is required for --enable-cet" "$LINENO" 5
16696 fi
16697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16698 ;;
16699 esac
16700 ;;
16701 *)
16702 enable_cet=no
16703 ;;
16704 esac
16705 if test x$enable_cet = xyes; then
16706 CET_FLAGS="-fcf-protection -mshstk"
16707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16708 $as_echo "yes" >&6; }
16709 else
16710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16711 $as_echo "no" >&6; }
16712 fi
16713
16714 XCFLAGS="$XCFLAGS $CET_FLAGS"
16715 FCFLAGS="$FCFLAGS $CET_FLAGS"
16716
16717
16718
16719
16720
16721 # Cleanup and exit.
16722 CFLAGS="$save_CFLAGS"
16723 cat >confcache <<\_ACEOF
16724 # This file is a shell script that caches the results of configure
16725 # tests run on this system so they can be shared between configure
16726 # scripts and configure runs, see configure's option --config-cache.
16727 # It is not useful on other systems. If it contains results you don't
16728 # want to keep, you may remove or edit it.
16729 #
16730 # config.status only pays attention to the cache file if you give it
16731 # the --recheck option to rerun configure.
16732 #
16733 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16734 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16735 # following values.
16736
16737 _ACEOF
16738
16739 # The following way of writing the cache mishandles newlines in values,
16740 # but we know of no workaround that is simple, portable, and efficient.
16741 # So, we kill variables containing newlines.
16742 # Ultrix sh set writes to stderr and can't be redirected directly,
16743 # and sets the high bit in the cache file unless we assign to the vars.
16744 (
16745 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16746 eval ac_val=\$$ac_var
16747 case $ac_val in #(
16748 *${as_nl}*)
16749 case $ac_var in #(
16750 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16751 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16752 esac
16753 case $ac_var in #(
16754 _ | IFS | as_nl) ;; #(
16755 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16756 *) { eval $ac_var=; unset $ac_var;} ;;
16757 esac ;;
16758 esac
16759 done
16760
16761 (set) 2>&1 |
16762 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16763 *${as_nl}ac_space=\ *)
16764 # `set' does not quote correctly, so add quotes: double-quote
16765 # substitution turns \\\\ into \\, and sed turns \\ into \.
16766 sed -n \
16767 "s/'/'\\\\''/g;
16768 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16769 ;; #(
16770 *)
16771 # `set' quotes correctly as required by POSIX, so do not add quotes.
16772 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16773 ;;
16774 esac |
16775 sort
16776 ) |
16777 sed '
16778 /^ac_cv_env_/b end
16779 t clear
16780 :clear
16781 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16782 t end
16783 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16784 :end' >>confcache
16785 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16786 if test -w "$cache_file"; then
16787 test "x$cache_file" != "x/dev/null" &&
16788 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16789 $as_echo "$as_me: updating cache $cache_file" >&6;}
16790 cat confcache >$cache_file
16791 else
16792 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16793 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16794 fi
16795 fi
16796 rm -f confcache
16797
16798 if test ${multilib} = yes; then
16799 multilib_arg="--enable-multilib"
16800 else
16801 multilib_arg=
16802 fi
16803
16804 # Set up the set of libraries that we need to link against for libgomp.
16805 # Note that the GOMP_SELF_SPEC in gcc.c may force -pthread,
16806 # which will force linkage against -lpthread (or equivalent for the system).
16807 # That's not 100% ideal, but about the best we can do easily.
16808 if test $enable_shared = yes; then
16809 link_gomp="-lgomp %{static: $LIBS}"
16810 else
16811 link_gomp="-lgomp $LIBS"
16812 fi
16813
16814
16815 if test "$ac_cv_fc_compiler_gnu" = yes; then
16816 USE_FORTRAN_TRUE=
16817 USE_FORTRAN_FALSE='#'
16818 else
16819 USE_FORTRAN_TRUE='#'
16820 USE_FORTRAN_FALSE=
16821 fi
16822
16823
16824 # ??? 2006-01-24: Paulo committed to asking autoconf folk to document
16825 # and export AC_COMPUTE_INT. If that happens, then we'll need to remove
16826 # the underscore here and update the PREREQ. If it doesn't, then we'll
16827 # need to copy this macro to our acinclude.m4.
16828 save_CFLAGS="$CFLAGS"
16829 for i in $config_path; do
16830 if test -f $srcdir/config/$i/omp-lock.h; then
16831 CFLAGS="$CFLAGS -include confdefs.h -include $srcdir/config/$i/omp-lock.h"
16832 break
16833 fi
16834 done
16835
16836 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_t)" "OMP_LOCK_SIZE" ""; then :
16837
16838 else
16839 as_fn_error "unsupported system, cannot find sizeof (omp_lock_t)" "$LINENO" 5
16840 fi
16841
16842
16843 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_t)" "OMP_LOCK_ALIGN" ""; then :
16844
16845 fi
16846
16847
16848 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_t)" "OMP_NEST_LOCK_SIZE" ""; then :
16849
16850 fi
16851
16852
16853 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_t)" "OMP_NEST_LOCK_ALIGN" ""; then :
16854
16855 fi
16856
16857
16858 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_25_t)" "OMP_LOCK_25_SIZE" ""; then :
16859
16860 else
16861 as_fn_error "unsupported system, cannot find sizeof (omp_lock_25_t)" "$LINENO" 5
16862 fi
16863
16864
16865 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_25_t)" "OMP_LOCK_25_ALIGN" ""; then :
16866
16867 fi
16868
16869
16870 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_SIZE" ""; then :
16871
16872 fi
16873
16874
16875 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_ALIGN" ""; then :
16876
16877 fi
16878
16879
16880
16881 # If the lock fits in an integer, then arrange for Fortran to use that
16882 # integer. If it doesn't, then arrange for Fortran to use a pointer.
16883 # Except that we don't have a way at present to multi-lib the installed
16884 # Fortran modules, so we assume 8 bytes for pointers, regardless of the
16885 # actual target.
16886 OMP_LOCK_KIND=$OMP_LOCK_SIZE
16887 OMP_NEST_LOCK_KIND=$OMP_NEST_LOCK_SIZE
16888 if test $OMP_LOCK_SIZE -gt 8 || test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
16889 OMP_LOCK_KIND=8
16890 fi
16891 if test $OMP_NEST_LOCK_SIZE -gt 8 || test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
16892 OMP_NEST_LOCK_KIND=8
16893 fi
16894 OMP_LOCK_25_KIND=$OMP_LOCK_25_SIZE
16895 OMP_NEST_LOCK_25_KIND=$OMP_NEST_LOCK_25_SIZE
16896 if test $OMP_LOCK_25_SIZE -gt 8 || test $OMP_LOCK_25_ALIGN -gt $OMP_LOCK_25_SIZE; then
16897 OMP_LOCK_25_KIND=8
16898 fi
16899 if test $OMP_NEST_LOCK_25_SIZE -gt 8 || test $OMP_NEST_LOCK_25_ALIGN -gt $OMP_NEST_LOCK_25_SIZE; then
16900 OMP_NEST_LOCK_25_KIND=8
16901 fi
16902
16903
16904
16905
16906
16907
16908
16909
16910
16911
16912
16913
16914
16915 CFLAGS="$save_CFLAGS"
16916
16917 # Determine what GCC version number to use in filesystem paths.
16918
16919 get_gcc_base_ver="cat"
16920
16921 # Check whether --with-gcc-major-version-only was given.
16922 if test "${with_gcc_major_version_only+set}" = set; then :
16923 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
16924 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
16925 fi
16926
16927 fi
16928
16929
16930
16931
16932 ac_config_files="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
16933
16934 ac_config_files="$ac_config_files Makefile testsuite/Makefile libgomp.spec"
16935
16936 ac_config_files="$ac_config_files testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in"
16937
16938 cat >confcache <<\_ACEOF
16939 # This file is a shell script that caches the results of configure
16940 # tests run on this system so they can be shared between configure
16941 # scripts and configure runs, see configure's option --config-cache.
16942 # It is not useful on other systems. If it contains results you don't
16943 # want to keep, you may remove or edit it.
16944 #
16945 # config.status only pays attention to the cache file if you give it
16946 # the --recheck option to rerun configure.
16947 #
16948 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16949 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16950 # following values.
16951
16952 _ACEOF
16953
16954 # The following way of writing the cache mishandles newlines in values,
16955 # but we know of no workaround that is simple, portable, and efficient.
16956 # So, we kill variables containing newlines.
16957 # Ultrix sh set writes to stderr and can't be redirected directly,
16958 # and sets the high bit in the cache file unless we assign to the vars.
16959 (
16960 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16961 eval ac_val=\$$ac_var
16962 case $ac_val in #(
16963 *${as_nl}*)
16964 case $ac_var in #(
16965 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16966 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16967 esac
16968 case $ac_var in #(
16969 _ | IFS | as_nl) ;; #(
16970 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16971 *) { eval $ac_var=; unset $ac_var;} ;;
16972 esac ;;
16973 esac
16974 done
16975
16976 (set) 2>&1 |
16977 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16978 *${as_nl}ac_space=\ *)
16979 # `set' does not quote correctly, so add quotes: double-quote
16980 # substitution turns \\\\ into \\, and sed turns \\ into \.
16981 sed -n \
16982 "s/'/'\\\\''/g;
16983 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16984 ;; #(
16985 *)
16986 # `set' quotes correctly as required by POSIX, so do not add quotes.
16987 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16988 ;;
16989 esac |
16990 sort
16991 ) |
16992 sed '
16993 /^ac_cv_env_/b end
16994 t clear
16995 :clear
16996 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16997 t end
16998 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16999 :end' >>confcache
17000 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17001 if test -w "$cache_file"; then
17002 test "x$cache_file" != "x/dev/null" &&
17003 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17004 $as_echo "$as_me: updating cache $cache_file" >&6;}
17005 cat confcache >$cache_file
17006 else
17007 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17008 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17009 fi
17010 fi
17011 rm -f confcache
17012
17013 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17014 # Let make expand exec_prefix.
17015 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17016
17017 DEFS=-DHAVE_CONFIG_H
17018
17019 ac_libobjs=
17020 ac_ltlibobjs=
17021 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17022 # 1. Remove the extension, and $U if already installed.
17023 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17024 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17025 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17026 # will be set to the directory where LIBOBJS objects are built.
17027 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17028 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17029 done
17030 LIBOBJS=$ac_libobjs
17031
17032 LTLIBOBJS=$ac_ltlibobjs
17033
17034
17035 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
17036 as_fn_error "conditional \"GENINSRC\" was never defined.
17037 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17038 fi
17039 if test -n "$EXEEXT"; then
17040 am__EXEEXT_TRUE=
17041 am__EXEEXT_FALSE='#'
17042 else
17043 am__EXEEXT_TRUE='#'
17044 am__EXEEXT_FALSE=
17045 fi
17046
17047 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17048 as_fn_error "conditional \"AMDEP\" was never defined.
17049 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17050 fi
17051 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17052 as_fn_error "conditional \"am__fastdepCC\" was never defined.
17053 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17054 fi
17055 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
17056 as_fn_error "conditional \"BUILD_INFO\" was never defined.
17057 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17058 fi
17059 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17060 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
17061 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17062 fi
17063 if test -z "${PLUGIN_NVPTX_TRUE}" && test -z "${PLUGIN_NVPTX_FALSE}"; then
17064 as_fn_error "conditional \"PLUGIN_NVPTX\" was never defined.
17065 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17066 fi
17067 if test -z "${PLUGIN_HSA_TRUE}" && test -z "${PLUGIN_HSA_FALSE}"; then
17068 as_fn_error "conditional \"PLUGIN_HSA\" was never defined.
17069 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17070 fi
17071 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
17072 as_fn_error "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
17073 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17074 fi
17075 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
17076 as_fn_error "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
17077 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17078 fi
17079 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
17080 as_fn_error "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
17081 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17082 fi
17083 if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
17084 as_fn_error "conditional \"USE_FORTRAN\" was never defined.
17085 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17086 fi
17087
17088 : ${CONFIG_STATUS=./config.status}
17089 ac_write_fail=0
17090 ac_clean_files_save=$ac_clean_files
17091 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17092 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17093 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17094 as_write_fail=0
17095 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17096 #! $SHELL
17097 # Generated by $as_me.
17098 # Run this file to recreate the current configuration.
17099 # Compiler output produced by configure, useful for debugging
17100 # configure, is in config.log if it exists.
17101
17102 debug=false
17103 ac_cs_recheck=false
17104 ac_cs_silent=false
17105
17106 SHELL=\${CONFIG_SHELL-$SHELL}
17107 export SHELL
17108 _ASEOF
17109 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17110 ## -------------------- ##
17111 ## M4sh Initialization. ##
17112 ## -------------------- ##
17113
17114 # Be more Bourne compatible
17115 DUALCASE=1; export DUALCASE # for MKS sh
17116 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17117 emulate sh
17118 NULLCMD=:
17119 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17120 # is contrary to our usage. Disable this feature.
17121 alias -g '${1+"$@"}'='"$@"'
17122 setopt NO_GLOB_SUBST
17123 else
17124 case `(set -o) 2>/dev/null` in #(
17125 *posix*) :
17126 set -o posix ;; #(
17127 *) :
17128 ;;
17129 esac
17130 fi
17131
17132
17133 as_nl='
17134 '
17135 export as_nl
17136 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17137 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17138 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17139 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17140 # Prefer a ksh shell builtin over an external printf program on Solaris,
17141 # but without wasting forks for bash or zsh.
17142 if test -z "$BASH_VERSION$ZSH_VERSION" \
17143 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17144 as_echo='print -r --'
17145 as_echo_n='print -rn --'
17146 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17147 as_echo='printf %s\n'
17148 as_echo_n='printf %s'
17149 else
17150 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17151 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17152 as_echo_n='/usr/ucb/echo -n'
17153 else
17154 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17155 as_echo_n_body='eval
17156 arg=$1;
17157 case $arg in #(
17158 *"$as_nl"*)
17159 expr "X$arg" : "X\\(.*\\)$as_nl";
17160 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17161 esac;
17162 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17163 '
17164 export as_echo_n_body
17165 as_echo_n='sh -c $as_echo_n_body as_echo'
17166 fi
17167 export as_echo_body
17168 as_echo='sh -c $as_echo_body as_echo'
17169 fi
17170
17171 # The user is always right.
17172 if test "${PATH_SEPARATOR+set}" != set; then
17173 PATH_SEPARATOR=:
17174 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17175 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17176 PATH_SEPARATOR=';'
17177 }
17178 fi
17179
17180
17181 # IFS
17182 # We need space, tab and new line, in precisely that order. Quoting is
17183 # there to prevent editors from complaining about space-tab.
17184 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17185 # splitting by setting IFS to empty value.)
17186 IFS=" "" $as_nl"
17187
17188 # Find who we are. Look in the path if we contain no directory separator.
17189 case $0 in #((
17190 *[\\/]* ) as_myself=$0 ;;
17191 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17192 for as_dir in $PATH
17193 do
17194 IFS=$as_save_IFS
17195 test -z "$as_dir" && as_dir=.
17196 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17197 done
17198 IFS=$as_save_IFS
17199
17200 ;;
17201 esac
17202 # We did not find ourselves, most probably we were run as `sh COMMAND'
17203 # in which case we are not to be found in the path.
17204 if test "x$as_myself" = x; then
17205 as_myself=$0
17206 fi
17207 if test ! -f "$as_myself"; then
17208 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17209 exit 1
17210 fi
17211
17212 # Unset variables that we do not need and which cause bugs (e.g. in
17213 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17214 # suppresses any "Segmentation fault" message there. '((' could
17215 # trigger a bug in pdksh 5.2.14.
17216 for as_var in BASH_ENV ENV MAIL MAILPATH
17217 do eval test x\${$as_var+set} = xset \
17218 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17219 done
17220 PS1='$ '
17221 PS2='> '
17222 PS4='+ '
17223
17224 # NLS nuisances.
17225 LC_ALL=C
17226 export LC_ALL
17227 LANGUAGE=C
17228 export LANGUAGE
17229
17230 # CDPATH.
17231 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17232
17233
17234 # as_fn_error ERROR [LINENO LOG_FD]
17235 # ---------------------------------
17236 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17237 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17238 # script with status $?, using 1 if that was 0.
17239 as_fn_error ()
17240 {
17241 as_status=$?; test $as_status -eq 0 && as_status=1
17242 if test "$3"; then
17243 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17244 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
17245 fi
17246 $as_echo "$as_me: error: $1" >&2
17247 as_fn_exit $as_status
17248 } # as_fn_error
17249
17250
17251 # as_fn_set_status STATUS
17252 # -----------------------
17253 # Set $? to STATUS, without forking.
17254 as_fn_set_status ()
17255 {
17256 return $1
17257 } # as_fn_set_status
17258
17259 # as_fn_exit STATUS
17260 # -----------------
17261 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17262 as_fn_exit ()
17263 {
17264 set +e
17265 as_fn_set_status $1
17266 exit $1
17267 } # as_fn_exit
17268
17269 # as_fn_unset VAR
17270 # ---------------
17271 # Portably unset VAR.
17272 as_fn_unset ()
17273 {
17274 { eval $1=; unset $1;}
17275 }
17276 as_unset=as_fn_unset
17277 # as_fn_append VAR VALUE
17278 # ----------------------
17279 # Append the text in VALUE to the end of the definition contained in VAR. Take
17280 # advantage of any shell optimizations that allow amortized linear growth over
17281 # repeated appends, instead of the typical quadratic growth present in naive
17282 # implementations.
17283 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17284 eval 'as_fn_append ()
17285 {
17286 eval $1+=\$2
17287 }'
17288 else
17289 as_fn_append ()
17290 {
17291 eval $1=\$$1\$2
17292 }
17293 fi # as_fn_append
17294
17295 # as_fn_arith ARG...
17296 # ------------------
17297 # Perform arithmetic evaluation on the ARGs, and store the result in the
17298 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17299 # must be portable across $(()) and expr.
17300 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17301 eval 'as_fn_arith ()
17302 {
17303 as_val=$(( $* ))
17304 }'
17305 else
17306 as_fn_arith ()
17307 {
17308 as_val=`expr "$@" || test $? -eq 1`
17309 }
17310 fi # as_fn_arith
17311
17312
17313 if expr a : '\(a\)' >/dev/null 2>&1 &&
17314 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17315 as_expr=expr
17316 else
17317 as_expr=false
17318 fi
17319
17320 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17321 as_basename=basename
17322 else
17323 as_basename=false
17324 fi
17325
17326 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17327 as_dirname=dirname
17328 else
17329 as_dirname=false
17330 fi
17331
17332 as_me=`$as_basename -- "$0" ||
17333 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17334 X"$0" : 'X\(//\)$' \| \
17335 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17336 $as_echo X/"$0" |
17337 sed '/^.*\/\([^/][^/]*\)\/*$/{
17338 s//\1/
17339 q
17340 }
17341 /^X\/\(\/\/\)$/{
17342 s//\1/
17343 q
17344 }
17345 /^X\/\(\/\).*/{
17346 s//\1/
17347 q
17348 }
17349 s/.*/./; q'`
17350
17351 # Avoid depending upon Character Ranges.
17352 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17353 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17354 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17355 as_cr_digits='0123456789'
17356 as_cr_alnum=$as_cr_Letters$as_cr_digits
17357
17358 ECHO_C= ECHO_N= ECHO_T=
17359 case `echo -n x` in #(((((
17360 -n*)
17361 case `echo 'xy\c'` in
17362 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17363 xy) ECHO_C='\c';;
17364 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17365 ECHO_T=' ';;
17366 esac;;
17367 *)
17368 ECHO_N='-n';;
17369 esac
17370
17371 rm -f conf$$ conf$$.exe conf$$.file
17372 if test -d conf$$.dir; then
17373 rm -f conf$$.dir/conf$$.file
17374 else
17375 rm -f conf$$.dir
17376 mkdir conf$$.dir 2>/dev/null
17377 fi
17378 if (echo >conf$$.file) 2>/dev/null; then
17379 if ln -s conf$$.file conf$$ 2>/dev/null; then
17380 as_ln_s='ln -s'
17381 # ... but there are two gotchas:
17382 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17383 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17384 # In both cases, we have to default to `cp -p'.
17385 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17386 as_ln_s='cp -p'
17387 elif ln conf$$.file conf$$ 2>/dev/null; then
17388 as_ln_s=ln
17389 else
17390 as_ln_s='cp -p'
17391 fi
17392 else
17393 as_ln_s='cp -p'
17394 fi
17395 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17396 rmdir conf$$.dir 2>/dev/null
17397
17398
17399 # as_fn_mkdir_p
17400 # -------------
17401 # Create "$as_dir" as a directory, including parents if necessary.
17402 as_fn_mkdir_p ()
17403 {
17404
17405 case $as_dir in #(
17406 -*) as_dir=./$as_dir;;
17407 esac
17408 test -d "$as_dir" || eval $as_mkdir_p || {
17409 as_dirs=
17410 while :; do
17411 case $as_dir in #(
17412 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17413 *) as_qdir=$as_dir;;
17414 esac
17415 as_dirs="'$as_qdir' $as_dirs"
17416 as_dir=`$as_dirname -- "$as_dir" ||
17417 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17418 X"$as_dir" : 'X\(//\)[^/]' \| \
17419 X"$as_dir" : 'X\(//\)$' \| \
17420 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17421 $as_echo X"$as_dir" |
17422 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17423 s//\1/
17424 q
17425 }
17426 /^X\(\/\/\)[^/].*/{
17427 s//\1/
17428 q
17429 }
17430 /^X\(\/\/\)$/{
17431 s//\1/
17432 q
17433 }
17434 /^X\(\/\).*/{
17435 s//\1/
17436 q
17437 }
17438 s/.*/./; q'`
17439 test -d "$as_dir" && break
17440 done
17441 test -z "$as_dirs" || eval "mkdir $as_dirs"
17442 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
17443
17444
17445 } # as_fn_mkdir_p
17446 if mkdir -p . 2>/dev/null; then
17447 as_mkdir_p='mkdir -p "$as_dir"'
17448 else
17449 test -d ./-p && rmdir ./-p
17450 as_mkdir_p=false
17451 fi
17452
17453 if test -x / >/dev/null 2>&1; then
17454 as_test_x='test -x'
17455 else
17456 if ls -dL / >/dev/null 2>&1; then
17457 as_ls_L_option=L
17458 else
17459 as_ls_L_option=
17460 fi
17461 as_test_x='
17462 eval sh -c '\''
17463 if test -d "$1"; then
17464 test -d "$1/.";
17465 else
17466 case $1 in #(
17467 -*)set "./$1";;
17468 esac;
17469 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17470 ???[sx]*):;;*)false;;esac;fi
17471 '\'' sh
17472 '
17473 fi
17474 as_executable_p=$as_test_x
17475
17476 # Sed expression to map a string onto a valid CPP name.
17477 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17478
17479 # Sed expression to map a string onto a valid variable name.
17480 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17481
17482
17483 exec 6>&1
17484 ## ----------------------------------- ##
17485 ## Main body of $CONFIG_STATUS script. ##
17486 ## ----------------------------------- ##
17487 _ASEOF
17488 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17489
17490 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17491 # Save the log message, to keep $0 and so on meaningful, and to
17492 # report actual input values of CONFIG_FILES etc. instead of their
17493 # values after options handling.
17494 ac_log="
17495 This file was extended by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was
17496 generated by GNU Autoconf 2.64. Invocation command line was
17497
17498 CONFIG_FILES = $CONFIG_FILES
17499 CONFIG_HEADERS = $CONFIG_HEADERS
17500 CONFIG_LINKS = $CONFIG_LINKS
17501 CONFIG_COMMANDS = $CONFIG_COMMANDS
17502 $ $0 $@
17503
17504 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17505 "
17506
17507 _ACEOF
17508
17509 case $ac_config_files in *"
17510 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17511 esac
17512
17513 case $ac_config_headers in *"
17514 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17515 esac
17516
17517
17518 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17519 # Files that config.status was made for.
17520 config_files="$ac_config_files"
17521 config_headers="$ac_config_headers"
17522 config_commands="$ac_config_commands"
17523
17524 _ACEOF
17525
17526 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17527 ac_cs_usage="\
17528 \`$as_me' instantiates files and other configuration actions
17529 from templates according to the current configuration. Unless the files
17530 and actions are specified as TAGs, all are instantiated by default.
17531
17532 Usage: $0 [OPTION]... [TAG]...
17533
17534 -h, --help print this help, then exit
17535 -V, --version print version number and configuration settings, then exit
17536 -q, --quiet, --silent
17537 do not print progress messages
17538 -d, --debug don't remove temporary files
17539 --recheck update $as_me by reconfiguring in the same conditions
17540 --file=FILE[:TEMPLATE]
17541 instantiate the configuration file FILE
17542 --header=FILE[:TEMPLATE]
17543 instantiate the configuration header FILE
17544
17545 Configuration files:
17546 $config_files
17547
17548 Configuration headers:
17549 $config_headers
17550
17551 Configuration commands:
17552 $config_commands
17553
17554 Report bugs to the package provider.
17555 GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
17556 General help using GNU software: <http://www.gnu.org/gethelp/>."
17557
17558 _ACEOF
17559 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17560 ac_cs_version="\\
17561 GNU Offloading and Multi Processing Runtime Library config.status 1.0
17562 configured by $0, generated by GNU Autoconf 2.64,
17563 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17564
17565 Copyright (C) 2009 Free Software Foundation, Inc.
17566 This config.status script is free software; the Free Software Foundation
17567 gives unlimited permission to copy, distribute and modify it."
17568
17569 ac_pwd='$ac_pwd'
17570 srcdir='$srcdir'
17571 INSTALL='$INSTALL'
17572 MKDIR_P='$MKDIR_P'
17573 AWK='$AWK'
17574 test -n "\$AWK" || AWK=awk
17575 _ACEOF
17576
17577 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17578 # The default lists apply if the user does not specify any file.
17579 ac_need_defaults=:
17580 while test $# != 0
17581 do
17582 case $1 in
17583 --*=*)
17584 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17585 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17586 ac_shift=:
17587 ;;
17588 *)
17589 ac_option=$1
17590 ac_optarg=$2
17591 ac_shift=shift
17592 ;;
17593 esac
17594
17595 case $ac_option in
17596 # Handling of the options.
17597 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17598 ac_cs_recheck=: ;;
17599 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17600 $as_echo "$ac_cs_version"; exit ;;
17601 --debug | --debu | --deb | --de | --d | -d )
17602 debug=: ;;
17603 --file | --fil | --fi | --f )
17604 $ac_shift
17605 case $ac_optarg in
17606 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17607 esac
17608 as_fn_append CONFIG_FILES " '$ac_optarg'"
17609 ac_need_defaults=false;;
17610 --header | --heade | --head | --hea )
17611 $ac_shift
17612 case $ac_optarg in
17613 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17614 esac
17615 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17616 ac_need_defaults=false;;
17617 --he | --h)
17618 # Conflict between --help and --header
17619 as_fn_error "ambiguous option: \`$1'
17620 Try \`$0 --help' for more information.";;
17621 --help | --hel | -h )
17622 $as_echo "$ac_cs_usage"; exit ;;
17623 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17624 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17625 ac_cs_silent=: ;;
17626
17627 # This is an error.
17628 -*) as_fn_error "unrecognized option: \`$1'
17629 Try \`$0 --help' for more information." ;;
17630
17631 *) as_fn_append ac_config_targets " $1"
17632 ac_need_defaults=false ;;
17633
17634 esac
17635 shift
17636 done
17637
17638 ac_configure_extra_args=
17639
17640 if $ac_cs_silent; then
17641 exec 6>/dev/null
17642 ac_configure_extra_args="$ac_configure_extra_args --silent"
17643 fi
17644
17645 _ACEOF
17646 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17647 if \$ac_cs_recheck; then
17648 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17649 shift
17650 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17651 CONFIG_SHELL='$SHELL'
17652 export CONFIG_SHELL
17653 exec "\$@"
17654 fi
17655
17656 _ACEOF
17657 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17658 exec 5>>config.log
17659 {
17660 echo
17661 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17662 ## Running $as_me. ##
17663 _ASBOX
17664 $as_echo "$ac_log"
17665 } >&5
17666
17667 _ACEOF
17668 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17669 #
17670 # INIT-COMMANDS
17671 #
17672
17673 srcdir="$srcdir"
17674 host="$host"
17675 target="$target"
17676 with_multisubdir="$with_multisubdir"
17677 with_multisrctop="$with_multisrctop"
17678 with_target_subdir="$with_target_subdir"
17679 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17680 multi_basedir="$multi_basedir"
17681 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17682 CC="$CC"
17683 CXX="$CXX"
17684 GFORTRAN="$GFORTRAN"
17685 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17686
17687
17688 # The HP-UX ksh and POSIX shell print the target directory to stdout
17689 # if CDPATH is set.
17690 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17691
17692 sed_quote_subst='$sed_quote_subst'
17693 double_quote_subst='$double_quote_subst'
17694 delay_variable_subst='$delay_variable_subst'
17695 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17696 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17697 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17698 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17699 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17700 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17701 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17702 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17703 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17704 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17705 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17706 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17707 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17708 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17709 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17710 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17711 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17712 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17713 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17714 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17715 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17716 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17717 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17718 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17719 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17720 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17721 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17722 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17723 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17724 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17725 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17726 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17727 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17728 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17729 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17730 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17731 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17732 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17733 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17734 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17735 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17736 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17737 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17738 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17739 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17740 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17741 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17742 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17743 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
17744 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17745 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17746 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17747 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17748 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17749 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17750 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17751 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17752 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17753 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17754 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17755 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17756 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17757 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17758 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17759 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17760 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17761 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17762 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17763 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17764 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17765 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17766 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17767 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17768 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17769 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17770 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17771 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17772 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17773 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17774 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17775 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17776 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17777 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17778 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17779 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17780 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17781 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17782 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17783 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17784 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17785 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17786 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17787 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17788 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17789 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17790 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17791 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17792 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17793 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17794 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17795 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17796 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17797 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17798 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17799 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17800 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17801 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17802 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17803 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17804 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17805 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17806 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17807 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17808 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17809 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17810 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17811 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17812 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17813 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17814 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17815 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17816 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17817 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17818 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17819 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17820 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17821 LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
17822 reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
17823 reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
17824 old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17825 compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
17826 GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
17827 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
17828 lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
17829 lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
17830 lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
17831 lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
17832 archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
17833 enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
17834 export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17835 whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17836 compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
17837 old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
17838 old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
17839 archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17840 archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17841 module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
17842 module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17843 with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
17844 allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
17845 no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
17846 hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17847 hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
17848 hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
17849 hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
17850 hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
17851 hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
17852 hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
17853 hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
17854 inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
17855 link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
17856 fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
17857 always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
17858 export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
17859 exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
17860 include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
17861 prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
17862 file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
17863 hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
17864 compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
17865 predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
17866 postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
17867 predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
17868 postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
17869 compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
17870
17871 LTCC='$LTCC'
17872 LTCFLAGS='$LTCFLAGS'
17873 compiler='$compiler_DEFAULT'
17874
17875 # A function that is used when there is no print builtin or printf.
17876 func_fallback_echo ()
17877 {
17878 eval 'cat <<_LTECHO_EOF
17879 \$1
17880 _LTECHO_EOF'
17881 }
17882
17883 # Quote evaled strings.
17884 for var in SHELL \
17885 ECHO \
17886 SED \
17887 GREP \
17888 EGREP \
17889 FGREP \
17890 LD \
17891 NM \
17892 LN_S \
17893 lt_SP2NL \
17894 lt_NL2SP \
17895 reload_flag \
17896 OBJDUMP \
17897 deplibs_check_method \
17898 file_magic_cmd \
17899 AR \
17900 AR_FLAGS \
17901 STRIP \
17902 RANLIB \
17903 CC \
17904 CFLAGS \
17905 compiler \
17906 lt_cv_sys_global_symbol_pipe \
17907 lt_cv_sys_global_symbol_to_cdecl \
17908 lt_cv_sys_global_symbol_to_c_name_address \
17909 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17910 lt_prog_compiler_no_builtin_flag \
17911 lt_prog_compiler_wl \
17912 lt_prog_compiler_pic \
17913 lt_prog_compiler_static \
17914 lt_cv_prog_compiler_c_o \
17915 need_locks \
17916 DSYMUTIL \
17917 NMEDIT \
17918 LIPO \
17919 OTOOL \
17920 OTOOL64 \
17921 shrext_cmds \
17922 export_dynamic_flag_spec \
17923 whole_archive_flag_spec \
17924 compiler_needs_object \
17925 with_gnu_ld \
17926 allow_undefined_flag \
17927 no_undefined_flag \
17928 hardcode_libdir_flag_spec \
17929 hardcode_libdir_flag_spec_ld \
17930 hardcode_libdir_separator \
17931 fix_srcfile_path \
17932 exclude_expsyms \
17933 include_expsyms \
17934 file_list_spec \
17935 variables_saved_for_relink \
17936 libname_spec \
17937 library_names_spec \
17938 soname_spec \
17939 install_override_mode \
17940 finish_eval \
17941 old_striplib \
17942 striplib \
17943 compiler_lib_search_dirs \
17944 predep_objects \
17945 postdep_objects \
17946 predeps \
17947 postdeps \
17948 compiler_lib_search_path \
17949 LD_FC \
17950 reload_flag_FC \
17951 compiler_FC \
17952 lt_prog_compiler_no_builtin_flag_FC \
17953 lt_prog_compiler_wl_FC \
17954 lt_prog_compiler_pic_FC \
17955 lt_prog_compiler_static_FC \
17956 lt_cv_prog_compiler_c_o_FC \
17957 export_dynamic_flag_spec_FC \
17958 whole_archive_flag_spec_FC \
17959 compiler_needs_object_FC \
17960 with_gnu_ld_FC \
17961 allow_undefined_flag_FC \
17962 no_undefined_flag_FC \
17963 hardcode_libdir_flag_spec_FC \
17964 hardcode_libdir_flag_spec_ld_FC \
17965 hardcode_libdir_separator_FC \
17966 fix_srcfile_path_FC \
17967 exclude_expsyms_FC \
17968 include_expsyms_FC \
17969 file_list_spec_FC \
17970 compiler_lib_search_dirs_FC \
17971 predep_objects_FC \
17972 postdep_objects_FC \
17973 predeps_FC \
17974 postdeps_FC \
17975 compiler_lib_search_path_FC; do
17976 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17977 *[\\\\\\\`\\"\\\$]*)
17978 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17979 ;;
17980 *)
17981 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17982 ;;
17983 esac
17984 done
17985
17986 # Double-quote double-evaled strings.
17987 for var in reload_cmds \
17988 old_postinstall_cmds \
17989 old_postuninstall_cmds \
17990 old_archive_cmds \
17991 extract_expsyms_cmds \
17992 old_archive_from_new_cmds \
17993 old_archive_from_expsyms_cmds \
17994 archive_cmds \
17995 archive_expsym_cmds \
17996 module_cmds \
17997 module_expsym_cmds \
17998 export_symbols_cmds \
17999 prelink_cmds \
18000 postinstall_cmds \
18001 postuninstall_cmds \
18002 finish_cmds \
18003 sys_lib_search_path_spec \
18004 sys_lib_dlsearch_path_spec \
18005 reload_cmds_FC \
18006 old_archive_cmds_FC \
18007 old_archive_from_new_cmds_FC \
18008 old_archive_from_expsyms_cmds_FC \
18009 archive_cmds_FC \
18010 archive_expsym_cmds_FC \
18011 module_cmds_FC \
18012 module_expsym_cmds_FC \
18013 export_symbols_cmds_FC \
18014 prelink_cmds_FC; do
18015 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18016 *[\\\\\\\`\\"\\\$]*)
18017 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18018 ;;
18019 *)
18020 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18021 ;;
18022 esac
18023 done
18024
18025 ac_aux_dir='$ac_aux_dir'
18026 xsi_shell='$xsi_shell'
18027 lt_shell_append='$lt_shell_append'
18028
18029 # See if we are running on zsh, and set the options which allow our
18030 # commands through without removal of \ escapes INIT.
18031 if test -n "\${ZSH_VERSION+set}" ; then
18032 setopt NO_GLOB_SUBST
18033 fi
18034
18035
18036 PACKAGE='$PACKAGE'
18037 VERSION='$VERSION'
18038 TIMESTAMP='$TIMESTAMP'
18039 RM='$RM'
18040 ofile='$ofile'
18041
18042
18043
18044
18045
18046
18047 GCC="$GCC"
18048 CC="$CC"
18049 acx_cv_header_stdint="$acx_cv_header_stdint"
18050 acx_cv_type_int8_t="$acx_cv_type_int8_t"
18051 acx_cv_type_int16_t="$acx_cv_type_int16_t"
18052 acx_cv_type_int32_t="$acx_cv_type_int32_t"
18053 acx_cv_type_int64_t="$acx_cv_type_int64_t"
18054 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
18055 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
18056 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
18057 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
18058 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
18059 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
18060 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
18061 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
18062 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
18063
18064
18065 _ACEOF
18066
18067 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18068
18069 # Handling of arguments.
18070 for ac_config_target in $ac_config_targets
18071 do
18072 case $ac_config_target in
18073 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18074 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18075 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18076 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18077 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
18078 "omp.h") CONFIG_FILES="$CONFIG_FILES omp.h" ;;
18079 "omp_lib.h") CONFIG_FILES="$CONFIG_FILES omp_lib.h" ;;
18080 "omp_lib.f90") CONFIG_FILES="$CONFIG_FILES omp_lib.f90" ;;
18081 "libgomp_f.h") CONFIG_FILES="$CONFIG_FILES libgomp_f.h" ;;
18082 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18083 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
18084 "libgomp.spec") CONFIG_FILES="$CONFIG_FILES libgomp.spec" ;;
18085 "testsuite/libgomp-test-support.pt.exp") CONFIG_FILES="$CONFIG_FILES testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in" ;;
18086
18087 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18088 esac
18089 done
18090
18091
18092 # If the user did not use the arguments to specify the items to instantiate,
18093 # then the envvar interface is used. Set only those that are not.
18094 # We use the long form for the default assignment because of an extremely
18095 # bizarre bug on SunOS 4.1.3.
18096 if $ac_need_defaults; then
18097 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18098 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18099 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18100 fi
18101
18102 # Have a temporary directory for convenience. Make it in the build tree
18103 # simply because there is no reason against having it here, and in addition,
18104 # creating and moving files from /tmp can sometimes cause problems.
18105 # Hook for its removal unless debugging.
18106 # Note that there is a small window in which the directory will not be cleaned:
18107 # after its creation but before its name has been assigned to `$tmp'.
18108 $debug ||
18109 {
18110 tmp=
18111 trap 'exit_status=$?
18112 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18113 ' 0
18114 trap 'as_fn_exit 1' 1 2 13 15
18115 }
18116 # Create a (secure) tmp directory for tmp files.
18117
18118 {
18119 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18120 test -n "$tmp" && test -d "$tmp"
18121 } ||
18122 {
18123 tmp=./conf$$-$RANDOM
18124 (umask 077 && mkdir "$tmp")
18125 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
18126
18127 # Set up the scripts for CONFIG_FILES section.
18128 # No need to generate them if there are no CONFIG_FILES.
18129 # This happens for instance with `./config.status config.h'.
18130 if test -n "$CONFIG_FILES"; then
18131
18132
18133 ac_cr=`echo X | tr X '\015'`
18134 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18135 # But we know of no other shell where ac_cr would be empty at this
18136 # point, so we can use a bashism as a fallback.
18137 if test "x$ac_cr" = x; then
18138 eval ac_cr=\$\'\\r\'
18139 fi
18140 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18141 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18142 ac_cs_awk_cr='\r'
18143 else
18144 ac_cs_awk_cr=$ac_cr
18145 fi
18146
18147 echo 'BEGIN {' >"$tmp/subs1.awk" &&
18148 _ACEOF
18149
18150
18151 {
18152 echo "cat >conf$$subs.awk <<_ACEOF" &&
18153 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18154 echo "_ACEOF"
18155 } >conf$$subs.sh ||
18156 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18157 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18158 ac_delim='%!_!# '
18159 for ac_last_try in false false false false false :; do
18160 . ./conf$$subs.sh ||
18161 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18162
18163 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18164 if test $ac_delim_n = $ac_delim_num; then
18165 break
18166 elif $ac_last_try; then
18167 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18168 else
18169 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18170 fi
18171 done
18172 rm -f conf$$subs.sh
18173
18174 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18175 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18176 _ACEOF
18177 sed -n '
18178 h
18179 s/^/S["/; s/!.*/"]=/
18180 p
18181 g
18182 s/^[^!]*!//
18183 :repl
18184 t repl
18185 s/'"$ac_delim"'$//
18186 t delim
18187 :nl
18188 h
18189 s/\(.\{148\}\).*/\1/
18190 t more1
18191 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18192 p
18193 n
18194 b repl
18195 :more1
18196 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18197 p
18198 g
18199 s/.\{148\}//
18200 t nl
18201 :delim
18202 h
18203 s/\(.\{148\}\).*/\1/
18204 t more2
18205 s/["\\]/\\&/g; s/^/"/; s/$/"/
18206 p
18207 b
18208 :more2
18209 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18210 p
18211 g
18212 s/.\{148\}//
18213 t delim
18214 ' <conf$$subs.awk | sed '
18215 /^[^""]/{
18216 N
18217 s/\n//
18218 }
18219 ' >>$CONFIG_STATUS || ac_write_fail=1
18220 rm -f conf$$subs.awk
18221 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18222 _ACAWK
18223 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18224 for (key in S) S_is_set[key] = 1
18225 FS = "\a"
18226
18227 }
18228 {
18229 line = $ 0
18230 nfields = split(line, field, "@")
18231 substed = 0
18232 len = length(field[1])
18233 for (i = 2; i < nfields; i++) {
18234 key = field[i]
18235 keylen = length(key)
18236 if (S_is_set[key]) {
18237 value = S[key]
18238 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18239 len += length(value) + length(field[++i])
18240 substed = 1
18241 } else
18242 len += 1 + keylen
18243 }
18244
18245 print line
18246 }
18247
18248 _ACAWK
18249 _ACEOF
18250 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18251 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18252 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18253 else
18254 cat
18255 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18256 || as_fn_error "could not setup config files machinery" "$LINENO" 5
18257 _ACEOF
18258
18259 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18260 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18261 # trailing colons and then remove the whole line if VPATH becomes empty
18262 # (actually we leave an empty line to preserve line numbers).
18263 if test "x$srcdir" = x.; then
18264 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18265 s/:*\$(srcdir):*/:/
18266 s/:*\${srcdir}:*/:/
18267 s/:*@srcdir@:*/:/
18268 s/^\([^=]*=[ ]*\):*/\1/
18269 s/:*$//
18270 s/^[^=]*=[ ]*$//
18271 }'
18272 fi
18273
18274 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18275 fi # test -n "$CONFIG_FILES"
18276
18277 # Set up the scripts for CONFIG_HEADERS section.
18278 # No need to generate them if there are no CONFIG_HEADERS.
18279 # This happens for instance with `./config.status Makefile'.
18280 if test -n "$CONFIG_HEADERS"; then
18281 cat >"$tmp/defines.awk" <<\_ACAWK ||
18282 BEGIN {
18283 _ACEOF
18284
18285 # Transform confdefs.h into an awk script `defines.awk', embedded as
18286 # here-document in config.status, that substitutes the proper values into
18287 # config.h.in to produce config.h.
18288
18289 # Create a delimiter string that does not exist in confdefs.h, to ease
18290 # handling of long lines.
18291 ac_delim='%!_!# '
18292 for ac_last_try in false false :; do
18293 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18294 if test -z "$ac_t"; then
18295 break
18296 elif $ac_last_try; then
18297 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
18298 else
18299 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18300 fi
18301 done
18302
18303 # For the awk script, D is an array of macro values keyed by name,
18304 # likewise P contains macro parameters if any. Preserve backslash
18305 # newline sequences.
18306
18307 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18308 sed -n '
18309 s/.\{148\}/&'"$ac_delim"'/g
18310 t rset
18311 :rset
18312 s/^[ ]*#[ ]*define[ ][ ]*/ /
18313 t def
18314 d
18315 :def
18316 s/\\$//
18317 t bsnl
18318 s/["\\]/\\&/g
18319 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18320 D["\1"]=" \3"/p
18321 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18322 d
18323 :bsnl
18324 s/["\\]/\\&/g
18325 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18326 D["\1"]=" \3\\\\\\n"\\/p
18327 t cont
18328 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18329 t cont
18330 d
18331 :cont
18332 n
18333 s/.\{148\}/&'"$ac_delim"'/g
18334 t clear
18335 :clear
18336 s/\\$//
18337 t bsnlc
18338 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18339 d
18340 :bsnlc
18341 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18342 b cont
18343 ' <confdefs.h | sed '
18344 s/'"$ac_delim"'/"\\\
18345 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18346
18347 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18348 for (key in D) D_is_set[key] = 1
18349 FS = "\a"
18350 }
18351 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18352 line = \$ 0
18353 split(line, arg, " ")
18354 if (arg[1] == "#") {
18355 defundef = arg[2]
18356 mac1 = arg[3]
18357 } else {
18358 defundef = substr(arg[1], 2)
18359 mac1 = arg[2]
18360 }
18361 split(mac1, mac2, "(") #)
18362 macro = mac2[1]
18363 prefix = substr(line, 1, index(line, defundef) - 1)
18364 if (D_is_set[macro]) {
18365 # Preserve the white space surrounding the "#".
18366 print prefix "define", macro P[macro] D[macro]
18367 next
18368 } else {
18369 # Replace #undef with comments. This is necessary, for example,
18370 # in the case of _POSIX_SOURCE, which is predefined and required
18371 # on some systems where configure will not decide to define it.
18372 if (defundef == "undef") {
18373 print "/*", prefix defundef, macro, "*/"
18374 next
18375 }
18376 }
18377 }
18378 { print }
18379 _ACAWK
18380 _ACEOF
18381 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18382 as_fn_error "could not setup config headers machinery" "$LINENO" 5
18383 fi # test -n "$CONFIG_HEADERS"
18384
18385
18386 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18387 shift
18388 for ac_tag
18389 do
18390 case $ac_tag in
18391 :[FHLC]) ac_mode=$ac_tag; continue;;
18392 esac
18393 case $ac_mode$ac_tag in
18394 :[FHL]*:*);;
18395 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
18396 :[FH]-) ac_tag=-:-;;
18397 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18398 esac
18399 ac_save_IFS=$IFS
18400 IFS=:
18401 set x $ac_tag
18402 IFS=$ac_save_IFS
18403 shift
18404 ac_file=$1
18405 shift
18406
18407 case $ac_mode in
18408 :L) ac_source=$1;;
18409 :[FH])
18410 ac_file_inputs=
18411 for ac_f
18412 do
18413 case $ac_f in
18414 -) ac_f="$tmp/stdin";;
18415 *) # Look for the file first in the build tree, then in the source tree
18416 # (if the path is not absolute). The absolute path cannot be DOS-style,
18417 # because $ac_f cannot contain `:'.
18418 test -f "$ac_f" ||
18419 case $ac_f in
18420 [\\/$]*) false;;
18421 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18422 esac ||
18423 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18424 esac
18425 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18426 as_fn_append ac_file_inputs " '$ac_f'"
18427 done
18428
18429 # Let's still pretend it is `configure' which instantiates (i.e., don't
18430 # use $as_me), people would be surprised to read:
18431 # /* config.h. Generated by config.status. */
18432 configure_input='Generated from '`
18433 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18434 `' by configure.'
18435 if test x"$ac_file" != x-; then
18436 configure_input="$ac_file. $configure_input"
18437 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18438 $as_echo "$as_me: creating $ac_file" >&6;}
18439 fi
18440 # Neutralize special characters interpreted by sed in replacement strings.
18441 case $configure_input in #(
18442 *\&* | *\|* | *\\* )
18443 ac_sed_conf_input=`$as_echo "$configure_input" |
18444 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18445 *) ac_sed_conf_input=$configure_input;;
18446 esac
18447
18448 case $ac_tag in
18449 *:-:* | *:-) cat >"$tmp/stdin" \
18450 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
18451 esac
18452 ;;
18453 esac
18454
18455 ac_dir=`$as_dirname -- "$ac_file" ||
18456 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18457 X"$ac_file" : 'X\(//\)[^/]' \| \
18458 X"$ac_file" : 'X\(//\)$' \| \
18459 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18460 $as_echo X"$ac_file" |
18461 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18462 s//\1/
18463 q
18464 }
18465 /^X\(\/\/\)[^/].*/{
18466 s//\1/
18467 q
18468 }
18469 /^X\(\/\/\)$/{
18470 s//\1/
18471 q
18472 }
18473 /^X\(\/\).*/{
18474 s//\1/
18475 q
18476 }
18477 s/.*/./; q'`
18478 as_dir="$ac_dir"; as_fn_mkdir_p
18479 ac_builddir=.
18480
18481 case "$ac_dir" in
18482 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18483 *)
18484 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18485 # A ".." for each directory in $ac_dir_suffix.
18486 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18487 case $ac_top_builddir_sub in
18488 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18489 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18490 esac ;;
18491 esac
18492 ac_abs_top_builddir=$ac_pwd
18493 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18494 # for backward compatibility:
18495 ac_top_builddir=$ac_top_build_prefix
18496
18497 case $srcdir in
18498 .) # We are building in place.
18499 ac_srcdir=.
18500 ac_top_srcdir=$ac_top_builddir_sub
18501 ac_abs_top_srcdir=$ac_pwd ;;
18502 [\\/]* | ?:[\\/]* ) # Absolute name.
18503 ac_srcdir=$srcdir$ac_dir_suffix;
18504 ac_top_srcdir=$srcdir
18505 ac_abs_top_srcdir=$srcdir ;;
18506 *) # Relative name.
18507 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18508 ac_top_srcdir=$ac_top_build_prefix$srcdir
18509 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18510 esac
18511 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18512
18513
18514 case $ac_mode in
18515 :F)
18516 #
18517 # CONFIG_FILE
18518 #
18519
18520 case $INSTALL in
18521 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18522 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18523 esac
18524 ac_MKDIR_P=$MKDIR_P
18525 case $MKDIR_P in
18526 [\\/$]* | ?:[\\/]* ) ;;
18527 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18528 esac
18529 _ACEOF
18530
18531 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18532 # If the template does not know about datarootdir, expand it.
18533 # FIXME: This hack should be removed a few years after 2.60.
18534 ac_datarootdir_hack=; ac_datarootdir_seen=
18535 ac_sed_dataroot='
18536 /datarootdir/ {
18537 p
18538 q
18539 }
18540 /@datadir@/p
18541 /@docdir@/p
18542 /@infodir@/p
18543 /@localedir@/p
18544 /@mandir@/p'
18545 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18546 *datarootdir*) ac_datarootdir_seen=yes;;
18547 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18549 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18550 _ACEOF
18551 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18552 ac_datarootdir_hack='
18553 s&@datadir@&$datadir&g
18554 s&@docdir@&$docdir&g
18555 s&@infodir@&$infodir&g
18556 s&@localedir@&$localedir&g
18557 s&@mandir@&$mandir&g
18558 s&\\\${datarootdir}&$datarootdir&g' ;;
18559 esac
18560 _ACEOF
18561
18562 # Neutralize VPATH when `$srcdir' = `.'.
18563 # Shell code in configure.ac might set extrasub.
18564 # FIXME: do we really want to maintain this feature?
18565 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18566 ac_sed_extra="$ac_vpsub
18567 $extrasub
18568 _ACEOF
18569 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18570 :t
18571 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18572 s|@configure_input@|$ac_sed_conf_input|;t t
18573 s&@top_builddir@&$ac_top_builddir_sub&;t t
18574 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18575 s&@srcdir@&$ac_srcdir&;t t
18576 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18577 s&@top_srcdir@&$ac_top_srcdir&;t t
18578 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18579 s&@builddir@&$ac_builddir&;t t
18580 s&@abs_builddir@&$ac_abs_builddir&;t t
18581 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18582 s&@INSTALL@&$ac_INSTALL&;t t
18583 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18584 $ac_datarootdir_hack
18585 "
18586 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
18587 || as_fn_error "could not create $ac_file" "$LINENO" 5
18588
18589 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18590 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18591 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18593 which seems to be undefined. Please make sure it is defined." >&5
18594 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18595 which seems to be undefined. Please make sure it is defined." >&2;}
18596
18597 rm -f "$tmp/stdin"
18598 case $ac_file in
18599 -) cat "$tmp/out" && rm -f "$tmp/out";;
18600 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18601 esac \
18602 || as_fn_error "could not create $ac_file" "$LINENO" 5
18603 ;;
18604 :H)
18605 #
18606 # CONFIG_HEADER
18607 #
18608 if test x"$ac_file" != x-; then
18609 {
18610 $as_echo "/* $configure_input */" \
18611 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18612 } >"$tmp/config.h" \
18613 || as_fn_error "could not create $ac_file" "$LINENO" 5
18614 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18615 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18616 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18617 else
18618 rm -f "$ac_file"
18619 mv "$tmp/config.h" "$ac_file" \
18620 || as_fn_error "could not create $ac_file" "$LINENO" 5
18621 fi
18622 else
18623 $as_echo "/* $configure_input */" \
18624 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18625 || as_fn_error "could not create -" "$LINENO" 5
18626 fi
18627 # Compute "$ac_file"'s index in $config_headers.
18628 _am_arg="$ac_file"
18629 _am_stamp_count=1
18630 for _am_header in $config_headers :; do
18631 case $_am_header in
18632 $_am_arg | $_am_arg:* )
18633 break ;;
18634 * )
18635 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18636 esac
18637 done
18638 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18639 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18640 X"$_am_arg" : 'X\(//\)[^/]' \| \
18641 X"$_am_arg" : 'X\(//\)$' \| \
18642 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18643 $as_echo X"$_am_arg" |
18644 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18645 s//\1/
18646 q
18647 }
18648 /^X\(\/\/\)[^/].*/{
18649 s//\1/
18650 q
18651 }
18652 /^X\(\/\/\)$/{
18653 s//\1/
18654 q
18655 }
18656 /^X\(\/\).*/{
18657 s//\1/
18658 q
18659 }
18660 s/.*/./; q'`/stamp-h$_am_stamp_count
18661 ;;
18662
18663 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18664 $as_echo "$as_me: executing $ac_file commands" >&6;}
18665 ;;
18666 esac
18667
18668
18669 case $ac_file$ac_mode in
18670 "default-1":C)
18671 # Only add multilib support code if we just rebuilt the top-level
18672 # Makefile.
18673 case " $CONFIG_FILES " in
18674 *" Makefile "*)
18675 ac_file=Makefile . ${multi_basedir}/config-ml.in
18676 ;;
18677 esac ;;
18678 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18679 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18680 # are listed without --file. Let's play safe and only enable the eval
18681 # if we detect the quoting.
18682 case $CONFIG_FILES in
18683 *\'*) eval set x "$CONFIG_FILES" ;;
18684 *) set x $CONFIG_FILES ;;
18685 esac
18686 shift
18687 for mf
18688 do
18689 # Strip MF so we end up with the name of the file.
18690 mf=`echo "$mf" | sed -e 's/:.*$//'`
18691 # Check whether this is an Automake generated Makefile or not.
18692 # We used to match only the files named `Makefile.in', but
18693 # some people rename them; so instead we look at the file content.
18694 # Grep'ing the first line is not enough: some people post-process
18695 # each Makefile.in and add a new line on top of each file to say so.
18696 # Grep'ing the whole file is not good either: AIX grep has a line
18697 # limit of 2048, but all sed's we know have understand at least 4000.
18698 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18699 dirpart=`$as_dirname -- "$mf" ||
18700 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18701 X"$mf" : 'X\(//\)[^/]' \| \
18702 X"$mf" : 'X\(//\)$' \| \
18703 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18704 $as_echo X"$mf" |
18705 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18706 s//\1/
18707 q
18708 }
18709 /^X\(\/\/\)[^/].*/{
18710 s//\1/
18711 q
18712 }
18713 /^X\(\/\/\)$/{
18714 s//\1/
18715 q
18716 }
18717 /^X\(\/\).*/{
18718 s//\1/
18719 q
18720 }
18721 s/.*/./; q'`
18722 else
18723 continue
18724 fi
18725 # Extract the definition of DEPDIR, am__include, and am__quote
18726 # from the Makefile without running `make'.
18727 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18728 test -z "$DEPDIR" && continue
18729 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18730 test -z "am__include" && continue
18731 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18732 # When using ansi2knr, U may be empty or an underscore; expand it
18733 U=`sed -n 's/^U = //p' < "$mf"`
18734 # Find all dependency output files, they are included files with
18735 # $(DEPDIR) in their names. We invoke sed twice because it is the
18736 # simplest approach to changing $(DEPDIR) to its actual value in the
18737 # expansion.
18738 for file in `sed -n "
18739 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18740 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18741 # Make sure the directory exists.
18742 test -f "$dirpart/$file" && continue
18743 fdir=`$as_dirname -- "$file" ||
18744 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18745 X"$file" : 'X\(//\)[^/]' \| \
18746 X"$file" : 'X\(//\)$' \| \
18747 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18748 $as_echo X"$file" |
18749 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18750 s//\1/
18751 q
18752 }
18753 /^X\(\/\/\)[^/].*/{
18754 s//\1/
18755 q
18756 }
18757 /^X\(\/\/\)$/{
18758 s//\1/
18759 q
18760 }
18761 /^X\(\/\).*/{
18762 s//\1/
18763 q
18764 }
18765 s/.*/./; q'`
18766 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18767 # echo "creating $dirpart/$file"
18768 echo '# dummy' > "$dirpart/$file"
18769 done
18770 done
18771 }
18772 ;;
18773 "libtool":C)
18774
18775 # See if we are running on zsh, and set the options which allow our
18776 # commands through without removal of \ escapes.
18777 if test -n "${ZSH_VERSION+set}" ; then
18778 setopt NO_GLOB_SUBST
18779 fi
18780
18781 cfgfile="${ofile}T"
18782 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18783 $RM "$cfgfile"
18784
18785 cat <<_LT_EOF >> "$cfgfile"
18786 #! $SHELL
18787
18788 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18789 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18790 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18791 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18792 #
18793 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18794 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18795 # Written by Gordon Matzigkeit, 1996
18796 #
18797 # This file is part of GNU Libtool.
18798 #
18799 # GNU Libtool is free software; you can redistribute it and/or
18800 # modify it under the terms of the GNU General Public License as
18801 # published by the Free Software Foundation; either version 2 of
18802 # the License, or (at your option) any later version.
18803 #
18804 # As a special exception to the GNU General Public License,
18805 # if you distribute this file as part of a program or library that
18806 # is built using GNU Libtool, you may include this file under the
18807 # same distribution terms that you use for the rest of that program.
18808 #
18809 # GNU Libtool is distributed in the hope that it will be useful,
18810 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18811 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18812 # GNU General Public License for more details.
18813 #
18814 # You should have received a copy of the GNU General Public License
18815 # along with GNU Libtool; see the file COPYING. If not, a copy
18816 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18817 # obtained by writing to the Free Software Foundation, Inc.,
18818 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18819
18820
18821 # The names of the tagged configurations supported by this script.
18822 available_tags="FC "
18823
18824 # ### BEGIN LIBTOOL CONFIG
18825
18826 # Which release of libtool.m4 was used?
18827 macro_version=$macro_version
18828 macro_revision=$macro_revision
18829
18830 # Whether or not to build shared libraries.
18831 build_libtool_libs=$enable_shared
18832
18833 # Whether or not to build static libraries.
18834 build_old_libs=$enable_static
18835
18836 # What type of objects to build.
18837 pic_mode=$pic_mode
18838
18839 # Whether or not to optimize for fast installation.
18840 fast_install=$enable_fast_install
18841
18842 # Shell to use when invoking shell scripts.
18843 SHELL=$lt_SHELL
18844
18845 # An echo program that protects backslashes.
18846 ECHO=$lt_ECHO
18847
18848 # The host system.
18849 host_alias=$host_alias
18850 host=$host
18851 host_os=$host_os
18852
18853 # The build system.
18854 build_alias=$build_alias
18855 build=$build
18856 build_os=$build_os
18857
18858 # A sed program that does not truncate output.
18859 SED=$lt_SED
18860
18861 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18862 Xsed="\$SED -e 1s/^X//"
18863
18864 # A grep program that handles long lines.
18865 GREP=$lt_GREP
18866
18867 # An ERE matcher.
18868 EGREP=$lt_EGREP
18869
18870 # A literal string matcher.
18871 FGREP=$lt_FGREP
18872
18873 # A BSD- or MS-compatible name lister.
18874 NM=$lt_NM
18875
18876 # Whether we need soft or hard links.
18877 LN_S=$lt_LN_S
18878
18879 # What is the maximum length of a command?
18880 max_cmd_len=$max_cmd_len
18881
18882 # Object file suffix (normally "o").
18883 objext=$ac_objext
18884
18885 # Executable file suffix (normally "").
18886 exeext=$exeext
18887
18888 # whether the shell understands "unset".
18889 lt_unset=$lt_unset
18890
18891 # turn spaces into newlines.
18892 SP2NL=$lt_lt_SP2NL
18893
18894 # turn newlines into spaces.
18895 NL2SP=$lt_lt_NL2SP
18896
18897 # An object symbol dumper.
18898 OBJDUMP=$lt_OBJDUMP
18899
18900 # Method to check whether dependent libraries are shared objects.
18901 deplibs_check_method=$lt_deplibs_check_method
18902
18903 # Command to use when deplibs_check_method == "file_magic".
18904 file_magic_cmd=$lt_file_magic_cmd
18905
18906 # The archiver.
18907 AR=$lt_AR
18908 AR_FLAGS=$lt_AR_FLAGS
18909
18910 # A symbol stripping program.
18911 STRIP=$lt_STRIP
18912
18913 # Commands used to install an old-style archive.
18914 RANLIB=$lt_RANLIB
18915 old_postinstall_cmds=$lt_old_postinstall_cmds
18916 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18917
18918 # Whether to use a lock for old archive extraction.
18919 lock_old_archive_extraction=$lock_old_archive_extraction
18920
18921 # A C compiler.
18922 LTCC=$lt_CC
18923
18924 # LTCC compiler flags.
18925 LTCFLAGS=$lt_CFLAGS
18926
18927 # Take the output of nm and produce a listing of raw symbols and C names.
18928 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18929
18930 # Transform the output of nm in a proper C declaration.
18931 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18932
18933 # Transform the output of nm in a C name address pair.
18934 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18935
18936 # Transform the output of nm in a C name address pair when lib prefix is needed.
18937 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18938
18939 # The name of the directory that contains temporary libtool files.
18940 objdir=$objdir
18941
18942 # Used to examine libraries when file_magic_cmd begins with "file".
18943 MAGIC_CMD=$MAGIC_CMD
18944
18945 # Must we lock files when doing compilation?
18946 need_locks=$lt_need_locks
18947
18948 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18949 DSYMUTIL=$lt_DSYMUTIL
18950
18951 # Tool to change global to local symbols on Mac OS X.
18952 NMEDIT=$lt_NMEDIT
18953
18954 # Tool to manipulate fat objects and archives on Mac OS X.
18955 LIPO=$lt_LIPO
18956
18957 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18958 OTOOL=$lt_OTOOL
18959
18960 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18961 OTOOL64=$lt_OTOOL64
18962
18963 # Old archive suffix (normally "a").
18964 libext=$libext
18965
18966 # Shared library suffix (normally ".so").
18967 shrext_cmds=$lt_shrext_cmds
18968
18969 # The commands to extract the exported symbol list from a shared archive.
18970 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18971
18972 # Variables whose values should be saved in libtool wrapper scripts and
18973 # restored at link time.
18974 variables_saved_for_relink=$lt_variables_saved_for_relink
18975
18976 # Do we need the "lib" prefix for modules?
18977 need_lib_prefix=$need_lib_prefix
18978
18979 # Do we need a version for libraries?
18980 need_version=$need_version
18981
18982 # Library versioning type.
18983 version_type=$version_type
18984
18985 # Shared library runtime path variable.
18986 runpath_var=$runpath_var
18987
18988 # Shared library path variable.
18989 shlibpath_var=$shlibpath_var
18990
18991 # Is shlibpath searched before the hard-coded library search path?
18992 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18993
18994 # Format of library name prefix.
18995 libname_spec=$lt_libname_spec
18996
18997 # List of archive names. First name is the real one, the rest are links.
18998 # The last name is the one that the linker finds with -lNAME
18999 library_names_spec=$lt_library_names_spec
19000
19001 # The coded name of the library, if different from the real name.
19002 soname_spec=$lt_soname_spec
19003
19004 # Permission mode override for installation of shared libraries.
19005 install_override_mode=$lt_install_override_mode
19006
19007 # Command to use after installation of a shared archive.
19008 postinstall_cmds=$lt_postinstall_cmds
19009
19010 # Command to use after uninstallation of a shared archive.
19011 postuninstall_cmds=$lt_postuninstall_cmds
19012
19013 # Commands used to finish a libtool library installation in a directory.
19014 finish_cmds=$lt_finish_cmds
19015
19016 # As "finish_cmds", except a single script fragment to be evaled but
19017 # not shown.
19018 finish_eval=$lt_finish_eval
19019
19020 # Whether we should hardcode library paths into libraries.
19021 hardcode_into_libs=$hardcode_into_libs
19022
19023 # Compile-time system search path for libraries.
19024 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19025
19026 # Run-time system search path for libraries.
19027 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19028
19029 # Whether dlopen is supported.
19030 dlopen_support=$enable_dlopen
19031
19032 # Whether dlopen of programs is supported.
19033 dlopen_self=$enable_dlopen_self
19034
19035 # Whether dlopen of statically linked programs is supported.
19036 dlopen_self_static=$enable_dlopen_self_static
19037
19038 # Commands to strip libraries.
19039 old_striplib=$lt_old_striplib
19040 striplib=$lt_striplib
19041
19042
19043 # The linker used to build libraries.
19044 LD=$lt_LD
19045
19046 # How to create reloadable object files.
19047 reload_flag=$lt_reload_flag
19048 reload_cmds=$lt_reload_cmds
19049
19050 # Commands used to build an old-style archive.
19051 old_archive_cmds=$lt_old_archive_cmds
19052
19053 # A language specific compiler.
19054 CC=$lt_compiler
19055
19056 # Is the compiler the GNU compiler?
19057 with_gcc=$GCC
19058
19059 # Compiler flag to turn off builtin functions.
19060 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19061
19062 # How to pass a linker flag through the compiler.
19063 wl=$lt_lt_prog_compiler_wl
19064
19065 # Additional compiler flags for building library objects.
19066 pic_flag=$lt_lt_prog_compiler_pic
19067
19068 # Compiler flag to prevent dynamic linking.
19069 link_static_flag=$lt_lt_prog_compiler_static
19070
19071 # Does compiler simultaneously support -c and -o options?
19072 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19073
19074 # Whether or not to add -lc for building shared libraries.
19075 build_libtool_need_lc=$archive_cmds_need_lc
19076
19077 # Whether or not to disallow shared libs when runtime libs are static.
19078 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19079
19080 # Compiler flag to allow reflexive dlopens.
19081 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19082
19083 # Compiler flag to generate shared objects directly from archives.
19084 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19085
19086 # Whether the compiler copes with passing no objects directly.
19087 compiler_needs_object=$lt_compiler_needs_object
19088
19089 # Create an old-style archive from a shared archive.
19090 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19091
19092 # Create a temporary old-style archive to link instead of a shared archive.
19093 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19094
19095 # Commands used to build a shared archive.
19096 archive_cmds=$lt_archive_cmds
19097 archive_expsym_cmds=$lt_archive_expsym_cmds
19098
19099 # Commands used to build a loadable module if different from building
19100 # a shared archive.
19101 module_cmds=$lt_module_cmds
19102 module_expsym_cmds=$lt_module_expsym_cmds
19103
19104 # Whether we are building with GNU ld or not.
19105 with_gnu_ld=$lt_with_gnu_ld
19106
19107 # Flag that allows shared libraries with undefined symbols to be built.
19108 allow_undefined_flag=$lt_allow_undefined_flag
19109
19110 # Flag that enforces no undefined symbols.
19111 no_undefined_flag=$lt_no_undefined_flag
19112
19113 # Flag to hardcode \$libdir into a binary during linking.
19114 # This must work even if \$libdir does not exist
19115 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19116
19117 # If ld is used when linking, flag to hardcode \$libdir into a binary
19118 # during linking. This must work even if \$libdir does not exist.
19119 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19120
19121 # Whether we need a single "-rpath" flag with a separated argument.
19122 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19123
19124 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19125 # DIR into the resulting binary.
19126 hardcode_direct=$hardcode_direct
19127
19128 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19129 # DIR into the resulting binary and the resulting library dependency is
19130 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19131 # library is relocated.
19132 hardcode_direct_absolute=$hardcode_direct_absolute
19133
19134 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19135 # into the resulting binary.
19136 hardcode_minus_L=$hardcode_minus_L
19137
19138 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19139 # into the resulting binary.
19140 hardcode_shlibpath_var=$hardcode_shlibpath_var
19141
19142 # Set to "yes" if building a shared library automatically hardcodes DIR
19143 # into the library and all subsequent libraries and executables linked
19144 # against it.
19145 hardcode_automatic=$hardcode_automatic
19146
19147 # Set to yes if linker adds runtime paths of dependent libraries
19148 # to runtime path list.
19149 inherit_rpath=$inherit_rpath
19150
19151 # Whether libtool must link a program against all its dependency libraries.
19152 link_all_deplibs=$link_all_deplibs
19153
19154 # Fix the shell variable \$srcfile for the compiler.
19155 fix_srcfile_path=$lt_fix_srcfile_path
19156
19157 # Set to "yes" if exported symbols are required.
19158 always_export_symbols=$always_export_symbols
19159
19160 # The commands to list exported symbols.
19161 export_symbols_cmds=$lt_export_symbols_cmds
19162
19163 # Symbols that should not be listed in the preloaded symbols.
19164 exclude_expsyms=$lt_exclude_expsyms
19165
19166 # Symbols that must always be exported.
19167 include_expsyms=$lt_include_expsyms
19168
19169 # Commands necessary for linking programs (against libraries) with templates.
19170 prelink_cmds=$lt_prelink_cmds
19171
19172 # Specify filename containing input files.
19173 file_list_spec=$lt_file_list_spec
19174
19175 # How to hardcode a shared library path into an executable.
19176 hardcode_action=$hardcode_action
19177
19178 # The directories searched by this compiler when creating a shared library.
19179 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19180
19181 # Dependencies to place before and after the objects being linked to
19182 # create a shared library.
19183 predep_objects=$lt_predep_objects
19184 postdep_objects=$lt_postdep_objects
19185 predeps=$lt_predeps
19186 postdeps=$lt_postdeps
19187
19188 # The library search path used internally by the compiler when linking
19189 # a shared library.
19190 compiler_lib_search_path=$lt_compiler_lib_search_path
19191
19192 # ### END LIBTOOL CONFIG
19193
19194 _LT_EOF
19195
19196 case $host_os in
19197 aix3*)
19198 cat <<\_LT_EOF >> "$cfgfile"
19199 # AIX sometimes has problems with the GCC collect2 program. For some
19200 # reason, if we set the COLLECT_NAMES environment variable, the problems
19201 # vanish in a puff of smoke.
19202 if test "X${COLLECT_NAMES+set}" != Xset; then
19203 COLLECT_NAMES=
19204 export COLLECT_NAMES
19205 fi
19206 _LT_EOF
19207 ;;
19208 esac
19209
19210
19211 ltmain="$ac_aux_dir/ltmain.sh"
19212
19213
19214 # We use sed instead of cat because bash on DJGPP gets confused if
19215 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19216 # text mode, it properly converts lines to CR/LF. This bash problem
19217 # is reportedly fixed, but why not run on old versions too?
19218 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19219 || (rm -f "$cfgfile"; exit 1)
19220
19221 case $xsi_shell in
19222 yes)
19223 cat << \_LT_EOF >> "$cfgfile"
19224
19225 # func_dirname file append nondir_replacement
19226 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19227 # otherwise set result to NONDIR_REPLACEMENT.
19228 func_dirname ()
19229 {
19230 case ${1} in
19231 */*) func_dirname_result="${1%/*}${2}" ;;
19232 * ) func_dirname_result="${3}" ;;
19233 esac
19234 }
19235
19236 # func_basename file
19237 func_basename ()
19238 {
19239 func_basename_result="${1##*/}"
19240 }
19241
19242 # func_dirname_and_basename file append nondir_replacement
19243 # perform func_basename and func_dirname in a single function
19244 # call:
19245 # dirname: Compute the dirname of FILE. If nonempty,
19246 # add APPEND to the result, otherwise set result
19247 # to NONDIR_REPLACEMENT.
19248 # value returned in "$func_dirname_result"
19249 # basename: Compute filename of FILE.
19250 # value retuned in "$func_basename_result"
19251 # Implementation must be kept synchronized with func_dirname
19252 # and func_basename. For efficiency, we do not delegate to
19253 # those functions but instead duplicate the functionality here.
19254 func_dirname_and_basename ()
19255 {
19256 case ${1} in
19257 */*) func_dirname_result="${1%/*}${2}" ;;
19258 * ) func_dirname_result="${3}" ;;
19259 esac
19260 func_basename_result="${1##*/}"
19261 }
19262
19263 # func_stripname prefix suffix name
19264 # strip PREFIX and SUFFIX off of NAME.
19265 # PREFIX and SUFFIX must not contain globbing or regex special
19266 # characters, hashes, percent signs, but SUFFIX may contain a leading
19267 # dot (in which case that matches only a dot).
19268 func_stripname ()
19269 {
19270 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19271 # positional parameters, so assign one to ordinary parameter first.
19272 func_stripname_result=${3}
19273 func_stripname_result=${func_stripname_result#"${1}"}
19274 func_stripname_result=${func_stripname_result%"${2}"}
19275 }
19276
19277 # func_opt_split
19278 func_opt_split ()
19279 {
19280 func_opt_split_opt=${1%%=*}
19281 func_opt_split_arg=${1#*=}
19282 }
19283
19284 # func_lo2o object
19285 func_lo2o ()
19286 {
19287 case ${1} in
19288 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19289 *) func_lo2o_result=${1} ;;
19290 esac
19291 }
19292
19293 # func_xform libobj-or-source
19294 func_xform ()
19295 {
19296 func_xform_result=${1%.*}.lo
19297 }
19298
19299 # func_arith arithmetic-term...
19300 func_arith ()
19301 {
19302 func_arith_result=$(( $* ))
19303 }
19304
19305 # func_len string
19306 # STRING may not start with a hyphen.
19307 func_len ()
19308 {
19309 func_len_result=${#1}
19310 }
19311
19312 _LT_EOF
19313 ;;
19314 *) # Bourne compatible functions.
19315 cat << \_LT_EOF >> "$cfgfile"
19316
19317 # func_dirname file append nondir_replacement
19318 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19319 # otherwise set result to NONDIR_REPLACEMENT.
19320 func_dirname ()
19321 {
19322 # Extract subdirectory from the argument.
19323 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
19324 if test "X$func_dirname_result" = "X${1}"; then
19325 func_dirname_result="${3}"
19326 else
19327 func_dirname_result="$func_dirname_result${2}"
19328 fi
19329 }
19330
19331 # func_basename file
19332 func_basename ()
19333 {
19334 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
19335 }
19336
19337
19338 # func_stripname prefix suffix name
19339 # strip PREFIX and SUFFIX off of NAME.
19340 # PREFIX and SUFFIX must not contain globbing or regex special
19341 # characters, hashes, percent signs, but SUFFIX may contain a leading
19342 # dot (in which case that matches only a dot).
19343 # func_strip_suffix prefix name
19344 func_stripname ()
19345 {
19346 case ${2} in
19347 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19348 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19349 esac
19350 }
19351
19352 # sed scripts:
19353 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19354 my_sed_long_arg='1s/^-[^=]*=//'
19355
19356 # func_opt_split
19357 func_opt_split ()
19358 {
19359 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19360 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19361 }
19362
19363 # func_lo2o object
19364 func_lo2o ()
19365 {
19366 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
19367 }
19368
19369 # func_xform libobj-or-source
19370 func_xform ()
19371 {
19372 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19373 }
19374
19375 # func_arith arithmetic-term...
19376 func_arith ()
19377 {
19378 func_arith_result=`expr "$@"`
19379 }
19380
19381 # func_len string
19382 # STRING may not start with a hyphen.
19383 func_len ()
19384 {
19385 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19386 }
19387
19388 _LT_EOF
19389 esac
19390
19391 case $lt_shell_append in
19392 yes)
19393 cat << \_LT_EOF >> "$cfgfile"
19394
19395 # func_append var value
19396 # Append VALUE to the end of shell variable VAR.
19397 func_append ()
19398 {
19399 eval "$1+=\$2"
19400 }
19401 _LT_EOF
19402 ;;
19403 *)
19404 cat << \_LT_EOF >> "$cfgfile"
19405
19406 # func_append var value
19407 # Append VALUE to the end of shell variable VAR.
19408 func_append ()
19409 {
19410 eval "$1=\$$1\$2"
19411 }
19412
19413 _LT_EOF
19414 ;;
19415 esac
19416
19417
19418 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19419 || (rm -f "$cfgfile"; exit 1)
19420
19421 mv -f "$cfgfile" "$ofile" ||
19422 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19423 chmod +x "$ofile"
19424
19425
19426 cat <<_LT_EOF >> "$ofile"
19427
19428 # ### BEGIN LIBTOOL TAG CONFIG: FC
19429
19430 # The linker used to build libraries.
19431 LD=$lt_LD_FC
19432
19433 # How to create reloadable object files.
19434 reload_flag=$lt_reload_flag_FC
19435 reload_cmds=$lt_reload_cmds_FC
19436
19437 # Commands used to build an old-style archive.
19438 old_archive_cmds=$lt_old_archive_cmds_FC
19439
19440 # A language specific compiler.
19441 CC=$lt_compiler_FC
19442
19443 # Is the compiler the GNU compiler?
19444 with_gcc=$GCC_FC
19445
19446 # Compiler flag to turn off builtin functions.
19447 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
19448
19449 # How to pass a linker flag through the compiler.
19450 wl=$lt_lt_prog_compiler_wl_FC
19451
19452 # Additional compiler flags for building library objects.
19453 pic_flag=$lt_lt_prog_compiler_pic_FC
19454
19455 # Compiler flag to prevent dynamic linking.
19456 link_static_flag=$lt_lt_prog_compiler_static_FC
19457
19458 # Does compiler simultaneously support -c and -o options?
19459 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
19460
19461 # Whether or not to add -lc for building shared libraries.
19462 build_libtool_need_lc=$archive_cmds_need_lc_FC
19463
19464 # Whether or not to disallow shared libs when runtime libs are static.
19465 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
19466
19467 # Compiler flag to allow reflexive dlopens.
19468 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
19469
19470 # Compiler flag to generate shared objects directly from archives.
19471 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
19472
19473 # Whether the compiler copes with passing no objects directly.
19474 compiler_needs_object=$lt_compiler_needs_object_FC
19475
19476 # Create an old-style archive from a shared archive.
19477 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
19478
19479 # Create a temporary old-style archive to link instead of a shared archive.
19480 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
19481
19482 # Commands used to build a shared archive.
19483 archive_cmds=$lt_archive_cmds_FC
19484 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
19485
19486 # Commands used to build a loadable module if different from building
19487 # a shared archive.
19488 module_cmds=$lt_module_cmds_FC
19489 module_expsym_cmds=$lt_module_expsym_cmds_FC
19490
19491 # Whether we are building with GNU ld or not.
19492 with_gnu_ld=$lt_with_gnu_ld_FC
19493
19494 # Flag that allows shared libraries with undefined symbols to be built.
19495 allow_undefined_flag=$lt_allow_undefined_flag_FC
19496
19497 # Flag that enforces no undefined symbols.
19498 no_undefined_flag=$lt_no_undefined_flag_FC
19499
19500 # Flag to hardcode \$libdir into a binary during linking.
19501 # This must work even if \$libdir does not exist
19502 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
19503
19504 # If ld is used when linking, flag to hardcode \$libdir into a binary
19505 # during linking. This must work even if \$libdir does not exist.
19506 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
19507
19508 # Whether we need a single "-rpath" flag with a separated argument.
19509 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
19510
19511 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19512 # DIR into the resulting binary.
19513 hardcode_direct=$hardcode_direct_FC
19514
19515 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19516 # DIR into the resulting binary and the resulting library dependency is
19517 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19518 # library is relocated.
19519 hardcode_direct_absolute=$hardcode_direct_absolute_FC
19520
19521 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19522 # into the resulting binary.
19523 hardcode_minus_L=$hardcode_minus_L_FC
19524
19525 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19526 # into the resulting binary.
19527 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
19528
19529 # Set to "yes" if building a shared library automatically hardcodes DIR
19530 # into the library and all subsequent libraries and executables linked
19531 # against it.
19532 hardcode_automatic=$hardcode_automatic_FC
19533
19534 # Set to yes if linker adds runtime paths of dependent libraries
19535 # to runtime path list.
19536 inherit_rpath=$inherit_rpath_FC
19537
19538 # Whether libtool must link a program against all its dependency libraries.
19539 link_all_deplibs=$link_all_deplibs_FC
19540
19541 # Fix the shell variable \$srcfile for the compiler.
19542 fix_srcfile_path=$lt_fix_srcfile_path_FC
19543
19544 # Set to "yes" if exported symbols are required.
19545 always_export_symbols=$always_export_symbols_FC
19546
19547 # The commands to list exported symbols.
19548 export_symbols_cmds=$lt_export_symbols_cmds_FC
19549
19550 # Symbols that should not be listed in the preloaded symbols.
19551 exclude_expsyms=$lt_exclude_expsyms_FC
19552
19553 # Symbols that must always be exported.
19554 include_expsyms=$lt_include_expsyms_FC
19555
19556 # Commands necessary for linking programs (against libraries) with templates.
19557 prelink_cmds=$lt_prelink_cmds_FC
19558
19559 # Specify filename containing input files.
19560 file_list_spec=$lt_file_list_spec_FC
19561
19562 # How to hardcode a shared library path into an executable.
19563 hardcode_action=$hardcode_action_FC
19564
19565 # The directories searched by this compiler when creating a shared library.
19566 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
19567
19568 # Dependencies to place before and after the objects being linked to
19569 # create a shared library.
19570 predep_objects=$lt_predep_objects_FC
19571 postdep_objects=$lt_postdep_objects_FC
19572 predeps=$lt_predeps_FC
19573 postdeps=$lt_postdeps_FC
19574
19575 # The library search path used internally by the compiler when linking
19576 # a shared library.
19577 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
19578
19579 # ### END LIBTOOL TAG CONFIG: FC
19580 _LT_EOF
19581
19582 ;;
19583 "gstdint.h":C)
19584 if test "$GCC" = yes; then
19585 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
19586 else
19587 echo "/* generated for $CC */" > tmp-stdint.h
19588 fi
19589
19590 sed 's/^ *//' >> tmp-stdint.h <<EOF
19591
19592 #ifndef GCC_GENERATED_STDINT_H
19593 #define GCC_GENERATED_STDINT_H 1
19594
19595 #include <sys/types.h>
19596 EOF
19597
19598 if test "$acx_cv_header_stdint" != stdint.h; then
19599 echo "#include <stddef.h>" >> tmp-stdint.h
19600 fi
19601 if test "$acx_cv_header_stdint" != stddef.h; then
19602 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
19603 fi
19604
19605 sed 's/^ *//' >> tmp-stdint.h <<EOF
19606 /* glibc uses these symbols as guards to prevent redefinitions. */
19607 #ifdef __int8_t_defined
19608 #define _INT8_T
19609 #define _INT16_T
19610 #define _INT32_T
19611 #endif
19612 #ifdef __uint32_t_defined
19613 #define _UINT32_T
19614 #endif
19615
19616 EOF
19617
19618 # ----------------- done header, emit basic int types -------------
19619 if test "$acx_cv_header_stdint" = stddef.h; then
19620 sed 's/^ *//' >> tmp-stdint.h <<EOF
19621
19622 #ifndef _UINT8_T
19623 #define _UINT8_T
19624 #ifndef __uint8_t_defined
19625 #define __uint8_t_defined
19626 #ifndef uint8_t
19627 typedef unsigned $acx_cv_type_int8_t uint8_t;
19628 #endif
19629 #endif
19630 #endif
19631
19632 #ifndef _UINT16_T
19633 #define _UINT16_T
19634 #ifndef __uint16_t_defined
19635 #define __uint16_t_defined
19636 #ifndef uint16_t
19637 typedef unsigned $acx_cv_type_int16_t uint16_t;
19638 #endif
19639 #endif
19640 #endif
19641
19642 #ifndef _UINT32_T
19643 #define _UINT32_T
19644 #ifndef __uint32_t_defined
19645 #define __uint32_t_defined
19646 #ifndef uint32_t
19647 typedef unsigned $acx_cv_type_int32_t uint32_t;
19648 #endif
19649 #endif
19650 #endif
19651
19652 #ifndef _INT8_T
19653 #define _INT8_T
19654 #ifndef __int8_t_defined
19655 #define __int8_t_defined
19656 #ifndef int8_t
19657 typedef $acx_cv_type_int8_t int8_t;
19658 #endif
19659 #endif
19660 #endif
19661
19662 #ifndef _INT16_T
19663 #define _INT16_T
19664 #ifndef __int16_t_defined
19665 #define __int16_t_defined
19666 #ifndef int16_t
19667 typedef $acx_cv_type_int16_t int16_t;
19668 #endif
19669 #endif
19670 #endif
19671
19672 #ifndef _INT32_T
19673 #define _INT32_T
19674 #ifndef __int32_t_defined
19675 #define __int32_t_defined
19676 #ifndef int32_t
19677 typedef $acx_cv_type_int32_t int32_t;
19678 #endif
19679 #endif
19680 #endif
19681 EOF
19682 elif test "$ac_cv_type_u_int32_t" = yes; then
19683 sed 's/^ *//' >> tmp-stdint.h <<EOF
19684
19685 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
19686 #ifndef _INT8_T
19687 #define _INT8_T
19688 #endif
19689 #ifndef _INT16_T
19690 #define _INT16_T
19691 #endif
19692 #ifndef _INT32_T
19693 #define _INT32_T
19694 #endif
19695
19696 #ifndef _UINT8_T
19697 #define _UINT8_T
19698 #ifndef __uint8_t_defined
19699 #define __uint8_t_defined
19700 #ifndef uint8_t
19701 typedef u_int8_t uint8_t;
19702 #endif
19703 #endif
19704 #endif
19705
19706 #ifndef _UINT16_T
19707 #define _UINT16_T
19708 #ifndef __uint16_t_defined
19709 #define __uint16_t_defined
19710 #ifndef uint16_t
19711 typedef u_int16_t uint16_t;
19712 #endif
19713 #endif
19714 #endif
19715
19716 #ifndef _UINT32_T
19717 #define _UINT32_T
19718 #ifndef __uint32_t_defined
19719 #define __uint32_t_defined
19720 #ifndef uint32_t
19721 typedef u_int32_t uint32_t;
19722 #endif
19723 #endif
19724 #endif
19725 EOF
19726 else
19727 sed 's/^ *//' >> tmp-stdint.h <<EOF
19728
19729 /* Some systems have guard macros to prevent redefinitions, define them. */
19730 #ifndef _INT8_T
19731 #define _INT8_T
19732 #endif
19733 #ifndef _INT16_T
19734 #define _INT16_T
19735 #endif
19736 #ifndef _INT32_T
19737 #define _INT32_T
19738 #endif
19739 #ifndef _UINT8_T
19740 #define _UINT8_T
19741 #endif
19742 #ifndef _UINT16_T
19743 #define _UINT16_T
19744 #endif
19745 #ifndef _UINT32_T
19746 #define _UINT32_T
19747 #endif
19748 EOF
19749 fi
19750
19751 # ------------- done basic int types, emit int64_t types ------------
19752 if test "$ac_cv_type_uint64_t" = yes; then
19753 sed 's/^ *//' >> tmp-stdint.h <<EOF
19754
19755 /* system headers have good uint64_t and int64_t */
19756 #ifndef _INT64_T
19757 #define _INT64_T
19758 #endif
19759 #ifndef _UINT64_T
19760 #define _UINT64_T
19761 #endif
19762 EOF
19763 elif test "$ac_cv_type_u_int64_t" = yes; then
19764 sed 's/^ *//' >> tmp-stdint.h <<EOF
19765
19766 /* system headers have an u_int64_t (and int64_t) */
19767 #ifndef _INT64_T
19768 #define _INT64_T
19769 #endif
19770 #ifndef _UINT64_T
19771 #define _UINT64_T
19772 #ifndef __uint64_t_defined
19773 #define __uint64_t_defined
19774 #ifndef uint64_t
19775 typedef u_int64_t uint64_t;
19776 #endif
19777 #endif
19778 #endif
19779 EOF
19780 elif test -n "$acx_cv_type_int64_t"; then
19781 sed 's/^ *//' >> tmp-stdint.h <<EOF
19782
19783 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
19784 #ifndef _INT64_T
19785 #define _INT64_T
19786 #ifndef int64_t
19787 typedef $acx_cv_type_int64_t int64_t;
19788 #endif
19789 #endif
19790 #ifndef _UINT64_T
19791 #define _UINT64_T
19792 #ifndef __uint64_t_defined
19793 #define __uint64_t_defined
19794 #ifndef uint64_t
19795 typedef unsigned $acx_cv_type_int64_t uint64_t;
19796 #endif
19797 #endif
19798 #endif
19799 EOF
19800 else
19801 sed 's/^ *//' >> tmp-stdint.h <<EOF
19802
19803 /* some common heuristics for int64_t, using compiler-specific tests */
19804 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
19805 #ifndef _INT64_T
19806 #define _INT64_T
19807 #ifndef __int64_t_defined
19808 #ifndef int64_t
19809 typedef long long int64_t;
19810 #endif
19811 #endif
19812 #endif
19813 #ifndef _UINT64_T
19814 #define _UINT64_T
19815 #ifndef uint64_t
19816 typedef unsigned long long uint64_t;
19817 #endif
19818 #endif
19819
19820 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
19821 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
19822 does not implement __extension__. But that compiler doesn't define
19823 __GNUC_MINOR__. */
19824 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
19825 # define __extension__
19826 # endif
19827
19828 # ifndef _INT64_T
19829 # define _INT64_T
19830 # ifndef int64_t
19831 __extension__ typedef long long int64_t;
19832 # endif
19833 # endif
19834 # ifndef _UINT64_T
19835 # define _UINT64_T
19836 # ifndef uint64_t
19837 __extension__ typedef unsigned long long uint64_t;
19838 # endif
19839 # endif
19840
19841 #elif !defined __STRICT_ANSI__
19842 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
19843
19844 # ifndef _INT64_T
19845 # define _INT64_T
19846 # ifndef int64_t
19847 typedef __int64 int64_t;
19848 # endif
19849 # endif
19850 # ifndef _UINT64_T
19851 # define _UINT64_T
19852 # ifndef uint64_t
19853 typedef unsigned __int64 uint64_t;
19854 # endif
19855 # endif
19856 # endif /* compiler */
19857
19858 #endif /* ANSI version */
19859 EOF
19860 fi
19861
19862 # ------------- done int64_t types, emit intptr types ------------
19863 if test "$ac_cv_type_uintptr_t" != yes; then
19864 sed 's/^ *//' >> tmp-stdint.h <<EOF
19865
19866 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
19867 #ifndef __uintptr_t_defined
19868 #ifndef uintptr_t
19869 typedef u$acx_cv_type_intptr_t uintptr_t;
19870 #endif
19871 #endif
19872 #ifndef __intptr_t_defined
19873 #ifndef intptr_t
19874 typedef $acx_cv_type_intptr_t intptr_t;
19875 #endif
19876 #endif
19877 EOF
19878 fi
19879
19880 # ------------- done intptr types, emit int_least types ------------
19881 if test "$ac_cv_type_int_least32_t" != yes; then
19882 sed 's/^ *//' >> tmp-stdint.h <<EOF
19883
19884 /* Define int_least types */
19885 typedef int8_t int_least8_t;
19886 typedef int16_t int_least16_t;
19887 typedef int32_t int_least32_t;
19888 #ifdef _INT64_T
19889 typedef int64_t int_least64_t;
19890 #endif
19891
19892 typedef uint8_t uint_least8_t;
19893 typedef uint16_t uint_least16_t;
19894 typedef uint32_t uint_least32_t;
19895 #ifdef _UINT64_T
19896 typedef uint64_t uint_least64_t;
19897 #endif
19898 EOF
19899 fi
19900
19901 # ------------- done intptr types, emit int_fast types ------------
19902 if test "$ac_cv_type_int_fast32_t" != yes; then
19903 sed 's/^ *//' >> tmp-stdint.h <<EOF
19904
19905 /* Define int_fast types. short is often slow */
19906 typedef int8_t int_fast8_t;
19907 typedef int int_fast16_t;
19908 typedef int32_t int_fast32_t;
19909 #ifdef _INT64_T
19910 typedef int64_t int_fast64_t;
19911 #endif
19912
19913 typedef uint8_t uint_fast8_t;
19914 typedef unsigned int uint_fast16_t;
19915 typedef uint32_t uint_fast32_t;
19916 #ifdef _UINT64_T
19917 typedef uint64_t uint_fast64_t;
19918 #endif
19919 EOF
19920 fi
19921
19922 if test "$ac_cv_type_uintmax_t" != yes; then
19923 sed 's/^ *//' >> tmp-stdint.h <<EOF
19924
19925 /* Define intmax based on what we found */
19926 #ifndef intmax_t
19927 #ifdef _INT64_T
19928 typedef int64_t intmax_t;
19929 #else
19930 typedef long intmax_t;
19931 #endif
19932 #endif
19933 #ifndef uintmax_t
19934 #ifdef _UINT64_T
19935 typedef uint64_t uintmax_t;
19936 #else
19937 typedef unsigned long uintmax_t;
19938 #endif
19939 #endif
19940 EOF
19941 fi
19942
19943 sed 's/^ *//' >> tmp-stdint.h <<EOF
19944
19945 #endif /* GCC_GENERATED_STDINT_H */
19946 EOF
19947
19948 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
19949 rm -f tmp-stdint.h
19950 else
19951 mv -f tmp-stdint.h gstdint.h
19952 fi
19953
19954 ;;
19955
19956 esac
19957 done # for ac_tag
19958
19959
19960 as_fn_exit 0
19961 _ACEOF
19962 ac_clean_files=$ac_clean_files_save
19963
19964 test $ac_write_fail = 0 ||
19965 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
19966
19967
19968 # configure is writing to config.log, and then calls config.status.
19969 # config.status does its own redirection, appending to config.log.
19970 # Unfortunately, on DOS this fails, as config.log is still kept open
19971 # by configure, so config.status won't be able to write to it; its
19972 # output is simply discarded. So we exec the FD to /dev/null,
19973 # effectively closing config.log, so it can be properly (re)opened and
19974 # appended to by config.status. When coming back to configure, we
19975 # need to make the FD available again.
19976 if test "$no_create" != yes; then
19977 ac_cs_success=:
19978 ac_config_status_args=
19979 test "$silent" = yes &&
19980 ac_config_status_args="$ac_config_status_args --quiet"
19981 exec 5>/dev/null
19982 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19983 exec 5>>config.log
19984 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19985 # would make configure fail if this is the last instruction.
19986 $ac_cs_success || as_fn_exit $?
19987 fi
19988 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19990 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19991 fi
19992