Remove build dependence on HSA run-time
[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 OMP_NEST_LOCK_25_KIND
607 OMP_LOCK_25_KIND
608 OMP_NEST_LOCK_25_ALIGN
609 OMP_NEST_LOCK_25_SIZE
610 OMP_LOCK_25_ALIGN
611 OMP_LOCK_25_SIZE
612 OMP_NEST_LOCK_KIND
613 OMP_LOCK_KIND
614 OMP_NEST_LOCK_ALIGN
615 OMP_NEST_LOCK_SIZE
616 OMP_LOCK_ALIGN
617 OMP_LOCK_SIZE
618 USE_FORTRAN_FALSE
619 USE_FORTRAN_TRUE
620 link_gomp
621 XLDFLAGS
622 XCFLAGS
623 config_path
624 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE
625 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE
626 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE
627 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE
628 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE
629 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE
630 OPT_LDFLAGS
631 SECTION_LDFLAGS
632 PLUGIN_HSA_FALSE
633 PLUGIN_HSA_TRUE
634 PLUGIN_NVPTX_FALSE
635 PLUGIN_NVPTX_TRUE
636 offload_additional_lib_paths
637 offload_additional_options
638 PLUGIN_HSA_LIBS
639 PLUGIN_HSA_LDFLAGS
640 PLUGIN_HSA_CPPFLAGS
641 PLUGIN_HSA
642 HSA_RUNTIME_LIB
643 HSA_RUNTIME_INCLUDE
644 PLUGIN_NVPTX_LIBS
645 PLUGIN_NVPTX_LDFLAGS
646 PLUGIN_NVPTX_CPPFLAGS
647 PLUGIN_NVPTX
648 CUDA_DRIVER_LIB
649 CUDA_DRIVER_INCLUDE
650 offload_targets
651 libtool_VERSION
652 ac_ct_FC
653 FCFLAGS
654 FC
655 MAINT
656 MAINTAINER_MODE_FALSE
657 MAINTAINER_MODE_TRUE
658 enable_static
659 enable_shared
660 lt_host_flags
661 CPP
662 OTOOL64
663 OTOOL
664 LIPO
665 NMEDIT
666 DSYMUTIL
667 OBJDUMP
668 LN_S
669 NM
670 ac_ct_DUMPBIN
671 DUMPBIN
672 LD
673 FGREP
674 EGREP
675 GREP
676 SED
677 LIBTOOL
678 BUILD_INFO_FALSE
679 BUILD_INFO_TRUE
680 PERL
681 RANLIB
682 AR
683 am__fastdepCC_FALSE
684 am__fastdepCC_TRUE
685 CCDEPMODE
686 AMDEPBACKSLASH
687 AMDEP_FALSE
688 AMDEP_TRUE
689 am__quote
690 am__include
691 DEPDIR
692 OBJEXT
693 EXEEXT
694 ac_ct_CC
695 CPPFLAGS
696 LDFLAGS
697 CFLAGS
698 CC
699 toolexeclibdir
700 toolexecdir
701 multi_basedir
702 am__untar
703 am__tar
704 AMTAR
705 am__leading_dot
706 SET_MAKE
707 AWK
708 mkdir_p
709 MKDIR_P
710 INSTALL_STRIP_PROGRAM
711 STRIP
712 install_sh
713 MAKEINFO
714 AUTOHEADER
715 AUTOMAKE
716 AUTOCONF
717 ACLOCAL
718 VERSION
719 PACKAGE
720 CYGPATH_W
721 am__isrc
722 INSTALL_DATA
723 INSTALL_SCRIPT
724 INSTALL_PROGRAM
725 target_os
726 target_vendor
727 target_cpu
728 target
729 host_os
730 host_vendor
731 host_cpu
732 host
733 build_os
734 build_vendor
735 build_cpu
736 build
737 GENINSRC_FALSE
738 GENINSRC_TRUE
739 target_alias
740 host_alias
741 build_alias
742 LIBS
743 ECHO_T
744 ECHO_N
745 ECHO_C
746 DEFS
747 mandir
748 localedir
749 libdir
750 psdir
751 pdfdir
752 dvidir
753 htmldir
754 infodir
755 docdir
756 oldincludedir
757 includedir
758 localstatedir
759 sharedstatedir
760 sysconfdir
761 datadir
762 datarootdir
763 libexecdir
764 sbindir
765 bindir
766 program_transform_name
767 prefix
768 exec_prefix
769 PACKAGE_URL
770 PACKAGE_BUGREPORT
771 PACKAGE_STRING
772 PACKAGE_VERSION
773 PACKAGE_TARNAME
774 PACKAGE_NAME
775 PATH_SEPARATOR
776 SHELL'
777 ac_subst_files=''
778 ac_user_opts='
779 enable_option_checking
780 enable_version_specific_runtime_libs
781 enable_generated_files_in_srcdir
782 enable_multilib
783 enable_dependency_tracking
784 enable_shared
785 enable_static
786 with_pic
787 enable_fast_install
788 with_gnu_ld
789 enable_libtool_lock
790 enable_maintainer_mode
791 with_cuda_driver
792 with_cuda_driver_include
793 with_cuda_driver_lib
794 with_hsa_runtime
795 with_hsa_runtime_include
796 with_hsa_runtime_lib
797 enable_linux_futex
798 enable_tls
799 enable_symvers
800 '
801 ac_precious_vars='build_alias
802 host_alias
803 target_alias
804 CPP
805 CPPFLAGS
806 FC
807 FCFLAGS
808 LDFLAGS
809 LIBS'
810
811
812 # Initialize some variables set by options.
813 ac_init_help=
814 ac_init_version=false
815 ac_unrecognized_opts=
816 ac_unrecognized_sep=
817 # The variables have the same names as the options, with
818 # dashes changed to underlines.
819 cache_file=/dev/null
820 exec_prefix=NONE
821 no_create=
822 no_recursion=
823 prefix=NONE
824 program_prefix=NONE
825 program_suffix=NONE
826 program_transform_name=s,x,x,
827 silent=
828 site=
829 srcdir=
830 verbose=
831 x_includes=NONE
832 x_libraries=NONE
833
834 # Installation directory options.
835 # These are left unexpanded so users can "make install exec_prefix=/foo"
836 # and all the variables that are supposed to be based on exec_prefix
837 # by default will actually change.
838 # Use braces instead of parens because sh, perl, etc. also accept them.
839 # (The list follows the same order as the GNU Coding Standards.)
840 bindir='${exec_prefix}/bin'
841 sbindir='${exec_prefix}/sbin'
842 libexecdir='${exec_prefix}/libexec'
843 datarootdir='${prefix}/share'
844 datadir='${datarootdir}'
845 sysconfdir='${prefix}/etc'
846 sharedstatedir='${prefix}/com'
847 localstatedir='${prefix}/var'
848 includedir='${prefix}/include'
849 oldincludedir='/usr/include'
850 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
851 infodir='${datarootdir}/info'
852 htmldir='${docdir}'
853 dvidir='${docdir}'
854 pdfdir='${docdir}'
855 psdir='${docdir}'
856 libdir='${exec_prefix}/lib'
857 localedir='${datarootdir}/locale'
858 mandir='${datarootdir}/man'
859
860 ac_prev=
861 ac_dashdash=
862 for ac_option
863 do
864 # If the previous option needs an argument, assign it.
865 if test -n "$ac_prev"; then
866 eval $ac_prev=\$ac_option
867 ac_prev=
868 continue
869 fi
870
871 case $ac_option in
872 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
873 *) ac_optarg=yes ;;
874 esac
875
876 # Accept the important Cygnus configure options, so we can diagnose typos.
877
878 case $ac_dashdash$ac_option in
879 --)
880 ac_dashdash=yes ;;
881
882 -bindir | --bindir | --bindi | --bind | --bin | --bi)
883 ac_prev=bindir ;;
884 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
885 bindir=$ac_optarg ;;
886
887 -build | --build | --buil | --bui | --bu)
888 ac_prev=build_alias ;;
889 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
890 build_alias=$ac_optarg ;;
891
892 -cache-file | --cache-file | --cache-fil | --cache-fi \
893 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
894 ac_prev=cache_file ;;
895 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
896 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
897 cache_file=$ac_optarg ;;
898
899 --config-cache | -C)
900 cache_file=config.cache ;;
901
902 -datadir | --datadir | --datadi | --datad)
903 ac_prev=datadir ;;
904 -datadir=* | --datadir=* | --datadi=* | --datad=*)
905 datadir=$ac_optarg ;;
906
907 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
908 | --dataroo | --dataro | --datar)
909 ac_prev=datarootdir ;;
910 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
911 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
912 datarootdir=$ac_optarg ;;
913
914 -disable-* | --disable-*)
915 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
916 # Reject names that are not valid shell variable names.
917 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
918 as_fn_error "invalid feature name: $ac_useropt"
919 ac_useropt_orig=$ac_useropt
920 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
921 case $ac_user_opts in
922 *"
923 "enable_$ac_useropt"
924 "*) ;;
925 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
926 ac_unrecognized_sep=', ';;
927 esac
928 eval enable_$ac_useropt=no ;;
929
930 -docdir | --docdir | --docdi | --doc | --do)
931 ac_prev=docdir ;;
932 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
933 docdir=$ac_optarg ;;
934
935 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
936 ac_prev=dvidir ;;
937 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
938 dvidir=$ac_optarg ;;
939
940 -enable-* | --enable-*)
941 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
942 # Reject names that are not valid shell variable names.
943 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
944 as_fn_error "invalid feature name: $ac_useropt"
945 ac_useropt_orig=$ac_useropt
946 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
947 case $ac_user_opts in
948 *"
949 "enable_$ac_useropt"
950 "*) ;;
951 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
952 ac_unrecognized_sep=', ';;
953 esac
954 eval enable_$ac_useropt=\$ac_optarg ;;
955
956 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
957 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
958 | --exec | --exe | --ex)
959 ac_prev=exec_prefix ;;
960 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
961 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
962 | --exec=* | --exe=* | --ex=*)
963 exec_prefix=$ac_optarg ;;
964
965 -gas | --gas | --ga | --g)
966 # Obsolete; use --with-gas.
967 with_gas=yes ;;
968
969 -help | --help | --hel | --he | -h)
970 ac_init_help=long ;;
971 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
972 ac_init_help=recursive ;;
973 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
974 ac_init_help=short ;;
975
976 -host | --host | --hos | --ho)
977 ac_prev=host_alias ;;
978 -host=* | --host=* | --hos=* | --ho=*)
979 host_alias=$ac_optarg ;;
980
981 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
982 ac_prev=htmldir ;;
983 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
984 | --ht=*)
985 htmldir=$ac_optarg ;;
986
987 -includedir | --includedir | --includedi | --included | --include \
988 | --includ | --inclu | --incl | --inc)
989 ac_prev=includedir ;;
990 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
991 | --includ=* | --inclu=* | --incl=* | --inc=*)
992 includedir=$ac_optarg ;;
993
994 -infodir | --infodir | --infodi | --infod | --info | --inf)
995 ac_prev=infodir ;;
996 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
997 infodir=$ac_optarg ;;
998
999 -libdir | --libdir | --libdi | --libd)
1000 ac_prev=libdir ;;
1001 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1002 libdir=$ac_optarg ;;
1003
1004 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1005 | --libexe | --libex | --libe)
1006 ac_prev=libexecdir ;;
1007 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1008 | --libexe=* | --libex=* | --libe=*)
1009 libexecdir=$ac_optarg ;;
1010
1011 -localedir | --localedir | --localedi | --localed | --locale)
1012 ac_prev=localedir ;;
1013 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1014 localedir=$ac_optarg ;;
1015
1016 -localstatedir | --localstatedir | --localstatedi | --localstated \
1017 | --localstate | --localstat | --localsta | --localst | --locals)
1018 ac_prev=localstatedir ;;
1019 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1020 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1021 localstatedir=$ac_optarg ;;
1022
1023 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1024 ac_prev=mandir ;;
1025 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1026 mandir=$ac_optarg ;;
1027
1028 -nfp | --nfp | --nf)
1029 # Obsolete; use --without-fp.
1030 with_fp=no ;;
1031
1032 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1033 | --no-cr | --no-c | -n)
1034 no_create=yes ;;
1035
1036 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1037 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1038 no_recursion=yes ;;
1039
1040 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1041 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1042 | --oldin | --oldi | --old | --ol | --o)
1043 ac_prev=oldincludedir ;;
1044 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1045 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1046 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1047 oldincludedir=$ac_optarg ;;
1048
1049 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1050 ac_prev=prefix ;;
1051 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1052 prefix=$ac_optarg ;;
1053
1054 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1055 | --program-pre | --program-pr | --program-p)
1056 ac_prev=program_prefix ;;
1057 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1058 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1059 program_prefix=$ac_optarg ;;
1060
1061 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1062 | --program-suf | --program-su | --program-s)
1063 ac_prev=program_suffix ;;
1064 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1065 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1066 program_suffix=$ac_optarg ;;
1067
1068 -program-transform-name | --program-transform-name \
1069 | --program-transform-nam | --program-transform-na \
1070 | --program-transform-n | --program-transform- \
1071 | --program-transform | --program-transfor \
1072 | --program-transfo | --program-transf \
1073 | --program-trans | --program-tran \
1074 | --progr-tra | --program-tr | --program-t)
1075 ac_prev=program_transform_name ;;
1076 -program-transform-name=* | --program-transform-name=* \
1077 | --program-transform-nam=* | --program-transform-na=* \
1078 | --program-transform-n=* | --program-transform-=* \
1079 | --program-transform=* | --program-transfor=* \
1080 | --program-transfo=* | --program-transf=* \
1081 | --program-trans=* | --program-tran=* \
1082 | --progr-tra=* | --program-tr=* | --program-t=*)
1083 program_transform_name=$ac_optarg ;;
1084
1085 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1086 ac_prev=pdfdir ;;
1087 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1088 pdfdir=$ac_optarg ;;
1089
1090 -psdir | --psdir | --psdi | --psd | --ps)
1091 ac_prev=psdir ;;
1092 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1093 psdir=$ac_optarg ;;
1094
1095 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1096 | -silent | --silent | --silen | --sile | --sil)
1097 silent=yes ;;
1098
1099 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1100 ac_prev=sbindir ;;
1101 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1102 | --sbi=* | --sb=*)
1103 sbindir=$ac_optarg ;;
1104
1105 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1106 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1107 | --sharedst | --shareds | --shared | --share | --shar \
1108 | --sha | --sh)
1109 ac_prev=sharedstatedir ;;
1110 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1111 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1112 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1113 | --sha=* | --sh=*)
1114 sharedstatedir=$ac_optarg ;;
1115
1116 -site | --site | --sit)
1117 ac_prev=site ;;
1118 -site=* | --site=* | --sit=*)
1119 site=$ac_optarg ;;
1120
1121 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1122 ac_prev=srcdir ;;
1123 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1124 srcdir=$ac_optarg ;;
1125
1126 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1127 | --syscon | --sysco | --sysc | --sys | --sy)
1128 ac_prev=sysconfdir ;;
1129 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1130 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1131 sysconfdir=$ac_optarg ;;
1132
1133 -target | --target | --targe | --targ | --tar | --ta | --t)
1134 ac_prev=target_alias ;;
1135 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1136 target_alias=$ac_optarg ;;
1137
1138 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1139 verbose=yes ;;
1140
1141 -version | --version | --versio | --versi | --vers | -V)
1142 ac_init_version=: ;;
1143
1144 -with-* | --with-*)
1145 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1146 # Reject names that are not valid shell variable names.
1147 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1148 as_fn_error "invalid package name: $ac_useropt"
1149 ac_useropt_orig=$ac_useropt
1150 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1151 case $ac_user_opts in
1152 *"
1153 "with_$ac_useropt"
1154 "*) ;;
1155 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1156 ac_unrecognized_sep=', ';;
1157 esac
1158 eval with_$ac_useropt=\$ac_optarg ;;
1159
1160 -without-* | --without-*)
1161 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1162 # Reject names that are not valid shell variable names.
1163 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1164 as_fn_error "invalid package name: $ac_useropt"
1165 ac_useropt_orig=$ac_useropt
1166 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1167 case $ac_user_opts in
1168 *"
1169 "with_$ac_useropt"
1170 "*) ;;
1171 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1172 ac_unrecognized_sep=', ';;
1173 esac
1174 eval with_$ac_useropt=no ;;
1175
1176 --x)
1177 # Obsolete; use --with-x.
1178 with_x=yes ;;
1179
1180 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1181 | --x-incl | --x-inc | --x-in | --x-i)
1182 ac_prev=x_includes ;;
1183 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1184 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1185 x_includes=$ac_optarg ;;
1186
1187 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1188 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1189 ac_prev=x_libraries ;;
1190 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1191 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1192 x_libraries=$ac_optarg ;;
1193
1194 -*) as_fn_error "unrecognized option: \`$ac_option'
1195 Try \`$0 --help' for more information."
1196 ;;
1197
1198 *=*)
1199 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1200 # Reject names that are not valid shell variable names.
1201 case $ac_envvar in #(
1202 '' | [0-9]* | *[!_$as_cr_alnum]* )
1203 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1204 esac
1205 eval $ac_envvar=\$ac_optarg
1206 export $ac_envvar ;;
1207
1208 *)
1209 # FIXME: should be removed in autoconf 3.0.
1210 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1211 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1212 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1213 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1214 ;;
1215
1216 esac
1217 done
1218
1219 if test -n "$ac_prev"; then
1220 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1221 as_fn_error "missing argument to $ac_option"
1222 fi
1223
1224 if test -n "$ac_unrecognized_opts"; then
1225 case $enable_option_checking in
1226 no) ;;
1227 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1228 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1229 esac
1230 fi
1231
1232 # Check all directory arguments for consistency.
1233 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1234 datadir sysconfdir sharedstatedir localstatedir includedir \
1235 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1236 libdir localedir mandir
1237 do
1238 eval ac_val=\$$ac_var
1239 # Remove trailing slashes.
1240 case $ac_val in
1241 */ )
1242 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1243 eval $ac_var=\$ac_val;;
1244 esac
1245 # Be sure to have absolute directory names.
1246 case $ac_val in
1247 [\\/$]* | ?:[\\/]* ) continue;;
1248 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1249 esac
1250 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1251 done
1252
1253 # There might be people who depend on the old broken behavior: `$host'
1254 # used to hold the argument of --host etc.
1255 # FIXME: To remove some day.
1256 build=$build_alias
1257 host=$host_alias
1258 target=$target_alias
1259
1260 # FIXME: To remove some day.
1261 if test "x$host_alias" != x; then
1262 if test "x$build_alias" = x; then
1263 cross_compiling=maybe
1264 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1265 If a cross compiler is detected then cross compile mode will be used." >&2
1266 elif test "x$build_alias" != "x$host_alias"; then
1267 cross_compiling=yes
1268 fi
1269 fi
1270
1271 ac_tool_prefix=
1272 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1273
1274 test "$silent" = yes && exec 6>/dev/null
1275
1276
1277 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1278 ac_ls_di=`ls -di .` &&
1279 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1280 as_fn_error "working directory cannot be determined"
1281 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1282 as_fn_error "pwd does not report name of working directory"
1283
1284
1285 # Find the source files, if location was not specified.
1286 if test -z "$srcdir"; then
1287 ac_srcdir_defaulted=yes
1288 # Try the directory containing this script, then the parent directory.
1289 ac_confdir=`$as_dirname -- "$as_myself" ||
1290 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1291 X"$as_myself" : 'X\(//\)[^/]' \| \
1292 X"$as_myself" : 'X\(//\)$' \| \
1293 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1294 $as_echo X"$as_myself" |
1295 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1296 s//\1/
1297 q
1298 }
1299 /^X\(\/\/\)[^/].*/{
1300 s//\1/
1301 q
1302 }
1303 /^X\(\/\/\)$/{
1304 s//\1/
1305 q
1306 }
1307 /^X\(\/\).*/{
1308 s//\1/
1309 q
1310 }
1311 s/.*/./; q'`
1312 srcdir=$ac_confdir
1313 if test ! -r "$srcdir/$ac_unique_file"; then
1314 srcdir=..
1315 fi
1316 else
1317 ac_srcdir_defaulted=no
1318 fi
1319 if test ! -r "$srcdir/$ac_unique_file"; then
1320 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1321 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1322 fi
1323 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1324 ac_abs_confdir=`(
1325 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1326 pwd)`
1327 # When building in place, set srcdir=.
1328 if test "$ac_abs_confdir" = "$ac_pwd"; then
1329 srcdir=.
1330 fi
1331 # Remove unnecessary trailing slashes from srcdir.
1332 # Double slashes in file names in object file debugging info
1333 # mess up M-x gdb in Emacs.
1334 case $srcdir in
1335 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1336 esac
1337 for ac_var in $ac_precious_vars; do
1338 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1339 eval ac_env_${ac_var}_value=\$${ac_var}
1340 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1341 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1342 done
1343
1344 #
1345 # Report the --help message.
1346 #
1347 if test "$ac_init_help" = "long"; then
1348 # Omit some internal or obsolete options to make the list less imposing.
1349 # This message is too long to be a string in the A/UX 3.1 sh.
1350 cat <<_ACEOF
1351 \`configure' configures GNU Offloading and Multi Processing Runtime Library 1.0 to adapt to many kinds of systems.
1352
1353 Usage: $0 [OPTION]... [VAR=VALUE]...
1354
1355 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1356 VAR=VALUE. See below for descriptions of some of the useful variables.
1357
1358 Defaults for the options are specified in brackets.
1359
1360 Configuration:
1361 -h, --help display this help and exit
1362 --help=short display options specific to this package
1363 --help=recursive display the short help of all the included packages
1364 -V, --version display version information and exit
1365 -q, --quiet, --silent do not print \`checking...' messages
1366 --cache-file=FILE cache test results in FILE [disabled]
1367 -C, --config-cache alias for \`--cache-file=config.cache'
1368 -n, --no-create do not create output files
1369 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1370
1371 Installation directories:
1372 --prefix=PREFIX install architecture-independent files in PREFIX
1373 [$ac_default_prefix]
1374 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1375 [PREFIX]
1376
1377 By default, \`make install' will install all the files in
1378 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1379 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1380 for instance \`--prefix=\$HOME'.
1381
1382 For better control, use the options below.
1383
1384 Fine tuning of the installation directories:
1385 --bindir=DIR user executables [EPREFIX/bin]
1386 --sbindir=DIR system admin executables [EPREFIX/sbin]
1387 --libexecdir=DIR program executables [EPREFIX/libexec]
1388 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1389 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1390 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1391 --libdir=DIR object code libraries [EPREFIX/lib]
1392 --includedir=DIR C header files [PREFIX/include]
1393 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1394 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1395 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1396 --infodir=DIR info documentation [DATAROOTDIR/info]
1397 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1398 --mandir=DIR man documentation [DATAROOTDIR/man]
1399 --docdir=DIR documentation root [DATAROOTDIR/doc/libgomp]
1400 --htmldir=DIR html documentation [DOCDIR]
1401 --dvidir=DIR dvi documentation [DOCDIR]
1402 --pdfdir=DIR pdf documentation [DOCDIR]
1403 --psdir=DIR ps documentation [DOCDIR]
1404 _ACEOF
1405
1406 cat <<\_ACEOF
1407
1408 Program names:
1409 --program-prefix=PREFIX prepend PREFIX to installed program names
1410 --program-suffix=SUFFIX append SUFFIX to installed program names
1411 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1412
1413 System types:
1414 --build=BUILD configure for building on BUILD [guessed]
1415 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1416 --target=TARGET configure for building compilers for TARGET [HOST]
1417 _ACEOF
1418 fi
1419
1420 if test -n "$ac_init_help"; then
1421 case $ac_init_help in
1422 short | recursive ) echo "Configuration of GNU Offloading and Multi Processing Runtime Library 1.0:";;
1423 esac
1424 cat <<\_ACEOF
1425
1426 Optional Features:
1427 --disable-option-checking ignore unrecognized --enable/--with options
1428 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1429 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1430 --enable-version-specific-runtime-libs
1431 Specify that runtime libraries should be installed
1432 in a compiler-specific directory [default=no]
1433 --enable-generated-files-in-srcdir
1434 put copies of generated files in source dir intended
1435 for creating source tarballs for users without
1436 texinfo bison or flex. [default=no]
1437 --enable-multilib build many library versions (default)
1438 --disable-dependency-tracking speeds up one-time build
1439 --enable-dependency-tracking do not reject slow dependency extractors
1440 --enable-shared[=PKGS] build shared libraries [default=yes]
1441 --enable-static[=PKGS] build static libraries [default=yes]
1442 --enable-fast-install[=PKGS]
1443 optimize for fast installation [default=yes]
1444 --disable-libtool-lock avoid locking (might break parallel builds)
1445 --enable-maintainer-mode enable make rules and dependencies not useful
1446 (and sometimes confusing) to the casual installer
1447 --enable-linux-futex use the Linux futex system call [default=default]
1448 --enable-tls Use thread-local storage [default=yes]
1449 --enable-symvers=STYLE enables symbol versioning of the shared library
1450 [default=yes]
1451
1452 Optional Packages:
1453 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1454 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1455 --with-pic try to use only PIC/non-PIC objects [default=use
1456 both]
1457 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1458 --with-cuda-driver=PATH specify prefix directory for installed CUDA driver
1459 package. Equivalent to
1460 --with-cuda-driver-include=PATH/include plus
1461 --with-cuda-driver-lib=PATH/lib
1462 --with-cuda-driver-include=PATH
1463 specify directory for installed CUDA driver include
1464 files
1465 --with-cuda-driver-lib=PATH
1466 specify directory for the installed CUDA driver
1467 library
1468 --with-hsa-runtime=PATH specify prefix directory for installed HSA run-time
1469 package. Equivalent to
1470 --with-hsa-runtime-include=PATH/include plus
1471 --with-hsa-runtime-lib=PATH/lib
1472 --with-hsa-runtime-include=PATH
1473 specify directory for installed HSA run-time include
1474 files
1475 --with-hsa-runtime-lib=PATH
1476 specify directory for the installed HSA run-time
1477 library
1478
1479 Some influential environment variables:
1480 CC C compiler command
1481 CFLAGS C compiler flags
1482 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1483 nonstandard directory <lib dir>
1484 LIBS libraries to pass to the linker, e.g. -l<library>
1485 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1486 you have headers in a nonstandard directory <include dir>
1487 CPP C preprocessor
1488 FC Fortran compiler command
1489 FCFLAGS Fortran compiler flags
1490
1491 Use these variables to override the choices made by `configure' or to help
1492 it to find libraries and programs with nonstandard names/locations.
1493
1494 Report bugs to the package provider.
1495 GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
1496 General help using GNU software: <http://www.gnu.org/gethelp/>.
1497 _ACEOF
1498 ac_status=$?
1499 fi
1500
1501 if test "$ac_init_help" = "recursive"; then
1502 # If there are subdirs, report their specific --help.
1503 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1504 test -d "$ac_dir" ||
1505 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1506 continue
1507 ac_builddir=.
1508
1509 case "$ac_dir" in
1510 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1511 *)
1512 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1513 # A ".." for each directory in $ac_dir_suffix.
1514 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1515 case $ac_top_builddir_sub in
1516 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1517 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1518 esac ;;
1519 esac
1520 ac_abs_top_builddir=$ac_pwd
1521 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1522 # for backward compatibility:
1523 ac_top_builddir=$ac_top_build_prefix
1524
1525 case $srcdir in
1526 .) # We are building in place.
1527 ac_srcdir=.
1528 ac_top_srcdir=$ac_top_builddir_sub
1529 ac_abs_top_srcdir=$ac_pwd ;;
1530 [\\/]* | ?:[\\/]* ) # Absolute name.
1531 ac_srcdir=$srcdir$ac_dir_suffix;
1532 ac_top_srcdir=$srcdir
1533 ac_abs_top_srcdir=$srcdir ;;
1534 *) # Relative name.
1535 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1536 ac_top_srcdir=$ac_top_build_prefix$srcdir
1537 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1538 esac
1539 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1540
1541 cd "$ac_dir" || { ac_status=$?; continue; }
1542 # Check for guested configure.
1543 if test -f "$ac_srcdir/configure.gnu"; then
1544 echo &&
1545 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1546 elif test -f "$ac_srcdir/configure"; then
1547 echo &&
1548 $SHELL "$ac_srcdir/configure" --help=recursive
1549 else
1550 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1551 fi || ac_status=$?
1552 cd "$ac_pwd" || { ac_status=$?; break; }
1553 done
1554 fi
1555
1556 test -n "$ac_init_help" && exit $ac_status
1557 if $ac_init_version; then
1558 cat <<\_ACEOF
1559 GNU Offloading and Multi Processing Runtime Library configure 1.0
1560 generated by GNU Autoconf 2.64
1561
1562 Copyright (C) 2009 Free Software Foundation, Inc.
1563 This configure script is free software; the Free Software Foundation
1564 gives unlimited permission to copy, distribute and modify it.
1565 _ACEOF
1566 exit
1567 fi
1568
1569 ## ------------------------ ##
1570 ## Autoconf initialization. ##
1571 ## ------------------------ ##
1572
1573 # ac_fn_c_try_compile LINENO
1574 # --------------------------
1575 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1576 ac_fn_c_try_compile ()
1577 {
1578 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1579 rm -f conftest.$ac_objext
1580 if { { ac_try="$ac_compile"
1581 case "(($ac_try" in
1582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1583 *) ac_try_echo=$ac_try;;
1584 esac
1585 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1586 $as_echo "$ac_try_echo"; } >&5
1587 (eval "$ac_compile") 2>conftest.err
1588 ac_status=$?
1589 if test -s conftest.err; then
1590 grep -v '^ *+' conftest.err >conftest.er1
1591 cat conftest.er1 >&5
1592 mv -f conftest.er1 conftest.err
1593 fi
1594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1595 test $ac_status = 0; } && {
1596 test -z "$ac_c_werror_flag" ||
1597 test ! -s conftest.err
1598 } && test -s conftest.$ac_objext; then :
1599 ac_retval=0
1600 else
1601 $as_echo "$as_me: failed program was:" >&5
1602 sed 's/^/| /' conftest.$ac_ext >&5
1603
1604 ac_retval=1
1605 fi
1606 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1607 return $ac_retval
1608
1609 } # ac_fn_c_try_compile
1610
1611 # ac_fn_c_try_link LINENO
1612 # -----------------------
1613 # Try to link conftest.$ac_ext, and return whether this succeeded.
1614 ac_fn_c_try_link ()
1615 {
1616 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1617 rm -f conftest.$ac_objext conftest$ac_exeext
1618 if { { ac_try="$ac_link"
1619 case "(($ac_try" in
1620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1621 *) ac_try_echo=$ac_try;;
1622 esac
1623 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1624 $as_echo "$ac_try_echo"; } >&5
1625 (eval "$ac_link") 2>conftest.err
1626 ac_status=$?
1627 if test -s conftest.err; then
1628 grep -v '^ *+' conftest.err >conftest.er1
1629 cat conftest.er1 >&5
1630 mv -f conftest.er1 conftest.err
1631 fi
1632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1633 test $ac_status = 0; } && {
1634 test -z "$ac_c_werror_flag" ||
1635 test ! -s conftest.err
1636 } && test -s conftest$ac_exeext && {
1637 test "$cross_compiling" = yes ||
1638 $as_test_x conftest$ac_exeext
1639 }; then :
1640 ac_retval=0
1641 else
1642 $as_echo "$as_me: failed program was:" >&5
1643 sed 's/^/| /' conftest.$ac_ext >&5
1644
1645 ac_retval=1
1646 fi
1647 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1648 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1649 # interfere with the next link command; also delete a directory that is
1650 # left behind by Apple's compiler. We do this before executing the actions.
1651 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1652 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1653 return $ac_retval
1654
1655 } # ac_fn_c_try_link
1656
1657 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1658 # -------------------------------------------------------
1659 # Tests whether HEADER exists and can be compiled using the include files in
1660 # INCLUDES, setting the cache variable VAR accordingly.
1661 ac_fn_c_check_header_compile ()
1662 {
1663 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1665 $as_echo_n "checking for $2... " >&6; }
1666 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1667 $as_echo_n "(cached) " >&6
1668 else
1669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1670 /* end confdefs.h. */
1671 $4
1672 #include <$2>
1673 _ACEOF
1674 if ac_fn_c_try_compile "$LINENO"; then :
1675 eval "$3=yes"
1676 else
1677 eval "$3=no"
1678 fi
1679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1680 fi
1681 eval ac_res=\$$3
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1683 $as_echo "$ac_res" >&6; }
1684 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1685
1686 } # ac_fn_c_check_header_compile
1687
1688 # ac_fn_c_try_cpp LINENO
1689 # ----------------------
1690 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1691 ac_fn_c_try_cpp ()
1692 {
1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694 if { { ac_try="$ac_cpp conftest.$ac_ext"
1695 case "(($ac_try" in
1696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697 *) ac_try_echo=$ac_try;;
1698 esac
1699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700 $as_echo "$ac_try_echo"; } >&5
1701 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1702 ac_status=$?
1703 if test -s conftest.err; then
1704 grep -v '^ *+' conftest.err >conftest.er1
1705 cat conftest.er1 >&5
1706 mv -f conftest.er1 conftest.err
1707 fi
1708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709 test $ac_status = 0; } >/dev/null && {
1710 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1711 test ! -s conftest.err
1712 }; then :
1713 ac_retval=0
1714 else
1715 $as_echo "$as_me: failed program was:" >&5
1716 sed 's/^/| /' conftest.$ac_ext >&5
1717
1718 ac_retval=1
1719 fi
1720 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1721 return $ac_retval
1722
1723 } # ac_fn_c_try_cpp
1724
1725 # ac_fn_c_try_run LINENO
1726 # ----------------------
1727 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1728 # that executables *can* be run.
1729 ac_fn_c_try_run ()
1730 {
1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732 if { { ac_try="$ac_link"
1733 case "(($ac_try" in
1734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735 *) ac_try_echo=$ac_try;;
1736 esac
1737 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738 $as_echo "$ac_try_echo"; } >&5
1739 (eval "$ac_link") 2>&5
1740 ac_status=$?
1741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1742 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1743 { { case "(($ac_try" in
1744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745 *) ac_try_echo=$ac_try;;
1746 esac
1747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748 $as_echo "$ac_try_echo"; } >&5
1749 (eval "$ac_try") 2>&5
1750 ac_status=$?
1751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1752 test $ac_status = 0; }; }; then :
1753 ac_retval=0
1754 else
1755 $as_echo "$as_me: program exited with status $ac_status" >&5
1756 $as_echo "$as_me: failed program was:" >&5
1757 sed 's/^/| /' conftest.$ac_ext >&5
1758
1759 ac_retval=$ac_status
1760 fi
1761 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1762 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1763 return $ac_retval
1764
1765 } # ac_fn_c_try_run
1766
1767 # ac_fn_c_check_func LINENO FUNC VAR
1768 # ----------------------------------
1769 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1770 ac_fn_c_check_func ()
1771 {
1772 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1774 $as_echo_n "checking for $2... " >&6; }
1775 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1776 $as_echo_n "(cached) " >&6
1777 else
1778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1779 /* end confdefs.h. */
1780 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1781 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1782 #define $2 innocuous_$2
1783
1784 /* System header to define __stub macros and hopefully few prototypes,
1785 which can conflict with char $2 (); below.
1786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1787 <limits.h> exists even on freestanding compilers. */
1788
1789 #ifdef __STDC__
1790 # include <limits.h>
1791 #else
1792 # include <assert.h>
1793 #endif
1794
1795 #undef $2
1796
1797 /* Override any GCC internal prototype to avoid an error.
1798 Use char because int might match the return type of a GCC
1799 builtin and then its argument prototype would still apply. */
1800 #ifdef __cplusplus
1801 extern "C"
1802 #endif
1803 char $2 ();
1804 /* The GNU C library defines this for functions which it implements
1805 to always fail with ENOSYS. Some functions are actually named
1806 something starting with __ and the normal name is an alias. */
1807 #if defined __stub_$2 || defined __stub___$2
1808 choke me
1809 #endif
1810
1811 int
1812 main ()
1813 {
1814 return $2 ();
1815 ;
1816 return 0;
1817 }
1818 _ACEOF
1819 if ac_fn_c_try_link "$LINENO"; then :
1820 eval "$3=yes"
1821 else
1822 eval "$3=no"
1823 fi
1824 rm -f core conftest.err conftest.$ac_objext \
1825 conftest$ac_exeext conftest.$ac_ext
1826 fi
1827 eval ac_res=\$$3
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1829 $as_echo "$ac_res" >&6; }
1830 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1831
1832 } # ac_fn_c_check_func
1833
1834 # ac_fn_fc_try_compile LINENO
1835 # ---------------------------
1836 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1837 ac_fn_fc_try_compile ()
1838 {
1839 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1840 rm -f conftest.$ac_objext
1841 if { { ac_try="$ac_compile"
1842 case "(($ac_try" in
1843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1844 *) ac_try_echo=$ac_try;;
1845 esac
1846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1847 $as_echo "$ac_try_echo"; } >&5
1848 (eval "$ac_compile") 2>conftest.err
1849 ac_status=$?
1850 if test -s conftest.err; then
1851 grep -v '^ *+' conftest.err >conftest.er1
1852 cat conftest.er1 >&5
1853 mv -f conftest.er1 conftest.err
1854 fi
1855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1856 test $ac_status = 0; } && {
1857 test -z "$ac_fc_werror_flag" ||
1858 test ! -s conftest.err
1859 } && test -s conftest.$ac_objext; then :
1860 ac_retval=0
1861 else
1862 $as_echo "$as_me: failed program was:" >&5
1863 sed 's/^/| /' conftest.$ac_ext >&5
1864
1865 ac_retval=1
1866 fi
1867 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1868 return $ac_retval
1869
1870 } # ac_fn_fc_try_compile
1871
1872 # ac_fn_fc_try_link LINENO
1873 # ------------------------
1874 # Try to link conftest.$ac_ext, and return whether this succeeded.
1875 ac_fn_fc_try_link ()
1876 {
1877 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1878 rm -f conftest.$ac_objext conftest$ac_exeext
1879 if { { ac_try="$ac_link"
1880 case "(($ac_try" in
1881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1882 *) ac_try_echo=$ac_try;;
1883 esac
1884 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1885 $as_echo "$ac_try_echo"; } >&5
1886 (eval "$ac_link") 2>conftest.err
1887 ac_status=$?
1888 if test -s conftest.err; then
1889 grep -v '^ *+' conftest.err >conftest.er1
1890 cat conftest.er1 >&5
1891 mv -f conftest.er1 conftest.err
1892 fi
1893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1894 test $ac_status = 0; } && {
1895 test -z "$ac_fc_werror_flag" ||
1896 test ! -s conftest.err
1897 } && test -s conftest$ac_exeext && {
1898 test "$cross_compiling" = yes ||
1899 $as_test_x conftest$ac_exeext
1900 }; then :
1901 ac_retval=0
1902 else
1903 $as_echo "$as_me: failed program was:" >&5
1904 sed 's/^/| /' conftest.$ac_ext >&5
1905
1906 ac_retval=1
1907 fi
1908 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1909 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1910 # interfere with the next link command; also delete a directory that is
1911 # left behind by Apple's compiler. We do this before executing the actions.
1912 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1913 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1914 return $ac_retval
1915
1916 } # ac_fn_fc_try_link
1917
1918 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1919 # -------------------------------------------------------
1920 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1921 # the include files in INCLUDES and setting the cache variable VAR
1922 # accordingly.
1923 ac_fn_c_check_header_mongrel ()
1924 {
1925 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1926 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1928 $as_echo_n "checking for $2... " >&6; }
1929 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1930 $as_echo_n "(cached) " >&6
1931 fi
1932 eval ac_res=\$$3
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1934 $as_echo "$ac_res" >&6; }
1935 else
1936 # Is the header compilable?
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1938 $as_echo_n "checking $2 usability... " >&6; }
1939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1940 /* end confdefs.h. */
1941 $4
1942 #include <$2>
1943 _ACEOF
1944 if ac_fn_c_try_compile "$LINENO"; then :
1945 ac_header_compiler=yes
1946 else
1947 ac_header_compiler=no
1948 fi
1949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1951 $as_echo "$ac_header_compiler" >&6; }
1952
1953 # Is the header present?
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1955 $as_echo_n "checking $2 presence... " >&6; }
1956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1957 /* end confdefs.h. */
1958 #include <$2>
1959 _ACEOF
1960 if ac_fn_c_try_cpp "$LINENO"; then :
1961 ac_header_preproc=yes
1962 else
1963 ac_header_preproc=no
1964 fi
1965 rm -f conftest.err conftest.$ac_ext
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1967 $as_echo "$ac_header_preproc" >&6; }
1968
1969 # So? What about this header?
1970 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1971 yes:no: )
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1973 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1975 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1976 ;;
1977 no:yes:* )
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1979 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1981 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1983 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1985 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1987 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1988 ;;
1989 esac
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1991 $as_echo_n "checking for $2... " >&6; }
1992 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1993 $as_echo_n "(cached) " >&6
1994 else
1995 eval "$3=\$ac_header_compiler"
1996 fi
1997 eval ac_res=\$$3
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1999 $as_echo "$ac_res" >&6; }
2000 fi
2001 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2002
2003 } # ac_fn_c_check_header_mongrel
2004
2005 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2006 # -------------------------------------------
2007 # Tests whether TYPE exists after having included INCLUDES, setting cache
2008 # variable VAR accordingly.
2009 ac_fn_c_check_type ()
2010 {
2011 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2013 $as_echo_n "checking for $2... " >&6; }
2014 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2015 $as_echo_n "(cached) " >&6
2016 else
2017 eval "$3=no"
2018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2019 /* end confdefs.h. */
2020 $4
2021 int
2022 main ()
2023 {
2024 if (sizeof ($2))
2025 return 0;
2026 ;
2027 return 0;
2028 }
2029 _ACEOF
2030 if ac_fn_c_try_compile "$LINENO"; then :
2031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2032 /* end confdefs.h. */
2033 $4
2034 int
2035 main ()
2036 {
2037 if (sizeof (($2)))
2038 return 0;
2039 ;
2040 return 0;
2041 }
2042 _ACEOF
2043 if ac_fn_c_try_compile "$LINENO"; then :
2044
2045 else
2046 eval "$3=yes"
2047 fi
2048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2049 fi
2050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2051 fi
2052 eval ac_res=\$$3
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2054 $as_echo "$ac_res" >&6; }
2055 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2056
2057 } # ac_fn_c_check_type
2058
2059 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2060 # --------------------------------------------
2061 # Tries to find the compile-time value of EXPR in a program that includes
2062 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2063 # computed
2064 ac_fn_c_compute_int ()
2065 {
2066 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2067 if test "$cross_compiling" = yes; then
2068 # Depending upon the size, compute the lo and hi bounds.
2069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2070 /* end confdefs.h. */
2071 $4
2072 int
2073 main ()
2074 {
2075 static int test_array [1 - 2 * !(($2) >= 0)];
2076 test_array [0] = 0
2077
2078 ;
2079 return 0;
2080 }
2081 _ACEOF
2082 if ac_fn_c_try_compile "$LINENO"; then :
2083 ac_lo=0 ac_mid=0
2084 while :; do
2085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2086 /* end confdefs.h. */
2087 $4
2088 int
2089 main ()
2090 {
2091 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2092 test_array [0] = 0
2093
2094 ;
2095 return 0;
2096 }
2097 _ACEOF
2098 if ac_fn_c_try_compile "$LINENO"; then :
2099 ac_hi=$ac_mid; break
2100 else
2101 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2102 if test $ac_lo -le $ac_mid; then
2103 ac_lo= ac_hi=
2104 break
2105 fi
2106 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2107 fi
2108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2109 done
2110 else
2111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2112 /* end confdefs.h. */
2113 $4
2114 int
2115 main ()
2116 {
2117 static int test_array [1 - 2 * !(($2) < 0)];
2118 test_array [0] = 0
2119
2120 ;
2121 return 0;
2122 }
2123 _ACEOF
2124 if ac_fn_c_try_compile "$LINENO"; then :
2125 ac_hi=-1 ac_mid=-1
2126 while :; do
2127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2128 /* end confdefs.h. */
2129 $4
2130 int
2131 main ()
2132 {
2133 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2134 test_array [0] = 0
2135
2136 ;
2137 return 0;
2138 }
2139 _ACEOF
2140 if ac_fn_c_try_compile "$LINENO"; then :
2141 ac_lo=$ac_mid; break
2142 else
2143 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2144 if test $ac_mid -le $ac_hi; then
2145 ac_lo= ac_hi=
2146 break
2147 fi
2148 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2149 fi
2150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2151 done
2152 else
2153 ac_lo= ac_hi=
2154 fi
2155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2156 fi
2157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2158 # Binary search between lo and hi bounds.
2159 while test "x$ac_lo" != "x$ac_hi"; do
2160 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2162 /* end confdefs.h. */
2163 $4
2164 int
2165 main ()
2166 {
2167 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2168 test_array [0] = 0
2169
2170 ;
2171 return 0;
2172 }
2173 _ACEOF
2174 if ac_fn_c_try_compile "$LINENO"; then :
2175 ac_hi=$ac_mid
2176 else
2177 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2178 fi
2179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2180 done
2181 case $ac_lo in #((
2182 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2183 '') ac_retval=1 ;;
2184 esac
2185 else
2186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2187 /* end confdefs.h. */
2188 $4
2189 static long int longval () { return $2; }
2190 static unsigned long int ulongval () { return $2; }
2191 #include <stdio.h>
2192 #include <stdlib.h>
2193 int
2194 main ()
2195 {
2196
2197 FILE *f = fopen ("conftest.val", "w");
2198 if (! f)
2199 return 1;
2200 if (($2) < 0)
2201 {
2202 long int i = longval ();
2203 if (i != ($2))
2204 return 1;
2205 fprintf (f, "%ld", i);
2206 }
2207 else
2208 {
2209 unsigned long int i = ulongval ();
2210 if (i != ($2))
2211 return 1;
2212 fprintf (f, "%lu", i);
2213 }
2214 /* Do not output a trailing newline, as this causes \r\n confusion
2215 on some platforms. */
2216 return ferror (f) || fclose (f) != 0;
2217
2218 ;
2219 return 0;
2220 }
2221 _ACEOF
2222 if ac_fn_c_try_run "$LINENO"; then :
2223 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2224 else
2225 ac_retval=1
2226 fi
2227 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2228 conftest.$ac_objext conftest.beam conftest.$ac_ext
2229 rm -f conftest.val
2230
2231 fi
2232 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2233 return $ac_retval
2234
2235 } # ac_fn_c_compute_int
2236 cat >config.log <<_ACEOF
2237 This file contains any messages produced by compilers while
2238 running configure, to aid debugging if configure makes a mistake.
2239
2240 It was created by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was
2241 generated by GNU Autoconf 2.64. Invocation command line was
2242
2243 $ $0 $@
2244
2245 _ACEOF
2246 exec 5>>config.log
2247 {
2248 cat <<_ASUNAME
2249 ## --------- ##
2250 ## Platform. ##
2251 ## --------- ##
2252
2253 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2254 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2255 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2256 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2257 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2258
2259 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2260 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2261
2262 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2263 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2264 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2265 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2266 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2267 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2268 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2269
2270 _ASUNAME
2271
2272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2273 for as_dir in $PATH
2274 do
2275 IFS=$as_save_IFS
2276 test -z "$as_dir" && as_dir=.
2277 $as_echo "PATH: $as_dir"
2278 done
2279 IFS=$as_save_IFS
2280
2281 } >&5
2282
2283 cat >&5 <<_ACEOF
2284
2285
2286 ## ----------- ##
2287 ## Core tests. ##
2288 ## ----------- ##
2289
2290 _ACEOF
2291
2292
2293 # Keep a trace of the command line.
2294 # Strip out --no-create and --no-recursion so they do not pile up.
2295 # Strip out --silent because we don't want to record it for future runs.
2296 # Also quote any args containing shell meta-characters.
2297 # Make two passes to allow for proper duplicate-argument suppression.
2298 ac_configure_args=
2299 ac_configure_args0=
2300 ac_configure_args1=
2301 ac_must_keep_next=false
2302 for ac_pass in 1 2
2303 do
2304 for ac_arg
2305 do
2306 case $ac_arg in
2307 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2308 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2309 | -silent | --silent | --silen | --sile | --sil)
2310 continue ;;
2311 *\'*)
2312 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2313 esac
2314 case $ac_pass in
2315 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2316 2)
2317 as_fn_append ac_configure_args1 " '$ac_arg'"
2318 if test $ac_must_keep_next = true; then
2319 ac_must_keep_next=false # Got value, back to normal.
2320 else
2321 case $ac_arg in
2322 *=* | --config-cache | -C | -disable-* | --disable-* \
2323 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2324 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2325 | -with-* | --with-* | -without-* | --without-* | --x)
2326 case "$ac_configure_args0 " in
2327 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2328 esac
2329 ;;
2330 -* ) ac_must_keep_next=true ;;
2331 esac
2332 fi
2333 as_fn_append ac_configure_args " '$ac_arg'"
2334 ;;
2335 esac
2336 done
2337 done
2338 { ac_configure_args0=; unset ac_configure_args0;}
2339 { ac_configure_args1=; unset ac_configure_args1;}
2340
2341 # When interrupted or exit'd, cleanup temporary files, and complete
2342 # config.log. We remove comments because anyway the quotes in there
2343 # would cause problems or look ugly.
2344 # WARNING: Use '\'' to represent an apostrophe within the trap.
2345 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2346 trap 'exit_status=$?
2347 # Save into config.log some information that might help in debugging.
2348 {
2349 echo
2350
2351 cat <<\_ASBOX
2352 ## ---------------- ##
2353 ## Cache variables. ##
2354 ## ---------------- ##
2355 _ASBOX
2356 echo
2357 # The following way of writing the cache mishandles newlines in values,
2358 (
2359 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2360 eval ac_val=\$$ac_var
2361 case $ac_val in #(
2362 *${as_nl}*)
2363 case $ac_var in #(
2364 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2365 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2366 esac
2367 case $ac_var in #(
2368 _ | IFS | as_nl) ;; #(
2369 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2370 *) { eval $ac_var=; unset $ac_var;} ;;
2371 esac ;;
2372 esac
2373 done
2374 (set) 2>&1 |
2375 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2376 *${as_nl}ac_space=\ *)
2377 sed -n \
2378 "s/'\''/'\''\\\\'\'''\''/g;
2379 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2380 ;; #(
2381 *)
2382 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2383 ;;
2384 esac |
2385 sort
2386 )
2387 echo
2388
2389 cat <<\_ASBOX
2390 ## ----------------- ##
2391 ## Output variables. ##
2392 ## ----------------- ##
2393 _ASBOX
2394 echo
2395 for ac_var in $ac_subst_vars
2396 do
2397 eval ac_val=\$$ac_var
2398 case $ac_val in
2399 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2400 esac
2401 $as_echo "$ac_var='\''$ac_val'\''"
2402 done | sort
2403 echo
2404
2405 if test -n "$ac_subst_files"; then
2406 cat <<\_ASBOX
2407 ## ------------------- ##
2408 ## File substitutions. ##
2409 ## ------------------- ##
2410 _ASBOX
2411 echo
2412 for ac_var in $ac_subst_files
2413 do
2414 eval ac_val=\$$ac_var
2415 case $ac_val in
2416 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2417 esac
2418 $as_echo "$ac_var='\''$ac_val'\''"
2419 done | sort
2420 echo
2421 fi
2422
2423 if test -s confdefs.h; then
2424 cat <<\_ASBOX
2425 ## ----------- ##
2426 ## confdefs.h. ##
2427 ## ----------- ##
2428 _ASBOX
2429 echo
2430 cat confdefs.h
2431 echo
2432 fi
2433 test "$ac_signal" != 0 &&
2434 $as_echo "$as_me: caught signal $ac_signal"
2435 $as_echo "$as_me: exit $exit_status"
2436 } >&5
2437 rm -f core *.core core.conftest.* &&
2438 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2439 exit $exit_status
2440 ' 0
2441 for ac_signal in 1 2 13 15; do
2442 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2443 done
2444 ac_signal=0
2445
2446 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2447 rm -f -r conftest* confdefs.h
2448
2449 $as_echo "/* confdefs.h */" > confdefs.h
2450
2451 # Predefined preprocessor variables.
2452
2453 cat >>confdefs.h <<_ACEOF
2454 #define PACKAGE_NAME "$PACKAGE_NAME"
2455 _ACEOF
2456
2457 cat >>confdefs.h <<_ACEOF
2458 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2459 _ACEOF
2460
2461 cat >>confdefs.h <<_ACEOF
2462 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2463 _ACEOF
2464
2465 cat >>confdefs.h <<_ACEOF
2466 #define PACKAGE_STRING "$PACKAGE_STRING"
2467 _ACEOF
2468
2469 cat >>confdefs.h <<_ACEOF
2470 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2471 _ACEOF
2472
2473 cat >>confdefs.h <<_ACEOF
2474 #define PACKAGE_URL "$PACKAGE_URL"
2475 _ACEOF
2476
2477
2478 # Let the site file select an alternate cache file if it wants to.
2479 # Prefer an explicitly selected file to automatically selected ones.
2480 ac_site_file1=NONE
2481 ac_site_file2=NONE
2482 if test -n "$CONFIG_SITE"; then
2483 ac_site_file1=$CONFIG_SITE
2484 elif test "x$prefix" != xNONE; then
2485 ac_site_file1=$prefix/share/config.site
2486 ac_site_file2=$prefix/etc/config.site
2487 else
2488 ac_site_file1=$ac_default_prefix/share/config.site
2489 ac_site_file2=$ac_default_prefix/etc/config.site
2490 fi
2491 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2492 do
2493 test "x$ac_site_file" = xNONE && continue
2494 if test -r "$ac_site_file"; then
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2496 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2497 sed 's/^/| /' "$ac_site_file" >&5
2498 . "$ac_site_file"
2499 fi
2500 done
2501
2502 if test -r "$cache_file"; then
2503 # Some versions of bash will fail to source /dev/null (special
2504 # files actually), so we avoid doing that.
2505 if test -f "$cache_file"; then
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2507 $as_echo "$as_me: loading cache $cache_file" >&6;}
2508 case $cache_file in
2509 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2510 *) . "./$cache_file";;
2511 esac
2512 fi
2513 else
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2515 $as_echo "$as_me: creating cache $cache_file" >&6;}
2516 >$cache_file
2517 fi
2518
2519 as_fn_append ac_header_list " unistd.h"
2520 as_fn_append ac_func_list " secure_getenv"
2521 as_fn_append ac_func_list " __secure_getenv"
2522 as_fn_append ac_func_list " getuid"
2523 as_fn_append ac_func_list " geteuid"
2524 as_fn_append ac_func_list " getgid"
2525 as_fn_append ac_func_list " getegid"
2526 # Check that the precious variables saved in the cache have kept the same
2527 # value.
2528 ac_cache_corrupted=false
2529 for ac_var in $ac_precious_vars; do
2530 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2531 eval ac_new_set=\$ac_env_${ac_var}_set
2532 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2533 eval ac_new_val=\$ac_env_${ac_var}_value
2534 case $ac_old_set,$ac_new_set in
2535 set,)
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2537 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2538 ac_cache_corrupted=: ;;
2539 ,set)
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2541 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2542 ac_cache_corrupted=: ;;
2543 ,);;
2544 *)
2545 if test "x$ac_old_val" != "x$ac_new_val"; then
2546 # differences in whitespace do not lead to failure.
2547 ac_old_val_w=`echo x $ac_old_val`
2548 ac_new_val_w=`echo x $ac_new_val`
2549 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2551 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2552 ac_cache_corrupted=:
2553 else
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2555 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2556 eval $ac_var=\$ac_old_val
2557 fi
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2559 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2561 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2562 fi;;
2563 esac
2564 # Pass precious variables to config.status.
2565 if test "$ac_new_set" = set; then
2566 case $ac_new_val in
2567 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2568 *) ac_arg=$ac_var=$ac_new_val ;;
2569 esac
2570 case " $ac_configure_args " in
2571 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2572 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2573 esac
2574 fi
2575 done
2576 if $ac_cache_corrupted; then
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2578 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2580 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2581 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2582 fi
2583 ## -------------------- ##
2584 ## Main body of script. ##
2585 ## -------------------- ##
2586
2587 ac_ext=c
2588 ac_cpp='$CPP $CPPFLAGS'
2589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2592
2593
2594
2595
2596
2597 ac_config_headers="$ac_config_headers config.h"
2598
2599
2600 # -------
2601 # Options
2602 # -------
2603
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2605 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2606 # Check whether --enable-version-specific-runtime-libs was given.
2607 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2608 enableval=$enable_version_specific_runtime_libs;
2609 case "$enableval" in
2610 yes|no) ;;
2611 *) as_fn_error "Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
2612 esac
2613
2614 else
2615 enable_version_specific_runtime_libs=no
2616 fi
2617
2618
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
2620 $as_echo "$enable_version_specific_runtime_libs" >&6; }
2621
2622 # We would like our source tree to be readonly. However when releases or
2623 # pre-releases are generated, the flex/bison generated files as well as the
2624 # various formats of manuals need to be included along with the rest of the
2625 # sources. Therefore we have --enable-generated-files-in-srcdir to do
2626 # just that.
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
2628 $as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
2629 # Check whether --enable-generated-files-in-srcdir was given.
2630 if test "${enable_generated_files_in_srcdir+set}" = set; then :
2631 enableval=$enable_generated_files_in_srcdir;
2632 case "$enableval" in
2633 yes|no) ;;
2634 *) as_fn_error "Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
2635 esac
2636
2637 else
2638 enable_generated_files_in_srcdir=no
2639 fi
2640
2641
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
2643 $as_echo "$enable_generated_files_in_srcdir" >&6; }
2644 if test "$enable_generated_files_in_srcdir" = yes; then
2645 GENINSRC_TRUE=
2646 GENINSRC_FALSE='#'
2647 else
2648 GENINSRC_TRUE='#'
2649 GENINSRC_FALSE=
2650 fi
2651
2652
2653
2654 # -------
2655 # -------
2656
2657 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2658 #
2659 # You will slowly go insane if you do not grok the following fact: when
2660 # building this library, the top-level /target/ becomes the library's /host/.
2661 #
2662 # configure then causes --target to default to --host, exactly like any
2663 # other package using autoconf. Therefore, 'target' and 'host' will
2664 # always be the same. This makes sense both for native and cross compilers
2665 # just think about it for a little while. :-)
2666 #
2667 # Also, if this library is being configured as part of a cross compiler, the
2668 # top-level configure script will pass the "real" host as $with_cross_host.
2669 #
2670 # Do not delete or change the following two lines. For why, see
2671 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2672 ac_aux_dir=
2673 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2674 for ac_t in install-sh install.sh shtool; do
2675 if test -f "$ac_dir/$ac_t"; then
2676 ac_aux_dir=$ac_dir
2677 ac_install_sh="$ac_aux_dir/$ac_t -c"
2678 break 2
2679 fi
2680 done
2681 done
2682 if test -z "$ac_aux_dir"; then
2683 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2684 fi
2685
2686 # These three variables are undocumented and unsupported,
2687 # and are intended to be withdrawn in a future Autoconf release.
2688 # They can cause serious problems if a builder's source tree is in a directory
2689 # whose full name contains unusual characters.
2690 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2691 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2692 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2693
2694
2695 # Make sure we can run config.sub.
2696 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2697 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2698
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2700 $as_echo_n "checking build system type... " >&6; }
2701 if test "${ac_cv_build+set}" = set; then :
2702 $as_echo_n "(cached) " >&6
2703 else
2704 ac_build_alias=$build_alias
2705 test "x$ac_build_alias" = x &&
2706 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2707 test "x$ac_build_alias" = x &&
2708 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2709 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2710 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2711
2712 fi
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2714 $as_echo "$ac_cv_build" >&6; }
2715 case $ac_cv_build in
2716 *-*-*) ;;
2717 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2718 esac
2719 build=$ac_cv_build
2720 ac_save_IFS=$IFS; IFS='-'
2721 set x $ac_cv_build
2722 shift
2723 build_cpu=$1
2724 build_vendor=$2
2725 shift; shift
2726 # Remember, the first character of IFS is used to create $*,
2727 # except with old shells:
2728 build_os=$*
2729 IFS=$ac_save_IFS
2730 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2731
2732
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2734 $as_echo_n "checking host system type... " >&6; }
2735 if test "${ac_cv_host+set}" = set; then :
2736 $as_echo_n "(cached) " >&6
2737 else
2738 if test "x$host_alias" = x; then
2739 ac_cv_host=$ac_cv_build
2740 else
2741 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2742 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2743 fi
2744
2745 fi
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2747 $as_echo "$ac_cv_host" >&6; }
2748 case $ac_cv_host in
2749 *-*-*) ;;
2750 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2751 esac
2752 host=$ac_cv_host
2753 ac_save_IFS=$IFS; IFS='-'
2754 set x $ac_cv_host
2755 shift
2756 host_cpu=$1
2757 host_vendor=$2
2758 shift; shift
2759 # Remember, the first character of IFS is used to create $*,
2760 # except with old shells:
2761 host_os=$*
2762 IFS=$ac_save_IFS
2763 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2764
2765
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2767 $as_echo_n "checking target system type... " >&6; }
2768 if test "${ac_cv_target+set}" = set; then :
2769 $as_echo_n "(cached) " >&6
2770 else
2771 if test "x$target_alias" = x; then
2772 ac_cv_target=$ac_cv_host
2773 else
2774 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2775 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2776 fi
2777
2778 fi
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2780 $as_echo "$ac_cv_target" >&6; }
2781 case $ac_cv_target in
2782 *-*-*) ;;
2783 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2784 esac
2785 target=$ac_cv_target
2786 ac_save_IFS=$IFS; IFS='-'
2787 set x $ac_cv_target
2788 shift
2789 target_cpu=$1
2790 target_vendor=$2
2791 shift; shift
2792 # Remember, the first character of IFS is used to create $*,
2793 # except with old shells:
2794 target_os=$*
2795 IFS=$ac_save_IFS
2796 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2797
2798
2799 # The aliases save the names the user supplied, while $host etc.
2800 # will get canonicalized.
2801 test -n "$target_alias" &&
2802 test "$program_prefix$program_suffix$program_transform_name" = \
2803 NONENONEs,x,x, &&
2804 program_prefix=${target_alias}-
2805
2806 target_alias=${target_alias-$host_alias}
2807
2808 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2809 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2810 # 1.9.0: minimum required version
2811 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2812 # of other PACKAGE_* variables will, however, and there's nothing
2813 # we can do about that; they come from AC_INIT).
2814 # foreign: we don't follow the normal rules for GNU packages (no COPYING
2815 # file in the top srcdir, etc, etc), so stop complaining.
2816 # no-dist: we don't want 'dist' and related rules.
2817 # -Wall: turns on all automake warnings...
2818 # -Wno-portability: ...except this one, since GNU make is required.
2819 # -Wno-override: ... and this one, since we do want this in testsuite.
2820 am__api_version='1.11'
2821
2822 # Find a good install program. We prefer a C program (faster),
2823 # so one script is as good as another. But avoid the broken or
2824 # incompatible versions:
2825 # SysV /etc/install, /usr/sbin/install
2826 # SunOS /usr/etc/install
2827 # IRIX /sbin/install
2828 # AIX /bin/install
2829 # AmigaOS /C/install, which installs bootblocks on floppy discs
2830 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2831 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2832 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2833 # OS/2's system install, which has a completely different semantic
2834 # ./install, which can be erroneously created by make from ./install.sh.
2835 # Reject install programs that cannot install multiple files.
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2837 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2838 if test -z "$INSTALL"; then
2839 if test "${ac_cv_path_install+set}" = set; then :
2840 $as_echo_n "(cached) " >&6
2841 else
2842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2843 for as_dir in $PATH
2844 do
2845 IFS=$as_save_IFS
2846 test -z "$as_dir" && as_dir=.
2847 # Account for people who put trailing slashes in PATH elements.
2848 case $as_dir/ in #((
2849 ./ | .// | /[cC]/* | \
2850 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2851 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2852 /usr/ucb/* ) ;;
2853 *)
2854 # OSF1 and SCO ODT 3.0 have their own names for install.
2855 # Don't use installbsd from OSF since it installs stuff as root
2856 # by default.
2857 for ac_prog in ginstall scoinst install; do
2858 for ac_exec_ext in '' $ac_executable_extensions; do
2859 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2860 if test $ac_prog = install &&
2861 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2862 # AIX install. It has an incompatible calling convention.
2863 :
2864 elif test $ac_prog = install &&
2865 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2866 # program-specific install script used by HP pwplus--don't use.
2867 :
2868 else
2869 rm -rf conftest.one conftest.two conftest.dir
2870 echo one > conftest.one
2871 echo two > conftest.two
2872 mkdir conftest.dir
2873 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2874 test -s conftest.one && test -s conftest.two &&
2875 test -s conftest.dir/conftest.one &&
2876 test -s conftest.dir/conftest.two
2877 then
2878 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2879 break 3
2880 fi
2881 fi
2882 fi
2883 done
2884 done
2885 ;;
2886 esac
2887
2888 done
2889 IFS=$as_save_IFS
2890
2891 rm -rf conftest.one conftest.two conftest.dir
2892
2893 fi
2894 if test "${ac_cv_path_install+set}" = set; then
2895 INSTALL=$ac_cv_path_install
2896 else
2897 # As a last resort, use the slow shell script. Don't cache a
2898 # value for INSTALL within a source directory, because that will
2899 # break other packages using the cache if that directory is
2900 # removed, or if the value is a relative name.
2901 INSTALL=$ac_install_sh
2902 fi
2903 fi
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2905 $as_echo "$INSTALL" >&6; }
2906
2907 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2908 # It thinks the first close brace ends the variable substitution.
2909 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2910
2911 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2912
2913 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2914
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2916 $as_echo_n "checking whether build environment is sane... " >&6; }
2917 # Just in case
2918 sleep 1
2919 echo timestamp > conftest.file
2920 # Reject unsafe characters in $srcdir or the absolute working directory
2921 # name. Accept space and tab only in the latter.
2922 am_lf='
2923 '
2924 case `pwd` in
2925 *[\\\"\#\$\&\'\`$am_lf]*)
2926 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2927 esac
2928 case $srcdir in
2929 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2930 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2931 esac
2932
2933 # Do `set' in a subshell so we don't clobber the current shell's
2934 # arguments. Must try -L first in case configure is actually a
2935 # symlink; some systems play weird games with the mod time of symlinks
2936 # (eg FreeBSD returns the mod time of the symlink's containing
2937 # directory).
2938 if (
2939 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2940 if test "$*" = "X"; then
2941 # -L didn't work.
2942 set X `ls -t "$srcdir/configure" conftest.file`
2943 fi
2944 rm -f conftest.file
2945 if test "$*" != "X $srcdir/configure conftest.file" \
2946 && test "$*" != "X conftest.file $srcdir/configure"; then
2947
2948 # If neither matched, then we have a broken ls. This can happen
2949 # if, for instance, CONFIG_SHELL is bash and it inherits a
2950 # broken ls alias from the environment. This has actually
2951 # happened. Such a system could not be considered "sane".
2952 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2953 alias in your environment" "$LINENO" 5
2954 fi
2955
2956 test "$2" = conftest.file
2957 )
2958 then
2959 # Ok.
2960 :
2961 else
2962 as_fn_error "newly created file is older than distributed files!
2963 Check your system clock" "$LINENO" 5
2964 fi
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2966 $as_echo "yes" >&6; }
2967 test "$program_prefix" != NONE &&
2968 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2969 # Use a double $ so make ignores it.
2970 test "$program_suffix" != NONE &&
2971 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2972 # Double any \ or $.
2973 # By default was `s,x,x', remove it if useless.
2974 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2975 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2976
2977 # expand $ac_aux_dir to an absolute path
2978 am_aux_dir=`cd $ac_aux_dir && pwd`
2979
2980 if test x"${MISSING+set}" != xset; then
2981 case $am_aux_dir in
2982 *\ * | *\ *)
2983 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2984 *)
2985 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2986 esac
2987 fi
2988 # Use eval to expand $SHELL
2989 if eval "$MISSING --run true"; then
2990 am_missing_run="$MISSING --run "
2991 else
2992 am_missing_run=
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2994 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2995 fi
2996
2997 if test x"${install_sh}" != xset; then
2998 case $am_aux_dir in
2999 *\ * | *\ *)
3000 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3001 *)
3002 install_sh="\${SHELL} $am_aux_dir/install-sh"
3003 esac
3004 fi
3005
3006 # Installed binaries are usually stripped using `strip' when the user
3007 # run `make install-strip'. However `strip' might not be the right
3008 # tool to use in cross-compilation environments, therefore Automake
3009 # will honor the `STRIP' environment variable to overrule this program.
3010 if test "$cross_compiling" != no; then
3011 if test -n "$ac_tool_prefix"; then
3012 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3013 set dummy ${ac_tool_prefix}strip; ac_word=$2
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3015 $as_echo_n "checking for $ac_word... " >&6; }
3016 if test "${ac_cv_prog_STRIP+set}" = set; then :
3017 $as_echo_n "(cached) " >&6
3018 else
3019 if test -n "$STRIP"; then
3020 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3021 else
3022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3023 for as_dir in $PATH
3024 do
3025 IFS=$as_save_IFS
3026 test -z "$as_dir" && as_dir=.
3027 for ac_exec_ext in '' $ac_executable_extensions; do
3028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3029 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3031 break 2
3032 fi
3033 done
3034 done
3035 IFS=$as_save_IFS
3036
3037 fi
3038 fi
3039 STRIP=$ac_cv_prog_STRIP
3040 if test -n "$STRIP"; then
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3042 $as_echo "$STRIP" >&6; }
3043 else
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3045 $as_echo "no" >&6; }
3046 fi
3047
3048
3049 fi
3050 if test -z "$ac_cv_prog_STRIP"; then
3051 ac_ct_STRIP=$STRIP
3052 # Extract the first word of "strip", so it can be a program name with args.
3053 set dummy strip; ac_word=$2
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3055 $as_echo_n "checking for $ac_word... " >&6; }
3056 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3057 $as_echo_n "(cached) " >&6
3058 else
3059 if test -n "$ac_ct_STRIP"; then
3060 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3061 else
3062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3063 for as_dir in $PATH
3064 do
3065 IFS=$as_save_IFS
3066 test -z "$as_dir" && as_dir=.
3067 for ac_exec_ext in '' $ac_executable_extensions; do
3068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3069 ac_cv_prog_ac_ct_STRIP="strip"
3070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3071 break 2
3072 fi
3073 done
3074 done
3075 IFS=$as_save_IFS
3076
3077 fi
3078 fi
3079 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3080 if test -n "$ac_ct_STRIP"; then
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3082 $as_echo "$ac_ct_STRIP" >&6; }
3083 else
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3085 $as_echo "no" >&6; }
3086 fi
3087
3088 if test "x$ac_ct_STRIP" = x; then
3089 STRIP=":"
3090 else
3091 case $cross_compiling:$ac_tool_warned in
3092 yes:)
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3094 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3095 ac_tool_warned=yes ;;
3096 esac
3097 STRIP=$ac_ct_STRIP
3098 fi
3099 else
3100 STRIP="$ac_cv_prog_STRIP"
3101 fi
3102
3103 fi
3104 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3105
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3107 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3108 if test -z "$MKDIR_P"; then
3109 if test "${ac_cv_path_mkdir+set}" = set; then :
3110 $as_echo_n "(cached) " >&6
3111 else
3112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3113 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3114 do
3115 IFS=$as_save_IFS
3116 test -z "$as_dir" && as_dir=.
3117 for ac_prog in mkdir gmkdir; do
3118 for ac_exec_ext in '' $ac_executable_extensions; do
3119 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3120 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3121 'mkdir (GNU coreutils) '* | \
3122 'mkdir (coreutils) '* | \
3123 'mkdir (fileutils) '4.1*)
3124 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3125 break 3;;
3126 esac
3127 done
3128 done
3129 done
3130 IFS=$as_save_IFS
3131
3132 fi
3133
3134 if test "${ac_cv_path_mkdir+set}" = set; then
3135 MKDIR_P="$ac_cv_path_mkdir -p"
3136 else
3137 # As a last resort, use the slow shell script. Don't cache a
3138 # value for MKDIR_P within a source directory, because that will
3139 # break other packages using the cache if that directory is
3140 # removed, or if the value is a relative name.
3141 test -d ./--version && rmdir ./--version
3142 MKDIR_P="$ac_install_sh -d"
3143 fi
3144 fi
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3146 $as_echo "$MKDIR_P" >&6; }
3147
3148 mkdir_p="$MKDIR_P"
3149 case $mkdir_p in
3150 [\\/$]* | ?:[\\/]*) ;;
3151 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3152 esac
3153
3154 for ac_prog in gawk mawk nawk awk
3155 do
3156 # Extract the first word of "$ac_prog", so it can be a program name with args.
3157 set dummy $ac_prog; ac_word=$2
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3159 $as_echo_n "checking for $ac_word... " >&6; }
3160 if test "${ac_cv_prog_AWK+set}" = set; then :
3161 $as_echo_n "(cached) " >&6
3162 else
3163 if test -n "$AWK"; then
3164 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3165 else
3166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3167 for as_dir in $PATH
3168 do
3169 IFS=$as_save_IFS
3170 test -z "$as_dir" && as_dir=.
3171 for ac_exec_ext in '' $ac_executable_extensions; do
3172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3173 ac_cv_prog_AWK="$ac_prog"
3174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3175 break 2
3176 fi
3177 done
3178 done
3179 IFS=$as_save_IFS
3180
3181 fi
3182 fi
3183 AWK=$ac_cv_prog_AWK
3184 if test -n "$AWK"; then
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3186 $as_echo "$AWK" >&6; }
3187 else
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3189 $as_echo "no" >&6; }
3190 fi
3191
3192
3193 test -n "$AWK" && break
3194 done
3195
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3197 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3198 set x ${MAKE-make}
3199 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3200 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3201 $as_echo_n "(cached) " >&6
3202 else
3203 cat >conftest.make <<\_ACEOF
3204 SHELL = /bin/sh
3205 all:
3206 @echo '@@@%%%=$(MAKE)=@@@%%%'
3207 _ACEOF
3208 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3209 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3210 *@@@%%%=?*=@@@%%%*)
3211 eval ac_cv_prog_make_${ac_make}_set=yes;;
3212 *)
3213 eval ac_cv_prog_make_${ac_make}_set=no;;
3214 esac
3215 rm -f conftest.make
3216 fi
3217 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3219 $as_echo "yes" >&6; }
3220 SET_MAKE=
3221 else
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3223 $as_echo "no" >&6; }
3224 SET_MAKE="MAKE=${MAKE-make}"
3225 fi
3226
3227 rm -rf .tst 2>/dev/null
3228 mkdir .tst 2>/dev/null
3229 if test -d .tst; then
3230 am__leading_dot=.
3231 else
3232 am__leading_dot=_
3233 fi
3234 rmdir .tst 2>/dev/null
3235
3236 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3237 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3238 # is not polluted with repeated "-I."
3239 am__isrc=' -I$(srcdir)'
3240 # test to see if srcdir already configured
3241 if test -f $srcdir/config.status; then
3242 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3243 fi
3244 fi
3245
3246 # test whether we have cygpath
3247 if test -z "$CYGPATH_W"; then
3248 if (cygpath --version) >/dev/null 2>/dev/null; then
3249 CYGPATH_W='cygpath -w'
3250 else
3251 CYGPATH_W=echo
3252 fi
3253 fi
3254
3255
3256 # Define the identity of the package.
3257 PACKAGE='libgomp'
3258 VERSION='1.0'
3259
3260
3261 cat >>confdefs.h <<_ACEOF
3262 #define PACKAGE "$PACKAGE"
3263 _ACEOF
3264
3265
3266 cat >>confdefs.h <<_ACEOF
3267 #define VERSION "$VERSION"
3268 _ACEOF
3269
3270 # Some tools Automake needs.
3271
3272 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3273
3274
3275 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3276
3277
3278 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3279
3280
3281 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3282
3283
3284 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3285
3286 # We need awk for the "check" target. The system "awk" is bad on
3287 # some platforms.
3288 # Always define AMTAR for backward compatibility.
3289
3290 AMTAR=${AMTAR-"${am_missing_run}tar"}
3291
3292 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3293
3294
3295
3296
3297
3298 # Default to --enable-multilib
3299 # Check whether --enable-multilib was given.
3300 if test "${enable_multilib+set}" = set; then :
3301 enableval=$enable_multilib; case "$enableval" in
3302 yes) multilib=yes ;;
3303 no) multilib=no ;;
3304 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3305 esac
3306 else
3307 multilib=yes
3308 fi
3309
3310
3311 # We may get other options which we leave undocumented:
3312 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3313 # See config-ml.in if you want the gory details.
3314
3315 if test "$srcdir" = "."; then
3316 if test "$with_target_subdir" != "."; then
3317 multi_basedir="$srcdir/$with_multisrctop../.."
3318 else
3319 multi_basedir="$srcdir/$with_multisrctop.."
3320 fi
3321 else
3322 multi_basedir="$srcdir/.."
3323 fi
3324
3325
3326 # Even if the default multilib is not a cross compilation,
3327 # it may be that some of the other multilibs are.
3328 if test $cross_compiling = no && test $multilib = yes \
3329 && test "x${with_multisubdir}" != x ; then
3330 cross_compiling=maybe
3331 fi
3332
3333 ac_config_commands="$ac_config_commands default-1"
3334
3335
3336 # Calculate toolexeclibdir
3337 # Also toolexecdir, though it's only used in toolexeclibdir
3338 case ${enable_version_specific_runtime_libs} in
3339 yes)
3340 # Need the gcc compiler version to know where to install libraries
3341 # and header files if --enable-version-specific-runtime-libs option
3342 # is selected.
3343 toolexecdir='$(libdir)/gcc/$(target_alias)'
3344 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3345 ;;
3346 no)
3347 if test -n "$with_cross_host" &&
3348 test x"$with_cross_host" != x"no"; then
3349 # Install a library built with a cross compiler in tooldir, not libdir.
3350 toolexecdir='$(exec_prefix)/$(target_alias)'
3351 toolexeclibdir='$(toolexecdir)/lib'
3352 else
3353 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
3354 toolexeclibdir='$(libdir)'
3355 fi
3356 multi_os_directory=`$CC -print-multi-os-directory`
3357 case $multi_os_directory in
3358 .) ;; # Avoid trailing /.
3359 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
3360 esac
3361 ;;
3362 esac
3363
3364
3365
3366 # Check the compiler.
3367 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3368 # We must force CC to /not/ be precious variables; otherwise
3369 # the wrong, non-multilib-adjusted value will be used in multilibs.
3370 # As a side effect, we have to subst CFLAGS ourselves.
3371
3372
3373
3374 ac_ext=c
3375 ac_cpp='$CPP $CPPFLAGS'
3376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3379 if test -n "$ac_tool_prefix"; then
3380 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3381 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3383 $as_echo_n "checking for $ac_word... " >&6; }
3384 if test "${ac_cv_prog_CC+set}" = set; then :
3385 $as_echo_n "(cached) " >&6
3386 else
3387 if test -n "$CC"; then
3388 ac_cv_prog_CC="$CC" # Let the user override the test.
3389 else
3390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3391 for as_dir in $PATH
3392 do
3393 IFS=$as_save_IFS
3394 test -z "$as_dir" && as_dir=.
3395 for ac_exec_ext in '' $ac_executable_extensions; do
3396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3397 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3399 break 2
3400 fi
3401 done
3402 done
3403 IFS=$as_save_IFS
3404
3405 fi
3406 fi
3407 CC=$ac_cv_prog_CC
3408 if test -n "$CC"; then
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3410 $as_echo "$CC" >&6; }
3411 else
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3413 $as_echo "no" >&6; }
3414 fi
3415
3416
3417 fi
3418 if test -z "$ac_cv_prog_CC"; then
3419 ac_ct_CC=$CC
3420 # Extract the first word of "gcc", so it can be a program name with args.
3421 set dummy gcc; ac_word=$2
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3423 $as_echo_n "checking for $ac_word... " >&6; }
3424 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3425 $as_echo_n "(cached) " >&6
3426 else
3427 if test -n "$ac_ct_CC"; then
3428 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3429 else
3430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3431 for as_dir in $PATH
3432 do
3433 IFS=$as_save_IFS
3434 test -z "$as_dir" && as_dir=.
3435 for ac_exec_ext in '' $ac_executable_extensions; do
3436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3437 ac_cv_prog_ac_ct_CC="gcc"
3438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3439 break 2
3440 fi
3441 done
3442 done
3443 IFS=$as_save_IFS
3444
3445 fi
3446 fi
3447 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3448 if test -n "$ac_ct_CC"; then
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3450 $as_echo "$ac_ct_CC" >&6; }
3451 else
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3453 $as_echo "no" >&6; }
3454 fi
3455
3456 if test "x$ac_ct_CC" = x; then
3457 CC=""
3458 else
3459 case $cross_compiling:$ac_tool_warned in
3460 yes:)
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3462 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3463 ac_tool_warned=yes ;;
3464 esac
3465 CC=$ac_ct_CC
3466 fi
3467 else
3468 CC="$ac_cv_prog_CC"
3469 fi
3470
3471 if test -z "$CC"; then
3472 if test -n "$ac_tool_prefix"; then
3473 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3474 set dummy ${ac_tool_prefix}cc; ac_word=$2
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3476 $as_echo_n "checking for $ac_word... " >&6; }
3477 if test "${ac_cv_prog_CC+set}" = set; then :
3478 $as_echo_n "(cached) " >&6
3479 else
3480 if test -n "$CC"; then
3481 ac_cv_prog_CC="$CC" # Let the user override the test.
3482 else
3483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3484 for as_dir in $PATH
3485 do
3486 IFS=$as_save_IFS
3487 test -z "$as_dir" && as_dir=.
3488 for ac_exec_ext in '' $ac_executable_extensions; do
3489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3490 ac_cv_prog_CC="${ac_tool_prefix}cc"
3491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3492 break 2
3493 fi
3494 done
3495 done
3496 IFS=$as_save_IFS
3497
3498 fi
3499 fi
3500 CC=$ac_cv_prog_CC
3501 if test -n "$CC"; then
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3503 $as_echo "$CC" >&6; }
3504 else
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3506 $as_echo "no" >&6; }
3507 fi
3508
3509
3510 fi
3511 fi
3512 if test -z "$CC"; then
3513 # Extract the first word of "cc", so it can be a program name with args.
3514 set dummy cc; ac_word=$2
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3516 $as_echo_n "checking for $ac_word... " >&6; }
3517 if test "${ac_cv_prog_CC+set}" = set; then :
3518 $as_echo_n "(cached) " >&6
3519 else
3520 if test -n "$CC"; then
3521 ac_cv_prog_CC="$CC" # Let the user override the test.
3522 else
3523 ac_prog_rejected=no
3524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3525 for as_dir in $PATH
3526 do
3527 IFS=$as_save_IFS
3528 test -z "$as_dir" && as_dir=.
3529 for ac_exec_ext in '' $ac_executable_extensions; do
3530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3531 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3532 ac_prog_rejected=yes
3533 continue
3534 fi
3535 ac_cv_prog_CC="cc"
3536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3537 break 2
3538 fi
3539 done
3540 done
3541 IFS=$as_save_IFS
3542
3543 if test $ac_prog_rejected = yes; then
3544 # We found a bogon in the path, so make sure we never use it.
3545 set dummy $ac_cv_prog_CC
3546 shift
3547 if test $# != 0; then
3548 # We chose a different compiler from the bogus one.
3549 # However, it has the same basename, so the bogon will be chosen
3550 # first if we set CC to just the basename; use the full file name.
3551 shift
3552 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3553 fi
3554 fi
3555 fi
3556 fi
3557 CC=$ac_cv_prog_CC
3558 if test -n "$CC"; then
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3560 $as_echo "$CC" >&6; }
3561 else
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3563 $as_echo "no" >&6; }
3564 fi
3565
3566
3567 fi
3568 if test -z "$CC"; then
3569 if test -n "$ac_tool_prefix"; then
3570 for ac_prog in cl.exe
3571 do
3572 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3573 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3575 $as_echo_n "checking for $ac_word... " >&6; }
3576 if test "${ac_cv_prog_CC+set}" = set; then :
3577 $as_echo_n "(cached) " >&6
3578 else
3579 if test -n "$CC"; then
3580 ac_cv_prog_CC="$CC" # Let the user override the test.
3581 else
3582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3583 for as_dir in $PATH
3584 do
3585 IFS=$as_save_IFS
3586 test -z "$as_dir" && as_dir=.
3587 for ac_exec_ext in '' $ac_executable_extensions; do
3588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3589 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3591 break 2
3592 fi
3593 done
3594 done
3595 IFS=$as_save_IFS
3596
3597 fi
3598 fi
3599 CC=$ac_cv_prog_CC
3600 if test -n "$CC"; then
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3602 $as_echo "$CC" >&6; }
3603 else
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3605 $as_echo "no" >&6; }
3606 fi
3607
3608
3609 test -n "$CC" && break
3610 done
3611 fi
3612 if test -z "$CC"; then
3613 ac_ct_CC=$CC
3614 for ac_prog in cl.exe
3615 do
3616 # Extract the first word of "$ac_prog", so it can be a program name with args.
3617 set dummy $ac_prog; ac_word=$2
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3619 $as_echo_n "checking for $ac_word... " >&6; }
3620 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3621 $as_echo_n "(cached) " >&6
3622 else
3623 if test -n "$ac_ct_CC"; then
3624 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3625 else
3626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3627 for as_dir in $PATH
3628 do
3629 IFS=$as_save_IFS
3630 test -z "$as_dir" && as_dir=.
3631 for ac_exec_ext in '' $ac_executable_extensions; do
3632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3633 ac_cv_prog_ac_ct_CC="$ac_prog"
3634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3635 break 2
3636 fi
3637 done
3638 done
3639 IFS=$as_save_IFS
3640
3641 fi
3642 fi
3643 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3644 if test -n "$ac_ct_CC"; then
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3646 $as_echo "$ac_ct_CC" >&6; }
3647 else
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3649 $as_echo "no" >&6; }
3650 fi
3651
3652
3653 test -n "$ac_ct_CC" && break
3654 done
3655
3656 if test "x$ac_ct_CC" = x; then
3657 CC=""
3658 else
3659 case $cross_compiling:$ac_tool_warned in
3660 yes:)
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3662 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3663 ac_tool_warned=yes ;;
3664 esac
3665 CC=$ac_ct_CC
3666 fi
3667 fi
3668
3669 fi
3670
3671
3672 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3673 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3674 as_fn_error "no acceptable C compiler found in \$PATH
3675 See \`config.log' for more details." "$LINENO" 5; }
3676
3677 # Provide some information about the compiler.
3678 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3679 set X $ac_compile
3680 ac_compiler=$2
3681 for ac_option in --version -v -V -qversion; do
3682 { { ac_try="$ac_compiler $ac_option >&5"
3683 case "(($ac_try" in
3684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3685 *) ac_try_echo=$ac_try;;
3686 esac
3687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3688 $as_echo "$ac_try_echo"; } >&5
3689 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3690 ac_status=$?
3691 if test -s conftest.err; then
3692 sed '10a\
3693 ... rest of stderr output deleted ...
3694 10q' conftest.err >conftest.er1
3695 cat conftest.er1 >&5
3696 rm -f conftest.er1 conftest.err
3697 fi
3698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3699 test $ac_status = 0; }
3700 done
3701
3702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3703 /* end confdefs.h. */
3704
3705 int
3706 main ()
3707 {
3708
3709 ;
3710 return 0;
3711 }
3712 _ACEOF
3713 ac_clean_files_save=$ac_clean_files
3714 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3715 # Try to create an executable without -o first, disregard a.out.
3716 # It will help us diagnose broken compilers, and finding out an intuition
3717 # of exeext.
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3719 $as_echo_n "checking for C compiler default output file name... " >&6; }
3720 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3721
3722 # The possible output files:
3723 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3724
3725 ac_rmfiles=
3726 for ac_file in $ac_files
3727 do
3728 case $ac_file in
3729 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3730 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3731 esac
3732 done
3733 rm -f $ac_rmfiles
3734
3735 if { { ac_try="$ac_link_default"
3736 case "(($ac_try" in
3737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3738 *) ac_try_echo=$ac_try;;
3739 esac
3740 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3741 $as_echo "$ac_try_echo"; } >&5
3742 (eval "$ac_link_default") 2>&5
3743 ac_status=$?
3744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3745 test $ac_status = 0; }; then :
3746 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3747 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3748 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3749 # so that the user can short-circuit this test for compilers unknown to
3750 # Autoconf.
3751 for ac_file in $ac_files ''
3752 do
3753 test -f "$ac_file" || continue
3754 case $ac_file in
3755 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3756 ;;
3757 [ab].out )
3758 # We found the default executable, but exeext='' is most
3759 # certainly right.
3760 break;;
3761 *.* )
3762 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3763 then :; else
3764 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3765 fi
3766 # We set ac_cv_exeext here because the later test for it is not
3767 # safe: cross compilers may not add the suffix if given an `-o'
3768 # argument, so we may need to know it at that point already.
3769 # Even if this section looks crufty: it has the advantage of
3770 # actually working.
3771 break;;
3772 * )
3773 break;;
3774 esac
3775 done
3776 test "$ac_cv_exeext" = no && ac_cv_exeext=
3777
3778 else
3779 ac_file=''
3780 fi
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3782 $as_echo "$ac_file" >&6; }
3783 if test -z "$ac_file"; then :
3784 $as_echo "$as_me: failed program was:" >&5
3785 sed 's/^/| /' conftest.$ac_ext >&5
3786
3787 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3788 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3789 { as_fn_set_status 77
3790 as_fn_error "C compiler cannot create executables
3791 See \`config.log' for more details." "$LINENO" 5; }; }
3792 fi
3793 ac_exeext=$ac_cv_exeext
3794
3795 # Check that the compiler produces executables we can run. If not, either
3796 # the compiler is broken, or we cross compile.
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3798 $as_echo_n "checking whether the C compiler works... " >&6; }
3799 # If not cross compiling, check that we can run a simple program.
3800 if test "$cross_compiling" != yes; then
3801 if { ac_try='./$ac_file'
3802 { { case "(($ac_try" in
3803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3804 *) ac_try_echo=$ac_try;;
3805 esac
3806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3807 $as_echo "$ac_try_echo"; } >&5
3808 (eval "$ac_try") 2>&5
3809 ac_status=$?
3810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3811 test $ac_status = 0; }; }; then
3812 cross_compiling=no
3813 else
3814 if test "$cross_compiling" = maybe; then
3815 cross_compiling=yes
3816 else
3817 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3818 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3819 as_fn_error "cannot run C compiled programs.
3820 If you meant to cross compile, use \`--host'.
3821 See \`config.log' for more details." "$LINENO" 5; }
3822 fi
3823 fi
3824 fi
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3826 $as_echo "yes" >&6; }
3827
3828 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3829 ac_clean_files=$ac_clean_files_save
3830 # Check that the compiler produces executables we can run. If not, either
3831 # the compiler is broken, or we cross compile.
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3833 $as_echo_n "checking whether we are cross compiling... " >&6; }
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3835 $as_echo "$cross_compiling" >&6; }
3836
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3838 $as_echo_n "checking for suffix of executables... " >&6; }
3839 if { { ac_try="$ac_link"
3840 case "(($ac_try" in
3841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3842 *) ac_try_echo=$ac_try;;
3843 esac
3844 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3845 $as_echo "$ac_try_echo"; } >&5
3846 (eval "$ac_link") 2>&5
3847 ac_status=$?
3848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3849 test $ac_status = 0; }; then :
3850 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3851 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3852 # work properly (i.e., refer to `conftest.exe'), while it won't with
3853 # `rm'.
3854 for ac_file in conftest.exe conftest conftest.*; do
3855 test -f "$ac_file" || continue
3856 case $ac_file in
3857 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3858 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3859 break;;
3860 * ) break;;
3861 esac
3862 done
3863 else
3864 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3865 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3866 as_fn_error "cannot compute suffix of executables: cannot compile and link
3867 See \`config.log' for more details." "$LINENO" 5; }
3868 fi
3869 rm -f conftest$ac_cv_exeext
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3871 $as_echo "$ac_cv_exeext" >&6; }
3872
3873 rm -f conftest.$ac_ext
3874 EXEEXT=$ac_cv_exeext
3875 ac_exeext=$EXEEXT
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3877 $as_echo_n "checking for suffix of object files... " >&6; }
3878 if test "${ac_cv_objext+set}" = set; then :
3879 $as_echo_n "(cached) " >&6
3880 else
3881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3882 /* end confdefs.h. */
3883
3884 int
3885 main ()
3886 {
3887
3888 ;
3889 return 0;
3890 }
3891 _ACEOF
3892 rm -f conftest.o conftest.obj
3893 if { { ac_try="$ac_compile"
3894 case "(($ac_try" in
3895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3896 *) ac_try_echo=$ac_try;;
3897 esac
3898 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3899 $as_echo "$ac_try_echo"; } >&5
3900 (eval "$ac_compile") 2>&5
3901 ac_status=$?
3902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3903 test $ac_status = 0; }; then :
3904 for ac_file in conftest.o conftest.obj conftest.*; do
3905 test -f "$ac_file" || continue;
3906 case $ac_file in
3907 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3908 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3909 break;;
3910 esac
3911 done
3912 else
3913 $as_echo "$as_me: failed program was:" >&5
3914 sed 's/^/| /' conftest.$ac_ext >&5
3915
3916 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3917 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3918 as_fn_error "cannot compute suffix of object files: cannot compile
3919 See \`config.log' for more details." "$LINENO" 5; }
3920 fi
3921 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3922 fi
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3924 $as_echo "$ac_cv_objext" >&6; }
3925 OBJEXT=$ac_cv_objext
3926 ac_objext=$OBJEXT
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3928 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3929 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3930 $as_echo_n "(cached) " >&6
3931 else
3932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3933 /* end confdefs.h. */
3934
3935 int
3936 main ()
3937 {
3938 #ifndef __GNUC__
3939 choke me
3940 #endif
3941
3942 ;
3943 return 0;
3944 }
3945 _ACEOF
3946 if ac_fn_c_try_compile "$LINENO"; then :
3947 ac_compiler_gnu=yes
3948 else
3949 ac_compiler_gnu=no
3950 fi
3951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3952 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3953
3954 fi
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3956 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3957 if test $ac_compiler_gnu = yes; then
3958 GCC=yes
3959 else
3960 GCC=
3961 fi
3962 ac_test_CFLAGS=${CFLAGS+set}
3963 ac_save_CFLAGS=$CFLAGS
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3965 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3966 if test "${ac_cv_prog_cc_g+set}" = set; then :
3967 $as_echo_n "(cached) " >&6
3968 else
3969 ac_save_c_werror_flag=$ac_c_werror_flag
3970 ac_c_werror_flag=yes
3971 ac_cv_prog_cc_g=no
3972 CFLAGS="-g"
3973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3974 /* end confdefs.h. */
3975
3976 int
3977 main ()
3978 {
3979
3980 ;
3981 return 0;
3982 }
3983 _ACEOF
3984 if ac_fn_c_try_compile "$LINENO"; then :
3985 ac_cv_prog_cc_g=yes
3986 else
3987 CFLAGS=""
3988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3989 /* end confdefs.h. */
3990
3991 int
3992 main ()
3993 {
3994
3995 ;
3996 return 0;
3997 }
3998 _ACEOF
3999 if ac_fn_c_try_compile "$LINENO"; then :
4000
4001 else
4002 ac_c_werror_flag=$ac_save_c_werror_flag
4003 CFLAGS="-g"
4004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4005 /* end confdefs.h. */
4006
4007 int
4008 main ()
4009 {
4010
4011 ;
4012 return 0;
4013 }
4014 _ACEOF
4015 if ac_fn_c_try_compile "$LINENO"; then :
4016 ac_cv_prog_cc_g=yes
4017 fi
4018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4019 fi
4020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4021 fi
4022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4023 ac_c_werror_flag=$ac_save_c_werror_flag
4024 fi
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4026 $as_echo "$ac_cv_prog_cc_g" >&6; }
4027 if test "$ac_test_CFLAGS" = set; then
4028 CFLAGS=$ac_save_CFLAGS
4029 elif test $ac_cv_prog_cc_g = yes; then
4030 if test "$GCC" = yes; then
4031 CFLAGS="-g -O2"
4032 else
4033 CFLAGS="-g"
4034 fi
4035 else
4036 if test "$GCC" = yes; then
4037 CFLAGS="-O2"
4038 else
4039 CFLAGS=
4040 fi
4041 fi
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4043 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4044 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4045 $as_echo_n "(cached) " >&6
4046 else
4047 ac_cv_prog_cc_c89=no
4048 ac_save_CC=$CC
4049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4050 /* end confdefs.h. */
4051 #include <stdarg.h>
4052 #include <stdio.h>
4053 #include <sys/types.h>
4054 #include <sys/stat.h>
4055 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4056 struct buf { int x; };
4057 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4058 static char *e (p, i)
4059 char **p;
4060 int i;
4061 {
4062 return p[i];
4063 }
4064 static char *f (char * (*g) (char **, int), char **p, ...)
4065 {
4066 char *s;
4067 va_list v;
4068 va_start (v,p);
4069 s = g (p, va_arg (v,int));
4070 va_end (v);
4071 return s;
4072 }
4073
4074 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4075 function prototypes and stuff, but not '\xHH' hex character constants.
4076 These don't provoke an error unfortunately, instead are silently treated
4077 as 'x'. The following induces an error, until -std is added to get
4078 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4079 array size at least. It's necessary to write '\x00'==0 to get something
4080 that's true only with -std. */
4081 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4082
4083 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4084 inside strings and character constants. */
4085 #define FOO(x) 'x'
4086 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4087
4088 int test (int i, double x);
4089 struct s1 {int (*f) (int a);};
4090 struct s2 {int (*f) (double a);};
4091 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4092 int argc;
4093 char **argv;
4094 int
4095 main ()
4096 {
4097 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4098 ;
4099 return 0;
4100 }
4101 _ACEOF
4102 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4103 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4104 do
4105 CC="$ac_save_CC $ac_arg"
4106 if ac_fn_c_try_compile "$LINENO"; then :
4107 ac_cv_prog_cc_c89=$ac_arg
4108 fi
4109 rm -f core conftest.err conftest.$ac_objext
4110 test "x$ac_cv_prog_cc_c89" != "xno" && break
4111 done
4112 rm -f conftest.$ac_ext
4113 CC=$ac_save_CC
4114
4115 fi
4116 # AC_CACHE_VAL
4117 case "x$ac_cv_prog_cc_c89" in
4118 x)
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4120 $as_echo "none needed" >&6; } ;;
4121 xno)
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4123 $as_echo "unsupported" >&6; } ;;
4124 *)
4125 CC="$CC $ac_cv_prog_cc_c89"
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4127 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4128 esac
4129 if test "x$ac_cv_prog_cc_c89" != xno; then :
4130
4131 fi
4132
4133 ac_ext=c
4134 ac_cpp='$CPP $CPPFLAGS'
4135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4138 DEPDIR="${am__leading_dot}deps"
4139
4140 ac_config_commands="$ac_config_commands depfiles"
4141
4142
4143 am_make=${MAKE-make}
4144 cat > confinc << 'END'
4145 am__doit:
4146 @echo this is the am__doit target
4147 .PHONY: am__doit
4148 END
4149 # If we don't find an include directive, just comment out the code.
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4151 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4152 am__include="#"
4153 am__quote=
4154 _am_result=none
4155 # First try GNU make style include.
4156 echo "include confinc" > confmf
4157 # Ignore all kinds of additional output from `make'.
4158 case `$am_make -s -f confmf 2> /dev/null` in #(
4159 *the\ am__doit\ target*)
4160 am__include=include
4161 am__quote=
4162 _am_result=GNU
4163 ;;
4164 esac
4165 # Now try BSD make style include.
4166 if test "$am__include" = "#"; then
4167 echo '.include "confinc"' > confmf
4168 case `$am_make -s -f confmf 2> /dev/null` in #(
4169 *the\ am__doit\ target*)
4170 am__include=.include
4171 am__quote="\""
4172 _am_result=BSD
4173 ;;
4174 esac
4175 fi
4176
4177
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4179 $as_echo "$_am_result" >&6; }
4180 rm -f confinc confmf
4181
4182 # Check whether --enable-dependency-tracking was given.
4183 if test "${enable_dependency_tracking+set}" = set; then :
4184 enableval=$enable_dependency_tracking;
4185 fi
4186
4187 if test "x$enable_dependency_tracking" != xno; then
4188 am_depcomp="$ac_aux_dir/depcomp"
4189 AMDEPBACKSLASH='\'
4190 fi
4191 if test "x$enable_dependency_tracking" != xno; then
4192 AMDEP_TRUE=
4193 AMDEP_FALSE='#'
4194 else
4195 AMDEP_TRUE='#'
4196 AMDEP_FALSE=
4197 fi
4198
4199
4200
4201 depcc="$CC" am_compiler_list=
4202
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4204 $as_echo_n "checking dependency style of $depcc... " >&6; }
4205 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4206 $as_echo_n "(cached) " >&6
4207 else
4208 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4209 # We make a subdir and do the tests there. Otherwise we can end up
4210 # making bogus files that we don't know about and never remove. For
4211 # instance it was reported that on HP-UX the gcc test will end up
4212 # making a dummy file named `D' -- because `-MD' means `put the output
4213 # in D'.
4214 mkdir conftest.dir
4215 # Copy depcomp to subdir because otherwise we won't find it if we're
4216 # using a relative directory.
4217 cp "$am_depcomp" conftest.dir
4218 cd conftest.dir
4219 # We will build objects and dependencies in a subdirectory because
4220 # it helps to detect inapplicable dependency modes. For instance
4221 # both Tru64's cc and ICC support -MD to output dependencies as a
4222 # side effect of compilation, but ICC will put the dependencies in
4223 # the current directory while Tru64 will put them in the object
4224 # directory.
4225 mkdir sub
4226
4227 am_cv_CC_dependencies_compiler_type=none
4228 if test "$am_compiler_list" = ""; then
4229 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4230 fi
4231 am__universal=false
4232 case " $depcc " in #(
4233 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4234 esac
4235
4236 for depmode in $am_compiler_list; do
4237 # Setup a source with many dependencies, because some compilers
4238 # like to wrap large dependency lists on column 80 (with \), and
4239 # we should not choose a depcomp mode which is confused by this.
4240 #
4241 # We need to recreate these files for each test, as the compiler may
4242 # overwrite some of them when testing with obscure command lines.
4243 # This happens at least with the AIX C compiler.
4244 : > sub/conftest.c
4245 for i in 1 2 3 4 5 6; do
4246 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4247 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4248 # Solaris 8's {/usr,}/bin/sh.
4249 touch sub/conftst$i.h
4250 done
4251 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4252
4253 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4254 # mode. It turns out that the SunPro C++ compiler does not properly
4255 # handle `-M -o', and we need to detect this. Also, some Intel
4256 # versions had trouble with output in subdirs
4257 am__obj=sub/conftest.${OBJEXT-o}
4258 am__minus_obj="-o $am__obj"
4259 case $depmode in
4260 gcc)
4261 # This depmode causes a compiler race in universal mode.
4262 test "$am__universal" = false || continue
4263 ;;
4264 nosideeffect)
4265 # after this tag, mechanisms are not by side-effect, so they'll
4266 # only be used when explicitly requested
4267 if test "x$enable_dependency_tracking" = xyes; then
4268 continue
4269 else
4270 break
4271 fi
4272 ;;
4273 msvisualcpp | msvcmsys)
4274 # This compiler won't grok `-c -o', but also, the minuso test has
4275 # not run yet. These depmodes are late enough in the game, and
4276 # so weak that their functioning should not be impacted.
4277 am__obj=conftest.${OBJEXT-o}
4278 am__minus_obj=
4279 ;;
4280 none) break ;;
4281 esac
4282 if depmode=$depmode \
4283 source=sub/conftest.c object=$am__obj \
4284 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4285 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4286 >/dev/null 2>conftest.err &&
4287 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4288 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4289 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4290 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4291 # icc doesn't choke on unknown options, it will just issue warnings
4292 # or remarks (even with -Werror). So we grep stderr for any message
4293 # that says an option was ignored or not supported.
4294 # When given -MP, icc 7.0 and 7.1 complain thusly:
4295 # icc: Command line warning: ignoring option '-M'; no argument required
4296 # The diagnosis changed in icc 8.0:
4297 # icc: Command line remark: option '-MP' not supported
4298 if (grep 'ignoring option' conftest.err ||
4299 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4300 am_cv_CC_dependencies_compiler_type=$depmode
4301 break
4302 fi
4303 fi
4304 done
4305
4306 cd ..
4307 rm -rf conftest.dir
4308 else
4309 am_cv_CC_dependencies_compiler_type=none
4310 fi
4311
4312 fi
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4314 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4315 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4316
4317 if
4318 test "x$enable_dependency_tracking" != xno \
4319 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4320 am__fastdepCC_TRUE=
4321 am__fastdepCC_FALSE='#'
4322 else
4323 am__fastdepCC_TRUE='#'
4324 am__fastdepCC_FALSE=
4325 fi
4326
4327
4328
4329
4330
4331
4332 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
4333 # in XCFLAGS. But we need them in CFLAGS during configury. So put them
4334 # in both places for now and restore CFLAGS at the end of config.
4335 save_CFLAGS="$CFLAGS"
4336
4337 # Add -Wall -Werror if we are using GCC.
4338 if test "x$GCC" = "xyes"; then
4339 XCFLAGS="$XCFLAGS -Wall -Werror"
4340 fi
4341
4342 # Find other programs we need.
4343 if test -n "$ac_tool_prefix"; then
4344 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4345 set dummy ${ac_tool_prefix}ar; ac_word=$2
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4347 $as_echo_n "checking for $ac_word... " >&6; }
4348 if test "${ac_cv_prog_AR+set}" = set; then :
4349 $as_echo_n "(cached) " >&6
4350 else
4351 if test -n "$AR"; then
4352 ac_cv_prog_AR="$AR" # Let the user override the test.
4353 else
4354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4355 for as_dir in $PATH
4356 do
4357 IFS=$as_save_IFS
4358 test -z "$as_dir" && as_dir=.
4359 for ac_exec_ext in '' $ac_executable_extensions; do
4360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4361 ac_cv_prog_AR="${ac_tool_prefix}ar"
4362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4363 break 2
4364 fi
4365 done
4366 done
4367 IFS=$as_save_IFS
4368
4369 fi
4370 fi
4371 AR=$ac_cv_prog_AR
4372 if test -n "$AR"; then
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4374 $as_echo "$AR" >&6; }
4375 else
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4377 $as_echo "no" >&6; }
4378 fi
4379
4380
4381 fi
4382 if test -z "$ac_cv_prog_AR"; then
4383 ac_ct_AR=$AR
4384 # Extract the first word of "ar", so it can be a program name with args.
4385 set dummy ar; ac_word=$2
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4387 $as_echo_n "checking for $ac_word... " >&6; }
4388 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4389 $as_echo_n "(cached) " >&6
4390 else
4391 if test -n "$ac_ct_AR"; then
4392 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4393 else
4394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4395 for as_dir in $PATH
4396 do
4397 IFS=$as_save_IFS
4398 test -z "$as_dir" && as_dir=.
4399 for ac_exec_ext in '' $ac_executable_extensions; do
4400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4401 ac_cv_prog_ac_ct_AR="ar"
4402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4403 break 2
4404 fi
4405 done
4406 done
4407 IFS=$as_save_IFS
4408
4409 fi
4410 fi
4411 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4412 if test -n "$ac_ct_AR"; then
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4414 $as_echo "$ac_ct_AR" >&6; }
4415 else
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4417 $as_echo "no" >&6; }
4418 fi
4419
4420 if test "x$ac_ct_AR" = x; then
4421 AR=""
4422 else
4423 case $cross_compiling:$ac_tool_warned in
4424 yes:)
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4426 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4427 ac_tool_warned=yes ;;
4428 esac
4429 AR=$ac_ct_AR
4430 fi
4431 else
4432 AR="$ac_cv_prog_AR"
4433 fi
4434
4435 if test -n "$ac_tool_prefix"; then
4436 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4437 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4439 $as_echo_n "checking for $ac_word... " >&6; }
4440 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4441 $as_echo_n "(cached) " >&6
4442 else
4443 if test -n "$RANLIB"; then
4444 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4445 else
4446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4447 for as_dir in $PATH
4448 do
4449 IFS=$as_save_IFS
4450 test -z "$as_dir" && as_dir=.
4451 for ac_exec_ext in '' $ac_executable_extensions; do
4452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4453 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4455 break 2
4456 fi
4457 done
4458 done
4459 IFS=$as_save_IFS
4460
4461 fi
4462 fi
4463 RANLIB=$ac_cv_prog_RANLIB
4464 if test -n "$RANLIB"; then
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4466 $as_echo "$RANLIB" >&6; }
4467 else
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4469 $as_echo "no" >&6; }
4470 fi
4471
4472
4473 fi
4474 if test -z "$ac_cv_prog_RANLIB"; then
4475 ac_ct_RANLIB=$RANLIB
4476 # Extract the first word of "ranlib", so it can be a program name with args.
4477 set dummy ranlib; ac_word=$2
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4479 $as_echo_n "checking for $ac_word... " >&6; }
4480 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4481 $as_echo_n "(cached) " >&6
4482 else
4483 if test -n "$ac_ct_RANLIB"; then
4484 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4485 else
4486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4487 for as_dir in $PATH
4488 do
4489 IFS=$as_save_IFS
4490 test -z "$as_dir" && as_dir=.
4491 for ac_exec_ext in '' $ac_executable_extensions; do
4492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4493 ac_cv_prog_ac_ct_RANLIB="ranlib"
4494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4495 break 2
4496 fi
4497 done
4498 done
4499 IFS=$as_save_IFS
4500
4501 fi
4502 fi
4503 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4504 if test -n "$ac_ct_RANLIB"; then
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4506 $as_echo "$ac_ct_RANLIB" >&6; }
4507 else
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4509 $as_echo "no" >&6; }
4510 fi
4511
4512 if test "x$ac_ct_RANLIB" = x; then
4513 RANLIB="ranlib-not-found-in-path-error"
4514 else
4515 case $cross_compiling:$ac_tool_warned in
4516 yes:)
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4518 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4519 ac_tool_warned=yes ;;
4520 esac
4521 RANLIB=$ac_ct_RANLIB
4522 fi
4523 else
4524 RANLIB="$ac_cv_prog_RANLIB"
4525 fi
4526
4527 # Extract the first word of "perl", so it can be a program name with args.
4528 set dummy perl; ac_word=$2
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4530 $as_echo_n "checking for $ac_word... " >&6; }
4531 if test "${ac_cv_path_PERL+set}" = set; then :
4532 $as_echo_n "(cached) " >&6
4533 else
4534 case $PERL in
4535 [\\/]* | ?:[\\/]*)
4536 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4537 ;;
4538 *)
4539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4540 for as_dir in $PATH
4541 do
4542 IFS=$as_save_IFS
4543 test -z "$as_dir" && as_dir=.
4544 for ac_exec_ext in '' $ac_executable_extensions; do
4545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4546 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4548 break 2
4549 fi
4550 done
4551 done
4552 IFS=$as_save_IFS
4553
4554 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
4555 ;;
4556 esac
4557 fi
4558 PERL=$ac_cv_path_PERL
4559 if test -n "$PERL"; then
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4561 $as_echo "$PERL" >&6; }
4562 else
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4564 $as_echo "no" >&6; }
4565 fi
4566
4567
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4569 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4570 set x ${MAKE-make}
4571 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4572 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4573 $as_echo_n "(cached) " >&6
4574 else
4575 cat >conftest.make <<\_ACEOF
4576 SHELL = /bin/sh
4577 all:
4578 @echo '@@@%%%=$(MAKE)=@@@%%%'
4579 _ACEOF
4580 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4581 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4582 *@@@%%%=?*=@@@%%%*)
4583 eval ac_cv_prog_make_${ac_make}_set=yes;;
4584 *)
4585 eval ac_cv_prog_make_${ac_make}_set=no;;
4586 esac
4587 rm -f conftest.make
4588 fi
4589 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4591 $as_echo "yes" >&6; }
4592 SET_MAKE=
4593 else
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4595 $as_echo "no" >&6; }
4596 SET_MAKE="MAKE=${MAKE-make}"
4597 fi
4598
4599
4600
4601 # See if makeinfo has been installed and is modern enough
4602 # that we can use it.
4603
4604 # Extract the first word of "makeinfo", so it can be a program name with args.
4605 set dummy makeinfo; ac_word=$2
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4607 $as_echo_n "checking for $ac_word... " >&6; }
4608 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
4609 $as_echo_n "(cached) " >&6
4610 else
4611 if test -n "$MAKEINFO"; then
4612 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4613 else
4614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4615 for as_dir in $PATH
4616 do
4617 IFS=$as_save_IFS
4618 test -z "$as_dir" && as_dir=.
4619 for ac_exec_ext in '' $ac_executable_extensions; do
4620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4621 ac_cv_prog_MAKEINFO="makeinfo"
4622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4623 break 2
4624 fi
4625 done
4626 done
4627 IFS=$as_save_IFS
4628
4629 fi
4630 fi
4631 MAKEINFO=$ac_cv_prog_MAKEINFO
4632 if test -n "$MAKEINFO"; then
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
4634 $as_echo "$MAKEINFO" >&6; }
4635 else
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4637 $as_echo "no" >&6; }
4638 fi
4639
4640
4641 if test -n "$MAKEINFO"; then
4642 # Found it, now check the version.
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
4644 $as_echo_n "checking for modern makeinfo... " >&6; }
4645 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
4646 $as_echo_n "(cached) " >&6
4647 else
4648 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
4649 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4650
4651 case $ac_prog_version in
4652 '') gcc_cv_prog_makeinfo_modern=no;;
4653 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
4654 *) gcc_cv_prog_makeinfo_modern=no;;
4655 esac
4656
4657 fi
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
4659 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
4660 else
4661 gcc_cv_prog_makeinfo_modern=no
4662 fi
4663 if test $gcc_cv_prog_makeinfo_modern = no; then
4664 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
4665 fi
4666
4667 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
4668 BUILD_INFO_TRUE=
4669 BUILD_INFO_FALSE='#'
4670 else
4671 BUILD_INFO_TRUE='#'
4672 BUILD_INFO_FALSE=
4673 fi
4674
4675
4676
4677 # Configure libtool
4678 case `pwd` in
4679 *\ * | *\ *)
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4681 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4682 esac
4683
4684
4685
4686 macro_version='2.2.7a'
4687 macro_revision='1.3134'
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701 ltmain="$ac_aux_dir/ltmain.sh"
4702
4703 # Backslashify metacharacters that are still active within
4704 # double-quoted strings.
4705 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4706
4707 # Same as above, but do not quote variable references.
4708 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4709
4710 # Sed substitution to delay expansion of an escaped shell variable in a
4711 # double_quote_subst'ed string.
4712 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4713
4714 # Sed substitution to delay expansion of an escaped single quote.
4715 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4716
4717 # Sed substitution to avoid accidental globbing in evaled expressions
4718 no_glob_subst='s/\*/\\\*/g'
4719
4720 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4721 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4722 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4723
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4725 $as_echo_n "checking how to print strings... " >&6; }
4726 # Test print first, because it will be a builtin if present.
4727 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4728 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4729 ECHO='print -r --'
4730 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4731 ECHO='printf %s\n'
4732 else
4733 # Use this function as a fallback that always works.
4734 func_fallback_echo ()
4735 {
4736 eval 'cat <<_LTECHO_EOF
4737 $1
4738 _LTECHO_EOF'
4739 }
4740 ECHO='func_fallback_echo'
4741 fi
4742
4743 # func_echo_all arg...
4744 # Invoke $ECHO with all args, space-separated.
4745 func_echo_all ()
4746 {
4747 $ECHO ""
4748 }
4749
4750 case "$ECHO" in
4751 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4752 $as_echo "printf" >&6; } ;;
4753 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4754 $as_echo "print -r" >&6; } ;;
4755 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4756 $as_echo "cat" >&6; } ;;
4757 esac
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4773 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4774 if test "${ac_cv_path_SED+set}" = set; then :
4775 $as_echo_n "(cached) " >&6
4776 else
4777 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4778 for ac_i in 1 2 3 4 5 6 7; do
4779 ac_script="$ac_script$as_nl$ac_script"
4780 done
4781 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4782 { ac_script=; unset ac_script;}
4783 if test -z "$SED"; then
4784 ac_path_SED_found=false
4785 # Loop through the user's path and test for each of PROGNAME-LIST
4786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4787 for as_dir in $PATH
4788 do
4789 IFS=$as_save_IFS
4790 test -z "$as_dir" && as_dir=.
4791 for ac_prog in sed gsed; do
4792 for ac_exec_ext in '' $ac_executable_extensions; do
4793 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4794 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4795 # Check for GNU ac_path_SED and select it if it is found.
4796 # Check for GNU $ac_path_SED
4797 case `"$ac_path_SED" --version 2>&1` in
4798 *GNU*)
4799 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4800 *)
4801 ac_count=0
4802 $as_echo_n 0123456789 >"conftest.in"
4803 while :
4804 do
4805 cat "conftest.in" "conftest.in" >"conftest.tmp"
4806 mv "conftest.tmp" "conftest.in"
4807 cp "conftest.in" "conftest.nl"
4808 $as_echo '' >> "conftest.nl"
4809 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4810 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4811 as_fn_arith $ac_count + 1 && ac_count=$as_val
4812 if test $ac_count -gt ${ac_path_SED_max-0}; then
4813 # Best one so far, save it but keep looking for a better one
4814 ac_cv_path_SED="$ac_path_SED"
4815 ac_path_SED_max=$ac_count
4816 fi
4817 # 10*(2^10) chars as input seems more than enough
4818 test $ac_count -gt 10 && break
4819 done
4820 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4821 esac
4822
4823 $ac_path_SED_found && break 3
4824 done
4825 done
4826 done
4827 IFS=$as_save_IFS
4828 if test -z "$ac_cv_path_SED"; then
4829 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4830 fi
4831 else
4832 ac_cv_path_SED=$SED
4833 fi
4834
4835 fi
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4837 $as_echo "$ac_cv_path_SED" >&6; }
4838 SED="$ac_cv_path_SED"
4839 rm -f conftest.sed
4840
4841 test -z "$SED" && SED=sed
4842 Xsed="$SED -e 1s/^X//"
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4855 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4856 if test "${ac_cv_path_GREP+set}" = set; then :
4857 $as_echo_n "(cached) " >&6
4858 else
4859 if test -z "$GREP"; then
4860 ac_path_GREP_found=false
4861 # Loop through the user's path and test for each of PROGNAME-LIST
4862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4863 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4864 do
4865 IFS=$as_save_IFS
4866 test -z "$as_dir" && as_dir=.
4867 for ac_prog in grep ggrep; do
4868 for ac_exec_ext in '' $ac_executable_extensions; do
4869 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4870 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4871 # Check for GNU ac_path_GREP and select it if it is found.
4872 # Check for GNU $ac_path_GREP
4873 case `"$ac_path_GREP" --version 2>&1` in
4874 *GNU*)
4875 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4876 *)
4877 ac_count=0
4878 $as_echo_n 0123456789 >"conftest.in"
4879 while :
4880 do
4881 cat "conftest.in" "conftest.in" >"conftest.tmp"
4882 mv "conftest.tmp" "conftest.in"
4883 cp "conftest.in" "conftest.nl"
4884 $as_echo 'GREP' >> "conftest.nl"
4885 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4886 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4887 as_fn_arith $ac_count + 1 && ac_count=$as_val
4888 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4889 # Best one so far, save it but keep looking for a better one
4890 ac_cv_path_GREP="$ac_path_GREP"
4891 ac_path_GREP_max=$ac_count
4892 fi
4893 # 10*(2^10) chars as input seems more than enough
4894 test $ac_count -gt 10 && break
4895 done
4896 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4897 esac
4898
4899 $ac_path_GREP_found && break 3
4900 done
4901 done
4902 done
4903 IFS=$as_save_IFS
4904 if test -z "$ac_cv_path_GREP"; then
4905 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4906 fi
4907 else
4908 ac_cv_path_GREP=$GREP
4909 fi
4910
4911 fi
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4913 $as_echo "$ac_cv_path_GREP" >&6; }
4914 GREP="$ac_cv_path_GREP"
4915
4916
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4918 $as_echo_n "checking for egrep... " >&6; }
4919 if test "${ac_cv_path_EGREP+set}" = set; then :
4920 $as_echo_n "(cached) " >&6
4921 else
4922 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4923 then ac_cv_path_EGREP="$GREP -E"
4924 else
4925 if test -z "$EGREP"; then
4926 ac_path_EGREP_found=false
4927 # Loop through the user's path and test for each of PROGNAME-LIST
4928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4929 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4930 do
4931 IFS=$as_save_IFS
4932 test -z "$as_dir" && as_dir=.
4933 for ac_prog in egrep; do
4934 for ac_exec_ext in '' $ac_executable_extensions; do
4935 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4936 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4937 # Check for GNU ac_path_EGREP and select it if it is found.
4938 # Check for GNU $ac_path_EGREP
4939 case `"$ac_path_EGREP" --version 2>&1` in
4940 *GNU*)
4941 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4942 *)
4943 ac_count=0
4944 $as_echo_n 0123456789 >"conftest.in"
4945 while :
4946 do
4947 cat "conftest.in" "conftest.in" >"conftest.tmp"
4948 mv "conftest.tmp" "conftest.in"
4949 cp "conftest.in" "conftest.nl"
4950 $as_echo 'EGREP' >> "conftest.nl"
4951 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4952 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4953 as_fn_arith $ac_count + 1 && ac_count=$as_val
4954 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4955 # Best one so far, save it but keep looking for a better one
4956 ac_cv_path_EGREP="$ac_path_EGREP"
4957 ac_path_EGREP_max=$ac_count
4958 fi
4959 # 10*(2^10) chars as input seems more than enough
4960 test $ac_count -gt 10 && break
4961 done
4962 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4963 esac
4964
4965 $ac_path_EGREP_found && break 3
4966 done
4967 done
4968 done
4969 IFS=$as_save_IFS
4970 if test -z "$ac_cv_path_EGREP"; then
4971 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4972 fi
4973 else
4974 ac_cv_path_EGREP=$EGREP
4975 fi
4976
4977 fi
4978 fi
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4980 $as_echo "$ac_cv_path_EGREP" >&6; }
4981 EGREP="$ac_cv_path_EGREP"
4982
4983
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4985 $as_echo_n "checking for fgrep... " >&6; }
4986 if test "${ac_cv_path_FGREP+set}" = set; then :
4987 $as_echo_n "(cached) " >&6
4988 else
4989 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4990 then ac_cv_path_FGREP="$GREP -F"
4991 else
4992 if test -z "$FGREP"; then
4993 ac_path_FGREP_found=false
4994 # Loop through the user's path and test for each of PROGNAME-LIST
4995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4996 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4997 do
4998 IFS=$as_save_IFS
4999 test -z "$as_dir" && as_dir=.
5000 for ac_prog in fgrep; do
5001 for ac_exec_ext in '' $ac_executable_extensions; do
5002 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5003 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5004 # Check for GNU ac_path_FGREP and select it if it is found.
5005 # Check for GNU $ac_path_FGREP
5006 case `"$ac_path_FGREP" --version 2>&1` in
5007 *GNU*)
5008 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5009 *)
5010 ac_count=0
5011 $as_echo_n 0123456789 >"conftest.in"
5012 while :
5013 do
5014 cat "conftest.in" "conftest.in" >"conftest.tmp"
5015 mv "conftest.tmp" "conftest.in"
5016 cp "conftest.in" "conftest.nl"
5017 $as_echo 'FGREP' >> "conftest.nl"
5018 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5019 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5020 as_fn_arith $ac_count + 1 && ac_count=$as_val
5021 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5022 # Best one so far, save it but keep looking for a better one
5023 ac_cv_path_FGREP="$ac_path_FGREP"
5024 ac_path_FGREP_max=$ac_count
5025 fi
5026 # 10*(2^10) chars as input seems more than enough
5027 test $ac_count -gt 10 && break
5028 done
5029 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5030 esac
5031
5032 $ac_path_FGREP_found && break 3
5033 done
5034 done
5035 done
5036 IFS=$as_save_IFS
5037 if test -z "$ac_cv_path_FGREP"; then
5038 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5039 fi
5040 else
5041 ac_cv_path_FGREP=$FGREP
5042 fi
5043
5044 fi
5045 fi
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5047 $as_echo "$ac_cv_path_FGREP" >&6; }
5048 FGREP="$ac_cv_path_FGREP"
5049
5050
5051 test -z "$GREP" && GREP=grep
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071 # Check whether --with-gnu-ld was given.
5072 if test "${with_gnu_ld+set}" = set; then :
5073 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5074 else
5075 with_gnu_ld=no
5076 fi
5077
5078 ac_prog=ld
5079 if test "$GCC" = yes; then
5080 # Check if gcc -print-prog-name=ld gives a path.
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5082 $as_echo_n "checking for ld used by $CC... " >&6; }
5083 case $host in
5084 *-*-mingw*)
5085 # gcc leaves a trailing carriage return which upsets mingw
5086 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5087 *)
5088 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5089 esac
5090 case $ac_prog in
5091 # Accept absolute paths.
5092 [\\/]* | ?:[\\/]*)
5093 re_direlt='/[^/][^/]*/\.\./'
5094 # Canonicalize the pathname of ld
5095 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5096 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5097 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5098 done
5099 test -z "$LD" && LD="$ac_prog"
5100 ;;
5101 "")
5102 # If it fails, then pretend we aren't using GCC.
5103 ac_prog=ld
5104 ;;
5105 *)
5106 # If it is relative, then search for the first ld in PATH.
5107 with_gnu_ld=unknown
5108 ;;
5109 esac
5110 elif test "$with_gnu_ld" = yes; then
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5112 $as_echo_n "checking for GNU ld... " >&6; }
5113 else
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5115 $as_echo_n "checking for non-GNU ld... " >&6; }
5116 fi
5117 if test "${lt_cv_path_LD+set}" = set; then :
5118 $as_echo_n "(cached) " >&6
5119 else
5120 if test -z "$LD"; then
5121 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5122 for ac_dir in $PATH; do
5123 IFS="$lt_save_ifs"
5124 test -z "$ac_dir" && ac_dir=.
5125 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5126 lt_cv_path_LD="$ac_dir/$ac_prog"
5127 # Check to see if the program is GNU ld. I'd rather use --version,
5128 # but apparently some variants of GNU ld only accept -v.
5129 # Break only if it was the GNU/non-GNU ld that we prefer.
5130 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5131 *GNU* | *'with BFD'*)
5132 test "$with_gnu_ld" != no && break
5133 ;;
5134 *)
5135 test "$with_gnu_ld" != yes && break
5136 ;;
5137 esac
5138 fi
5139 done
5140 IFS="$lt_save_ifs"
5141 else
5142 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5143 fi
5144 fi
5145
5146 LD="$lt_cv_path_LD"
5147 if test -n "$LD"; then
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5149 $as_echo "$LD" >&6; }
5150 else
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5152 $as_echo "no" >&6; }
5153 fi
5154 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5156 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5157 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5158 $as_echo_n "(cached) " >&6
5159 else
5160 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5161 case `$LD -v 2>&1 </dev/null` in
5162 *GNU* | *'with BFD'*)
5163 lt_cv_prog_gnu_ld=yes
5164 ;;
5165 *)
5166 lt_cv_prog_gnu_ld=no
5167 ;;
5168 esac
5169 fi
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5171 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5172 with_gnu_ld=$lt_cv_prog_gnu_ld
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5183 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5184 if test "${lt_cv_path_NM+set}" = set; then :
5185 $as_echo_n "(cached) " >&6
5186 else
5187 if test -n "$NM"; then
5188 # Let the user override the test.
5189 lt_cv_path_NM="$NM"
5190 else
5191 lt_nm_to_check="${ac_tool_prefix}nm"
5192 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5193 lt_nm_to_check="$lt_nm_to_check nm"
5194 fi
5195 for lt_tmp_nm in $lt_nm_to_check; do
5196 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5197 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5198 IFS="$lt_save_ifs"
5199 test -z "$ac_dir" && ac_dir=.
5200 tmp_nm="$ac_dir/$lt_tmp_nm"
5201 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5202 # Check to see if the nm accepts a BSD-compat flag.
5203 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5204 # nm: unknown option "B" ignored
5205 # Tru64's nm complains that /dev/null is an invalid object file
5206 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5207 */dev/null* | *'Invalid file or object type'*)
5208 lt_cv_path_NM="$tmp_nm -B"
5209 break
5210 ;;
5211 *)
5212 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5213 */dev/null*)
5214 lt_cv_path_NM="$tmp_nm -p"
5215 break
5216 ;;
5217 *)
5218 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5219 continue # so that we can try to find one that supports BSD flags
5220 ;;
5221 esac
5222 ;;
5223 esac
5224 fi
5225 done
5226 IFS="$lt_save_ifs"
5227 done
5228 : ${lt_cv_path_NM=no}
5229 fi
5230 fi
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5232 $as_echo "$lt_cv_path_NM" >&6; }
5233 if test "$lt_cv_path_NM" != "no"; then
5234 NM="$lt_cv_path_NM"
5235 else
5236 # Didn't find any BSD compatible name lister, look for dumpbin.
5237 if test -n "$DUMPBIN"; then :
5238 # Let the user override the test.
5239 else
5240 if test -n "$ac_tool_prefix"; then
5241 for ac_prog in dumpbin "link -dump"
5242 do
5243 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5244 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5246 $as_echo_n "checking for $ac_word... " >&6; }
5247 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5248 $as_echo_n "(cached) " >&6
5249 else
5250 if test -n "$DUMPBIN"; then
5251 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5252 else
5253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5254 for as_dir in $PATH
5255 do
5256 IFS=$as_save_IFS
5257 test -z "$as_dir" && as_dir=.
5258 for ac_exec_ext in '' $ac_executable_extensions; do
5259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5260 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5262 break 2
5263 fi
5264 done
5265 done
5266 IFS=$as_save_IFS
5267
5268 fi
5269 fi
5270 DUMPBIN=$ac_cv_prog_DUMPBIN
5271 if test -n "$DUMPBIN"; then
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5273 $as_echo "$DUMPBIN" >&6; }
5274 else
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5276 $as_echo "no" >&6; }
5277 fi
5278
5279
5280 test -n "$DUMPBIN" && break
5281 done
5282 fi
5283 if test -z "$DUMPBIN"; then
5284 ac_ct_DUMPBIN=$DUMPBIN
5285 for ac_prog in dumpbin "link -dump"
5286 do
5287 # Extract the first word of "$ac_prog", so it can be a program name with args.
5288 set dummy $ac_prog; ac_word=$2
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5290 $as_echo_n "checking for $ac_word... " >&6; }
5291 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5292 $as_echo_n "(cached) " >&6
5293 else
5294 if test -n "$ac_ct_DUMPBIN"; then
5295 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5296 else
5297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5298 for as_dir in $PATH
5299 do
5300 IFS=$as_save_IFS
5301 test -z "$as_dir" && as_dir=.
5302 for ac_exec_ext in '' $ac_executable_extensions; do
5303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5304 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5306 break 2
5307 fi
5308 done
5309 done
5310 IFS=$as_save_IFS
5311
5312 fi
5313 fi
5314 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5315 if test -n "$ac_ct_DUMPBIN"; then
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5317 $as_echo "$ac_ct_DUMPBIN" >&6; }
5318 else
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5320 $as_echo "no" >&6; }
5321 fi
5322
5323
5324 test -n "$ac_ct_DUMPBIN" && break
5325 done
5326
5327 if test "x$ac_ct_DUMPBIN" = x; then
5328 DUMPBIN=":"
5329 else
5330 case $cross_compiling:$ac_tool_warned in
5331 yes:)
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5333 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5334 ac_tool_warned=yes ;;
5335 esac
5336 DUMPBIN=$ac_ct_DUMPBIN
5337 fi
5338 fi
5339
5340 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5341 *COFF*)
5342 DUMPBIN="$DUMPBIN -symbols"
5343 ;;
5344 *)
5345 DUMPBIN=:
5346 ;;
5347 esac
5348 fi
5349
5350 if test "$DUMPBIN" != ":"; then
5351 NM="$DUMPBIN"
5352 fi
5353 fi
5354 test -z "$NM" && NM=nm
5355
5356
5357
5358
5359
5360
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5362 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5363 if test "${lt_cv_nm_interface+set}" = set; then :
5364 $as_echo_n "(cached) " >&6
5365 else
5366 lt_cv_nm_interface="BSD nm"
5367 echo "int some_variable = 0;" > conftest.$ac_ext
5368 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5369 (eval "$ac_compile" 2>conftest.err)
5370 cat conftest.err >&5
5371 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5372 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5373 cat conftest.err >&5
5374 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5375 cat conftest.out >&5
5376 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5377 lt_cv_nm_interface="MS dumpbin"
5378 fi
5379 rm -f conftest*
5380 fi
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5382 $as_echo "$lt_cv_nm_interface" >&6; }
5383
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5385 $as_echo_n "checking whether ln -s works... " >&6; }
5386 LN_S=$as_ln_s
5387 if test "$LN_S" = "ln -s"; then
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5389 $as_echo "yes" >&6; }
5390 else
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5392 $as_echo "no, using $LN_S" >&6; }
5393 fi
5394
5395 # find the maximum length of command line arguments
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5397 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5398 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5399 $as_echo_n "(cached) " >&6
5400 else
5401 i=0
5402 teststring="ABCD"
5403
5404 case $build_os in
5405 msdosdjgpp*)
5406 # On DJGPP, this test can blow up pretty badly due to problems in libc
5407 # (any single argument exceeding 2000 bytes causes a buffer overrun
5408 # during glob expansion). Even if it were fixed, the result of this
5409 # check would be larger than it should be.
5410 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5411 ;;
5412
5413 gnu*)
5414 # Under GNU Hurd, this test is not required because there is
5415 # no limit to the length of command line arguments.
5416 # Libtool will interpret -1 as no limit whatsoever
5417 lt_cv_sys_max_cmd_len=-1;
5418 ;;
5419
5420 cygwin* | mingw* | cegcc*)
5421 # On Win9x/ME, this test blows up -- it succeeds, but takes
5422 # about 5 minutes as the teststring grows exponentially.
5423 # Worse, since 9x/ME are not pre-emptively multitasking,
5424 # you end up with a "frozen" computer, even though with patience
5425 # the test eventually succeeds (with a max line length of 256k).
5426 # Instead, let's just punt: use the minimum linelength reported by
5427 # all of the supported platforms: 8192 (on NT/2K/XP).
5428 lt_cv_sys_max_cmd_len=8192;
5429 ;;
5430
5431 mint*)
5432 # On MiNT this can take a long time and run out of memory.
5433 lt_cv_sys_max_cmd_len=8192;
5434 ;;
5435
5436 amigaos*)
5437 # On AmigaOS with pdksh, this test takes hours, literally.
5438 # So we just punt and use a minimum line length of 8192.
5439 lt_cv_sys_max_cmd_len=8192;
5440 ;;
5441
5442 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5443 # This has been around since 386BSD, at least. Likely further.
5444 if test -x /sbin/sysctl; then
5445 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5446 elif test -x /usr/sbin/sysctl; then
5447 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5448 else
5449 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5450 fi
5451 # And add a safety zone
5452 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5453 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5454 ;;
5455
5456 interix*)
5457 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5458 lt_cv_sys_max_cmd_len=196608
5459 ;;
5460
5461 osf*)
5462 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5463 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5464 # nice to cause kernel panics so lets avoid the loop below.
5465 # First set a reasonable default.
5466 lt_cv_sys_max_cmd_len=16384
5467 #
5468 if test -x /sbin/sysconfig; then
5469 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5470 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5471 esac
5472 fi
5473 ;;
5474 sco3.2v5*)
5475 lt_cv_sys_max_cmd_len=102400
5476 ;;
5477 sysv5* | sco5v6* | sysv4.2uw2*)
5478 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5479 if test -n "$kargmax"; then
5480 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5481 else
5482 lt_cv_sys_max_cmd_len=32768
5483 fi
5484 ;;
5485 *)
5486 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5487 if test -n "$lt_cv_sys_max_cmd_len"; then
5488 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5489 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5490 else
5491 # Make teststring a little bigger before we do anything with it.
5492 # a 1K string should be a reasonable start.
5493 for i in 1 2 3 4 5 6 7 8 ; do
5494 teststring=$teststring$teststring
5495 done
5496 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5497 # If test is not a shell built-in, we'll probably end up computing a
5498 # maximum length that is only half of the actual maximum length, but
5499 # we can't tell.
5500 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5501 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5502 test $i != 17 # 1/2 MB should be enough
5503 do
5504 i=`expr $i + 1`
5505 teststring=$teststring$teststring
5506 done
5507 # Only check the string length outside the loop.
5508 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5509 teststring=
5510 # Add a significant safety factor because C++ compilers can tack on
5511 # massive amounts of additional arguments before passing them to the
5512 # linker. It appears as though 1/2 is a usable value.
5513 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5514 fi
5515 ;;
5516 esac
5517
5518 fi
5519
5520 if test -n $lt_cv_sys_max_cmd_len ; then
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5522 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5523 else
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5525 $as_echo "none" >&6; }
5526 fi
5527 max_cmd_len=$lt_cv_sys_max_cmd_len
5528
5529
5530
5531
5532
5533
5534 : ${CP="cp -f"}
5535 : ${MV="mv -f"}
5536 : ${RM="rm -f"}
5537
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5539 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5540 # Try some XSI features
5541 xsi_shell=no
5542 ( _lt_dummy="a/b/c"
5543 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5544 = c,a/b,, \
5545 && eval 'test $(( 1 + 1 )) -eq 2 \
5546 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5547 && xsi_shell=yes
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5549 $as_echo "$xsi_shell" >&6; }
5550
5551
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5553 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5554 lt_shell_append=no
5555 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5556 >/dev/null 2>&1 \
5557 && lt_shell_append=yes
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5559 $as_echo "$lt_shell_append" >&6; }
5560
5561
5562 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5563 lt_unset=unset
5564 else
5565 lt_unset=false
5566 fi
5567
5568
5569
5570
5571
5572 # test EBCDIC or ASCII
5573 case `echo X|tr X '\101'` in
5574 A) # ASCII based system
5575 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5576 lt_SP2NL='tr \040 \012'
5577 lt_NL2SP='tr \015\012 \040\040'
5578 ;;
5579 *) # EBCDIC based system
5580 lt_SP2NL='tr \100 \n'
5581 lt_NL2SP='tr \r\n \100\100'
5582 ;;
5583 esac
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5594 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5595 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5596 $as_echo_n "(cached) " >&6
5597 else
5598 lt_cv_ld_reload_flag='-r'
5599 fi
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5601 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5602 reload_flag=$lt_cv_ld_reload_flag
5603 case $reload_flag in
5604 "" | " "*) ;;
5605 *) reload_flag=" $reload_flag" ;;
5606 esac
5607 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5608 case $host_os in
5609 darwin*)
5610 if test "$GCC" = yes; then
5611 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5612 else
5613 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5614 fi
5615 ;;
5616 esac
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626 if test -n "$ac_tool_prefix"; then
5627 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5628 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5630 $as_echo_n "checking for $ac_word... " >&6; }
5631 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5632 $as_echo_n "(cached) " >&6
5633 else
5634 if test -n "$OBJDUMP"; then
5635 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5636 else
5637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5638 for as_dir in $PATH
5639 do
5640 IFS=$as_save_IFS
5641 test -z "$as_dir" && as_dir=.
5642 for ac_exec_ext in '' $ac_executable_extensions; do
5643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5644 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5646 break 2
5647 fi
5648 done
5649 done
5650 IFS=$as_save_IFS
5651
5652 fi
5653 fi
5654 OBJDUMP=$ac_cv_prog_OBJDUMP
5655 if test -n "$OBJDUMP"; then
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5657 $as_echo "$OBJDUMP" >&6; }
5658 else
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5660 $as_echo "no" >&6; }
5661 fi
5662
5663
5664 fi
5665 if test -z "$ac_cv_prog_OBJDUMP"; then
5666 ac_ct_OBJDUMP=$OBJDUMP
5667 # Extract the first word of "objdump", so it can be a program name with args.
5668 set dummy objdump; ac_word=$2
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5670 $as_echo_n "checking for $ac_word... " >&6; }
5671 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5672 $as_echo_n "(cached) " >&6
5673 else
5674 if test -n "$ac_ct_OBJDUMP"; then
5675 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5676 else
5677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5678 for as_dir in $PATH
5679 do
5680 IFS=$as_save_IFS
5681 test -z "$as_dir" && as_dir=.
5682 for ac_exec_ext in '' $ac_executable_extensions; do
5683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5684 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5686 break 2
5687 fi
5688 done
5689 done
5690 IFS=$as_save_IFS
5691
5692 fi
5693 fi
5694 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5695 if test -n "$ac_ct_OBJDUMP"; then
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5697 $as_echo "$ac_ct_OBJDUMP" >&6; }
5698 else
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5700 $as_echo "no" >&6; }
5701 fi
5702
5703 if test "x$ac_ct_OBJDUMP" = x; then
5704 OBJDUMP="false"
5705 else
5706 case $cross_compiling:$ac_tool_warned in
5707 yes:)
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5709 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5710 ac_tool_warned=yes ;;
5711 esac
5712 OBJDUMP=$ac_ct_OBJDUMP
5713 fi
5714 else
5715 OBJDUMP="$ac_cv_prog_OBJDUMP"
5716 fi
5717
5718 test -z "$OBJDUMP" && OBJDUMP=objdump
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5729 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5730 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5731 $as_echo_n "(cached) " >&6
5732 else
5733 lt_cv_file_magic_cmd='$MAGIC_CMD'
5734 lt_cv_file_magic_test_file=
5735 lt_cv_deplibs_check_method='unknown'
5736 # Need to set the preceding variable on all platforms that support
5737 # interlibrary dependencies.
5738 # 'none' -- dependencies not supported.
5739 # `unknown' -- same as none, but documents that we really don't know.
5740 # 'pass_all' -- all dependencies passed with no checks.
5741 # 'test_compile' -- check by making test program.
5742 # 'file_magic [[regex]]' -- check by looking for files in library path
5743 # which responds to the $file_magic_cmd with a given extended regex.
5744 # If you have `file' or equivalent on your system and you're not sure
5745 # whether `pass_all' will *always* work, you probably want this one.
5746
5747 case $host_os in
5748 aix[4-9]*)
5749 lt_cv_deplibs_check_method=pass_all
5750 ;;
5751
5752 beos*)
5753 lt_cv_deplibs_check_method=pass_all
5754 ;;
5755
5756 bsdi[45]*)
5757 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5758 lt_cv_file_magic_cmd='/usr/bin/file -L'
5759 lt_cv_file_magic_test_file=/shlib/libc.so
5760 ;;
5761
5762 cygwin*)
5763 # func_win32_libid is a shell function defined in ltmain.sh
5764 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5765 lt_cv_file_magic_cmd='func_win32_libid'
5766 ;;
5767
5768 mingw* | pw32*)
5769 # Base MSYS/MinGW do not provide the 'file' command needed by
5770 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5771 # unless we find 'file', for example because we are cross-compiling.
5772 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5773 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5774 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5775 lt_cv_file_magic_cmd='func_win32_libid'
5776 else
5777 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5778 lt_cv_file_magic_cmd='$OBJDUMP -f'
5779 fi
5780 ;;
5781
5782 cegcc*)
5783 # use the weaker test based on 'objdump'. See mingw*.
5784 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5785 lt_cv_file_magic_cmd='$OBJDUMP -f'
5786 ;;
5787
5788 darwin* | rhapsody*)
5789 lt_cv_deplibs_check_method=pass_all
5790 ;;
5791
5792 freebsd* | dragonfly*)
5793 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5794 case $host_cpu in
5795 i*86 )
5796 # Not sure whether the presence of OpenBSD here was a mistake.
5797 # Let's accept both of them until this is cleared up.
5798 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5799 lt_cv_file_magic_cmd=/usr/bin/file
5800 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5801 ;;
5802 esac
5803 else
5804 lt_cv_deplibs_check_method=pass_all
5805 fi
5806 ;;
5807
5808 gnu*)
5809 lt_cv_deplibs_check_method=pass_all
5810 ;;
5811
5812 haiku*)
5813 lt_cv_deplibs_check_method=pass_all
5814 ;;
5815
5816 hpux10.20* | hpux11*)
5817 lt_cv_file_magic_cmd=/usr/bin/file
5818 case $host_cpu in
5819 ia64*)
5820 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5821 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5822 ;;
5823 hppa*64*)
5824 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]'
5825 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5826 ;;
5827 *)
5828 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5829 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5830 ;;
5831 esac
5832 ;;
5833
5834 interix[3-9]*)
5835 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5836 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5837 ;;
5838
5839 irix5* | irix6* | nonstopux*)
5840 case $LD in
5841 *-32|*"-32 ") libmagic=32-bit;;
5842 *-n32|*"-n32 ") libmagic=N32;;
5843 *-64|*"-64 ") libmagic=64-bit;;
5844 *) libmagic=never-match;;
5845 esac
5846 lt_cv_deplibs_check_method=pass_all
5847 ;;
5848
5849 # This must be Linux ELF.
5850 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5851 lt_cv_deplibs_check_method=pass_all
5852 ;;
5853
5854 netbsd*)
5855 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5856 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5857 else
5858 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5859 fi
5860 ;;
5861
5862 newos6*)
5863 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5864 lt_cv_file_magic_cmd=/usr/bin/file
5865 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5866 ;;
5867
5868 *nto* | *qnx*)
5869 lt_cv_deplibs_check_method=pass_all
5870 ;;
5871
5872 openbsd*)
5873 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5874 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5875 else
5876 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5877 fi
5878 ;;
5879
5880 osf3* | osf4* | osf5*)
5881 lt_cv_deplibs_check_method=pass_all
5882 ;;
5883
5884 rdos*)
5885 lt_cv_deplibs_check_method=pass_all
5886 ;;
5887
5888 solaris*)
5889 lt_cv_deplibs_check_method=pass_all
5890 ;;
5891
5892 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5893 lt_cv_deplibs_check_method=pass_all
5894 ;;
5895
5896 sysv4 | sysv4.3*)
5897 case $host_vendor in
5898 motorola)
5899 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]'
5900 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5901 ;;
5902 ncr)
5903 lt_cv_deplibs_check_method=pass_all
5904 ;;
5905 sequent)
5906 lt_cv_file_magic_cmd='/bin/file'
5907 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5908 ;;
5909 sni)
5910 lt_cv_file_magic_cmd='/bin/file'
5911 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5912 lt_cv_file_magic_test_file=/lib/libc.so
5913 ;;
5914 siemens)
5915 lt_cv_deplibs_check_method=pass_all
5916 ;;
5917 pc)
5918 lt_cv_deplibs_check_method=pass_all
5919 ;;
5920 esac
5921 ;;
5922
5923 tpf*)
5924 lt_cv_deplibs_check_method=pass_all
5925 ;;
5926 esac
5927
5928 fi
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5930 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5931 file_magic_cmd=$lt_cv_file_magic_cmd
5932 deplibs_check_method=$lt_cv_deplibs_check_method
5933 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946 if test -n "$ac_tool_prefix"; then
5947 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5948 set dummy ${ac_tool_prefix}ar; ac_word=$2
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5950 $as_echo_n "checking for $ac_word... " >&6; }
5951 if test "${ac_cv_prog_AR+set}" = set; then :
5952 $as_echo_n "(cached) " >&6
5953 else
5954 if test -n "$AR"; then
5955 ac_cv_prog_AR="$AR" # Let the user override the test.
5956 else
5957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5958 for as_dir in $PATH
5959 do
5960 IFS=$as_save_IFS
5961 test -z "$as_dir" && as_dir=.
5962 for ac_exec_ext in '' $ac_executable_extensions; do
5963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5964 ac_cv_prog_AR="${ac_tool_prefix}ar"
5965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5966 break 2
5967 fi
5968 done
5969 done
5970 IFS=$as_save_IFS
5971
5972 fi
5973 fi
5974 AR=$ac_cv_prog_AR
5975 if test -n "$AR"; then
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5977 $as_echo "$AR" >&6; }
5978 else
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5980 $as_echo "no" >&6; }
5981 fi
5982
5983
5984 fi
5985 if test -z "$ac_cv_prog_AR"; then
5986 ac_ct_AR=$AR
5987 # Extract the first word of "ar", so it can be a program name with args.
5988 set dummy ar; ac_word=$2
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5990 $as_echo_n "checking for $ac_word... " >&6; }
5991 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5992 $as_echo_n "(cached) " >&6
5993 else
5994 if test -n "$ac_ct_AR"; then
5995 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5996 else
5997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5998 for as_dir in $PATH
5999 do
6000 IFS=$as_save_IFS
6001 test -z "$as_dir" && as_dir=.
6002 for ac_exec_ext in '' $ac_executable_extensions; do
6003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6004 ac_cv_prog_ac_ct_AR="ar"
6005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6006 break 2
6007 fi
6008 done
6009 done
6010 IFS=$as_save_IFS
6011
6012 fi
6013 fi
6014 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6015 if test -n "$ac_ct_AR"; then
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6017 $as_echo "$ac_ct_AR" >&6; }
6018 else
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6020 $as_echo "no" >&6; }
6021 fi
6022
6023 if test "x$ac_ct_AR" = x; then
6024 AR="false"
6025 else
6026 case $cross_compiling:$ac_tool_warned in
6027 yes:)
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6029 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6030 ac_tool_warned=yes ;;
6031 esac
6032 AR=$ac_ct_AR
6033 fi
6034 else
6035 AR="$ac_cv_prog_AR"
6036 fi
6037
6038 test -z "$AR" && AR=ar
6039 test -z "$AR_FLAGS" && AR_FLAGS=cru
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051 if test -n "$ac_tool_prefix"; then
6052 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6053 set dummy ${ac_tool_prefix}strip; ac_word=$2
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6055 $as_echo_n "checking for $ac_word... " >&6; }
6056 if test "${ac_cv_prog_STRIP+set}" = set; then :
6057 $as_echo_n "(cached) " >&6
6058 else
6059 if test -n "$STRIP"; then
6060 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6061 else
6062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6063 for as_dir in $PATH
6064 do
6065 IFS=$as_save_IFS
6066 test -z "$as_dir" && as_dir=.
6067 for ac_exec_ext in '' $ac_executable_extensions; do
6068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6069 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6071 break 2
6072 fi
6073 done
6074 done
6075 IFS=$as_save_IFS
6076
6077 fi
6078 fi
6079 STRIP=$ac_cv_prog_STRIP
6080 if test -n "$STRIP"; then
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6082 $as_echo "$STRIP" >&6; }
6083 else
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6085 $as_echo "no" >&6; }
6086 fi
6087
6088
6089 fi
6090 if test -z "$ac_cv_prog_STRIP"; then
6091 ac_ct_STRIP=$STRIP
6092 # Extract the first word of "strip", so it can be a program name with args.
6093 set dummy strip; ac_word=$2
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6095 $as_echo_n "checking for $ac_word... " >&6; }
6096 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6097 $as_echo_n "(cached) " >&6
6098 else
6099 if test -n "$ac_ct_STRIP"; then
6100 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6101 else
6102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6103 for as_dir in $PATH
6104 do
6105 IFS=$as_save_IFS
6106 test -z "$as_dir" && as_dir=.
6107 for ac_exec_ext in '' $ac_executable_extensions; do
6108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6109 ac_cv_prog_ac_ct_STRIP="strip"
6110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6111 break 2
6112 fi
6113 done
6114 done
6115 IFS=$as_save_IFS
6116
6117 fi
6118 fi
6119 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6120 if test -n "$ac_ct_STRIP"; then
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6122 $as_echo "$ac_ct_STRIP" >&6; }
6123 else
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6125 $as_echo "no" >&6; }
6126 fi
6127
6128 if test "x$ac_ct_STRIP" = x; then
6129 STRIP=":"
6130 else
6131 case $cross_compiling:$ac_tool_warned in
6132 yes:)
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6134 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6135 ac_tool_warned=yes ;;
6136 esac
6137 STRIP=$ac_ct_STRIP
6138 fi
6139 else
6140 STRIP="$ac_cv_prog_STRIP"
6141 fi
6142
6143 test -z "$STRIP" && STRIP=:
6144
6145
6146
6147
6148
6149
6150 if test -n "$ac_tool_prefix"; then
6151 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6152 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6154 $as_echo_n "checking for $ac_word... " >&6; }
6155 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6156 $as_echo_n "(cached) " >&6
6157 else
6158 if test -n "$RANLIB"; then
6159 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6160 else
6161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6162 for as_dir in $PATH
6163 do
6164 IFS=$as_save_IFS
6165 test -z "$as_dir" && as_dir=.
6166 for ac_exec_ext in '' $ac_executable_extensions; do
6167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6168 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6170 break 2
6171 fi
6172 done
6173 done
6174 IFS=$as_save_IFS
6175
6176 fi
6177 fi
6178 RANLIB=$ac_cv_prog_RANLIB
6179 if test -n "$RANLIB"; then
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6181 $as_echo "$RANLIB" >&6; }
6182 else
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6184 $as_echo "no" >&6; }
6185 fi
6186
6187
6188 fi
6189 if test -z "$ac_cv_prog_RANLIB"; then
6190 ac_ct_RANLIB=$RANLIB
6191 # Extract the first word of "ranlib", so it can be a program name with args.
6192 set dummy ranlib; ac_word=$2
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6194 $as_echo_n "checking for $ac_word... " >&6; }
6195 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6196 $as_echo_n "(cached) " >&6
6197 else
6198 if test -n "$ac_ct_RANLIB"; then
6199 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6200 else
6201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6202 for as_dir in $PATH
6203 do
6204 IFS=$as_save_IFS
6205 test -z "$as_dir" && as_dir=.
6206 for ac_exec_ext in '' $ac_executable_extensions; do
6207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6208 ac_cv_prog_ac_ct_RANLIB="ranlib"
6209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6210 break 2
6211 fi
6212 done
6213 done
6214 IFS=$as_save_IFS
6215
6216 fi
6217 fi
6218 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6219 if test -n "$ac_ct_RANLIB"; then
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6221 $as_echo "$ac_ct_RANLIB" >&6; }
6222 else
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6224 $as_echo "no" >&6; }
6225 fi
6226
6227 if test "x$ac_ct_RANLIB" = x; then
6228 RANLIB=":"
6229 else
6230 case $cross_compiling:$ac_tool_warned in
6231 yes:)
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6233 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6234 ac_tool_warned=yes ;;
6235 esac
6236 RANLIB=$ac_ct_RANLIB
6237 fi
6238 else
6239 RANLIB="$ac_cv_prog_RANLIB"
6240 fi
6241
6242 test -z "$RANLIB" && RANLIB=:
6243
6244
6245
6246
6247
6248
6249 # Determine commands to create old-style static archives.
6250 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6251 old_postinstall_cmds='chmod 644 $oldlib'
6252 old_postuninstall_cmds=
6253
6254 if test -n "$RANLIB"; then
6255 case $host_os in
6256 openbsd*)
6257 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6258 ;;
6259 *)
6260 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6261 ;;
6262 esac
6263 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6264 fi
6265
6266 case $host_os in
6267 darwin*)
6268 lock_old_archive_extraction=yes ;;
6269 *)
6270 lock_old_archive_extraction=no ;;
6271 esac
6272
6273
6274
6275
6276
6277
6278
6279
6280
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 # If no C compiler was specified, use CC.
6312 LTCC=${LTCC-"$CC"}
6313
6314 # If no C compiler flags were specified, use CFLAGS.
6315 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6316
6317 # Allow CC to be a program name with arguments.
6318 compiler=$CC
6319
6320
6321 # Check for command to grab the raw symbol name followed by C symbol from nm.
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6323 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6324 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6325 $as_echo_n "(cached) " >&6
6326 else
6327
6328 # These are sane defaults that work on at least a few old systems.
6329 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6330
6331 # Character class describing NM global symbol codes.
6332 symcode='[BCDEGRST]'
6333
6334 # Regexp to match symbols that can be accessed directly from C.
6335 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6336
6337 # Define system-specific variables.
6338 case $host_os in
6339 aix*)
6340 symcode='[BCDT]'
6341 ;;
6342 cygwin* | mingw* | pw32* | cegcc*)
6343 symcode='[ABCDGISTW]'
6344 ;;
6345 hpux*)
6346 if test "$host_cpu" = ia64; then
6347 symcode='[ABCDEGRST]'
6348 fi
6349 ;;
6350 irix* | nonstopux*)
6351 symcode='[BCDEGRST]'
6352 ;;
6353 osf*)
6354 symcode='[BCDEGQRST]'
6355 ;;
6356 solaris*)
6357 symcode='[BDRT]'
6358 ;;
6359 sco3.2v5*)
6360 symcode='[DT]'
6361 ;;
6362 sysv4.2uw2*)
6363 symcode='[DT]'
6364 ;;
6365 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6366 symcode='[ABDT]'
6367 ;;
6368 sysv4)
6369 symcode='[DFNSTU]'
6370 ;;
6371 esac
6372
6373 # If we're using GNU nm, then use its standard symbol codes.
6374 case `$NM -V 2>&1` in
6375 *GNU* | *'with BFD'*)
6376 symcode='[ABCDGIRSTW]' ;;
6377 esac
6378
6379 # Transform an extracted symbol line into a proper C declaration.
6380 # Some systems (esp. on ia64) link data and code symbols differently,
6381 # so use this general approach.
6382 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6383
6384 # Transform an extracted symbol line into symbol name and symbol address
6385 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6386 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'"
6387
6388 # Handle CRLF in mingw tool chain
6389 opt_cr=
6390 case $build_os in
6391 mingw*)
6392 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6393 ;;
6394 esac
6395
6396 # Try without a prefix underscore, then with it.
6397 for ac_symprfx in "" "_"; do
6398
6399 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6400 symxfrm="\\1 $ac_symprfx\\2 \\2"
6401
6402 # Write the raw and C identifiers.
6403 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6404 # Fake it for dumpbin and say T for any non-static function
6405 # and D for any global variable.
6406 # Also find C++ and __fastcall symbols from MSVC++,
6407 # which start with @ or ?.
6408 lt_cv_sys_global_symbol_pipe="$AWK '"\
6409 " {last_section=section; section=\$ 3};"\
6410 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6411 " \$ 0!~/External *\|/{next};"\
6412 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6413 " {if(hide[section]) next};"\
6414 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6415 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6416 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6417 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6418 " ' prfx=^$ac_symprfx"
6419 else
6420 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6421 fi
6422
6423 # Check to see that the pipe works correctly.
6424 pipe_works=no
6425
6426 rm -f conftest*
6427 cat > conftest.$ac_ext <<_LT_EOF
6428 #ifdef __cplusplus
6429 extern "C" {
6430 #endif
6431 char nm_test_var;
6432 void nm_test_func(void);
6433 void nm_test_func(void){}
6434 #ifdef __cplusplus
6435 }
6436 #endif
6437 int main(){nm_test_var='a';nm_test_func();return(0);}
6438 _LT_EOF
6439
6440 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6441 (eval $ac_compile) 2>&5
6442 ac_status=$?
6443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6444 test $ac_status = 0; }; then
6445 # Now try to grab the symbols.
6446 nlist=conftest.nm
6447 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6448 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6449 ac_status=$?
6450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6451 test $ac_status = 0; } && test -s "$nlist"; then
6452 # Try sorting and uniquifying the output.
6453 if sort "$nlist" | uniq > "$nlist"T; then
6454 mv -f "$nlist"T "$nlist"
6455 else
6456 rm -f "$nlist"T
6457 fi
6458
6459 # Make sure that we snagged all the symbols we need.
6460 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6461 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6462 cat <<_LT_EOF > conftest.$ac_ext
6463 #ifdef __cplusplus
6464 extern "C" {
6465 #endif
6466
6467 _LT_EOF
6468 # Now generate the symbol file.
6469 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6470
6471 cat <<_LT_EOF >> conftest.$ac_ext
6472
6473 /* The mapping between symbol names and symbols. */
6474 const struct {
6475 const char *name;
6476 void *address;
6477 }
6478 lt__PROGRAM__LTX_preloaded_symbols[] =
6479 {
6480 { "@PROGRAM@", (void *) 0 },
6481 _LT_EOF
6482 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6483 cat <<\_LT_EOF >> conftest.$ac_ext
6484 {0, (void *) 0}
6485 };
6486
6487 /* This works around a problem in FreeBSD linker */
6488 #ifdef FREEBSD_WORKAROUND
6489 static const void *lt_preloaded_setup() {
6490 return lt__PROGRAM__LTX_preloaded_symbols;
6491 }
6492 #endif
6493
6494 #ifdef __cplusplus
6495 }
6496 #endif
6497 _LT_EOF
6498 # Now try linking the two files.
6499 mv conftest.$ac_objext conftstm.$ac_objext
6500 lt_save_LIBS="$LIBS"
6501 lt_save_CFLAGS="$CFLAGS"
6502 LIBS="conftstm.$ac_objext"
6503 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6504 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6505 (eval $ac_link) 2>&5
6506 ac_status=$?
6507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6508 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6509 pipe_works=yes
6510 fi
6511 LIBS="$lt_save_LIBS"
6512 CFLAGS="$lt_save_CFLAGS"
6513 else
6514 echo "cannot find nm_test_func in $nlist" >&5
6515 fi
6516 else
6517 echo "cannot find nm_test_var in $nlist" >&5
6518 fi
6519 else
6520 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6521 fi
6522 else
6523 echo "$progname: failed program was:" >&5
6524 cat conftest.$ac_ext >&5
6525 fi
6526 rm -rf conftest* conftst*
6527
6528 # Do not use the global_symbol_pipe unless it works.
6529 if test "$pipe_works" = yes; then
6530 break
6531 else
6532 lt_cv_sys_global_symbol_pipe=
6533 fi
6534 done
6535
6536 fi
6537
6538 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6539 lt_cv_sys_global_symbol_to_cdecl=
6540 fi
6541 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6543 $as_echo "failed" >&6; }
6544 else
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6546 $as_echo "ok" >&6; }
6547 fi
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571 # Check whether --enable-libtool-lock was given.
6572 if test "${enable_libtool_lock+set}" = set; then :
6573 enableval=$enable_libtool_lock;
6574 fi
6575
6576 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6577
6578 # Some flags need to be propagated to the compiler or linker for good
6579 # libtool support.
6580 case $host in
6581 ia64-*-hpux*)
6582 # Find out which ABI we are using.
6583 echo 'int i;' > conftest.$ac_ext
6584 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6585 (eval $ac_compile) 2>&5
6586 ac_status=$?
6587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6588 test $ac_status = 0; }; then
6589 case `/usr/bin/file conftest.$ac_objext` in
6590 *ELF-32*)
6591 HPUX_IA64_MODE="32"
6592 ;;
6593 *ELF-64*)
6594 HPUX_IA64_MODE="64"
6595 ;;
6596 esac
6597 fi
6598 rm -rf conftest*
6599 ;;
6600 *-*-irix6*)
6601 # Find out which ABI we are using.
6602 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6603 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6604 (eval $ac_compile) 2>&5
6605 ac_status=$?
6606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6607 test $ac_status = 0; }; then
6608 if test "$lt_cv_prog_gnu_ld" = yes; then
6609 case `/usr/bin/file conftest.$ac_objext` in
6610 *32-bit*)
6611 LD="${LD-ld} -melf32bsmip"
6612 ;;
6613 *N32*)
6614 LD="${LD-ld} -melf32bmipn32"
6615 ;;
6616 *64-bit*)
6617 LD="${LD-ld} -melf64bmip"
6618 ;;
6619 esac
6620 else
6621 case `/usr/bin/file conftest.$ac_objext` in
6622 *32-bit*)
6623 LD="${LD-ld} -32"
6624 ;;
6625 *N32*)
6626 LD="${LD-ld} -n32"
6627 ;;
6628 *64-bit*)
6629 LD="${LD-ld} -64"
6630 ;;
6631 esac
6632 fi
6633 fi
6634 rm -rf conftest*
6635 ;;
6636
6637 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6638 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6639 # Find out which ABI we are using.
6640 echo 'int i;' > conftest.$ac_ext
6641 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6642 (eval $ac_compile) 2>&5
6643 ac_status=$?
6644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6645 test $ac_status = 0; }; then
6646 case `/usr/bin/file conftest.o` in
6647 *32-bit*)
6648 case $host in
6649 x86_64-*kfreebsd*-gnu)
6650 LD="${LD-ld} -m elf_i386_fbsd"
6651 ;;
6652 x86_64-*linux*)
6653 case `/usr/bin/file conftest.o` in
6654 *x86-64*)
6655 LD="${LD-ld} -m elf32_x86_64"
6656 ;;
6657 *)
6658 LD="${LD-ld} -m elf_i386"
6659 ;;
6660 esac
6661 ;;
6662 powerpc64le-*linux*)
6663 LD="${LD-ld} -m elf32lppclinux"
6664 ;;
6665 powerpc64-*linux*)
6666 LD="${LD-ld} -m elf32ppclinux"
6667 ;;
6668 s390x-*linux*)
6669 LD="${LD-ld} -m elf_s390"
6670 ;;
6671 sparc64-*linux*)
6672 LD="${LD-ld} -m elf32_sparc"
6673 ;;
6674 esac
6675 ;;
6676 *64-bit*)
6677 case $host in
6678 x86_64-*kfreebsd*-gnu)
6679 LD="${LD-ld} -m elf_x86_64_fbsd"
6680 ;;
6681 x86_64-*linux*)
6682 LD="${LD-ld} -m elf_x86_64"
6683 ;;
6684 powerpcle-*linux*)
6685 LD="${LD-ld} -m elf64lppc"
6686 ;;
6687 powerpc-*linux*)
6688 LD="${LD-ld} -m elf64ppc"
6689 ;;
6690 s390*-*linux*|s390*-*tpf*)
6691 LD="${LD-ld} -m elf64_s390"
6692 ;;
6693 sparc*-*linux*)
6694 LD="${LD-ld} -m elf64_sparc"
6695 ;;
6696 esac
6697 ;;
6698 esac
6699 fi
6700 rm -rf conftest*
6701 ;;
6702
6703 *-*-sco3.2v5*)
6704 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6705 SAVE_CFLAGS="$CFLAGS"
6706 CFLAGS="$CFLAGS -belf"
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6708 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6709 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6710 $as_echo_n "(cached) " >&6
6711 else
6712 ac_ext=c
6713 ac_cpp='$CPP $CPPFLAGS'
6714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6717
6718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6719 /* end confdefs.h. */
6720
6721 int
6722 main ()
6723 {
6724
6725 ;
6726 return 0;
6727 }
6728 _ACEOF
6729 if ac_fn_c_try_link "$LINENO"; then :
6730 lt_cv_cc_needs_belf=yes
6731 else
6732 lt_cv_cc_needs_belf=no
6733 fi
6734 rm -f core conftest.err conftest.$ac_objext \
6735 conftest$ac_exeext conftest.$ac_ext
6736 ac_ext=c
6737 ac_cpp='$CPP $CPPFLAGS'
6738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6741
6742 fi
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6744 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6745 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6746 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6747 CFLAGS="$SAVE_CFLAGS"
6748 fi
6749 ;;
6750 sparc*-*solaris*)
6751 # Find out which ABI we are using.
6752 echo 'int i;' > conftest.$ac_ext
6753 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6754 (eval $ac_compile) 2>&5
6755 ac_status=$?
6756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6757 test $ac_status = 0; }; then
6758 case `/usr/bin/file conftest.o` in
6759 *64-bit*)
6760 case $lt_cv_prog_gnu_ld in
6761 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6762 *)
6763 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6764 LD="${LD-ld} -64"
6765 fi
6766 ;;
6767 esac
6768 ;;
6769 esac
6770 fi
6771 rm -rf conftest*
6772 ;;
6773 esac
6774
6775 need_locks="$enable_libtool_lock"
6776
6777
6778 case $host_os in
6779 rhapsody* | darwin*)
6780 if test -n "$ac_tool_prefix"; then
6781 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6782 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6784 $as_echo_n "checking for $ac_word... " >&6; }
6785 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6786 $as_echo_n "(cached) " >&6
6787 else
6788 if test -n "$DSYMUTIL"; then
6789 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6790 else
6791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6792 for as_dir in $PATH
6793 do
6794 IFS=$as_save_IFS
6795 test -z "$as_dir" && as_dir=.
6796 for ac_exec_ext in '' $ac_executable_extensions; do
6797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6798 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6800 break 2
6801 fi
6802 done
6803 done
6804 IFS=$as_save_IFS
6805
6806 fi
6807 fi
6808 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6809 if test -n "$DSYMUTIL"; then
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6811 $as_echo "$DSYMUTIL" >&6; }
6812 else
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6814 $as_echo "no" >&6; }
6815 fi
6816
6817
6818 fi
6819 if test -z "$ac_cv_prog_DSYMUTIL"; then
6820 ac_ct_DSYMUTIL=$DSYMUTIL
6821 # Extract the first word of "dsymutil", so it can be a program name with args.
6822 set dummy dsymutil; ac_word=$2
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6824 $as_echo_n "checking for $ac_word... " >&6; }
6825 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6826 $as_echo_n "(cached) " >&6
6827 else
6828 if test -n "$ac_ct_DSYMUTIL"; then
6829 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6830 else
6831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6832 for as_dir in $PATH
6833 do
6834 IFS=$as_save_IFS
6835 test -z "$as_dir" && as_dir=.
6836 for ac_exec_ext in '' $ac_executable_extensions; do
6837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6838 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6840 break 2
6841 fi
6842 done
6843 done
6844 IFS=$as_save_IFS
6845
6846 fi
6847 fi
6848 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6849 if test -n "$ac_ct_DSYMUTIL"; then
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6851 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6852 else
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6854 $as_echo "no" >&6; }
6855 fi
6856
6857 if test "x$ac_ct_DSYMUTIL" = x; then
6858 DSYMUTIL=":"
6859 else
6860 case $cross_compiling:$ac_tool_warned in
6861 yes:)
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6863 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6864 ac_tool_warned=yes ;;
6865 esac
6866 DSYMUTIL=$ac_ct_DSYMUTIL
6867 fi
6868 else
6869 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6870 fi
6871
6872 if test -n "$ac_tool_prefix"; then
6873 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6874 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6876 $as_echo_n "checking for $ac_word... " >&6; }
6877 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6878 $as_echo_n "(cached) " >&6
6879 else
6880 if test -n "$NMEDIT"; then
6881 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6882 else
6883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6884 for as_dir in $PATH
6885 do
6886 IFS=$as_save_IFS
6887 test -z "$as_dir" && as_dir=.
6888 for ac_exec_ext in '' $ac_executable_extensions; do
6889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6890 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6892 break 2
6893 fi
6894 done
6895 done
6896 IFS=$as_save_IFS
6897
6898 fi
6899 fi
6900 NMEDIT=$ac_cv_prog_NMEDIT
6901 if test -n "$NMEDIT"; then
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6903 $as_echo "$NMEDIT" >&6; }
6904 else
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6906 $as_echo "no" >&6; }
6907 fi
6908
6909
6910 fi
6911 if test -z "$ac_cv_prog_NMEDIT"; then
6912 ac_ct_NMEDIT=$NMEDIT
6913 # Extract the first word of "nmedit", so it can be a program name with args.
6914 set dummy nmedit; ac_word=$2
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6916 $as_echo_n "checking for $ac_word... " >&6; }
6917 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6918 $as_echo_n "(cached) " >&6
6919 else
6920 if test -n "$ac_ct_NMEDIT"; then
6921 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6922 else
6923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6924 for as_dir in $PATH
6925 do
6926 IFS=$as_save_IFS
6927 test -z "$as_dir" && as_dir=.
6928 for ac_exec_ext in '' $ac_executable_extensions; do
6929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6930 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6932 break 2
6933 fi
6934 done
6935 done
6936 IFS=$as_save_IFS
6937
6938 fi
6939 fi
6940 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6941 if test -n "$ac_ct_NMEDIT"; then
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6943 $as_echo "$ac_ct_NMEDIT" >&6; }
6944 else
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6946 $as_echo "no" >&6; }
6947 fi
6948
6949 if test "x$ac_ct_NMEDIT" = x; then
6950 NMEDIT=":"
6951 else
6952 case $cross_compiling:$ac_tool_warned in
6953 yes:)
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6955 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6956 ac_tool_warned=yes ;;
6957 esac
6958 NMEDIT=$ac_ct_NMEDIT
6959 fi
6960 else
6961 NMEDIT="$ac_cv_prog_NMEDIT"
6962 fi
6963
6964 if test -n "$ac_tool_prefix"; then
6965 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6966 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6968 $as_echo_n "checking for $ac_word... " >&6; }
6969 if test "${ac_cv_prog_LIPO+set}" = set; then :
6970 $as_echo_n "(cached) " >&6
6971 else
6972 if test -n "$LIPO"; then
6973 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6974 else
6975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6976 for as_dir in $PATH
6977 do
6978 IFS=$as_save_IFS
6979 test -z "$as_dir" && as_dir=.
6980 for ac_exec_ext in '' $ac_executable_extensions; do
6981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6982 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6984 break 2
6985 fi
6986 done
6987 done
6988 IFS=$as_save_IFS
6989
6990 fi
6991 fi
6992 LIPO=$ac_cv_prog_LIPO
6993 if test -n "$LIPO"; then
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6995 $as_echo "$LIPO" >&6; }
6996 else
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6998 $as_echo "no" >&6; }
6999 fi
7000
7001
7002 fi
7003 if test -z "$ac_cv_prog_LIPO"; then
7004 ac_ct_LIPO=$LIPO
7005 # Extract the first word of "lipo", so it can be a program name with args.
7006 set dummy lipo; ac_word=$2
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7008 $as_echo_n "checking for $ac_word... " >&6; }
7009 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7010 $as_echo_n "(cached) " >&6
7011 else
7012 if test -n "$ac_ct_LIPO"; then
7013 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7014 else
7015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7016 for as_dir in $PATH
7017 do
7018 IFS=$as_save_IFS
7019 test -z "$as_dir" && as_dir=.
7020 for ac_exec_ext in '' $ac_executable_extensions; do
7021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7022 ac_cv_prog_ac_ct_LIPO="lipo"
7023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7024 break 2
7025 fi
7026 done
7027 done
7028 IFS=$as_save_IFS
7029
7030 fi
7031 fi
7032 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7033 if test -n "$ac_ct_LIPO"; then
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7035 $as_echo "$ac_ct_LIPO" >&6; }
7036 else
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7038 $as_echo "no" >&6; }
7039 fi
7040
7041 if test "x$ac_ct_LIPO" = x; then
7042 LIPO=":"
7043 else
7044 case $cross_compiling:$ac_tool_warned in
7045 yes:)
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7047 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7048 ac_tool_warned=yes ;;
7049 esac
7050 LIPO=$ac_ct_LIPO
7051 fi
7052 else
7053 LIPO="$ac_cv_prog_LIPO"
7054 fi
7055
7056 if test -n "$ac_tool_prefix"; then
7057 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7058 set dummy ${ac_tool_prefix}otool; ac_word=$2
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7060 $as_echo_n "checking for $ac_word... " >&6; }
7061 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7062 $as_echo_n "(cached) " >&6
7063 else
7064 if test -n "$OTOOL"; then
7065 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7066 else
7067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7068 for as_dir in $PATH
7069 do
7070 IFS=$as_save_IFS
7071 test -z "$as_dir" && as_dir=.
7072 for ac_exec_ext in '' $ac_executable_extensions; do
7073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7074 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7076 break 2
7077 fi
7078 done
7079 done
7080 IFS=$as_save_IFS
7081
7082 fi
7083 fi
7084 OTOOL=$ac_cv_prog_OTOOL
7085 if test -n "$OTOOL"; then
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7087 $as_echo "$OTOOL" >&6; }
7088 else
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7090 $as_echo "no" >&6; }
7091 fi
7092
7093
7094 fi
7095 if test -z "$ac_cv_prog_OTOOL"; then
7096 ac_ct_OTOOL=$OTOOL
7097 # Extract the first word of "otool", so it can be a program name with args.
7098 set dummy otool; ac_word=$2
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7100 $as_echo_n "checking for $ac_word... " >&6; }
7101 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7102 $as_echo_n "(cached) " >&6
7103 else
7104 if test -n "$ac_ct_OTOOL"; then
7105 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7106 else
7107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7108 for as_dir in $PATH
7109 do
7110 IFS=$as_save_IFS
7111 test -z "$as_dir" && as_dir=.
7112 for ac_exec_ext in '' $ac_executable_extensions; do
7113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7114 ac_cv_prog_ac_ct_OTOOL="otool"
7115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7116 break 2
7117 fi
7118 done
7119 done
7120 IFS=$as_save_IFS
7121
7122 fi
7123 fi
7124 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7125 if test -n "$ac_ct_OTOOL"; then
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7127 $as_echo "$ac_ct_OTOOL" >&6; }
7128 else
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7130 $as_echo "no" >&6; }
7131 fi
7132
7133 if test "x$ac_ct_OTOOL" = x; then
7134 OTOOL=":"
7135 else
7136 case $cross_compiling:$ac_tool_warned in
7137 yes:)
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7139 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7140 ac_tool_warned=yes ;;
7141 esac
7142 OTOOL=$ac_ct_OTOOL
7143 fi
7144 else
7145 OTOOL="$ac_cv_prog_OTOOL"
7146 fi
7147
7148 if test -n "$ac_tool_prefix"; then
7149 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7150 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7152 $as_echo_n "checking for $ac_word... " >&6; }
7153 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7154 $as_echo_n "(cached) " >&6
7155 else
7156 if test -n "$OTOOL64"; then
7157 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7158 else
7159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7160 for as_dir in $PATH
7161 do
7162 IFS=$as_save_IFS
7163 test -z "$as_dir" && as_dir=.
7164 for ac_exec_ext in '' $ac_executable_extensions; do
7165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7166 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7168 break 2
7169 fi
7170 done
7171 done
7172 IFS=$as_save_IFS
7173
7174 fi
7175 fi
7176 OTOOL64=$ac_cv_prog_OTOOL64
7177 if test -n "$OTOOL64"; then
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7179 $as_echo "$OTOOL64" >&6; }
7180 else
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7182 $as_echo "no" >&6; }
7183 fi
7184
7185
7186 fi
7187 if test -z "$ac_cv_prog_OTOOL64"; then
7188 ac_ct_OTOOL64=$OTOOL64
7189 # Extract the first word of "otool64", so it can be a program name with args.
7190 set dummy otool64; ac_word=$2
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7192 $as_echo_n "checking for $ac_word... " >&6; }
7193 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7194 $as_echo_n "(cached) " >&6
7195 else
7196 if test -n "$ac_ct_OTOOL64"; then
7197 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7198 else
7199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7200 for as_dir in $PATH
7201 do
7202 IFS=$as_save_IFS
7203 test -z "$as_dir" && as_dir=.
7204 for ac_exec_ext in '' $ac_executable_extensions; do
7205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7206 ac_cv_prog_ac_ct_OTOOL64="otool64"
7207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7208 break 2
7209 fi
7210 done
7211 done
7212 IFS=$as_save_IFS
7213
7214 fi
7215 fi
7216 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7217 if test -n "$ac_ct_OTOOL64"; then
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7219 $as_echo "$ac_ct_OTOOL64" >&6; }
7220 else
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7222 $as_echo "no" >&6; }
7223 fi
7224
7225 if test "x$ac_ct_OTOOL64" = x; then
7226 OTOOL64=":"
7227 else
7228 case $cross_compiling:$ac_tool_warned in
7229 yes:)
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7231 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7232 ac_tool_warned=yes ;;
7233 esac
7234 OTOOL64=$ac_ct_OTOOL64
7235 fi
7236 else
7237 OTOOL64="$ac_cv_prog_OTOOL64"
7238 fi
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7267 $as_echo_n "checking for -single_module linker flag... " >&6; }
7268 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7269 $as_echo_n "(cached) " >&6
7270 else
7271 lt_cv_apple_cc_single_mod=no
7272 if test -z "${LT_MULTI_MODULE}"; then
7273 # By default we will add the -single_module flag. You can override
7274 # by either setting the environment variable LT_MULTI_MODULE
7275 # non-empty at configure time, or by adding -multi_module to the
7276 # link flags.
7277 rm -rf libconftest.dylib*
7278 echo "int foo(void){return 1;}" > conftest.c
7279 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7280 -dynamiclib -Wl,-single_module conftest.c" >&5
7281 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7282 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7283 _lt_result=$?
7284 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7285 lt_cv_apple_cc_single_mod=yes
7286 else
7287 cat conftest.err >&5
7288 fi
7289 rm -rf libconftest.dylib*
7290 rm -f conftest.*
7291 fi
7292 fi
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7294 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7296 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7297 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7298 $as_echo_n "(cached) " >&6
7299 else
7300 lt_cv_ld_exported_symbols_list=no
7301 save_LDFLAGS=$LDFLAGS
7302 echo "_main" > conftest.sym
7303 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7305 /* end confdefs.h. */
7306
7307 int
7308 main ()
7309 {
7310
7311 ;
7312 return 0;
7313 }
7314 _ACEOF
7315 if ac_fn_c_try_link "$LINENO"; then :
7316 lt_cv_ld_exported_symbols_list=yes
7317 else
7318 lt_cv_ld_exported_symbols_list=no
7319 fi
7320 rm -f core conftest.err conftest.$ac_objext \
7321 conftest$ac_exeext conftest.$ac_ext
7322 LDFLAGS="$save_LDFLAGS"
7323
7324 fi
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7326 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7328 $as_echo_n "checking for -force_load linker flag... " >&6; }
7329 if test "${lt_cv_ld_force_load+set}" = set; then :
7330 $as_echo_n "(cached) " >&6
7331 else
7332 lt_cv_ld_force_load=no
7333 cat > conftest.c << _LT_EOF
7334 int forced_loaded() { return 2;}
7335 _LT_EOF
7336 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7337 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7338 echo "$AR cru libconftest.a conftest.o" >&5
7339 $AR cru libconftest.a conftest.o 2>&5
7340 cat > conftest.c << _LT_EOF
7341 int main() { return 0;}
7342 _LT_EOF
7343 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7344 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7345 _lt_result=$?
7346 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7347 lt_cv_ld_force_load=yes
7348 else
7349 cat conftest.err >&5
7350 fi
7351 rm -f conftest.err libconftest.a conftest conftest.c
7352 rm -rf conftest.dSYM
7353
7354 fi
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7356 $as_echo "$lt_cv_ld_force_load" >&6; }
7357 case $host_os in
7358 rhapsody* | darwin1.[012])
7359 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7360 darwin1.*)
7361 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7362 darwin*) # darwin 5.x on
7363 # if running on 10.5 or later, the deployment target defaults
7364 # to the OS version, if on x86, and 10.4, the deployment
7365 # target defaults to 10.4. Don't you love it?
7366 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7367 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7368 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7369 10.[012][,.]*)
7370 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7371 10.*)
7372 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7373 esac
7374 ;;
7375 esac
7376 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7377 _lt_dar_single_mod='$single_module'
7378 fi
7379 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7380 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7381 else
7382 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7383 fi
7384 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7385 _lt_dsymutil='~$DSYMUTIL $lib || :'
7386 else
7387 _lt_dsymutil=
7388 fi
7389 ;;
7390 esac
7391
7392 ac_ext=c
7393 ac_cpp='$CPP $CPPFLAGS'
7394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7398 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7399 # On Suns, sometimes $CPP names a directory.
7400 if test -n "$CPP" && test -d "$CPP"; then
7401 CPP=
7402 fi
7403 if test -z "$CPP"; then
7404 if test "${ac_cv_prog_CPP+set}" = set; then :
7405 $as_echo_n "(cached) " >&6
7406 else
7407 # Double quotes because CPP needs to be expanded
7408 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7409 do
7410 ac_preproc_ok=false
7411 for ac_c_preproc_warn_flag in '' yes
7412 do
7413 # Use a header file that comes with gcc, so configuring glibc
7414 # with a fresh cross-compiler works.
7415 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7416 # <limits.h> exists even on freestanding compilers.
7417 # On the NeXT, cc -E runs the code through the compiler's parser,
7418 # not just through cpp. "Syntax error" is here to catch this case.
7419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7420 /* end confdefs.h. */
7421 #ifdef __STDC__
7422 # include <limits.h>
7423 #else
7424 # include <assert.h>
7425 #endif
7426 Syntax error
7427 _ACEOF
7428 if ac_fn_c_try_cpp "$LINENO"; then :
7429
7430 else
7431 # Broken: fails on valid input.
7432 continue
7433 fi
7434 rm -f conftest.err conftest.$ac_ext
7435
7436 # OK, works on sane cases. Now check whether nonexistent headers
7437 # can be detected and how.
7438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7439 /* end confdefs.h. */
7440 #include <ac_nonexistent.h>
7441 _ACEOF
7442 if ac_fn_c_try_cpp "$LINENO"; then :
7443 # Broken: success on invalid input.
7444 continue
7445 else
7446 # Passes both tests.
7447 ac_preproc_ok=:
7448 break
7449 fi
7450 rm -f conftest.err conftest.$ac_ext
7451
7452 done
7453 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7454 rm -f conftest.err conftest.$ac_ext
7455 if $ac_preproc_ok; then :
7456 break
7457 fi
7458
7459 done
7460 ac_cv_prog_CPP=$CPP
7461
7462 fi
7463 CPP=$ac_cv_prog_CPP
7464 else
7465 ac_cv_prog_CPP=$CPP
7466 fi
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7468 $as_echo "$CPP" >&6; }
7469 ac_preproc_ok=false
7470 for ac_c_preproc_warn_flag in '' yes
7471 do
7472 # Use a header file that comes with gcc, so configuring glibc
7473 # with a fresh cross-compiler works.
7474 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7475 # <limits.h> exists even on freestanding compilers.
7476 # On the NeXT, cc -E runs the code through the compiler's parser,
7477 # not just through cpp. "Syntax error" is here to catch this case.
7478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7479 /* end confdefs.h. */
7480 #ifdef __STDC__
7481 # include <limits.h>
7482 #else
7483 # include <assert.h>
7484 #endif
7485 Syntax error
7486 _ACEOF
7487 if ac_fn_c_try_cpp "$LINENO"; then :
7488
7489 else
7490 # Broken: fails on valid input.
7491 continue
7492 fi
7493 rm -f conftest.err conftest.$ac_ext
7494
7495 # OK, works on sane cases. Now check whether nonexistent headers
7496 # can be detected and how.
7497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7498 /* end confdefs.h. */
7499 #include <ac_nonexistent.h>
7500 _ACEOF
7501 if ac_fn_c_try_cpp "$LINENO"; then :
7502 # Broken: success on invalid input.
7503 continue
7504 else
7505 # Passes both tests.
7506 ac_preproc_ok=:
7507 break
7508 fi
7509 rm -f conftest.err conftest.$ac_ext
7510
7511 done
7512 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7513 rm -f conftest.err conftest.$ac_ext
7514 if $ac_preproc_ok; then :
7515
7516 else
7517 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7518 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7519 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7520 See \`config.log' for more details." "$LINENO" 5; }
7521 fi
7522
7523 ac_ext=c
7524 ac_cpp='$CPP $CPPFLAGS'
7525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7528
7529
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7531 $as_echo_n "checking for ANSI C header files... " >&6; }
7532 if test "${ac_cv_header_stdc+set}" = set; then :
7533 $as_echo_n "(cached) " >&6
7534 else
7535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7536 /* end confdefs.h. */
7537 #include <stdlib.h>
7538 #include <stdarg.h>
7539 #include <string.h>
7540 #include <float.h>
7541
7542 int
7543 main ()
7544 {
7545
7546 ;
7547 return 0;
7548 }
7549 _ACEOF
7550 if ac_fn_c_try_compile "$LINENO"; then :
7551 ac_cv_header_stdc=yes
7552 else
7553 ac_cv_header_stdc=no
7554 fi
7555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7556
7557 if test $ac_cv_header_stdc = yes; then
7558 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7560 /* end confdefs.h. */
7561 #include <string.h>
7562
7563 _ACEOF
7564 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7565 $EGREP "memchr" >/dev/null 2>&1; then :
7566
7567 else
7568 ac_cv_header_stdc=no
7569 fi
7570 rm -f conftest*
7571
7572 fi
7573
7574 if test $ac_cv_header_stdc = yes; then
7575 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7577 /* end confdefs.h. */
7578 #include <stdlib.h>
7579
7580 _ACEOF
7581 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7582 $EGREP "free" >/dev/null 2>&1; then :
7583
7584 else
7585 ac_cv_header_stdc=no
7586 fi
7587 rm -f conftest*
7588
7589 fi
7590
7591 if test $ac_cv_header_stdc = yes; then
7592 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7593 if test "$cross_compiling" = yes; then :
7594 :
7595 else
7596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7597 /* end confdefs.h. */
7598 #include <ctype.h>
7599 #include <stdlib.h>
7600 #if ((' ' & 0x0FF) == 0x020)
7601 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7602 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7603 #else
7604 # define ISLOWER(c) \
7605 (('a' <= (c) && (c) <= 'i') \
7606 || ('j' <= (c) && (c) <= 'r') \
7607 || ('s' <= (c) && (c) <= 'z'))
7608 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7609 #endif
7610
7611 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7612 int
7613 main ()
7614 {
7615 int i;
7616 for (i = 0; i < 256; i++)
7617 if (XOR (islower (i), ISLOWER (i))
7618 || toupper (i) != TOUPPER (i))
7619 return 2;
7620 return 0;
7621 }
7622 _ACEOF
7623 if ac_fn_c_try_run "$LINENO"; then :
7624
7625 else
7626 ac_cv_header_stdc=no
7627 fi
7628 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7629 conftest.$ac_objext conftest.beam conftest.$ac_ext
7630 fi
7631
7632 fi
7633 fi
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7635 $as_echo "$ac_cv_header_stdc" >&6; }
7636 if test $ac_cv_header_stdc = yes; then
7637
7638 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7639
7640 fi
7641
7642 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7643 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7644 inttypes.h stdint.h unistd.h
7645 do :
7646 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7647 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7648 "
7649 eval as_val=\$$as_ac_Header
7650 if test "x$as_val" = x""yes; then :
7651 cat >>confdefs.h <<_ACEOF
7652 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7653 _ACEOF
7654
7655 fi
7656
7657 done
7658
7659
7660 for ac_header in dlfcn.h
7661 do :
7662 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7663 "
7664 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7665 cat >>confdefs.h <<_ACEOF
7666 #define HAVE_DLFCN_H 1
7667 _ACEOF
7668
7669 fi
7670
7671 done
7672
7673
7674
7675
7676
7677 # Set options
7678
7679
7680
7681 enable_dlopen=no
7682
7683
7684 enable_win32_dll=no
7685
7686
7687 # Check whether --enable-shared was given.
7688 if test "${enable_shared+set}" = set; then :
7689 enableval=$enable_shared; p=${PACKAGE-default}
7690 case $enableval in
7691 yes) enable_shared=yes ;;
7692 no) enable_shared=no ;;
7693 *)
7694 enable_shared=no
7695 # Look at the argument we got. We use all the common list separators.
7696 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7697 for pkg in $enableval; do
7698 IFS="$lt_save_ifs"
7699 if test "X$pkg" = "X$p"; then
7700 enable_shared=yes
7701 fi
7702 done
7703 IFS="$lt_save_ifs"
7704 ;;
7705 esac
7706 else
7707 enable_shared=yes
7708 fi
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718 # Check whether --enable-static was given.
7719 if test "${enable_static+set}" = set; then :
7720 enableval=$enable_static; p=${PACKAGE-default}
7721 case $enableval in
7722 yes) enable_static=yes ;;
7723 no) enable_static=no ;;
7724 *)
7725 enable_static=no
7726 # Look at the argument we got. We use all the common list separators.
7727 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7728 for pkg in $enableval; do
7729 IFS="$lt_save_ifs"
7730 if test "X$pkg" = "X$p"; then
7731 enable_static=yes
7732 fi
7733 done
7734 IFS="$lt_save_ifs"
7735 ;;
7736 esac
7737 else
7738 enable_static=yes
7739 fi
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750 # Check whether --with-pic was given.
7751 if test "${with_pic+set}" = set; then :
7752 withval=$with_pic; pic_mode="$withval"
7753 else
7754 pic_mode=default
7755 fi
7756
7757
7758 test -z "$pic_mode" && pic_mode=default
7759
7760
7761
7762
7763
7764
7765
7766 # Check whether --enable-fast-install was given.
7767 if test "${enable_fast_install+set}" = set; then :
7768 enableval=$enable_fast_install; p=${PACKAGE-default}
7769 case $enableval in
7770 yes) enable_fast_install=yes ;;
7771 no) enable_fast_install=no ;;
7772 *)
7773 enable_fast_install=no
7774 # Look at the argument we got. We use all the common list separators.
7775 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7776 for pkg in $enableval; do
7777 IFS="$lt_save_ifs"
7778 if test "X$pkg" = "X$p"; then
7779 enable_fast_install=yes
7780 fi
7781 done
7782 IFS="$lt_save_ifs"
7783 ;;
7784 esac
7785 else
7786 enable_fast_install=yes
7787 fi
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799 # This can be used to rebuild libtool when needed
7800 LIBTOOL_DEPS="$ltmain"
7801
7802 # Always use our own libtool.
7803 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830 test -z "$LN_S" && LN_S="ln -s"
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845 if test -n "${ZSH_VERSION+set}" ; then
7846 setopt NO_GLOB_SUBST
7847 fi
7848
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7850 $as_echo_n "checking for objdir... " >&6; }
7851 if test "${lt_cv_objdir+set}" = set; then :
7852 $as_echo_n "(cached) " >&6
7853 else
7854 rm -f .libs 2>/dev/null
7855 mkdir .libs 2>/dev/null
7856 if test -d .libs; then
7857 lt_cv_objdir=.libs
7858 else
7859 # MS-DOS does not allow filenames that begin with a dot.
7860 lt_cv_objdir=_libs
7861 fi
7862 rmdir .libs 2>/dev/null
7863 fi
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7865 $as_echo "$lt_cv_objdir" >&6; }
7866 objdir=$lt_cv_objdir
7867
7868
7869
7870
7871
7872 cat >>confdefs.h <<_ACEOF
7873 #define LT_OBJDIR "$lt_cv_objdir/"
7874 _ACEOF
7875
7876
7877
7878
7879 case $host_os in
7880 aix3*)
7881 # AIX sometimes has problems with the GCC collect2 program. For some
7882 # reason, if we set the COLLECT_NAMES environment variable, the problems
7883 # vanish in a puff of smoke.
7884 if test "X${COLLECT_NAMES+set}" != Xset; then
7885 COLLECT_NAMES=
7886 export COLLECT_NAMES
7887 fi
7888 ;;
7889 esac
7890
7891 # Global variables:
7892 ofile=libtool
7893 can_build_shared=yes
7894
7895 # All known linkers require a `.a' archive for static linking (except MSVC,
7896 # which needs '.lib').
7897 libext=a
7898
7899 with_gnu_ld="$lt_cv_prog_gnu_ld"
7900
7901 old_CC="$CC"
7902 old_CFLAGS="$CFLAGS"
7903
7904 # Set sane defaults for various variables
7905 test -z "$CC" && CC=cc
7906 test -z "$LTCC" && LTCC=$CC
7907 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7908 test -z "$LD" && LD=ld
7909 test -z "$ac_objext" && ac_objext=o
7910
7911 for cc_temp in $compiler""; do
7912 case $cc_temp in
7913 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7914 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7915 \-*) ;;
7916 *) break;;
7917 esac
7918 done
7919 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7920
7921
7922 # Only perform the check for file, if the check method requires it
7923 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7924 case $deplibs_check_method in
7925 file_magic*)
7926 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7928 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7929 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7930 $as_echo_n "(cached) " >&6
7931 else
7932 case $MAGIC_CMD in
7933 [\\/*] | ?:[\\/]*)
7934 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7935 ;;
7936 *)
7937 lt_save_MAGIC_CMD="$MAGIC_CMD"
7938 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7939 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7940 for ac_dir in $ac_dummy; do
7941 IFS="$lt_save_ifs"
7942 test -z "$ac_dir" && ac_dir=.
7943 if test -f $ac_dir/${ac_tool_prefix}file; then
7944 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7945 if test -n "$file_magic_test_file"; then
7946 case $deplibs_check_method in
7947 "file_magic "*)
7948 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7949 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7950 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7951 $EGREP "$file_magic_regex" > /dev/null; then
7952 :
7953 else
7954 cat <<_LT_EOF 1>&2
7955
7956 *** Warning: the command libtool uses to detect shared libraries,
7957 *** $file_magic_cmd, produces output that libtool cannot recognize.
7958 *** The result is that libtool may fail to recognize shared libraries
7959 *** as such. This will affect the creation of libtool libraries that
7960 *** depend on shared libraries, but programs linked with such libtool
7961 *** libraries will work regardless of this problem. Nevertheless, you
7962 *** may want to report the problem to your system manager and/or to
7963 *** bug-libtool@gnu.org
7964
7965 _LT_EOF
7966 fi ;;
7967 esac
7968 fi
7969 break
7970 fi
7971 done
7972 IFS="$lt_save_ifs"
7973 MAGIC_CMD="$lt_save_MAGIC_CMD"
7974 ;;
7975 esac
7976 fi
7977
7978 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7979 if test -n "$MAGIC_CMD"; then
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7981 $as_echo "$MAGIC_CMD" >&6; }
7982 else
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7984 $as_echo "no" >&6; }
7985 fi
7986
7987
7988
7989
7990
7991 if test -z "$lt_cv_path_MAGIC_CMD"; then
7992 if test -n "$ac_tool_prefix"; then
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7994 $as_echo_n "checking for file... " >&6; }
7995 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7996 $as_echo_n "(cached) " >&6
7997 else
7998 case $MAGIC_CMD in
7999 [\\/*] | ?:[\\/]*)
8000 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8001 ;;
8002 *)
8003 lt_save_MAGIC_CMD="$MAGIC_CMD"
8004 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8005 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8006 for ac_dir in $ac_dummy; do
8007 IFS="$lt_save_ifs"
8008 test -z "$ac_dir" && ac_dir=.
8009 if test -f $ac_dir/file; then
8010 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8011 if test -n "$file_magic_test_file"; then
8012 case $deplibs_check_method in
8013 "file_magic "*)
8014 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8015 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8016 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8017 $EGREP "$file_magic_regex" > /dev/null; then
8018 :
8019 else
8020 cat <<_LT_EOF 1>&2
8021
8022 *** Warning: the command libtool uses to detect shared libraries,
8023 *** $file_magic_cmd, produces output that libtool cannot recognize.
8024 *** The result is that libtool may fail to recognize shared libraries
8025 *** as such. This will affect the creation of libtool libraries that
8026 *** depend on shared libraries, but programs linked with such libtool
8027 *** libraries will work regardless of this problem. Nevertheless, you
8028 *** may want to report the problem to your system manager and/or to
8029 *** bug-libtool@gnu.org
8030
8031 _LT_EOF
8032 fi ;;
8033 esac
8034 fi
8035 break
8036 fi
8037 done
8038 IFS="$lt_save_ifs"
8039 MAGIC_CMD="$lt_save_MAGIC_CMD"
8040 ;;
8041 esac
8042 fi
8043
8044 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8045 if test -n "$MAGIC_CMD"; then
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8047 $as_echo "$MAGIC_CMD" >&6; }
8048 else
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8050 $as_echo "no" >&6; }
8051 fi
8052
8053
8054 else
8055 MAGIC_CMD=:
8056 fi
8057 fi
8058
8059 fi
8060 ;;
8061 esac
8062
8063 # Use C for the default configuration in the libtool script
8064
8065 lt_save_CC="$CC"
8066 ac_ext=c
8067 ac_cpp='$CPP $CPPFLAGS'
8068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8071
8072
8073 # Source file extension for C test sources.
8074 ac_ext=c
8075
8076 # Object file extension for compiled C test sources.
8077 objext=o
8078 objext=$objext
8079
8080 # Code to be used in simple compile tests
8081 lt_simple_compile_test_code="int some_variable = 0;"
8082
8083 # Code to be used in simple link tests
8084 lt_simple_link_test_code='int main(){return(0);}'
8085
8086
8087
8088
8089
8090
8091
8092 # If no C compiler was specified, use CC.
8093 LTCC=${LTCC-"$CC"}
8094
8095 # If no C compiler flags were specified, use CFLAGS.
8096 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8097
8098 # Allow CC to be a program name with arguments.
8099 compiler=$CC
8100
8101 # Save the default compiler, since it gets overwritten when the other
8102 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8103 compiler_DEFAULT=$CC
8104
8105 # save warnings/boilerplate of simple test code
8106 ac_outfile=conftest.$ac_objext
8107 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8108 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8109 _lt_compiler_boilerplate=`cat conftest.err`
8110 $RM conftest*
8111
8112 ac_outfile=conftest.$ac_objext
8113 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8114 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8115 _lt_linker_boilerplate=`cat conftest.err`
8116 $RM -r conftest*
8117
8118
8119 ## CAVEAT EMPTOR:
8120 ## There is no encapsulation within the following macros, do not change
8121 ## the running order or otherwise move them around unless you know exactly
8122 ## what you are doing...
8123 if test -n "$compiler"; then
8124
8125 lt_prog_compiler_no_builtin_flag=
8126
8127 if test "$GCC" = yes; then
8128 case $cc_basename in
8129 nvcc*)
8130 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8131 *)
8132 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8133 esac
8134
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8136 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8137 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8138 $as_echo_n "(cached) " >&6
8139 else
8140 lt_cv_prog_compiler_rtti_exceptions=no
8141 ac_outfile=conftest.$ac_objext
8142 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8143 lt_compiler_flag="-fno-rtti -fno-exceptions"
8144 # Insert the option either (1) after the last *FLAGS variable, or
8145 # (2) before a word containing "conftest.", or (3) at the end.
8146 # Note that $ac_compile itself does not contain backslashes and begins
8147 # with a dollar sign (not a hyphen), so the echo should work correctly.
8148 # The option is referenced via a variable to avoid confusing sed.
8149 lt_compile=`echo "$ac_compile" | $SED \
8150 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8151 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8152 -e 's:$: $lt_compiler_flag:'`
8153 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8154 (eval "$lt_compile" 2>conftest.err)
8155 ac_status=$?
8156 cat conftest.err >&5
8157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8158 if (exit $ac_status) && test -s "$ac_outfile"; then
8159 # The compiler can only warn and ignore the option if not recognized
8160 # So say no if there are warnings other than the usual output.
8161 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8162 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8163 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8164 lt_cv_prog_compiler_rtti_exceptions=yes
8165 fi
8166 fi
8167 $RM conftest*
8168
8169 fi
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8171 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8172
8173 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8174 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8175 else
8176 :
8177 fi
8178
8179 fi
8180
8181
8182
8183
8184
8185
8186 lt_prog_compiler_wl=
8187 lt_prog_compiler_pic=
8188 lt_prog_compiler_static=
8189
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8191 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8192
8193 if test "$GCC" = yes; then
8194 lt_prog_compiler_wl='-Wl,'
8195 lt_prog_compiler_static='-static'
8196
8197 case $host_os in
8198 aix*)
8199 # All AIX code is PIC.
8200 if test "$host_cpu" = ia64; then
8201 # AIX 5 now supports IA64 processor
8202 lt_prog_compiler_static='-Bstatic'
8203 fi
8204 lt_prog_compiler_pic='-fPIC'
8205 ;;
8206
8207 amigaos*)
8208 case $host_cpu in
8209 powerpc)
8210 # see comment about AmigaOS4 .so support
8211 lt_prog_compiler_pic='-fPIC'
8212 ;;
8213 m68k)
8214 # FIXME: we need at least 68020 code to build shared libraries, but
8215 # adding the `-m68020' flag to GCC prevents building anything better,
8216 # like `-m68040'.
8217 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8218 ;;
8219 esac
8220 ;;
8221
8222 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8223 # PIC is the default for these OSes.
8224 ;;
8225
8226 mingw* | cygwin* | pw32* | os2* | cegcc*)
8227 # This hack is so that the source file can tell whether it is being
8228 # built for inclusion in a dll (and should export symbols for example).
8229 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8230 # (--disable-auto-import) libraries
8231 lt_prog_compiler_pic='-DDLL_EXPORT'
8232 ;;
8233
8234 darwin* | rhapsody*)
8235 # PIC is the default on this platform
8236 # Common symbols not allowed in MH_DYLIB files
8237 lt_prog_compiler_pic='-fno-common'
8238 ;;
8239
8240 haiku*)
8241 # PIC is the default for Haiku.
8242 # The "-static" flag exists, but is broken.
8243 lt_prog_compiler_static=
8244 ;;
8245
8246 hpux*)
8247 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8248 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8249 # sets the default TLS model and affects inlining.
8250 case $host_cpu in
8251 hppa*64*)
8252 # +Z the default
8253 ;;
8254 *)
8255 lt_prog_compiler_pic='-fPIC'
8256 ;;
8257 esac
8258 ;;
8259
8260 interix[3-9]*)
8261 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8262 # Instead, we relocate shared libraries at runtime.
8263 ;;
8264
8265 msdosdjgpp*)
8266 # Just because we use GCC doesn't mean we suddenly get shared libraries
8267 # on systems that don't support them.
8268 lt_prog_compiler_can_build_shared=no
8269 enable_shared=no
8270 ;;
8271
8272 *nto* | *qnx*)
8273 # QNX uses GNU C++, but need to define -shared option too, otherwise
8274 # it will coredump.
8275 lt_prog_compiler_pic='-fPIC -shared'
8276 ;;
8277
8278 sysv4*MP*)
8279 if test -d /usr/nec; then
8280 lt_prog_compiler_pic=-Kconform_pic
8281 fi
8282 ;;
8283
8284 *)
8285 lt_prog_compiler_pic='-fPIC'
8286 ;;
8287 esac
8288
8289 case $cc_basename in
8290 nvcc*) # Cuda Compiler Driver 2.2
8291 lt_prog_compiler_wl='-Xlinker '
8292 lt_prog_compiler_pic='-Xcompiler -fPIC'
8293 ;;
8294 esac
8295 else
8296 # PORTME Check for flag to pass linker flags through the system compiler.
8297 case $host_os in
8298 aix*)
8299 lt_prog_compiler_wl='-Wl,'
8300 if test "$host_cpu" = ia64; then
8301 # AIX 5 now supports IA64 processor
8302 lt_prog_compiler_static='-Bstatic'
8303 else
8304 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8305 fi
8306 ;;
8307
8308 mingw* | cygwin* | pw32* | os2* | cegcc*)
8309 # This hack is so that the source file can tell whether it is being
8310 # built for inclusion in a dll (and should export symbols for example).
8311 lt_prog_compiler_pic='-DDLL_EXPORT'
8312 ;;
8313
8314 hpux9* | hpux10* | hpux11*)
8315 lt_prog_compiler_wl='-Wl,'
8316 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8317 # not for PA HP-UX.
8318 case $host_cpu in
8319 hppa*64*|ia64*)
8320 # +Z the default
8321 ;;
8322 *)
8323 lt_prog_compiler_pic='+Z'
8324 ;;
8325 esac
8326 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8327 lt_prog_compiler_static='${wl}-a ${wl}archive'
8328 ;;
8329
8330 irix5* | irix6* | nonstopux*)
8331 lt_prog_compiler_wl='-Wl,'
8332 # PIC (with -KPIC) is the default.
8333 lt_prog_compiler_static='-non_shared'
8334 ;;
8335
8336 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8337 case $cc_basename in
8338 # old Intel for x86_64 which still supported -KPIC.
8339 ecc*)
8340 lt_prog_compiler_wl='-Wl,'
8341 lt_prog_compiler_pic='-KPIC'
8342 lt_prog_compiler_static='-static'
8343 ;;
8344 # icc used to be incompatible with GCC.
8345 # ICC 10 doesn't accept -KPIC any more.
8346 icc* | ifort*)
8347 lt_prog_compiler_wl='-Wl,'
8348 lt_prog_compiler_pic='-fPIC'
8349 lt_prog_compiler_static='-static'
8350 ;;
8351 # Lahey Fortran 8.1.
8352 lf95*)
8353 lt_prog_compiler_wl='-Wl,'
8354 lt_prog_compiler_pic='--shared'
8355 lt_prog_compiler_static='--static'
8356 ;;
8357 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8358 # Portland Group compilers (*not* the Pentium gcc compiler,
8359 # which looks to be a dead project)
8360 lt_prog_compiler_wl='-Wl,'
8361 lt_prog_compiler_pic='-fpic'
8362 lt_prog_compiler_static='-Bstatic'
8363 ;;
8364 ccc*)
8365 lt_prog_compiler_wl='-Wl,'
8366 # All Alpha code is PIC.
8367 lt_prog_compiler_static='-non_shared'
8368 ;;
8369 xl* | bgxl* | bgf* | mpixl*)
8370 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8371 lt_prog_compiler_wl='-Wl,'
8372 lt_prog_compiler_pic='-qpic'
8373 lt_prog_compiler_static='-qstaticlink'
8374 ;;
8375 *)
8376 case `$CC -V 2>&1 | sed 5q` in
8377 *Sun\ F* | *Sun*Fortran*)
8378 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8379 lt_prog_compiler_pic='-KPIC'
8380 lt_prog_compiler_static='-Bstatic'
8381 lt_prog_compiler_wl=''
8382 ;;
8383 *Sun\ C*)
8384 # Sun C 5.9
8385 lt_prog_compiler_pic='-KPIC'
8386 lt_prog_compiler_static='-Bstatic'
8387 lt_prog_compiler_wl='-Wl,'
8388 ;;
8389 esac
8390 ;;
8391 esac
8392 ;;
8393
8394 newsos6)
8395 lt_prog_compiler_pic='-KPIC'
8396 lt_prog_compiler_static='-Bstatic'
8397 ;;
8398
8399 *nto* | *qnx*)
8400 # QNX uses GNU C++, but need to define -shared option too, otherwise
8401 # it will coredump.
8402 lt_prog_compiler_pic='-fPIC -shared'
8403 ;;
8404
8405 osf3* | osf4* | osf5*)
8406 lt_prog_compiler_wl='-Wl,'
8407 # All OSF/1 code is PIC.
8408 lt_prog_compiler_static='-non_shared'
8409 ;;
8410
8411 rdos*)
8412 lt_prog_compiler_static='-non_shared'
8413 ;;
8414
8415 solaris*)
8416 lt_prog_compiler_pic='-KPIC'
8417 lt_prog_compiler_static='-Bstatic'
8418 case $cc_basename in
8419 f77* | f90* | f95*)
8420 lt_prog_compiler_wl='-Qoption ld ';;
8421 *)
8422 lt_prog_compiler_wl='-Wl,';;
8423 esac
8424 ;;
8425
8426 sunos4*)
8427 lt_prog_compiler_wl='-Qoption ld '
8428 lt_prog_compiler_pic='-PIC'
8429 lt_prog_compiler_static='-Bstatic'
8430 ;;
8431
8432 sysv4 | sysv4.2uw2* | sysv4.3*)
8433 lt_prog_compiler_wl='-Wl,'
8434 lt_prog_compiler_pic='-KPIC'
8435 lt_prog_compiler_static='-Bstatic'
8436 ;;
8437
8438 sysv4*MP*)
8439 if test -d /usr/nec ;then
8440 lt_prog_compiler_pic='-Kconform_pic'
8441 lt_prog_compiler_static='-Bstatic'
8442 fi
8443 ;;
8444
8445 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8446 lt_prog_compiler_wl='-Wl,'
8447 lt_prog_compiler_pic='-KPIC'
8448 lt_prog_compiler_static='-Bstatic'
8449 ;;
8450
8451 unicos*)
8452 lt_prog_compiler_wl='-Wl,'
8453 lt_prog_compiler_can_build_shared=no
8454 ;;
8455
8456 uts4*)
8457 lt_prog_compiler_pic='-pic'
8458 lt_prog_compiler_static='-Bstatic'
8459 ;;
8460
8461 *)
8462 lt_prog_compiler_can_build_shared=no
8463 ;;
8464 esac
8465 fi
8466
8467 case $host_os in
8468 # For platforms which do not support PIC, -DPIC is meaningless:
8469 *djgpp*)
8470 lt_prog_compiler_pic=
8471 ;;
8472 *)
8473 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8474 ;;
8475 esac
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8477 $as_echo "$lt_prog_compiler_pic" >&6; }
8478
8479
8480
8481
8482
8483
8484 #
8485 # Check to make sure the PIC flag actually works.
8486 #
8487 if test -n "$lt_prog_compiler_pic"; then
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8489 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8490 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8491 $as_echo_n "(cached) " >&6
8492 else
8493 lt_cv_prog_compiler_pic_works=no
8494 ac_outfile=conftest.$ac_objext
8495 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8496 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8497 # Insert the option either (1) after the last *FLAGS variable, or
8498 # (2) before a word containing "conftest.", or (3) at the end.
8499 # Note that $ac_compile itself does not contain backslashes and begins
8500 # with a dollar sign (not a hyphen), so the echo should work correctly.
8501 # The option is referenced via a variable to avoid confusing sed.
8502 lt_compile=`echo "$ac_compile" | $SED \
8503 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8504 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8505 -e 's:$: $lt_compiler_flag:'`
8506 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8507 (eval "$lt_compile" 2>conftest.err)
8508 ac_status=$?
8509 cat conftest.err >&5
8510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511 if (exit $ac_status) && test -s "$ac_outfile"; then
8512 # The compiler can only warn and ignore the option if not recognized
8513 # So say no if there are warnings other than the usual output.
8514 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8515 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8516 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8517 lt_cv_prog_compiler_pic_works=yes
8518 fi
8519 fi
8520 $RM conftest*
8521
8522 fi
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8524 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8525
8526 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8527 case $lt_prog_compiler_pic in
8528 "" | " "*) ;;
8529 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8530 esac
8531 else
8532 lt_prog_compiler_pic=
8533 lt_prog_compiler_can_build_shared=no
8534 fi
8535
8536 fi
8537
8538
8539
8540
8541
8542
8543 #
8544 # Check to make sure the static flag actually works.
8545 #
8546 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8548 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8549 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8550 $as_echo_n "(cached) " >&6
8551 else
8552 lt_cv_prog_compiler_static_works=no
8553 save_LDFLAGS="$LDFLAGS"
8554 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8555 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8556 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8557 # The linker can only warn and ignore the option if not recognized
8558 # So say no if there are warnings
8559 if test -s conftest.err; then
8560 # Append any errors to the config.log.
8561 cat conftest.err 1>&5
8562 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8563 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8564 if diff conftest.exp conftest.er2 >/dev/null; then
8565 lt_cv_prog_compiler_static_works=yes
8566 fi
8567 else
8568 lt_cv_prog_compiler_static_works=yes
8569 fi
8570 fi
8571 $RM -r conftest*
8572 LDFLAGS="$save_LDFLAGS"
8573
8574 fi
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8576 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8577
8578 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8579 :
8580 else
8581 lt_prog_compiler_static=
8582 fi
8583
8584
8585
8586
8587
8588
8589
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8591 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8592 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8593 $as_echo_n "(cached) " >&6
8594 else
8595 lt_cv_prog_compiler_c_o=no
8596 $RM -r conftest 2>/dev/null
8597 mkdir conftest
8598 cd conftest
8599 mkdir out
8600 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8601
8602 lt_compiler_flag="-o out/conftest2.$ac_objext"
8603 # Insert the option either (1) after the last *FLAGS variable, or
8604 # (2) before a word containing "conftest.", or (3) at the end.
8605 # Note that $ac_compile itself does not contain backslashes and begins
8606 # with a dollar sign (not a hyphen), so the echo should work correctly.
8607 lt_compile=`echo "$ac_compile" | $SED \
8608 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8609 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8610 -e 's:$: $lt_compiler_flag:'`
8611 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8612 (eval "$lt_compile" 2>out/conftest.err)
8613 ac_status=$?
8614 cat out/conftest.err >&5
8615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8617 then
8618 # The compiler can only warn and ignore the option if not recognized
8619 # So say no if there are warnings
8620 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8621 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8622 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8623 lt_cv_prog_compiler_c_o=yes
8624 fi
8625 fi
8626 chmod u+w . 2>&5
8627 $RM conftest*
8628 # SGI C++ compiler will create directory out/ii_files/ for
8629 # template instantiation
8630 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8631 $RM out/* && rmdir out
8632 cd ..
8633 $RM -r conftest
8634 $RM conftest*
8635
8636 fi
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8638 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8639
8640
8641
8642
8643
8644
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8646 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8647 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8648 $as_echo_n "(cached) " >&6
8649 else
8650 lt_cv_prog_compiler_c_o=no
8651 $RM -r conftest 2>/dev/null
8652 mkdir conftest
8653 cd conftest
8654 mkdir out
8655 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8656
8657 lt_compiler_flag="-o out/conftest2.$ac_objext"
8658 # Insert the option either (1) after the last *FLAGS variable, or
8659 # (2) before a word containing "conftest.", or (3) at the end.
8660 # Note that $ac_compile itself does not contain backslashes and begins
8661 # with a dollar sign (not a hyphen), so the echo should work correctly.
8662 lt_compile=`echo "$ac_compile" | $SED \
8663 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8664 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8665 -e 's:$: $lt_compiler_flag:'`
8666 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8667 (eval "$lt_compile" 2>out/conftest.err)
8668 ac_status=$?
8669 cat out/conftest.err >&5
8670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8672 then
8673 # The compiler can only warn and ignore the option if not recognized
8674 # So say no if there are warnings
8675 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8676 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8677 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8678 lt_cv_prog_compiler_c_o=yes
8679 fi
8680 fi
8681 chmod u+w . 2>&5
8682 $RM conftest*
8683 # SGI C++ compiler will create directory out/ii_files/ for
8684 # template instantiation
8685 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8686 $RM out/* && rmdir out
8687 cd ..
8688 $RM -r conftest
8689 $RM conftest*
8690
8691 fi
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8693 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8694
8695
8696
8697
8698 hard_links="nottested"
8699 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8700 # do not overwrite the value of need_locks provided by the user
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8702 $as_echo_n "checking if we can lock with hard links... " >&6; }
8703 hard_links=yes
8704 $RM conftest*
8705 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8706 touch conftest.a
8707 ln conftest.a conftest.b 2>&5 || hard_links=no
8708 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8710 $as_echo "$hard_links" >&6; }
8711 if test "$hard_links" = no; then
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8713 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8714 need_locks=warn
8715 fi
8716 else
8717 need_locks=no
8718 fi
8719
8720
8721
8722
8723
8724
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8726 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8727
8728 runpath_var=
8729 allow_undefined_flag=
8730 always_export_symbols=no
8731 archive_cmds=
8732 archive_expsym_cmds=
8733 compiler_needs_object=no
8734 enable_shared_with_static_runtimes=no
8735 export_dynamic_flag_spec=
8736 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8737 hardcode_automatic=no
8738 hardcode_direct=no
8739 hardcode_direct_absolute=no
8740 hardcode_libdir_flag_spec=
8741 hardcode_libdir_flag_spec_ld=
8742 hardcode_libdir_separator=
8743 hardcode_minus_L=no
8744 hardcode_shlibpath_var=unsupported
8745 inherit_rpath=no
8746 link_all_deplibs=unknown
8747 module_cmds=
8748 module_expsym_cmds=
8749 old_archive_from_new_cmds=
8750 old_archive_from_expsyms_cmds=
8751 thread_safe_flag_spec=
8752 whole_archive_flag_spec=
8753 # include_expsyms should be a list of space-separated symbols to be *always*
8754 # included in the symbol list
8755 include_expsyms=
8756 # exclude_expsyms can be an extended regexp of symbols to exclude
8757 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8758 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8759 # as well as any symbol that contains `d'.
8760 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8761 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8762 # platforms (ab)use it in PIC code, but their linkers get confused if
8763 # the symbol is explicitly referenced. Since portable code cannot
8764 # rely on this symbol name, it's probably fine to never include it in
8765 # preloaded symbol tables.
8766 # Exclude shared library initialization/finalization symbols.
8767 extract_expsyms_cmds=
8768
8769 case $host_os in
8770 cygwin* | mingw* | pw32* | cegcc*)
8771 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8772 # When not using gcc, we currently assume that we are using
8773 # Microsoft Visual C++.
8774 if test "$GCC" != yes; then
8775 with_gnu_ld=no
8776 fi
8777 ;;
8778 interix*)
8779 # we just hope/assume this is gcc and not c89 (= MSVC++)
8780 with_gnu_ld=yes
8781 ;;
8782 openbsd*)
8783 with_gnu_ld=no
8784 ;;
8785 esac
8786
8787 ld_shlibs=yes
8788
8789 # On some targets, GNU ld is compatible enough with the native linker
8790 # that we're better off using the native interface for both.
8791 lt_use_gnu_ld_interface=no
8792 if test "$with_gnu_ld" = yes; then
8793 case $host_os in
8794 aix*)
8795 # The AIX port of GNU ld has always aspired to compatibility
8796 # with the native linker. However, as the warning in the GNU ld
8797 # block says, versions before 2.19.5* couldn't really create working
8798 # shared libraries, regardless of the interface used.
8799 case `$LD -v 2>&1` in
8800 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8801 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8802 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8803 *)
8804 lt_use_gnu_ld_interface=yes
8805 ;;
8806 esac
8807 ;;
8808 *)
8809 lt_use_gnu_ld_interface=yes
8810 ;;
8811 esac
8812 fi
8813
8814 if test "$lt_use_gnu_ld_interface" = yes; then
8815 # If archive_cmds runs LD, not CC, wlarc should be empty
8816 wlarc='${wl}'
8817
8818 # Set some defaults for GNU ld with shared library support. These
8819 # are reset later if shared libraries are not supported. Putting them
8820 # here allows them to be overridden if necessary.
8821 runpath_var=LD_RUN_PATH
8822 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8823 export_dynamic_flag_spec='${wl}--export-dynamic'
8824 # ancient GNU ld didn't support --whole-archive et. al.
8825 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8826 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8827 else
8828 whole_archive_flag_spec=
8829 fi
8830 supports_anon_versioning=no
8831 case `$LD -v 2>&1` in
8832 *GNU\ gold*) supports_anon_versioning=yes ;;
8833 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8834 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8835 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8836 *\ 2.11.*) ;; # other 2.11 versions
8837 *) supports_anon_versioning=yes ;;
8838 esac
8839
8840 # See if GNU ld supports shared libraries.
8841 case $host_os in
8842 aix[3-9]*)
8843 # On AIX/PPC, the GNU linker is very broken
8844 if test "$host_cpu" != ia64; then
8845 ld_shlibs=no
8846 cat <<_LT_EOF 1>&2
8847
8848 *** Warning: the GNU linker, at least up to release 2.19, is reported
8849 *** to be unable to reliably create shared libraries on AIX.
8850 *** Therefore, libtool is disabling shared libraries support. If you
8851 *** really care for shared libraries, you may want to install binutils
8852 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8853 *** You will then need to restart the configuration process.
8854
8855 _LT_EOF
8856 fi
8857 ;;
8858
8859 amigaos*)
8860 case $host_cpu in
8861 powerpc)
8862 # see comment about AmigaOS4 .so support
8863 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8864 archive_expsym_cmds=''
8865 ;;
8866 m68k)
8867 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)'
8868 hardcode_libdir_flag_spec='-L$libdir'
8869 hardcode_minus_L=yes
8870 ;;
8871 esac
8872 ;;
8873
8874 beos*)
8875 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8876 allow_undefined_flag=unsupported
8877 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8878 # support --undefined. This deserves some investigation. FIXME
8879 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8880 else
8881 ld_shlibs=no
8882 fi
8883 ;;
8884
8885 cygwin* | mingw* | pw32* | cegcc*)
8886 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8887 # as there is no search path for DLLs.
8888 hardcode_libdir_flag_spec='-L$libdir'
8889 export_dynamic_flag_spec='${wl}--export-all-symbols'
8890 allow_undefined_flag=unsupported
8891 always_export_symbols=no
8892 enable_shared_with_static_runtimes=yes
8893 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8894
8895 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8896 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8897 # If the export-symbols file already is a .def file (1st line
8898 # is EXPORTS), use it as is; otherwise, prepend...
8899 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8900 cp $export_symbols $output_objdir/$soname.def;
8901 else
8902 echo EXPORTS > $output_objdir/$soname.def;
8903 cat $export_symbols >> $output_objdir/$soname.def;
8904 fi~
8905 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8906 else
8907 ld_shlibs=no
8908 fi
8909 ;;
8910
8911 haiku*)
8912 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8913 link_all_deplibs=yes
8914 ;;
8915
8916 interix[3-9]*)
8917 hardcode_direct=no
8918 hardcode_shlibpath_var=no
8919 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8920 export_dynamic_flag_spec='${wl}-E'
8921 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8922 # Instead, shared libraries are loaded at an image base (0x10000000 by
8923 # default) and relocated if they conflict, which is a slow very memory
8924 # consuming and fragmenting process. To avoid this, we pick a random,
8925 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8926 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8927 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8928 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'
8929 ;;
8930
8931 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8932 tmp_diet=no
8933 if test "$host_os" = linux-dietlibc; then
8934 case $cc_basename in
8935 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8936 esac
8937 fi
8938 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8939 && test "$tmp_diet" = no
8940 then
8941 tmp_addflag=' $pic_flag'
8942 tmp_sharedflag='-shared'
8943 case $cc_basename,$host_cpu in
8944 pgcc*) # Portland Group C compiler
8945 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'
8946 tmp_addflag=' $pic_flag'
8947 ;;
8948 pgf77* | pgf90* | pgf95* | pgfortran*)
8949 # Portland Group f77 and f90 compilers
8950 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'
8951 tmp_addflag=' $pic_flag -Mnomain' ;;
8952 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8953 tmp_addflag=' -i_dynamic' ;;
8954 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8955 tmp_addflag=' -i_dynamic -nofor_main' ;;
8956 ifc* | ifort*) # Intel Fortran compiler
8957 tmp_addflag=' -nofor_main' ;;
8958 lf95*) # Lahey Fortran 8.1
8959 whole_archive_flag_spec=
8960 tmp_sharedflag='--shared' ;;
8961 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8962 tmp_sharedflag='-qmkshrobj'
8963 tmp_addflag= ;;
8964 nvcc*) # Cuda Compiler Driver 2.2
8965 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'
8966 compiler_needs_object=yes
8967 ;;
8968 esac
8969 case `$CC -V 2>&1 | sed 5q` in
8970 *Sun\ C*) # Sun C 5.9
8971 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'
8972 compiler_needs_object=yes
8973 tmp_sharedflag='-G' ;;
8974 *Sun\ F*) # Sun Fortran 8.3
8975 tmp_sharedflag='-G' ;;
8976 esac
8977 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8978
8979 if test "x$supports_anon_versioning" = xyes; then
8980 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8981 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8982 echo "local: *; };" >> $output_objdir/$libname.ver~
8983 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8984 fi
8985
8986 case $cc_basename in
8987 xlf* | bgf* | bgxlf* | mpixlf*)
8988 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8989 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8990 hardcode_libdir_flag_spec=
8991 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8992 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8993 if test "x$supports_anon_versioning" = xyes; then
8994 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8995 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8996 echo "local: *; };" >> $output_objdir/$libname.ver~
8997 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8998 fi
8999 ;;
9000 esac
9001 else
9002 ld_shlibs=no
9003 fi
9004 ;;
9005
9006 netbsd*)
9007 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9008 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9009 wlarc=
9010 else
9011 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9012 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9013 fi
9014 ;;
9015
9016 solaris*)
9017 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9018 ld_shlibs=no
9019 cat <<_LT_EOF 1>&2
9020
9021 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9022 *** create shared libraries on Solaris systems. Therefore, libtool
9023 *** is disabling shared libraries support. We urge you to upgrade GNU
9024 *** binutils to release 2.9.1 or newer. Another option is to modify
9025 *** your PATH or compiler configuration so that the native linker is
9026 *** used, and then restart.
9027
9028 _LT_EOF
9029 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9030 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9031 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9032 else
9033 ld_shlibs=no
9034 fi
9035 ;;
9036
9037 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9038 case `$LD -v 2>&1` in
9039 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9040 ld_shlibs=no
9041 cat <<_LT_EOF 1>&2
9042
9043 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9044 *** reliably create shared libraries on SCO systems. Therefore, libtool
9045 *** is disabling shared libraries support. We urge you to upgrade GNU
9046 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9047 *** your PATH or compiler configuration so that the native linker is
9048 *** used, and then restart.
9049
9050 _LT_EOF
9051 ;;
9052 *)
9053 # For security reasons, it is highly recommended that you always
9054 # use absolute paths for naming shared libraries, and exclude the
9055 # DT_RUNPATH tag from executables and libraries. But doing so
9056 # requires that you compile everything twice, which is a pain.
9057 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9058 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9059 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9060 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9061 else
9062 ld_shlibs=no
9063 fi
9064 ;;
9065 esac
9066 ;;
9067
9068 sunos4*)
9069 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9070 wlarc=
9071 hardcode_direct=yes
9072 hardcode_shlibpath_var=no
9073 ;;
9074
9075 *)
9076 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9077 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9078 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9079 else
9080 ld_shlibs=no
9081 fi
9082 ;;
9083 esac
9084
9085 if test "$ld_shlibs" = no; then
9086 runpath_var=
9087 hardcode_libdir_flag_spec=
9088 export_dynamic_flag_spec=
9089 whole_archive_flag_spec=
9090 fi
9091 else
9092 # PORTME fill in a description of your system's linker (not GNU ld)
9093 case $host_os in
9094 aix3*)
9095 allow_undefined_flag=unsupported
9096 always_export_symbols=yes
9097 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'
9098 # Note: this linker hardcodes the directories in LIBPATH if there
9099 # are no directories specified by -L.
9100 hardcode_minus_L=yes
9101 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9102 # Neither direct hardcoding nor static linking is supported with a
9103 # broken collect2.
9104 hardcode_direct=unsupported
9105 fi
9106 ;;
9107
9108 aix[4-9]*)
9109 if test "$host_cpu" = ia64; then
9110 # On IA64, the linker does run time linking by default, so we don't
9111 # have to do anything special.
9112 aix_use_runtimelinking=no
9113 exp_sym_flag='-Bexport'
9114 no_entry_flag=""
9115 else
9116 # If we're using GNU nm, then we don't want the "-C" option.
9117 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9118 # Also, AIX nm treats weak defined symbols like other global
9119 # defined symbols, whereas GNU nm marks them as "W".
9120 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9121 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'
9122 else
9123 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'
9124 fi
9125 aix_use_runtimelinking=no
9126
9127 # Test if we are trying to use run time linking or normal
9128 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9129 # need to do runtime linking.
9130 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9131 for ld_flag in $LDFLAGS; do
9132 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9133 aix_use_runtimelinking=yes
9134 break
9135 fi
9136 done
9137 ;;
9138 esac
9139
9140 exp_sym_flag='-bexport'
9141 no_entry_flag='-bnoentry'
9142 fi
9143
9144 # When large executables or shared objects are built, AIX ld can
9145 # have problems creating the table of contents. If linking a library
9146 # or program results in "error TOC overflow" add -mminimal-toc to
9147 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9148 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9149
9150 archive_cmds=''
9151 hardcode_direct=yes
9152 hardcode_direct_absolute=yes
9153 hardcode_libdir_separator=':'
9154 link_all_deplibs=yes
9155 file_list_spec='${wl}-f,'
9156
9157 if test "$GCC" = yes; then
9158 case $host_os in aix4.[012]|aix4.[012].*)
9159 # We only want to do this on AIX 4.2 and lower, the check
9160 # below for broken collect2 doesn't work under 4.3+
9161 collect2name=`${CC} -print-prog-name=collect2`
9162 if test -f "$collect2name" &&
9163 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9164 then
9165 # We have reworked collect2
9166 :
9167 else
9168 # We have old collect2
9169 hardcode_direct=unsupported
9170 # It fails to find uninstalled libraries when the uninstalled
9171 # path is not listed in the libpath. Setting hardcode_minus_L
9172 # to unsupported forces relinking
9173 hardcode_minus_L=yes
9174 hardcode_libdir_flag_spec='-L$libdir'
9175 hardcode_libdir_separator=
9176 fi
9177 ;;
9178 esac
9179 shared_flag='-shared'
9180 if test "$aix_use_runtimelinking" = yes; then
9181 shared_flag="$shared_flag "'${wl}-G'
9182 fi
9183 else
9184 # not using gcc
9185 if test "$host_cpu" = ia64; then
9186 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9187 # chokes on -Wl,-G. The following line is correct:
9188 shared_flag='-G'
9189 else
9190 if test "$aix_use_runtimelinking" = yes; then
9191 shared_flag='${wl}-G'
9192 else
9193 shared_flag='${wl}-bM:SRE'
9194 fi
9195 fi
9196 fi
9197
9198 export_dynamic_flag_spec='${wl}-bexpall'
9199 # It seems that -bexpall does not export symbols beginning with
9200 # underscore (_), so it is better to generate a list of symbols to export.
9201 always_export_symbols=yes
9202 if test "$aix_use_runtimelinking" = yes; then
9203 # Warning - without using the other runtime loading flags (-brtl),
9204 # -berok will link without error, but may produce a broken library.
9205 allow_undefined_flag='-berok'
9206 # Determine the default libpath from the value encoded in an
9207 # empty executable.
9208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9209 /* end confdefs.h. */
9210
9211 int
9212 main ()
9213 {
9214
9215 ;
9216 return 0;
9217 }
9218 _ACEOF
9219 if ac_fn_c_try_link "$LINENO"; then :
9220
9221 lt_aix_libpath_sed='
9222 /Import File Strings/,/^$/ {
9223 /^0/ {
9224 s/^0 *\(.*\)$/\1/
9225 p
9226 }
9227 }'
9228 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9229 # Check for a 64-bit object if we didn't find anything.
9230 if test -z "$aix_libpath"; then
9231 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9232 fi
9233 fi
9234 rm -f core conftest.err conftest.$ac_objext \
9235 conftest$ac_exeext conftest.$ac_ext
9236 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9237
9238 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9239 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"
9240 else
9241 if test "$host_cpu" = ia64; then
9242 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9243 allow_undefined_flag="-z nodefs"
9244 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"
9245 else
9246 # Determine the default libpath from the value encoded in an
9247 # empty executable.
9248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9249 /* end confdefs.h. */
9250
9251 int
9252 main ()
9253 {
9254
9255 ;
9256 return 0;
9257 }
9258 _ACEOF
9259 if ac_fn_c_try_link "$LINENO"; then :
9260
9261 lt_aix_libpath_sed='
9262 /Import File Strings/,/^$/ {
9263 /^0/ {
9264 s/^0 *\(.*\)$/\1/
9265 p
9266 }
9267 }'
9268 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9269 # Check for a 64-bit object if we didn't find anything.
9270 if test -z "$aix_libpath"; then
9271 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9272 fi
9273 fi
9274 rm -f core conftest.err conftest.$ac_objext \
9275 conftest$ac_exeext conftest.$ac_ext
9276 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9277
9278 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9279 # Warning - without using the other run time loading flags,
9280 # -berok will link without error, but may produce a broken library.
9281 no_undefined_flag=' ${wl}-bernotok'
9282 allow_undefined_flag=' ${wl}-berok'
9283 if test "$with_gnu_ld" = yes; then
9284 # We only use this code for GNU lds that support --whole-archive.
9285 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9286 else
9287 # Exported symbols can be pulled into shared objects from archives
9288 whole_archive_flag_spec='$convenience'
9289 fi
9290 archive_cmds_need_lc=yes
9291 # This is similar to how AIX traditionally builds its shared libraries.
9292 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'
9293 fi
9294 fi
9295 ;;
9296
9297 amigaos*)
9298 case $host_cpu in
9299 powerpc)
9300 # see comment about AmigaOS4 .so support
9301 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9302 archive_expsym_cmds=''
9303 ;;
9304 m68k)
9305 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)'
9306 hardcode_libdir_flag_spec='-L$libdir'
9307 hardcode_minus_L=yes
9308 ;;
9309 esac
9310 ;;
9311
9312 bsdi[45]*)
9313 export_dynamic_flag_spec=-rdynamic
9314 ;;
9315
9316 cygwin* | mingw* | pw32* | cegcc*)
9317 # When not using gcc, we currently assume that we are using
9318 # Microsoft Visual C++.
9319 # hardcode_libdir_flag_spec is actually meaningless, as there is
9320 # no search path for DLLs.
9321 hardcode_libdir_flag_spec=' '
9322 allow_undefined_flag=unsupported
9323 # Tell ltmain to make .lib files, not .a files.
9324 libext=lib
9325 # Tell ltmain to make .dll files, not .so files.
9326 shrext_cmds=".dll"
9327 # FIXME: Setting linknames here is a bad hack.
9328 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9329 # The linker will automatically build a .lib file if we build a DLL.
9330 old_archive_from_new_cmds='true'
9331 # FIXME: Should let the user specify the lib program.
9332 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9333 fix_srcfile_path='`cygpath -w "$srcfile"`'
9334 enable_shared_with_static_runtimes=yes
9335 ;;
9336
9337 darwin* | rhapsody*)
9338
9339
9340 archive_cmds_need_lc=no
9341 hardcode_direct=no
9342 hardcode_automatic=yes
9343 hardcode_shlibpath_var=unsupported
9344 if test "$lt_cv_ld_force_load" = "yes"; then
9345 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\"`'
9346 else
9347 whole_archive_flag_spec=''
9348 fi
9349 link_all_deplibs=yes
9350 allow_undefined_flag="$_lt_dar_allow_undefined"
9351 case $cc_basename in
9352 ifort*) _lt_dar_can_shared=yes ;;
9353 *) _lt_dar_can_shared=$GCC ;;
9354 esac
9355 if test "$_lt_dar_can_shared" = "yes"; then
9356 output_verbose_link_cmd=func_echo_all
9357 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9358 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9359 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}"
9360 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}"
9361
9362 else
9363 ld_shlibs=no
9364 fi
9365
9366 ;;
9367
9368 dgux*)
9369 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9370 hardcode_libdir_flag_spec='-L$libdir'
9371 hardcode_shlibpath_var=no
9372 ;;
9373
9374 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9375 # support. Future versions do this automatically, but an explicit c++rt0.o
9376 # does not break anything, and helps significantly (at the cost of a little
9377 # extra space).
9378 freebsd2.2*)
9379 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9380 hardcode_libdir_flag_spec='-R$libdir'
9381 hardcode_direct=yes
9382 hardcode_shlibpath_var=no
9383 ;;
9384
9385 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9386 freebsd2.*)
9387 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9388 hardcode_direct=yes
9389 hardcode_minus_L=yes
9390 hardcode_shlibpath_var=no
9391 ;;
9392
9393 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9394 freebsd* | dragonfly*)
9395 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9396 hardcode_libdir_flag_spec='-R$libdir'
9397 hardcode_direct=yes
9398 hardcode_shlibpath_var=no
9399 ;;
9400
9401 hpux9*)
9402 if test "$GCC" = yes; then
9403 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'
9404 else
9405 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'
9406 fi
9407 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9408 hardcode_libdir_separator=:
9409 hardcode_direct=yes
9410
9411 # hardcode_minus_L: Not really in the search PATH,
9412 # but as the default location of the library.
9413 hardcode_minus_L=yes
9414 export_dynamic_flag_spec='${wl}-E'
9415 ;;
9416
9417 hpux10*)
9418 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9419 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9420 else
9421 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9422 fi
9423 if test "$with_gnu_ld" = no; then
9424 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9425 hardcode_libdir_flag_spec_ld='+b $libdir'
9426 hardcode_libdir_separator=:
9427 hardcode_direct=yes
9428 hardcode_direct_absolute=yes
9429 export_dynamic_flag_spec='${wl}-E'
9430 # hardcode_minus_L: Not really in the search PATH,
9431 # but as the default location of the library.
9432 hardcode_minus_L=yes
9433 fi
9434 ;;
9435
9436 hpux11*)
9437 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9438 case $host_cpu in
9439 hppa*64*)
9440 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9441 ;;
9442 ia64*)
9443 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9444 ;;
9445 *)
9446 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9447 ;;
9448 esac
9449 else
9450 case $host_cpu in
9451 hppa*64*)
9452 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9453 ;;
9454 ia64*)
9455 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9456 ;;
9457 *)
9458
9459 # Older versions of the 11.00 compiler do not understand -b yet
9460 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9462 $as_echo_n "checking if $CC understands -b... " >&6; }
9463 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9464 $as_echo_n "(cached) " >&6
9465 else
9466 lt_cv_prog_compiler__b=no
9467 save_LDFLAGS="$LDFLAGS"
9468 LDFLAGS="$LDFLAGS -b"
9469 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9470 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9471 # The linker can only warn and ignore the option if not recognized
9472 # So say no if there are warnings
9473 if test -s conftest.err; then
9474 # Append any errors to the config.log.
9475 cat conftest.err 1>&5
9476 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9477 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9478 if diff conftest.exp conftest.er2 >/dev/null; then
9479 lt_cv_prog_compiler__b=yes
9480 fi
9481 else
9482 lt_cv_prog_compiler__b=yes
9483 fi
9484 fi
9485 $RM -r conftest*
9486 LDFLAGS="$save_LDFLAGS"
9487
9488 fi
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9490 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9491
9492 if test x"$lt_cv_prog_compiler__b" = xyes; then
9493 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9494 else
9495 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9496 fi
9497
9498 ;;
9499 esac
9500 fi
9501 if test "$with_gnu_ld" = no; then
9502 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9503 hardcode_libdir_separator=:
9504
9505 case $host_cpu in
9506 hppa*64*|ia64*)
9507 hardcode_direct=no
9508 hardcode_shlibpath_var=no
9509 ;;
9510 *)
9511 hardcode_direct=yes
9512 hardcode_direct_absolute=yes
9513 export_dynamic_flag_spec='${wl}-E'
9514
9515 # hardcode_minus_L: Not really in the search PATH,
9516 # but as the default location of the library.
9517 hardcode_minus_L=yes
9518 ;;
9519 esac
9520 fi
9521 ;;
9522
9523 irix5* | irix6* | nonstopux*)
9524 if test "$GCC" = yes; then
9525 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'
9526 # Try to use the -exported_symbol ld option, if it does not
9527 # work, assume that -exports_file does not work either and
9528 # implicitly export all symbols.
9529 save_LDFLAGS="$LDFLAGS"
9530 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9532 /* end confdefs.h. */
9533 int foo(void) {}
9534 _ACEOF
9535 if ac_fn_c_try_link "$LINENO"; then :
9536 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'
9537
9538 fi
9539 rm -f core conftest.err conftest.$ac_objext \
9540 conftest$ac_exeext conftest.$ac_ext
9541 LDFLAGS="$save_LDFLAGS"
9542 else
9543 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'
9544 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'
9545 fi
9546 archive_cmds_need_lc='no'
9547 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9548 hardcode_libdir_separator=:
9549 inherit_rpath=yes
9550 link_all_deplibs=yes
9551 ;;
9552
9553 netbsd*)
9554 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9555 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9556 else
9557 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9558 fi
9559 hardcode_libdir_flag_spec='-R$libdir'
9560 hardcode_direct=yes
9561 hardcode_shlibpath_var=no
9562 ;;
9563
9564 newsos6)
9565 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9566 hardcode_direct=yes
9567 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9568 hardcode_libdir_separator=:
9569 hardcode_shlibpath_var=no
9570 ;;
9571
9572 *nto* | *qnx*)
9573 ;;
9574
9575 openbsd*)
9576 if test -f /usr/libexec/ld.so; then
9577 hardcode_direct=yes
9578 hardcode_shlibpath_var=no
9579 hardcode_direct_absolute=yes
9580 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9581 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9582 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9583 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9584 export_dynamic_flag_spec='${wl}-E'
9585 else
9586 case $host_os in
9587 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9588 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9589 hardcode_libdir_flag_spec='-R$libdir'
9590 ;;
9591 *)
9592 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9593 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9594 ;;
9595 esac
9596 fi
9597 else
9598 ld_shlibs=no
9599 fi
9600 ;;
9601
9602 os2*)
9603 hardcode_libdir_flag_spec='-L$libdir'
9604 hardcode_minus_L=yes
9605 allow_undefined_flag=unsupported
9606 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'
9607 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9608 ;;
9609
9610 osf3*)
9611 if test "$GCC" = yes; then
9612 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9613 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'
9614 else
9615 allow_undefined_flag=' -expect_unresolved \*'
9616 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'
9617 fi
9618 archive_cmds_need_lc='no'
9619 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9620 hardcode_libdir_separator=:
9621 ;;
9622
9623 osf4* | osf5*) # as osf3* with the addition of -msym flag
9624 if test "$GCC" = yes; then
9625 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9626 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'
9627 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9628 else
9629 allow_undefined_flag=' -expect_unresolved \*'
9630 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'
9631 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~
9632 $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'
9633
9634 # Both c and cxx compiler support -rpath directly
9635 hardcode_libdir_flag_spec='-rpath $libdir'
9636 fi
9637 archive_cmds_need_lc='no'
9638 hardcode_libdir_separator=:
9639 ;;
9640
9641 solaris*)
9642 no_undefined_flag=' -z defs'
9643 if test "$GCC" = yes; then
9644 wlarc='${wl}'
9645 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9646 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9647 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9648 else
9649 case `$CC -V 2>&1` in
9650 *"Compilers 5.0"*)
9651 wlarc=''
9652 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9653 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9654 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9655 ;;
9656 *)
9657 wlarc='${wl}'
9658 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9659 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9660 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9661 ;;
9662 esac
9663 fi
9664 hardcode_libdir_flag_spec='-R$libdir'
9665 hardcode_shlibpath_var=no
9666 case $host_os in
9667 solaris2.[0-5] | solaris2.[0-5].*) ;;
9668 *)
9669 # The compiler driver will combine and reorder linker options,
9670 # but understands `-z linker_flag'. GCC discards it without `$wl',
9671 # but is careful enough not to reorder.
9672 # Supported since Solaris 2.6 (maybe 2.5.1?)
9673 if test "$GCC" = yes; then
9674 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9675 else
9676 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9677 fi
9678 ;;
9679 esac
9680 link_all_deplibs=yes
9681 ;;
9682
9683 sunos4*)
9684 if test "x$host_vendor" = xsequent; then
9685 # Use $CC to link under sequent, because it throws in some extra .o
9686 # files that make .init and .fini sections work.
9687 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9688 else
9689 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9690 fi
9691 hardcode_libdir_flag_spec='-L$libdir'
9692 hardcode_direct=yes
9693 hardcode_minus_L=yes
9694 hardcode_shlibpath_var=no
9695 ;;
9696
9697 sysv4)
9698 case $host_vendor in
9699 sni)
9700 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9701 hardcode_direct=yes # is this really true???
9702 ;;
9703 siemens)
9704 ## LD is ld it makes a PLAMLIB
9705 ## CC just makes a GrossModule.
9706 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9707 reload_cmds='$CC -r -o $output$reload_objs'
9708 hardcode_direct=no
9709 ;;
9710 motorola)
9711 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9712 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9713 ;;
9714 esac
9715 runpath_var='LD_RUN_PATH'
9716 hardcode_shlibpath_var=no
9717 ;;
9718
9719 sysv4.3*)
9720 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9721 hardcode_shlibpath_var=no
9722 export_dynamic_flag_spec='-Bexport'
9723 ;;
9724
9725 sysv4*MP*)
9726 if test -d /usr/nec; then
9727 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9728 hardcode_shlibpath_var=no
9729 runpath_var=LD_RUN_PATH
9730 hardcode_runpath_var=yes
9731 ld_shlibs=yes
9732 fi
9733 ;;
9734
9735 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9736 no_undefined_flag='${wl}-z,text'
9737 archive_cmds_need_lc=no
9738 hardcode_shlibpath_var=no
9739 runpath_var='LD_RUN_PATH'
9740
9741 if test "$GCC" = yes; then
9742 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9743 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9744 else
9745 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9746 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9747 fi
9748 ;;
9749
9750 sysv5* | sco3.2v5* | sco5v6*)
9751 # Note: We can NOT use -z defs as we might desire, because we do not
9752 # link with -lc, and that would cause any symbols used from libc to
9753 # always be unresolved, which means just about no library would
9754 # ever link correctly. If we're not using GNU ld we use -z text
9755 # though, which does catch some bad symbols but isn't as heavy-handed
9756 # as -z defs.
9757 no_undefined_flag='${wl}-z,text'
9758 allow_undefined_flag='${wl}-z,nodefs'
9759 archive_cmds_need_lc=no
9760 hardcode_shlibpath_var=no
9761 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9762 hardcode_libdir_separator=':'
9763 link_all_deplibs=yes
9764 export_dynamic_flag_spec='${wl}-Bexport'
9765 runpath_var='LD_RUN_PATH'
9766
9767 if test "$GCC" = yes; then
9768 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9769 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9770 else
9771 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9772 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9773 fi
9774 ;;
9775
9776 uts4*)
9777 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9778 hardcode_libdir_flag_spec='-L$libdir'
9779 hardcode_shlibpath_var=no
9780 ;;
9781
9782 *)
9783 ld_shlibs=no
9784 ;;
9785 esac
9786
9787 if test x$host_vendor = xsni; then
9788 case $host in
9789 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9790 export_dynamic_flag_spec='${wl}-Blargedynsym'
9791 ;;
9792 esac
9793 fi
9794 fi
9795
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9797 $as_echo "$ld_shlibs" >&6; }
9798 test "$ld_shlibs" = no && can_build_shared=no
9799
9800 with_gnu_ld=$with_gnu_ld
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816 #
9817 # Do we need to explicitly link libc?
9818 #
9819 case "x$archive_cmds_need_lc" in
9820 x|xyes)
9821 # Assume -lc should be added
9822 archive_cmds_need_lc=yes
9823
9824 if test "$enable_shared" = yes && test "$GCC" = yes; then
9825 case $archive_cmds in
9826 *'~'*)
9827 # FIXME: we may have to deal with multi-command sequences.
9828 ;;
9829 '$CC '*)
9830 # Test whether the compiler implicitly links with -lc since on some
9831 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9832 # to ld, don't add -lc before -lgcc.
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9834 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9835 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9836 $as_echo_n "(cached) " >&6
9837 else
9838 $RM conftest*
9839 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9840
9841 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9842 (eval $ac_compile) 2>&5
9843 ac_status=$?
9844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9845 test $ac_status = 0; } 2>conftest.err; then
9846 soname=conftest
9847 lib=conftest
9848 libobjs=conftest.$ac_objext
9849 deplibs=
9850 wl=$lt_prog_compiler_wl
9851 pic_flag=$lt_prog_compiler_pic
9852 compiler_flags=-v
9853 linker_flags=-v
9854 verstring=
9855 output_objdir=.
9856 libname=conftest
9857 lt_save_allow_undefined_flag=$allow_undefined_flag
9858 allow_undefined_flag=
9859 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9860 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9861 ac_status=$?
9862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9863 test $ac_status = 0; }
9864 then
9865 lt_cv_archive_cmds_need_lc=no
9866 else
9867 lt_cv_archive_cmds_need_lc=yes
9868 fi
9869 allow_undefined_flag=$lt_save_allow_undefined_flag
9870 else
9871 cat conftest.err 1>&5
9872 fi
9873 $RM conftest*
9874
9875 fi
9876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9877 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9878 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9879 ;;
9880 esac
9881 fi
9882 ;;
9883 esac
9884
9885
9886
9887
9888
9889
9890
9891
9892
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10042 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10043
10044 if test "$GCC" = yes; then
10045 case $host_os in
10046 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10047 *) lt_awk_arg="/^libraries:/" ;;
10048 esac
10049 case $host_os in
10050 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10051 *) lt_sed_strip_eq="s,=/,/,g" ;;
10052 esac
10053 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10054 case $lt_search_path_spec in
10055 *\;*)
10056 # if the path contains ";" then we assume it to be the separator
10057 # otherwise default to the standard path separator (i.e. ":") - it is
10058 # assumed that no part of a normal pathname contains ";" but that should
10059 # okay in the real world where ";" in dirpaths is itself problematic.
10060 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10061 ;;
10062 *)
10063 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10064 ;;
10065 esac
10066 # Ok, now we have the path, separated by spaces, we can step through it
10067 # and add multilib dir if necessary.
10068 lt_tmp_lt_search_path_spec=
10069 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10070 for lt_sys_path in $lt_search_path_spec; do
10071 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10072 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10073 else
10074 test -d "$lt_sys_path" && \
10075 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10076 fi
10077 done
10078 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10079 BEGIN {RS=" "; FS="/|\n";} {
10080 lt_foo="";
10081 lt_count=0;
10082 for (lt_i = NF; lt_i > 0; lt_i--) {
10083 if ($lt_i != "" && $lt_i != ".") {
10084 if ($lt_i == "..") {
10085 lt_count++;
10086 } else {
10087 if (lt_count == 0) {
10088 lt_foo="/" $lt_i lt_foo;
10089 } else {
10090 lt_count--;
10091 }
10092 }
10093 }
10094 }
10095 if (lt_foo != "") { lt_freq[lt_foo]++; }
10096 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10097 }'`
10098 # AWK program above erroneously prepends '/' to C:/dos/paths
10099 # for these hosts.
10100 case $host_os in
10101 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10102 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10103 esac
10104 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10105 else
10106 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10107 fi
10108 library_names_spec=
10109 libname_spec='lib$name'
10110 soname_spec=
10111 shrext_cmds=".so"
10112 postinstall_cmds=
10113 postuninstall_cmds=
10114 finish_cmds=
10115 finish_eval=
10116 shlibpath_var=
10117 shlibpath_overrides_runpath=unknown
10118 version_type=none
10119 dynamic_linker="$host_os ld.so"
10120 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10121 need_lib_prefix=unknown
10122 hardcode_into_libs=no
10123
10124 # when you set need_version to no, make sure it does not cause -set_version
10125 # flags to be left without arguments
10126 need_version=unknown
10127
10128 case $host_os in
10129 aix3*)
10130 version_type=linux
10131 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10132 shlibpath_var=LIBPATH
10133
10134 # AIX 3 has no versioning support, so we append a major version to the name.
10135 soname_spec='${libname}${release}${shared_ext}$major'
10136 ;;
10137
10138 aix[4-9]*)
10139 version_type=linux
10140 need_lib_prefix=no
10141 need_version=no
10142 hardcode_into_libs=yes
10143 if test "$host_cpu" = ia64; then
10144 # AIX 5 supports IA64
10145 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10146 shlibpath_var=LD_LIBRARY_PATH
10147 else
10148 # With GCC up to 2.95.x, collect2 would create an import file
10149 # for dependence libraries. The import file would start with
10150 # the line `#! .'. This would cause the generated library to
10151 # depend on `.', always an invalid library. This was fixed in
10152 # development snapshots of GCC prior to 3.0.
10153 case $host_os in
10154 aix4 | aix4.[01] | aix4.[01].*)
10155 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10156 echo ' yes '
10157 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10158 :
10159 else
10160 can_build_shared=no
10161 fi
10162 ;;
10163 esac
10164 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10165 # soname into executable. Probably we can add versioning support to
10166 # collect2, so additional links can be useful in future.
10167 if test "$aix_use_runtimelinking" = yes; then
10168 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10169 # instead of lib<name>.a to let people know that these are not
10170 # typical AIX shared libraries.
10171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10172 else
10173 # We preserve .a as extension for shared libraries through AIX4.2
10174 # and later when we are not doing run time linking.
10175 library_names_spec='${libname}${release}.a $libname.a'
10176 soname_spec='${libname}${release}${shared_ext}$major'
10177 fi
10178 shlibpath_var=LIBPATH
10179 fi
10180 ;;
10181
10182 amigaos*)
10183 case $host_cpu in
10184 powerpc)
10185 # Since July 2007 AmigaOS4 officially supports .so libraries.
10186 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10188 ;;
10189 m68k)
10190 library_names_spec='$libname.ixlibrary $libname.a'
10191 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10192 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'
10193 ;;
10194 esac
10195 ;;
10196
10197 beos*)
10198 library_names_spec='${libname}${shared_ext}'
10199 dynamic_linker="$host_os ld.so"
10200 shlibpath_var=LIBRARY_PATH
10201 ;;
10202
10203 bsdi[45]*)
10204 version_type=linux
10205 need_version=no
10206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10207 soname_spec='${libname}${release}${shared_ext}$major'
10208 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10209 shlibpath_var=LD_LIBRARY_PATH
10210 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10211 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10212 # the default ld.so.conf also contains /usr/contrib/lib and
10213 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10214 # libtool to hard-code these into programs
10215 ;;
10216
10217 cygwin* | mingw* | pw32* | cegcc*)
10218 version_type=windows
10219 shrext_cmds=".dll"
10220 need_version=no
10221 need_lib_prefix=no
10222
10223 case $GCC,$host_os in
10224 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10225 library_names_spec='$libname.dll.a'
10226 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10227 postinstall_cmds='base_file=`basename \${file}`~
10228 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10229 dldir=$destdir/`dirname \$dlpath`~
10230 test -d \$dldir || mkdir -p \$dldir~
10231 $install_prog $dir/$dlname \$dldir/$dlname~
10232 chmod a+x \$dldir/$dlname~
10233 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10234 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10235 fi'
10236 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10237 dlpath=$dir/\$dldll~
10238 $RM \$dlpath'
10239 shlibpath_overrides_runpath=yes
10240
10241 case $host_os in
10242 cygwin*)
10243 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10244 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10245
10246 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10247 ;;
10248 mingw* | cegcc*)
10249 # MinGW DLLs use traditional 'lib' prefix
10250 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10251 ;;
10252 pw32*)
10253 # pw32 DLLs use 'pw' prefix rather than 'lib'
10254 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10255 ;;
10256 esac
10257 ;;
10258
10259 *)
10260 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10261 ;;
10262 esac
10263 dynamic_linker='Win32 ld.exe'
10264 # FIXME: first we should search . and the directory the executable is in
10265 shlibpath_var=PATH
10266 ;;
10267
10268 darwin* | rhapsody*)
10269 dynamic_linker="$host_os dyld"
10270 version_type=darwin
10271 need_lib_prefix=no
10272 need_version=no
10273 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10274 soname_spec='${libname}${release}${major}$shared_ext'
10275 shlibpath_overrides_runpath=yes
10276 shlibpath_var=DYLD_LIBRARY_PATH
10277 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10278
10279 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10280 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10281 ;;
10282
10283 dgux*)
10284 version_type=linux
10285 need_lib_prefix=no
10286 need_version=no
10287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10288 soname_spec='${libname}${release}${shared_ext}$major'
10289 shlibpath_var=LD_LIBRARY_PATH
10290 ;;
10291
10292 freebsd* | dragonfly*)
10293 # DragonFly does not have aout. When/if they implement a new
10294 # versioning mechanism, adjust this.
10295 if test -x /usr/bin/objformat; then
10296 objformat=`/usr/bin/objformat`
10297 else
10298 case $host_os in
10299 freebsd[23].*) objformat=aout ;;
10300 *) objformat=elf ;;
10301 esac
10302 fi
10303 version_type=freebsd-$objformat
10304 case $version_type in
10305 freebsd-elf*)
10306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10307 need_version=no
10308 need_lib_prefix=no
10309 ;;
10310 freebsd-*)
10311 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10312 need_version=yes
10313 ;;
10314 esac
10315 shlibpath_var=LD_LIBRARY_PATH
10316 case $host_os in
10317 freebsd2.*)
10318 shlibpath_overrides_runpath=yes
10319 ;;
10320 freebsd3.[01]* | freebsdelf3.[01]*)
10321 shlibpath_overrides_runpath=yes
10322 hardcode_into_libs=yes
10323 ;;
10324 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10325 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10326 shlibpath_overrides_runpath=no
10327 hardcode_into_libs=yes
10328 ;;
10329 *) # from 4.6 on, and DragonFly
10330 shlibpath_overrides_runpath=yes
10331 hardcode_into_libs=yes
10332 ;;
10333 esac
10334 ;;
10335
10336 gnu*)
10337 version_type=linux
10338 need_lib_prefix=no
10339 need_version=no
10340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10341 soname_spec='${libname}${release}${shared_ext}$major'
10342 shlibpath_var=LD_LIBRARY_PATH
10343 hardcode_into_libs=yes
10344 ;;
10345
10346 haiku*)
10347 version_type=linux
10348 need_lib_prefix=no
10349 need_version=no
10350 dynamic_linker="$host_os runtime_loader"
10351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10352 soname_spec='${libname}${release}${shared_ext}$major'
10353 shlibpath_var=LIBRARY_PATH
10354 shlibpath_overrides_runpath=yes
10355 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10356 hardcode_into_libs=yes
10357 ;;
10358
10359 hpux9* | hpux10* | hpux11*)
10360 # Give a soname corresponding to the major version so that dld.sl refuses to
10361 # link against other versions.
10362 version_type=sunos
10363 need_lib_prefix=no
10364 need_version=no
10365 case $host_cpu in
10366 ia64*)
10367 shrext_cmds='.so'
10368 hardcode_into_libs=yes
10369 dynamic_linker="$host_os dld.so"
10370 shlibpath_var=LD_LIBRARY_PATH
10371 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10373 soname_spec='${libname}${release}${shared_ext}$major'
10374 if test "X$HPUX_IA64_MODE" = X32; then
10375 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10376 else
10377 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10378 fi
10379 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10380 ;;
10381 hppa*64*)
10382 shrext_cmds='.sl'
10383 hardcode_into_libs=yes
10384 dynamic_linker="$host_os dld.sl"
10385 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10386 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10388 soname_spec='${libname}${release}${shared_ext}$major'
10389 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10390 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10391 ;;
10392 *)
10393 shrext_cmds='.sl'
10394 dynamic_linker="$host_os dld.sl"
10395 shlibpath_var=SHLIB_PATH
10396 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10398 soname_spec='${libname}${release}${shared_ext}$major'
10399 ;;
10400 esac
10401 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10402 postinstall_cmds='chmod 555 $lib'
10403 # or fails outright, so override atomically:
10404 install_override_mode=555
10405 ;;
10406
10407 interix[3-9]*)
10408 version_type=linux
10409 need_lib_prefix=no
10410 need_version=no
10411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10412 soname_spec='${libname}${release}${shared_ext}$major'
10413 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10414 shlibpath_var=LD_LIBRARY_PATH
10415 shlibpath_overrides_runpath=no
10416 hardcode_into_libs=yes
10417 ;;
10418
10419 irix5* | irix6* | nonstopux*)
10420 case $host_os in
10421 nonstopux*) version_type=nonstopux ;;
10422 *)
10423 if test "$lt_cv_prog_gnu_ld" = yes; then
10424 version_type=linux
10425 else
10426 version_type=irix
10427 fi ;;
10428 esac
10429 need_lib_prefix=no
10430 need_version=no
10431 soname_spec='${libname}${release}${shared_ext}$major'
10432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10433 case $host_os in
10434 irix5* | nonstopux*)
10435 libsuff= shlibsuff=
10436 ;;
10437 *)
10438 case $LD in # libtool.m4 will add one of these switches to LD
10439 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10440 libsuff= shlibsuff= libmagic=32-bit;;
10441 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10442 libsuff=32 shlibsuff=N32 libmagic=N32;;
10443 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10444 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10445 *) libsuff= shlibsuff= libmagic=never-match;;
10446 esac
10447 ;;
10448 esac
10449 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10450 shlibpath_overrides_runpath=no
10451 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10452 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10453 hardcode_into_libs=yes
10454 ;;
10455
10456 # No shared lib support for Linux oldld, aout, or coff.
10457 linux*oldld* | linux*aout* | linux*coff*)
10458 dynamic_linker=no
10459 ;;
10460
10461 # This must be Linux ELF.
10462 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10463 version_type=linux
10464 need_lib_prefix=no
10465 need_version=no
10466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10467 soname_spec='${libname}${release}${shared_ext}$major'
10468 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10469 shlibpath_var=LD_LIBRARY_PATH
10470 shlibpath_overrides_runpath=no
10471
10472 # Some binutils ld are patched to set DT_RUNPATH
10473 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10474 $as_echo_n "(cached) " >&6
10475 else
10476 lt_cv_shlibpath_overrides_runpath=no
10477 save_LDFLAGS=$LDFLAGS
10478 save_libdir=$libdir
10479 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10480 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10482 /* end confdefs.h. */
10483
10484 int
10485 main ()
10486 {
10487
10488 ;
10489 return 0;
10490 }
10491 _ACEOF
10492 if ac_fn_c_try_link "$LINENO"; then :
10493 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10494 lt_cv_shlibpath_overrides_runpath=yes
10495 fi
10496 fi
10497 rm -f core conftest.err conftest.$ac_objext \
10498 conftest$ac_exeext conftest.$ac_ext
10499 LDFLAGS=$save_LDFLAGS
10500 libdir=$save_libdir
10501
10502 fi
10503
10504 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10505
10506 # This implies no fast_install, which is unacceptable.
10507 # Some rework will be needed to allow for fast_install
10508 # before this can be enabled.
10509 hardcode_into_libs=yes
10510
10511 # Append ld.so.conf contents to the search path
10512 if test -f /etc/ld.so.conf; then
10513 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' ' '`
10514 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10515 fi
10516
10517 # We used to test for /lib/ld.so.1 and disable shared libraries on
10518 # powerpc, because MkLinux only supported shared libraries with the
10519 # GNU dynamic linker. Since this was broken with cross compilers,
10520 # most powerpc-linux boxes support dynamic linking these days and
10521 # people can always --disable-shared, the test was removed, and we
10522 # assume the GNU/Linux dynamic linker is in use.
10523 dynamic_linker='GNU/Linux ld.so'
10524 ;;
10525
10526 netbsd*)
10527 version_type=sunos
10528 need_lib_prefix=no
10529 need_version=no
10530 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10532 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10533 dynamic_linker='NetBSD (a.out) ld.so'
10534 else
10535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10536 soname_spec='${libname}${release}${shared_ext}$major'
10537 dynamic_linker='NetBSD ld.elf_so'
10538 fi
10539 shlibpath_var=LD_LIBRARY_PATH
10540 shlibpath_overrides_runpath=yes
10541 hardcode_into_libs=yes
10542 ;;
10543
10544 newsos6)
10545 version_type=linux
10546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10547 shlibpath_var=LD_LIBRARY_PATH
10548 shlibpath_overrides_runpath=yes
10549 ;;
10550
10551 *nto* | *qnx*)
10552 version_type=qnx
10553 need_lib_prefix=no
10554 need_version=no
10555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10556 soname_spec='${libname}${release}${shared_ext}$major'
10557 shlibpath_var=LD_LIBRARY_PATH
10558 shlibpath_overrides_runpath=no
10559 hardcode_into_libs=yes
10560 dynamic_linker='ldqnx.so'
10561 ;;
10562
10563 openbsd*)
10564 version_type=sunos
10565 sys_lib_dlsearch_path_spec="/usr/lib"
10566 need_lib_prefix=no
10567 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10568 case $host_os in
10569 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10570 *) need_version=no ;;
10571 esac
10572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10573 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10574 shlibpath_var=LD_LIBRARY_PATH
10575 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10576 case $host_os in
10577 openbsd2.[89] | openbsd2.[89].*)
10578 shlibpath_overrides_runpath=no
10579 ;;
10580 *)
10581 shlibpath_overrides_runpath=yes
10582 ;;
10583 esac
10584 else
10585 shlibpath_overrides_runpath=yes
10586 fi
10587 ;;
10588
10589 os2*)
10590 libname_spec='$name'
10591 shrext_cmds=".dll"
10592 need_lib_prefix=no
10593 library_names_spec='$libname${shared_ext} $libname.a'
10594 dynamic_linker='OS/2 ld.exe'
10595 shlibpath_var=LIBPATH
10596 ;;
10597
10598 osf3* | osf4* | osf5*)
10599 version_type=osf
10600 need_lib_prefix=no
10601 need_version=no
10602 soname_spec='${libname}${release}${shared_ext}$major'
10603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10604 shlibpath_var=LD_LIBRARY_PATH
10605 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10606 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10607 ;;
10608
10609 rdos*)
10610 dynamic_linker=no
10611 ;;
10612
10613 solaris*)
10614 version_type=linux
10615 need_lib_prefix=no
10616 need_version=no
10617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10618 soname_spec='${libname}${release}${shared_ext}$major'
10619 shlibpath_var=LD_LIBRARY_PATH
10620 shlibpath_overrides_runpath=yes
10621 hardcode_into_libs=yes
10622 # ldd complains unless libraries are executable
10623 postinstall_cmds='chmod +x $lib'
10624 ;;
10625
10626 sunos4*)
10627 version_type=sunos
10628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10629 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10630 shlibpath_var=LD_LIBRARY_PATH
10631 shlibpath_overrides_runpath=yes
10632 if test "$with_gnu_ld" = yes; then
10633 need_lib_prefix=no
10634 fi
10635 need_version=yes
10636 ;;
10637
10638 sysv4 | sysv4.3*)
10639 version_type=linux
10640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10641 soname_spec='${libname}${release}${shared_ext}$major'
10642 shlibpath_var=LD_LIBRARY_PATH
10643 case $host_vendor in
10644 sni)
10645 shlibpath_overrides_runpath=no
10646 need_lib_prefix=no
10647 runpath_var=LD_RUN_PATH
10648 ;;
10649 siemens)
10650 need_lib_prefix=no
10651 ;;
10652 motorola)
10653 need_lib_prefix=no
10654 need_version=no
10655 shlibpath_overrides_runpath=no
10656 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10657 ;;
10658 esac
10659 ;;
10660
10661 sysv4*MP*)
10662 if test -d /usr/nec ;then
10663 version_type=linux
10664 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10665 soname_spec='$libname${shared_ext}.$major'
10666 shlibpath_var=LD_LIBRARY_PATH
10667 fi
10668 ;;
10669
10670 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10671 version_type=freebsd-elf
10672 need_lib_prefix=no
10673 need_version=no
10674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10675 soname_spec='${libname}${release}${shared_ext}$major'
10676 shlibpath_var=LD_LIBRARY_PATH
10677 shlibpath_overrides_runpath=yes
10678 hardcode_into_libs=yes
10679 if test "$with_gnu_ld" = yes; then
10680 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10681 else
10682 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10683 case $host_os in
10684 sco3.2v5*)
10685 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10686 ;;
10687 esac
10688 fi
10689 sys_lib_dlsearch_path_spec='/usr/lib'
10690 ;;
10691
10692 tpf*)
10693 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10694 version_type=linux
10695 need_lib_prefix=no
10696 need_version=no
10697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10698 shlibpath_var=LD_LIBRARY_PATH
10699 shlibpath_overrides_runpath=no
10700 hardcode_into_libs=yes
10701 ;;
10702
10703 uts4*)
10704 version_type=linux
10705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10706 soname_spec='${libname}${release}${shared_ext}$major'
10707 shlibpath_var=LD_LIBRARY_PATH
10708 ;;
10709
10710 *)
10711 dynamic_linker=no
10712 ;;
10713 esac
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10715 $as_echo "$dynamic_linker" >&6; }
10716 test "$dynamic_linker" = no && can_build_shared=no
10717
10718 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10719 if test "$GCC" = yes; then
10720 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10721 fi
10722
10723 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10724 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10725 fi
10726 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10727 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10728 fi
10729
10730
10731
10732
10733
10734
10735
10736
10737
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10822 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10823 hardcode_action=
10824 if test -n "$hardcode_libdir_flag_spec" ||
10825 test -n "$runpath_var" ||
10826 test "X$hardcode_automatic" = "Xyes" ; then
10827
10828 # We can hardcode non-existent directories.
10829 if test "$hardcode_direct" != no &&
10830 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10831 # have to relink, otherwise we might link with an installed library
10832 # when we should be linking with a yet-to-be-installed one
10833 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10834 test "$hardcode_minus_L" != no; then
10835 # Linking always hardcodes the temporary library directory.
10836 hardcode_action=relink
10837 else
10838 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10839 hardcode_action=immediate
10840 fi
10841 else
10842 # We cannot hardcode anything, or else we can only hardcode existing
10843 # directories.
10844 hardcode_action=unsupported
10845 fi
10846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10847 $as_echo "$hardcode_action" >&6; }
10848
10849 if test "$hardcode_action" = relink ||
10850 test "$inherit_rpath" = yes; then
10851 # Fast installation is not supported
10852 enable_fast_install=no
10853 elif test "$shlibpath_overrides_runpath" = yes ||
10854 test "$enable_shared" = no; then
10855 # Fast installation is not necessary
10856 enable_fast_install=needless
10857 fi
10858
10859
10860
10861
10862
10863
10864 if test "x$enable_dlopen" != xyes; then
10865 enable_dlopen=unknown
10866 enable_dlopen_self=unknown
10867 enable_dlopen_self_static=unknown
10868 else
10869 lt_cv_dlopen=no
10870 lt_cv_dlopen_libs=
10871
10872 case $host_os in
10873 beos*)
10874 lt_cv_dlopen="load_add_on"
10875 lt_cv_dlopen_libs=
10876 lt_cv_dlopen_self=yes
10877 ;;
10878
10879 mingw* | pw32* | cegcc*)
10880 lt_cv_dlopen="LoadLibrary"
10881 lt_cv_dlopen_libs=
10882 ;;
10883
10884 cygwin*)
10885 lt_cv_dlopen="dlopen"
10886 lt_cv_dlopen_libs=
10887 ;;
10888
10889 darwin*)
10890 # if libdl is installed we need to link against it
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10892 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10893 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10894 $as_echo_n "(cached) " >&6
10895 else
10896 ac_check_lib_save_LIBS=$LIBS
10897 LIBS="-ldl $LIBS"
10898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10899 /* end confdefs.h. */
10900
10901 /* Override any GCC internal prototype to avoid an error.
10902 Use char because int might match the return type of a GCC
10903 builtin and then its argument prototype would still apply. */
10904 #ifdef __cplusplus
10905 extern "C"
10906 #endif
10907 char dlopen ();
10908 int
10909 main ()
10910 {
10911 return dlopen ();
10912 ;
10913 return 0;
10914 }
10915 _ACEOF
10916 if ac_fn_c_try_link "$LINENO"; then :
10917 ac_cv_lib_dl_dlopen=yes
10918 else
10919 ac_cv_lib_dl_dlopen=no
10920 fi
10921 rm -f core conftest.err conftest.$ac_objext \
10922 conftest$ac_exeext conftest.$ac_ext
10923 LIBS=$ac_check_lib_save_LIBS
10924 fi
10925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10926 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10927 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10928 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10929 else
10930
10931 lt_cv_dlopen="dyld"
10932 lt_cv_dlopen_libs=
10933 lt_cv_dlopen_self=yes
10934
10935 fi
10936
10937 ;;
10938
10939 *)
10940 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10941 if test "x$ac_cv_func_shl_load" = x""yes; then :
10942 lt_cv_dlopen="shl_load"
10943 else
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10945 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10946 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10947 $as_echo_n "(cached) " >&6
10948 else
10949 ac_check_lib_save_LIBS=$LIBS
10950 LIBS="-ldld $LIBS"
10951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10952 /* end confdefs.h. */
10953
10954 /* Override any GCC internal prototype to avoid an error.
10955 Use char because int might match the return type of a GCC
10956 builtin and then its argument prototype would still apply. */
10957 #ifdef __cplusplus
10958 extern "C"
10959 #endif
10960 char shl_load ();
10961 int
10962 main ()
10963 {
10964 return shl_load ();
10965 ;
10966 return 0;
10967 }
10968 _ACEOF
10969 if ac_fn_c_try_link "$LINENO"; then :
10970 ac_cv_lib_dld_shl_load=yes
10971 else
10972 ac_cv_lib_dld_shl_load=no
10973 fi
10974 rm -f core conftest.err conftest.$ac_objext \
10975 conftest$ac_exeext conftest.$ac_ext
10976 LIBS=$ac_check_lib_save_LIBS
10977 fi
10978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10979 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10980 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10981 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10982 else
10983 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10984 if test "x$ac_cv_func_dlopen" = x""yes; then :
10985 lt_cv_dlopen="dlopen"
10986 else
10987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10988 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10989 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10990 $as_echo_n "(cached) " >&6
10991 else
10992 ac_check_lib_save_LIBS=$LIBS
10993 LIBS="-ldl $LIBS"
10994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10995 /* end confdefs.h. */
10996
10997 /* Override any GCC internal prototype to avoid an error.
10998 Use char because int might match the return type of a GCC
10999 builtin and then its argument prototype would still apply. */
11000 #ifdef __cplusplus
11001 extern "C"
11002 #endif
11003 char dlopen ();
11004 int
11005 main ()
11006 {
11007 return dlopen ();
11008 ;
11009 return 0;
11010 }
11011 _ACEOF
11012 if ac_fn_c_try_link "$LINENO"; then :
11013 ac_cv_lib_dl_dlopen=yes
11014 else
11015 ac_cv_lib_dl_dlopen=no
11016 fi
11017 rm -f core conftest.err conftest.$ac_objext \
11018 conftest$ac_exeext conftest.$ac_ext
11019 LIBS=$ac_check_lib_save_LIBS
11020 fi
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11022 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11023 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11024 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11025 else
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11027 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11028 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11029 $as_echo_n "(cached) " >&6
11030 else
11031 ac_check_lib_save_LIBS=$LIBS
11032 LIBS="-lsvld $LIBS"
11033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11034 /* end confdefs.h. */
11035
11036 /* Override any GCC internal prototype to avoid an error.
11037 Use char because int might match the return type of a GCC
11038 builtin and then its argument prototype would still apply. */
11039 #ifdef __cplusplus
11040 extern "C"
11041 #endif
11042 char dlopen ();
11043 int
11044 main ()
11045 {
11046 return dlopen ();
11047 ;
11048 return 0;
11049 }
11050 _ACEOF
11051 if ac_fn_c_try_link "$LINENO"; then :
11052 ac_cv_lib_svld_dlopen=yes
11053 else
11054 ac_cv_lib_svld_dlopen=no
11055 fi
11056 rm -f core conftest.err conftest.$ac_objext \
11057 conftest$ac_exeext conftest.$ac_ext
11058 LIBS=$ac_check_lib_save_LIBS
11059 fi
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11061 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11062 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11063 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11064 else
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11066 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11067 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11068 $as_echo_n "(cached) " >&6
11069 else
11070 ac_check_lib_save_LIBS=$LIBS
11071 LIBS="-ldld $LIBS"
11072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11073 /* end confdefs.h. */
11074
11075 /* Override any GCC internal prototype to avoid an error.
11076 Use char because int might match the return type of a GCC
11077 builtin and then its argument prototype would still apply. */
11078 #ifdef __cplusplus
11079 extern "C"
11080 #endif
11081 char dld_link ();
11082 int
11083 main ()
11084 {
11085 return dld_link ();
11086 ;
11087 return 0;
11088 }
11089 _ACEOF
11090 if ac_fn_c_try_link "$LINENO"; then :
11091 ac_cv_lib_dld_dld_link=yes
11092 else
11093 ac_cv_lib_dld_dld_link=no
11094 fi
11095 rm -f core conftest.err conftest.$ac_objext \
11096 conftest$ac_exeext conftest.$ac_ext
11097 LIBS=$ac_check_lib_save_LIBS
11098 fi
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11100 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11101 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11102 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11103 fi
11104
11105
11106 fi
11107
11108
11109 fi
11110
11111
11112 fi
11113
11114
11115 fi
11116
11117
11118 fi
11119
11120 ;;
11121 esac
11122
11123 if test "x$lt_cv_dlopen" != xno; then
11124 enable_dlopen=yes
11125 else
11126 enable_dlopen=no
11127 fi
11128
11129 case $lt_cv_dlopen in
11130 dlopen)
11131 save_CPPFLAGS="$CPPFLAGS"
11132 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11133
11134 save_LDFLAGS="$LDFLAGS"
11135 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11136
11137 save_LIBS="$LIBS"
11138 LIBS="$lt_cv_dlopen_libs $LIBS"
11139
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11141 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11142 if test "${lt_cv_dlopen_self+set}" = set; then :
11143 $as_echo_n "(cached) " >&6
11144 else
11145 if test "$cross_compiling" = yes; then :
11146 lt_cv_dlopen_self=cross
11147 else
11148 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11149 lt_status=$lt_dlunknown
11150 cat > conftest.$ac_ext <<_LT_EOF
11151 #line 11151 "configure"
11152 #include "confdefs.h"
11153
11154 #if HAVE_DLFCN_H
11155 #include <dlfcn.h>
11156 #endif
11157
11158 #include <stdio.h>
11159
11160 #ifdef RTLD_GLOBAL
11161 # define LT_DLGLOBAL RTLD_GLOBAL
11162 #else
11163 # ifdef DL_GLOBAL
11164 # define LT_DLGLOBAL DL_GLOBAL
11165 # else
11166 # define LT_DLGLOBAL 0
11167 # endif
11168 #endif
11169
11170 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11171 find out it does not work in some platform. */
11172 #ifndef LT_DLLAZY_OR_NOW
11173 # ifdef RTLD_LAZY
11174 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11175 # else
11176 # ifdef DL_LAZY
11177 # define LT_DLLAZY_OR_NOW DL_LAZY
11178 # else
11179 # ifdef RTLD_NOW
11180 # define LT_DLLAZY_OR_NOW RTLD_NOW
11181 # else
11182 # ifdef DL_NOW
11183 # define LT_DLLAZY_OR_NOW DL_NOW
11184 # else
11185 # define LT_DLLAZY_OR_NOW 0
11186 # endif
11187 # endif
11188 # endif
11189 # endif
11190 #endif
11191
11192 /* When -fvisbility=hidden is used, assume the code has been annotated
11193 correspondingly for the symbols needed. */
11194 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11195 void fnord () __attribute__((visibility("default")));
11196 #endif
11197
11198 void fnord () { int i=42; }
11199 int main ()
11200 {
11201 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11202 int status = $lt_dlunknown;
11203
11204 if (self)
11205 {
11206 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11207 else
11208 {
11209 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11210 else puts (dlerror ());
11211 }
11212 /* dlclose (self); */
11213 }
11214 else
11215 puts (dlerror ());
11216
11217 return status;
11218 }
11219 _LT_EOF
11220 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11221 (eval $ac_link) 2>&5
11222 ac_status=$?
11223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11224 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11225 (./conftest; exit; ) >&5 2>/dev/null
11226 lt_status=$?
11227 case x$lt_status in
11228 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11229 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11230 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11231 esac
11232 else :
11233 # compilation failed
11234 lt_cv_dlopen_self=no
11235 fi
11236 fi
11237 rm -fr conftest*
11238
11239
11240 fi
11241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11242 $as_echo "$lt_cv_dlopen_self" >&6; }
11243
11244 if test "x$lt_cv_dlopen_self" = xyes; then
11245 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11247 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11248 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11249 $as_echo_n "(cached) " >&6
11250 else
11251 if test "$cross_compiling" = yes; then :
11252 lt_cv_dlopen_self_static=cross
11253 else
11254 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11255 lt_status=$lt_dlunknown
11256 cat > conftest.$ac_ext <<_LT_EOF
11257 #line 11257 "configure"
11258 #include "confdefs.h"
11259
11260 #if HAVE_DLFCN_H
11261 #include <dlfcn.h>
11262 #endif
11263
11264 #include <stdio.h>
11265
11266 #ifdef RTLD_GLOBAL
11267 # define LT_DLGLOBAL RTLD_GLOBAL
11268 #else
11269 # ifdef DL_GLOBAL
11270 # define LT_DLGLOBAL DL_GLOBAL
11271 # else
11272 # define LT_DLGLOBAL 0
11273 # endif
11274 #endif
11275
11276 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11277 find out it does not work in some platform. */
11278 #ifndef LT_DLLAZY_OR_NOW
11279 # ifdef RTLD_LAZY
11280 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11281 # else
11282 # ifdef DL_LAZY
11283 # define LT_DLLAZY_OR_NOW DL_LAZY
11284 # else
11285 # ifdef RTLD_NOW
11286 # define LT_DLLAZY_OR_NOW RTLD_NOW
11287 # else
11288 # ifdef DL_NOW
11289 # define LT_DLLAZY_OR_NOW DL_NOW
11290 # else
11291 # define LT_DLLAZY_OR_NOW 0
11292 # endif
11293 # endif
11294 # endif
11295 # endif
11296 #endif
11297
11298 /* When -fvisbility=hidden is used, assume the code has been annotated
11299 correspondingly for the symbols needed. */
11300 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11301 void fnord () __attribute__((visibility("default")));
11302 #endif
11303
11304 void fnord () { int i=42; }
11305 int main ()
11306 {
11307 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11308 int status = $lt_dlunknown;
11309
11310 if (self)
11311 {
11312 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11313 else
11314 {
11315 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11316 else puts (dlerror ());
11317 }
11318 /* dlclose (self); */
11319 }
11320 else
11321 puts (dlerror ());
11322
11323 return status;
11324 }
11325 _LT_EOF
11326 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11327 (eval $ac_link) 2>&5
11328 ac_status=$?
11329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11330 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11331 (./conftest; exit; ) >&5 2>/dev/null
11332 lt_status=$?
11333 case x$lt_status in
11334 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11335 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11336 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11337 esac
11338 else :
11339 # compilation failed
11340 lt_cv_dlopen_self_static=no
11341 fi
11342 fi
11343 rm -fr conftest*
11344
11345
11346 fi
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11348 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11349 fi
11350
11351 CPPFLAGS="$save_CPPFLAGS"
11352 LDFLAGS="$save_LDFLAGS"
11353 LIBS="$save_LIBS"
11354 ;;
11355 esac
11356
11357 case $lt_cv_dlopen_self in
11358 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11359 *) enable_dlopen_self=unknown ;;
11360 esac
11361
11362 case $lt_cv_dlopen_self_static in
11363 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11364 *) enable_dlopen_self_static=unknown ;;
11365 esac
11366 fi
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384 striplib=
11385 old_striplib=
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11387 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11388 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11389 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11390 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11392 $as_echo "yes" >&6; }
11393 else
11394 # FIXME - insert some real tests, host_os isn't really good enough
11395 case $host_os in
11396 darwin*)
11397 if test -n "$STRIP" ; then
11398 striplib="$STRIP -x"
11399 old_striplib="$STRIP -S"
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11401 $as_echo "yes" >&6; }
11402 else
11403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11404 $as_echo "no" >&6; }
11405 fi
11406 ;;
11407 *)
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11409 $as_echo "no" >&6; }
11410 ;;
11411 esac
11412 fi
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425 # Report which library types will actually be built
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11427 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11429 $as_echo "$can_build_shared" >&6; }
11430
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11432 $as_echo_n "checking whether to build shared libraries... " >&6; }
11433 test "$can_build_shared" = "no" && enable_shared=no
11434
11435 # On AIX, shared libraries and static libraries use the same namespace, and
11436 # are all built from PIC.
11437 case $host_os in
11438 aix3*)
11439 test "$enable_shared" = yes && enable_static=no
11440 if test -n "$RANLIB"; then
11441 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11442 postinstall_cmds='$RANLIB $lib'
11443 fi
11444 ;;
11445
11446 aix[4-9]*)
11447 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11448 test "$enable_shared" = yes && enable_static=no
11449 fi
11450 ;;
11451 esac
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11453 $as_echo "$enable_shared" >&6; }
11454
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11456 $as_echo_n "checking whether to build static libraries... " >&6; }
11457 # Make sure either enable_shared or enable_static is yes.
11458 test "$enable_shared" = yes || enable_static=yes
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11460 $as_echo "$enable_static" >&6; }
11461
11462
11463
11464
11465 fi
11466 ac_ext=c
11467 ac_cpp='$CPP $CPPFLAGS'
11468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11471
11472 CC="$lt_save_CC"
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486 ac_config_commands="$ac_config_commands libtool"
11487
11488
11489
11490
11491 # Only expand once:
11492
11493
11494
11495
11496
11497 case $host in
11498 *-cygwin* | *-mingw*)
11499 # 'host' will be top-level target in the case of a target lib,
11500 # we must compare to with_cross_host to decide if this is a native
11501 # or cross-compiler and select where to install dlls appropriately.
11502 if test -n "$with_cross_host" &&
11503 test x"$with_cross_host" != x"no"; then
11504 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
11505 else
11506 lt_host_flags='-no-undefined -bindir "$(bindir)"';
11507 fi
11508 ;;
11509 *)
11510 lt_host_flags=
11511 ;;
11512 esac
11513
11514
11515
11516
11517
11518
11519
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11521 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11522 # Check whether --enable-maintainer-mode was given.
11523 if test "${enable_maintainer_mode+set}" = set; then :
11524 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11525 else
11526 USE_MAINTAINER_MODE=no
11527 fi
11528
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11530 $as_echo "$USE_MAINTAINER_MODE" >&6; }
11531 if test $USE_MAINTAINER_MODE = yes; then
11532 MAINTAINER_MODE_TRUE=
11533 MAINTAINER_MODE_FALSE='#'
11534 else
11535 MAINTAINER_MODE_TRUE='#'
11536 MAINTAINER_MODE_FALSE=
11537 fi
11538
11539 MAINT=$MAINTAINER_MODE_TRUE
11540
11541
11542
11543 # Create a spec file, so that compile/link tests don't fail
11544 test -f libgfortran.spec || touch libgfortran.spec
11545 FCFLAGS="$FCFLAGS -L."
11546
11547 # We need gfortran to compile parts of the library
11548 # We can't use AC_PROG_FC because it expects a fully working gfortran.
11549 #AC_PROG_FC(gfortran)
11550 case `echo $GFORTRAN` in
11551 -* | no* )
11552 FC=no ;;
11553 *)
11554 set dummy $GFORTRAN; ac_word=$2
11555 if test -x "$ac_word"; then
11556 FC="$GFORTRAN"
11557 else
11558 FC=no
11559 fi ;;
11560 esac
11561 ac_ext=${ac_fc_srcext-f}
11562 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
11563 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
11564 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
11565 if test -n "$ac_tool_prefix"; then
11566 for ac_prog in gfortran
11567 do
11568 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11569 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11571 $as_echo_n "checking for $ac_word... " >&6; }
11572 if test "${ac_cv_prog_FC+set}" = set; then :
11573 $as_echo_n "(cached) " >&6
11574 else
11575 if test -n "$FC"; then
11576 ac_cv_prog_FC="$FC" # Let the user override the test.
11577 else
11578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11579 for as_dir in $PATH
11580 do
11581 IFS=$as_save_IFS
11582 test -z "$as_dir" && as_dir=.
11583 for ac_exec_ext in '' $ac_executable_extensions; do
11584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11585 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
11586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11587 break 2
11588 fi
11589 done
11590 done
11591 IFS=$as_save_IFS
11592
11593 fi
11594 fi
11595 FC=$ac_cv_prog_FC
11596 if test -n "$FC"; then
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
11598 $as_echo "$FC" >&6; }
11599 else
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11601 $as_echo "no" >&6; }
11602 fi
11603
11604
11605 test -n "$FC" && break
11606 done
11607 fi
11608 if test -z "$FC"; then
11609 ac_ct_FC=$FC
11610 for ac_prog in gfortran
11611 do
11612 # Extract the first word of "$ac_prog", so it can be a program name with args.
11613 set dummy $ac_prog; ac_word=$2
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11615 $as_echo_n "checking for $ac_word... " >&6; }
11616 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
11617 $as_echo_n "(cached) " >&6
11618 else
11619 if test -n "$ac_ct_FC"; then
11620 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
11621 else
11622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11623 for as_dir in $PATH
11624 do
11625 IFS=$as_save_IFS
11626 test -z "$as_dir" && as_dir=.
11627 for ac_exec_ext in '' $ac_executable_extensions; do
11628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11629 ac_cv_prog_ac_ct_FC="$ac_prog"
11630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11631 break 2
11632 fi
11633 done
11634 done
11635 IFS=$as_save_IFS
11636
11637 fi
11638 fi
11639 ac_ct_FC=$ac_cv_prog_ac_ct_FC
11640 if test -n "$ac_ct_FC"; then
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
11642 $as_echo "$ac_ct_FC" >&6; }
11643 else
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11645 $as_echo "no" >&6; }
11646 fi
11647
11648
11649 test -n "$ac_ct_FC" && break
11650 done
11651
11652 if test "x$ac_ct_FC" = x; then
11653 FC=""
11654 else
11655 case $cross_compiling:$ac_tool_warned in
11656 yes:)
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11658 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11659 ac_tool_warned=yes ;;
11660 esac
11661 FC=$ac_ct_FC
11662 fi
11663 fi
11664
11665
11666 # Provide some information about the compiler.
11667 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
11668 set X $ac_compile
11669 ac_compiler=$2
11670 for ac_option in --version -v -V -qversion; do
11671 { { ac_try="$ac_compiler $ac_option >&5"
11672 case "(($ac_try" in
11673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11674 *) ac_try_echo=$ac_try;;
11675 esac
11676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11677 $as_echo "$ac_try_echo"; } >&5
11678 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11679 ac_status=$?
11680 if test -s conftest.err; then
11681 sed '10a\
11682 ... rest of stderr output deleted ...
11683 10q' conftest.err >conftest.er1
11684 cat conftest.er1 >&5
11685 rm -f conftest.er1 conftest.err
11686 fi
11687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11688 test $ac_status = 0; }
11689 done
11690 rm -f a.out
11691
11692 # If we don't use `.F' as extension, the preprocessor is not run on the
11693 # input file. (Note that this only needs to work for GNU compilers.)
11694 ac_save_ext=$ac_ext
11695 ac_ext=F
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
11697 $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
11698 if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
11699 $as_echo_n "(cached) " >&6
11700 else
11701 cat > conftest.$ac_ext <<_ACEOF
11702 program main
11703 #ifndef __GNUC__
11704 choke me
11705 #endif
11706
11707 end
11708 _ACEOF
11709 if ac_fn_fc_try_compile "$LINENO"; then :
11710 ac_compiler_gnu=yes
11711 else
11712 ac_compiler_gnu=no
11713 fi
11714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11715 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
11716
11717 fi
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
11719 $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
11720 ac_ext=$ac_save_ext
11721 ac_test_FCFLAGS=${FCFLAGS+set}
11722 ac_save_FCFLAGS=$FCFLAGS
11723 FCFLAGS=
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
11725 $as_echo_n "checking whether $FC accepts -g... " >&6; }
11726 if test "${ac_cv_prog_fc_g+set}" = set; then :
11727 $as_echo_n "(cached) " >&6
11728 else
11729 FCFLAGS=-g
11730 cat > conftest.$ac_ext <<_ACEOF
11731 program main
11732
11733 end
11734 _ACEOF
11735 if ac_fn_fc_try_compile "$LINENO"; then :
11736 ac_cv_prog_fc_g=yes
11737 else
11738 ac_cv_prog_fc_g=no
11739 fi
11740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11741
11742 fi
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
11744 $as_echo "$ac_cv_prog_fc_g" >&6; }
11745 if test "$ac_test_FCFLAGS" = set; then
11746 FCFLAGS=$ac_save_FCFLAGS
11747 elif test $ac_cv_prog_fc_g = yes; then
11748 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
11749 FCFLAGS="-g -O2"
11750 else
11751 FCFLAGS="-g"
11752 fi
11753 else
11754 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
11755 FCFLAGS="-O2"
11756 else
11757 FCFLAGS=
11758 fi
11759 fi
11760
11761 ac_ext=c
11762 ac_cpp='$CPP $CPPFLAGS'
11763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11766
11767 ac_ext=${ac_fc_srcext-f}
11768 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
11769 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
11770 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
11771
11772
11773 if test -z "$FC" || test "X$FC" = "Xno"; then
11774 _lt_disable_FC=yes
11775 fi
11776
11777 archive_cmds_need_lc_FC=no
11778 allow_undefined_flag_FC=
11779 always_export_symbols_FC=no
11780 archive_expsym_cmds_FC=
11781 export_dynamic_flag_spec_FC=
11782 hardcode_direct_FC=no
11783 hardcode_direct_absolute_FC=no
11784 hardcode_libdir_flag_spec_FC=
11785 hardcode_libdir_flag_spec_ld_FC=
11786 hardcode_libdir_separator_FC=
11787 hardcode_minus_L_FC=no
11788 hardcode_automatic_FC=no
11789 inherit_rpath_FC=no
11790 module_cmds_FC=
11791 module_expsym_cmds_FC=
11792 link_all_deplibs_FC=unknown
11793 old_archive_cmds_FC=$old_archive_cmds
11794 reload_flag_FC=$reload_flag
11795 reload_cmds_FC=$reload_cmds
11796 no_undefined_flag_FC=
11797 whole_archive_flag_spec_FC=
11798 enable_shared_with_static_runtimes_FC=no
11799
11800 # Source file extension for fc test sources.
11801 ac_ext=${ac_fc_srcext-f}
11802
11803 # Object file extension for compiled fc test sources.
11804 objext=o
11805 objext_FC=$objext
11806
11807 # No sense in running all these tests if we already determined that
11808 # the FC compiler isn't working. Some variables (like enable_shared)
11809 # are currently assumed to apply to all compilers on this platform,
11810 # and will be corrupted by setting them based on a non-working compiler.
11811 if test "$_lt_disable_FC" != yes; then
11812 # Code to be used in simple compile tests
11813 lt_simple_compile_test_code="\
11814 subroutine t
11815 return
11816 end
11817 "
11818
11819 # Code to be used in simple link tests
11820 lt_simple_link_test_code="\
11821 program t
11822 end
11823 "
11824
11825 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11826
11827
11828
11829
11830
11831
11832 # If no C compiler was specified, use CC.
11833 LTCC=${LTCC-"$CC"}
11834
11835 # If no C compiler flags were specified, use CFLAGS.
11836 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11837
11838 # Allow CC to be a program name with arguments.
11839 compiler=$CC
11840
11841
11842 # save warnings/boilerplate of simple test code
11843 ac_outfile=conftest.$ac_objext
11844 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11845 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11846 _lt_compiler_boilerplate=`cat conftest.err`
11847 $RM conftest*
11848
11849 ac_outfile=conftest.$ac_objext
11850 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11851 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11852 _lt_linker_boilerplate=`cat conftest.err`
11853 $RM -r conftest*
11854
11855
11856 # Allow CC to be a program name with arguments.
11857 lt_save_CC="$CC"
11858 lt_save_GCC=$GCC
11859 CC=${FC-"f95"}
11860 compiler=$CC
11861 GCC=$ac_cv_fc_compiler_gnu
11862
11863 compiler_FC=$CC
11864 for cc_temp in $compiler""; do
11865 case $cc_temp in
11866 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11867 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11868 \-*) ;;
11869 *) break;;
11870 esac
11871 done
11872 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11873
11874
11875 if test -n "$compiler"; then
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11877 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11879 $as_echo "$can_build_shared" >&6; }
11880
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11882 $as_echo_n "checking whether to build shared libraries... " >&6; }
11883 test "$can_build_shared" = "no" && enable_shared=no
11884
11885 # On AIX, shared libraries and static libraries use the same namespace, and
11886 # are all built from PIC.
11887 case $host_os in
11888 aix3*)
11889 test "$enable_shared" = yes && enable_static=no
11890 if test -n "$RANLIB"; then
11891 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11892 postinstall_cmds='$RANLIB $lib'
11893 fi
11894 ;;
11895 aix[4-9]*)
11896 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11897 test "$enable_shared" = yes && enable_static=no
11898 fi
11899 ;;
11900 esac
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11902 $as_echo "$enable_shared" >&6; }
11903
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11905 $as_echo_n "checking whether to build static libraries... " >&6; }
11906 # Make sure either enable_shared or enable_static is yes.
11907 test "$enable_shared" = yes || enable_static=yes
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11909 $as_echo "$enable_static" >&6; }
11910
11911 GCC_FC="$ac_cv_fc_compiler_gnu"
11912 LD_FC="$LD"
11913
11914 ## CAVEAT EMPTOR:
11915 ## There is no encapsulation within the following macros, do not change
11916 ## the running order or otherwise move them around unless you know exactly
11917 ## what you are doing...
11918 # Dependencies to place before and after the object being linked:
11919 predep_objects_FC=
11920 postdep_objects_FC=
11921 predeps_FC=
11922 postdeps_FC=
11923 compiler_lib_search_path_FC=
11924
11925 cat > conftest.$ac_ext <<_LT_EOF
11926 subroutine foo
11927 implicit none
11928 integer a
11929 a=0
11930 return
11931 end
11932 _LT_EOF
11933
11934 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11935 (eval $ac_compile) 2>&5
11936 ac_status=$?
11937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11938 test $ac_status = 0; }; then
11939 # Parse the compiler output and extract the necessary
11940 # objects, libraries and library flags.
11941
11942 # Sentinel used to keep track of whether or not we are before
11943 # the conftest object file.
11944 pre_test_object_deps_done=no
11945
11946 for p in `eval "$output_verbose_link_cmd"`; do
11947 case $p in
11948
11949 -L* | -R* | -l*)
11950 # Some compilers place space between "-{L,R}" and the path.
11951 # Remove the space.
11952 if test $p = "-L" ||
11953 test $p = "-R"; then
11954 prev=$p
11955 continue
11956 else
11957 prev=
11958 fi
11959
11960 if test "$pre_test_object_deps_done" = no; then
11961 case $p in
11962 -L* | -R*)
11963 # Internal compiler library paths should come after those
11964 # provided the user. The postdeps already come after the
11965 # user supplied libs so there is no need to process them.
11966 if test -z "$compiler_lib_search_path_FC"; then
11967 compiler_lib_search_path_FC="${prev}${p}"
11968 else
11969 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
11970 fi
11971 ;;
11972 # The "-l" case would never come before the object being
11973 # linked, so don't bother handling this case.
11974 esac
11975 else
11976 if test -z "$postdeps_FC"; then
11977 postdeps_FC="${prev}${p}"
11978 else
11979 postdeps_FC="${postdeps_FC} ${prev}${p}"
11980 fi
11981 fi
11982 ;;
11983
11984 *.$objext)
11985 # This assumes that the test object file only shows up
11986 # once in the compiler output.
11987 if test "$p" = "conftest.$objext"; then
11988 pre_test_object_deps_done=yes
11989 continue
11990 fi
11991
11992 if test "$pre_test_object_deps_done" = no; then
11993 if test -z "$predep_objects_FC"; then
11994 predep_objects_FC="$p"
11995 else
11996 predep_objects_FC="$predep_objects_FC $p"
11997 fi
11998 else
11999 if test -z "$postdep_objects_FC"; then
12000 postdep_objects_FC="$p"
12001 else
12002 postdep_objects_FC="$postdep_objects_FC $p"
12003 fi
12004 fi
12005 ;;
12006
12007 *) ;; # Ignore the rest.
12008
12009 esac
12010 done
12011
12012 # Clean up.
12013 rm -f a.out a.exe
12014 else
12015 echo "libtool.m4: error: problem compiling FC test program"
12016 fi
12017
12018 $RM -f confest.$objext
12019
12020 # PORTME: override above test on systems where it is broken
12021
12022
12023 case " $postdeps_FC " in
12024 *" -lc "*) archive_cmds_need_lc_FC=no ;;
12025 esac
12026 compiler_lib_search_dirs_FC=
12027 if test -n "${compiler_lib_search_path_FC}"; then
12028 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12029 fi
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061 lt_prog_compiler_wl_FC=
12062 lt_prog_compiler_pic_FC=
12063 lt_prog_compiler_static_FC=
12064
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12066 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12067
12068 if test "$GCC" = yes; then
12069 lt_prog_compiler_wl_FC='-Wl,'
12070 lt_prog_compiler_static_FC='-static'
12071
12072 case $host_os in
12073 aix*)
12074 # All AIX code is PIC.
12075 if test "$host_cpu" = ia64; then
12076 # AIX 5 now supports IA64 processor
12077 lt_prog_compiler_static_FC='-Bstatic'
12078 fi
12079 lt_prog_compiler_pic_FC='-fPIC'
12080 ;;
12081
12082 amigaos*)
12083 case $host_cpu in
12084 powerpc)
12085 # see comment about AmigaOS4 .so support
12086 lt_prog_compiler_pic_FC='-fPIC'
12087 ;;
12088 m68k)
12089 # FIXME: we need at least 68020 code to build shared libraries, but
12090 # adding the `-m68020' flag to GCC prevents building anything better,
12091 # like `-m68040'.
12092 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
12093 ;;
12094 esac
12095 ;;
12096
12097 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12098 # PIC is the default for these OSes.
12099 ;;
12100
12101 mingw* | cygwin* | pw32* | os2* | cegcc*)
12102 # This hack is so that the source file can tell whether it is being
12103 # built for inclusion in a dll (and should export symbols for example).
12104 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12105 # (--disable-auto-import) libraries
12106 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
12107 ;;
12108
12109 darwin* | rhapsody*)
12110 # PIC is the default on this platform
12111 # Common symbols not allowed in MH_DYLIB files
12112 lt_prog_compiler_pic_FC='-fno-common'
12113 ;;
12114
12115 haiku*)
12116 # PIC is the default for Haiku.
12117 # The "-static" flag exists, but is broken.
12118 lt_prog_compiler_static_FC=
12119 ;;
12120
12121 hpux*)
12122 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12123 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12124 # sets the default TLS model and affects inlining.
12125 case $host_cpu in
12126 hppa*64*)
12127 # +Z the default
12128 ;;
12129 *)
12130 lt_prog_compiler_pic_FC='-fPIC'
12131 ;;
12132 esac
12133 ;;
12134
12135 interix[3-9]*)
12136 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12137 # Instead, we relocate shared libraries at runtime.
12138 ;;
12139
12140 msdosdjgpp*)
12141 # Just because we use GCC doesn't mean we suddenly get shared libraries
12142 # on systems that don't support them.
12143 lt_prog_compiler_can_build_shared_FC=no
12144 enable_shared=no
12145 ;;
12146
12147 *nto* | *qnx*)
12148 # QNX uses GNU C++, but need to define -shared option too, otherwise
12149 # it will coredump.
12150 lt_prog_compiler_pic_FC='-fPIC -shared'
12151 ;;
12152
12153 sysv4*MP*)
12154 if test -d /usr/nec; then
12155 lt_prog_compiler_pic_FC=-Kconform_pic
12156 fi
12157 ;;
12158
12159 *)
12160 lt_prog_compiler_pic_FC='-fPIC'
12161 ;;
12162 esac
12163
12164 case $cc_basename in
12165 nvcc*) # Cuda Compiler Driver 2.2
12166 lt_prog_compiler_wl_FC='-Xlinker '
12167 lt_prog_compiler_pic_FC='-Xcompiler -fPIC'
12168 ;;
12169 esac
12170 else
12171 # PORTME Check for flag to pass linker flags through the system compiler.
12172 case $host_os in
12173 aix*)
12174 lt_prog_compiler_wl_FC='-Wl,'
12175 if test "$host_cpu" = ia64; then
12176 # AIX 5 now supports IA64 processor
12177 lt_prog_compiler_static_FC='-Bstatic'
12178 else
12179 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
12180 fi
12181 ;;
12182
12183 mingw* | cygwin* | pw32* | os2* | cegcc*)
12184 # This hack is so that the source file can tell whether it is being
12185 # built for inclusion in a dll (and should export symbols for example).
12186 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
12187 ;;
12188
12189 hpux9* | hpux10* | hpux11*)
12190 lt_prog_compiler_wl_FC='-Wl,'
12191 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12192 # not for PA HP-UX.
12193 case $host_cpu in
12194 hppa*64*|ia64*)
12195 # +Z the default
12196 ;;
12197 *)
12198 lt_prog_compiler_pic_FC='+Z'
12199 ;;
12200 esac
12201 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12202 lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
12203 ;;
12204
12205 irix5* | irix6* | nonstopux*)
12206 lt_prog_compiler_wl_FC='-Wl,'
12207 # PIC (with -KPIC) is the default.
12208 lt_prog_compiler_static_FC='-non_shared'
12209 ;;
12210
12211 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12212 case $cc_basename in
12213 # old Intel for x86_64 which still supported -KPIC.
12214 ecc*)
12215 lt_prog_compiler_wl_FC='-Wl,'
12216 lt_prog_compiler_pic_FC='-KPIC'
12217 lt_prog_compiler_static_FC='-static'
12218 ;;
12219 # icc used to be incompatible with GCC.
12220 # ICC 10 doesn't accept -KPIC any more.
12221 icc* | ifort*)
12222 lt_prog_compiler_wl_FC='-Wl,'
12223 lt_prog_compiler_pic_FC='-fPIC'
12224 lt_prog_compiler_static_FC='-static'
12225 ;;
12226 # Lahey Fortran 8.1.
12227 lf95*)
12228 lt_prog_compiler_wl_FC='-Wl,'
12229 lt_prog_compiler_pic_FC='--shared'
12230 lt_prog_compiler_static_FC='--static'
12231 ;;
12232 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12233 # Portland Group compilers (*not* the Pentium gcc compiler,
12234 # which looks to be a dead project)
12235 lt_prog_compiler_wl_FC='-Wl,'
12236 lt_prog_compiler_pic_FC='-fpic'
12237 lt_prog_compiler_static_FC='-Bstatic'
12238 ;;
12239 ccc*)
12240 lt_prog_compiler_wl_FC='-Wl,'
12241 # All Alpha code is PIC.
12242 lt_prog_compiler_static_FC='-non_shared'
12243 ;;
12244 xl* | bgxl* | bgf* | mpixl*)
12245 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12246 lt_prog_compiler_wl_FC='-Wl,'
12247 lt_prog_compiler_pic_FC='-qpic'
12248 lt_prog_compiler_static_FC='-qstaticlink'
12249 ;;
12250 *)
12251 case `$CC -V 2>&1 | sed 5q` in
12252 *Sun\ F* | *Sun*Fortran*)
12253 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12254 lt_prog_compiler_pic_FC='-KPIC'
12255 lt_prog_compiler_static_FC='-Bstatic'
12256 lt_prog_compiler_wl_FC=''
12257 ;;
12258 *Sun\ C*)
12259 # Sun C 5.9
12260 lt_prog_compiler_pic_FC='-KPIC'
12261 lt_prog_compiler_static_FC='-Bstatic'
12262 lt_prog_compiler_wl_FC='-Wl,'
12263 ;;
12264 esac
12265 ;;
12266 esac
12267 ;;
12268
12269 newsos6)
12270 lt_prog_compiler_pic_FC='-KPIC'
12271 lt_prog_compiler_static_FC='-Bstatic'
12272 ;;
12273
12274 *nto* | *qnx*)
12275 # QNX uses GNU C++, but need to define -shared option too, otherwise
12276 # it will coredump.
12277 lt_prog_compiler_pic_FC='-fPIC -shared'
12278 ;;
12279
12280 osf3* | osf4* | osf5*)
12281 lt_prog_compiler_wl_FC='-Wl,'
12282 # All OSF/1 code is PIC.
12283 lt_prog_compiler_static_FC='-non_shared'
12284 ;;
12285
12286 rdos*)
12287 lt_prog_compiler_static_FC='-non_shared'
12288 ;;
12289
12290 solaris*)
12291 lt_prog_compiler_pic_FC='-KPIC'
12292 lt_prog_compiler_static_FC='-Bstatic'
12293 case $cc_basename in
12294 f77* | f90* | f95*)
12295 lt_prog_compiler_wl_FC='-Qoption ld ';;
12296 *)
12297 lt_prog_compiler_wl_FC='-Wl,';;
12298 esac
12299 ;;
12300
12301 sunos4*)
12302 lt_prog_compiler_wl_FC='-Qoption ld '
12303 lt_prog_compiler_pic_FC='-PIC'
12304 lt_prog_compiler_static_FC='-Bstatic'
12305 ;;
12306
12307 sysv4 | sysv4.2uw2* | sysv4.3*)
12308 lt_prog_compiler_wl_FC='-Wl,'
12309 lt_prog_compiler_pic_FC='-KPIC'
12310 lt_prog_compiler_static_FC='-Bstatic'
12311 ;;
12312
12313 sysv4*MP*)
12314 if test -d /usr/nec ;then
12315 lt_prog_compiler_pic_FC='-Kconform_pic'
12316 lt_prog_compiler_static_FC='-Bstatic'
12317 fi
12318 ;;
12319
12320 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12321 lt_prog_compiler_wl_FC='-Wl,'
12322 lt_prog_compiler_pic_FC='-KPIC'
12323 lt_prog_compiler_static_FC='-Bstatic'
12324 ;;
12325
12326 unicos*)
12327 lt_prog_compiler_wl_FC='-Wl,'
12328 lt_prog_compiler_can_build_shared_FC=no
12329 ;;
12330
12331 uts4*)
12332 lt_prog_compiler_pic_FC='-pic'
12333 lt_prog_compiler_static_FC='-Bstatic'
12334 ;;
12335
12336 *)
12337 lt_prog_compiler_can_build_shared_FC=no
12338 ;;
12339 esac
12340 fi
12341
12342 case $host_os in
12343 # For platforms which do not support PIC, -DPIC is meaningless:
12344 *djgpp*)
12345 lt_prog_compiler_pic_FC=
12346 ;;
12347 *)
12348 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
12349 ;;
12350 esac
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
12352 $as_echo "$lt_prog_compiler_pic_FC" >&6; }
12353
12354
12355
12356 #
12357 # Check to make sure the PIC flag actually works.
12358 #
12359 if test -n "$lt_prog_compiler_pic_FC"; then
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
12361 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
12362 if test "${lt_cv_prog_compiler_pic_works_FC+set}" = set; then :
12363 $as_echo_n "(cached) " >&6
12364 else
12365 lt_cv_prog_compiler_pic_works_FC=no
12366 ac_outfile=conftest.$ac_objext
12367 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12368 lt_compiler_flag="$lt_prog_compiler_pic_FC"
12369 # Insert the option either (1) after the last *FLAGS variable, or
12370 # (2) before a word containing "conftest.", or (3) at the end.
12371 # Note that $ac_compile itself does not contain backslashes and begins
12372 # with a dollar sign (not a hyphen), so the echo should work correctly.
12373 # The option is referenced via a variable to avoid confusing sed.
12374 lt_compile=`echo "$ac_compile" | $SED \
12375 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12376 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12377 -e 's:$: $lt_compiler_flag:'`
12378 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12379 (eval "$lt_compile" 2>conftest.err)
12380 ac_status=$?
12381 cat conftest.err >&5
12382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12383 if (exit $ac_status) && test -s "$ac_outfile"; then
12384 # The compiler can only warn and ignore the option if not recognized
12385 # So say no if there are warnings other than the usual output.
12386 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12387 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12388 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12389 lt_cv_prog_compiler_pic_works_FC=yes
12390 fi
12391 fi
12392 $RM conftest*
12393
12394 fi
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
12396 $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
12397
12398 if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
12399 case $lt_prog_compiler_pic_FC in
12400 "" | " "*) ;;
12401 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
12402 esac
12403 else
12404 lt_prog_compiler_pic_FC=
12405 lt_prog_compiler_can_build_shared_FC=no
12406 fi
12407
12408 fi
12409
12410
12411
12412 #
12413 # Check to make sure the static flag actually works.
12414 #
12415 wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12417 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12418 if test "${lt_cv_prog_compiler_static_works_FC+set}" = set; then :
12419 $as_echo_n "(cached) " >&6
12420 else
12421 lt_cv_prog_compiler_static_works_FC=no
12422 save_LDFLAGS="$LDFLAGS"
12423 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12424 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12425 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12426 # The linker can only warn and ignore the option if not recognized
12427 # So say no if there are warnings
12428 if test -s conftest.err; then
12429 # Append any errors to the config.log.
12430 cat conftest.err 1>&5
12431 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12432 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12433 if diff conftest.exp conftest.er2 >/dev/null; then
12434 lt_cv_prog_compiler_static_works_FC=yes
12435 fi
12436 else
12437 lt_cv_prog_compiler_static_works_FC=yes
12438 fi
12439 fi
12440 $RM -r conftest*
12441 LDFLAGS="$save_LDFLAGS"
12442
12443 fi
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
12445 $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
12446
12447 if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
12448 :
12449 else
12450 lt_prog_compiler_static_FC=
12451 fi
12452
12453
12454
12455
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12457 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12458 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
12459 $as_echo_n "(cached) " >&6
12460 else
12461 lt_cv_prog_compiler_c_o_FC=no
12462 $RM -r conftest 2>/dev/null
12463 mkdir conftest
12464 cd conftest
12465 mkdir out
12466 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12467
12468 lt_compiler_flag="-o out/conftest2.$ac_objext"
12469 # Insert the option either (1) after the last *FLAGS variable, or
12470 # (2) before a word containing "conftest.", or (3) at the end.
12471 # Note that $ac_compile itself does not contain backslashes and begins
12472 # with a dollar sign (not a hyphen), so the echo should work correctly.
12473 lt_compile=`echo "$ac_compile" | $SED \
12474 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12475 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12476 -e 's:$: $lt_compiler_flag:'`
12477 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12478 (eval "$lt_compile" 2>out/conftest.err)
12479 ac_status=$?
12480 cat out/conftest.err >&5
12481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12482 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12483 then
12484 # The compiler can only warn and ignore the option if not recognized
12485 # So say no if there are warnings
12486 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12487 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12488 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12489 lt_cv_prog_compiler_c_o_FC=yes
12490 fi
12491 fi
12492 chmod u+w . 2>&5
12493 $RM conftest*
12494 # SGI C++ compiler will create directory out/ii_files/ for
12495 # template instantiation
12496 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12497 $RM out/* && rmdir out
12498 cd ..
12499 $RM -r conftest
12500 $RM conftest*
12501
12502 fi
12503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12504 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12505
12506
12507
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12509 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12510 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
12511 $as_echo_n "(cached) " >&6
12512 else
12513 lt_cv_prog_compiler_c_o_FC=no
12514 $RM -r conftest 2>/dev/null
12515 mkdir conftest
12516 cd conftest
12517 mkdir out
12518 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12519
12520 lt_compiler_flag="-o out/conftest2.$ac_objext"
12521 # Insert the option either (1) after the last *FLAGS variable, or
12522 # (2) before a word containing "conftest.", or (3) at the end.
12523 # Note that $ac_compile itself does not contain backslashes and begins
12524 # with a dollar sign (not a hyphen), so the echo should work correctly.
12525 lt_compile=`echo "$ac_compile" | $SED \
12526 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12527 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12528 -e 's:$: $lt_compiler_flag:'`
12529 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12530 (eval "$lt_compile" 2>out/conftest.err)
12531 ac_status=$?
12532 cat out/conftest.err >&5
12533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12534 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12535 then
12536 # The compiler can only warn and ignore the option if not recognized
12537 # So say no if there are warnings
12538 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12539 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12540 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12541 lt_cv_prog_compiler_c_o_FC=yes
12542 fi
12543 fi
12544 chmod u+w . 2>&5
12545 $RM conftest*
12546 # SGI C++ compiler will create directory out/ii_files/ for
12547 # template instantiation
12548 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12549 $RM out/* && rmdir out
12550 cd ..
12551 $RM -r conftest
12552 $RM conftest*
12553
12554 fi
12555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12556 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12557
12558
12559
12560
12561 hard_links="nottested"
12562 if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
12563 # do not overwrite the value of need_locks provided by the user
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12565 $as_echo_n "checking if we can lock with hard links... " >&6; }
12566 hard_links=yes
12567 $RM conftest*
12568 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12569 touch conftest.a
12570 ln conftest.a conftest.b 2>&5 || hard_links=no
12571 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12573 $as_echo "$hard_links" >&6; }
12574 if test "$hard_links" = no; then
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12576 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12577 need_locks=warn
12578 fi
12579 else
12580 need_locks=no
12581 fi
12582
12583
12584
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12586 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12587
12588 runpath_var=
12589 allow_undefined_flag_FC=
12590 always_export_symbols_FC=no
12591 archive_cmds_FC=
12592 archive_expsym_cmds_FC=
12593 compiler_needs_object_FC=no
12594 enable_shared_with_static_runtimes_FC=no
12595 export_dynamic_flag_spec_FC=
12596 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12597 hardcode_automatic_FC=no
12598 hardcode_direct_FC=no
12599 hardcode_direct_absolute_FC=no
12600 hardcode_libdir_flag_spec_FC=
12601 hardcode_libdir_flag_spec_ld_FC=
12602 hardcode_libdir_separator_FC=
12603 hardcode_minus_L_FC=no
12604 hardcode_shlibpath_var_FC=unsupported
12605 inherit_rpath_FC=no
12606 link_all_deplibs_FC=unknown
12607 module_cmds_FC=
12608 module_expsym_cmds_FC=
12609 old_archive_from_new_cmds_FC=
12610 old_archive_from_expsyms_cmds_FC=
12611 thread_safe_flag_spec_FC=
12612 whole_archive_flag_spec_FC=
12613 # include_expsyms should be a list of space-separated symbols to be *always*
12614 # included in the symbol list
12615 include_expsyms_FC=
12616 # exclude_expsyms can be an extended regexp of symbols to exclude
12617 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12618 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12619 # as well as any symbol that contains `d'.
12620 exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12621 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12622 # platforms (ab)use it in PIC code, but their linkers get confused if
12623 # the symbol is explicitly referenced. Since portable code cannot
12624 # rely on this symbol name, it's probably fine to never include it in
12625 # preloaded symbol tables.
12626 # Exclude shared library initialization/finalization symbols.
12627 extract_expsyms_cmds=
12628
12629 case $host_os in
12630 cygwin* | mingw* | pw32* | cegcc*)
12631 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12632 # When not using gcc, we currently assume that we are using
12633 # Microsoft Visual C++.
12634 if test "$GCC" != yes; then
12635 with_gnu_ld=no
12636 fi
12637 ;;
12638 interix*)
12639 # we just hope/assume this is gcc and not c89 (= MSVC++)
12640 with_gnu_ld=yes
12641 ;;
12642 openbsd*)
12643 with_gnu_ld=no
12644 ;;
12645 esac
12646
12647 ld_shlibs_FC=yes
12648
12649 # On some targets, GNU ld is compatible enough with the native linker
12650 # that we're better off using the native interface for both.
12651 lt_use_gnu_ld_interface=no
12652 if test "$with_gnu_ld" = yes; then
12653 case $host_os in
12654 aix*)
12655 # The AIX port of GNU ld has always aspired to compatibility
12656 # with the native linker. However, as the warning in the GNU ld
12657 # block says, versions before 2.19.5* couldn't really create working
12658 # shared libraries, regardless of the interface used.
12659 case `$LD -v 2>&1` in
12660 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12661 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12662 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12663 *)
12664 lt_use_gnu_ld_interface=yes
12665 ;;
12666 esac
12667 ;;
12668 *)
12669 lt_use_gnu_ld_interface=yes
12670 ;;
12671 esac
12672 fi
12673
12674 if test "$lt_use_gnu_ld_interface" = yes; then
12675 # If archive_cmds runs LD, not CC, wlarc should be empty
12676 wlarc='${wl}'
12677
12678 # Set some defaults for GNU ld with shared library support. These
12679 # are reset later if shared libraries are not supported. Putting them
12680 # here allows them to be overridden if necessary.
12681 runpath_var=LD_RUN_PATH
12682 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12683 export_dynamic_flag_spec_FC='${wl}--export-dynamic'
12684 # ancient GNU ld didn't support --whole-archive et. al.
12685 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12686 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12687 else
12688 whole_archive_flag_spec_FC=
12689 fi
12690 supports_anon_versioning=no
12691 case `$LD -v 2>&1` in
12692 *GNU\ gold*) supports_anon_versioning=yes ;;
12693 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12694 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12695 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12696 *\ 2.11.*) ;; # other 2.11 versions
12697 *) supports_anon_versioning=yes ;;
12698 esac
12699
12700 # See if GNU ld supports shared libraries.
12701 case $host_os in
12702 aix[3-9]*)
12703 # On AIX/PPC, the GNU linker is very broken
12704 if test "$host_cpu" != ia64; then
12705 ld_shlibs_FC=no
12706 cat <<_LT_EOF 1>&2
12707
12708 *** Warning: the GNU linker, at least up to release 2.19, is reported
12709 *** to be unable to reliably create shared libraries on AIX.
12710 *** Therefore, libtool is disabling shared libraries support. If you
12711 *** really care for shared libraries, you may want to install binutils
12712 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12713 *** You will then need to restart the configuration process.
12714
12715 _LT_EOF
12716 fi
12717 ;;
12718
12719 amigaos*)
12720 case $host_cpu in
12721 powerpc)
12722 # see comment about AmigaOS4 .so support
12723 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12724 archive_expsym_cmds_FC=''
12725 ;;
12726 m68k)
12727 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)'
12728 hardcode_libdir_flag_spec_FC='-L$libdir'
12729 hardcode_minus_L_FC=yes
12730 ;;
12731 esac
12732 ;;
12733
12734 beos*)
12735 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12736 allow_undefined_flag_FC=unsupported
12737 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12738 # support --undefined. This deserves some investigation. FIXME
12739 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12740 else
12741 ld_shlibs_FC=no
12742 fi
12743 ;;
12744
12745 cygwin* | mingw* | pw32* | cegcc*)
12746 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
12747 # as there is no search path for DLLs.
12748 hardcode_libdir_flag_spec_FC='-L$libdir'
12749 export_dynamic_flag_spec_FC='${wl}--export-all-symbols'
12750 allow_undefined_flag_FC=unsupported
12751 always_export_symbols_FC=no
12752 enable_shared_with_static_runtimes_FC=yes
12753 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12754
12755 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12756 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12757 # If the export-symbols file already is a .def file (1st line
12758 # is EXPORTS), use it as is; otherwise, prepend...
12759 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12760 cp $export_symbols $output_objdir/$soname.def;
12761 else
12762 echo EXPORTS > $output_objdir/$soname.def;
12763 cat $export_symbols >> $output_objdir/$soname.def;
12764 fi~
12765 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12766 else
12767 ld_shlibs_FC=no
12768 fi
12769 ;;
12770
12771 haiku*)
12772 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12773 link_all_deplibs_FC=yes
12774 ;;
12775
12776 interix[3-9]*)
12777 hardcode_direct_FC=no
12778 hardcode_shlibpath_var_FC=no
12779 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
12780 export_dynamic_flag_spec_FC='${wl}-E'
12781 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12782 # Instead, shared libraries are loaded at an image base (0x10000000 by
12783 # default) and relocated if they conflict, which is a slow very memory
12784 # consuming and fragmenting process. To avoid this, we pick a random,
12785 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12786 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12787 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'
12788 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'
12789 ;;
12790
12791 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12792 tmp_diet=no
12793 if test "$host_os" = linux-dietlibc; then
12794 case $cc_basename in
12795 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12796 esac
12797 fi
12798 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12799 && test "$tmp_diet" = no
12800 then
12801 tmp_addflag=' $pic_flag'
12802 tmp_sharedflag='-shared'
12803 case $cc_basename,$host_cpu in
12804 pgcc*) # Portland Group C compiler
12805 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'
12806 tmp_addflag=' $pic_flag'
12807 ;;
12808 pgf77* | pgf90* | pgf95* | pgfortran*)
12809 # Portland Group f77 and f90 compilers
12810 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'
12811 tmp_addflag=' $pic_flag -Mnomain' ;;
12812 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12813 tmp_addflag=' -i_dynamic' ;;
12814 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12815 tmp_addflag=' -i_dynamic -nofor_main' ;;
12816 ifc* | ifort*) # Intel Fortran compiler
12817 tmp_addflag=' -nofor_main' ;;
12818 lf95*) # Lahey Fortran 8.1
12819 whole_archive_flag_spec_FC=
12820 tmp_sharedflag='--shared' ;;
12821 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12822 tmp_sharedflag='-qmkshrobj'
12823 tmp_addflag= ;;
12824 nvcc*) # Cuda Compiler Driver 2.2
12825 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'
12826 compiler_needs_object_FC=yes
12827 ;;
12828 esac
12829 case `$CC -V 2>&1 | sed 5q` in
12830 *Sun\ C*) # Sun C 5.9
12831 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'
12832 compiler_needs_object_FC=yes
12833 tmp_sharedflag='-G' ;;
12834 *Sun\ F*) # Sun Fortran 8.3
12835 tmp_sharedflag='-G' ;;
12836 esac
12837 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12838
12839 if test "x$supports_anon_versioning" = xyes; then
12840 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
12841 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12842 echo "local: *; };" >> $output_objdir/$libname.ver~
12843 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12844 fi
12845
12846 case $cc_basename in
12847 xlf* | bgf* | bgxlf* | mpixlf*)
12848 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12849 whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
12850 hardcode_libdir_flag_spec_FC=
12851 hardcode_libdir_flag_spec_ld_FC='-rpath $libdir'
12852 archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12853 if test "x$supports_anon_versioning" = xyes; then
12854 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
12855 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12856 echo "local: *; };" >> $output_objdir/$libname.ver~
12857 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12858 fi
12859 ;;
12860 esac
12861 else
12862 ld_shlibs_FC=no
12863 fi
12864 ;;
12865
12866 netbsd*)
12867 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12868 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12869 wlarc=
12870 else
12871 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12872 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12873 fi
12874 ;;
12875
12876 solaris*)
12877 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12878 ld_shlibs_FC=no
12879 cat <<_LT_EOF 1>&2
12880
12881 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12882 *** create shared libraries on Solaris systems. Therefore, libtool
12883 *** is disabling shared libraries support. We urge you to upgrade GNU
12884 *** binutils to release 2.9.1 or newer. Another option is to modify
12885 *** your PATH or compiler configuration so that the native linker is
12886 *** used, and then restart.
12887
12888 _LT_EOF
12889 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12890 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12891 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12892 else
12893 ld_shlibs_FC=no
12894 fi
12895 ;;
12896
12897 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12898 case `$LD -v 2>&1` in
12899 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12900 ld_shlibs_FC=no
12901 cat <<_LT_EOF 1>&2
12902
12903 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12904 *** reliably create shared libraries on SCO systems. Therefore, libtool
12905 *** is disabling shared libraries support. We urge you to upgrade GNU
12906 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12907 *** your PATH or compiler configuration so that the native linker is
12908 *** used, and then restart.
12909
12910 _LT_EOF
12911 ;;
12912 *)
12913 # For security reasons, it is highly recommended that you always
12914 # use absolute paths for naming shared libraries, and exclude the
12915 # DT_RUNPATH tag from executables and libraries. But doing so
12916 # requires that you compile everything twice, which is a pain.
12917 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12918 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12919 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12920 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12921 else
12922 ld_shlibs_FC=no
12923 fi
12924 ;;
12925 esac
12926 ;;
12927
12928 sunos4*)
12929 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12930 wlarc=
12931 hardcode_direct_FC=yes
12932 hardcode_shlibpath_var_FC=no
12933 ;;
12934
12935 *)
12936 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12937 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12938 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12939 else
12940 ld_shlibs_FC=no
12941 fi
12942 ;;
12943 esac
12944
12945 if test "$ld_shlibs_FC" = no; then
12946 runpath_var=
12947 hardcode_libdir_flag_spec_FC=
12948 export_dynamic_flag_spec_FC=
12949 whole_archive_flag_spec_FC=
12950 fi
12951 else
12952 # PORTME fill in a description of your system's linker (not GNU ld)
12953 case $host_os in
12954 aix3*)
12955 allow_undefined_flag_FC=unsupported
12956 always_export_symbols_FC=yes
12957 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'
12958 # Note: this linker hardcodes the directories in LIBPATH if there
12959 # are no directories specified by -L.
12960 hardcode_minus_L_FC=yes
12961 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12962 # Neither direct hardcoding nor static linking is supported with a
12963 # broken collect2.
12964 hardcode_direct_FC=unsupported
12965 fi
12966 ;;
12967
12968 aix[4-9]*)
12969 if test "$host_cpu" = ia64; then
12970 # On IA64, the linker does run time linking by default, so we don't
12971 # have to do anything special.
12972 aix_use_runtimelinking=no
12973 exp_sym_flag='-Bexport'
12974 no_entry_flag=""
12975 else
12976 # If we're using GNU nm, then we don't want the "-C" option.
12977 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12978 # Also, AIX nm treats weak defined symbols like other global
12979 # defined symbols, whereas GNU nm marks them as "W".
12980 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12981 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'
12982 else
12983 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'
12984 fi
12985 aix_use_runtimelinking=no
12986
12987 # Test if we are trying to use run time linking or normal
12988 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12989 # need to do runtime linking.
12990 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12991 for ld_flag in $LDFLAGS; do
12992 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12993 aix_use_runtimelinking=yes
12994 break
12995 fi
12996 done
12997 ;;
12998 esac
12999
13000 exp_sym_flag='-bexport'
13001 no_entry_flag='-bnoentry'
13002 fi
13003
13004 # When large executables or shared objects are built, AIX ld can
13005 # have problems creating the table of contents. If linking a library
13006 # or program results in "error TOC overflow" add -mminimal-toc to
13007 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13008 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13009
13010 archive_cmds_FC=''
13011 hardcode_direct_FC=yes
13012 hardcode_direct_absolute_FC=yes
13013 hardcode_libdir_separator_FC=':'
13014 link_all_deplibs_FC=yes
13015 file_list_spec_FC='${wl}-f,'
13016
13017 if test "$GCC" = yes; then
13018 case $host_os in aix4.[012]|aix4.[012].*)
13019 # We only want to do this on AIX 4.2 and lower, the check
13020 # below for broken collect2 doesn't work under 4.3+
13021 collect2name=`${CC} -print-prog-name=collect2`
13022 if test -f "$collect2name" &&
13023 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13024 then
13025 # We have reworked collect2
13026 :
13027 else
13028 # We have old collect2
13029 hardcode_direct_FC=unsupported
13030 # It fails to find uninstalled libraries when the uninstalled
13031 # path is not listed in the libpath. Setting hardcode_minus_L
13032 # to unsupported forces relinking
13033 hardcode_minus_L_FC=yes
13034 hardcode_libdir_flag_spec_FC='-L$libdir'
13035 hardcode_libdir_separator_FC=
13036 fi
13037 ;;
13038 esac
13039 shared_flag='-shared'
13040 if test "$aix_use_runtimelinking" = yes; then
13041 shared_flag="$shared_flag "'${wl}-G'
13042 fi
13043 else
13044 # not using gcc
13045 if test "$host_cpu" = ia64; then
13046 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13047 # chokes on -Wl,-G. The following line is correct:
13048 shared_flag='-G'
13049 else
13050 if test "$aix_use_runtimelinking" = yes; then
13051 shared_flag='${wl}-G'
13052 else
13053 shared_flag='${wl}-bM:SRE'
13054 fi
13055 fi
13056 fi
13057
13058 export_dynamic_flag_spec_FC='${wl}-bexpall'
13059 # It seems that -bexpall does not export symbols beginning with
13060 # underscore (_), so it is better to generate a list of symbols to export.
13061 always_export_symbols_FC=yes
13062 if test "$aix_use_runtimelinking" = yes; then
13063 # Warning - without using the other runtime loading flags (-brtl),
13064 # -berok will link without error, but may produce a broken library.
13065 allow_undefined_flag_FC='-berok'
13066 # Determine the default libpath from the value encoded in an
13067 # empty executable.
13068 cat > conftest.$ac_ext <<_ACEOF
13069 program main
13070
13071 end
13072 _ACEOF
13073 if ac_fn_fc_try_link "$LINENO"; then :
13074
13075 lt_aix_libpath_sed='
13076 /Import File Strings/,/^$/ {
13077 /^0/ {
13078 s/^0 *\(.*\)$/\1/
13079 p
13080 }
13081 }'
13082 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13083 # Check for a 64-bit object if we didn't find anything.
13084 if test -z "$aix_libpath"; then
13085 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13086 fi
13087 fi
13088 rm -f core conftest.err conftest.$ac_objext \
13089 conftest$ac_exeext conftest.$ac_ext
13090 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13091
13092 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
13093 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"
13094 else
13095 if test "$host_cpu" = ia64; then
13096 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
13097 allow_undefined_flag_FC="-z nodefs"
13098 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"
13099 else
13100 # Determine the default libpath from the value encoded in an
13101 # empty executable.
13102 cat > conftest.$ac_ext <<_ACEOF
13103 program main
13104
13105 end
13106 _ACEOF
13107 if ac_fn_fc_try_link "$LINENO"; then :
13108
13109 lt_aix_libpath_sed='
13110 /Import File Strings/,/^$/ {
13111 /^0/ {
13112 s/^0 *\(.*\)$/\1/
13113 p
13114 }
13115 }'
13116 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13117 # Check for a 64-bit object if we didn't find anything.
13118 if test -z "$aix_libpath"; then
13119 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13120 fi
13121 fi
13122 rm -f core conftest.err conftest.$ac_objext \
13123 conftest$ac_exeext conftest.$ac_ext
13124 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13125
13126 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
13127 # Warning - without using the other run time loading flags,
13128 # -berok will link without error, but may produce a broken library.
13129 no_undefined_flag_FC=' ${wl}-bernotok'
13130 allow_undefined_flag_FC=' ${wl}-berok'
13131 if test "$with_gnu_ld" = yes; then
13132 # We only use this code for GNU lds that support --whole-archive.
13133 whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13134 else
13135 # Exported symbols can be pulled into shared objects from archives
13136 whole_archive_flag_spec_FC='$convenience'
13137 fi
13138 archive_cmds_need_lc_FC=yes
13139 # This is similar to how AIX traditionally builds its shared libraries.
13140 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'
13141 fi
13142 fi
13143 ;;
13144
13145 amigaos*)
13146 case $host_cpu in
13147 powerpc)
13148 # see comment about AmigaOS4 .so support
13149 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13150 archive_expsym_cmds_FC=''
13151 ;;
13152 m68k)
13153 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)'
13154 hardcode_libdir_flag_spec_FC='-L$libdir'
13155 hardcode_minus_L_FC=yes
13156 ;;
13157 esac
13158 ;;
13159
13160 bsdi[45]*)
13161 export_dynamic_flag_spec_FC=-rdynamic
13162 ;;
13163
13164 cygwin* | mingw* | pw32* | cegcc*)
13165 # When not using gcc, we currently assume that we are using
13166 # Microsoft Visual C++.
13167 # hardcode_libdir_flag_spec is actually meaningless, as there is
13168 # no search path for DLLs.
13169 hardcode_libdir_flag_spec_FC=' '
13170 allow_undefined_flag_FC=unsupported
13171 # Tell ltmain to make .lib files, not .a files.
13172 libext=lib
13173 # Tell ltmain to make .dll files, not .so files.
13174 shrext_cmds=".dll"
13175 # FIXME: Setting linknames here is a bad hack.
13176 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13177 # The linker will automatically build a .lib file if we build a DLL.
13178 old_archive_from_new_cmds_FC='true'
13179 # FIXME: Should let the user specify the lib program.
13180 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
13181 fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
13182 enable_shared_with_static_runtimes_FC=yes
13183 ;;
13184
13185 darwin* | rhapsody*)
13186
13187
13188 archive_cmds_need_lc_FC=no
13189 hardcode_direct_FC=no
13190 hardcode_automatic_FC=yes
13191 hardcode_shlibpath_var_FC=unsupported
13192 if test "$lt_cv_ld_force_load" = "yes"; then
13193 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\"`'
13194 else
13195 whole_archive_flag_spec_FC=''
13196 fi
13197 link_all_deplibs_FC=yes
13198 allow_undefined_flag_FC="$_lt_dar_allow_undefined"
13199 case $cc_basename in
13200 ifort*) _lt_dar_can_shared=yes ;;
13201 *) _lt_dar_can_shared=$GCC ;;
13202 esac
13203 if test "$_lt_dar_can_shared" = "yes"; then
13204 output_verbose_link_cmd=func_echo_all
13205 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}"
13206 module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13207 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}"
13208 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}"
13209
13210 else
13211 ld_shlibs_FC=no
13212 fi
13213
13214 ;;
13215
13216 dgux*)
13217 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13218 hardcode_libdir_flag_spec_FC='-L$libdir'
13219 hardcode_shlibpath_var_FC=no
13220 ;;
13221
13222 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13223 # support. Future versions do this automatically, but an explicit c++rt0.o
13224 # does not break anything, and helps significantly (at the cost of a little
13225 # extra space).
13226 freebsd2.2*)
13227 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13228 hardcode_libdir_flag_spec_FC='-R$libdir'
13229 hardcode_direct_FC=yes
13230 hardcode_shlibpath_var_FC=no
13231 ;;
13232
13233 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13234 freebsd2.*)
13235 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13236 hardcode_direct_FC=yes
13237 hardcode_minus_L_FC=yes
13238 hardcode_shlibpath_var_FC=no
13239 ;;
13240
13241 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13242 freebsd* | dragonfly*)
13243 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13244 hardcode_libdir_flag_spec_FC='-R$libdir'
13245 hardcode_direct_FC=yes
13246 hardcode_shlibpath_var_FC=no
13247 ;;
13248
13249 hpux9*)
13250 if test "$GCC" = yes; then
13251 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'
13252 else
13253 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'
13254 fi
13255 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13256 hardcode_libdir_separator_FC=:
13257 hardcode_direct_FC=yes
13258
13259 # hardcode_minus_L: Not really in the search PATH,
13260 # but as the default location of the library.
13261 hardcode_minus_L_FC=yes
13262 export_dynamic_flag_spec_FC='${wl}-E'
13263 ;;
13264
13265 hpux10*)
13266 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13267 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13268 else
13269 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13270 fi
13271 if test "$with_gnu_ld" = no; then
13272 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13273 hardcode_libdir_flag_spec_ld_FC='+b $libdir'
13274 hardcode_libdir_separator_FC=:
13275 hardcode_direct_FC=yes
13276 hardcode_direct_absolute_FC=yes
13277 export_dynamic_flag_spec_FC='${wl}-E'
13278 # hardcode_minus_L: Not really in the search PATH,
13279 # but as the default location of the library.
13280 hardcode_minus_L_FC=yes
13281 fi
13282 ;;
13283
13284 hpux11*)
13285 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13286 case $host_cpu in
13287 hppa*64*)
13288 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13289 ;;
13290 ia64*)
13291 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13292 ;;
13293 *)
13294 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13295 ;;
13296 esac
13297 else
13298 case $host_cpu in
13299 hppa*64*)
13300 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13301 ;;
13302 ia64*)
13303 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13304 ;;
13305 *)
13306 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13307 ;;
13308 esac
13309 fi
13310 if test "$with_gnu_ld" = no; then
13311 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13312 hardcode_libdir_separator_FC=:
13313
13314 case $host_cpu in
13315 hppa*64*|ia64*)
13316 hardcode_direct_FC=no
13317 hardcode_shlibpath_var_FC=no
13318 ;;
13319 *)
13320 hardcode_direct_FC=yes
13321 hardcode_direct_absolute_FC=yes
13322 export_dynamic_flag_spec_FC='${wl}-E'
13323
13324 # hardcode_minus_L: Not really in the search PATH,
13325 # but as the default location of the library.
13326 hardcode_minus_L_FC=yes
13327 ;;
13328 esac
13329 fi
13330 ;;
13331
13332 irix5* | irix6* | nonstopux*)
13333 if test "$GCC" = yes; then
13334 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'
13335 # Try to use the -exported_symbol ld option, if it does not
13336 # work, assume that -exports_file does not work either and
13337 # implicitly export all symbols.
13338 save_LDFLAGS="$LDFLAGS"
13339 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13340 cat > conftest.$ac_ext <<_ACEOF
13341 int foo(void) {}
13342 _ACEOF
13343 if ac_fn_fc_try_link "$LINENO"; then :
13344 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'
13345
13346 fi
13347 rm -f core conftest.err conftest.$ac_objext \
13348 conftest$ac_exeext conftest.$ac_ext
13349 LDFLAGS="$save_LDFLAGS"
13350 else
13351 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'
13352 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'
13353 fi
13354 archive_cmds_need_lc_FC='no'
13355 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13356 hardcode_libdir_separator_FC=:
13357 inherit_rpath_FC=yes
13358 link_all_deplibs_FC=yes
13359 ;;
13360
13361 netbsd*)
13362 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13363 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13364 else
13365 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13366 fi
13367 hardcode_libdir_flag_spec_FC='-R$libdir'
13368 hardcode_direct_FC=yes
13369 hardcode_shlibpath_var_FC=no
13370 ;;
13371
13372 newsos6)
13373 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13374 hardcode_direct_FC=yes
13375 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13376 hardcode_libdir_separator_FC=:
13377 hardcode_shlibpath_var_FC=no
13378 ;;
13379
13380 *nto* | *qnx*)
13381 ;;
13382
13383 openbsd*)
13384 if test -f /usr/libexec/ld.so; then
13385 hardcode_direct_FC=yes
13386 hardcode_shlibpath_var_FC=no
13387 hardcode_direct_absolute_FC=yes
13388 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13389 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13390 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13391 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13392 export_dynamic_flag_spec_FC='${wl}-E'
13393 else
13394 case $host_os in
13395 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13396 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13397 hardcode_libdir_flag_spec_FC='-R$libdir'
13398 ;;
13399 *)
13400 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13401 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13402 ;;
13403 esac
13404 fi
13405 else
13406 ld_shlibs_FC=no
13407 fi
13408 ;;
13409
13410 os2*)
13411 hardcode_libdir_flag_spec_FC='-L$libdir'
13412 hardcode_minus_L_FC=yes
13413 allow_undefined_flag_FC=unsupported
13414 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'
13415 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13416 ;;
13417
13418 osf3*)
13419 if test "$GCC" = yes; then
13420 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
13421 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'
13422 else
13423 allow_undefined_flag_FC=' -expect_unresolved \*'
13424 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'
13425 fi
13426 archive_cmds_need_lc_FC='no'
13427 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13428 hardcode_libdir_separator_FC=:
13429 ;;
13430
13431 osf4* | osf5*) # as osf3* with the addition of -msym flag
13432 if test "$GCC" = yes; then
13433 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
13434 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'
13435 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13436 else
13437 allow_undefined_flag_FC=' -expect_unresolved \*'
13438 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'
13439 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~
13440 $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'
13441
13442 # Both c and cxx compiler support -rpath directly
13443 hardcode_libdir_flag_spec_FC='-rpath $libdir'
13444 fi
13445 archive_cmds_need_lc_FC='no'
13446 hardcode_libdir_separator_FC=:
13447 ;;
13448
13449 solaris*)
13450 no_undefined_flag_FC=' -z defs'
13451 if test "$GCC" = yes; then
13452 wlarc='${wl}'
13453 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13454 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13455 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13456 else
13457 case `$CC -V 2>&1` in
13458 *"Compilers 5.0"*)
13459 wlarc=''
13460 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13461 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13462 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13463 ;;
13464 *)
13465 wlarc='${wl}'
13466 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13467 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13468 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13469 ;;
13470 esac
13471 fi
13472 hardcode_libdir_flag_spec_FC='-R$libdir'
13473 hardcode_shlibpath_var_FC=no
13474 case $host_os in
13475 solaris2.[0-5] | solaris2.[0-5].*) ;;
13476 *)
13477 # The compiler driver will combine and reorder linker options,
13478 # but understands `-z linker_flag'. GCC discards it without `$wl',
13479 # but is careful enough not to reorder.
13480 # Supported since Solaris 2.6 (maybe 2.5.1?)
13481 if test "$GCC" = yes; then
13482 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13483 else
13484 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
13485 fi
13486 ;;
13487 esac
13488 link_all_deplibs_FC=yes
13489 ;;
13490
13491 sunos4*)
13492 if test "x$host_vendor" = xsequent; then
13493 # Use $CC to link under sequent, because it throws in some extra .o
13494 # files that make .init and .fini sections work.
13495 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13496 else
13497 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13498 fi
13499 hardcode_libdir_flag_spec_FC='-L$libdir'
13500 hardcode_direct_FC=yes
13501 hardcode_minus_L_FC=yes
13502 hardcode_shlibpath_var_FC=no
13503 ;;
13504
13505 sysv4)
13506 case $host_vendor in
13507 sni)
13508 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13509 hardcode_direct_FC=yes # is this really true???
13510 ;;
13511 siemens)
13512 ## LD is ld it makes a PLAMLIB
13513 ## CC just makes a GrossModule.
13514 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13515 reload_cmds_FC='$CC -r -o $output$reload_objs'
13516 hardcode_direct_FC=no
13517 ;;
13518 motorola)
13519 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13520 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
13521 ;;
13522 esac
13523 runpath_var='LD_RUN_PATH'
13524 hardcode_shlibpath_var_FC=no
13525 ;;
13526
13527 sysv4.3*)
13528 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13529 hardcode_shlibpath_var_FC=no
13530 export_dynamic_flag_spec_FC='-Bexport'
13531 ;;
13532
13533 sysv4*MP*)
13534 if test -d /usr/nec; then
13535 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13536 hardcode_shlibpath_var_FC=no
13537 runpath_var=LD_RUN_PATH
13538 hardcode_runpath_var=yes
13539 ld_shlibs_FC=yes
13540 fi
13541 ;;
13542
13543 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13544 no_undefined_flag_FC='${wl}-z,text'
13545 archive_cmds_need_lc_FC=no
13546 hardcode_shlibpath_var_FC=no
13547 runpath_var='LD_RUN_PATH'
13548
13549 if test "$GCC" = yes; then
13550 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13551 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13552 else
13553 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13554 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13555 fi
13556 ;;
13557
13558 sysv5* | sco3.2v5* | sco5v6*)
13559 # Note: We can NOT use -z defs as we might desire, because we do not
13560 # link with -lc, and that would cause any symbols used from libc to
13561 # always be unresolved, which means just about no library would
13562 # ever link correctly. If we're not using GNU ld we use -z text
13563 # though, which does catch some bad symbols but isn't as heavy-handed
13564 # as -z defs.
13565 no_undefined_flag_FC='${wl}-z,text'
13566 allow_undefined_flag_FC='${wl}-z,nodefs'
13567 archive_cmds_need_lc_FC=no
13568 hardcode_shlibpath_var_FC=no
13569 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
13570 hardcode_libdir_separator_FC=':'
13571 link_all_deplibs_FC=yes
13572 export_dynamic_flag_spec_FC='${wl}-Bexport'
13573 runpath_var='LD_RUN_PATH'
13574
13575 if test "$GCC" = yes; then
13576 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13577 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13578 else
13579 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13580 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13581 fi
13582 ;;
13583
13584 uts4*)
13585 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13586 hardcode_libdir_flag_spec_FC='-L$libdir'
13587 hardcode_shlibpath_var_FC=no
13588 ;;
13589
13590 *)
13591 ld_shlibs_FC=no
13592 ;;
13593 esac
13594
13595 if test x$host_vendor = xsni; then
13596 case $host in
13597 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13598 export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
13599 ;;
13600 esac
13601 fi
13602 fi
13603
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
13605 $as_echo "$ld_shlibs_FC" >&6; }
13606 test "$ld_shlibs_FC" = no && can_build_shared=no
13607
13608 with_gnu_ld_FC=$with_gnu_ld
13609
13610
13611
13612
13613
13614
13615 #
13616 # Do we need to explicitly link libc?
13617 #
13618 case "x$archive_cmds_need_lc_FC" in
13619 x|xyes)
13620 # Assume -lc should be added
13621 archive_cmds_need_lc_FC=yes
13622
13623 if test "$enable_shared" = yes && test "$GCC" = yes; then
13624 case $archive_cmds_FC in
13625 *'~'*)
13626 # FIXME: we may have to deal with multi-command sequences.
13627 ;;
13628 '$CC '*)
13629 # Test whether the compiler implicitly links with -lc since on some
13630 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13631 # to ld, don't add -lc before -lgcc.
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13633 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13634 if test "${lt_cv_archive_cmds_need_lc_FC+set}" = set; then :
13635 $as_echo_n "(cached) " >&6
13636 else
13637 $RM conftest*
13638 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13639
13640 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13641 (eval $ac_compile) 2>&5
13642 ac_status=$?
13643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13644 test $ac_status = 0; } 2>conftest.err; then
13645 soname=conftest
13646 lib=conftest
13647 libobjs=conftest.$ac_objext
13648 deplibs=
13649 wl=$lt_prog_compiler_wl_FC
13650 pic_flag=$lt_prog_compiler_pic_FC
13651 compiler_flags=-v
13652 linker_flags=-v
13653 verstring=
13654 output_objdir=.
13655 libname=conftest
13656 lt_save_allow_undefined_flag=$allow_undefined_flag_FC
13657 allow_undefined_flag_FC=
13658 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13659 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13660 ac_status=$?
13661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13662 test $ac_status = 0; }
13663 then
13664 lt_cv_archive_cmds_need_lc_FC=no
13665 else
13666 lt_cv_archive_cmds_need_lc_FC=yes
13667 fi
13668 allow_undefined_flag_FC=$lt_save_allow_undefined_flag
13669 else
13670 cat conftest.err 1>&5
13671 fi
13672 $RM conftest*
13673
13674 fi
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
13676 $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
13677 archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
13678 ;;
13679 esac
13680 fi
13681 ;;
13682 esac
13683
13684
13685
13686
13687
13688
13689
13690
13691
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13748 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13749
13750 library_names_spec=
13751 libname_spec='lib$name'
13752 soname_spec=
13753 shrext_cmds=".so"
13754 postinstall_cmds=
13755 postuninstall_cmds=
13756 finish_cmds=
13757 finish_eval=
13758 shlibpath_var=
13759 shlibpath_overrides_runpath=unknown
13760 version_type=none
13761 dynamic_linker="$host_os ld.so"
13762 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13763 need_lib_prefix=unknown
13764 hardcode_into_libs=no
13765
13766 # when you set need_version to no, make sure it does not cause -set_version
13767 # flags to be left without arguments
13768 need_version=unknown
13769
13770 case $host_os in
13771 aix3*)
13772 version_type=linux
13773 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13774 shlibpath_var=LIBPATH
13775
13776 # AIX 3 has no versioning support, so we append a major version to the name.
13777 soname_spec='${libname}${release}${shared_ext}$major'
13778 ;;
13779
13780 aix[4-9]*)
13781 version_type=linux
13782 need_lib_prefix=no
13783 need_version=no
13784 hardcode_into_libs=yes
13785 if test "$host_cpu" = ia64; then
13786 # AIX 5 supports IA64
13787 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13788 shlibpath_var=LD_LIBRARY_PATH
13789 else
13790 # With GCC up to 2.95.x, collect2 would create an import file
13791 # for dependence libraries. The import file would start with
13792 # the line `#! .'. This would cause the generated library to
13793 # depend on `.', always an invalid library. This was fixed in
13794 # development snapshots of GCC prior to 3.0.
13795 case $host_os in
13796 aix4 | aix4.[01] | aix4.[01].*)
13797 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13798 echo ' yes '
13799 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13800 :
13801 else
13802 can_build_shared=no
13803 fi
13804 ;;
13805 esac
13806 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13807 # soname into executable. Probably we can add versioning support to
13808 # collect2, so additional links can be useful in future.
13809 if test "$aix_use_runtimelinking" = yes; then
13810 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13811 # instead of lib<name>.a to let people know that these are not
13812 # typical AIX shared libraries.
13813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13814 else
13815 # We preserve .a as extension for shared libraries through AIX4.2
13816 # and later when we are not doing run time linking.
13817 library_names_spec='${libname}${release}.a $libname.a'
13818 soname_spec='${libname}${release}${shared_ext}$major'
13819 fi
13820 shlibpath_var=LIBPATH
13821 fi
13822 ;;
13823
13824 amigaos*)
13825 case $host_cpu in
13826 powerpc)
13827 # Since July 2007 AmigaOS4 officially supports .so libraries.
13828 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13830 ;;
13831 m68k)
13832 library_names_spec='$libname.ixlibrary $libname.a'
13833 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13834 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'
13835 ;;
13836 esac
13837 ;;
13838
13839 beos*)
13840 library_names_spec='${libname}${shared_ext}'
13841 dynamic_linker="$host_os ld.so"
13842 shlibpath_var=LIBRARY_PATH
13843 ;;
13844
13845 bsdi[45]*)
13846 version_type=linux
13847 need_version=no
13848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13849 soname_spec='${libname}${release}${shared_ext}$major'
13850 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13851 shlibpath_var=LD_LIBRARY_PATH
13852 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13853 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13854 # the default ld.so.conf also contains /usr/contrib/lib and
13855 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13856 # libtool to hard-code these into programs
13857 ;;
13858
13859 cygwin* | mingw* | pw32* | cegcc*)
13860 version_type=windows
13861 shrext_cmds=".dll"
13862 need_version=no
13863 need_lib_prefix=no
13864
13865 case $GCC,$host_os in
13866 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13867 library_names_spec='$libname.dll.a'
13868 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13869 postinstall_cmds='base_file=`basename \${file}`~
13870 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13871 dldir=$destdir/`dirname \$dlpath`~
13872 test -d \$dldir || mkdir -p \$dldir~
13873 $install_prog $dir/$dlname \$dldir/$dlname~
13874 chmod a+x \$dldir/$dlname~
13875 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13876 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13877 fi'
13878 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13879 dlpath=$dir/\$dldll~
13880 $RM \$dlpath'
13881 shlibpath_overrides_runpath=yes
13882
13883 case $host_os in
13884 cygwin*)
13885 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13886 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13887
13888 ;;
13889 mingw* | cegcc*)
13890 # MinGW DLLs use traditional 'lib' prefix
13891 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13892 ;;
13893 pw32*)
13894 # pw32 DLLs use 'pw' prefix rather than 'lib'
13895 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13896 ;;
13897 esac
13898 ;;
13899
13900 *)
13901 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13902 ;;
13903 esac
13904 dynamic_linker='Win32 ld.exe'
13905 # FIXME: first we should search . and the directory the executable is in
13906 shlibpath_var=PATH
13907 ;;
13908
13909 darwin* | rhapsody*)
13910 dynamic_linker="$host_os dyld"
13911 version_type=darwin
13912 need_lib_prefix=no
13913 need_version=no
13914 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13915 soname_spec='${libname}${release}${major}$shared_ext'
13916 shlibpath_overrides_runpath=yes
13917 shlibpath_var=DYLD_LIBRARY_PATH
13918 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13919
13920 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13921 ;;
13922
13923 dgux*)
13924 version_type=linux
13925 need_lib_prefix=no
13926 need_version=no
13927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13928 soname_spec='${libname}${release}${shared_ext}$major'
13929 shlibpath_var=LD_LIBRARY_PATH
13930 ;;
13931
13932 freebsd* | dragonfly*)
13933 # DragonFly does not have aout. When/if they implement a new
13934 # versioning mechanism, adjust this.
13935 if test -x /usr/bin/objformat; then
13936 objformat=`/usr/bin/objformat`
13937 else
13938 case $host_os in
13939 freebsd[23].*) objformat=aout ;;
13940 *) objformat=elf ;;
13941 esac
13942 fi
13943 version_type=freebsd-$objformat
13944 case $version_type in
13945 freebsd-elf*)
13946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13947 need_version=no
13948 need_lib_prefix=no
13949 ;;
13950 freebsd-*)
13951 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13952 need_version=yes
13953 ;;
13954 esac
13955 shlibpath_var=LD_LIBRARY_PATH
13956 case $host_os in
13957 freebsd2.*)
13958 shlibpath_overrides_runpath=yes
13959 ;;
13960 freebsd3.[01]* | freebsdelf3.[01]*)
13961 shlibpath_overrides_runpath=yes
13962 hardcode_into_libs=yes
13963 ;;
13964 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13965 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13966 shlibpath_overrides_runpath=no
13967 hardcode_into_libs=yes
13968 ;;
13969 *) # from 4.6 on, and DragonFly
13970 shlibpath_overrides_runpath=yes
13971 hardcode_into_libs=yes
13972 ;;
13973 esac
13974 ;;
13975
13976 gnu*)
13977 version_type=linux
13978 need_lib_prefix=no
13979 need_version=no
13980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13981 soname_spec='${libname}${release}${shared_ext}$major'
13982 shlibpath_var=LD_LIBRARY_PATH
13983 hardcode_into_libs=yes
13984 ;;
13985
13986 haiku*)
13987 version_type=linux
13988 need_lib_prefix=no
13989 need_version=no
13990 dynamic_linker="$host_os runtime_loader"
13991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13992 soname_spec='${libname}${release}${shared_ext}$major'
13993 shlibpath_var=LIBRARY_PATH
13994 shlibpath_overrides_runpath=yes
13995 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
13996 hardcode_into_libs=yes
13997 ;;
13998
13999 hpux9* | hpux10* | hpux11*)
14000 # Give a soname corresponding to the major version so that dld.sl refuses to
14001 # link against other versions.
14002 version_type=sunos
14003 need_lib_prefix=no
14004 need_version=no
14005 case $host_cpu in
14006 ia64*)
14007 shrext_cmds='.so'
14008 hardcode_into_libs=yes
14009 dynamic_linker="$host_os dld.so"
14010 shlibpath_var=LD_LIBRARY_PATH
14011 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14013 soname_spec='${libname}${release}${shared_ext}$major'
14014 if test "X$HPUX_IA64_MODE" = X32; then
14015 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14016 else
14017 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14018 fi
14019 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14020 ;;
14021 hppa*64*)
14022 shrext_cmds='.sl'
14023 hardcode_into_libs=yes
14024 dynamic_linker="$host_os dld.sl"
14025 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14026 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14028 soname_spec='${libname}${release}${shared_ext}$major'
14029 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14030 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14031 ;;
14032 *)
14033 shrext_cmds='.sl'
14034 dynamic_linker="$host_os dld.sl"
14035 shlibpath_var=SHLIB_PATH
14036 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14038 soname_spec='${libname}${release}${shared_ext}$major'
14039 ;;
14040 esac
14041 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14042 postinstall_cmds='chmod 555 $lib'
14043 # or fails outright, so override atomically:
14044 install_override_mode=555
14045 ;;
14046
14047 interix[3-9]*)
14048 version_type=linux
14049 need_lib_prefix=no
14050 need_version=no
14051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14052 soname_spec='${libname}${release}${shared_ext}$major'
14053 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14054 shlibpath_var=LD_LIBRARY_PATH
14055 shlibpath_overrides_runpath=no
14056 hardcode_into_libs=yes
14057 ;;
14058
14059 irix5* | irix6* | nonstopux*)
14060 case $host_os in
14061 nonstopux*) version_type=nonstopux ;;
14062 *)
14063 if test "$lt_cv_prog_gnu_ld" = yes; then
14064 version_type=linux
14065 else
14066 version_type=irix
14067 fi ;;
14068 esac
14069 need_lib_prefix=no
14070 need_version=no
14071 soname_spec='${libname}${release}${shared_ext}$major'
14072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14073 case $host_os in
14074 irix5* | nonstopux*)
14075 libsuff= shlibsuff=
14076 ;;
14077 *)
14078 case $LD in # libtool.m4 will add one of these switches to LD
14079 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14080 libsuff= shlibsuff= libmagic=32-bit;;
14081 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14082 libsuff=32 shlibsuff=N32 libmagic=N32;;
14083 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14084 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14085 *) libsuff= shlibsuff= libmagic=never-match;;
14086 esac
14087 ;;
14088 esac
14089 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14090 shlibpath_overrides_runpath=no
14091 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14092 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14093 hardcode_into_libs=yes
14094 ;;
14095
14096 # No shared lib support for Linux oldld, aout, or coff.
14097 linux*oldld* | linux*aout* | linux*coff*)
14098 dynamic_linker=no
14099 ;;
14100
14101 # This must be Linux ELF.
14102 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14103 version_type=linux
14104 need_lib_prefix=no
14105 need_version=no
14106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14107 soname_spec='${libname}${release}${shared_ext}$major'
14108 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14109 shlibpath_var=LD_LIBRARY_PATH
14110 shlibpath_overrides_runpath=no
14111
14112 # Some binutils ld are patched to set DT_RUNPATH
14113 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14114 $as_echo_n "(cached) " >&6
14115 else
14116 lt_cv_shlibpath_overrides_runpath=no
14117 save_LDFLAGS=$LDFLAGS
14118 save_libdir=$libdir
14119 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
14120 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
14121 cat > conftest.$ac_ext <<_ACEOF
14122 program main
14123
14124 end
14125 _ACEOF
14126 if ac_fn_fc_try_link "$LINENO"; then :
14127 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14128 lt_cv_shlibpath_overrides_runpath=yes
14129 fi
14130 fi
14131 rm -f core conftest.err conftest.$ac_objext \
14132 conftest$ac_exeext conftest.$ac_ext
14133 LDFLAGS=$save_LDFLAGS
14134 libdir=$save_libdir
14135
14136 fi
14137
14138 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14139
14140 # This implies no fast_install, which is unacceptable.
14141 # Some rework will be needed to allow for fast_install
14142 # before this can be enabled.
14143 hardcode_into_libs=yes
14144
14145 # Append ld.so.conf contents to the search path
14146 if test -f /etc/ld.so.conf; then
14147 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' ' '`
14148 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14149 fi
14150
14151 # We used to test for /lib/ld.so.1 and disable shared libraries on
14152 # powerpc, because MkLinux only supported shared libraries with the
14153 # GNU dynamic linker. Since this was broken with cross compilers,
14154 # most powerpc-linux boxes support dynamic linking these days and
14155 # people can always --disable-shared, the test was removed, and we
14156 # assume the GNU/Linux dynamic linker is in use.
14157 dynamic_linker='GNU/Linux ld.so'
14158 ;;
14159
14160 netbsd*)
14161 version_type=sunos
14162 need_lib_prefix=no
14163 need_version=no
14164 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14166 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14167 dynamic_linker='NetBSD (a.out) ld.so'
14168 else
14169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14170 soname_spec='${libname}${release}${shared_ext}$major'
14171 dynamic_linker='NetBSD ld.elf_so'
14172 fi
14173 shlibpath_var=LD_LIBRARY_PATH
14174 shlibpath_overrides_runpath=yes
14175 hardcode_into_libs=yes
14176 ;;
14177
14178 newsos6)
14179 version_type=linux
14180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14181 shlibpath_var=LD_LIBRARY_PATH
14182 shlibpath_overrides_runpath=yes
14183 ;;
14184
14185 *nto* | *qnx*)
14186 version_type=qnx
14187 need_lib_prefix=no
14188 need_version=no
14189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14190 soname_spec='${libname}${release}${shared_ext}$major'
14191 shlibpath_var=LD_LIBRARY_PATH
14192 shlibpath_overrides_runpath=no
14193 hardcode_into_libs=yes
14194 dynamic_linker='ldqnx.so'
14195 ;;
14196
14197 openbsd*)
14198 version_type=sunos
14199 sys_lib_dlsearch_path_spec="/usr/lib"
14200 need_lib_prefix=no
14201 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14202 case $host_os in
14203 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14204 *) need_version=no ;;
14205 esac
14206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14207 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14208 shlibpath_var=LD_LIBRARY_PATH
14209 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14210 case $host_os in
14211 openbsd2.[89] | openbsd2.[89].*)
14212 shlibpath_overrides_runpath=no
14213 ;;
14214 *)
14215 shlibpath_overrides_runpath=yes
14216 ;;
14217 esac
14218 else
14219 shlibpath_overrides_runpath=yes
14220 fi
14221 ;;
14222
14223 os2*)
14224 libname_spec='$name'
14225 shrext_cmds=".dll"
14226 need_lib_prefix=no
14227 library_names_spec='$libname${shared_ext} $libname.a'
14228 dynamic_linker='OS/2 ld.exe'
14229 shlibpath_var=LIBPATH
14230 ;;
14231
14232 osf3* | osf4* | osf5*)
14233 version_type=osf
14234 need_lib_prefix=no
14235 need_version=no
14236 soname_spec='${libname}${release}${shared_ext}$major'
14237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14238 shlibpath_var=LD_LIBRARY_PATH
14239 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14240 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14241 ;;
14242
14243 rdos*)
14244 dynamic_linker=no
14245 ;;
14246
14247 solaris*)
14248 version_type=linux
14249 need_lib_prefix=no
14250 need_version=no
14251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14252 soname_spec='${libname}${release}${shared_ext}$major'
14253 shlibpath_var=LD_LIBRARY_PATH
14254 shlibpath_overrides_runpath=yes
14255 hardcode_into_libs=yes
14256 # ldd complains unless libraries are executable
14257 postinstall_cmds='chmod +x $lib'
14258 ;;
14259
14260 sunos4*)
14261 version_type=sunos
14262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14263 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14264 shlibpath_var=LD_LIBRARY_PATH
14265 shlibpath_overrides_runpath=yes
14266 if test "$with_gnu_ld" = yes; then
14267 need_lib_prefix=no
14268 fi
14269 need_version=yes
14270 ;;
14271
14272 sysv4 | sysv4.3*)
14273 version_type=linux
14274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14275 soname_spec='${libname}${release}${shared_ext}$major'
14276 shlibpath_var=LD_LIBRARY_PATH
14277 case $host_vendor in
14278 sni)
14279 shlibpath_overrides_runpath=no
14280 need_lib_prefix=no
14281 runpath_var=LD_RUN_PATH
14282 ;;
14283 siemens)
14284 need_lib_prefix=no
14285 ;;
14286 motorola)
14287 need_lib_prefix=no
14288 need_version=no
14289 shlibpath_overrides_runpath=no
14290 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14291 ;;
14292 esac
14293 ;;
14294
14295 sysv4*MP*)
14296 if test -d /usr/nec ;then
14297 version_type=linux
14298 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14299 soname_spec='$libname${shared_ext}.$major'
14300 shlibpath_var=LD_LIBRARY_PATH
14301 fi
14302 ;;
14303
14304 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14305 version_type=freebsd-elf
14306 need_lib_prefix=no
14307 need_version=no
14308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14309 soname_spec='${libname}${release}${shared_ext}$major'
14310 shlibpath_var=LD_LIBRARY_PATH
14311 shlibpath_overrides_runpath=yes
14312 hardcode_into_libs=yes
14313 if test "$with_gnu_ld" = yes; then
14314 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14315 else
14316 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14317 case $host_os in
14318 sco3.2v5*)
14319 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14320 ;;
14321 esac
14322 fi
14323 sys_lib_dlsearch_path_spec='/usr/lib'
14324 ;;
14325
14326 tpf*)
14327 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14328 version_type=linux
14329 need_lib_prefix=no
14330 need_version=no
14331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14332 shlibpath_var=LD_LIBRARY_PATH
14333 shlibpath_overrides_runpath=no
14334 hardcode_into_libs=yes
14335 ;;
14336
14337 uts4*)
14338 version_type=linux
14339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14340 soname_spec='${libname}${release}${shared_ext}$major'
14341 shlibpath_var=LD_LIBRARY_PATH
14342 ;;
14343
14344 *)
14345 dynamic_linker=no
14346 ;;
14347 esac
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14349 $as_echo "$dynamic_linker" >&6; }
14350 test "$dynamic_linker" = no && can_build_shared=no
14351
14352 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14353 if test "$GCC" = yes; then
14354 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14355 fi
14356
14357 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14358 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14359 fi
14360 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14361 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14362 fi
14363
14364
14365
14366
14367
14368
14369
14370
14371
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14402 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14403 hardcode_action_FC=
14404 if test -n "$hardcode_libdir_flag_spec_FC" ||
14405 test -n "$runpath_var_FC" ||
14406 test "X$hardcode_automatic_FC" = "Xyes" ; then
14407
14408 # We can hardcode non-existent directories.
14409 if test "$hardcode_direct_FC" != no &&
14410 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14411 # have to relink, otherwise we might link with an installed library
14412 # when we should be linking with a yet-to-be-installed one
14413 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
14414 test "$hardcode_minus_L_FC" != no; then
14415 # Linking always hardcodes the temporary library directory.
14416 hardcode_action_FC=relink
14417 else
14418 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14419 hardcode_action_FC=immediate
14420 fi
14421 else
14422 # We cannot hardcode anything, or else we can only hardcode existing
14423 # directories.
14424 hardcode_action_FC=unsupported
14425 fi
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
14427 $as_echo "$hardcode_action_FC" >&6; }
14428
14429 if test "$hardcode_action_FC" = relink ||
14430 test "$inherit_rpath_FC" = yes; then
14431 # Fast installation is not supported
14432 enable_fast_install=no
14433 elif test "$shlibpath_overrides_runpath" = yes ||
14434 test "$enable_shared" = no; then
14435 # Fast installation is not necessary
14436 enable_fast_install=needless
14437 fi
14438
14439
14440
14441
14442
14443
14444
14445 fi # test -n "$compiler"
14446
14447 GCC=$lt_save_GCC
14448 CC="$lt_save_CC"
14449 fi # test "$_lt_disable_FC" != yes
14450
14451 ac_ext=c
14452 ac_cpp='$CPP $CPPFLAGS'
14453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14456
14457
14458 FCFLAGS="$FCFLAGS -Wall -L../libgfortran"
14459
14460 # For libtool versioning info, format is CURRENT:REVISION:AGE
14461 libtool_VERSION=1:0:0
14462
14463
14464 # Check header files.
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14466 $as_echo_n "checking for ANSI C header files... " >&6; }
14467 if test "${ac_cv_header_stdc+set}" = set; then :
14468 $as_echo_n "(cached) " >&6
14469 else
14470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14471 /* end confdefs.h. */
14472 #include <stdlib.h>
14473 #include <stdarg.h>
14474 #include <string.h>
14475 #include <float.h>
14476
14477 int
14478 main ()
14479 {
14480
14481 ;
14482 return 0;
14483 }
14484 _ACEOF
14485 if ac_fn_c_try_compile "$LINENO"; then :
14486 ac_cv_header_stdc=yes
14487 else
14488 ac_cv_header_stdc=no
14489 fi
14490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14491
14492 if test $ac_cv_header_stdc = yes; then
14493 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14495 /* end confdefs.h. */
14496 #include <string.h>
14497
14498 _ACEOF
14499 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14500 $EGREP "memchr" >/dev/null 2>&1; then :
14501
14502 else
14503 ac_cv_header_stdc=no
14504 fi
14505 rm -f conftest*
14506
14507 fi
14508
14509 if test $ac_cv_header_stdc = yes; then
14510 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14512 /* end confdefs.h. */
14513 #include <stdlib.h>
14514
14515 _ACEOF
14516 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14517 $EGREP "free" >/dev/null 2>&1; then :
14518
14519 else
14520 ac_cv_header_stdc=no
14521 fi
14522 rm -f conftest*
14523
14524 fi
14525
14526 if test $ac_cv_header_stdc = yes; then
14527 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14528 if test "$cross_compiling" = yes; then :
14529 :
14530 else
14531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14532 /* end confdefs.h. */
14533 #include <ctype.h>
14534 #include <stdlib.h>
14535 #if ((' ' & 0x0FF) == 0x020)
14536 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14537 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14538 #else
14539 # define ISLOWER(c) \
14540 (('a' <= (c) && (c) <= 'i') \
14541 || ('j' <= (c) && (c) <= 'r') \
14542 || ('s' <= (c) && (c) <= 'z'))
14543 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14544 #endif
14545
14546 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14547 int
14548 main ()
14549 {
14550 int i;
14551 for (i = 0; i < 256; i++)
14552 if (XOR (islower (i), ISLOWER (i))
14553 || toupper (i) != TOUPPER (i))
14554 return 2;
14555 return 0;
14556 }
14557 _ACEOF
14558 if ac_fn_c_try_run "$LINENO"; then :
14559
14560 else
14561 ac_cv_header_stdc=no
14562 fi
14563 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14564 conftest.$ac_objext conftest.beam conftest.$ac_ext
14565 fi
14566
14567 fi
14568 fi
14569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14570 $as_echo "$ac_cv_header_stdc" >&6; }
14571 if test $ac_cv_header_stdc = yes; then
14572
14573 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14574
14575 fi
14576
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
14578 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14579 if test "${ac_cv_header_time+set}" = set; then :
14580 $as_echo_n "(cached) " >&6
14581 else
14582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14583 /* end confdefs.h. */
14584 #include <sys/types.h>
14585 #include <sys/time.h>
14586 #include <time.h>
14587
14588 int
14589 main ()
14590 {
14591 if ((struct tm *) 0)
14592 return 0;
14593 ;
14594 return 0;
14595 }
14596 _ACEOF
14597 if ac_fn_c_try_compile "$LINENO"; then :
14598 ac_cv_header_time=yes
14599 else
14600 ac_cv_header_time=no
14601 fi
14602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14603 fi
14604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
14605 $as_echo "$ac_cv_header_time" >&6; }
14606 if test $ac_cv_header_time = yes; then
14607
14608 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
14609
14610 fi
14611
14612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
14613 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
14614 if test "${gcc_cv_header_string+set}" = set; then :
14615 $as_echo_n "(cached) " >&6
14616 else
14617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14618 /* end confdefs.h. */
14619 #include <string.h>
14620 #include <strings.h>
14621 int
14622 main ()
14623 {
14624
14625 ;
14626 return 0;
14627 }
14628 _ACEOF
14629 if ac_fn_c_try_compile "$LINENO"; then :
14630 gcc_cv_header_string=yes
14631 else
14632 gcc_cv_header_string=no
14633 fi
14634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14635 fi
14636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
14637 $as_echo "$gcc_cv_header_string" >&6; }
14638 if test $gcc_cv_header_string = yes; then
14639
14640 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
14641
14642 fi
14643
14644 for ac_header in pthread.h unistd.h semaphore.h sys/loadavg.h sys/sysctl.h sys/time.h
14645 do :
14646 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14647 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14648 eval as_val=\$$as_ac_Header
14649 if test "x$as_val" = x""yes; then :
14650 cat >>confdefs.h <<_ACEOF
14651 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14652 _ACEOF
14653
14654 fi
14655
14656 done
14657
14658
14659
14660
14661 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
14662
14663 acx_cv_header_stdint=stddef.h
14664 acx_cv_header_stdint_kind="(already complete)"
14665 for i in stdint.h $inttype_headers; do
14666 unset ac_cv_type_uintptr_t
14667 unset ac_cv_type_uintmax_t
14668 unset ac_cv_type_int_least32_t
14669 unset ac_cv_type_int_fast32_t
14670 unset ac_cv_type_uint64_t
14671 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
14672 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
14673 #include <$i>
14674 "
14675 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
14676 acx_cv_header_stdint=$i
14677 else
14678 continue
14679 fi
14680
14681 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
14682 #include <$i>
14683 "
14684 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
14685
14686 else
14687 acx_cv_header_stdint_kind="(mostly complete)"
14688 fi
14689
14690 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
14691 #include <$i>
14692 "
14693 if test "x$ac_cv_type_int_least32_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_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
14700 #include <$i>
14701 "
14702 if test "x$ac_cv_type_int_fast32_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" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
14709 #include <$i>
14710 "
14711 if test "x$ac_cv_type_uint64_t" = x""yes; then :
14712
14713 else
14714 acx_cv_header_stdint_kind="(lacks uint64_t)"
14715 fi
14716
14717 break
14718 done
14719 if test "$acx_cv_header_stdint" = stddef.h; then
14720 acx_cv_header_stdint_kind="(lacks uintmax_t)"
14721 for i in stdint.h $inttype_headers; do
14722 unset ac_cv_type_uintptr_t
14723 unset ac_cv_type_uint32_t
14724 unset ac_cv_type_uint64_t
14725 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
14726 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
14727 #include <$i>
14728 "
14729 if test "x$ac_cv_type_uint32_t" = x""yes; then :
14730 acx_cv_header_stdint=$i
14731 else
14732 continue
14733 fi
14734
14735 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
14736 #include <$i>
14737 "
14738 if test "x$ac_cv_type_uint64_t" = x""yes; then :
14739
14740 fi
14741
14742 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
14743 #include <$i>
14744 "
14745 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
14746
14747 fi
14748
14749 break
14750 done
14751 fi
14752 if test "$acx_cv_header_stdint" = stddef.h; then
14753 acx_cv_header_stdint_kind="(u_intXX_t style)"
14754 for i in sys/types.h $inttype_headers; do
14755 unset ac_cv_type_u_int32_t
14756 unset ac_cv_type_u_int64_t
14757 $as_echo_n "looking for u_intXX_t types in $i, " >&6
14758 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
14759 #include <$i>
14760 "
14761 if test "x$ac_cv_type_u_int32_t" = x""yes; then :
14762 acx_cv_header_stdint=$i
14763 else
14764 continue
14765 fi
14766
14767 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
14768 #include <$i>
14769 "
14770 if test "x$ac_cv_type_u_int64_t" = x""yes; then :
14771
14772 fi
14773
14774 break
14775 done
14776 fi
14777 if test "$acx_cv_header_stdint" = stddef.h; then
14778 acx_cv_header_stdint_kind="(using manual detection)"
14779 fi
14780
14781 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
14782 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
14783 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
14784 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
14785 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
14786
14787 # ----------------- Summarize what we found so far
14788
14789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
14790 $as_echo_n "checking what to include in gstdint.h... " >&6; }
14791
14792 case `$as_basename -- gstdint.h ||
14793 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
14794 Xgstdint.h : 'X\(//\)$' \| \
14795 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
14796 $as_echo X/gstdint.h |
14797 sed '/^.*\/\([^/][^/]*\)\/*$/{
14798 s//\1/
14799 q
14800 }
14801 /^X\/\(\/\/\)$/{
14802 s//\1/
14803 q
14804 }
14805 /^X\/\(\/\).*/{
14806 s//\1/
14807 q
14808 }
14809 s/.*/./; q'` in
14810 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
14811 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14812 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
14813 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14814 *) ;;
14815 esac
14816
14817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
14818 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
14819
14820 # ----------------- done included file, check C basic types --------
14821
14822 # Lacking an uintptr_t? Test size of void *
14823 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
14824 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
14825 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14826 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14827 # This bug is HP SR number 8606223364.
14828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
14829 $as_echo_n "checking size of void *... " >&6; }
14830 if test "${ac_cv_sizeof_void_p+set}" = set; then :
14831 $as_echo_n "(cached) " >&6
14832 else
14833 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
14834
14835 else
14836 if test "$ac_cv_type_void_p" = yes; then
14837 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14838 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14839 { as_fn_set_status 77
14840 as_fn_error "cannot compute sizeof (void *)
14841 See \`config.log' for more details." "$LINENO" 5; }; }
14842 else
14843 ac_cv_sizeof_void_p=0
14844 fi
14845 fi
14846
14847 fi
14848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
14849 $as_echo "$ac_cv_sizeof_void_p" >&6; }
14850
14851
14852
14853 cat >>confdefs.h <<_ACEOF
14854 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14855 _ACEOF
14856
14857 ;;
14858 esac
14859
14860 # Lacking an uint64_t? Test size of long
14861 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
14862 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
14863 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14864 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14865 # This bug is HP SR number 8606223364.
14866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
14867 $as_echo_n "checking size of long... " >&6; }
14868 if test "${ac_cv_sizeof_long+set}" = set; then :
14869 $as_echo_n "(cached) " >&6
14870 else
14871 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
14872
14873 else
14874 if test "$ac_cv_type_long" = yes; then
14875 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14876 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14877 { as_fn_set_status 77
14878 as_fn_error "cannot compute sizeof (long)
14879 See \`config.log' for more details." "$LINENO" 5; }; }
14880 else
14881 ac_cv_sizeof_long=0
14882 fi
14883 fi
14884
14885 fi
14886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
14887 $as_echo "$ac_cv_sizeof_long" >&6; }
14888
14889
14890
14891 cat >>confdefs.h <<_ACEOF
14892 #define SIZEOF_LONG $ac_cv_sizeof_long
14893 _ACEOF
14894
14895 ;;
14896 esac
14897
14898 if test $acx_cv_header_stdint = stddef.h; then
14899 # Lacking a good header? Test size of everything and deduce all types.
14900 # The cast to long int works around a bug in the HP C Compiler
14901 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14902 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14903 # This bug is HP SR number 8606223364.
14904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
14905 $as_echo_n "checking size of int... " >&6; }
14906 if test "${ac_cv_sizeof_int+set}" = set; then :
14907 $as_echo_n "(cached) " >&6
14908 else
14909 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
14910
14911 else
14912 if test "$ac_cv_type_int" = yes; then
14913 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14914 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14915 { as_fn_set_status 77
14916 as_fn_error "cannot compute sizeof (int)
14917 See \`config.log' for more details." "$LINENO" 5; }; }
14918 else
14919 ac_cv_sizeof_int=0
14920 fi
14921 fi
14922
14923 fi
14924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
14925 $as_echo "$ac_cv_sizeof_int" >&6; }
14926
14927
14928
14929 cat >>confdefs.h <<_ACEOF
14930 #define SIZEOF_INT $ac_cv_sizeof_int
14931 _ACEOF
14932
14933
14934 # The cast to long int works around a bug in the HP C Compiler
14935 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14936 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14937 # This bug is HP SR number 8606223364.
14938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
14939 $as_echo_n "checking size of short... " >&6; }
14940 if test "${ac_cv_sizeof_short+set}" = set; then :
14941 $as_echo_n "(cached) " >&6
14942 else
14943 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
14944
14945 else
14946 if test "$ac_cv_type_short" = yes; then
14947 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14948 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14949 { as_fn_set_status 77
14950 as_fn_error "cannot compute sizeof (short)
14951 See \`config.log' for more details." "$LINENO" 5; }; }
14952 else
14953 ac_cv_sizeof_short=0
14954 fi
14955 fi
14956
14957 fi
14958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
14959 $as_echo "$ac_cv_sizeof_short" >&6; }
14960
14961
14962
14963 cat >>confdefs.h <<_ACEOF
14964 #define SIZEOF_SHORT $ac_cv_sizeof_short
14965 _ACEOF
14966
14967
14968 # The cast to long int works around a bug in the HP C Compiler
14969 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14970 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14971 # This bug is HP SR number 8606223364.
14972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
14973 $as_echo_n "checking size of char... " >&6; }
14974 if test "${ac_cv_sizeof_char+set}" = set; then :
14975 $as_echo_n "(cached) " >&6
14976 else
14977 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
14978
14979 else
14980 if test "$ac_cv_type_char" = yes; then
14981 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14982 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14983 { as_fn_set_status 77
14984 as_fn_error "cannot compute sizeof (char)
14985 See \`config.log' for more details." "$LINENO" 5; }; }
14986 else
14987 ac_cv_sizeof_char=0
14988 fi
14989 fi
14990
14991 fi
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
14993 $as_echo "$ac_cv_sizeof_char" >&6; }
14994
14995
14996
14997 cat >>confdefs.h <<_ACEOF
14998 #define SIZEOF_CHAR $ac_cv_sizeof_char
14999 _ACEOF
15000
15001
15002
15003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
15004 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
15005 case "$ac_cv_sizeof_char" in
15006 1) acx_cv_type_int8_t=char ;;
15007 *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
15008 esac
15009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
15010 $as_echo "$acx_cv_type_int8_t" >&6; }
15011
15012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
15013 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
15014 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
15015 2:*) acx_cv_type_int16_t=int ;;
15016 *:2) acx_cv_type_int16_t=short ;;
15017 *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
15018 esac
15019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
15020 $as_echo "$acx_cv_type_int16_t" >&6; }
15021
15022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
15023 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
15024 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
15025 4:*) acx_cv_type_int32_t=int ;;
15026 *:4) acx_cv_type_int32_t=long ;;
15027 *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
15028 esac
15029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
15030 $as_echo "$acx_cv_type_int32_t" >&6; }
15031 fi
15032
15033 # These tests are here to make the output prettier
15034
15035 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
15036 case "$ac_cv_sizeof_long" in
15037 8) acx_cv_type_int64_t=long ;;
15038 esac
15039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
15040 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
15041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
15042 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
15043 fi
15044
15045 # Now we can use the above types
15046
15047 if test "$ac_cv_type_uintptr_t" != yes; then
15048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
15049 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
15050 case $ac_cv_sizeof_void_p in
15051 2) acx_cv_type_intptr_t=int16_t ;;
15052 4) acx_cv_type_intptr_t=int32_t ;;
15053 8) acx_cv_type_intptr_t=int64_t ;;
15054 *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
15055 esac
15056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
15057 $as_echo "$acx_cv_type_intptr_t" >&6; }
15058 fi
15059
15060 # ----------------- done all checks, emit header -------------
15061 ac_config_commands="$ac_config_commands gstdint.h"
15062
15063
15064
15065
15066 XPCFLAGS=""
15067 case "$host" in
15068 *-*-rtems*)
15069 # RTEMS supports Pthreads, but the library is not available at GCC build time.
15070 ;;
15071 nvptx*-*-*)
15072 # NVPTX does not support Pthreads, has its own code replacement.
15073 ;;
15074 *)
15075 # Check to see if -pthread or -lpthread is needed. Prefer the former.
15076 # In case the pthread.h system header is not found, this test will fail.
15077 CFLAGS="$CFLAGS -pthread"
15078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15079 /* end confdefs.h. */
15080 #include <pthread.h>
15081 void *g(void *d) { return NULL; }
15082 int
15083 main ()
15084 {
15085 pthread_t t; pthread_create(&t,NULL,g,NULL);
15086 ;
15087 return 0;
15088 }
15089 _ACEOF
15090 if ac_fn_c_try_link "$LINENO"; then :
15091 XPCFLAGS=" -Wc,-pthread"
15092 else
15093 CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
15094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15095 /* end confdefs.h. */
15096 #include <pthread.h>
15097 void *g(void *d) { return NULL; }
15098 int
15099 main ()
15100 {
15101 pthread_t t; pthread_create(&t,NULL,g,NULL);
15102 ;
15103 return 0;
15104 }
15105 _ACEOF
15106 if ac_fn_c_try_link "$LINENO"; then :
15107
15108 else
15109 as_fn_error "Pthreads are required to build libgomp" "$LINENO" 5
15110 fi
15111 rm -f core conftest.err conftest.$ac_objext \
15112 conftest$ac_exeext conftest.$ac_ext
15113 fi
15114 rm -f core conftest.err conftest.$ac_objext \
15115 conftest$ac_exeext conftest.$ac_ext
15116 esac
15117
15118 # Plugins for offload execution, configure.ac fragment. -*- mode: autoconf -*-
15119 #
15120 # Copyright (C) 2014-2016 Free Software Foundation, Inc.
15121 #
15122 # Contributed by Mentor Embedded.
15123 #
15124 # This file is part of the GNU Offloading and Multi Processing Library
15125 # (libgomp).
15126 #
15127 # Libgomp is free software; you can redistribute it and/or modify it
15128 # under the terms of the GNU General Public License as published by
15129 # the Free Software Foundation; either version 3, or (at your option)
15130 # any later version.
15131 #
15132 # Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY
15133 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15134 # FOR A PARTICULAR PURPOSE. See the GNU General Public License for
15135 # more details.
15136 #
15137 # Under Section 7 of GPL version 3, you are granted additional
15138 # permissions described in the GCC Runtime Library Exception, version
15139 # 3.1, as published by the Free Software Foundation.
15140 #
15141 # You should have received a copy of the GNU General Public License and
15142 # a copy of the GCC Runtime Library Exception along with this program;
15143 # see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
15144 # <http://www.gnu.org/licenses/>.
15145
15146 offload_targets=
15147
15148 plugin_support=yes
15149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
15150 $as_echo_n "checking for dlsym in -ldl... " >&6; }
15151 if test "${ac_cv_lib_dl_dlsym+set}" = set; then :
15152 $as_echo_n "(cached) " >&6
15153 else
15154 ac_check_lib_save_LIBS=$LIBS
15155 LIBS="-ldl $LIBS"
15156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15157 /* end confdefs.h. */
15158
15159 /* Override any GCC internal prototype to avoid an error.
15160 Use char because int might match the return type of a GCC
15161 builtin and then its argument prototype would still apply. */
15162 #ifdef __cplusplus
15163 extern "C"
15164 #endif
15165 char dlsym ();
15166 int
15167 main ()
15168 {
15169 return dlsym ();
15170 ;
15171 return 0;
15172 }
15173 _ACEOF
15174 if ac_fn_c_try_link "$LINENO"; then :
15175 ac_cv_lib_dl_dlsym=yes
15176 else
15177 ac_cv_lib_dl_dlsym=no
15178 fi
15179 rm -f core conftest.err conftest.$ac_objext \
15180 conftest$ac_exeext conftest.$ac_ext
15181 LIBS=$ac_check_lib_save_LIBS
15182 fi
15183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
15184 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
15185 if test "x$ac_cv_lib_dl_dlsym" = x""yes; then :
15186 cat >>confdefs.h <<_ACEOF
15187 #define HAVE_LIBDL 1
15188 _ACEOF
15189
15190 LIBS="-ldl $LIBS"
15191
15192 else
15193 plugin_support=no
15194 fi
15195
15196 if test x"$plugin_support" = xyes; then
15197
15198 $as_echo "#define PLUGIN_SUPPORT 1" >>confdefs.h
15199
15200 elif test "x${enable_offload_targets-no}" != xno; then
15201 as_fn_error "Can't support offloading without support for plugins" "$LINENO" 5
15202 fi
15203
15204
15205
15206 for ac_header in $ac_header_list
15207 do :
15208 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15209 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15210 "
15211 eval as_val=\$$as_ac_Header
15212 if test "x$as_val" = x""yes; then :
15213 cat >>confdefs.h <<_ACEOF
15214 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15215 _ACEOF
15216
15217 fi
15218
15219 done
15220
15221
15222
15223
15224
15225
15226
15227 for ac_func in $ac_func_list
15228 do :
15229 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15230 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15231 eval as_val=\$$as_ac_var
15232 if test "x$as_val" = x""yes; then :
15233 cat >>confdefs.h <<_ACEOF
15234 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15235 _ACEOF
15236
15237 fi
15238 done
15239
15240
15241
15242
15243
15244
15245
15246
15247
15248
15249
15250
15251
15252
15253
15254
15255 # Look for the CUDA driver package.
15256 CUDA_DRIVER_INCLUDE=
15257 CUDA_DRIVER_LIB=
15258
15259
15260 CUDA_DRIVER_CPPFLAGS=
15261 CUDA_DRIVER_LDFLAGS=
15262
15263 # Check whether --with-cuda-driver was given.
15264 if test "${with_cuda_driver+set}" = set; then :
15265 withval=$with_cuda_driver;
15266 fi
15267
15268
15269 # Check whether --with-cuda-driver-include was given.
15270 if test "${with_cuda_driver_include+set}" = set; then :
15271 withval=$with_cuda_driver_include;
15272 fi
15273
15274
15275 # Check whether --with-cuda-driver-lib was given.
15276 if test "${with_cuda_driver_lib+set}" = set; then :
15277 withval=$with_cuda_driver_lib;
15278 fi
15279
15280 if test "x$with_cuda_driver" != x; then
15281 CUDA_DRIVER_INCLUDE=$with_cuda_driver/include
15282 CUDA_DRIVER_LIB=$with_cuda_driver/lib
15283 fi
15284 if test "x$with_cuda_driver_include" != x; then
15285 CUDA_DRIVER_INCLUDE=$with_cuda_driver_include
15286 fi
15287 if test "x$with_cuda_driver_lib" != x; then
15288 CUDA_DRIVER_LIB=$with_cuda_driver_lib
15289 fi
15290 if test "x$CUDA_DRIVER_INCLUDE" != x; then
15291 CUDA_DRIVER_CPPFLAGS=-I$CUDA_DRIVER_INCLUDE
15292 fi
15293 if test "x$CUDA_DRIVER_LIB" != x; then
15294 CUDA_DRIVER_LDFLAGS=-L$CUDA_DRIVER_LIB
15295 fi
15296
15297 PLUGIN_NVPTX=0
15298 PLUGIN_NVPTX_CPPFLAGS=
15299 PLUGIN_NVPTX_LDFLAGS=
15300 PLUGIN_NVPTX_LIBS=
15301
15302
15303
15304
15305
15306 # Look for HSA run-time, its includes and libraries
15307
15308 HSA_RUNTIME_INCLUDE=
15309 HSA_RUNTIME_LIB=
15310
15311
15312 HSA_RUNTIME_CPPFLAGS=
15313 HSA_RUNTIME_LDFLAGS=
15314
15315
15316 # Check whether --with-hsa-runtime was given.
15317 if test "${with_hsa_runtime+set}" = set; then :
15318 withval=$with_hsa_runtime;
15319 fi
15320
15321
15322 # Check whether --with-hsa-runtime-include was given.
15323 if test "${with_hsa_runtime_include+set}" = set; then :
15324 withval=$with_hsa_runtime_include;
15325 fi
15326
15327
15328 # Check whether --with-hsa-runtime-lib was given.
15329 if test "${with_hsa_runtime_lib+set}" = set; then :
15330 withval=$with_hsa_runtime_lib;
15331 fi
15332
15333 if test "x$with_hsa_runtime" != x; then
15334 HSA_RUNTIME_INCLUDE=$with_hsa_runtime/include
15335 HSA_RUNTIME_LIB=$with_hsa_runtime/lib
15336 fi
15337 if test "x$with_hsa_runtime_include" != x; then
15338 HSA_RUNTIME_INCLUDE=$with_hsa_runtime_include
15339 fi
15340 if test "x$with_hsa_runtime_lib" != x; then
15341 HSA_RUNTIME_LIB=$with_hsa_runtime_lib
15342 fi
15343 if test "x$HSA_RUNTIME_INCLUDE" != x; then
15344 HSA_RUNTIME_CPPFLAGS=-I$HSA_RUNTIME_INCLUDE
15345 fi
15346 if test "x$HSA_RUNTIME_LIB" != x; then
15347 HSA_RUNTIME_LDFLAGS=-L$HSA_RUNTIME_LIB
15348 fi
15349
15350 PLUGIN_HSA=0
15351 PLUGIN_HSA_CPPFLAGS=
15352 PLUGIN_HSA_LDFLAGS=
15353 PLUGIN_HSA_LIBS=
15354
15355
15356
15357
15358
15359 # Get offload targets and path to install tree of offloading compiler.
15360 offload_additional_options=
15361 offload_additional_lib_paths=
15362
15363
15364 if test x"$enable_offload_targets" != x; then
15365 for tgt in `echo $enable_offload_targets | sed -e 's#,# #g'`; do
15366 tgt_dir=`echo $tgt | grep '=' | sed 's/.*=//'`
15367 tgt=`echo $tgt | sed 's/=.*//'`
15368 tgt_name=
15369 case $tgt in
15370 *-intelmic-* | *-intelmicemul-*)
15371 tgt_name=intelmic
15372 ;;
15373 nvptx*)
15374 tgt_name=nvptx
15375 PLUGIN_NVPTX=$tgt
15376 PLUGIN_NVPTX_CPPFLAGS=$CUDA_DRIVER_CPPFLAGS
15377 PLUGIN_NVPTX_LDFLAGS=$CUDA_DRIVER_LDFLAGS
15378 PLUGIN_NVPTX_LIBS='-lcuda'
15379
15380 PLUGIN_NVPTX_save_CPPFLAGS=$CPPFLAGS
15381 CPPFLAGS="$PLUGIN_NVPTX_CPPFLAGS $CPPFLAGS"
15382 PLUGIN_NVPTX_save_LDFLAGS=$LDFLAGS
15383 LDFLAGS="$PLUGIN_NVPTX_LDFLAGS $LDFLAGS"
15384 PLUGIN_NVPTX_save_LIBS=$LIBS
15385 LIBS="$PLUGIN_NVPTX_LIBS $LIBS"
15386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15387 /* end confdefs.h. */
15388 #include "cuda.h"
15389 int
15390 main ()
15391 {
15392 CUresult r = cuCtxPushCurrent (NULL);
15393 ;
15394 return 0;
15395 }
15396 _ACEOF
15397 if ac_fn_c_try_link "$LINENO"; then :
15398 PLUGIN_NVPTX=1
15399 fi
15400 rm -f core conftest.err conftest.$ac_objext \
15401 conftest$ac_exeext conftest.$ac_ext
15402 CPPFLAGS=$PLUGIN_NVPTX_save_CPPFLAGS
15403 LDFLAGS=$PLUGIN_NVPTX_save_LDFLAGS
15404 LIBS=$PLUGIN_NVPTX_save_LIBS
15405 case $PLUGIN_NVPTX in
15406 nvptx*)
15407 PLUGIN_NVPTX=0
15408 as_fn_error "CUDA driver package required for nvptx support" "$LINENO" 5
15409 ;;
15410 esac
15411 ;;
15412 hsa*)
15413 case "${target}" in
15414 x86_64-*-*)
15415 case " ${CC} ${CFLAGS} " in
15416 *" -m32 "*)
15417 PLUGIN_HSA=0
15418 ;;
15419 *)
15420 tgt_name=hsa
15421 PLUGIN_HSA=$tgt
15422 PLUGIN_HSA_CPPFLAGS=$HSA_RUNTIME_CPPFLAGS
15423 PLUGIN_HSA_LDFLAGS="$HSA_RUNTIME_LDFLAGS"
15424 PLUGIN_HSA_LIBS="-ldl"
15425
15426 PLUGIN_HSA_save_CPPFLAGS=$CPPFLAGS
15427 CPPFLAGS="$PLUGIN_HSA_CPPFLAGS $CPPFLAGS"
15428 PLUGIN_HSA_save_LDFLAGS=$LDFLAGS
15429 LDFLAGS="$PLUGIN_HSA_LDFLAGS $LDFLAGS"
15430 PLUGIN_HSA_save_LIBS=$LIBS
15431 LIBS="$PLUGIN_HSA_LIBS $LIBS"
15432
15433 PLUGIN_HSA=1
15434 CPPFLAGS=$PLUGIN_HSA_save_CPPFLAGS
15435 LDFLAGS=$PLUGIN_HSA_save_LDFLAGS
15436 LIBS=$PLUGIN_HSA_save_LIBS
15437 case $PLUGIN_HSA in
15438 hsa*)
15439 HSA_PLUGIN=0
15440 as_fn_error "HSA run-time package required for HSA support" "$LINENO" 5
15441 ;;
15442 esac
15443 ;;
15444 esac
15445 ;;
15446 *-*-*)
15447 PLUGIN_HSA=0
15448 ;;
15449 esac
15450 ;;
15451 *)
15452 as_fn_error "unknown offload target specified" "$LINENO" 5
15453 ;;
15454 esac
15455 if test x"$tgt_name" = x; then
15456 # Don't configure libgomp for this offloading target if we don't build
15457 # the corresponding plugin.
15458 continue
15459 elif test x"$offload_targets" = x; then
15460 offload_targets=$tgt_name
15461 else
15462 offload_targets=$offload_targets,$tgt_name
15463 fi
15464 if test "$tgt_name" = hsa; then
15465 # Offloading compilation is all handled by the target compiler.
15466 :
15467 elif test x"$tgt_dir" != x; then
15468 offload_additional_options="$offload_additional_options -B$tgt_dir/libexec/gcc/\$(target_alias)/\$(gcc_version) -B$tgt_dir/bin"
15469 offload_additional_lib_paths="$offload_additional_lib_paths:$tgt_dir/lib64:$tgt_dir/lib:$tgt_dir/lib32"
15470 else
15471 offload_additional_options="$offload_additional_options -B\$(libexecdir)/gcc/\$(target_alias)/\$(gcc_version) -B\$(bindir)"
15472 offload_additional_lib_paths="$offload_additional_lib_paths:$toolexeclibdir"
15473 fi
15474 done
15475 fi
15476
15477 cat >>confdefs.h <<_ACEOF
15478 #define OFFLOAD_TARGETS "$offload_targets"
15479 _ACEOF
15480
15481 if test $PLUGIN_NVPTX = 1; then
15482 PLUGIN_NVPTX_TRUE=
15483 PLUGIN_NVPTX_FALSE='#'
15484 else
15485 PLUGIN_NVPTX_TRUE='#'
15486 PLUGIN_NVPTX_FALSE=
15487 fi
15488
15489
15490 cat >>confdefs.h <<_ACEOF
15491 #define PLUGIN_NVPTX $PLUGIN_NVPTX
15492 _ACEOF
15493
15494 if test $PLUGIN_HSA = 1; then
15495 PLUGIN_HSA_TRUE=
15496 PLUGIN_HSA_FALSE='#'
15497 else
15498 PLUGIN_HSA_TRUE='#'
15499 PLUGIN_HSA_FALSE=
15500 fi
15501
15502
15503 cat >>confdefs.h <<_ACEOF
15504 #define PLUGIN_HSA $PLUGIN_HSA
15505 _ACEOF
15506
15507
15508 if test "$HSA_RUNTIME_LIB" != ""; then
15509 HSA_RUNTIME_LIB="$HSA_RUNTIME_LIB/"
15510 fi
15511
15512
15513 cat >>confdefs.h <<_ACEOF
15514 #define HSA_RUNTIME_LIB "$HSA_RUNTIME_LIB"
15515 _ACEOF
15516
15517
15518
15519 # Check for functions needed.
15520 for ac_func in getloadavg clock_gettime strtoull
15521 do :
15522 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15523 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15524 eval as_val=\$$as_ac_var
15525 if test "x$as_val" = x""yes; then :
15526 cat >>confdefs.h <<_ACEOF
15527 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15528 _ACEOF
15529
15530 fi
15531 done
15532
15533
15534 # Check for broken semaphore implementation on darwin.
15535 # sem_init returns: sem_init error: Function not implemented.
15536 case "$host" in
15537 *-darwin*)
15538
15539 $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
15540
15541 ;;
15542 esac
15543
15544 # RTEMS specific checks
15545 case "$host" in
15546 *-*-rtems*)
15547 ac_fn_c_check_type "$LINENO" "struct _Mutex_Control" "ac_cv_type_struct__Mutex_Control" "#include <sys/lock.h>
15548 "
15549 if test "x$ac_cv_type_struct__Mutex_Control" = x""yes; then :
15550
15551 cat >>confdefs.h <<_ACEOF
15552 #define HAVE_STRUCT__MUTEX_CONTROL 1
15553 _ACEOF
15554
15555
15556 fi
15557
15558 ;;
15559 esac
15560
15561 # Check whether --enable-linux-futex was given.
15562 if test "${enable_linux_futex+set}" = set; then :
15563 enableval=$enable_linux_futex;
15564 case "$enableval" in
15565 yes|no|default) ;;
15566 *) as_fn_error "Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;;
15567 esac
15568
15569 else
15570 enable_linux_futex=default
15571 fi
15572
15573
15574 case "$target" in
15575 *-linux*)
15576 case "$enable_linux_futex" in
15577 default)
15578 # If headers don't have gettid/futex syscalls definition, then
15579 # default to no, otherwise there will be compile time failures.
15580 # Otherwise, default to yes. If we don't detect we are
15581 # compiled/linked against NPTL and not cross-compiling, check
15582 # if programs are run by default against NPTL and if not, issue
15583 # a warning.
15584 enable_linux_futex=no
15585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15586 /* end confdefs.h. */
15587 #include <sys/syscall.h>
15588 int lk;
15589 int
15590 main ()
15591 {
15592 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15593 ;
15594 return 0;
15595 }
15596 _ACEOF
15597 if ac_fn_c_try_link "$LINENO"; then :
15598 save_LIBS="$LIBS"
15599 LIBS="-lpthread $LIBS"
15600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15601 /* end confdefs.h. */
15602 #ifndef _GNU_SOURCE
15603 #define _GNU_SOURCE 1
15604 #endif
15605 #include <pthread.h>
15606 pthread_t th; void *status;
15607 int
15608 main ()
15609 {
15610 pthread_tryjoin_np (th, &status);
15611 ;
15612 return 0;
15613 }
15614 _ACEOF
15615 if ac_fn_c_try_link "$LINENO"; then :
15616 enable_linux_futex=yes
15617 else
15618 if test x$cross_compiling = xno; then
15619 if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
15620 | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else
15621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls.
15622 If so, please configure with --disable-linux-futex" >&5
15623 $as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
15624 If so, please configure with --disable-linux-futex" >&2;}
15625 fi
15626 fi
15627 enable_linux_futex=yes
15628 fi
15629 rm -f core conftest.err conftest.$ac_objext \
15630 conftest$ac_exeext conftest.$ac_ext
15631 LIBS="$save_LIBS"
15632 fi
15633 rm -f core conftest.err conftest.$ac_objext \
15634 conftest$ac_exeext conftest.$ac_ext
15635 ;;
15636 yes)
15637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15638 /* end confdefs.h. */
15639 #include <sys/syscall.h>
15640 int lk;
15641 int
15642 main ()
15643 {
15644 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15645 ;
15646 return 0;
15647 }
15648 _ACEOF
15649 if ac_fn_c_try_link "$LINENO"; then :
15650
15651 else
15652 as_fn_error "SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5
15653 fi
15654 rm -f core conftest.err conftest.$ac_objext \
15655 conftest$ac_exeext conftest.$ac_ext
15656 ;;
15657 esac
15658 ;;
15659 *)
15660 enable_linux_futex=no
15661 ;;
15662 esac
15663 if test x$enable_linux_futex = xyes; then
15664 :
15665 fi
15666
15667
15668 # Check for pthread_{,attr_}[sg]etaffinity_np.
15669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15670 /* end confdefs.h. */
15671 #define _GNU_SOURCE
15672 #include <pthread.h>
15673 int
15674 main ()
15675 {
15676 cpu_set_t cpuset;
15677 pthread_attr_t attr;
15678 pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15679 if (CPU_ISSET (0, &cpuset))
15680 CPU_SET (1, &cpuset);
15681 else
15682 CPU_ZERO (&cpuset);
15683 pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15684 pthread_attr_init (&attr);
15685 pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15686 pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15687 ;
15688 return 0;
15689 }
15690 _ACEOF
15691 if ac_fn_c_try_link "$LINENO"; then :
15692
15693 $as_echo "#define HAVE_PTHREAD_AFFINITY_NP 1" >>confdefs.h
15694
15695 fi
15696 rm -f core conftest.err conftest.$ac_objext \
15697 conftest$ac_exeext conftest.$ac_ext
15698
15699 # At least for glibc, clock_gettime is in librt. But don't pull that
15700 # in if it still doesn't give us the function we want.
15701 if test $ac_cv_func_clock_gettime = no; then
15702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
15703 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
15704 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
15705 $as_echo_n "(cached) " >&6
15706 else
15707 ac_check_lib_save_LIBS=$LIBS
15708 LIBS="-lrt $LIBS"
15709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15710 /* end confdefs.h. */
15711
15712 /* Override any GCC internal prototype to avoid an error.
15713 Use char because int might match the return type of a GCC
15714 builtin and then its argument prototype would still apply. */
15715 #ifdef __cplusplus
15716 extern "C"
15717 #endif
15718 char clock_gettime ();
15719 int
15720 main ()
15721 {
15722 return clock_gettime ();
15723 ;
15724 return 0;
15725 }
15726 _ACEOF
15727 if ac_fn_c_try_link "$LINENO"; then :
15728 ac_cv_lib_rt_clock_gettime=yes
15729 else
15730 ac_cv_lib_rt_clock_gettime=no
15731 fi
15732 rm -f core conftest.err conftest.$ac_objext \
15733 conftest$ac_exeext conftest.$ac_ext
15734 LIBS=$ac_check_lib_save_LIBS
15735 fi
15736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
15737 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
15738 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
15739 LIBS="-lrt $LIBS"
15740
15741 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
15742
15743 fi
15744
15745 fi
15746
15747 # See if we support thread-local storage.
15748
15749
15750 # Check whether --enable-tls was given.
15751 if test "${enable_tls+set}" = set; then :
15752 enableval=$enable_tls;
15753 case "$enableval" in
15754 yes|no) ;;
15755 *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
15756 esac
15757
15758 else
15759 enable_tls=yes
15760 fi
15761
15762
15763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
15764 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
15765 if test "${gcc_cv_have_tls+set}" = set; then :
15766 $as_echo_n "(cached) " >&6
15767 else
15768
15769 if test "$cross_compiling" = yes; then :
15770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15771 /* end confdefs.h. */
15772 __thread int a; int b; int main() { return a = b; }
15773 _ACEOF
15774 if ac_fn_c_try_link "$LINENO"; then :
15775 chktls_save_LDFLAGS="$LDFLAGS"
15776 case $host in
15777 *-*-linux*)
15778 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
15779 ;;
15780 esac
15781 chktls_save_CFLAGS="$CFLAGS"
15782 CFLAGS="-fPIC $CFLAGS"
15783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15784 /* end confdefs.h. */
15785 int f() { return 0; }
15786 _ACEOF
15787 if ac_fn_c_try_link "$LINENO"; then :
15788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15789 /* end confdefs.h. */
15790 __thread int a; int b; int f() { return a = b; }
15791 _ACEOF
15792 if ac_fn_c_try_link "$LINENO"; then :
15793 gcc_cv_have_tls=yes
15794 else
15795 gcc_cv_have_tls=no
15796 fi
15797 rm -f core conftest.err conftest.$ac_objext \
15798 conftest$ac_exeext conftest.$ac_ext
15799 else
15800 gcc_cv_have_tls=yes
15801 fi
15802 rm -f core conftest.err conftest.$ac_objext \
15803 conftest$ac_exeext conftest.$ac_ext
15804 CFLAGS="$chktls_save_CFLAGS"
15805 LDFLAGS="$chktls_save_LDFLAGS"
15806 else
15807 gcc_cv_have_tls=no
15808 fi
15809 rm -f core conftest.err conftest.$ac_objext \
15810 conftest$ac_exeext conftest.$ac_ext
15811
15812
15813 else
15814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15815 /* end confdefs.h. */
15816 __thread int a; int b; int main() { return a = b; }
15817 _ACEOF
15818 if ac_fn_c_try_run "$LINENO"; then :
15819 chktls_save_LDFLAGS="$LDFLAGS"
15820 LDFLAGS="-static $LDFLAGS"
15821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15822 /* end confdefs.h. */
15823 int main() { return 0; }
15824 _ACEOF
15825 if ac_fn_c_try_link "$LINENO"; then :
15826 if test "$cross_compiling" = yes; then :
15827 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15828 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15829 as_fn_error "cannot run test program while cross compiling
15830 See \`config.log' for more details." "$LINENO" 5; }
15831 else
15832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15833 /* end confdefs.h. */
15834 __thread int a; int b; int main() { return a = b; }
15835 _ACEOF
15836 if ac_fn_c_try_run "$LINENO"; then :
15837 gcc_cv_have_tls=yes
15838 else
15839 gcc_cv_have_tls=no
15840 fi
15841 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15842 conftest.$ac_objext conftest.beam conftest.$ac_ext
15843 fi
15844
15845 else
15846 gcc_cv_have_tls=yes
15847 fi
15848 rm -f core conftest.err conftest.$ac_objext \
15849 conftest$ac_exeext conftest.$ac_ext
15850 LDFLAGS="$chktls_save_LDFLAGS"
15851 if test $gcc_cv_have_tls = yes; then
15852 chktls_save_CFLAGS="$CFLAGS"
15853 thread_CFLAGS=failed
15854 for flag in '' '-pthread' '-lpthread'; do
15855 CFLAGS="$flag $chktls_save_CFLAGS"
15856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15857 /* end confdefs.h. */
15858 #include <pthread.h>
15859 void *g(void *d) { return NULL; }
15860 int
15861 main ()
15862 {
15863 pthread_t t; pthread_create(&t,NULL,g,NULL);
15864 ;
15865 return 0;
15866 }
15867 _ACEOF
15868 if ac_fn_c_try_link "$LINENO"; then :
15869 thread_CFLAGS="$flag"
15870 fi
15871 rm -f core conftest.err conftest.$ac_objext \
15872 conftest$ac_exeext conftest.$ac_ext
15873 if test "X$thread_CFLAGS" != Xfailed; then
15874 break
15875 fi
15876 done
15877 CFLAGS="$chktls_save_CFLAGS"
15878 if test "X$thread_CFLAGS" != Xfailed; then
15879 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
15880 if test "$cross_compiling" = yes; then :
15881 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15882 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15883 as_fn_error "cannot run test program while cross compiling
15884 See \`config.log' for more details." "$LINENO" 5; }
15885 else
15886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15887 /* end confdefs.h. */
15888 #include <pthread.h>
15889 __thread int a;
15890 static int *volatile a_in_other_thread;
15891 static void *
15892 thread_func (void *arg)
15893 {
15894 a_in_other_thread = &a;
15895 return (void *)0;
15896 }
15897 int
15898 main ()
15899 {
15900 pthread_t thread;
15901 void *thread_retval;
15902 int *volatile a_in_main_thread;
15903 a_in_main_thread = &a;
15904 if (pthread_create (&thread, (pthread_attr_t *)0,
15905 thread_func, (void *)0))
15906 return 0;
15907 if (pthread_join (thread, &thread_retval))
15908 return 0;
15909 return (a_in_other_thread == a_in_main_thread);
15910 ;
15911 return 0;
15912 }
15913 _ACEOF
15914 if ac_fn_c_try_run "$LINENO"; then :
15915 gcc_cv_have_tls=yes
15916 else
15917 gcc_cv_have_tls=no
15918 fi
15919 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15920 conftest.$ac_objext conftest.beam conftest.$ac_ext
15921 fi
15922
15923 CFLAGS="$chktls_save_CFLAGS"
15924 fi
15925 fi
15926 else
15927 gcc_cv_have_tls=no
15928 fi
15929 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15930 conftest.$ac_objext conftest.beam conftest.$ac_ext
15931 fi
15932
15933 fi
15934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
15935 $as_echo "$gcc_cv_have_tls" >&6; }
15936 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
15937
15938 $as_echo "#define HAVE_TLS 1" >>confdefs.h
15939
15940 fi
15941
15942 # See if we have emulated thread-local storage.
15943
15944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the thread-local storage support is from emutls" >&5
15945 $as_echo_n "checking whether the thread-local storage support is from emutls... " >&6; }
15946 if test "${gcc_cv_use_emutls+set}" = set; then :
15947 $as_echo_n "(cached) " >&6
15948 else
15949
15950 gcc_cv_use_emutls=no
15951 echo '__thread int a; int b; int main() { return a = b; }' > conftest.c
15952 if { ac_try='${CC-cc} -Werror -S -o conftest.s conftest.c 1>&5'
15953 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15954 (eval $ac_try) 2>&5
15955 ac_status=$?
15956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15957 test $ac_status = 0; }; }; then
15958 if grep __emutls_get_address conftest.s > /dev/null; then
15959 gcc_cv_use_emutls=yes
15960 fi
15961 fi
15962 rm -f conftest.*
15963
15964 fi
15965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_use_emutls" >&5
15966 $as_echo "$gcc_cv_use_emutls" >&6; }
15967 if test "$gcc_cv_use_emutls" = "yes" ; then
15968
15969 $as_echo "#define USE_EMUTLS 1" >>confdefs.h
15970
15971 fi
15972
15973 # See what sort of export controls are available.
15974
15975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
15976 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
15977 if test "${libgomp_cv_have_attribute_visibility+set}" = set; then :
15978 $as_echo_n "(cached) " >&6
15979 else
15980
15981 save_CFLAGS="$CFLAGS"
15982 CFLAGS="$CFLAGS -Werror"
15983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15984 /* end confdefs.h. */
15985 void __attribute__((visibility("hidden"))) foo(void) { }
15986 int
15987 main ()
15988 {
15989
15990 ;
15991 return 0;
15992 }
15993 _ACEOF
15994 if ac_fn_c_try_compile "$LINENO"; then :
15995 libgomp_cv_have_attribute_visibility=yes
15996 else
15997 libgomp_cv_have_attribute_visibility=no
15998 fi
15999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16000 CFLAGS="$save_CFLAGS"
16001 fi
16002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_visibility" >&5
16003 $as_echo "$libgomp_cv_have_attribute_visibility" >&6; }
16004 if test $libgomp_cv_have_attribute_visibility = yes; then
16005
16006 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
16007
16008 fi
16009
16010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
16011 $as_echo_n "checking whether the target supports dllexport... " >&6; }
16012 if test "${libgomp_cv_have_attribute_dllexport+set}" = set; then :
16013 $as_echo_n "(cached) " >&6
16014 else
16015
16016 save_CFLAGS="$CFLAGS"
16017 CFLAGS="$CFLAGS -Werror"
16018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16019 /* end confdefs.h. */
16020 void __attribute__((dllexport)) foo(void) { }
16021 int
16022 main ()
16023 {
16024
16025 ;
16026 return 0;
16027 }
16028 _ACEOF
16029 if ac_fn_c_try_compile "$LINENO"; then :
16030 libgomp_cv_have_attribute_dllexport=yes
16031 else
16032 libgomp_cv_have_attribute_dllexport=no
16033 fi
16034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16035 CFLAGS="$save_CFLAGS"
16036 fi
16037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_dllexport" >&5
16038 $as_echo "$libgomp_cv_have_attribute_dllexport" >&6; }
16039 if test $libgomp_cv_have_attribute_dllexport = yes; then
16040
16041 $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
16042
16043 fi
16044
16045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
16046 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
16047 if test "${libgomp_cv_have_attribute_alias+set}" = set; then :
16048 $as_echo_n "(cached) " >&6
16049 else
16050
16051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16052 /* end confdefs.h. */
16053
16054 void foo(void) { }
16055 extern void bar(void) __attribute__((alias("foo")));
16056 int
16057 main ()
16058 {
16059 bar();
16060 ;
16061 return 0;
16062 }
16063 _ACEOF
16064 if ac_fn_c_try_link "$LINENO"; then :
16065 libgomp_cv_have_attribute_alias=yes
16066 else
16067 libgomp_cv_have_attribute_alias=no
16068 fi
16069 rm -f core conftest.err conftest.$ac_objext \
16070 conftest$ac_exeext conftest.$ac_ext
16071 fi
16072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_alias" >&5
16073 $as_echo "$libgomp_cv_have_attribute_alias" >&6; }
16074 if test $libgomp_cv_have_attribute_alias = yes; then
16075
16076 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
16077
16078 fi
16079
16080
16081 # Check whether --with-gnu-ld was given.
16082 if test "${with_gnu_ld+set}" = set; then :
16083 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16084 else
16085 with_gnu_ld=no
16086 fi
16087
16088 ac_prog=ld
16089 if test "$GCC" = yes; then
16090 # Check if gcc -print-prog-name=ld gives a path.
16091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16092 $as_echo_n "checking for ld used by $CC... " >&6; }
16093 case $host in
16094 *-*-mingw*)
16095 # gcc leaves a trailing carriage return which upsets mingw
16096 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16097 *)
16098 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16099 esac
16100 case $ac_prog in
16101 # Accept absolute paths.
16102 [\\/]* | ?:[\\/]*)
16103 re_direlt='/[^/][^/]*/\.\./'
16104 # Canonicalize the pathname of ld
16105 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16106 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16107 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16108 done
16109 test -z "$LD" && LD="$ac_prog"
16110 ;;
16111 "")
16112 # If it fails, then pretend we aren't using GCC.
16113 ac_prog=ld
16114 ;;
16115 *)
16116 # If it is relative, then search for the first ld in PATH.
16117 with_gnu_ld=unknown
16118 ;;
16119 esac
16120 elif test "$with_gnu_ld" = yes; then
16121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16122 $as_echo_n "checking for GNU ld... " >&6; }
16123 else
16124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16125 $as_echo_n "checking for non-GNU ld... " >&6; }
16126 fi
16127 if test "${lt_cv_path_LD+set}" = set; then :
16128 $as_echo_n "(cached) " >&6
16129 else
16130 if test -z "$LD"; then
16131 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16132 for ac_dir in $PATH; do
16133 IFS="$lt_save_ifs"
16134 test -z "$ac_dir" && ac_dir=.
16135 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16136 lt_cv_path_LD="$ac_dir/$ac_prog"
16137 # Check to see if the program is GNU ld. I'd rather use --version,
16138 # but apparently some variants of GNU ld only accept -v.
16139 # Break only if it was the GNU/non-GNU ld that we prefer.
16140 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16141 *GNU* | *'with BFD'*)
16142 test "$with_gnu_ld" != no && break
16143 ;;
16144 *)
16145 test "$with_gnu_ld" != yes && break
16146 ;;
16147 esac
16148 fi
16149 done
16150 IFS="$lt_save_ifs"
16151 else
16152 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16153 fi
16154 fi
16155
16156 LD="$lt_cv_path_LD"
16157 if test -n "$LD"; then
16158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16159 $as_echo "$LD" >&6; }
16160 else
16161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16162 $as_echo "no" >&6; }
16163 fi
16164 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
16165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16166 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16167 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
16168 $as_echo_n "(cached) " >&6
16169 else
16170 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16171 case `$LD -v 2>&1 </dev/null` in
16172 *GNU* | *'with BFD'*)
16173 lt_cv_prog_gnu_ld=yes
16174 ;;
16175 *)
16176 lt_cv_prog_gnu_ld=no
16177 ;;
16178 esac
16179 fi
16180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16181 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
16182 with_gnu_ld=$lt_cv_prog_gnu_ld
16183
16184
16185
16186
16187
16188
16189
16190 # If we're not using GNU ld, then there's no point in even trying these
16191 # tests. Check for that first. We should have already tested for gld
16192 # by now (in libtool), but require it now just to be safe...
16193 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
16194 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
16195
16196
16197
16198 # The name set by libtool depends on the version of libtool. Shame on us
16199 # for depending on an impl detail, but c'est la vie. Older versions used
16200 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
16201 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
16202 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
16203 # set (hence we're using an older libtool), then set it.
16204 if test x${with_gnu_ld+set} != xset; then
16205 if test x${ac_cv_prog_gnu_ld+set} != xset; then
16206 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
16207 with_gnu_ld=no
16208 else
16209 with_gnu_ld=$ac_cv_prog_gnu_ld
16210 fi
16211 fi
16212
16213 # Start by getting the version number. I think the libtool test already
16214 # does some of this, but throws away the result.
16215 libgomp_ld_is_gold=no
16216 if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
16217 libgomp_ld_is_gold=yes
16218 fi
16219
16220 ldver=`$LD --version 2>/dev/null |
16221 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'`
16222
16223 libgomp_gnu_ld_version=`echo $ldver | \
16224 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
16225
16226 # Set --gc-sections.
16227 if test "$with_gnu_ld" = "notbroken"; then
16228 # GNU ld it is! Joy and bunny rabbits!
16229
16230 # All these tests are for C++; save the language and the compiler flags.
16231 # Need to do this so that g++ won't try to link in libstdc++
16232 ac_test_CFLAGS="${CFLAGS+set}"
16233 ac_save_CFLAGS="$CFLAGS"
16234 CFLAGS='-x c++ -Wl,--gc-sections'
16235
16236 # Check for -Wl,--gc-sections
16237 # XXX This test is broken at the moment, as symbols required for linking
16238 # are now in libsupc++ (not built yet). In addition, this test has
16239 # cored on solaris in the past. In addition, --gc-sections doesn't
16240 # really work at the moment (keeps on discarding used sections, first
16241 # .eh_frame and now some of the glibc sections for iconv).
16242 # Bzzzzt. Thanks for playing, maybe next time.
16243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
16244 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
16245 if test "$cross_compiling" = yes; then :
16246 ac_sectionLDflags=yes
16247 else
16248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16249 /* end confdefs.h. */
16250
16251 int main(void)
16252 {
16253 try { throw 1; }
16254 catch (...) { };
16255 return 0;
16256 }
16257
16258 _ACEOF
16259 if ac_fn_c_try_run "$LINENO"; then :
16260 ac_sectionLDflags=yes
16261 else
16262 ac_sectionLDflags=no
16263 fi
16264 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16265 conftest.$ac_objext conftest.beam conftest.$ac_ext
16266 fi
16267
16268 if test "$ac_test_CFLAGS" = set; then
16269 CFLAGS="$ac_save_CFLAGS"
16270 else
16271 # this is the suspicious part
16272 CFLAGS=''
16273 fi
16274 if test "$ac_sectionLDflags" = "yes"; then
16275 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
16276 fi
16277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
16278 $as_echo "$ac_sectionLDflags" >&6; }
16279 fi
16280
16281 # Set linker optimization flags.
16282 if test x"$with_gnu_ld" = x"yes"; then
16283 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
16284 fi
16285
16286
16287
16288
16289
16290
16291 # Check whether --enable-symvers was given.
16292 if test "${enable_symvers+set}" = set; then :
16293 enableval=$enable_symvers;
16294 case "$enableval" in
16295 yes|no|gnu*|sun) ;;
16296 *) as_fn_error "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
16297 esac
16298
16299 else
16300 enable_symvers=yes
16301 fi
16302
16303
16304
16305 # If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
16306 # don't know enough about $LD to do tricks...
16307
16308
16309 # Turn a 'yes' into a suitable default.
16310 if test x$enable_symvers = xyes ; then
16311 # FIXME The following test is too strict, in theory.
16312 if test $enable_shared = no || test "x$LD" = x; then
16313 enable_symvers=no
16314 else
16315 if test $with_gnu_ld = yes ; then
16316 enable_symvers=gnu
16317 else
16318 case ${target_os} in
16319 # Sun symbol versioning exists since Solaris 2.5.
16320 solaris2.[5-9]* | solaris2.1[0-9]*)
16321 enable_symvers=sun ;;
16322 *)
16323 enable_symvers=no ;;
16324 esac
16325 fi
16326 fi
16327 fi
16328
16329 # Check if 'sun' was requested on non-Solaris 2 platforms.
16330 if test x$enable_symvers = xsun ; then
16331 case ${target_os} in
16332 solaris2*)
16333 # All fine.
16334 ;;
16335 *)
16336 # Unlikely to work.
16337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
16338 $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
16339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
16340 $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
16341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16342 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16343 enable_symvers=no
16344 ;;
16345 esac
16346 fi
16347
16348 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
16349 if test $enable_symvers != no; then
16350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
16351 $as_echo_n "checking for shared libgcc... " >&6; }
16352 ac_save_CFLAGS="$CFLAGS"
16353 CFLAGS=' -lgcc_s'
16354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16355 /* end confdefs.h. */
16356
16357 int
16358 main ()
16359 {
16360 return 0;
16361 ;
16362 return 0;
16363 }
16364 _ACEOF
16365 if ac_fn_c_try_link "$LINENO"; then :
16366 libgomp_shared_libgcc=yes
16367 else
16368 libgomp_shared_libgcc=no
16369 fi
16370 rm -f core conftest.err conftest.$ac_objext \
16371 conftest$ac_exeext conftest.$ac_ext
16372 CFLAGS="$ac_save_CFLAGS"
16373 if test $libgomp_shared_libgcc = no; then
16374 cat > conftest.c <<EOF
16375 int main (void) { return 0; }
16376 EOF
16377 libgomp_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
16378 -shared -shared-libgcc -o conftest.so \
16379 conftest.c -v 2>&1 >/dev/null \
16380 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
16381 rm -f conftest.c conftest.so
16382 if test x${libgomp_libgcc_s_suffix+set} = xset; then
16383 CFLAGS=" -lgcc_s$libgomp_libgcc_s_suffix"
16384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16385 /* end confdefs.h. */
16386
16387 int
16388 main ()
16389 {
16390 return 0;
16391 ;
16392 return 0;
16393 }
16394 _ACEOF
16395 if ac_fn_c_try_link "$LINENO"; then :
16396 libgomp_shared_libgcc=yes
16397 fi
16398 rm -f core conftest.err conftest.$ac_objext \
16399 conftest$ac_exeext conftest.$ac_ext
16400 CFLAGS="$ac_save_CFLAGS"
16401 fi
16402 fi
16403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_shared_libgcc" >&5
16404 $as_echo "$libgomp_shared_libgcc" >&6; }
16405 fi
16406
16407 # For GNU ld, we need at least this version. The format is described in
16408 # LIBGOMP_CHECK_LINKER_FEATURES above.
16409 libgomp_min_gnu_ld_version=21400
16410 # XXXXXXXXXXX libgomp_gnu_ld_version=21390
16411
16412 # Check to see if unspecified "yes" value can win, given results above.
16413 # Change "yes" into either "no" or a style name.
16414 if test $enable_symvers != no && test $libgomp_shared_libgcc = yes; then
16415 if test $with_gnu_ld = yes; then
16416 if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
16417 enable_symvers=gnu
16418 elif test $libgomp_ld_is_gold = yes ; then
16419 enable_symvers=gnu
16420 else
16421 # The right tools, the right setup, but too old. Fallbacks?
16422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
16423 $as_echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
16424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
16425 $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
16426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
16427 $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
16428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
16429 $as_echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
16430 if test $libgomp_gnu_ld_version -ge 21200 ; then
16431 # Globbing fix is present, proper block support is not.
16432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16433 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16434 enable_symvers=no
16435 else
16436 # 2.11 or older.
16437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16438 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16439 enable_symvers=no
16440 fi
16441 fi
16442 elif test $enable_symvers = sun; then
16443 : All interesting versions of Sun ld support sun style symbol versioning.
16444 else
16445 # just fail for now
16446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
16447 $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
16448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
16449 $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
16450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
16451 $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
16452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16453 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16454 enable_symvers=no
16455 fi
16456 fi
16457
16458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports .symver directive" >&5
16459 $as_echo_n "checking whether the target supports .symver directive... " >&6; }
16460 if test "${libgomp_cv_have_as_symver_directive+set}" = set; then :
16461 $as_echo_n "(cached) " >&6
16462 else
16463
16464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16465 /* end confdefs.h. */
16466 void foo (void); __asm (".symver foo, bar@SYMVER");
16467 int
16468 main ()
16469 {
16470
16471 ;
16472 return 0;
16473 }
16474 _ACEOF
16475 if ac_fn_c_try_compile "$LINENO"; then :
16476 libgomp_cv_have_as_symver_directive=yes
16477 else
16478 libgomp_cv_have_as_symver_directive=no
16479 fi
16480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16481 fi
16482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_as_symver_directive" >&5
16483 $as_echo "$libgomp_cv_have_as_symver_directive" >&6; }
16484 if test $libgomp_cv_have_as_symver_directive = yes; then
16485
16486 $as_echo "#define HAVE_AS_SYMVER_DIRECTIVE 1" >>confdefs.h
16487
16488 fi
16489
16490 if test $enable_symvers != no; then
16491 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE=
16492 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='#'
16493 else
16494 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#'
16495 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE=
16496 fi
16497
16498 if test $enable_symvers = gnu; then
16499 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE=
16500 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE='#'
16501 else
16502 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE='#'
16503 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE=
16504 fi
16505
16506 if test $enable_symvers = sun; then
16507 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE=
16508 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE='#'
16509 else
16510 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE='#'
16511 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE=
16512 fi
16513
16514 { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
16515 $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
16516
16517 if test $enable_symvers != no ; then
16518 case ${target_os} in
16519 # The Solaris 2 runtime linker doesn't support the GNU extension of
16520 # binding the same symbol to different versions
16521 solaris2*)
16522 ;;
16523 # Other platforms with GNU symbol versioning (GNU/Linux, more?) do.
16524 *)
16525
16526 $as_echo "#define HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT 1" >>confdefs.h
16527
16528 ;;
16529 esac
16530 fi
16531
16532
16533 if test $enable_symvers = gnu; then
16534
16535 $as_echo "#define LIBGOMP_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
16536
16537 fi
16538
16539 # Get target configury.
16540 . ${srcdir}/configure.tgt
16541 CFLAGS="$save_CFLAGS $XCFLAGS"
16542
16543 # Check for __sync_val_compare_and_swap, but only after the target has
16544 # had a chance to set XCFLAGS.
16545
16546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
16547 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
16548 if test "${libgomp_cv_have_sync_builtins+set}" = set; then :
16549 $as_echo_n "(cached) " >&6
16550 else
16551
16552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16553 /* end confdefs.h. */
16554
16555 int
16556 main ()
16557 {
16558 int foo; __sync_val_compare_and_swap(&foo, 0, 1);
16559 ;
16560 return 0;
16561 }
16562 _ACEOF
16563 if ac_fn_c_try_link "$LINENO"; then :
16564 libgomp_cv_have_sync_builtins=yes
16565 else
16566 libgomp_cv_have_sync_builtins=no
16567 fi
16568 rm -f core conftest.err conftest.$ac_objext \
16569 conftest$ac_exeext conftest.$ac_ext
16570 fi
16571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_sync_builtins" >&5
16572 $as_echo "$libgomp_cv_have_sync_builtins" >&6; }
16573 if test $libgomp_cv_have_sync_builtins = yes; then
16574
16575 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
16576
16577 fi
16578
16579 XCFLAGS="$XCFLAGS$XPCFLAGS"
16580
16581
16582
16583
16584
16585 # Cleanup and exit.
16586 CFLAGS="$save_CFLAGS"
16587 cat >confcache <<\_ACEOF
16588 # This file is a shell script that caches the results of configure
16589 # tests run on this system so they can be shared between configure
16590 # scripts and configure runs, see configure's option --config-cache.
16591 # It is not useful on other systems. If it contains results you don't
16592 # want to keep, you may remove or edit it.
16593 #
16594 # config.status only pays attention to the cache file if you give it
16595 # the --recheck option to rerun configure.
16596 #
16597 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16598 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16599 # following values.
16600
16601 _ACEOF
16602
16603 # The following way of writing the cache mishandles newlines in values,
16604 # but we know of no workaround that is simple, portable, and efficient.
16605 # So, we kill variables containing newlines.
16606 # Ultrix sh set writes to stderr and can't be redirected directly,
16607 # and sets the high bit in the cache file unless we assign to the vars.
16608 (
16609 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16610 eval ac_val=\$$ac_var
16611 case $ac_val in #(
16612 *${as_nl}*)
16613 case $ac_var in #(
16614 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16615 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16616 esac
16617 case $ac_var in #(
16618 _ | IFS | as_nl) ;; #(
16619 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16620 *) { eval $ac_var=; unset $ac_var;} ;;
16621 esac ;;
16622 esac
16623 done
16624
16625 (set) 2>&1 |
16626 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16627 *${as_nl}ac_space=\ *)
16628 # `set' does not quote correctly, so add quotes: double-quote
16629 # substitution turns \\\\ into \\, and sed turns \\ into \.
16630 sed -n \
16631 "s/'/'\\\\''/g;
16632 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16633 ;; #(
16634 *)
16635 # `set' quotes correctly as required by POSIX, so do not add quotes.
16636 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16637 ;;
16638 esac |
16639 sort
16640 ) |
16641 sed '
16642 /^ac_cv_env_/b end
16643 t clear
16644 :clear
16645 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16646 t end
16647 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16648 :end' >>confcache
16649 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16650 if test -w "$cache_file"; then
16651 test "x$cache_file" != "x/dev/null" &&
16652 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16653 $as_echo "$as_me: updating cache $cache_file" >&6;}
16654 cat confcache >$cache_file
16655 else
16656 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16657 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16658 fi
16659 fi
16660 rm -f confcache
16661
16662 if test ${multilib} = yes; then
16663 multilib_arg="--enable-multilib"
16664 else
16665 multilib_arg=
16666 fi
16667
16668 # Set up the set of libraries that we need to link against for libgomp.
16669 # Note that the GOMP_SELF_SPEC in gcc.c may force -pthread,
16670 # which will force linkage against -lpthread (or equivalent for the system).
16671 # That's not 100% ideal, but about the best we can do easily.
16672 if test $enable_shared = yes; then
16673 link_gomp="-lgomp %{static: $LIBS}"
16674 else
16675 link_gomp="-lgomp $LIBS"
16676 fi
16677
16678
16679 if test "$ac_cv_fc_compiler_gnu" = yes; then
16680 USE_FORTRAN_TRUE=
16681 USE_FORTRAN_FALSE='#'
16682 else
16683 USE_FORTRAN_TRUE='#'
16684 USE_FORTRAN_FALSE=
16685 fi
16686
16687
16688 # ??? 2006-01-24: Paulo committed to asking autoconf folk to document
16689 # and export AC_COMPUTE_INT. If that happens, then we'll need to remove
16690 # the underscore here and update the PREREQ. If it doesn't, then we'll
16691 # need to copy this macro to our acinclude.m4.
16692 save_CFLAGS="$CFLAGS"
16693 for i in $config_path; do
16694 if test -f $srcdir/config/$i/omp-lock.h; then
16695 CFLAGS="$CFLAGS -include confdefs.h -include $srcdir/config/$i/omp-lock.h"
16696 break
16697 fi
16698 done
16699
16700 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_t)" "OMP_LOCK_SIZE" ""; then :
16701
16702 else
16703 as_fn_error "unsupported system, cannot find sizeof (omp_lock_t)" "$LINENO" 5
16704 fi
16705
16706
16707 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_t)" "OMP_LOCK_ALIGN" ""; then :
16708
16709 fi
16710
16711
16712 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_t)" "OMP_NEST_LOCK_SIZE" ""; then :
16713
16714 fi
16715
16716
16717 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_t)" "OMP_NEST_LOCK_ALIGN" ""; then :
16718
16719 fi
16720
16721
16722 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_25_t)" "OMP_LOCK_25_SIZE" ""; then :
16723
16724 else
16725 as_fn_error "unsupported system, cannot find sizeof (omp_lock_25_t)" "$LINENO" 5
16726 fi
16727
16728
16729 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_25_t)" "OMP_LOCK_25_ALIGN" ""; then :
16730
16731 fi
16732
16733
16734 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_SIZE" ""; then :
16735
16736 fi
16737
16738
16739 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_ALIGN" ""; then :
16740
16741 fi
16742
16743
16744
16745 # If the lock fits in an integer, then arrange for Fortran to use that
16746 # integer. If it doesn't, then arrange for Fortran to use a pointer.
16747 # Except that we don't have a way at present to multi-lib the installed
16748 # Fortran modules, so we assume 8 bytes for pointers, regardless of the
16749 # actual target.
16750 OMP_LOCK_KIND=$OMP_LOCK_SIZE
16751 OMP_NEST_LOCK_KIND=$OMP_NEST_LOCK_SIZE
16752 if test $OMP_LOCK_SIZE -gt 8 || test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
16753 OMP_LOCK_KIND=8
16754 fi
16755 if test $OMP_NEST_LOCK_SIZE -gt 8 || test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
16756 OMP_NEST_LOCK_KIND=8
16757 fi
16758 OMP_LOCK_25_KIND=$OMP_LOCK_25_SIZE
16759 OMP_NEST_LOCK_25_KIND=$OMP_NEST_LOCK_25_SIZE
16760 if test $OMP_LOCK_25_SIZE -gt 8 || test $OMP_LOCK_25_ALIGN -gt $OMP_LOCK_25_SIZE; then
16761 OMP_LOCK_25_KIND=8
16762 fi
16763 if test $OMP_NEST_LOCK_25_SIZE -gt 8 || test $OMP_NEST_LOCK_25_ALIGN -gt $OMP_NEST_LOCK_25_SIZE; then
16764 OMP_NEST_LOCK_25_KIND=8
16765 fi
16766
16767
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779 CFLAGS="$save_CFLAGS"
16780
16781 ac_config_files="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
16782
16783 ac_config_files="$ac_config_files Makefile testsuite/Makefile libgomp.spec"
16784
16785 ac_config_files="$ac_config_files testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in"
16786
16787 cat >confcache <<\_ACEOF
16788 # This file is a shell script that caches the results of configure
16789 # tests run on this system so they can be shared between configure
16790 # scripts and configure runs, see configure's option --config-cache.
16791 # It is not useful on other systems. If it contains results you don't
16792 # want to keep, you may remove or edit it.
16793 #
16794 # config.status only pays attention to the cache file if you give it
16795 # the --recheck option to rerun configure.
16796 #
16797 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16798 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16799 # following values.
16800
16801 _ACEOF
16802
16803 # The following way of writing the cache mishandles newlines in values,
16804 # but we know of no workaround that is simple, portable, and efficient.
16805 # So, we kill variables containing newlines.
16806 # Ultrix sh set writes to stderr and can't be redirected directly,
16807 # and sets the high bit in the cache file unless we assign to the vars.
16808 (
16809 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16810 eval ac_val=\$$ac_var
16811 case $ac_val in #(
16812 *${as_nl}*)
16813 case $ac_var in #(
16814 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16815 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16816 esac
16817 case $ac_var in #(
16818 _ | IFS | as_nl) ;; #(
16819 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16820 *) { eval $ac_var=; unset $ac_var;} ;;
16821 esac ;;
16822 esac
16823 done
16824
16825 (set) 2>&1 |
16826 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16827 *${as_nl}ac_space=\ *)
16828 # `set' does not quote correctly, so add quotes: double-quote
16829 # substitution turns \\\\ into \\, and sed turns \\ into \.
16830 sed -n \
16831 "s/'/'\\\\''/g;
16832 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16833 ;; #(
16834 *)
16835 # `set' quotes correctly as required by POSIX, so do not add quotes.
16836 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16837 ;;
16838 esac |
16839 sort
16840 ) |
16841 sed '
16842 /^ac_cv_env_/b end
16843 t clear
16844 :clear
16845 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16846 t end
16847 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16848 :end' >>confcache
16849 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16850 if test -w "$cache_file"; then
16851 test "x$cache_file" != "x/dev/null" &&
16852 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16853 $as_echo "$as_me: updating cache $cache_file" >&6;}
16854 cat confcache >$cache_file
16855 else
16856 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16857 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16858 fi
16859 fi
16860 rm -f confcache
16861
16862 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16863 # Let make expand exec_prefix.
16864 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16865
16866 DEFS=-DHAVE_CONFIG_H
16867
16868 ac_libobjs=
16869 ac_ltlibobjs=
16870 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16871 # 1. Remove the extension, and $U if already installed.
16872 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16873 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16874 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16875 # will be set to the directory where LIBOBJS objects are built.
16876 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16877 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16878 done
16879 LIBOBJS=$ac_libobjs
16880
16881 LTLIBOBJS=$ac_ltlibobjs
16882
16883
16884 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
16885 as_fn_error "conditional \"GENINSRC\" was never defined.
16886 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16887 fi
16888 if test -n "$EXEEXT"; then
16889 am__EXEEXT_TRUE=
16890 am__EXEEXT_FALSE='#'
16891 else
16892 am__EXEEXT_TRUE='#'
16893 am__EXEEXT_FALSE=
16894 fi
16895
16896 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16897 as_fn_error "conditional \"AMDEP\" was never defined.
16898 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16899 fi
16900 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16901 as_fn_error "conditional \"am__fastdepCC\" was never defined.
16902 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16903 fi
16904 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
16905 as_fn_error "conditional \"BUILD_INFO\" was never defined.
16906 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16907 fi
16908 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16909 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
16910 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16911 fi
16912 if test -z "${PLUGIN_NVPTX_TRUE}" && test -z "${PLUGIN_NVPTX_FALSE}"; then
16913 as_fn_error "conditional \"PLUGIN_NVPTX\" was never defined.
16914 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16915 fi
16916 if test -z "${PLUGIN_HSA_TRUE}" && test -z "${PLUGIN_HSA_FALSE}"; then
16917 as_fn_error "conditional \"PLUGIN_HSA\" was never defined.
16918 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16919 fi
16920 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
16921 as_fn_error "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
16922 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16923 fi
16924 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
16925 as_fn_error "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
16926 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16927 fi
16928 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
16929 as_fn_error "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
16930 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16931 fi
16932 if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
16933 as_fn_error "conditional \"USE_FORTRAN\" was never defined.
16934 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16935 fi
16936
16937 : ${CONFIG_STATUS=./config.status}
16938 ac_write_fail=0
16939 ac_clean_files_save=$ac_clean_files
16940 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16941 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16942 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16943 as_write_fail=0
16944 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16945 #! $SHELL
16946 # Generated by $as_me.
16947 # Run this file to recreate the current configuration.
16948 # Compiler output produced by configure, useful for debugging
16949 # configure, is in config.log if it exists.
16950
16951 debug=false
16952 ac_cs_recheck=false
16953 ac_cs_silent=false
16954
16955 SHELL=\${CONFIG_SHELL-$SHELL}
16956 export SHELL
16957 _ASEOF
16958 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16959 ## -------------------- ##
16960 ## M4sh Initialization. ##
16961 ## -------------------- ##
16962
16963 # Be more Bourne compatible
16964 DUALCASE=1; export DUALCASE # for MKS sh
16965 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16966 emulate sh
16967 NULLCMD=:
16968 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16969 # is contrary to our usage. Disable this feature.
16970 alias -g '${1+"$@"}'='"$@"'
16971 setopt NO_GLOB_SUBST
16972 else
16973 case `(set -o) 2>/dev/null` in #(
16974 *posix*) :
16975 set -o posix ;; #(
16976 *) :
16977 ;;
16978 esac
16979 fi
16980
16981
16982 as_nl='
16983 '
16984 export as_nl
16985 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16986 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16987 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16988 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16989 # Prefer a ksh shell builtin over an external printf program on Solaris,
16990 # but without wasting forks for bash or zsh.
16991 if test -z "$BASH_VERSION$ZSH_VERSION" \
16992 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16993 as_echo='print -r --'
16994 as_echo_n='print -rn --'
16995 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16996 as_echo='printf %s\n'
16997 as_echo_n='printf %s'
16998 else
16999 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17000 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17001 as_echo_n='/usr/ucb/echo -n'
17002 else
17003 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17004 as_echo_n_body='eval
17005 arg=$1;
17006 case $arg in #(
17007 *"$as_nl"*)
17008 expr "X$arg" : "X\\(.*\\)$as_nl";
17009 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17010 esac;
17011 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17012 '
17013 export as_echo_n_body
17014 as_echo_n='sh -c $as_echo_n_body as_echo'
17015 fi
17016 export as_echo_body
17017 as_echo='sh -c $as_echo_body as_echo'
17018 fi
17019
17020 # The user is always right.
17021 if test "${PATH_SEPARATOR+set}" != set; then
17022 PATH_SEPARATOR=:
17023 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17024 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17025 PATH_SEPARATOR=';'
17026 }
17027 fi
17028
17029
17030 # IFS
17031 # We need space, tab and new line, in precisely that order. Quoting is
17032 # there to prevent editors from complaining about space-tab.
17033 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17034 # splitting by setting IFS to empty value.)
17035 IFS=" "" $as_nl"
17036
17037 # Find who we are. Look in the path if we contain no directory separator.
17038 case $0 in #((
17039 *[\\/]* ) as_myself=$0 ;;
17040 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17041 for as_dir in $PATH
17042 do
17043 IFS=$as_save_IFS
17044 test -z "$as_dir" && as_dir=.
17045 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17046 done
17047 IFS=$as_save_IFS
17048
17049 ;;
17050 esac
17051 # We did not find ourselves, most probably we were run as `sh COMMAND'
17052 # in which case we are not to be found in the path.
17053 if test "x$as_myself" = x; then
17054 as_myself=$0
17055 fi
17056 if test ! -f "$as_myself"; then
17057 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17058 exit 1
17059 fi
17060
17061 # Unset variables that we do not need and which cause bugs (e.g. in
17062 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17063 # suppresses any "Segmentation fault" message there. '((' could
17064 # trigger a bug in pdksh 5.2.14.
17065 for as_var in BASH_ENV ENV MAIL MAILPATH
17066 do eval test x\${$as_var+set} = xset \
17067 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17068 done
17069 PS1='$ '
17070 PS2='> '
17071 PS4='+ '
17072
17073 # NLS nuisances.
17074 LC_ALL=C
17075 export LC_ALL
17076 LANGUAGE=C
17077 export LANGUAGE
17078
17079 # CDPATH.
17080 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17081
17082
17083 # as_fn_error ERROR [LINENO LOG_FD]
17084 # ---------------------------------
17085 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17086 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17087 # script with status $?, using 1 if that was 0.
17088 as_fn_error ()
17089 {
17090 as_status=$?; test $as_status -eq 0 && as_status=1
17091 if test "$3"; then
17092 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17093 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
17094 fi
17095 $as_echo "$as_me: error: $1" >&2
17096 as_fn_exit $as_status
17097 } # as_fn_error
17098
17099
17100 # as_fn_set_status STATUS
17101 # -----------------------
17102 # Set $? to STATUS, without forking.
17103 as_fn_set_status ()
17104 {
17105 return $1
17106 } # as_fn_set_status
17107
17108 # as_fn_exit STATUS
17109 # -----------------
17110 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17111 as_fn_exit ()
17112 {
17113 set +e
17114 as_fn_set_status $1
17115 exit $1
17116 } # as_fn_exit
17117
17118 # as_fn_unset VAR
17119 # ---------------
17120 # Portably unset VAR.
17121 as_fn_unset ()
17122 {
17123 { eval $1=; unset $1;}
17124 }
17125 as_unset=as_fn_unset
17126 # as_fn_append VAR VALUE
17127 # ----------------------
17128 # Append the text in VALUE to the end of the definition contained in VAR. Take
17129 # advantage of any shell optimizations that allow amortized linear growth over
17130 # repeated appends, instead of the typical quadratic growth present in naive
17131 # implementations.
17132 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17133 eval 'as_fn_append ()
17134 {
17135 eval $1+=\$2
17136 }'
17137 else
17138 as_fn_append ()
17139 {
17140 eval $1=\$$1\$2
17141 }
17142 fi # as_fn_append
17143
17144 # as_fn_arith ARG...
17145 # ------------------
17146 # Perform arithmetic evaluation on the ARGs, and store the result in the
17147 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17148 # must be portable across $(()) and expr.
17149 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17150 eval 'as_fn_arith ()
17151 {
17152 as_val=$(( $* ))
17153 }'
17154 else
17155 as_fn_arith ()
17156 {
17157 as_val=`expr "$@" || test $? -eq 1`
17158 }
17159 fi # as_fn_arith
17160
17161
17162 if expr a : '\(a\)' >/dev/null 2>&1 &&
17163 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17164 as_expr=expr
17165 else
17166 as_expr=false
17167 fi
17168
17169 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17170 as_basename=basename
17171 else
17172 as_basename=false
17173 fi
17174
17175 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17176 as_dirname=dirname
17177 else
17178 as_dirname=false
17179 fi
17180
17181 as_me=`$as_basename -- "$0" ||
17182 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17183 X"$0" : 'X\(//\)$' \| \
17184 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17185 $as_echo X/"$0" |
17186 sed '/^.*\/\([^/][^/]*\)\/*$/{
17187 s//\1/
17188 q
17189 }
17190 /^X\/\(\/\/\)$/{
17191 s//\1/
17192 q
17193 }
17194 /^X\/\(\/\).*/{
17195 s//\1/
17196 q
17197 }
17198 s/.*/./; q'`
17199
17200 # Avoid depending upon Character Ranges.
17201 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17202 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17203 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17204 as_cr_digits='0123456789'
17205 as_cr_alnum=$as_cr_Letters$as_cr_digits
17206
17207 ECHO_C= ECHO_N= ECHO_T=
17208 case `echo -n x` in #(((((
17209 -n*)
17210 case `echo 'xy\c'` in
17211 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17212 xy) ECHO_C='\c';;
17213 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17214 ECHO_T=' ';;
17215 esac;;
17216 *)
17217 ECHO_N='-n';;
17218 esac
17219
17220 rm -f conf$$ conf$$.exe conf$$.file
17221 if test -d conf$$.dir; then
17222 rm -f conf$$.dir/conf$$.file
17223 else
17224 rm -f conf$$.dir
17225 mkdir conf$$.dir 2>/dev/null
17226 fi
17227 if (echo >conf$$.file) 2>/dev/null; then
17228 if ln -s conf$$.file conf$$ 2>/dev/null; then
17229 as_ln_s='ln -s'
17230 # ... but there are two gotchas:
17231 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17232 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17233 # In both cases, we have to default to `cp -p'.
17234 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17235 as_ln_s='cp -p'
17236 elif ln conf$$.file conf$$ 2>/dev/null; then
17237 as_ln_s=ln
17238 else
17239 as_ln_s='cp -p'
17240 fi
17241 else
17242 as_ln_s='cp -p'
17243 fi
17244 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17245 rmdir conf$$.dir 2>/dev/null
17246
17247
17248 # as_fn_mkdir_p
17249 # -------------
17250 # Create "$as_dir" as a directory, including parents if necessary.
17251 as_fn_mkdir_p ()
17252 {
17253
17254 case $as_dir in #(
17255 -*) as_dir=./$as_dir;;
17256 esac
17257 test -d "$as_dir" || eval $as_mkdir_p || {
17258 as_dirs=
17259 while :; do
17260 case $as_dir in #(
17261 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17262 *) as_qdir=$as_dir;;
17263 esac
17264 as_dirs="'$as_qdir' $as_dirs"
17265 as_dir=`$as_dirname -- "$as_dir" ||
17266 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17267 X"$as_dir" : 'X\(//\)[^/]' \| \
17268 X"$as_dir" : 'X\(//\)$' \| \
17269 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17270 $as_echo X"$as_dir" |
17271 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17272 s//\1/
17273 q
17274 }
17275 /^X\(\/\/\)[^/].*/{
17276 s//\1/
17277 q
17278 }
17279 /^X\(\/\/\)$/{
17280 s//\1/
17281 q
17282 }
17283 /^X\(\/\).*/{
17284 s//\1/
17285 q
17286 }
17287 s/.*/./; q'`
17288 test -d "$as_dir" && break
17289 done
17290 test -z "$as_dirs" || eval "mkdir $as_dirs"
17291 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
17292
17293
17294 } # as_fn_mkdir_p
17295 if mkdir -p . 2>/dev/null; then
17296 as_mkdir_p='mkdir -p "$as_dir"'
17297 else
17298 test -d ./-p && rmdir ./-p
17299 as_mkdir_p=false
17300 fi
17301
17302 if test -x / >/dev/null 2>&1; then
17303 as_test_x='test -x'
17304 else
17305 if ls -dL / >/dev/null 2>&1; then
17306 as_ls_L_option=L
17307 else
17308 as_ls_L_option=
17309 fi
17310 as_test_x='
17311 eval sh -c '\''
17312 if test -d "$1"; then
17313 test -d "$1/.";
17314 else
17315 case $1 in #(
17316 -*)set "./$1";;
17317 esac;
17318 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17319 ???[sx]*):;;*)false;;esac;fi
17320 '\'' sh
17321 '
17322 fi
17323 as_executable_p=$as_test_x
17324
17325 # Sed expression to map a string onto a valid CPP name.
17326 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17327
17328 # Sed expression to map a string onto a valid variable name.
17329 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17330
17331
17332 exec 6>&1
17333 ## ----------------------------------- ##
17334 ## Main body of $CONFIG_STATUS script. ##
17335 ## ----------------------------------- ##
17336 _ASEOF
17337 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17338
17339 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17340 # Save the log message, to keep $0 and so on meaningful, and to
17341 # report actual input values of CONFIG_FILES etc. instead of their
17342 # values after options handling.
17343 ac_log="
17344 This file was extended by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was
17345 generated by GNU Autoconf 2.64. Invocation command line was
17346
17347 CONFIG_FILES = $CONFIG_FILES
17348 CONFIG_HEADERS = $CONFIG_HEADERS
17349 CONFIG_LINKS = $CONFIG_LINKS
17350 CONFIG_COMMANDS = $CONFIG_COMMANDS
17351 $ $0 $@
17352
17353 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17354 "
17355
17356 _ACEOF
17357
17358 case $ac_config_files in *"
17359 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17360 esac
17361
17362 case $ac_config_headers in *"
17363 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17364 esac
17365
17366
17367 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17368 # Files that config.status was made for.
17369 config_files="$ac_config_files"
17370 config_headers="$ac_config_headers"
17371 config_commands="$ac_config_commands"
17372
17373 _ACEOF
17374
17375 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17376 ac_cs_usage="\
17377 \`$as_me' instantiates files and other configuration actions
17378 from templates according to the current configuration. Unless the files
17379 and actions are specified as TAGs, all are instantiated by default.
17380
17381 Usage: $0 [OPTION]... [TAG]...
17382
17383 -h, --help print this help, then exit
17384 -V, --version print version number and configuration settings, then exit
17385 -q, --quiet, --silent
17386 do not print progress messages
17387 -d, --debug don't remove temporary files
17388 --recheck update $as_me by reconfiguring in the same conditions
17389 --file=FILE[:TEMPLATE]
17390 instantiate the configuration file FILE
17391 --header=FILE[:TEMPLATE]
17392 instantiate the configuration header FILE
17393
17394 Configuration files:
17395 $config_files
17396
17397 Configuration headers:
17398 $config_headers
17399
17400 Configuration commands:
17401 $config_commands
17402
17403 Report bugs to the package provider.
17404 GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
17405 General help using GNU software: <http://www.gnu.org/gethelp/>."
17406
17407 _ACEOF
17408 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17409 ac_cs_version="\\
17410 GNU Offloading and Multi Processing Runtime Library config.status 1.0
17411 configured by $0, generated by GNU Autoconf 2.64,
17412 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17413
17414 Copyright (C) 2009 Free Software Foundation, Inc.
17415 This config.status script is free software; the Free Software Foundation
17416 gives unlimited permission to copy, distribute and modify it."
17417
17418 ac_pwd='$ac_pwd'
17419 srcdir='$srcdir'
17420 INSTALL='$INSTALL'
17421 MKDIR_P='$MKDIR_P'
17422 AWK='$AWK'
17423 test -n "\$AWK" || AWK=awk
17424 _ACEOF
17425
17426 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17427 # The default lists apply if the user does not specify any file.
17428 ac_need_defaults=:
17429 while test $# != 0
17430 do
17431 case $1 in
17432 --*=*)
17433 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17434 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17435 ac_shift=:
17436 ;;
17437 *)
17438 ac_option=$1
17439 ac_optarg=$2
17440 ac_shift=shift
17441 ;;
17442 esac
17443
17444 case $ac_option in
17445 # Handling of the options.
17446 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17447 ac_cs_recheck=: ;;
17448 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17449 $as_echo "$ac_cs_version"; exit ;;
17450 --debug | --debu | --deb | --de | --d | -d )
17451 debug=: ;;
17452 --file | --fil | --fi | --f )
17453 $ac_shift
17454 case $ac_optarg in
17455 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17456 esac
17457 as_fn_append CONFIG_FILES " '$ac_optarg'"
17458 ac_need_defaults=false;;
17459 --header | --heade | --head | --hea )
17460 $ac_shift
17461 case $ac_optarg in
17462 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17463 esac
17464 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17465 ac_need_defaults=false;;
17466 --he | --h)
17467 # Conflict between --help and --header
17468 as_fn_error "ambiguous option: \`$1'
17469 Try \`$0 --help' for more information.";;
17470 --help | --hel | -h )
17471 $as_echo "$ac_cs_usage"; exit ;;
17472 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17473 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17474 ac_cs_silent=: ;;
17475
17476 # This is an error.
17477 -*) as_fn_error "unrecognized option: \`$1'
17478 Try \`$0 --help' for more information." ;;
17479
17480 *) as_fn_append ac_config_targets " $1"
17481 ac_need_defaults=false ;;
17482
17483 esac
17484 shift
17485 done
17486
17487 ac_configure_extra_args=
17488
17489 if $ac_cs_silent; then
17490 exec 6>/dev/null
17491 ac_configure_extra_args="$ac_configure_extra_args --silent"
17492 fi
17493
17494 _ACEOF
17495 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17496 if \$ac_cs_recheck; then
17497 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17498 shift
17499 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17500 CONFIG_SHELL='$SHELL'
17501 export CONFIG_SHELL
17502 exec "\$@"
17503 fi
17504
17505 _ACEOF
17506 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17507 exec 5>>config.log
17508 {
17509 echo
17510 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17511 ## Running $as_me. ##
17512 _ASBOX
17513 $as_echo "$ac_log"
17514 } >&5
17515
17516 _ACEOF
17517 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17518 #
17519 # INIT-COMMANDS
17520 #
17521
17522 srcdir="$srcdir"
17523 host="$host"
17524 target="$target"
17525 with_multisubdir="$with_multisubdir"
17526 with_multisrctop="$with_multisrctop"
17527 with_target_subdir="$with_target_subdir"
17528 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17529 multi_basedir="$multi_basedir"
17530 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17531 CC="$CC"
17532 CXX="$CXX"
17533 GFORTRAN="$GFORTRAN"
17534 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17535
17536
17537 # The HP-UX ksh and POSIX shell print the target directory to stdout
17538 # if CDPATH is set.
17539 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17540
17541 sed_quote_subst='$sed_quote_subst'
17542 double_quote_subst='$double_quote_subst'
17543 delay_variable_subst='$delay_variable_subst'
17544 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17545 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17546 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17547 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17548 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17549 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17550 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17551 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17552 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17553 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17554 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17555 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17556 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17557 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17558 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17559 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17560 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17561 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17562 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17563 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17564 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17565 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17566 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17567 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17568 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17569 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17570 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17571 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17572 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17573 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17574 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17575 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17576 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17577 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17578 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17579 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17580 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17581 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17582 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17583 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17584 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17585 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17586 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17587 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17588 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17589 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17590 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17591 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17592 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"`'
17593 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17594 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17595 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17596 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17597 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17598 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17599 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17600 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17601 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17602 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17603 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17604 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17605 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17606 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17607 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17608 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17609 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17610 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17611 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17612 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17613 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17614 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17615 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17616 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17617 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17618 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17619 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17620 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17621 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17622 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17623 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17624 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17625 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17626 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17627 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17628 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17629 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17630 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17631 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17632 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17633 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17634 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17635 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17636 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17637 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17638 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17639 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17640 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17641 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17642 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17643 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17644 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17645 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17646 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17647 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17648 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17649 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17650 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17651 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17652 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17653 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17654 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17655 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17656 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17657 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17658 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17659 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17660 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17661 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17662 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17663 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17664 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17665 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17666 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17667 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17668 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17669 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17670 LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
17671 reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
17672 reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
17673 old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17674 compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
17675 GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
17676 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
17677 lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
17678 lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
17679 lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
17680 lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
17681 archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
17682 enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
17683 export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17684 whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17685 compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
17686 old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
17687 old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
17688 archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17689 archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17690 module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
17691 module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17692 with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
17693 allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
17694 no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
17695 hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17696 hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
17697 hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
17698 hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
17699 hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
17700 hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
17701 hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
17702 hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
17703 inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
17704 link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
17705 fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
17706 always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
17707 export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
17708 exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
17709 include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
17710 prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
17711 file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
17712 hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
17713 compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
17714 predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
17715 postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
17716 predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
17717 postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
17718 compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
17719
17720 LTCC='$LTCC'
17721 LTCFLAGS='$LTCFLAGS'
17722 compiler='$compiler_DEFAULT'
17723
17724 # A function that is used when there is no print builtin or printf.
17725 func_fallback_echo ()
17726 {
17727 eval 'cat <<_LTECHO_EOF
17728 \$1
17729 _LTECHO_EOF'
17730 }
17731
17732 # Quote evaled strings.
17733 for var in SHELL \
17734 ECHO \
17735 SED \
17736 GREP \
17737 EGREP \
17738 FGREP \
17739 LD \
17740 NM \
17741 LN_S \
17742 lt_SP2NL \
17743 lt_NL2SP \
17744 reload_flag \
17745 OBJDUMP \
17746 deplibs_check_method \
17747 file_magic_cmd \
17748 AR \
17749 AR_FLAGS \
17750 STRIP \
17751 RANLIB \
17752 CC \
17753 CFLAGS \
17754 compiler \
17755 lt_cv_sys_global_symbol_pipe \
17756 lt_cv_sys_global_symbol_to_cdecl \
17757 lt_cv_sys_global_symbol_to_c_name_address \
17758 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17759 lt_prog_compiler_no_builtin_flag \
17760 lt_prog_compiler_wl \
17761 lt_prog_compiler_pic \
17762 lt_prog_compiler_static \
17763 lt_cv_prog_compiler_c_o \
17764 need_locks \
17765 DSYMUTIL \
17766 NMEDIT \
17767 LIPO \
17768 OTOOL \
17769 OTOOL64 \
17770 shrext_cmds \
17771 export_dynamic_flag_spec \
17772 whole_archive_flag_spec \
17773 compiler_needs_object \
17774 with_gnu_ld \
17775 allow_undefined_flag \
17776 no_undefined_flag \
17777 hardcode_libdir_flag_spec \
17778 hardcode_libdir_flag_spec_ld \
17779 hardcode_libdir_separator \
17780 fix_srcfile_path \
17781 exclude_expsyms \
17782 include_expsyms \
17783 file_list_spec \
17784 variables_saved_for_relink \
17785 libname_spec \
17786 library_names_spec \
17787 soname_spec \
17788 install_override_mode \
17789 finish_eval \
17790 old_striplib \
17791 striplib \
17792 compiler_lib_search_dirs \
17793 predep_objects \
17794 postdep_objects \
17795 predeps \
17796 postdeps \
17797 compiler_lib_search_path \
17798 LD_FC \
17799 reload_flag_FC \
17800 compiler_FC \
17801 lt_prog_compiler_no_builtin_flag_FC \
17802 lt_prog_compiler_wl_FC \
17803 lt_prog_compiler_pic_FC \
17804 lt_prog_compiler_static_FC \
17805 lt_cv_prog_compiler_c_o_FC \
17806 export_dynamic_flag_spec_FC \
17807 whole_archive_flag_spec_FC \
17808 compiler_needs_object_FC \
17809 with_gnu_ld_FC \
17810 allow_undefined_flag_FC \
17811 no_undefined_flag_FC \
17812 hardcode_libdir_flag_spec_FC \
17813 hardcode_libdir_flag_spec_ld_FC \
17814 hardcode_libdir_separator_FC \
17815 fix_srcfile_path_FC \
17816 exclude_expsyms_FC \
17817 include_expsyms_FC \
17818 file_list_spec_FC \
17819 compiler_lib_search_dirs_FC \
17820 predep_objects_FC \
17821 postdep_objects_FC \
17822 predeps_FC \
17823 postdeps_FC \
17824 compiler_lib_search_path_FC; do
17825 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17826 *[\\\\\\\`\\"\\\$]*)
17827 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17828 ;;
17829 *)
17830 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17831 ;;
17832 esac
17833 done
17834
17835 # Double-quote double-evaled strings.
17836 for var in reload_cmds \
17837 old_postinstall_cmds \
17838 old_postuninstall_cmds \
17839 old_archive_cmds \
17840 extract_expsyms_cmds \
17841 old_archive_from_new_cmds \
17842 old_archive_from_expsyms_cmds \
17843 archive_cmds \
17844 archive_expsym_cmds \
17845 module_cmds \
17846 module_expsym_cmds \
17847 export_symbols_cmds \
17848 prelink_cmds \
17849 postinstall_cmds \
17850 postuninstall_cmds \
17851 finish_cmds \
17852 sys_lib_search_path_spec \
17853 sys_lib_dlsearch_path_spec \
17854 reload_cmds_FC \
17855 old_archive_cmds_FC \
17856 old_archive_from_new_cmds_FC \
17857 old_archive_from_expsyms_cmds_FC \
17858 archive_cmds_FC \
17859 archive_expsym_cmds_FC \
17860 module_cmds_FC \
17861 module_expsym_cmds_FC \
17862 export_symbols_cmds_FC \
17863 prelink_cmds_FC; do
17864 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17865 *[\\\\\\\`\\"\\\$]*)
17866 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17867 ;;
17868 *)
17869 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17870 ;;
17871 esac
17872 done
17873
17874 ac_aux_dir='$ac_aux_dir'
17875 xsi_shell='$xsi_shell'
17876 lt_shell_append='$lt_shell_append'
17877
17878 # See if we are running on zsh, and set the options which allow our
17879 # commands through without removal of \ escapes INIT.
17880 if test -n "\${ZSH_VERSION+set}" ; then
17881 setopt NO_GLOB_SUBST
17882 fi
17883
17884
17885 PACKAGE='$PACKAGE'
17886 VERSION='$VERSION'
17887 TIMESTAMP='$TIMESTAMP'
17888 RM='$RM'
17889 ofile='$ofile'
17890
17891
17892
17893
17894
17895
17896 GCC="$GCC"
17897 CC="$CC"
17898 acx_cv_header_stdint="$acx_cv_header_stdint"
17899 acx_cv_type_int8_t="$acx_cv_type_int8_t"
17900 acx_cv_type_int16_t="$acx_cv_type_int16_t"
17901 acx_cv_type_int32_t="$acx_cv_type_int32_t"
17902 acx_cv_type_int64_t="$acx_cv_type_int64_t"
17903 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
17904 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
17905 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
17906 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
17907 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
17908 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
17909 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
17910 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
17911 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
17912
17913
17914 _ACEOF
17915
17916 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17917
17918 # Handling of arguments.
17919 for ac_config_target in $ac_config_targets
17920 do
17921 case $ac_config_target in
17922 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17923 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17924 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17925 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17926 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
17927 "omp.h") CONFIG_FILES="$CONFIG_FILES omp.h" ;;
17928 "omp_lib.h") CONFIG_FILES="$CONFIG_FILES omp_lib.h" ;;
17929 "omp_lib.f90") CONFIG_FILES="$CONFIG_FILES omp_lib.f90" ;;
17930 "libgomp_f.h") CONFIG_FILES="$CONFIG_FILES libgomp_f.h" ;;
17931 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17932 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
17933 "libgomp.spec") CONFIG_FILES="$CONFIG_FILES libgomp.spec" ;;
17934 "testsuite/libgomp-test-support.pt.exp") CONFIG_FILES="$CONFIG_FILES testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in" ;;
17935
17936 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17937 esac
17938 done
17939
17940
17941 # If the user did not use the arguments to specify the items to instantiate,
17942 # then the envvar interface is used. Set only those that are not.
17943 # We use the long form for the default assignment because of an extremely
17944 # bizarre bug on SunOS 4.1.3.
17945 if $ac_need_defaults; then
17946 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17947 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17948 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17949 fi
17950
17951 # Have a temporary directory for convenience. Make it in the build tree
17952 # simply because there is no reason against having it here, and in addition,
17953 # creating and moving files from /tmp can sometimes cause problems.
17954 # Hook for its removal unless debugging.
17955 # Note that there is a small window in which the directory will not be cleaned:
17956 # after its creation but before its name has been assigned to `$tmp'.
17957 $debug ||
17958 {
17959 tmp=
17960 trap 'exit_status=$?
17961 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17962 ' 0
17963 trap 'as_fn_exit 1' 1 2 13 15
17964 }
17965 # Create a (secure) tmp directory for tmp files.
17966
17967 {
17968 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17969 test -n "$tmp" && test -d "$tmp"
17970 } ||
17971 {
17972 tmp=./conf$$-$RANDOM
17973 (umask 077 && mkdir "$tmp")
17974 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
17975
17976 # Set up the scripts for CONFIG_FILES section.
17977 # No need to generate them if there are no CONFIG_FILES.
17978 # This happens for instance with `./config.status config.h'.
17979 if test -n "$CONFIG_FILES"; then
17980
17981
17982 ac_cr=`echo X | tr X '\015'`
17983 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17984 # But we know of no other shell where ac_cr would be empty at this
17985 # point, so we can use a bashism as a fallback.
17986 if test "x$ac_cr" = x; then
17987 eval ac_cr=\$\'\\r\'
17988 fi
17989 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17990 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17991 ac_cs_awk_cr='\r'
17992 else
17993 ac_cs_awk_cr=$ac_cr
17994 fi
17995
17996 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17997 _ACEOF
17998
17999
18000 {
18001 echo "cat >conf$$subs.awk <<_ACEOF" &&
18002 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18003 echo "_ACEOF"
18004 } >conf$$subs.sh ||
18005 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18006 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18007 ac_delim='%!_!# '
18008 for ac_last_try in false false false false false :; do
18009 . ./conf$$subs.sh ||
18010 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18011
18012 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18013 if test $ac_delim_n = $ac_delim_num; then
18014 break
18015 elif $ac_last_try; then
18016 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18017 else
18018 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18019 fi
18020 done
18021 rm -f conf$$subs.sh
18022
18023 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18024 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18025 _ACEOF
18026 sed -n '
18027 h
18028 s/^/S["/; s/!.*/"]=/
18029 p
18030 g
18031 s/^[^!]*!//
18032 :repl
18033 t repl
18034 s/'"$ac_delim"'$//
18035 t delim
18036 :nl
18037 h
18038 s/\(.\{148\}\).*/\1/
18039 t more1
18040 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18041 p
18042 n
18043 b repl
18044 :more1
18045 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18046 p
18047 g
18048 s/.\{148\}//
18049 t nl
18050 :delim
18051 h
18052 s/\(.\{148\}\).*/\1/
18053 t more2
18054 s/["\\]/\\&/g; s/^/"/; s/$/"/
18055 p
18056 b
18057 :more2
18058 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18059 p
18060 g
18061 s/.\{148\}//
18062 t delim
18063 ' <conf$$subs.awk | sed '
18064 /^[^""]/{
18065 N
18066 s/\n//
18067 }
18068 ' >>$CONFIG_STATUS || ac_write_fail=1
18069 rm -f conf$$subs.awk
18070 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18071 _ACAWK
18072 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18073 for (key in S) S_is_set[key] = 1
18074 FS = "\a"
18075
18076 }
18077 {
18078 line = $ 0
18079 nfields = split(line, field, "@")
18080 substed = 0
18081 len = length(field[1])
18082 for (i = 2; i < nfields; i++) {
18083 key = field[i]
18084 keylen = length(key)
18085 if (S_is_set[key]) {
18086 value = S[key]
18087 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18088 len += length(value) + length(field[++i])
18089 substed = 1
18090 } else
18091 len += 1 + keylen
18092 }
18093
18094 print line
18095 }
18096
18097 _ACAWK
18098 _ACEOF
18099 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18100 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18101 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18102 else
18103 cat
18104 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18105 || as_fn_error "could not setup config files machinery" "$LINENO" 5
18106 _ACEOF
18107
18108 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18109 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18110 # trailing colons and then remove the whole line if VPATH becomes empty
18111 # (actually we leave an empty line to preserve line numbers).
18112 if test "x$srcdir" = x.; then
18113 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18114 s/:*\$(srcdir):*/:/
18115 s/:*\${srcdir}:*/:/
18116 s/:*@srcdir@:*/:/
18117 s/^\([^=]*=[ ]*\):*/\1/
18118 s/:*$//
18119 s/^[^=]*=[ ]*$//
18120 }'
18121 fi
18122
18123 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18124 fi # test -n "$CONFIG_FILES"
18125
18126 # Set up the scripts for CONFIG_HEADERS section.
18127 # No need to generate them if there are no CONFIG_HEADERS.
18128 # This happens for instance with `./config.status Makefile'.
18129 if test -n "$CONFIG_HEADERS"; then
18130 cat >"$tmp/defines.awk" <<\_ACAWK ||
18131 BEGIN {
18132 _ACEOF
18133
18134 # Transform confdefs.h into an awk script `defines.awk', embedded as
18135 # here-document in config.status, that substitutes the proper values into
18136 # config.h.in to produce config.h.
18137
18138 # Create a delimiter string that does not exist in confdefs.h, to ease
18139 # handling of long lines.
18140 ac_delim='%!_!# '
18141 for ac_last_try in false false :; do
18142 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18143 if test -z "$ac_t"; then
18144 break
18145 elif $ac_last_try; then
18146 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
18147 else
18148 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18149 fi
18150 done
18151
18152 # For the awk script, D is an array of macro values keyed by name,
18153 # likewise P contains macro parameters if any. Preserve backslash
18154 # newline sequences.
18155
18156 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18157 sed -n '
18158 s/.\{148\}/&'"$ac_delim"'/g
18159 t rset
18160 :rset
18161 s/^[ ]*#[ ]*define[ ][ ]*/ /
18162 t def
18163 d
18164 :def
18165 s/\\$//
18166 t bsnl
18167 s/["\\]/\\&/g
18168 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18169 D["\1"]=" \3"/p
18170 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18171 d
18172 :bsnl
18173 s/["\\]/\\&/g
18174 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18175 D["\1"]=" \3\\\\\\n"\\/p
18176 t cont
18177 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18178 t cont
18179 d
18180 :cont
18181 n
18182 s/.\{148\}/&'"$ac_delim"'/g
18183 t clear
18184 :clear
18185 s/\\$//
18186 t bsnlc
18187 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18188 d
18189 :bsnlc
18190 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18191 b cont
18192 ' <confdefs.h | sed '
18193 s/'"$ac_delim"'/"\\\
18194 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18195
18196 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18197 for (key in D) D_is_set[key] = 1
18198 FS = "\a"
18199 }
18200 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18201 line = \$ 0
18202 split(line, arg, " ")
18203 if (arg[1] == "#") {
18204 defundef = arg[2]
18205 mac1 = arg[3]
18206 } else {
18207 defundef = substr(arg[1], 2)
18208 mac1 = arg[2]
18209 }
18210 split(mac1, mac2, "(") #)
18211 macro = mac2[1]
18212 prefix = substr(line, 1, index(line, defundef) - 1)
18213 if (D_is_set[macro]) {
18214 # Preserve the white space surrounding the "#".
18215 print prefix "define", macro P[macro] D[macro]
18216 next
18217 } else {
18218 # Replace #undef with comments. This is necessary, for example,
18219 # in the case of _POSIX_SOURCE, which is predefined and required
18220 # on some systems where configure will not decide to define it.
18221 if (defundef == "undef") {
18222 print "/*", prefix defundef, macro, "*/"
18223 next
18224 }
18225 }
18226 }
18227 { print }
18228 _ACAWK
18229 _ACEOF
18230 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18231 as_fn_error "could not setup config headers machinery" "$LINENO" 5
18232 fi # test -n "$CONFIG_HEADERS"
18233
18234
18235 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18236 shift
18237 for ac_tag
18238 do
18239 case $ac_tag in
18240 :[FHLC]) ac_mode=$ac_tag; continue;;
18241 esac
18242 case $ac_mode$ac_tag in
18243 :[FHL]*:*);;
18244 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
18245 :[FH]-) ac_tag=-:-;;
18246 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18247 esac
18248 ac_save_IFS=$IFS
18249 IFS=:
18250 set x $ac_tag
18251 IFS=$ac_save_IFS
18252 shift
18253 ac_file=$1
18254 shift
18255
18256 case $ac_mode in
18257 :L) ac_source=$1;;
18258 :[FH])
18259 ac_file_inputs=
18260 for ac_f
18261 do
18262 case $ac_f in
18263 -) ac_f="$tmp/stdin";;
18264 *) # Look for the file first in the build tree, then in the source tree
18265 # (if the path is not absolute). The absolute path cannot be DOS-style,
18266 # because $ac_f cannot contain `:'.
18267 test -f "$ac_f" ||
18268 case $ac_f in
18269 [\\/$]*) false;;
18270 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18271 esac ||
18272 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18273 esac
18274 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18275 as_fn_append ac_file_inputs " '$ac_f'"
18276 done
18277
18278 # Let's still pretend it is `configure' which instantiates (i.e., don't
18279 # use $as_me), people would be surprised to read:
18280 # /* config.h. Generated by config.status. */
18281 configure_input='Generated from '`
18282 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18283 `' by configure.'
18284 if test x"$ac_file" != x-; then
18285 configure_input="$ac_file. $configure_input"
18286 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18287 $as_echo "$as_me: creating $ac_file" >&6;}
18288 fi
18289 # Neutralize special characters interpreted by sed in replacement strings.
18290 case $configure_input in #(
18291 *\&* | *\|* | *\\* )
18292 ac_sed_conf_input=`$as_echo "$configure_input" |
18293 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18294 *) ac_sed_conf_input=$configure_input;;
18295 esac
18296
18297 case $ac_tag in
18298 *:-:* | *:-) cat >"$tmp/stdin" \
18299 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
18300 esac
18301 ;;
18302 esac
18303
18304 ac_dir=`$as_dirname -- "$ac_file" ||
18305 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18306 X"$ac_file" : 'X\(//\)[^/]' \| \
18307 X"$ac_file" : 'X\(//\)$' \| \
18308 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18309 $as_echo X"$ac_file" |
18310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18311 s//\1/
18312 q
18313 }
18314 /^X\(\/\/\)[^/].*/{
18315 s//\1/
18316 q
18317 }
18318 /^X\(\/\/\)$/{
18319 s//\1/
18320 q
18321 }
18322 /^X\(\/\).*/{
18323 s//\1/
18324 q
18325 }
18326 s/.*/./; q'`
18327 as_dir="$ac_dir"; as_fn_mkdir_p
18328 ac_builddir=.
18329
18330 case "$ac_dir" in
18331 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18332 *)
18333 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18334 # A ".." for each directory in $ac_dir_suffix.
18335 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18336 case $ac_top_builddir_sub in
18337 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18338 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18339 esac ;;
18340 esac
18341 ac_abs_top_builddir=$ac_pwd
18342 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18343 # for backward compatibility:
18344 ac_top_builddir=$ac_top_build_prefix
18345
18346 case $srcdir in
18347 .) # We are building in place.
18348 ac_srcdir=.
18349 ac_top_srcdir=$ac_top_builddir_sub
18350 ac_abs_top_srcdir=$ac_pwd ;;
18351 [\\/]* | ?:[\\/]* ) # Absolute name.
18352 ac_srcdir=$srcdir$ac_dir_suffix;
18353 ac_top_srcdir=$srcdir
18354 ac_abs_top_srcdir=$srcdir ;;
18355 *) # Relative name.
18356 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18357 ac_top_srcdir=$ac_top_build_prefix$srcdir
18358 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18359 esac
18360 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18361
18362
18363 case $ac_mode in
18364 :F)
18365 #
18366 # CONFIG_FILE
18367 #
18368
18369 case $INSTALL in
18370 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18371 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18372 esac
18373 ac_MKDIR_P=$MKDIR_P
18374 case $MKDIR_P in
18375 [\\/$]* | ?:[\\/]* ) ;;
18376 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18377 esac
18378 _ACEOF
18379
18380 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18381 # If the template does not know about datarootdir, expand it.
18382 # FIXME: This hack should be removed a few years after 2.60.
18383 ac_datarootdir_hack=; ac_datarootdir_seen=
18384 ac_sed_dataroot='
18385 /datarootdir/ {
18386 p
18387 q
18388 }
18389 /@datadir@/p
18390 /@docdir@/p
18391 /@infodir@/p
18392 /@localedir@/p
18393 /@mandir@/p'
18394 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18395 *datarootdir*) ac_datarootdir_seen=yes;;
18396 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18398 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18399 _ACEOF
18400 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18401 ac_datarootdir_hack='
18402 s&@datadir@&$datadir&g
18403 s&@docdir@&$docdir&g
18404 s&@infodir@&$infodir&g
18405 s&@localedir@&$localedir&g
18406 s&@mandir@&$mandir&g
18407 s&\\\${datarootdir}&$datarootdir&g' ;;
18408 esac
18409 _ACEOF
18410
18411 # Neutralize VPATH when `$srcdir' = `.'.
18412 # Shell code in configure.ac might set extrasub.
18413 # FIXME: do we really want to maintain this feature?
18414 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18415 ac_sed_extra="$ac_vpsub
18416 $extrasub
18417 _ACEOF
18418 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18419 :t
18420 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18421 s|@configure_input@|$ac_sed_conf_input|;t t
18422 s&@top_builddir@&$ac_top_builddir_sub&;t t
18423 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18424 s&@srcdir@&$ac_srcdir&;t t
18425 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18426 s&@top_srcdir@&$ac_top_srcdir&;t t
18427 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18428 s&@builddir@&$ac_builddir&;t t
18429 s&@abs_builddir@&$ac_abs_builddir&;t t
18430 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18431 s&@INSTALL@&$ac_INSTALL&;t t
18432 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18433 $ac_datarootdir_hack
18434 "
18435 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
18436 || as_fn_error "could not create $ac_file" "$LINENO" 5
18437
18438 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18439 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18440 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18442 which seems to be undefined. Please make sure it is defined." >&5
18443 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18444 which seems to be undefined. Please make sure it is defined." >&2;}
18445
18446 rm -f "$tmp/stdin"
18447 case $ac_file in
18448 -) cat "$tmp/out" && rm -f "$tmp/out";;
18449 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18450 esac \
18451 || as_fn_error "could not create $ac_file" "$LINENO" 5
18452 ;;
18453 :H)
18454 #
18455 # CONFIG_HEADER
18456 #
18457 if test x"$ac_file" != x-; then
18458 {
18459 $as_echo "/* $configure_input */" \
18460 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18461 } >"$tmp/config.h" \
18462 || as_fn_error "could not create $ac_file" "$LINENO" 5
18463 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18464 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18465 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18466 else
18467 rm -f "$ac_file"
18468 mv "$tmp/config.h" "$ac_file" \
18469 || as_fn_error "could not create $ac_file" "$LINENO" 5
18470 fi
18471 else
18472 $as_echo "/* $configure_input */" \
18473 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18474 || as_fn_error "could not create -" "$LINENO" 5
18475 fi
18476 # Compute "$ac_file"'s index in $config_headers.
18477 _am_arg="$ac_file"
18478 _am_stamp_count=1
18479 for _am_header in $config_headers :; do
18480 case $_am_header in
18481 $_am_arg | $_am_arg:* )
18482 break ;;
18483 * )
18484 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18485 esac
18486 done
18487 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18488 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18489 X"$_am_arg" : 'X\(//\)[^/]' \| \
18490 X"$_am_arg" : 'X\(//\)$' \| \
18491 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18492 $as_echo X"$_am_arg" |
18493 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18494 s//\1/
18495 q
18496 }
18497 /^X\(\/\/\)[^/].*/{
18498 s//\1/
18499 q
18500 }
18501 /^X\(\/\/\)$/{
18502 s//\1/
18503 q
18504 }
18505 /^X\(\/\).*/{
18506 s//\1/
18507 q
18508 }
18509 s/.*/./; q'`/stamp-h$_am_stamp_count
18510 ;;
18511
18512 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18513 $as_echo "$as_me: executing $ac_file commands" >&6;}
18514 ;;
18515 esac
18516
18517
18518 case $ac_file$ac_mode in
18519 "default-1":C)
18520 # Only add multilib support code if we just rebuilt the top-level
18521 # Makefile.
18522 case " $CONFIG_FILES " in
18523 *" Makefile "*)
18524 ac_file=Makefile . ${multi_basedir}/config-ml.in
18525 ;;
18526 esac ;;
18527 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18528 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18529 # are listed without --file. Let's play safe and only enable the eval
18530 # if we detect the quoting.
18531 case $CONFIG_FILES in
18532 *\'*) eval set x "$CONFIG_FILES" ;;
18533 *) set x $CONFIG_FILES ;;
18534 esac
18535 shift
18536 for mf
18537 do
18538 # Strip MF so we end up with the name of the file.
18539 mf=`echo "$mf" | sed -e 's/:.*$//'`
18540 # Check whether this is an Automake generated Makefile or not.
18541 # We used to match only the files named `Makefile.in', but
18542 # some people rename them; so instead we look at the file content.
18543 # Grep'ing the first line is not enough: some people post-process
18544 # each Makefile.in and add a new line on top of each file to say so.
18545 # Grep'ing the whole file is not good either: AIX grep has a line
18546 # limit of 2048, but all sed's we know have understand at least 4000.
18547 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18548 dirpart=`$as_dirname -- "$mf" ||
18549 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18550 X"$mf" : 'X\(//\)[^/]' \| \
18551 X"$mf" : 'X\(//\)$' \| \
18552 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18553 $as_echo X"$mf" |
18554 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18555 s//\1/
18556 q
18557 }
18558 /^X\(\/\/\)[^/].*/{
18559 s//\1/
18560 q
18561 }
18562 /^X\(\/\/\)$/{
18563 s//\1/
18564 q
18565 }
18566 /^X\(\/\).*/{
18567 s//\1/
18568 q
18569 }
18570 s/.*/./; q'`
18571 else
18572 continue
18573 fi
18574 # Extract the definition of DEPDIR, am__include, and am__quote
18575 # from the Makefile without running `make'.
18576 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18577 test -z "$DEPDIR" && continue
18578 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18579 test -z "am__include" && continue
18580 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18581 # When using ansi2knr, U may be empty or an underscore; expand it
18582 U=`sed -n 's/^U = //p' < "$mf"`
18583 # Find all dependency output files, they are included files with
18584 # $(DEPDIR) in their names. We invoke sed twice because it is the
18585 # simplest approach to changing $(DEPDIR) to its actual value in the
18586 # expansion.
18587 for file in `sed -n "
18588 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18589 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18590 # Make sure the directory exists.
18591 test -f "$dirpart/$file" && continue
18592 fdir=`$as_dirname -- "$file" ||
18593 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18594 X"$file" : 'X\(//\)[^/]' \| \
18595 X"$file" : 'X\(//\)$' \| \
18596 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18597 $as_echo X"$file" |
18598 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18599 s//\1/
18600 q
18601 }
18602 /^X\(\/\/\)[^/].*/{
18603 s//\1/
18604 q
18605 }
18606 /^X\(\/\/\)$/{
18607 s//\1/
18608 q
18609 }
18610 /^X\(\/\).*/{
18611 s//\1/
18612 q
18613 }
18614 s/.*/./; q'`
18615 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18616 # echo "creating $dirpart/$file"
18617 echo '# dummy' > "$dirpart/$file"
18618 done
18619 done
18620 }
18621 ;;
18622 "libtool":C)
18623
18624 # See if we are running on zsh, and set the options which allow our
18625 # commands through without removal of \ escapes.
18626 if test -n "${ZSH_VERSION+set}" ; then
18627 setopt NO_GLOB_SUBST
18628 fi
18629
18630 cfgfile="${ofile}T"
18631 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18632 $RM "$cfgfile"
18633
18634 cat <<_LT_EOF >> "$cfgfile"
18635 #! $SHELL
18636
18637 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18638 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18639 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18640 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18641 #
18642 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18643 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18644 # Written by Gordon Matzigkeit, 1996
18645 #
18646 # This file is part of GNU Libtool.
18647 #
18648 # GNU Libtool is free software; you can redistribute it and/or
18649 # modify it under the terms of the GNU General Public License as
18650 # published by the Free Software Foundation; either version 2 of
18651 # the License, or (at your option) any later version.
18652 #
18653 # As a special exception to the GNU General Public License,
18654 # if you distribute this file as part of a program or library that
18655 # is built using GNU Libtool, you may include this file under the
18656 # same distribution terms that you use for the rest of that program.
18657 #
18658 # GNU Libtool is distributed in the hope that it will be useful,
18659 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18660 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18661 # GNU General Public License for more details.
18662 #
18663 # You should have received a copy of the GNU General Public License
18664 # along with GNU Libtool; see the file COPYING. If not, a copy
18665 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18666 # obtained by writing to the Free Software Foundation, Inc.,
18667 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18668
18669
18670 # The names of the tagged configurations supported by this script.
18671 available_tags="FC "
18672
18673 # ### BEGIN LIBTOOL CONFIG
18674
18675 # Which release of libtool.m4 was used?
18676 macro_version=$macro_version
18677 macro_revision=$macro_revision
18678
18679 # Whether or not to build shared libraries.
18680 build_libtool_libs=$enable_shared
18681
18682 # Whether or not to build static libraries.
18683 build_old_libs=$enable_static
18684
18685 # What type of objects to build.
18686 pic_mode=$pic_mode
18687
18688 # Whether or not to optimize for fast installation.
18689 fast_install=$enable_fast_install
18690
18691 # Shell to use when invoking shell scripts.
18692 SHELL=$lt_SHELL
18693
18694 # An echo program that protects backslashes.
18695 ECHO=$lt_ECHO
18696
18697 # The host system.
18698 host_alias=$host_alias
18699 host=$host
18700 host_os=$host_os
18701
18702 # The build system.
18703 build_alias=$build_alias
18704 build=$build
18705 build_os=$build_os
18706
18707 # A sed program that does not truncate output.
18708 SED=$lt_SED
18709
18710 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18711 Xsed="\$SED -e 1s/^X//"
18712
18713 # A grep program that handles long lines.
18714 GREP=$lt_GREP
18715
18716 # An ERE matcher.
18717 EGREP=$lt_EGREP
18718
18719 # A literal string matcher.
18720 FGREP=$lt_FGREP
18721
18722 # A BSD- or MS-compatible name lister.
18723 NM=$lt_NM
18724
18725 # Whether we need soft or hard links.
18726 LN_S=$lt_LN_S
18727
18728 # What is the maximum length of a command?
18729 max_cmd_len=$max_cmd_len
18730
18731 # Object file suffix (normally "o").
18732 objext=$ac_objext
18733
18734 # Executable file suffix (normally "").
18735 exeext=$exeext
18736
18737 # whether the shell understands "unset".
18738 lt_unset=$lt_unset
18739
18740 # turn spaces into newlines.
18741 SP2NL=$lt_lt_SP2NL
18742
18743 # turn newlines into spaces.
18744 NL2SP=$lt_lt_NL2SP
18745
18746 # An object symbol dumper.
18747 OBJDUMP=$lt_OBJDUMP
18748
18749 # Method to check whether dependent libraries are shared objects.
18750 deplibs_check_method=$lt_deplibs_check_method
18751
18752 # Command to use when deplibs_check_method == "file_magic".
18753 file_magic_cmd=$lt_file_magic_cmd
18754
18755 # The archiver.
18756 AR=$lt_AR
18757 AR_FLAGS=$lt_AR_FLAGS
18758
18759 # A symbol stripping program.
18760 STRIP=$lt_STRIP
18761
18762 # Commands used to install an old-style archive.
18763 RANLIB=$lt_RANLIB
18764 old_postinstall_cmds=$lt_old_postinstall_cmds
18765 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18766
18767 # Whether to use a lock for old archive extraction.
18768 lock_old_archive_extraction=$lock_old_archive_extraction
18769
18770 # A C compiler.
18771 LTCC=$lt_CC
18772
18773 # LTCC compiler flags.
18774 LTCFLAGS=$lt_CFLAGS
18775
18776 # Take the output of nm and produce a listing of raw symbols and C names.
18777 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18778
18779 # Transform the output of nm in a proper C declaration.
18780 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18781
18782 # Transform the output of nm in a C name address pair.
18783 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18784
18785 # Transform the output of nm in a C name address pair when lib prefix is needed.
18786 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18787
18788 # The name of the directory that contains temporary libtool files.
18789 objdir=$objdir
18790
18791 # Used to examine libraries when file_magic_cmd begins with "file".
18792 MAGIC_CMD=$MAGIC_CMD
18793
18794 # Must we lock files when doing compilation?
18795 need_locks=$lt_need_locks
18796
18797 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18798 DSYMUTIL=$lt_DSYMUTIL
18799
18800 # Tool to change global to local symbols on Mac OS X.
18801 NMEDIT=$lt_NMEDIT
18802
18803 # Tool to manipulate fat objects and archives on Mac OS X.
18804 LIPO=$lt_LIPO
18805
18806 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18807 OTOOL=$lt_OTOOL
18808
18809 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18810 OTOOL64=$lt_OTOOL64
18811
18812 # Old archive suffix (normally "a").
18813 libext=$libext
18814
18815 # Shared library suffix (normally ".so").
18816 shrext_cmds=$lt_shrext_cmds
18817
18818 # The commands to extract the exported symbol list from a shared archive.
18819 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18820
18821 # Variables whose values should be saved in libtool wrapper scripts and
18822 # restored at link time.
18823 variables_saved_for_relink=$lt_variables_saved_for_relink
18824
18825 # Do we need the "lib" prefix for modules?
18826 need_lib_prefix=$need_lib_prefix
18827
18828 # Do we need a version for libraries?
18829 need_version=$need_version
18830
18831 # Library versioning type.
18832 version_type=$version_type
18833
18834 # Shared library runtime path variable.
18835 runpath_var=$runpath_var
18836
18837 # Shared library path variable.
18838 shlibpath_var=$shlibpath_var
18839
18840 # Is shlibpath searched before the hard-coded library search path?
18841 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18842
18843 # Format of library name prefix.
18844 libname_spec=$lt_libname_spec
18845
18846 # List of archive names. First name is the real one, the rest are links.
18847 # The last name is the one that the linker finds with -lNAME
18848 library_names_spec=$lt_library_names_spec
18849
18850 # The coded name of the library, if different from the real name.
18851 soname_spec=$lt_soname_spec
18852
18853 # Permission mode override for installation of shared libraries.
18854 install_override_mode=$lt_install_override_mode
18855
18856 # Command to use after installation of a shared archive.
18857 postinstall_cmds=$lt_postinstall_cmds
18858
18859 # Command to use after uninstallation of a shared archive.
18860 postuninstall_cmds=$lt_postuninstall_cmds
18861
18862 # Commands used to finish a libtool library installation in a directory.
18863 finish_cmds=$lt_finish_cmds
18864
18865 # As "finish_cmds", except a single script fragment to be evaled but
18866 # not shown.
18867 finish_eval=$lt_finish_eval
18868
18869 # Whether we should hardcode library paths into libraries.
18870 hardcode_into_libs=$hardcode_into_libs
18871
18872 # Compile-time system search path for libraries.
18873 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18874
18875 # Run-time system search path for libraries.
18876 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18877
18878 # Whether dlopen is supported.
18879 dlopen_support=$enable_dlopen
18880
18881 # Whether dlopen of programs is supported.
18882 dlopen_self=$enable_dlopen_self
18883
18884 # Whether dlopen of statically linked programs is supported.
18885 dlopen_self_static=$enable_dlopen_self_static
18886
18887 # Commands to strip libraries.
18888 old_striplib=$lt_old_striplib
18889 striplib=$lt_striplib
18890
18891
18892 # The linker used to build libraries.
18893 LD=$lt_LD
18894
18895 # How to create reloadable object files.
18896 reload_flag=$lt_reload_flag
18897 reload_cmds=$lt_reload_cmds
18898
18899 # Commands used to build an old-style archive.
18900 old_archive_cmds=$lt_old_archive_cmds
18901
18902 # A language specific compiler.
18903 CC=$lt_compiler
18904
18905 # Is the compiler the GNU compiler?
18906 with_gcc=$GCC
18907
18908 # Compiler flag to turn off builtin functions.
18909 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18910
18911 # How to pass a linker flag through the compiler.
18912 wl=$lt_lt_prog_compiler_wl
18913
18914 # Additional compiler flags for building library objects.
18915 pic_flag=$lt_lt_prog_compiler_pic
18916
18917 # Compiler flag to prevent dynamic linking.
18918 link_static_flag=$lt_lt_prog_compiler_static
18919
18920 # Does compiler simultaneously support -c and -o options?
18921 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18922
18923 # Whether or not to add -lc for building shared libraries.
18924 build_libtool_need_lc=$archive_cmds_need_lc
18925
18926 # Whether or not to disallow shared libs when runtime libs are static.
18927 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18928
18929 # Compiler flag to allow reflexive dlopens.
18930 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18931
18932 # Compiler flag to generate shared objects directly from archives.
18933 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18934
18935 # Whether the compiler copes with passing no objects directly.
18936 compiler_needs_object=$lt_compiler_needs_object
18937
18938 # Create an old-style archive from a shared archive.
18939 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18940
18941 # Create a temporary old-style archive to link instead of a shared archive.
18942 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18943
18944 # Commands used to build a shared archive.
18945 archive_cmds=$lt_archive_cmds
18946 archive_expsym_cmds=$lt_archive_expsym_cmds
18947
18948 # Commands used to build a loadable module if different from building
18949 # a shared archive.
18950 module_cmds=$lt_module_cmds
18951 module_expsym_cmds=$lt_module_expsym_cmds
18952
18953 # Whether we are building with GNU ld or not.
18954 with_gnu_ld=$lt_with_gnu_ld
18955
18956 # Flag that allows shared libraries with undefined symbols to be built.
18957 allow_undefined_flag=$lt_allow_undefined_flag
18958
18959 # Flag that enforces no undefined symbols.
18960 no_undefined_flag=$lt_no_undefined_flag
18961
18962 # Flag to hardcode \$libdir into a binary during linking.
18963 # This must work even if \$libdir does not exist
18964 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18965
18966 # If ld is used when linking, flag to hardcode \$libdir into a binary
18967 # during linking. This must work even if \$libdir does not exist.
18968 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18969
18970 # Whether we need a single "-rpath" flag with a separated argument.
18971 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18972
18973 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18974 # DIR into the resulting binary.
18975 hardcode_direct=$hardcode_direct
18976
18977 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18978 # DIR into the resulting binary and the resulting library dependency is
18979 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18980 # library is relocated.
18981 hardcode_direct_absolute=$hardcode_direct_absolute
18982
18983 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18984 # into the resulting binary.
18985 hardcode_minus_L=$hardcode_minus_L
18986
18987 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18988 # into the resulting binary.
18989 hardcode_shlibpath_var=$hardcode_shlibpath_var
18990
18991 # Set to "yes" if building a shared library automatically hardcodes DIR
18992 # into the library and all subsequent libraries and executables linked
18993 # against it.
18994 hardcode_automatic=$hardcode_automatic
18995
18996 # Set to yes if linker adds runtime paths of dependent libraries
18997 # to runtime path list.
18998 inherit_rpath=$inherit_rpath
18999
19000 # Whether libtool must link a program against all its dependency libraries.
19001 link_all_deplibs=$link_all_deplibs
19002
19003 # Fix the shell variable \$srcfile for the compiler.
19004 fix_srcfile_path=$lt_fix_srcfile_path
19005
19006 # Set to "yes" if exported symbols are required.
19007 always_export_symbols=$always_export_symbols
19008
19009 # The commands to list exported symbols.
19010 export_symbols_cmds=$lt_export_symbols_cmds
19011
19012 # Symbols that should not be listed in the preloaded symbols.
19013 exclude_expsyms=$lt_exclude_expsyms
19014
19015 # Symbols that must always be exported.
19016 include_expsyms=$lt_include_expsyms
19017
19018 # Commands necessary for linking programs (against libraries) with templates.
19019 prelink_cmds=$lt_prelink_cmds
19020
19021 # Specify filename containing input files.
19022 file_list_spec=$lt_file_list_spec
19023
19024 # How to hardcode a shared library path into an executable.
19025 hardcode_action=$hardcode_action
19026
19027 # The directories searched by this compiler when creating a shared library.
19028 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19029
19030 # Dependencies to place before and after the objects being linked to
19031 # create a shared library.
19032 predep_objects=$lt_predep_objects
19033 postdep_objects=$lt_postdep_objects
19034 predeps=$lt_predeps
19035 postdeps=$lt_postdeps
19036
19037 # The library search path used internally by the compiler when linking
19038 # a shared library.
19039 compiler_lib_search_path=$lt_compiler_lib_search_path
19040
19041 # ### END LIBTOOL CONFIG
19042
19043 _LT_EOF
19044
19045 case $host_os in
19046 aix3*)
19047 cat <<\_LT_EOF >> "$cfgfile"
19048 # AIX sometimes has problems with the GCC collect2 program. For some
19049 # reason, if we set the COLLECT_NAMES environment variable, the problems
19050 # vanish in a puff of smoke.
19051 if test "X${COLLECT_NAMES+set}" != Xset; then
19052 COLLECT_NAMES=
19053 export COLLECT_NAMES
19054 fi
19055 _LT_EOF
19056 ;;
19057 esac
19058
19059
19060 ltmain="$ac_aux_dir/ltmain.sh"
19061
19062
19063 # We use sed instead of cat because bash on DJGPP gets confused if
19064 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19065 # text mode, it properly converts lines to CR/LF. This bash problem
19066 # is reportedly fixed, but why not run on old versions too?
19067 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19068 || (rm -f "$cfgfile"; exit 1)
19069
19070 case $xsi_shell in
19071 yes)
19072 cat << \_LT_EOF >> "$cfgfile"
19073
19074 # func_dirname file append nondir_replacement
19075 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19076 # otherwise set result to NONDIR_REPLACEMENT.
19077 func_dirname ()
19078 {
19079 case ${1} in
19080 */*) func_dirname_result="${1%/*}${2}" ;;
19081 * ) func_dirname_result="${3}" ;;
19082 esac
19083 }
19084
19085 # func_basename file
19086 func_basename ()
19087 {
19088 func_basename_result="${1##*/}"
19089 }
19090
19091 # func_dirname_and_basename file append nondir_replacement
19092 # perform func_basename and func_dirname in a single function
19093 # call:
19094 # dirname: Compute the dirname of FILE. If nonempty,
19095 # add APPEND to the result, otherwise set result
19096 # to NONDIR_REPLACEMENT.
19097 # value returned in "$func_dirname_result"
19098 # basename: Compute filename of FILE.
19099 # value retuned in "$func_basename_result"
19100 # Implementation must be kept synchronized with func_dirname
19101 # and func_basename. For efficiency, we do not delegate to
19102 # those functions but instead duplicate the functionality here.
19103 func_dirname_and_basename ()
19104 {
19105 case ${1} in
19106 */*) func_dirname_result="${1%/*}${2}" ;;
19107 * ) func_dirname_result="${3}" ;;
19108 esac
19109 func_basename_result="${1##*/}"
19110 }
19111
19112 # func_stripname prefix suffix name
19113 # strip PREFIX and SUFFIX off of NAME.
19114 # PREFIX and SUFFIX must not contain globbing or regex special
19115 # characters, hashes, percent signs, but SUFFIX may contain a leading
19116 # dot (in which case that matches only a dot).
19117 func_stripname ()
19118 {
19119 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19120 # positional parameters, so assign one to ordinary parameter first.
19121 func_stripname_result=${3}
19122 func_stripname_result=${func_stripname_result#"${1}"}
19123 func_stripname_result=${func_stripname_result%"${2}"}
19124 }
19125
19126 # func_opt_split
19127 func_opt_split ()
19128 {
19129 func_opt_split_opt=${1%%=*}
19130 func_opt_split_arg=${1#*=}
19131 }
19132
19133 # func_lo2o object
19134 func_lo2o ()
19135 {
19136 case ${1} in
19137 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19138 *) func_lo2o_result=${1} ;;
19139 esac
19140 }
19141
19142 # func_xform libobj-or-source
19143 func_xform ()
19144 {
19145 func_xform_result=${1%.*}.lo
19146 }
19147
19148 # func_arith arithmetic-term...
19149 func_arith ()
19150 {
19151 func_arith_result=$(( $* ))
19152 }
19153
19154 # func_len string
19155 # STRING may not start with a hyphen.
19156 func_len ()
19157 {
19158 func_len_result=${#1}
19159 }
19160
19161 _LT_EOF
19162 ;;
19163 *) # Bourne compatible functions.
19164 cat << \_LT_EOF >> "$cfgfile"
19165
19166 # func_dirname file append nondir_replacement
19167 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19168 # otherwise set result to NONDIR_REPLACEMENT.
19169 func_dirname ()
19170 {
19171 # Extract subdirectory from the argument.
19172 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
19173 if test "X$func_dirname_result" = "X${1}"; then
19174 func_dirname_result="${3}"
19175 else
19176 func_dirname_result="$func_dirname_result${2}"
19177 fi
19178 }
19179
19180 # func_basename file
19181 func_basename ()
19182 {
19183 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
19184 }
19185
19186
19187 # func_stripname prefix suffix name
19188 # strip PREFIX and SUFFIX off of NAME.
19189 # PREFIX and SUFFIX must not contain globbing or regex special
19190 # characters, hashes, percent signs, but SUFFIX may contain a leading
19191 # dot (in which case that matches only a dot).
19192 # func_strip_suffix prefix name
19193 func_stripname ()
19194 {
19195 case ${2} in
19196 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19197 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19198 esac
19199 }
19200
19201 # sed scripts:
19202 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19203 my_sed_long_arg='1s/^-[^=]*=//'
19204
19205 # func_opt_split
19206 func_opt_split ()
19207 {
19208 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19209 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19210 }
19211
19212 # func_lo2o object
19213 func_lo2o ()
19214 {
19215 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
19216 }
19217
19218 # func_xform libobj-or-source
19219 func_xform ()
19220 {
19221 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19222 }
19223
19224 # func_arith arithmetic-term...
19225 func_arith ()
19226 {
19227 func_arith_result=`expr "$@"`
19228 }
19229
19230 # func_len string
19231 # STRING may not start with a hyphen.
19232 func_len ()
19233 {
19234 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19235 }
19236
19237 _LT_EOF
19238 esac
19239
19240 case $lt_shell_append in
19241 yes)
19242 cat << \_LT_EOF >> "$cfgfile"
19243
19244 # func_append var value
19245 # Append VALUE to the end of shell variable VAR.
19246 func_append ()
19247 {
19248 eval "$1+=\$2"
19249 }
19250 _LT_EOF
19251 ;;
19252 *)
19253 cat << \_LT_EOF >> "$cfgfile"
19254
19255 # func_append var value
19256 # Append VALUE to the end of shell variable VAR.
19257 func_append ()
19258 {
19259 eval "$1=\$$1\$2"
19260 }
19261
19262 _LT_EOF
19263 ;;
19264 esac
19265
19266
19267 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19268 || (rm -f "$cfgfile"; exit 1)
19269
19270 mv -f "$cfgfile" "$ofile" ||
19271 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19272 chmod +x "$ofile"
19273
19274
19275 cat <<_LT_EOF >> "$ofile"
19276
19277 # ### BEGIN LIBTOOL TAG CONFIG: FC
19278
19279 # The linker used to build libraries.
19280 LD=$lt_LD_FC
19281
19282 # How to create reloadable object files.
19283 reload_flag=$lt_reload_flag_FC
19284 reload_cmds=$lt_reload_cmds_FC
19285
19286 # Commands used to build an old-style archive.
19287 old_archive_cmds=$lt_old_archive_cmds_FC
19288
19289 # A language specific compiler.
19290 CC=$lt_compiler_FC
19291
19292 # Is the compiler the GNU compiler?
19293 with_gcc=$GCC_FC
19294
19295 # Compiler flag to turn off builtin functions.
19296 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
19297
19298 # How to pass a linker flag through the compiler.
19299 wl=$lt_lt_prog_compiler_wl_FC
19300
19301 # Additional compiler flags for building library objects.
19302 pic_flag=$lt_lt_prog_compiler_pic_FC
19303
19304 # Compiler flag to prevent dynamic linking.
19305 link_static_flag=$lt_lt_prog_compiler_static_FC
19306
19307 # Does compiler simultaneously support -c and -o options?
19308 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
19309
19310 # Whether or not to add -lc for building shared libraries.
19311 build_libtool_need_lc=$archive_cmds_need_lc_FC
19312
19313 # Whether or not to disallow shared libs when runtime libs are static.
19314 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
19315
19316 # Compiler flag to allow reflexive dlopens.
19317 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
19318
19319 # Compiler flag to generate shared objects directly from archives.
19320 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
19321
19322 # Whether the compiler copes with passing no objects directly.
19323 compiler_needs_object=$lt_compiler_needs_object_FC
19324
19325 # Create an old-style archive from a shared archive.
19326 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
19327
19328 # Create a temporary old-style archive to link instead of a shared archive.
19329 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
19330
19331 # Commands used to build a shared archive.
19332 archive_cmds=$lt_archive_cmds_FC
19333 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
19334
19335 # Commands used to build a loadable module if different from building
19336 # a shared archive.
19337 module_cmds=$lt_module_cmds_FC
19338 module_expsym_cmds=$lt_module_expsym_cmds_FC
19339
19340 # Whether we are building with GNU ld or not.
19341 with_gnu_ld=$lt_with_gnu_ld_FC
19342
19343 # Flag that allows shared libraries with undefined symbols to be built.
19344 allow_undefined_flag=$lt_allow_undefined_flag_FC
19345
19346 # Flag that enforces no undefined symbols.
19347 no_undefined_flag=$lt_no_undefined_flag_FC
19348
19349 # Flag to hardcode \$libdir into a binary during linking.
19350 # This must work even if \$libdir does not exist
19351 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
19352
19353 # If ld is used when linking, flag to hardcode \$libdir into a binary
19354 # during linking. This must work even if \$libdir does not exist.
19355 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
19356
19357 # Whether we need a single "-rpath" flag with a separated argument.
19358 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
19359
19360 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19361 # DIR into the resulting binary.
19362 hardcode_direct=$hardcode_direct_FC
19363
19364 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19365 # DIR into the resulting binary and the resulting library dependency is
19366 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19367 # library is relocated.
19368 hardcode_direct_absolute=$hardcode_direct_absolute_FC
19369
19370 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19371 # into the resulting binary.
19372 hardcode_minus_L=$hardcode_minus_L_FC
19373
19374 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19375 # into the resulting binary.
19376 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
19377
19378 # Set to "yes" if building a shared library automatically hardcodes DIR
19379 # into the library and all subsequent libraries and executables linked
19380 # against it.
19381 hardcode_automatic=$hardcode_automatic_FC
19382
19383 # Set to yes if linker adds runtime paths of dependent libraries
19384 # to runtime path list.
19385 inherit_rpath=$inherit_rpath_FC
19386
19387 # Whether libtool must link a program against all its dependency libraries.
19388 link_all_deplibs=$link_all_deplibs_FC
19389
19390 # Fix the shell variable \$srcfile for the compiler.
19391 fix_srcfile_path=$lt_fix_srcfile_path_FC
19392
19393 # Set to "yes" if exported symbols are required.
19394 always_export_symbols=$always_export_symbols_FC
19395
19396 # The commands to list exported symbols.
19397 export_symbols_cmds=$lt_export_symbols_cmds_FC
19398
19399 # Symbols that should not be listed in the preloaded symbols.
19400 exclude_expsyms=$lt_exclude_expsyms_FC
19401
19402 # Symbols that must always be exported.
19403 include_expsyms=$lt_include_expsyms_FC
19404
19405 # Commands necessary for linking programs (against libraries) with templates.
19406 prelink_cmds=$lt_prelink_cmds_FC
19407
19408 # Specify filename containing input files.
19409 file_list_spec=$lt_file_list_spec_FC
19410
19411 # How to hardcode a shared library path into an executable.
19412 hardcode_action=$hardcode_action_FC
19413
19414 # The directories searched by this compiler when creating a shared library.
19415 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
19416
19417 # Dependencies to place before and after the objects being linked to
19418 # create a shared library.
19419 predep_objects=$lt_predep_objects_FC
19420 postdep_objects=$lt_postdep_objects_FC
19421 predeps=$lt_predeps_FC
19422 postdeps=$lt_postdeps_FC
19423
19424 # The library search path used internally by the compiler when linking
19425 # a shared library.
19426 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
19427
19428 # ### END LIBTOOL TAG CONFIG: FC
19429 _LT_EOF
19430
19431 ;;
19432 "gstdint.h":C)
19433 if test "$GCC" = yes; then
19434 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
19435 else
19436 echo "/* generated for $CC */" > tmp-stdint.h
19437 fi
19438
19439 sed 's/^ *//' >> tmp-stdint.h <<EOF
19440
19441 #ifndef GCC_GENERATED_STDINT_H
19442 #define GCC_GENERATED_STDINT_H 1
19443
19444 #include <sys/types.h>
19445 EOF
19446
19447 if test "$acx_cv_header_stdint" != stdint.h; then
19448 echo "#include <stddef.h>" >> tmp-stdint.h
19449 fi
19450 if test "$acx_cv_header_stdint" != stddef.h; then
19451 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
19452 fi
19453
19454 sed 's/^ *//' >> tmp-stdint.h <<EOF
19455 /* glibc uses these symbols as guards to prevent redefinitions. */
19456 #ifdef __int8_t_defined
19457 #define _INT8_T
19458 #define _INT16_T
19459 #define _INT32_T
19460 #endif
19461 #ifdef __uint32_t_defined
19462 #define _UINT32_T
19463 #endif
19464
19465 EOF
19466
19467 # ----------------- done header, emit basic int types -------------
19468 if test "$acx_cv_header_stdint" = stddef.h; then
19469 sed 's/^ *//' >> tmp-stdint.h <<EOF
19470
19471 #ifndef _UINT8_T
19472 #define _UINT8_T
19473 #ifndef __uint8_t_defined
19474 #define __uint8_t_defined
19475 #ifndef uint8_t
19476 typedef unsigned $acx_cv_type_int8_t uint8_t;
19477 #endif
19478 #endif
19479 #endif
19480
19481 #ifndef _UINT16_T
19482 #define _UINT16_T
19483 #ifndef __uint16_t_defined
19484 #define __uint16_t_defined
19485 #ifndef uint16_t
19486 typedef unsigned $acx_cv_type_int16_t uint16_t;
19487 #endif
19488 #endif
19489 #endif
19490
19491 #ifndef _UINT32_T
19492 #define _UINT32_T
19493 #ifndef __uint32_t_defined
19494 #define __uint32_t_defined
19495 #ifndef uint32_t
19496 typedef unsigned $acx_cv_type_int32_t uint32_t;
19497 #endif
19498 #endif
19499 #endif
19500
19501 #ifndef _INT8_T
19502 #define _INT8_T
19503 #ifndef __int8_t_defined
19504 #define __int8_t_defined
19505 #ifndef int8_t
19506 typedef $acx_cv_type_int8_t int8_t;
19507 #endif
19508 #endif
19509 #endif
19510
19511 #ifndef _INT16_T
19512 #define _INT16_T
19513 #ifndef __int16_t_defined
19514 #define __int16_t_defined
19515 #ifndef int16_t
19516 typedef $acx_cv_type_int16_t int16_t;
19517 #endif
19518 #endif
19519 #endif
19520
19521 #ifndef _INT32_T
19522 #define _INT32_T
19523 #ifndef __int32_t_defined
19524 #define __int32_t_defined
19525 #ifndef int32_t
19526 typedef $acx_cv_type_int32_t int32_t;
19527 #endif
19528 #endif
19529 #endif
19530 EOF
19531 elif test "$ac_cv_type_u_int32_t" = yes; then
19532 sed 's/^ *//' >> tmp-stdint.h <<EOF
19533
19534 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
19535 #ifndef _INT8_T
19536 #define _INT8_T
19537 #endif
19538 #ifndef _INT16_T
19539 #define _INT16_T
19540 #endif
19541 #ifndef _INT32_T
19542 #define _INT32_T
19543 #endif
19544
19545 #ifndef _UINT8_T
19546 #define _UINT8_T
19547 #ifndef __uint8_t_defined
19548 #define __uint8_t_defined
19549 #ifndef uint8_t
19550 typedef u_int8_t uint8_t;
19551 #endif
19552 #endif
19553 #endif
19554
19555 #ifndef _UINT16_T
19556 #define _UINT16_T
19557 #ifndef __uint16_t_defined
19558 #define __uint16_t_defined
19559 #ifndef uint16_t
19560 typedef u_int16_t uint16_t;
19561 #endif
19562 #endif
19563 #endif
19564
19565 #ifndef _UINT32_T
19566 #define _UINT32_T
19567 #ifndef __uint32_t_defined
19568 #define __uint32_t_defined
19569 #ifndef uint32_t
19570 typedef u_int32_t uint32_t;
19571 #endif
19572 #endif
19573 #endif
19574 EOF
19575 else
19576 sed 's/^ *//' >> tmp-stdint.h <<EOF
19577
19578 /* Some systems have guard macros to prevent redefinitions, define them. */
19579 #ifndef _INT8_T
19580 #define _INT8_T
19581 #endif
19582 #ifndef _INT16_T
19583 #define _INT16_T
19584 #endif
19585 #ifndef _INT32_T
19586 #define _INT32_T
19587 #endif
19588 #ifndef _UINT8_T
19589 #define _UINT8_T
19590 #endif
19591 #ifndef _UINT16_T
19592 #define _UINT16_T
19593 #endif
19594 #ifndef _UINT32_T
19595 #define _UINT32_T
19596 #endif
19597 EOF
19598 fi
19599
19600 # ------------- done basic int types, emit int64_t types ------------
19601 if test "$ac_cv_type_uint64_t" = yes; then
19602 sed 's/^ *//' >> tmp-stdint.h <<EOF
19603
19604 /* system headers have good uint64_t and int64_t */
19605 #ifndef _INT64_T
19606 #define _INT64_T
19607 #endif
19608 #ifndef _UINT64_T
19609 #define _UINT64_T
19610 #endif
19611 EOF
19612 elif test "$ac_cv_type_u_int64_t" = yes; then
19613 sed 's/^ *//' >> tmp-stdint.h <<EOF
19614
19615 /* system headers have an u_int64_t (and int64_t) */
19616 #ifndef _INT64_T
19617 #define _INT64_T
19618 #endif
19619 #ifndef _UINT64_T
19620 #define _UINT64_T
19621 #ifndef __uint64_t_defined
19622 #define __uint64_t_defined
19623 #ifndef uint64_t
19624 typedef u_int64_t uint64_t;
19625 #endif
19626 #endif
19627 #endif
19628 EOF
19629 elif test -n "$acx_cv_type_int64_t"; then
19630 sed 's/^ *//' >> tmp-stdint.h <<EOF
19631
19632 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
19633 #ifndef _INT64_T
19634 #define _INT64_T
19635 #ifndef int64_t
19636 typedef $acx_cv_type_int64_t int64_t;
19637 #endif
19638 #endif
19639 #ifndef _UINT64_T
19640 #define _UINT64_T
19641 #ifndef __uint64_t_defined
19642 #define __uint64_t_defined
19643 #ifndef uint64_t
19644 typedef unsigned $acx_cv_type_int64_t uint64_t;
19645 #endif
19646 #endif
19647 #endif
19648 EOF
19649 else
19650 sed 's/^ *//' >> tmp-stdint.h <<EOF
19651
19652 /* some common heuristics for int64_t, using compiler-specific tests */
19653 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
19654 #ifndef _INT64_T
19655 #define _INT64_T
19656 #ifndef __int64_t_defined
19657 #ifndef int64_t
19658 typedef long long int64_t;
19659 #endif
19660 #endif
19661 #endif
19662 #ifndef _UINT64_T
19663 #define _UINT64_T
19664 #ifndef uint64_t
19665 typedef unsigned long long uint64_t;
19666 #endif
19667 #endif
19668
19669 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
19670 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
19671 does not implement __extension__. But that compiler doesn't define
19672 __GNUC_MINOR__. */
19673 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
19674 # define __extension__
19675 # endif
19676
19677 # ifndef _INT64_T
19678 # define _INT64_T
19679 # ifndef int64_t
19680 __extension__ typedef long long int64_t;
19681 # endif
19682 # endif
19683 # ifndef _UINT64_T
19684 # define _UINT64_T
19685 # ifndef uint64_t
19686 __extension__ typedef unsigned long long uint64_t;
19687 # endif
19688 # endif
19689
19690 #elif !defined __STRICT_ANSI__
19691 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
19692
19693 # ifndef _INT64_T
19694 # define _INT64_T
19695 # ifndef int64_t
19696 typedef __int64 int64_t;
19697 # endif
19698 # endif
19699 # ifndef _UINT64_T
19700 # define _UINT64_T
19701 # ifndef uint64_t
19702 typedef unsigned __int64 uint64_t;
19703 # endif
19704 # endif
19705 # endif /* compiler */
19706
19707 #endif /* ANSI version */
19708 EOF
19709 fi
19710
19711 # ------------- done int64_t types, emit intptr types ------------
19712 if test "$ac_cv_type_uintptr_t" != yes; then
19713 sed 's/^ *//' >> tmp-stdint.h <<EOF
19714
19715 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
19716 #ifndef __uintptr_t_defined
19717 #ifndef uintptr_t
19718 typedef u$acx_cv_type_intptr_t uintptr_t;
19719 #endif
19720 #endif
19721 #ifndef __intptr_t_defined
19722 #ifndef intptr_t
19723 typedef $acx_cv_type_intptr_t intptr_t;
19724 #endif
19725 #endif
19726 EOF
19727 fi
19728
19729 # ------------- done intptr types, emit int_least types ------------
19730 if test "$ac_cv_type_int_least32_t" != yes; then
19731 sed 's/^ *//' >> tmp-stdint.h <<EOF
19732
19733 /* Define int_least types */
19734 typedef int8_t int_least8_t;
19735 typedef int16_t int_least16_t;
19736 typedef int32_t int_least32_t;
19737 #ifdef _INT64_T
19738 typedef int64_t int_least64_t;
19739 #endif
19740
19741 typedef uint8_t uint_least8_t;
19742 typedef uint16_t uint_least16_t;
19743 typedef uint32_t uint_least32_t;
19744 #ifdef _UINT64_T
19745 typedef uint64_t uint_least64_t;
19746 #endif
19747 EOF
19748 fi
19749
19750 # ------------- done intptr types, emit int_fast types ------------
19751 if test "$ac_cv_type_int_fast32_t" != yes; then
19752 sed 's/^ *//' >> tmp-stdint.h <<EOF
19753
19754 /* Define int_fast types. short is often slow */
19755 typedef int8_t int_fast8_t;
19756 typedef int int_fast16_t;
19757 typedef int32_t int_fast32_t;
19758 #ifdef _INT64_T
19759 typedef int64_t int_fast64_t;
19760 #endif
19761
19762 typedef uint8_t uint_fast8_t;
19763 typedef unsigned int uint_fast16_t;
19764 typedef uint32_t uint_fast32_t;
19765 #ifdef _UINT64_T
19766 typedef uint64_t uint_fast64_t;
19767 #endif
19768 EOF
19769 fi
19770
19771 if test "$ac_cv_type_uintmax_t" != yes; then
19772 sed 's/^ *//' >> tmp-stdint.h <<EOF
19773
19774 /* Define intmax based on what we found */
19775 #ifndef intmax_t
19776 #ifdef _INT64_T
19777 typedef int64_t intmax_t;
19778 #else
19779 typedef long intmax_t;
19780 #endif
19781 #endif
19782 #ifndef uintmax_t
19783 #ifdef _UINT64_T
19784 typedef uint64_t uintmax_t;
19785 #else
19786 typedef unsigned long uintmax_t;
19787 #endif
19788 #endif
19789 EOF
19790 fi
19791
19792 sed 's/^ *//' >> tmp-stdint.h <<EOF
19793
19794 #endif /* GCC_GENERATED_STDINT_H */
19795 EOF
19796
19797 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
19798 rm -f tmp-stdint.h
19799 else
19800 mv -f tmp-stdint.h gstdint.h
19801 fi
19802
19803 ;;
19804
19805 esac
19806 done # for ac_tag
19807
19808
19809 as_fn_exit 0
19810 _ACEOF
19811 ac_clean_files=$ac_clean_files_save
19812
19813 test $ac_write_fail = 0 ||
19814 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
19815
19816
19817 # configure is writing to config.log, and then calls config.status.
19818 # config.status does its own redirection, appending to config.log.
19819 # Unfortunately, on DOS this fails, as config.log is still kept open
19820 # by configure, so config.status won't be able to write to it; its
19821 # output is simply discarded. So we exec the FD to /dev/null,
19822 # effectively closing config.log, so it can be properly (re)opened and
19823 # appended to by config.status. When coming back to configure, we
19824 # need to make the FD available again.
19825 if test "$no_create" != yes; then
19826 ac_cs_success=:
19827 ac_config_status_args=
19828 test "$silent" = yes &&
19829 ac_config_status_args="$ac_config_status_args --quiet"
19830 exec 5>/dev/null
19831 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19832 exec 5>>config.log
19833 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19834 # would make configure fail if this is the last instruction.
19835 $ac_cs_success || as_fn_exit $?
19836 fi
19837 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19839 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19840 fi
19841